]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
[vect] Be consistent in versioning threshold use
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
2
3 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
4 when to use versioning threshold.
5
6 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7
8 * tree-vect-loop.c (determine_peel_for_niter): New function contained
9 outlined code from ...
10 (vect_analyze_loop_2): ... here.
11
12 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
13
14 * tree-vect-loop.c (vect_transform_loop): Move code from here...
15 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
16 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
17
18 2019-10-17 Richard Biener <rguenther@suse.de>
19
20 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
21 (vect_is_simple_reduction): Move all validity checks ...
22 (vectorizable_reduction): ... here. Compute whether we
23 need a fold-left reduction here.
24 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
25 both overloads, check needs_fold_left_reduction_p directly.
26 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
27
28 2019-10-17 Richard Biener <rguenther@suse.de>
29
30 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
31 TARGET_MEM_REF creation.
32
33 2019-10-17 Richard Biener <rguenther@suse.de>
34
35 PR tree-optimization/92129
36 * tree-vect-loop.c (vectorizable_reduction): Also fail
37 on GIMPLE_SINGLE_RHS.
38
39 2019-10-17 Jakub Jelinek <jakub@redhat.com>
40
41 PR tree-optimization/92056
42 * tree-object-size.c (cond_expr_object_size): Return early if then_
43 processing resulted in unknown size.
44
45 PR tree-optimization/92115
46 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
47 temporary if it could trap.
48
49 2019-10-17 Richard Biener <rguenther@suse.de>
50
51 PR debug/91887
52 * dwarf2out.c (gen_formal_parameter_die): Also try to match
53 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
54
55 2019-10-16 Jakub Jelinek <jakub@redhat.com>
56
57 * tree-ssa-strlen.c (maybe_invalidate): Use
58 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
59
60 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
61 Jim Wilson <jimw@sifive.com>
62
63 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
64 regs to SIBCALL_REGS.
65 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
66 passing regs to SIBCALL_REGS.
67
68 2019-10-16 Martin Sebor <msebor@redhat.com>
69
70 PR tree-optimization/83821
71 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
72 the length of a string when available.
73 (handle_builtin_memset) Add argument.
74 (handle_store, strlen_check_and_optimize_call): Same.
75 (check_and_optimize_stmt): Same. Pass it to callees.
76
77 2019-10-16 Martin Sebor <msebor@redhat.com>
78
79 PR tree-optimization/91996
80 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
81 information.
82 (compare_nonzero_chars): Add an overload.
83 (count_nonzero_bytes): Add an argument. Call overload above.
84 Handle non-constant lengths in some range.
85 (handle_store): Add an argument.
86 (check_and_optimize_stmt): Pass an argument to handle_store.
87
88 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
89
90 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
91
92 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
93
94 * config/mips/mips.c (mips_expand_builtin_insn): Force the
95 operands which correspond to the same input-output register to
96 have the same pseudo assigned to them.
97
98 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
99
100 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
101
102 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
103
104 * config/aarch64/aarch64.c (aarch64_classify_symbol):
105 Apply reasonable limit to symbol offsets.
106
107 2019-10-16 Richard Biener <rguenther@suse.de>
108
109 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
110 (vect_is_simple_reduction): Delay checking to
111 vectorizable_reduction and relax the checking.
112 (vectorizable_reduction): Check we have a simple use. Check
113 for bogus condition reductions.
114 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
115 are looking at the last stmt in a pattern sequence when
116 filling in backedge PHI values.
117
118 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
119 Jiufu Guo <guojiufu@linux.ibm.com>
120
121 PR target/70010
122 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
123 the callee explicitly disables some isa_flags the caller is using.
124
125 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
126
127 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
128
129 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
130
131 * genmodes.c (mode_data::order): New field.
132 (blank_mode): Update accordingly.
133 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
134 (make_vector_modes): Likewise.
135 (VECTOR_MODES): Update use accordingly.
136 (cmp_modes): Sort by the new order field ahead of sorting by size.
137 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
138 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
139 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
140 (aarch64_classify_vector_mode): Handle the new partial modes.
141 (aarch64_vl_bytes): New function.
142 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
143 when counting the number of registers in an SVE mode.
144 (aarch64_class_max_nregs): Likewise.
145 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
146 in registers yet.
147 (aarch64_classify_address): Treat partial vectors analogously
148 to full vectors.
149 (aarch64_print_address_internal): Consolidate the printing of
150 MUL VL addresses, using aarch64_vl_bytes as the number of
151 bytes represented by "VL".
152 (aarch64_vector_mode_supported_p): Reject partial vector modes.
153
154 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
155
156 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
157 rather than known_lt when choosing frame layouts.
158
159 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
160
161 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
162 that all the adjustments add up to the full frame size.
163 Use crtl->outgoing_args_size directly as the final adjustment
164 where appropriate.
165
166 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
167
168 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
169 "frame" reference instead of always referring directly to
170 "cfun->machine->frame".
171
172 2019-10-16 Richard Biener <rguenther@suse.de>
173
174 PR tree-optimization/92119
175 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
176 against missing bswap lhs.
177
178 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
179
180 PR middle-end/92033
181 * poly-int.h (constant_lower_bound_with_limit): New function.
182 (constant_upper_bound_with_limit): Likewise.
183 * doc/poly-int.texi: Document them.
184 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
185 into the worst-case INTEGER_CST bounds.
186
187 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
188
189 PR ipa/91088
190 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
191 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
192 * ipa-predicat.h (struct expr_eval_op): New struct.
193 (expr_eval_ops): New typedef.
194 (struct condition): Add type and param_ops fields, remove size field.
195 (add_condition): Replace size parameter with type parameter, add
196 param_ops parameter.
197 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
198 (predicate::add_clause): Add comparisons on type and param_ops.
199 (dump_condition): Add debug dump for param_ops.
200 (remap_after_inlining): Adjust call arguments to add_condition.
201 (add_condition): Replace size parameter with type parameter, add
202 param_ops parameter. Unshare constant value used in conditions.
203 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
204 parameter expressions using param_ops.
205 (decompose_param_expr): New function.
206 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
207 to replace call to unmodified_parm_or_parm_agg_item.
208 (set_switch_stmt_execution_predicate): Likewise.
209 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
210 with type.
211 (inline_read_section): Read param_ops from summary stream.
212 (ipa_fn_summary_write): Write param_ops to summary stream.
213
214 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
215
216 PR rtl-optimization/92107
217 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
218 expression written.
219
220 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
221
222 * config/darwin.c: Update description of fix and continue.
223
224 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
225
226 * config/darwin.c (darwin_binds_local_p): Update to call
227 default_binds_local_p_3 () directly. amend comments.
228
229 2019-10-15 Richard Biener <rguenther@suse.de>
230
231 * lto-streamer-out.c (lto_variably_modified_type_p): New.
232 (tree_is_indexable): Use it.
233 * tree-streamer-out.c (pack_ts_type_common_value_fields):
234 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
235 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
236
237 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
238
239 * config/msp430/msp430.md (zero_extendqipsi2): New.
240 (zero_extendqisi2): Optimize case where src register and base dst
241 register are the same.
242 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
243 (zero_extendpsisi2): Optimize r->m case.
244 Add unnamed insn patterns to catch insns combine searches for when
245 optimizing pointer manipulation.
246
247 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
248
249 * config/msp430/msp430.md: Group zero_extend* insns together.
250
251 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
252
253 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
254 constraint.
255 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
256 POST_INC.
257 (msp430_subreg): Likewise.
258 (msp430_split_addsi): Likewise.
259 (msp430_print_operand_addr): Likewise.
260 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
261 (USE_STORE_POST_INCREMENT): Define.
262 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
263 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
264 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
265 (msp430_general_dst_operand): New.
266 (msp430_general_dst_nonv_operand): New.
267 (msp430_nonsubreg_operand): Remove.
268 (msp430_nonsubreg_dst_operand): New.
269 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
270 of defunct msp430_nonsubreg_operand.
271 (msp430_nonsubregnonpostinc_or_imm_operand): New.
272
273 2019-10-15 Richard Biener <rguenther@suse.de>
274
275 PR tree-optimization/91929
276 * tree-ssa-pre.c (pre_expr_d::loc): New member.
277 (get_or_alloc_expr_for_name): Initialize it.
278 (get_or_alloc_expr_for_constant): Likewise.
279 (phi_translate_1): Copy it.
280 (create_expression_by_pieces): Use the original location
281 of the expression for the inserted stmt.
282 (compute_avail): Record the location of the stmt for the
283 expressions created.
284
285 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
286
287 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
288 before using tree_to_uhwi.
289
290 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
291
292 * config/s390/s390.md: Run %a0:DI splitters only after reload.
293
294 2019-10-15 Richard Biener <rguenther@suse.de>
295
296 PR tree-optimization/92094
297 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
298 do not adjust the reduction definition def type.
299 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
300 defines the latch argument of the PHI.
301
302 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
303
304 PR target/92035
305 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
306 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
307 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
308 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
309 _mm_maskz_roundscale_round_sd): New intrinsics.
310 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
311 __builtin_ia32_rndscales?_mask_round builtins instead of
312 __builtin_ia32_rndscales?_round.
313 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
314 __builtin_ia32_rndscalesd_round): Remove.
315 (__builtin_ia32_rndscaless_mask_round,
316 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
317 * config/i386/sse.md
318 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
319 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
320 ... this, adjust and add subst atrributes to make it maskable.
321
322 2019-10-15 Richard Biener <rguenther@suse.de>
323
324 PR middle-end/92046
325 * common.opt (fallow-store-data-races): New.
326 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
327 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
328 * doc/invoke.texi (fallow-store-data-races): Document.
329 (--param allow-store-data-races): Remove docs.
330 * opts.c (default_options_table): Enable -fallow-store-data-races
331 at -Ofast.
332 (default_options_optimization): Do not enable --param
333 allow-store-data-races at -Ofast.
334 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
335 instead of PARAM_ALLOW_STORE_DATA_RACES.
336 * tree-ssa-loop-im.c (execute_sm): Likewise.
337
338 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
339
340 PR tree-optimization/92085
341 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
342 instead of calling it unconditionally after
343 delete_dead_or_redundant_assignment and fix indentation.
344
345 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
346
347 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
348 TARGET_VFP_DOUBLE.
349 (*fmsub<SDF:mode>4): Likewise.
350 *fnmsub<SDF:mode>4): Likewise.
351 (*fnmadd<SDF:mode>4): Likewise.
352
353 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
354
355 * doc/tree-ssa.texi: Update renamed macro name.
356
357 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
358
359 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
360 vector constants.
361
362 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
363
364 * config/darwin.c: Use unsigned ints for the picbase label
365 counters, initialise the vars explicitly.
366 (update_pic_label_number_if_needed): Move a variable declaration
367 to where it's needed.
368 (machopic_output_function_base_name): Use a more strict checking
369 assert, and and unsigned int for the picbase label counter.
370 (machopic_get_function_picbase): Likewise.
371
372 2019-10-14 Richard Biener <rguenther@suse.de>
373
374 PR middle-end/92046
375 * dse.c (scan_insn): Use param max_active_local_stores.
376 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
377 based on optimization level.
378 * loop-invariant.c (move_loop_invariants): Adjust
379 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
380 * opts.c (default_options_optimization): Do not adjust
381 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
382 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
383
384 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
385
386 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
387
388 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
389
390 * config/arm/arm.c (arm_option_override): Don't override sched
391 pressure algorithm.
392
393 2019-10-14 Richard Biener <rguenther@suse.de>
394
395 PR tree-optimization/92069
396 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
397 cycles do not set vect_nested_cycle on the latch definition.
398
399 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
400
401 * function-abi.h (expr_callee_abi): Declare.
402 * function-abi.cc (expr_callee_abi): New function.
403
404 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
405
406 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
407 into [1,MAX].
408 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
409 non-zero being represented as [1,MAX].
410
411 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
412
413 * tree-sra.c (dump_access): Add missing braces.
414
415 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
416
417 * config/darwin.c (machopic_indirection_name): Rework the
418 function to emit linker-visible symbols only for indirections
419 in the data section. Clean up the code and update comments.
420
421 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
422
423 * config/darwin.c (machopic_indirect_data_reference): Remove
424 redundant code.
425
426 2019-10-13 Nathan Sidwell <nathan@acm.org>
427
428 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
429
430 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
431
432 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
433 c99_runtime.
434
435 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
436
437 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
438 so non-virutal are before virutals.
439 (output_function): Avoid body modifications.
440
441 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
442
443 * config/pa/pa.c (pa_output_call): Load descriptor address to register
444 %r22. Load function address before global pointer.
445 (pa_attr_length_indirect_call): Adjust length of inline versions of
446 $$dyncall.
447 (pa_output_indirect_call): Remove fast inline version of $$dyncall
448 before normal cases. Update inline $$dyncall sequences to preserve
449 function descriptor address in register %r22.
450 (TRAMPOLINE_CODE_SIZE): Adjust.
451 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
452 register %r22 contains trampoline address.
453 (pa_trampoline_init): Adjust offsets.
454 (pa_trampoline_adjust_address): Likewise.
455 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
456
457 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
458
459 PR target/67183
460 * config/darwin.c (machopic_indirection): New field to flag
461 non-lazy-symbol-pointers in the data section.
462 (machopic_indirection_name): Compute if an indirection should
463 appear in the data section.
464 (machopic_output_data_section_indirection): New callback split
465 from machopic_output_indirection.
466 (machopic_output_stub_indirection): Likewise.
467 (machopic_output_indirection): Retain the code for non-lazy
468 symbol pointers in their regular section.
469 (machopic_finish): Use the new callbacks to order the indirection
470 output.
471
472 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
473
474 * config/darwin-protos.h (machopic_finish): Delete.
475 * config/darwin.c (machopic_finish): Make static.
476
477 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
478
479 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
480 sections when building kernel extension code.
481
482 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
483
484 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
485 later standard."
486
487 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
488
489 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
490 from warning.
491
492 2019-10-12 Jakub Jelinek <jakub@redhat.com>
493
494 PR middle-end/92063
495 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
496 <case VEC_COND_EXPR>: Return false with *handled = false.
497 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
498 recursing on the first operand.
499 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
500 instead of tree_could_trap_p.
501 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
502
503 2019-10-11 Jim Wilson <jimw@sifive.com>
504
505 PR rtl-optimization/91860
506 * combine.c (subst): If new_rtx is a constant, also check for
507 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
508
509 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
510
511 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
512 INTVAL when calling store_bit_field.
513
514 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
515
516 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
517 size.
518
519 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
520
521 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
522 vectorizable_live_operation.
523 (vectorizable_live_operation): Adjust parameters.
524 * tree-vect-stmts.c (vect_init_vector,
525 vect_gen_widened_results_half): Fix typo in function comment.
526 (can_vectorize_live_stmts): Adjust function comment.
527 Adjust parameters. Adjust call to vectorizable_live_operation.
528 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
529 (vect_transform_stmt): Adjust function comment. Adjust call to
530 can_vectorize_live_stmts.
531 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
532
533 2019-10-11 Richard Biener <rguenther@suse.de>
534
535 PR tree-optimization/90883
536 PR tree-optimization/91091
537 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
538 alias-sets both for recording VN table entries and continuing
539 walking after translating through copies. Handle same-sized
540 reads from SSA names by returning the plain SSA name.
541 (eliminate_dom_walker::eliminate_stmt): Properly handle
542 non-size precision stores in redundant store elimination.
543
544 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
545
546 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
547 (ggc_collect): Dump later to not interfere with release_page dump.
548 (ggc_trim): New function.
549 * ggc-none.c (ggc_trim): New.
550 * ggc.h (ggc_trim): Declare.
551
552 2019-10-11 Richard Biener <rguenther@suse.de>
553
554 PR tree-optimization/92066
555 PR tree-optimization/92046
556 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
557 Fix bogus cost model check.
558
559 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
560
561 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
562 (LANG_HOOKS_DECLS): Add it.
563 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
564 update comment for omp_is_optional_argument.
565 * omp-general.c (omp_is_allocatable_or_ptr): New.
566 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
567 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
568 Fortran's optional arguments and allocatable/pointer scalars
569 with use_device_addr.
570
571 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
572
573 PR target/77918
574 * config/s390/2827.md: Add new opcodes.
575 * config/s390/2964.md: Likewise.
576 * config/s390/3906.md: Likewise.
577 * config/s390/8561.md: Likewise.
578 * config/s390/s390-builtins.def (s390_vfchesb): Use
579 the new vec_cmpgev4sf_quiet_nocc.
580 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
581 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
582 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
583 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
584 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
585 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
586 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
587 * config/s390/s390-modes.def (CCSFPS): New mode.
588 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
589 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
590 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
591 (s390_expand_vec_compare): Use non-signaling patterns where
592 necessary.
593 (s390_reverse_condition): Support CCSFPS.
594 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
595 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
596 (asm_fcmp_op): Likewise.
597 (*smaxv2df3_vx): Use pattern for quiet comparison.
598 (*sminv2df3_vx): Likewise.
599 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
600 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
601 (vec_cmpgt<mode>_quiet_nocc): Likewise.
602 (vec_cmplt<mode>_quiet_nocc): New expander.
603 (vec_cmpge<mode>_quiet_nocc): New pattern.
604 (vec_cmple<mode>_quiet_nocc): New expander.
605 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
606 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
607 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
608 (*vec_cmpge<mode>_signaling_nocc): Likewise.
609 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
610 (vec_cmpungt<mode>): New expander.
611 (vec_cmpunge<mode>): Likewise.
612 (vec_cmpuneq<mode>): Use quiet patterns.
613 (vec_cmpltgt<mode>): Allow only on z14+.
614 (vec_cmpordered<mode>): Use quiet patterns.
615 (vec_cmpunordered<mode>): Likewise.
616 (VEC_CMP_EXPAND): Add ungt and unge.
617
618 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
619
620 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
621 parameter.
622 * lto-streamer-out.c: Include tree-dfa.h.
623 (output_cfg): Do not use cfun.
624 (lto_prepare_function_for_streaming): New.
625 (output_function): Do not push cfun; do not initialize loop optimizer.
626 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
627 * passes.c (ipa_write_summaries): Use it.
628 (ipa_write_optimization_summaries): Do not modify bodies.
629 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
630 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
631 * tree-ssa-dse.c (pass_dse::execute): Update use of
632 renumber_gimple_stmt_uids.
633 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
634
635 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
636
637 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
638 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
639
640 2019-10-10 Joseph Myers <joseph@codesourcery.com>
641
642 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
643 macros.
644 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
645 Also define DFP macros for these conditions.
646 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
647 DEC128_SUBNORMAL_MIN): Do not define.
648 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
649 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
650
651 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
652 Sandra Loosemore <sandra@codesourcery.com>
653
654 PR middle-end/26241
655 * doc/lto.texi (IPA): Reference to the IPA passes.
656 * doc/passes.texi (Pass manager): Add node IPA passes and
657 description for each IPA pass.
658
659 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
660
661 * ipa-reference.c: Do not include splay-tree.h
662 (reference_vars_to_consider): Turn to hash map.
663 (get_static_name, ipa_init, analyze_function, propagate,
664 stream_out_bitmap, ipa_reference_write_optimization_summary,
665 ipa_reference_write_optimization_summary): Update.
666
667 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
668
669 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
670
671 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
672
673 * config/darwin.c: Lookup Objective C metadata and force indirection
674 for IVAR refs.
675
676 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
677
678 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
679 addresses.
680 (mem_operand_gpr): Add check for prefixed addresses.
681 (mem_operand_ds_form): Add check for prefixed addresses.
682 (rs6000_legitimate_offset_address_p): If we support prefixed
683 addresses, check for a 34-bit offset instead of 16-bit.
684 (rs6000_legitimate_address_p): Add check for prefixed addresses.
685 Do not allow load/store with update if the address is prefixed.
686 (rs6000_mode_dependent_address): If we support prefixed
687 addresses, check for a 34-bit offset instead of 16-bit.
688
689 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
690
691 PR target/77918
692 * config/s390/vector.md (vcond_comparison_operator): New
693 predicate.
694 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
695
696 2019-10-10 David Malcolm <dmalcolm@redhat.com>
697
698 PR 87488
699 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
700 -D.
701 * configure.ac (--with-documentation-root-url): New option.
702 * configure: Regenerate.
703 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
704 option URL, add it as a new string field of the diagnostic option.
705 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
706 (print_option_information): If get_option_url is non-NULL, call
707 it, and if the result is non-NULL, potentially emit an escape
708 sequence to markup the option text with the resulting URL.
709 * diagnostic.h (diagnostic_context::get_option_url): New callback.
710 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
711 example of JSON output.
712 * opts-diagnostic.h (get_option_url): New decl.
713 * opts.c (get_option_url): New function.
714 * toplev.c (general_init): Initialize the get_option_url callback.
715
716 2019-10-10 David Malcolm <dmalcolm@redhat.com>
717
718 PR 87488
719 * common.opt (fdiagnostics-urls=): New option.
720 (diagnostic-url.h): Add SourceInclude.
721 (diagnostic_url_rule): New enum.
722 * diagnostic-color.c: Include "diagnostic-url.h".
723 (diagnostic_urls_enabled_p): New function.
724 * diagnostic-url.h: New file.
725 * diagnostic.c: Include "diagnostic-url.h".
726 (diagnostic_urls_init): New function.
727 * diagnostic.h (diagnostic_urls_init): New decl.
728 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
729 -fdiagnostics-urls to the list.
730 (-fdiagnostics-urls): New option.
731 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
732 (driver::global_initializations): Call diagnostic_urls_init.
733 * opts-global.c (init_options_once): Likewise.
734 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
735 * pretty-print.c (pretty_printer::pretty_printer): Initialize
736 show_urls.
737 (pp_begin_url): New function.
738 (pp_end_url): New function.
739 (selftest::test_urls): New selftest.
740 (selftest::pretty_print_c_tests): Call it.
741 * pretty-print.h (pretty_printer::show_urls): New field.
742 (pp_begin_url): New decl.
743 (pp_end_url): New decl.
744
745 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
746
747 PR target/92022
748 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
749
750 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
751
752 PR target/88630
753 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
754 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
755 also for TARGET_FPU_SH4_300.
756 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
757 TARGET_SH4_300.
758 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
759 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
760 (*negsf2_i): Split into ...
761 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
762 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
763 (**abssf2_i): Split into ...
764 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
765 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
766 (*negdf2_i): Split into ...
767 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
768 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
769 (**abssf2_i): Split into ...
770 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
771
772 2019-10-10 Richard Biener <rguenther@suse.de>
773
774 PR middle-end/92046
775 * opts.c (finish_options): Do not influence global --params
776 from options that are adjustable per function.
777 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
778 Apply --param adjustment based on active cost-model.
779 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
780 further store-sinking when vectorization or if-conversion
781 are not enabled.
782
783 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
784
785 PR middle-end/92037
786 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
787 rather than ggc_alloc_cleared to alloc symbol table.
788 * toplev.c (general_init): Likewise.
789 * cgraph.h (symbol_table): Explicitly construct every field.
790
791 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
792
793 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
794 (PF_Z15): ... this.
795 * config.gcc: Add z15 as option for --with-arch and --with-tune
796 configure switches.
797 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
798 error reporting for unsupported builtins.
799 * config/s390/s390-opts.h (enum processor_type): Rename
800 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
801 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
802 * config/s390/driver-native.c (s390_host_detect_local_cpu):
803 Likewise.
804 * config/s390/s390-builtins.def: Likewise.
805 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
806 (s390_expand_builtin): Add missing check for unsupported builtins.
807 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
808 (s390_rtx_costs): Likewise.
809 (s390_get_sched_attrmask): Rename arch13 to z15.
810 (s390_get_unit_mask): Likewise.
811 (s390_is_fpd): Likewise.
812 (s390_is_fxd): Likewise.
813 * config/s390/s390.h (enum processor_flags): Likewise.
814 * config/s390/s390.md: Likewise.
815 * config/s390/vector.md: Likewise.
816 * config/s390/vx-builtins.md: Likewise.
817 * config/s390/s390.opt: Add z15 to processor_type value.
818
819 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
820
821 PR target/91035
822 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
823 prototype.
824 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
825 ("split_stack_data", "split_stack_call")
826 ("split_stack_call_<mode>", "split_stack_cond_call")
827 ("split_stack_cond_call_<mode>"): Remove.
828 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
829 insn definition.
830 * config/s390/s390.c (s390_output_split_stack_data): New function.
831 (s390_expand_split_stack_prologue): Use the merged expander.
832
833 2019-10-09 Martin Sebor <msebor@redhat.com>
834
835 PR tree-optimization/90879
836 * builtins.c (check_access): Avoid using maxbound when null.
837 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
838 * doc/invoke.texi (-Wstring-compare): Document new warning option.
839 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
840 conditional.
841 (get_range_strlen): Overwrite initial maxbound when non-null.
842 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
843 changes.
844 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
845 (used_only_for_zero_equality): New function.
846 (handle_builtin_memcmp): Call it.
847 (determine_min_objsize): Return an integer instead of tree.
848 (get_len_or_size, strxcmp_eqz_result): New functions.
849 (maybe_warn_pointless_strcmp): New function.
850 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
851 between a longer string and a smaller array.
852 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
853
854 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
855
856 * config/darwin.c (darwin_override_options): Make the check for
857 Objective-C ABI version more specific for 64bit code.
858
859 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
860
861 * config/darwin.c (machopic_indirect_data_reference): Set flag to
862 indicate that the new symbol is an indirection.
863 (machopic_indirect_call_target): Likewise.
864 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
865 (MACHO_SYMBOL_INDIRECTION_P): New.
866 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
867
868 2019-10-08 Jason Merrill <jason@redhat.com>
869
870 * doc/invoke.texi: Document -fconcepts-ts.
871
872 2019-10-09 Richard Biener <rguenther@suse.de>
873
874 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
875 allow stmts other than GIMPLE_ASSIGN in nested cycles.
876
877 2019-10-08 Richard Biener <rguenther@suse.de>
878
879 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
880 (_stmt_vec_info::force_single_cycle): Likewise.
881 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
882 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
883 * tree-vect-loop.c (vectorizable_reduction): Set
884 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
885 (vect_transform_reduction): Use them to remove redundant code.
886 (vect_transform_cycle_phi): Likewise.
887
888 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
889
890 PR tree-optimization/90836
891 * gcc/match.pd (popcount): New pattern.
892
893 2019-10-08 Martin Sebor <msebor@redhat.com>
894
895 PR middle-end/92026
896 PR middle-end/92014
897 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
898 again once nbytes has been set. Set the access size when not yet set.
899
900 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
901
902 * config/darwin.c (machopic_select_section): Remove dead code for
903 old Objective-C section selection method, replace with unreachable.
904
905 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
906
907 * config/darwin.c (machopic_indirect_data_reference): Check for
908 required indirections before making direct access to defined
909 values.
910 (machopic_output_indirection): Place the indirected pointes for
911 required indirections into the non-lazy symbol pointers section.
912 (darwin_encode_section_info):
913 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
914 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
915
916 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
917
918 PR target/91994
919 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
920 instead of ALL_SSE_REG to check if function call preserves some
921 256-bit SSE registers.
922
923 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
924
925 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
926 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
927 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
928
929 2019-10-08 Richard Biener <rguenther@suse.de>
930
931 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
932 (_stmt_vec_info::is_reduc_info): Add.
933 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
934 (vectorizable_condition): Remove.
935 (vectorizable_shift): Likewise.
936 (vectorizable_reduction): Adjust.
937 (info_for_reduction): New.
938 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
939 (vect_analyze_scalar_cycles_1): ... here.
940 (vect_analyze_loop_operations): Adjust.
941 (needs_fold_left_reduction_p): Simplify for single caller.
942 (vect_is_simple_reduction): Likewise. Remove stmt restriction
943 for nested cycles not part of double reductions.
944 (vect_model_reduction_cost): Pass in the reduction type.
945 (info_for_reduction): New function.
946 (vect_create_epilog_for_reduction): Use it, access reduction
947 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
948 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
949 (vectorize_fold_left_reduction): Remove pointless assert.
950 (vectorizable_reduction): Analyze the full reduction when
951 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
952 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
953 stmt code-generation to vectorizable_* in most cases. Verify
954 code-generation only for cases handled by
955 vect_transform_reductuon.
956 (vect_transform_reduction): Use info_for_reduction to get at
957 reduction meta. Simplify.
958 (vect_transform_cycle_phi): Likewise.
959 (vectorizable_live_operation): Likewise.
960 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
961 at the PHI node for STMT_VINFO_REDUC_TYPE.
962 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
963 longer necessary code.
964 * tree-vect-stmts.c (vectorizable_shift): Make static again.
965 (vectorizable_condition): Likewise. Get at reduction related
966 info via info_for_reduction.
967 (vect_analyze_stmt): Adjust.
968 (vect_transform_stmt): Likewise.
969 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
970 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
971
972 2019-10-08 Joseph Myers <joseph@codesourcery.com>
973
974 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
975 -fno-fp-int-builtin-inexact default for C2X.
976
977 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
978 Richard Biener <rguenther@suse.de>
979
980 PR tree-optimization/91532
981 * tree-if-conv.c: Include tree-ssa-dse.h.
982 (ifcvt_local_dce): Change param from bb to loop,
983 and call dse_classify_store.
984 (tree_if_conversion): Pass loop instead of loop->header as arg
985 to ifcvt_local_dce.
986 * tree-ssa-dse.c: Include tree-ssa-dse.h.
987 (delete_dead_or_redundant_assignment): Remove static qualifier from
988 declaration, and add prototype in tree-ssa-dse.h.
989 (dse_store_status): Move to tree-ssa-dse.h.
990 (dse_classify_store): Remove static qualifier and add new tree param
991 stop_at_vuse, and add prototype in tree-ssa-dse.h.
992 * tree-ssa-dse.h: New header.
993
994 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
995
996 * config/darwin.c (machopic_output_indirection): Don't put
997 hidden symbol indirections into the .data section, use the
998 non-lazy symbol pointers section as normal.
999 (darwin_encode_section_info): Record if a symbol is hidden.
1000 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
1001 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
1002
1003 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1004
1005 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
1006 predicates instead of accessing bits directly.
1007 (machopic_indirect_call_target): Likewise.
1008 (machopic_output_indirection): Likewise.
1009 (darwin_encode_section_info): Improve description. Use renamed
1010 symbol flags. Use predicate macros for variables and functions.
1011 * config/darwin.h:
1012 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
1013 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
1014 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
1015 (MACHO_SYMBOL_VARIABLE_P): New.
1016 (MACHO_SYMBOL_DEFINED_P):New.
1017 (MACHO_SYMBOL_STATIC_P): New.
1018 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
1019 (SYMBOL_FLAG_SUBT_DEP): New.
1020 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
1021
1022 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1023
1024 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
1025 (msp430_expand_epilogue): Likewise.
1026 * config/msp430/predicates.md: Likewise.
1027 * config/msp430/msp430.md: Likewise.
1028 Replace blocks of 8 spaces with tabs.
1029
1030 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1031
1032 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
1033 * config/msp430/msp430.c (msp430_split_addsi): New.
1034 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
1035 a block of C code for splitting addsi.
1036
1037 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
1038
1039 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
1040 ix86_expand_rounddf_32): Reorder functions.
1041 * config/i386/i386-protos.h: Update.
1042
1043 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1044
1045 * config.in: Regenerate.
1046 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
1047 Add new "Yx" constraint.
1048 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
1049 function.
1050 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
1051 prototype.
1052 * config/msp430/msp430.c (msp430_option_override): Allow the lower
1053 code/data region to be selected in the small memory model.
1054 (msp430_section_attr): Don't warn if the "section" and "lower"
1055 attributes are used together.
1056 (msp430_handle_generic_attribute): Likewise.
1057 (msp430_var_in_low_mem): New function.
1058 (TARGET_ENCODE_SECTION_INFO): Define.
1059 (msp430_encode_section_info): New function.
1060 (gen_prefix): Return early in the small memory model.
1061 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
1062 ".lower" prefix if -m{code,data}-region=lower have been passed.
1063 (msp430_output_aligned_decl_common): Emit common symbols when
1064 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
1065 set.
1066 (TARGET_ASM_FILE_END): Define.
1067 (msp430_file_end): New function.
1068 (msp430_do_not_relax_short_jumps): Allow relaxation when
1069 function will be in the lower region.
1070 (msp430_op_not_in_high_mem): New function.
1071 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
1072 the 'X' operand selector.
1073 Clarify comment for 'x' operand selector.
1074 * config/msp430/msp430.h (LINK_SPEC): Propagate
1075 -m{code,data}-region to the linker via spec function
1076 msp430_propagate_region_opt.
1077 (msp430_propagate_region_opt): New prototype.
1078 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
1079 (SYMBOL_FLAG_LOW_MEM): Define.
1080 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
1081 selector.
1082 (zero_extendqihi2): Fix operand number used by "%X" selector.
1083 (zero_extendqisi2): Likewise.
1084 (zero_extendhisi2): Likewise.
1085 (movqi): Use "Yx" constraint in place of "%X" operand selector.
1086 (movhi): Likewise.
1087 (addqi3): Likewise.
1088 (addhi3): Likewise.
1089 (addsi3): Likewise.
1090 (addhi3_cy): Likewise.
1091 (addchi4_cy): Likewise.
1092 (subqi3): Likewise.
1093 (subhi3): Likewise.
1094 (subsi3): Likewise.
1095 (bic<mode>3): Likewise.
1096 (and<mode>3): Likewise.
1097 (ior<mode>3): Likewise.
1098 (xor<mode>3): Likewise.
1099 (slli_1): Add missing "%X" operand selector.
1100 (slll_1): Likewise.
1101 (slll_2): Likewise.
1102 (srai_1): Likewise.
1103 (sral_1): Likewise.
1104 (sral_2): Likewise.
1105 (srli_1): Likewise.
1106 (srll_1): Likewise.
1107 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1108 selector.
1109 (cbranchhi4_real): Likewise.
1110 (cbranchqi4_reversed): Likewise.
1111 (cbranchhi4_reversed): Likewise.
1112 (*bitbranch<mode>4): Likewise.
1113 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1114 * config/msp430/msp430.opt (mcode-region=): Set default to
1115 MSP430_REGION_LOWER. Improve docstring.
1116 (mdata-region=): Likewise.
1117 (muse-lower-region-prefix): New option.
1118 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1119 mdata-region=none multilib.
1120 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1121 mdata-region=none multilib.
1122 MULTILIB_EXCEPTIONS: Remove.
1123 MULTILIB_REQUIRED: Define.
1124 * configure: Regenerate.
1125 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1126 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1127 * doc/extend.texi: Clarify comment for {upper,lower,either}
1128 function attributes.
1129 Add separate description for "lower" variable attribute.
1130
1131 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1132
1133 PR target/77918
1134 * optabs-tree.c (vcond_icode_p): New function.
1135 (vcond_eq_icode_p): Likewise.
1136 (expand_vec_cond_expr_p): Use vcond_icode_p and
1137 vcond_eq_icode_p.
1138 * optabs.c (can_vcond_compare_p): New function.
1139 * optabs.h (can_vcond_compare_p): Likewise.
1140
1141 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1142
1143 PR target/77918
1144 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1145 caller passes a non-trapping condition.
1146 (is_gimple_condexpr): Allow trapping conditions.
1147 (is_gimple_condexpr_1): New helper function.
1148 (is_gimple_condexpr_for_cond): New function, acts like old
1149 is_gimple_condexpr.
1150 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1151 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1152 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1153 * gimplify.c (gimplify_cond_expr): Use
1154 is_gimple_condexpr_for_cond.
1155 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1156 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1157 VEC_COND_EXPR.
1158 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1159 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1160 is_gimple_condexpr_for_cond, remove pointless tmp check
1161 (forward_propagate_into_cond): Remove pointless tmp check.
1162
1163 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1164
1165 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1166 match that of other gsi_next_* functions. Adjust the comment.
1167 (gsi_start_nonvirtual_phis): New function.
1168 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1169 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1170
1171 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1172
1173 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1174 setjmp situation here. Fix a verb's ending: "the exact variables or
1175 elements for which there are warnings depends" -> "... depend".
1176
1177 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1178
1179 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1180
1181 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1182
1183 * ipa-prop.c (ipa_vr::nonzero_p): New.
1184 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1185 non-zero range.
1186 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1187 * tree-vrp.c (range_has_numeric_bounds_p): New.
1188 (range_int_cst_p): Use range_has_numeric_bounds_p.
1189 (get_range_op_handler): New.
1190 (supported_types_p): New.
1191 (defined_ranges_p): New.
1192 (drop_undefines_to_varying): New.
1193 (range_fold_binary_symbolics_p): New.
1194 (range_fold_unary_symbolics_p): New.
1195 (range_fold_unary_expr): Extract out into above functions.
1196 (range_fold_binary_expr): Same.
1197 (value_range_base::normalize_addresses): New.
1198 (value_range_base::normalize_symbolics): Normalize addresses.
1199 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1200
1201 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1202
1203 * tree-vrp.c (value_range_base::singleton_p): Use
1204 value_range_base::num_pairs instead of vrp_val_is* to check
1205 if a range has one sub-range.
1206
1207 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1208
1209 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1210 DEF is not a true earlyclobber but is tied to a specific input
1211 operand, and so is effectively earlyclobber wrt inputs that have
1212 different values.
1213 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1214
1215 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1216
1217 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1218 (pod_mode): Mark operators likewise.
1219 (scalar_int_mode): Mark non-default constructors and
1220 operators with CONSTEXPR.
1221 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1222 (fixed_size_mode): Likewise.
1223
1224 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1225
1226 PR target/91994
1227 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1228 and wrap the unspec_volatile in a parallel.
1229 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1230 the unspec_volatile.
1231 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1232 unspec_volatile to be wrapped in a parallel.
1233 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1234 (ix86_add_reg_usage_to_vzerouppers): New functions.
1235 (rest_of_handle_insert_vzeroupper): Use them to add register
1236 usage information to the vzeroupper instructions.
1237
1238 2019-10-07 Richard Biener <rguenther@suse.de>
1239
1240 PR tree-optimization/91975
1241 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1242 handle invariants.
1243
1244 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1245
1246 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1247 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1248
1249 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1250
1251 * config/darwin.c (darwin_override_options): Adjust objective-c
1252 ABI version error messages to avoid punctuation and contracted
1253 negations.
1254
1255 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1256
1257 * ipa-inline.c: Fix type; compute size rather than self_size
1258 for size of caller function.
1259
1260 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1261
1262 PR target/59888
1263 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1264 choose const_data section for constants with relocations.
1265 (machopic_select_section): Pass relocation flag to
1266 darwin_rodata_section ().
1267
1268 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1269
1270 PR tree-optimization/91734
1271 * generic-match-head.c: Include fold-const-call.h.
1272 * match.pd (sqrt(x) cmp c): Check the boundary value and
1273 in case inexact computation of c*c affects comparison of the boundary,
1274 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1275 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1276 for -frounding-math. For c2, try the next smaller or larger floating
1277 point constant depending on comparison code and if it has the same
1278 sqrt as c2, use it instead of c2.
1279
1280 2019-10-04 Martin Sebor <msebor@redhat.com>
1281
1282 PR middle-end/91977
1283 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1284 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1285 uninitialized objects.
1286
1287 2019-10-04 Martin Sebor <msebor@redhat.com>
1288
1289 * builtins.c (compute_objsize): Add an argument.
1290 * tree-object-size.c (addr_object_size): Same.
1291 (compute_builtin_object_size): Same.
1292 * tree-object-size.h (compute_builtin_object): Same.
1293
1294 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1295
1296 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1297
1298 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1299
1300 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1301
1302 2019-10-04 Martin Jambor <mjambor@suse.cz>
1303
1304 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1305 fntype when switching to calling memcpy instead of memset.
1306
1307 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1308
1309 * hash-table.h (hash_table::empty_slow): Don't assign
1310 size_t values to int variables.
1311
1312 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1313
1314 * expr.c (convert_mode_scalar): Remove shadowing local var.
1315 (emit_block_move): Rename local vars.
1316 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1317 (emit_push_insn): Rename local vars.
1318 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1319 shadowing local vars.
1320 (store_constructor): Remove shadowing local vars. Rename local var.
1321 (store_field, expand_cond_expr_using_cmove,
1322 expand_expr_real_2): Remove shadowing local vars.
1323 (expand_expr_real_1,
1324 do_store_flag): Remove shadowing local vars. Rename local vars.
1325
1326 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1327
1328 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1329
1330 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1331
1332 * genmatch.c (commutate): Rename local var.
1333 (lower_cond): Reuse local var.
1334 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1335 dt_operand::gen, dt_operand::gen_gimple_expr,
1336 dt_simplify::gen): Add a param. Rename generated vars.
1337 (decision_tree::insert_operand,
1338 (capture_info::walk_match, capture_info::walk_result,
1339 capture_info::walk_c_expr): Rename local vars.
1340 (expr::gen_transform): Rename generated vars.
1341 Use snprintf. Rename local vars.
1342 (capture::gen_transform, dt_operand::get_name,
1343 dt_operand::gen_opname): Rename generated vars.
1344 (write_predicate): Adjust call to gen_kids.
1345 (parser::get_internal_capture_id): Rename generated vars.
1346 (parser::parse_expr): Rename local vars.
1347 (parser::parse_if): Remove local var.
1348 (parser::parse_pattern, add_operator): Rename local vars.
1349
1350 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1351
1352 * builtins.def (DEF_C2X_BUILTIN): New macro.
1353 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1354 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1355 (strndup): Use DEF_C2X_BUILTIN.
1356 * coretypes.h (enum function_class): Add function_c2x_misc.
1357
1358 2019-10-04 Maya Rashish <coypu@sdf.org>
1359
1360 * ira-color.c (update_costs_from_allocno): Call
1361 ira_init_register_move_cost_if_necessary.
1362
1363 2019-10-04 Jeff Law <law@redhat.com>
1364
1365 * config/h8300/h8300.md (cpymemsi): Disable.
1366 (movmd, movmd_internal_<mode>, movstr, movsd):
1367 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1368 (movmd splitter, movsd splitter): Likewise.
1369
1370 * range-op.cc (range_tests): Avoid two tests when ints and
1371 shorts are the same size.
1372
1373 2019-10-04 Richard Biener <rguenther@suse.de>
1374
1375 PR lto/91968
1376 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1377 BLOCK_VARS.
1378
1379 2019-10-04 Richard Biener <rguenther@suse.de>
1380
1381 PR tree-optimization/91982
1382 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1383 against EXTRACT_LAST_REDUCTION.
1384 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1385
1386 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1387
1388 * range-op.o (value_range_from_overflowed_bounds): Rename from
1389 adjust_overflow_bound.
1390 (value_range_with_overflow): Rename from
1391 create_range_with_overflow.
1392 (create_possibly_reversed_range): Adjusted for above renames.
1393 (operator_*::wi_fold): Same.
1394 (cross_product_operator::wi_cross_productor): Same.
1395
1396 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1397
1398 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1399 -Wshadow=compatible-local): Fix description.
1400 Add an example where -Wshadow=compatible-local does not
1401 warn.
1402
1403 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1404
1405 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1406
1407 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1408 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1409
1410 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1411
1412 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1413 can_move_by_pieces issue.
1414
1415 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1416
1417 PR target/87243
1418 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1419 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1420 is available and the user has not set one on the command line.
1421
1422 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1423
1424 PR target/91769
1425 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1426 instead of REGNO equality check on addr.reg.
1427
1428 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1429
1430 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1431 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1432 * doc/invoke.texi (inline-heuristics-hint-percent,
1433 inline-heuristics-hint-percent-O2): Document.
1434 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1435 hint attribute.
1436 (can_inline_edge_by_limits_p): Use it.
1437
1438 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1439
1440 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1441 to print CONST_DOUBLEs.
1442
1443 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1444
1445 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1446 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1447 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1448
1449 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1450
1451 * Makefile.in (OBJS): Add range.o and range-op.o.
1452 Remove wide-int-range.o.
1453 * function-tests.c (test_ranges): New.
1454 (function_tests_c_tests): Call test_ranges.
1455 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1456 range_fold_unary_expr instead of extract_range_from_unary_expr.
1457 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1458 * range-op.cc: New file.
1459 * range-op.h: New file.
1460 * range.cc: New file.
1461 * range.h: New file.
1462 * selftest.h (range_tests): New prototype.
1463 * ssa.h: Include range.h.
1464 * tree-vrp.c (value_range_base::value_range_base): New
1465 constructors.
1466 (value_range_base::singleton_p): Do not call
1467 ranges_from_anti_range until sure we will need to.
1468 (value_range_base::type): Rename gcc_assert to
1469 gcc_checking_assert.
1470 (vrp_val_is_max): New argument.
1471 (vrp_val_is_min): Same.
1472 (wide_int_range_set_zero_nonzero_bits): Move from
1473 wide-int-range.cc.
1474 (extract_range_into_wide_ints): Remove.
1475 (extract_range_from_multiplicative_op): Remove.
1476 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1477 from extract_range_from_binary_expr.
1478 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1479 from extract_range_from_binary_expr.
1480 (extract_range_from_binary_expr): Remove.
1481 (normalize_for_range_ops): New.
1482 (range_fold_binary_expr): New.
1483 (range_fold_unary_expr): New.
1484 (value_range_base::num_pairs): New.
1485 (value_range_base::lower_bound): New.
1486 (value_range_base::upper_bound): New.
1487 (value_range_base::upper_bound): New.
1488 (value_range_base::contains_p): New.
1489 (value_range_base::invert): New.
1490 (value_range_base::union_): New.
1491 (value_range_base::intersect): New.
1492 (range_compatible_p): New.
1493 (value_range_base::operator==): New.
1494 (determine_value_range_1): Call range_fold_*expr instead of
1495 extract_range_from_*expr.
1496 * tree-vrp.h (class value_range_base): Add new constructors.
1497 Add methods for union_, intersect, operator==, contains_p,
1498 num_pairs, lower_bound, upper_bound, invert.
1499 (vrp_val_is_min): Add handle_pointers argument.
1500 (vrp_val_is_max): Same.
1501 (extract_range_from_unary_expr): Remove.
1502 (extract_range_from_binary_expr): Remove.
1503 (range_fold_unary_expr): New.
1504 (range_fold_binary_expr): New.
1505 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1506 range_fold_binary_expr instead of extract_range_from_binary_expr.
1507 (vr_values::extract_range_basic): Same.
1508 (vr_values::extract_range_from_unary_expr): Call
1509 range_fold_unary_expr instead of extract_range_from_unary_expr.
1510 * wide-int-range.cc: Remove.
1511 * wide-int-range.h: Remove.
1512
1513 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1514
1515 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1516 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1517 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1518 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1519 macro.
1520
1521 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1522
1523 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1524 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1525 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1526 * glimits.h: Likewise.
1527
1528 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1529
1530 PR rtl-optimization/91976
1531 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1532 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1533 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1534
1535 2019-10-02 Martin Sebor <msebor@redhat.com>
1536
1537 PR tree-optimization/80936
1538 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1539
1540 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1541
1542 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1543 instead of reg_class_contents[ALL_REGS].
1544
1545 2019-09-30 Jason Merrill <jason@redhat.com>
1546
1547 Add some hash_map_safe_* functions like vec_safe_*.
1548 * hash-map.h (default_hash_map_size): New variable.
1549 (create_ggc): Use it as default argument.
1550 (hash_map_maybe_create, hash_map_safe_get)
1551 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1552
1553 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1554
1555 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1556 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1557 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1558 (can_inline_edge_by_limits_p): Use it.
1559 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1560 (want_inline_small_function_p): Use O2 bounds.
1561 (edge_badness): LIkewise.
1562 * opts.c (default_options): Add OPT_finline_functions.
1563 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1564 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1565 New parameters.
1566 * doc/invoke.texi (-finline-functions): Update documentation.
1567 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1568 inline-min-speedup-O2): Document.
1569 (early-inlining-insns-O2): Simplify docs.
1570
1571 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1572
1573 PR rtl-optimization/87047
1574 * ifcvt.c (average_cost): New static function. Use it...
1575 (noce_process_if_block): ... here.
1576
1577 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1578
1579 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1580 * config/rs6000/rs6000-string.c (expand_block_move): Add
1581 might_overlap parm.
1582 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1583 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1584
1585 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1586
1587 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1588 (expand_builtin_memcpy): Use might_overlap parm.
1589 (expand_builtin_mempcpy_args): Use might_overlap parm.
1590 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1591 (expand_builtin_memory_copy_args): Add might_overlap parm.
1592 * expr.c (emit_block_move_via_cpymem): Rename to
1593 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1594 or movmem optab as appropriate.
1595 (emit_block_move_hints): Add might_overlap parm, do the right
1596 thing for might_overlap==true.
1597 * expr.h (emit_block_move_hints): Update prototype.
1598
1599 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1600
1601 * tree-eh.h (unsplit_eh_edges): Declare.
1602 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1603 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1604 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1605 (struct store_immediate_info): Add lp_nr field.
1606 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1607 initialize lp_nr with it.
1608 (struct merged_store_group): Add lp_nr and only_constants fields.
1609 (merged_store_group::merged_store_group): Initialize them.
1610 (merged_store_group::can_be_merged_into): Deal with them.
1611 (pass_store_merging): Rename terminate_and_release_chain into
1612 terminate_and_process_chain.
1613 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1614 renaming and remove useless assertions.
1615 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1616 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1617 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1618 instead of always recomputing it and compare lp_nr.
1619 (imm_store_chain_info::output_merged_store): If the group is in an
1620 active EH region, register new stores if they can throw. Moreover,
1621 if the insertion has created new basic blocks, adjust the PHI nodes
1622 of the post landing pad.
1623 (imm_store_chain_info::output_merged_stores): If the original stores
1624 are in an active EH region, deregister them.
1625 (lhs_valid_for_store_merging_p): Prettify.
1626 (adjust_bit_pos): New function extracted from...
1627 (mem_valid_for_store_merging): ...here. Use it for the base address
1628 and also for the offset if it is the addition of a constant.
1629 (lp_nr_for_store): New function.
1630 (pass_store_merging::process_store): Change return type to bool.
1631 Call lp_nr_for_store to initialize the store info. Propagate the
1632 return status of various called functions to the return value.
1633 (store_valid_for_store_merging_p): New predicate.
1634 (enum basic_block_status): New enumeration.
1635 (get_status_for_store_merging): New function.
1636 (pass_store_merging::execute): If the function can throw and catch
1637 non-call exceptions, unsplit the EH edges on entry and clean up the
1638 CFG on exit if something changed. Call get_status_for_store_merging
1639 for every basic block and keep the chains open across basic blocks
1640 when possible. Terminate and process open chains at the end, if any.
1641
1642 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1643
1644 * reginfo.c (globalize_reg): Fix shadowed variable in
1645 function_abis walk.
1646
1647 2019-10-02 Martin Jambor <mjambor@suse.cz>
1648
1649 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1650 do not compute some stuff when set.
1651 (cgraph_node::create_edge): Likewise.
1652 (cgraph_node::create_indirect_edge): Renamed last parameter to
1653 coning_p and flipped its meaning, don't even calculate
1654 inline_failed when set.
1655 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1656 (symbol_table::::create_edge): Likewise.
1657 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1658 the default value.
1659 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1660 call graph edge creating functions.
1661
1662 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1663
1664 PR c++/91222
1665 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1666 namespace types.
1667
1668 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1669
1670 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1671
1672 2019-10-02 Richard Biener <rguenther@suse.de>
1673
1674 * tree-vectorizer.h (vect_transform_reduction): Declare.
1675 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1676 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1677 stmt transform to ...
1678 (vect_transform_reduction): ... this.
1679
1680 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1681
1682 * omp-low.c (lower_omp_target): Dereference optional argument
1683 to work with the right pointer.
1684
1685 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1686
1687 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1688 false.
1689 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1690 * langhooks.h (omp_is_optional_argument): New hook.
1691 * omp-general.c (omp_is_optional_argument): New.
1692 * omp-general.h (omp_is_optional_argument): New declaration.
1693 * omp-low.c (lower_omp_target): Create temporary for received value
1694 and take the address for new_var if the original variable was a
1695 DECL_BY_REFERENCE. Use size of referenced object when a
1696 pass-by-reference optional argument used as argument to firstprivate.
1697
1698 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1699
1700 PR tree-optimization/91940
1701 * tree-vect-patterns.c: Include tree-vector-builder.h and
1702 vec-perm-indices.h.
1703 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1704 unpromoting the argument back to uint16_t, or by converting into a
1705 rotate, or into shifts plus ior.
1706
1707 2019-10-02 Richard Biener <rguenther@suse.de>
1708
1709 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1710 New.
1711 (vect_transform_cycle_phi): Declare.
1712 * tree-vect-stmts.c (vect_transform_stmt): Call
1713 vect_transform_cycle_phi.
1714 * tree-vect-loop.c (vectorizable_reduction): Split out
1715 PHI transformation stage to ...
1716 (vect_transform_cycle_phi): ... here.
1717
1718 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1719
1720 PR middle-end/91957
1721 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1722 eliminable registers.
1723 (make_hard_regno_live): Likewise, and don't make them live.
1724
1725 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1726
1727 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1728 Call pp_emit_prefix.
1729 (layout::print_source_line): Likewise.
1730 (layout::start_annotation_line): Likewise.
1731 (diagnostic_show_locus): Remove call to temporarily clear the
1732 prefix.
1733 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1734 interaction of pp_set_prefix with rulers and fix-it hints.
1735 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1736 prefix when calling diagnostic_show_locus, rather than destroying
1737 it afterwards.
1738 (print_parseable_fixits): Temporarily clear prefix.
1739 * pretty-print.c (pp_format): Save and restore line_length, rather
1740 than assuming it is zero.
1741 (pp_output_formatted_text): Remove assertion that line_length is
1742 zero.
1743
1744 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1745
1746 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1747 Rename to ...
1748 (nonoverlapping_refs_since_match_p): ... this; handle also
1749 ARRAY_REFs.
1750 (alias_stats): Update stats.
1751 (dump_alias_stats): Likewise.
1752 (cheap_array_ref_low_bound): New function.
1753 (aliasing_matching_component_refs_p): Add partial_overlap
1754 argument;
1755 pass it to nonoverlapping_refs_since_match_p.
1756 (aliasing_component_refs_walk): Update call of
1757 aliasing_matching_component_refs_p
1758 (nonoverlapping_array_refs_p): New function.
1759 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1760 indirect_refs_may_alias_p): Update calls of
1761 nonoverlapping_refs_since_match_p.
1762
1763 2019-10-01 Maya Rashish <coypu@sdf.org>
1764
1765 PR target/85401
1766 * ira-color.c (allocno_copy_cost_saving): Call
1767 ira_init_register_move_cost_if_necessary.
1768
1769 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1770
1771 * Makefile.in (gnat_install_lib): New variable.
1772 * configure.ac: Substitute it.
1773 * configure: Regenerate.
1774
1775 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1776
1777 PR lto/91222
1778 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1779 is matched with non-C++ type
1780
1781 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1782
1783 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1784 after local CSE.
1785
1786 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1787
1788 * doc/invoke.texi (early-inlining-insns-O2): Document.
1789 (early-inlining-insns): Update.
1790 * params.def (early-inlining-insns-O2): New bound.
1791 (early-inlining-insns): Update docs.
1792 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1793
1794 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1795
1796 PR target/88562
1797 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1798 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1799 a memory access insn.
1800
1801 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1802
1803 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1804 vpmsumd.
1805
1806 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1807
1808 PR target/77918
1809 * config/s390/s390.c (s390_expand_vec_compare): Use
1810 gen_vec_cmpordered and gen_vec_cmpunordered.
1811 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1812 vec_unordered): Delete.
1813 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1814 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1815 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1816 (vec_cmp<code>): Generic dispatcher.
1817
1818 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1819
1820 PR target/77918
1821 * config/s390/vector.md (V_HW): Add V1TI in order to make
1822 vcond$a$b generate vcondv1tiv1tf.
1823
1824 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1825
1826 PR rtl-optimization/91948
1827 * ira-build.c (ira_create_allocno): Initialize
1828 ALLOCNO_CROSSED_CALLS_ABIS.
1829 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1830 than regno to ira_need_caller_save_p.
1831
1832 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1833
1834 * config/i386/i386-options.c
1835 (ix86_recompute_optlev_based_flags): New, moved out of...
1836 (ix86_option_override_internal): ... this. Call it.
1837 (ix86_override_options_after_change): Call it here too.
1838
1839 PR debug/91507
1840 * dwarf2out.c (override_type_for_decl_p): New.
1841 (gen_variable_die): Use it.
1842
1843 2019-10-01 Richard Biener <rguenther@suse.de>
1844
1845 * tree-vect-loop.c (vectorizable_reduction): Move variables
1846 to where they are used.
1847
1848 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1849
1850 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1851 (build_def_use): Use PC instead of CC0 in a comment.
1852
1853 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1854
1855 * rtl.def (CLOBBER_HIGH): Delete.
1856 * doc/rtl.texi (clobber_high): Remove documentation.
1857 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1858 (reg_is_clobbered_by_clobber_high): Delete.
1859 (gen_hard_reg_clobber_high): Likewise.
1860 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1861 * cfgexpand.c (expand_gimple_stmt): Likewise.
1862 * combine-stack-adj.c (single_set_for_csa): Likewise.
1863 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1864 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1865 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1866 * cse.c (invalidate_reg): Remove clobber_high parameter.
1867 (invalidate): Update call accordingly.
1868 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1869 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1870 (count_reg_usage, insn_live_p): Likewise.
1871 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1872 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1873 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1874 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1875 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1876 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1877 (mark_nonreg_stores_2): Likewise.
1878 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1879 (df_get_call_refs): Likewise.
1880 * dwarf2out.c (mem_loc_descriptor): Likewise.
1881 * emit-rtl.c (verify_rtx_sharing): Likewise.
1882 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1883 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1884 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1885 * genemit.c (gen_exp, gen_insn): Likewise.
1886 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1887 * haifa-sched.c (haifa_classify_rtx): Likewise.
1888 * ira-build.c (create_insn_allocnos): Likewise.
1889 * ira-costs.c (scan_one_insn): Likewise.
1890 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1891 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1892 * jump.c (mark_jump_label_1): Likewise.
1893 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1894 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1895 handling.
1896 (mark_not_eliminable): Likewise.
1897 * lra-lives.c (process_bb_lives): Likewise.
1898 * lra.c (new_insn_reg): Remove clobber_high parameter.
1899 (collect_non_operand_hard_regs): Likewise. Update call to new
1900 insn_reg. Remove CLOBBER_HIGH handling.
1901 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1902 to collect_non_operand_hard_regs.
1903 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1904 Update call to new_insn_reg.
1905 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1906 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1907 (move2add_note_store): Likewise.
1908 * print-rtl.c (print_pattern): Likewise.
1909 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1910 (if_test_bypass_p): Likewise.
1911 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1912 * reginfo.c (reg_scan_mark_refs): Likewise.
1913 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1914 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1915 (forget_old_reloads_1): Likewise.
1916 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1917 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1918 (dbr_schedule): Likewise.
1919 * resource.c (update_live_status, mark_referenced_resources)
1920 (mark_set_resources): Likewise.
1921 * rtl.c (copy_rtx): Likewise.
1922 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1923 (note_pattern_stores): Likewise.
1924 (reg_is_clobbered_by_clobber_high): Delete.
1925 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1926 CLOBBER_HIGH handling.
1927
1928 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1929
1930 PR target/91452
1931 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1932 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1933 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1934 Handle ARM_PCS_TLSDESC.
1935 (aarch64_tlsdesc_abi_id): New function.
1936 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1937 rtx instead of a list of clobbers and clobber_highs.
1938 (tlsdesc_small_<mode>): Update accordingly.
1939
1940 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1941
1942 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1943 extra callee_abi argument.
1944 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1945 Insert a CALLEE_ABI unspec into the call pattern as the second
1946 element in the PARALLEL.
1947 (aarch64_simd_call_p): Delete.
1948 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1949 the new CALLEE_ABI element of the PARALLEL.
1950 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1951 from the function type, if given.
1952 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1953 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1954 when passed the function_arg_info end marker.
1955 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1956 final argument of gen_sibcall.
1957 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1958 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1959 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1960 pattern.
1961 (call_value): Likewise operand 3.
1962 (sibcall): Likewise operand 2. Place the unspec before rather than
1963 after the return.
1964 (sibcall_value): Likewise operand 3.
1965 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1966 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1967 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1968 constraint strings.
1969 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1970
1971 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1972
1973 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1974 choose_hard_reg_mode.
1975 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1976
1977 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1978
1979 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1980 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1981 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1982
1983 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1984
1985 * diagnostic-show-locus.c (line_label::line_label): Initialize
1986 m_has_vbar.
1987 (line_label::comparator): Reverse the sort order by m_state_idx,
1988 so that when the list is walked backwards the labels appear in
1989 order of insertion into the rich_location.
1990 (line_label::m_has_vbar): New field.
1991 (layout::print_any_labels): When dealing with multiple labels at
1992 the same line and column, only print vertical bars for the one
1993 with the highest label_line.
1994 (selftest::test_one_liner_labels): Update test for multiple labels
1995 to expect the labels to be in the order of insertion into the
1996 rich_location. Add a test for many such labels, where the column
1997 numbers are out-of-order relative to the insertion order.
1998
1999 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2000
2001 * config/i386/i386.h (ix86_frame::expensive_p): New field.
2002 (ix86_frame::expensive_count): Likewise.
2003 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
2004 of use_fast_prologue_epilogue robust against incidental changes
2005 in function size.
2006
2007 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2008
2009 PR target/77918
2010 * config/s390/vector.md (vec_unordered<mode>): Call
2011 gen_vec_ordered<mode>.
2012
2013 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
2014
2015 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
2016 New pattern for ASRD.
2017 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
2018 * internal-fn.def (IFN_DIV_POW2): New internal function.
2019 * optabs.def (sdiv_pow2_optab): New optab.
2020 * tree-vect-patterns.c (vect_recog_divmod_pattern):
2021 Modify pattern to support new operation.
2022 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
2023 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
2024 Document new target selector.
2025
2026 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2027
2028 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
2029 to test whether we're compiling a vector PCS function and to test
2030 whether the function needs to save a particular register.
2031 Remove the vector PCS handling of df_set_regs_ever_live.
2032 (aarch64_components_for_bb): Use crtl->abi to test whether
2033 the function needs to save a particular register.
2034 (aarch64_process_components): Use crtl->abi to test whether
2035 we're compiling a vector PCS function.
2036 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
2037 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
2038
2039 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2040
2041 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
2042 Delete.
2043 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
2044 whether the block calls a function that clobbers more registers
2045 than the current function is allowed to.
2046 (aarch64_use_simple_return_insn_p): Delete.
2047 * config/aarch64/aarch64.md (simple_return): Remove condition.
2048
2049 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2050
2051 * function-abi.h (function_abi_aggregator): New class.
2052 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
2053 function.
2054 * ira.c (update_equiv_regs_prescan): New function. Call
2055 set_paradoxical_subreg here rather than...
2056 (update_equiv_regs): ...here.
2057 (ira): Call update_equiv_regs_prescan.
2058
2059 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2060
2061 * hard-reg-set.h (regs_invalidated_by_call): Only define if
2062 IN_TARGET_CODE.
2063 (call_used_or_fixed_regs): Likewise.
2064 (call_used_or_fixed_reg_p): Likewise.
2065 * reginfo.c (regs_invalidated_by_call): New macro.
2066
2067 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2068
2069 * shrink-wrap.c: Include function-abi.h.
2070 (requires_stack_frame_p): Use crtl->abi to test whether the
2071 current function can use a register without saving it first.
2072
2073 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2074
2075 * sel-sched-ir.h (_def::crosses_call): Replace with...
2076 (_def::crossed_call_abis): ..this new field.
2077 (def_list_add): Take a mask of ABIs instead of a crosses_call
2078 boolean.
2079 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
2080 of _def accordingly.
2081 * sel-sched.c: Include function-abi.h.
2082 (hard_regs_data::regs_for_call_clobbered): Delete.
2083 (reg_rename::crosses_call): Replace with...
2084 (reg_rename::crossed_call_abis): ...this new field.
2085 (fur_static_params::crosses_call): Replace with...
2086 (fur_static_params::crossed_call_abis): ...this new field.
2087 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
2088 (init_hard_regs_data): Use crtl->abi to test which registers the
2089 current function would need to save before it uses them.
2090 (mark_unavailable_hard_regs): Update handling of call-clobbered
2091 registers, using call_clobbers_in_region to find out which registers
2092 might be call-clobbered (but without taking -fipa-ra into account
2093 for now). Remove separate handling of partially call-clobbered
2094 registers.
2095 (verify_target_availability): Use crossed_call_abis instead of
2096 crosses_call.
2097 (get_spec_check_type_for_insn, find_used_regs): Likewise.
2098 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
2099
2100 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2101
2102 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2103 function to test whether a register is fully or partly clobbered.
2104
2105 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2106
2107 * rtlanal.c: Include function-abi.h.
2108 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2109 function and clobbers_reg_p to test whether the register
2110 is call-clobbered.
2111 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2112 to get the ABI of the called function and full_reg_clobbers to
2113 get the set of fully call-clobbered registers. Warn about the
2114 pitfalls of using this mode.
2115
2116 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2117
2118 * reload.c: Include function-abi.h.
2119 (find_equiv_reg): Use clobbers_reg_p to test whether either
2120 of the equivalent registers is clobbered by a call.
2121 * reload1.c: Include function-abi.h.
2122 (reg_reloaded_call_part_clobbered): Delete.
2123 (reload): Use crtl->abi to test which registers would need
2124 saving in the prologue before use.
2125 (find_reg): Likewise.
2126 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2127 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2128 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2129
2130 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2131
2132 * regrename.h (du_head::call_clobber_mask): New field.
2133 (du_head::need_caller_save_reg): Replace with...
2134 (du_head::call_abis): ...this new field.
2135 * regrename.c: Include function-abi.h.
2136 (call_clobbered_in_chain_p): New function.
2137 (check_new_reg_p): Use crtl->abi when deciding whether a register
2138 is free for use after RA. Use call_clobbered_in_chain_p to test
2139 whether a candidate register would be clobbered by a call.
2140 (find_rename_reg): Don't add call-clobber conflicts here.
2141 (rename_chains): Check call_abis instead of need_caller_save_reg.
2142 (merge_chains): Update for changes to du_head.
2143 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2144 target. Record the ABI identifier in call_abis and the set of
2145 fully or partially clobbered registers in call_clobber_mask.
2146 Add fully-clobbered registers to hard_conflicts here rather
2147 than in find_rename_reg.
2148 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2149 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2150 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2151 function-abi.h.
2152 * config/c6x/c6x.c: Likewise.
2153
2154 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2155
2156 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2157 mode of the register when deciding whether it is no longer
2158 available after a call.
2159
2160 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2161
2162 * recog.c: Include function-abi.h.
2163 (peep2_find_free_register): Use crtl->abi when deciding whether
2164 a register is free for use after RA.
2165
2166 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2167
2168 * postreload-gcse.c: Include regs.h and function-abi.h.
2169 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2170 call insn target. Conservatively assume that partially-clobbered
2171 registers are altered.
2172
2173 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2174
2175 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2176 when deciding whether a register is free for use after RA.
2177 (reload_combine): Remove unnecessary use of fixed_reg_set.
2178 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2179 call insn target. Use reg_mode when testing whether a register
2180 is no longer available.
2181
2182 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2183
2184 * target.def (return_call_with_max_clobbers): Delete.
2185 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2186 * doc/tm.texi: Regenerate.
2187 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2188 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2189 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2190 (lra_reg::call_insn): Delete.
2191 * lra.c: Include function-abi.h.
2192 (initialize_lra_reg_info_element): Don't initialize the fields above.
2193 (lra): Use crtl->abi to test whether the current function needs to
2194 save a register in the prologue. Remove special pre-inheritance
2195 lra_create_live_ranges pass for flag_ipa_ra.
2196 * lra-assigns.c: Include function-abi.h
2197 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2198 function needs to save a register in the prologue.
2199 (lra_assign): Assert that registers aren't allocated to a
2200 conflicting register, rather than checking only for overlaps
2201 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2202 and for registers that are not live across a call.
2203 * lra-constraints.c (last_call_for_abi): New variable.
2204 (full_and_partial_call_clobbers): Likewise.
2205 (setup_next_usage_insn): Remove the register from
2206 full_and_partial_call_clobbers.
2207 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2208 whether the register needs a caller save.
2209 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2210 of call_used_or_fixed_regs.
2211 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2212 full_and_partial_call_clobbers.
2213 * lra-lives.c (check_pseudos_live_through_calls): Replace
2214 last_call_used_reg_set and call_insn arguments with an abi argument.
2215 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2216 as the set of conflicting registers.
2217 (calls_have_same_clobbers_p): Delete.
2218 (process_bb_lives): Track the ABI of the last call instead of an
2219 insn/HARD_REG_SET pair. Update calls to
2220 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2221 the set of registers that could be clobbered by an EH edge.
2222 Include partially-clobbered as well as fully-clobbered registers.
2223 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2224 * lra-remat.c: Include function-abi.h.
2225 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2226 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2227 registers and bitmap_view to combine them into dead_regs.
2228 (call_used_input_regno_present_p): Take a function_abi argument
2229 and use it to test whether a register is call-clobbered.
2230 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2231 call insn target. Update tje call to call_used_input_regno_present_p.
2232 (do_remat): Likewise.
2233 (lra_remat): Remove the initialization of call_used_regs_arr_len
2234 and call_used_regs_arr.
2235
2236 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2237
2238 * loop-iv.c: Include regs.h and function-abi.h.
2239 (simplify_using_initial_values): Use insn_callee_abi to get the
2240 ABI of the call insn target. Conservatively assume that
2241 partially-clobbered registers are altered.
2242
2243 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2244
2245 * function-abi.h (call_clobbers_in_region): Declare.
2246 (call_clobbered_in_region_p): New function.
2247 * function-abi.cc (call_clobbers_in_region): Likewise.
2248 * ira-int.h: Include function-abi.h.
2249 (ira_allocno::crossed_calls_abis): New field.
2250 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2251 (ira_need_caller_save_regs): New function.
2252 (ira_need_caller_save_p): Likewise.
2253 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2254 of call_used_or_fixed_regs.
2255 (do_reload): Use crtl->abi to test whether the current function
2256 needs to save a register in the prologue. Count registers that
2257 need to be saved rather than registers that don't.
2258 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2259 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2260 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2261 (propagate_some_info_from_allocno): Likewise.
2262 (copy_info_to_removed_store_destinations): Likewise.
2263 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2264 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2265 (ira_build): Use ira_need_caller_save_regs instead of
2266 call_used_or_fixed_regs.
2267 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2268 whether the current function would need to save a register
2269 before using it.
2270 (calculate_spill_cost): Likewise.
2271 (allocno_reload_assign): Use ira_need_caller_save_regs and
2272 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2273 * ira-conflicts.c (ira_build_conflicts): Use
2274 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2275 as the set of call-clobbered registers. Remove the
2276 call_used_or_fixed_regs mask from the calculation of
2277 temp_hard_reg_set and mask its use instead. Remove special
2278 handling of partially-clobbered registers.
2279 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2280 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2281 calculate the set of conflicting registers for calls that
2282 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2283 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2284 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2285 Use eh_edge_abi to calculate the set of registers that could
2286 be clobbered by an EH edge. Include partially-clobbered as
2287 well as fully-clobbered registers.
2288
2289 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2290
2291 * haifa-sched.c: Include function-abi.h.
2292 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2293 the function would need to save a register before using it.
2294
2295 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2296
2297 * gcse.c: Include function-abi.h.
2298 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2299 the call insn target. Invalidate partially call-clobbered
2300 registers as well as fully call-clobbered ones.
2301
2302 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2303
2304 * function.c (aggregate_value_p): Work out which ABI the
2305 function is using before testing which registers are at least
2306 partly preserved by a call.
2307
2308 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2309
2310 * early-remat.c: Include regs.h and function-abi.h.
2311 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2312 registers here.
2313 (early_remat::restrict_remat_for_unavail_regs): New function.
2314 (early_remat::restrict_remat_for_call): Likewise.
2315 (early_remat::process_block): Before calling emit_remat_insns
2316 for a previous call in the block, invalidate any candidates
2317 that would clobber call-preserved registers.
2318 (early_remat::emit_remat_insns_for_block): Likewise for the
2319 final call in a block. Do the same thing for live-in registers
2320 when calling emit_remat_insns at the head of a block.
2321
2322 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2323
2324 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2325 whether the current function needs to save at least part of a
2326 register before using it.
2327 (df_get_exit_block_use_set): Likewise for epilogue restores.
2328
2329 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2330
2331 * df-problems.c: Include regs.h and function-abi.h.
2332 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2333 sparse_invalidated_by_eh and dense_invalidated_by_call to
2334 dense_invalidated_by_eh.
2335 (df_print_bb_index): Update accordingly.
2336 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2337 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2338 that are clobbered by an EH edge. Clobber partially-clobbered
2339 registers as well as fully-clobbered ones.
2340 (df_md_confluence_n): Likewise.
2341 (df_rd_local_compute): Likewise. Update for changes to
2342 df_rd_problem_data.
2343 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2344 of registers that are clobbered by an EH edge. Includde partially-
2345 clobbered registers as well as fully-clobbered ones.
2346
2347 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2348
2349 * cselib.c (cselib_process_insn): If we know what mode a
2350 register was set in, check whether it is clobbered in that
2351 mode by a call. Only fall back to reg_raw_mode if that fails.
2352
2353 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2354
2355 * cse.c: Include regs.h and function-abi.h.
2356 (invalidate_for_call): Take the call insn as an argument.
2357 Use insn_callee_abi to get the ABI of the call and invalidate
2358 partially clobbered registers as well as fully clobbered ones.
2359 (cse_insn): Update call accordingly.
2360
2361 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2362
2363 * combine.c: Include function-abi.h.
2364 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2365 of the target of call insns. Invalidate partially-clobbered
2366 registers as well as fully-clobbered ones.
2367
2368 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2369
2370 * cfgloopanal.c: Include regs.h and function-abi.h.
2371 (init_set_costs): Use default_function_abi to test whether
2372 a general register is call-clobbered.
2373
2374 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2375
2376 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2377 instead of the call-clobbered sets.
2378
2379 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2380
2381 * caller-save.c (setup_save_areas): Remove redundant |s of
2382 fixed_reg_set.
2383 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2384 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2385 value is useful.
2386
2387 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2388
2389 * rtl.h (predefined_function_abi): Declare.
2390 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2391 instead of a boolean call_save flag.
2392 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2393 accordingly.
2394 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2395 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2396 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2397 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2398 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2399 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2400 * reginfo.c (init_reg_modes_target): Likewise.
2401 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2402 instead of a boolean call_save flag.
2403 * targhooks.c: Include function-abi.h.
2404 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2405 using eh_edge_abi to choose the mode.
2406
2407 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2408
2409 * target.def (hard_regno_call_part_clobbered): Take an ABI
2410 identifier instead of an rtx_insn.
2411 * doc/tm.texi: Regenerate.
2412 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2413 (hook_bool_uint_uint_mode_false): New function.
2414 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2415 (hook_bool_uint_uint_mode_false): New function.
2416 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2417 Take an ABI identifier instead of an rtx_insn.
2418 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2419 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2420 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2421 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2422 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2423 Likewise.
2424 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2425 * cselib.c: Include function-abi.h.
2426 (cselib_process_insn): Update call to
2427 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2428 to get the appropriate ABI identifier.
2429 * function-abi.cc (predefined_function_abi::initialize): Update call
2430 to targetm.hard_regno_call_part_clobbered.
2431 * ira-conflicts.c (ira_build_conflicts): Likewise.
2432 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2433 * lra-constraints.c: Include function-abi.h.
2434 (need_for_call_save_p): Update call to
2435 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2436 to get the appropriate ABI identifier.
2437 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2438 * regcprop.c (copyprop_hardreg_forward_1): Update call
2439 to targetm.hard_regno_call_part_clobbered.
2440 * reginfo.c (choose_hard_reg_mode): Likewise.
2441 * regrename.c (check_new_reg_p): Likewise.
2442 * reload.c (find_equiv_reg): Likewise.
2443 * reload1.c (emit_reload_insns): Likewise.
2444 * sched-deps.c: Include function-abi.h.
2445 (deps_analyze_insn): Update call to
2446 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2447 to get the appropriate ABI identifier.
2448 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2449 call to targetm.hard_regno_call_part_clobbered.
2450 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2451
2452 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2453
2454 * config/i386/i386.c: Include function-abi.h.
2455 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2456 if they preserve some 256-bit or 512-bit SSE registers.
2457
2458 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2459
2460 * target.def (insn_callee_abi): New hook.
2461 (remove_extra_call_preserved_regs): Delete.
2462 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2463 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2464 * doc/tm.texi: Regenerate.
2465 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2466 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2467 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2468 insn argument.
2469 (aarch64_remove_extra_call_preserved_regs): Delete.
2470 (aarch64_insn_callee_abi): New function.
2471 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2472 (TARGET_INSN_CALLEE_ABI): New macro.
2473 * rtl.h (get_call_fndecl): Declare.
2474 (cgraph_rtl_info): Fix formatting. Tweak comment for
2475 function_used_regs. Remove function_used_regs_valid.
2476 * rtlanal.c (get_call_fndecl): Moved from final.c
2477 * function-abi.h (insn_callee_abi): Declare.
2478 (target_function_abi_info): Mention insn_callee_abi.
2479 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2480 way to get_call_reg_set_usage did.
2481 (insn_callee_abi): New function.
2482 * regs.h (get_call_reg_set_usage): Delete.
2483 * final.c: Include function-abi.h.
2484 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2485 function_used_regs before the main loop rather than afterwards.
2486 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2487 if function_used_regs ends up not being useful.
2488 (get_call_fndecl): Move to rtlanal.c
2489 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2490 * caller-save.c: Include function-abi.h.
2491 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2492 instead of get_call_reg_set_usage.
2493 * cfgcleanup.c: Include function-abi.h.
2494 (old_insns_match_p): Use insn_callee_abi instead of
2495 get_call_reg_set_usage.
2496 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2497 a tree.
2498 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2499 function_used_regs.
2500 * df-scan.c: Include function-abi.h.
2501 (df_get_call_refs): Use insn_callee_abi instead of
2502 get_call_reg_set_usage.
2503 * ira-lives.c: Include function-abi.h.
2504 (process_bb_node_lives): Use insn_callee_abi instead of
2505 get_call_reg_set_usage.
2506 * lra-lives.c: Include function-abi.h.
2507 (process_bb_lives): Use insn_callee_abi instead of
2508 get_call_reg_set_usage.
2509 * postreload.c: Include function-abi.h.
2510 (reload_combine): Use insn_callee_abi instead of
2511 get_call_reg_set_usage.
2512 * regcprop.c: Include function-abi.h.
2513 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2514 get_call_reg_set_usage.
2515 * resource.c: Include function-abi.h.
2516 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2517 instead of get_call_reg_set_usage.
2518 * var-tracking.c: Include function-abi.h.
2519 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2520 get_call_reg_set_usage.
2521
2522 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2523
2524 * target.def (fntype_abi): New target hook.
2525 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2526 * doc/tm.texi: Regenerate.
2527 * target.h (predefined_function_abi): Declare.
2528 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2529 if defined.
2530 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2531 * config/aarch64/aarch64.c: Include function-abi.h.
2532 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2533 (TARGET_FNTYPE_ABI): Define.
2534
2535 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2536
2537 * Makefile.in (OBJS): Add function-abi.o.
2538 (GTFILES): Add function-abi.h.
2539 * function-abi.cc: New file.
2540 * function-abi.h: Likewise.
2541 * emit-rtl.h (rtl_data::abi): New field.
2542 * function.c: Include function-abi.h.
2543 (prepare_function_start): Initialize crtl->abi.
2544 * read-rtl-function.c: Include regs.h and function-abi.h.
2545 (read_rtl_function_body): Initialize crtl->abi.
2546 (read_rtl_function_body_from_file_range): Likewise.
2547 * reginfo.c: Include function-abi.h.
2548 (init_reg_sets_1): Initialize default_function_abi.
2549 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2550 when making a register global.
2551 * target-globals.h (this_target_function_abi_info): Declare.
2552 (target_globals::function_abi_info): New field.
2553 (restore_target_globals): Copy it.
2554 * target-globals.c: Include function-abi.h.
2555 (default_target_globals): Initialize the function_abi_info field.
2556 (target_globals): Allocate it.
2557 (save_target_globals): Free it.
2558
2559 2019-09-30 Nick Clifton <nickc@redhat.com>
2560
2561 PR target/85978
2562 * config/frv/frv.c (frv_register_move_cost): Add break statements
2563 to avoid falling through to the wrong cases. Tidy code.
2564
2565 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2566
2567 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2568 For multi-registers modes, test how big each register part is.
2569
2570 2019-09-30 Nick Clifton <nickc@redhat.com>
2571
2572 PR target/59205
2573 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2574 (TARGET_ASM_SELECT_SECTION): Remove definition.
2575 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2576
2577 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2578
2579 * emit-rtl.c (init_raw_REG): New function.
2580 (gen_raw_REG): Use init_raw_REG.
2581 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2582 macros.
2583 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2584 * rtl.h (rtx_init): New function.
2585 (rtx_alloca): New function.
2586 (init_raw_REG): New function.
2587 (alloca_raw_REG): New macro.
2588
2589 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2590
2591 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2592 (pcrel_local_address): Replace pcrel_address predicate, use the
2593 new function address_to_insn_form.
2594 (pcrel_external_address): Replace with new implementation using
2595 address_to_insn_form..
2596 (prefixed_mem_operand): Delete predicate which is now unused.
2597 (pcrel_external_mem_operand): Delete predicate which is now
2598 unused.
2599 * config/rs6000/rs6000-protos.h (enum insn_form): New
2600 enumeration.
2601 (enum non_prefixed_form): New enumeration.
2602 (address_to_insn_form): New declaration.
2603 (prefixed_load_p): New declaration.
2604 (prefixed_store_p): New declaration.
2605 (prefixed_paddi_p): New declaration.
2606 (rs6000_asm_output_opcode): New declaration.
2607 (rs6000_final_prescan_insn): Move declaration and update calling
2608 signature.
2609 (address_is_prefixed): New helper inline function.
2610 * config/rs6000/rs6000.c(print_operand_address): Check for either
2611 PC-relative local symbols or PC-relative external symbols.
2612 (rs6000_emit_move): Support loading PC-relative addresses.
2613 (mode_supports_prefixed_address_p): Delete, no longer used.
2614 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2615 (address_to_insn_form): New function to decode an address format.
2616 (reg_to_non_prefixed): New function to identify what the
2617 non-prefixed memory instruction format is for a register.
2618 (prefixed_load_p): New function to identify prefixed loads.
2619 (prefixed_store_p): New function to identify prefixed stores.
2620 (prefixed_paddi_p): New function to identify prefixed load
2621 immediates.
2622 (next_insn_prefixed_p): New static state variable.
2623 (rs6000_final_prescan_insn): New function to determine if an insn
2624 uses a prefixed instruction.
2625 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2626 prefixed instruction.
2627 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2628 (ASM_OUTPUT_OPCODE): New target hook.
2629 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2630 prefixed instructions.
2631 (prefixed_length): New insn attribute for the size of prefixed
2632 instructions.
2633 (non_prefixed_length): New insn attribute for the size of
2634 non-prefixed instructions.
2635 (pcrel_local_addr): New insn to load up a local PC-relative
2636 address.
2637 (pcrel_extern_addr): New insn to load up an external PC-relative
2638 address.
2639 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2640 GPR and loading a 128-bit floating point type to a GPR.
2641
2642 2019-09-30 Richard Biener <rguenther@suse.de>
2643
2644 * gimple.c (gimple_get_lhs): For PHIs return the result.
2645 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2646 SLP instance as argument.
2647 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2648 double-reduction PHIs with vectorizable_lc_phi.
2649 (vect_analyze_loop_operations): Adjust.
2650 (vect_create_epilog_for_reduction): Remove all code not dealing
2651 with reduction LC PHI or epilogue generation.
2652 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2653 for live stmts of reductions.
2654 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2655 do not handle defs that are not vect_internal_def.
2656 (can_vectorize_live_stmts): Adjust.
2657 (vect_analyze_stmt): When the vectorized stmt defined a value
2658 used on backedges adjust the backedge uses of vectorized PHIs.
2659
2660 2019-09-30 Martin Jambor <mjambor@suse.cz>
2661
2662 PR ipa/91853
2663 * tree-inline.c (force_value_to_type): New function.
2664 (setup_one_parameter): Use force_value_to_type to convert type.
2665 * tree-inline.c (force_value_to_type): Declare.
2666 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2667 with register type mismatches.
2668
2669 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2670
2671 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2672 32-bit PowerPC.
2673 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2674 * config/rs6000/t-freebsd64: Make use of the above define and build
2675 the 32-bit libraries with secure-plt.
2676
2677 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2678
2679 PR target/91931
2680 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2681 gen_int_mode instead of GEN_INT.
2682
2683 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2684
2685 * config/darwin.c (gen_macho_low): Amend to include the mode
2686 argument.
2687 (machopic_indirect_data_reference): Amend gen_macho_low call
2688 to include mode argument
2689 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2690 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2691 the macho_high expander and two define_insn entries.
2692
2693 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2694
2695 PR bootstrap/90543
2696 * optc-save-gen.awk: Fix up printing string option differences.
2697
2698 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2699
2700 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2701 vec_perm cost to 1 for non-Power7 VSX architectures.
2702
2703 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2704
2705 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2706 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2707 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2708
2709 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2710
2711 * config/darwin.c (gen_macho_high): Amend to include the mode
2712 argument.
2713 (machopic_indirect_data_reference): Amend gen_macho_high call
2714 to include mode argument.
2715 (machopic_legitimize_pic_address): Likewise.
2716 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2717 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2718 the macho_high expander and two define_insn entries.
2719
2720 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2721
2722 PR target/86805
2723 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2724
2725 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2726
2727 PR target/80672
2728 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2729 std::string::compare instead of std::string::find.
2730
2731 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2732
2733 * configure: Regenerate.
2734
2735 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2736
2737 PR middle-end/91920
2738 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2739 variables as shared.
2740
2741 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2742
2743 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2744 replaces the expander and two define_insn entries.
2745 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2746 call.
2747 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2748
2749 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2750
2751 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2752 (fibonacci_heap::nodes): Likewise.
2753 (fibonacci_heap::min_key): Likewise.
2754 (fibonacci_heap::min): Likewise.
2755
2756 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2757
2758 * cgraph.c (cgraph_node::get_fun): Make const.
2759 * cgraph.h (cgraph_node::get_fun): Likewise.
2760
2761 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2762
2763 PR target/91919
2764 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2765 of SImode MULT.
2766
2767 2019-09-27 Richard Biener <rguenther@suse.de>
2768
2769 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2770 (STMT_VINFO_REDUC_FN): Likewise.
2771 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2772 STMT_VINFO_REDUC_FN.
2773 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2774 for condition reductions.
2775 (vect_create_epilog_for_reduction): Compute all required state
2776 from the stmt to be vectorized.
2777 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2778 invocation and remove then dead code. For single def-use chains
2779 record only a single vector stmt.
2780
2781 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2782
2783 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2784 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2785 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2786 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2787 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2788 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2789 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2790 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2791 (aarch64_general_builtin_rsqrt): Declare.
2792 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2793 New function.
2794 (aarch64_mangle_builtin_type): Rename to...
2795 (aarch64_general_mangle_builtin_type): ...this.
2796 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2797 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2798 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2799 aarch64_general_add_builtin instead of add_builtin_function.
2800 (aarch64_init_builtins): Rename to...
2801 (aarch64_general_init_builtins): ...this. Use
2802 aarch64_general_add_builtin instead of add_builtin_function.
2803 (aarch64_builtin_decl): Rename to...
2804 (aarch64_general_builtin_decl): ...this and remove the unused
2805 arguments.
2806 (aarch64_expand_builtin): Rename to...
2807 (aarch64_general_expand_builtin): ...this and remove the unused
2808 arguments.
2809 (aarch64_builtin_rsqrt): Rename to...
2810 (aarch64_general_builtin_rsqrt): ...this.
2811 (aarch64_fold_builtin): Rename to...
2812 (aarch64_general_fold_builtin): ...this. Take the function subcode
2813 and return type as arguments. Remove the "ignored" argument.
2814 (aarch64_gimple_fold_builtin): Rename to...
2815 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2816 subcode and gcall as arguments, and return the new function call.
2817 * config/aarch64/aarch64.c (aarch64_init_builtins)
2818 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2819 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2820 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2821 instead of aarch64_builtin_rsqrt.
2822 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2823 instead of aarch64_mangle_builtin_type.
2824
2825 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2826
2827 * target.def (check_builtin_call): New target hook.
2828 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2829 * doc/tm.texi: Regenerate.
2830
2831 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2832
2833 PR tree-optimization/91909
2834 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2835 reduc_index parameter. When handling COND_REDUCTION, make sure
2836 that the reduction phi operand is in the correct arm of the
2837 VEC_COND_EXPR.
2838 (vectorizable_reduction): Pass reduc_index to the above.
2839
2840 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2841
2842 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2843 New combine pattern.
2844
2845 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2846
2847 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2848 loop instruction into new basic block before the loop when basic
2849 block that precedes the loop is empty.
2850
2851 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2852
2853 * function.c (gimplify_parameters): Use build_clobber function.
2854 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2855 * tree-inline.c (expand_call_inline): Likewise.
2856 * tree-sra.c (clobber_subtree): Likewise.
2857 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2858 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2859 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2860 lower_omp_target): Likewise.
2861 * omp-expand.c (expand_omp_for_generic): Likewise.
2862 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2863
2864 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2865
2866 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2867 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2868 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2869 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2870 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2871 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2872 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2873 LD_ELEMREV_V16QI): Use the PURE attribute.
2874
2875 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2876
2877 * config/rs6000/darwin.md: Replace the expanders for
2878 load_macho_picbase and reload_macho_picbase with use of '@'
2879 and <mode> in their respective define_insns.
2880 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2881 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2882 Pmode to gen_load_macho_picbase.
2883 * config/rs6000/rs6000.md: Likewise.
2884
2885 2019-09-25 Richard Biener <rguenther@suse.de>
2886
2887 PR tree-optimization/91896
2888 * tree-vect-loop.c (vectorizable_reduction): The single
2889 def-use cycle optimization cannot apply when there's more
2890 than one pattern stmt involved.
2891
2892 2019-09-26 Richard Biener <rguenther@suse.de>
2893
2894 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2895 loop-closed PHIs that are vect_internal_def.
2896 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2897 Simplify.
2898 (vectorizable_lc_phi): New.
2899 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2900 (vect_transform_stmt): Likewise.
2901 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2902 (vectorizable_lc_phi): Declare.
2903
2904 2019-09-26 Richard Biener <rguenther@suse.de>
2905
2906 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2907 vectorizable_reduction for vect_double_reduction_def.
2908 (vect_transform_loop): Likewise.
2909 (vect_create_epilog_for_reduction): Move double-reduction
2910 PHI creation and preheader argument setting of PHIs ...
2911 (vectorizable_reduction): ... here. Also process
2912 vect_double_reduction_def PHIs, creating the vectorized
2913 PHI nodes, remembering the scalar adjustment computed for
2914 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2915 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2916 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2917 Initialize STMT_VINFO_REDUC_CODE.
2918 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2919 (_stmt_vec_info::reduc_code): Likewise.
2920 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2921 (STMT_VINFO_REDUC_CODE): Likewise.
2922
2923 2019-09-26 Matt Turner <mattst88@gmail.com>
2924
2925 PR driver/69471
2926 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2927 (mtune=): Add Negative(mtune=).
2928 (mcpu=): Add Negative(mcpu=).
2929 * config/arm/arm.opt: Likewise.
2930
2931 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2932
2933 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2934 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2935 Define.
2936 * config/arm/arm_acle.h: Define builtins for the above.
2937 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2938 (simd32_op): Handle the above.
2939 * config/arm/unspecs.md: Define unspecs for the above.
2940
2941 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2942
2943 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2944 (arm_<sup>xtb16): Likewise.
2945 (arm_usada8): Likewise.
2946 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2947 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2948 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2949 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2950 __sxtb16, __uxtab16, __uxtb16): Define.
2951 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2952 * config/arm/unspecs.md: Define unspecs for the above.
2953 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2954 (USXTB16): Likewise.
2955 (simd32_op): New int_attribute.
2956 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2957 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2958
2959 2019-09-26 Martin Jambor <mjambor@suse.cz>
2960
2961 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2962 internal_error.
2963
2964 2019-09-26 Martin Jambor <mjambor@suse.cz>
2965
2966 * ipa-sra.c (process_scan_results): Fix continue condition.
2967
2968 2019-09-26 Martin Liska <mliska@suse.cz>
2969
2970 PR tree-optimization/91885
2971 * tree-vectorizer.c (try_vectorize_loop_1): Add
2972 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2973
2974 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2975
2976 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2977 aarch64_plus_immediate rather than aarch64_uimm12_shift
2978 to test for valid PLUS immediates.
2979
2980 2019-09-25 Martin Jambor <mjambor@suse.cz>
2981
2982 * tree-sra.c (no_accesses_p): Remove.
2983 (no_accesses_representant): Likewise.
2984
2985 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2986
2987 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2988 consistenly.
2989 (vaba_s16): Likewise.
2990 (vaba_s32): Likewise.
2991 (vaba_u8): Likewise.
2992 (vaba_u16): Likewise.
2993 (vaba_u32): Likewise.
2994 (vabal_high_s8): Likewise.
2995 (vabal_high_s16): Likewise.
2996 (vabal_high_s32): Likewise.
2997 (vabal_high_u8): Likewise.
2998 (vabal_high_u16): Likewise.
2999 (vabal_high_u32): Likewise.
3000 (vabal_s8): Likewise.
3001 (vabal_s16): Likewise.
3002 (vabal_s32): Likewise.
3003 (vabal_u8): Likewise.
3004 (vabal_u16): Likewise.
3005 (vabal_u32): Likewise.
3006 (vabaq_s8): Likewise.
3007 (vabaq_s16): Likewise.
3008 (vabaq_s32): Likewise.
3009 (vabaq_u8): Likewise.
3010 (vabaq_u16): Likewise.
3011 (vabaq_u32): Likewise.
3012 (vabd_s8): Likewise.
3013 (vabd_s16): Likewise.
3014 (vabd_s32): Likewise.
3015 (vabd_u8): Likewise.
3016 (vabd_u16): Likewise.
3017 (vabd_u32): Likewise.
3018 (vabdl_high_s8): Likewise.
3019 (vabdl_high_s16): Likewise.
3020 (vabdl_high_s32): Likewise.
3021 (vabdl_high_u8): Likewise.
3022 (vabdl_high_u16): Likewise.
3023 (vabdl_high_u32): Likewise.
3024 (vabdl_s8): Likewise.
3025 (vabdl_s16): Likewise.
3026 (vabdl_s32): Likewise.
3027 (vabdl_u8): Likewise.
3028 (vabdl_u16): Likewise.
3029 (vabdl_u32): Likewise.
3030 (vabdq_s8): Likewise.
3031 (vabdq_s16): Likewise.
3032 (vabdq_s32): Likewise.
3033 (vabdq_u8): Likewise.
3034 (vabdq_u16): Likewise.
3035 (vabdq_u32): Likewise.
3036 (vaddlv_s8): Likewise.
3037 (vaddlv_s16): Likewise.
3038 (vaddlv_u8): Likewise.
3039 (vaddlv_u16): Likewise.
3040 (vaddlvq_s8): Likewise.
3041 (vaddlvq_s16): Likewise.
3042 (vaddlvq_s32): Likewise.
3043 (vaddlvq_u8): Likewise.
3044 (vaddlvq_u16): Likewise.
3045 (vaddlvq_u32): Likewise.
3046 (vcvtx_f32_f64): Likewise.
3047 (vcvtx_high_f32_f64): Likewise.
3048 (vcvtxd_f32_f64): Likewise.
3049 (vmla_n_f32): Likewise.
3050 (vmla_n_s16): Likewise.
3051 (vmla_n_s32): Likewise.
3052 (vmla_n_u16): Likewise.
3053 (vmla_n_u32): Likewise.
3054 (vmla_s8): Likewise.
3055 (vmla_s16): Likewise.
3056 (vmla_s32): Likewise.
3057 (vmla_u8): Likewise.
3058 (vmla_u16): Likewise.
3059 (vmla_u32): Likewise.
3060 (vmlal_high_n_s16): Likewise.
3061 (vmlal_high_n_s32): Likewise.
3062 (vmlal_high_n_u16): Likewise.
3063 (vmlal_high_n_u32): Likewise.
3064 (vmlal_high_s8): Likewise.
3065 (vmlal_high_s16): Likewise.
3066 (vmlal_high_s32): Likewise.
3067 (vmlal_high_u8): Likewise.
3068 (vmlal_high_u16): Likewise.
3069 (vmlal_high_u32): Likewise.
3070 (vmlal_n_s16): Likewise.
3071 (vmlal_n_s32): Likewise.
3072 (vmlal_n_u16): Likewise.
3073 (vmlal_n_u32): Likewise.
3074 (vmlal_s8): Likewise.
3075 (vmlal_s16): Likewise.
3076 (vmlal_s32): Likewise.
3077 (vmlal_u8): Likewise.
3078 (vmlal_u16): Likewise.
3079 (vmlal_u32): Likewise.
3080 (vmlaq_n_f32): Likewise.
3081 (vmlaq_n_s16): Likewise.
3082 (vmlaq_n_s32): Likewise.
3083 (vmlaq_n_u16): Likewise.
3084 (vmlaq_n_u32): Likewise.
3085 (vmlaq_s8): Likewise.
3086 (vmlaq_s16): Likewise.
3087 (vmlaq_s32): Likewise.
3088 (vmlaq_u8): Likewise.
3089 (vmlaq_u16): Likewise.
3090 (vmlaq_u32): Likewise.
3091 (vmls_n_f32): Likewise.
3092 (vmls_n_s16): Likewise.
3093 (vmls_n_s32): Likewise.
3094 (vmls_n_u16): Likewise.
3095 (vmls_n_u32): Likewise.
3096 (vmls_s8): Likewise.
3097 (vmls_s16): Likewise.
3098 (vmls_s32): Likewise.
3099 (vmls_u8): Likewise.
3100 (vmls_u16): Likewise.
3101 (vmls_u32): Likewise.
3102 (vmlsl_high_n_s16): Likewise.
3103 (vmlsl_high_n_s32): Likewise.
3104 (vmlsl_high_n_u16): Likewise.
3105 (vmlsl_high_n_u32): Likewise.
3106 (vmlsl_high_s8): Likewise.
3107 (vmlsl_high_s16): Likewise.
3108 (vmlsl_high_s32): Likewise.
3109 (vmlsl_high_u8): Likewise.
3110 (vmlsl_high_u16): Likewise.
3111 (vmlsl_high_u32): Likewise.
3112 (vmlsl_n_s16): Likewise.
3113 (vmlsl_n_s32): Likewise.
3114 (vmlsl_n_u16): Likewise.
3115 (vmlsl_n_u32): Likewise.
3116 (vmlsl_s8): Likewise.
3117 (vmlsl_s16): Likewise.
3118 (vmlsl_s32): Likewise.
3119 (vmlsl_u8): Likewise.
3120 (vmlsl_u16): Likewise.
3121 (vmlsl_u32): Likewise.
3122 (vmlsq_n_f32): Likewise.
3123 (vmlsq_n_s16): Likewise.
3124 (vmlsq_n_s32): Likewise.
3125 (vmlsq_n_u16): Likewise.
3126 (vmlsq_n_u32): Likewise.
3127 (vmlsq_s8): Likewise.
3128 (vmlsq_s16): Likewise.
3129 (vmlsq_s32): Likewise.
3130 (vmlsq_u8): Likewise.
3131 (vmlsq_u16): Likewise.
3132 (vmlsq_u32): Likewise.
3133 (vmovl_high_s8): Likewise.
3134 (vmovl_high_s16): Likewise.
3135 (vmovl_high_s32): Likewise.
3136 (vmovl_high_u8): Likewise.
3137 (vmovl_high_u16): Likewise.
3138 (vmovl_high_u32): Likewise.
3139 (vmovl_s8): Likewise.
3140 (vmovl_s16): Likewise.
3141 (vmovl_s32): Likewise.
3142 (vmovl_u8): Likewise.
3143 (vmovl_u16): Likewise.
3144 (vmovl_u32): Likewise.
3145 (vmovn_high_s16): Likewise.
3146 (vmovn_high_s32): Likewise.
3147 (vmovn_high_s64): Likewise.
3148 (vmovn_high_u16): Likewise.
3149 (vmovn_high_u32): Likewise.
3150 (vmovn_high_u64): Likewise.
3151 (vmovn_s16): Likewise.
3152 (vmovn_s32): Likewise.
3153 (vmovn_s64): Likewise.
3154 (vmovn_u16): Likewise.
3155 (vmovn_u32): Likewise.
3156 (vmovn_u64): Likewise.
3157 (vmull_high_n_s16): Likewise.
3158 (vmull_high_n_s32): Likewise.
3159 (vmull_high_n_u16): Likewise.
3160 (vmull_high_n_u32): Likewise.
3161 (vmull_high_p8): Likewise.
3162 (vmull_high_s8): Likewise.
3163 (vmull_high_s16): Likewise.
3164 (vmull_high_s32): Likewise.
3165 (vmull_high_u8): Likewise.
3166 (vmull_high_u16): Likewise.
3167 (vmull_high_u32): Likewise.
3168 (vmull_n_s16): Likewise.
3169 (vmull_n_s32): Likewise.
3170 (vmull_n_u16): Likewise.
3171 (vmull_n_u32): Likewise.
3172 (vmull_p8): Likewise.
3173 (vmull_s8): Likewise.
3174 (vmull_s16): Likewise.
3175 (vmull_s32): Likewise.
3176 (vmull_u8): Likewise.
3177 (vmull_u16): Likewise.
3178 (vmull_u32): Likewise.
3179 (vpadal_s8): Likewise.
3180 (vpadal_s16): Likewise.
3181 (vpadal_s32): Likewise.
3182 (vpadal_u8): Likewise.
3183 (vpadal_u16): Likewise.
3184 (vpadal_u32): Likewise.
3185 (vpadalq_s8): Likewise.
3186 (vpadalq_s16): Likewise.
3187 (vpadalq_s32): Likewise.
3188 (vpadalq_u8): Likewise.
3189 (vpadalq_u16): Likewise.
3190 (vpadalq_u32): Likewise.
3191 (vpaddl_s8): Likewise.
3192 (vpaddl_s16): Likewise.
3193 (vpaddl_s32): Likewise.
3194 (vpaddl_u8): Likewise.
3195 (vpaddl_u16): Likewise.
3196 (vpaddl_u32): Likewise.
3197 (vpaddlq_s8): Likewise.
3198 (vpaddlq_s16): Likewise.
3199 (vpaddlq_s32): Likewise.
3200 (vpaddlq_u8): Likewise.
3201 (vpaddlq_u16): Likewise.
3202 (vpaddlq_u32): Likewise.
3203 (vpaddq_s8): Likewise.
3204 (vpaddq_s16): Likewise.
3205 (vpaddq_s32): Likewise.
3206 (vpaddq_s64): Likewise.
3207 (vpaddq_u8): Likewise.
3208 (vpaddq_u16): Likewise.
3209 (vpaddq_u32): Likewise.
3210 (vpaddq_u64): Likewise.
3211 (vqdmulh_n_s16): Likewise.
3212 (vqdmulh_n_s32): Likewise.
3213 (vqdmulhq_n_s16): Likewise.
3214 (vqdmulhq_n_s32): Likewise.
3215 (vqmovn_high_s16): Likewise.
3216 (vqmovn_high_s32): Likewise.
3217 (vqmovn_high_s64): Likewise.
3218 (vqmovn_high_u16): Likewise.
3219 (vqmovn_high_u32): Likewise.
3220 (vqmovn_high_u64): Likewise.
3221 (vqmovun_high_s16): Likewise.
3222 (vqmovun_high_s32): Likewise.
3223 (vqmovun_high_s64): Likewise.
3224 (vqrdmulh_n_s16): Likewise.
3225 (vqrdmulh_n_s32): Likewise.
3226 (vqrdmulhq_n_s16): Likewise.
3227 (vqrdmulhq_n_s32): Likewise.
3228 (vrsqrte_u32): Likewise.
3229 (vrsqrteq_u32): Likewise.
3230 (vtst_p8): Likewise.
3231 (vtst_p16): Likewise.
3232 (vtst_p64): Likewise.
3233 (vtstq_p8): Likewise.
3234 (vtstq_p16): Likewise.
3235 (vtstq_p64): Likewise.
3236 (vaddlv_s32): Likewise.
3237 (vaddlv_u32): Likewise.
3238 (vqtbl1_p8): Likewise.
3239 (vqtbl1_s8): Likewise.
3240 (vqtbl1_u8): Likewise.
3241 (vqtbl1q_p8): Likewise.
3242 (vqtbl1q_s8): Likewise.
3243 (vqtbl1q_u8): Likewise.
3244 (vqtbx1_s8): Likewise.
3245 (vqtbx1_u8): Likewise.
3246 (vqtbx1_p8): Likewise.
3247 (vqtbx1q_s8): Likewise.
3248 (vqtbx1q_u8): Likewise.
3249 (vqtbx1q_p8): Likewise.
3250 (vtbl1_s8): Likewise.
3251 (vtbl1_u8): Likewise.
3252 (vtbl1_p8): Likewise.
3253 (vtbl2_s8): Likewise.
3254 (vtbl2_u8): Likewise.
3255 (vtbl2_p8): Likewise.
3256 (vtbl3_s8): Likewise.
3257 (vtbl3_u8): Likewise.
3258 (vtbl3_p8): Likewise.
3259 (vtbl4_s8): Likewise.
3260 (vtbl4_u8): Likewise.
3261 (vtbl4_p8): Likewise.
3262 (vtbx2_s8): Likewise.
3263 (vtbx2_u8): Likewise.
3264 (vtbx2_p8): Likewise.
3265 (vld1_f32): Likewise.
3266 (vld1_f64): Likewise.
3267 (vld1_p8): Likewise.
3268 (vld1_p16): Likewise.
3269 (vld1_p64): Likewise.
3270 (vld1_s8): Likewise.
3271 (vld1_s16): Likewise.
3272 (vld1_s32): Likewise.
3273 (vld1_s64): Likewise.
3274 (vld1_u8): Likewise.
3275 (vld1_u16): Likewise.
3276 (vld1_u32): Likewise.
3277 (vld1_u64): Likewise.
3278 (vld1q_f32): Likewise.
3279 (vld1q_f64): Likewise.
3280 (vld1q_p8): Likewise.
3281 (vld1q_p16): Likewise.
3282 (vld1q_p64): Likewise.
3283 (vld1q_s8): Likewise.
3284 (vld1q_s16): Likewise.
3285 (vld1q_s32): Likewise.
3286 (vld1q_s64): Likewise.
3287 (vld1q_u8): Likewise.
3288 (vld1q_u16): Likewise.
3289 (vld1q_u32): Likewise.
3290 (vld1q_u64): Likewise.
3291 (vpmax_s8): Likewise.
3292 (vpmax_s16): Likewise.
3293 (vpmax_s32): Likewise.
3294 (vpmax_u8): Likewise.
3295 (vpmax_u16): Likewise.
3296 (vpmax_u32): Likewise.
3297 (vpmaxq_s8): Likewise.
3298 (vpmaxq_s16): Likewise.
3299 (vpmaxq_s32): Likewise.
3300 (vpmaxq_u8): Likewise.
3301 (vpmaxq_u16): Likewise.
3302 (vpmaxq_u32): Likewise.
3303 (vpmax_f32): Likewise.
3304 (vpmaxq_f32): Likewise.
3305 (vpmaxq_f64): Likewise.
3306 (vpmaxqd_f64): Likewise.
3307 (vpmaxs_f32): Likewise.
3308 (vpmaxnm_f32): Likewise.
3309 (vpmaxnmq_f32): Likewise.
3310 (vpmaxnmq_f64): Likewise.
3311 (vpmaxnmqd_f64): Likewise.
3312 (vpmaxnms_f32): Likewise.
3313 (vpmin_s8): Likewise.
3314 (vpmin_s16): Likewise.
3315 (vpmin_s32): Likewise.
3316 (vpmin_u8): Likewise.
3317 (vpmin_u16): Likewise.
3318 (vpmin_u32): Likewise.
3319 (vpminq_s8): Likewise.
3320 (vpminq_s16): Likewise.
3321 (vpminq_s32): Likewise.
3322 (vpminq_u8): Likewise.
3323 (vpminq_u16): Likewise.
3324 (vpminq_u32): Likewise.
3325 (vpmin_f32): Likewise.
3326 (vpminq_f32): Likewise.
3327 (vpminq_f64): Likewise.
3328 (vpminqd_f64): Likewise.
3329 (vpmins_f32): Likewise.
3330 (vpminnm_f32): Likewise.
3331 (vpminnmq_f32): Likewise.
3332 (vpminnmq_f64): Likewise.
3333 (vpminnmqd_f64): Likewise.
3334 (vpminnms_f32): Likewise.
3335 (vmla_f32): Likewise.
3336 (vmlaq_f32): Likewise.
3337 (vmlaq_f64): Likewise.
3338 (vmls_f32): Likewise.
3339 (vmlsq_f32): Likewise.
3340 (vmlsq_f64): Likewise.
3341 (vqtbl2_s8): Likewise.
3342 (vqtbl2_u8): Likewise.
3343 (vqtbl2_p8): Likewise.
3344 (vqtbl2q_s8): Likewise.
3345 (vqtbl2q_u8): Likewise.
3346 (vqtbl2q_p8): Likewise.
3347 (vqtbl3_s8): Likewise.
3348 (vqtbl3_u8): Likewise.
3349 (vqtbl3_p8): Likewise.
3350 (vqtbl3q_s8): Likewise.
3351 (vqtbl3q_u8): Likewise.
3352 (vqtbl3q_p8): Likewise.
3353 (vqtbl4_s8): Likewise.
3354 (vqtbl4_u8): Likewise.
3355 (vqtbl4_p8): Likewise.
3356 (vqtbl4q_s8): Likewise.
3357 (vqtbl4q_u8): Likewise.
3358 (vqtbl4q_p8): Likewise.
3359 (vqtbx2_s8): Likewise.
3360 (vqtbx2_u8): Likewise.
3361 (vqtbx2_p8): Likewise.
3362 (vqtbx2q_s8): Likewise.
3363 (vqtbx2q_u8): Likewise.
3364 (vqtbx2q_p8): Likewise.
3365 (vqtbx3_s8): Likewise.
3366 (vqtbx3_u8): Likewise.
3367 (vqtbx3_p8): Likewise.
3368 (vqtbx3q_s8): Likewise.
3369 (vqtbx3q_u8): Likewise.
3370 (vqtbx3q_p8): Likewise.
3371 (vqtbx4_s8): Likewise.
3372 (vqtbx4_u8): Likewise.
3373 (vqtbx4_p8): Likewise.
3374 (vqtbx4q_s8): Likewise.
3375 (vqtbx4q_u8): Likewise.
3376 (vqtbx4q_p8): Likewise.
3377 (vrev16_p8): Likewise.
3378 (vrev16_s8): Likewise.
3379 (vrev16_u8): Likewise.
3380 (vrev16q_p8): Likewise.
3381 (vrev16q_s8): Likewise.
3382 (vrev16q_u8): Likewise.
3383 (vrev32_p8): Likewise.
3384 (vrev32_p16): Likewise.
3385 (vrev32_s8): Likewise.
3386 (vrev32_s16): Likewise.
3387 (vrev32_u8): Likewise.
3388 (vrev32_u16): Likewise.
3389 (vrev32q_p8): Likewise.
3390 (vrev32q_p16): Likewise.
3391 (vrev32q_s8): Likewise.
3392 (vrev32q_s16): Likewise.
3393 (vrev32q_u8): Likewise.
3394 (vrev32q_u16): Likewise.
3395 (vrev64_f32): Likewise.
3396 (vrev64_p8): Likewise.
3397 (vrev64_p16): Likewise.
3398 (vrev64_s8): Likewise.
3399 (vrev64_s16): Likewise.
3400 (vrev64_s32): Likewise.
3401 (vrev64_u8): Likewise.
3402 (vrev64_u16): Likewise.
3403 (vrev64_u32): Likewise.
3404 (vrev64q_f32): Likewise.
3405 (vrev64q_p8): Likewise.
3406 (vrev64q_p16): Likewise.
3407 (vrev64q_s8): Likewise.
3408 (vrev64q_s16): Likewise.
3409 (vrev64q_s32): Likewise.
3410 (vrev64q_u8): Likewise.
3411 (vrev64q_u16): Likewise.
3412 (vrev64q_u32): Likewise.
3413 (vsha1cq_u32): Likewise.
3414 (vsha1mq_u32): Likewise.
3415 (vsha1pq_u32): Likewise.
3416 (vsha1h_u32): Likewise.
3417 (vsha1su0q_u32): Likewise.
3418 (vsha1su1q_u32): Likewise.
3419 (vsha256hq_u32): Likewise.
3420 (vsha256h2q_u32): Likewise.
3421 (vsha256su0q_u32): Likewise.
3422 (vsha256su1q_u32): Likewise.
3423 (vmull_p64): Likewise.
3424 (vmull_high_p64): Likewise.
3425 (vsqrt_f32): Likewise.
3426 (vsqrtq_f32): Likewise.
3427 (vsqrt_f64): Likewise.
3428 (vsqrtq_f64): Likewise.
3429 (vst1_f32): Likewise.
3430 (vst1_f64): Likewise.
3431 (vst1_p8): Likewise.
3432 (vst1_p16): Likewise.
3433 (vst1_p64): Likewise.
3434 (vst1_s8): Likewise.
3435 (vst1_s16): Likewise.
3436 (vst1_s32): Likewise.
3437 (vst1_s64): Likewise.
3438 (vst1_u8): Likewise.
3439 (vst1_u16): Likewise.
3440 (vst1_u32): Likewise.
3441 (vst1_u64): Likewise.
3442 (vst1q_f32): Likewise.
3443 (vst1q_f64): Likewise.
3444 (vst1q_p8): Likewise.
3445 (vst1q_p16): Likewise.
3446 (vst1q_p64): Likewise.
3447 (vst1q_s8): Likewise.
3448 (vst1q_s16): Likewise.
3449 (vst1q_s32): Likewise.
3450 (vst1q_s64): Likewise.
3451 (vst1q_u8): Likewise.
3452 (vst1q_u16): Likewise.
3453 (vst1q_u32): Likewise.
3454 (vst1q_u64): Likewise.
3455 (vst1_s64_x2): Likewise.
3456 (vst1_u64_x2): Likewise.
3457 (vst1_f64_x2): Likewise.
3458 (vst1_s8_x2): Likewise.
3459 (vst1_p8_x2): Likewise.
3460 (vst1_s16_x2): Likewise.
3461 (vst1_p16_x2): Likewise.
3462 (vst1_s32_x2): Likewise.
3463 (vst1_u8_x2): Likewise.
3464 (vst1_u16_x2): Likewise.
3465 (vst1_u32_x2): Likewise.
3466 (vst1_f16_x2): Likewise.
3467 (vst1_f32_x2): Likewise.
3468 (vst1_p64_x2): Likewise.
3469 (vst1q_s8_x2): Likewise.
3470 (vst1q_p8_x2): Likewise.
3471 (vst1q_s16_x2): Likewise.
3472 (vst1q_p16_x2): Likewise.
3473 (vst1q_s32_x2): Likewise.
3474 (vst1q_s64_x2): Likewise.
3475 (vst1q_u8_x2): Likewise.
3476 (vst1q_u16_x2): Likewise.
3477 (vst1q_u32_x2): Likewise.
3478 (vst1q_u64_x2): Likewise.
3479 (vst1q_f16_x2): Likewise.
3480 (vst1q_f32_x2): Likewise.
3481 (vst1q_f64_x2): Likewise.
3482 (vst1q_p64_x2): Likewise.
3483 (vst1_s64_x3): Likewise.
3484 (vst1_u64_x3): Likewise.
3485 (vst1_f64_x3): Likewise.
3486 (vst1_s8_x3): Likewise.
3487 (vst1_p8_x3): Likewise.
3488 (vst1_s16_x3): Likewise.
3489 (vst1_p16_x3): Likewise.
3490 (vst1_s32_x3): Likewise.
3491 (vst1_u8_x3): Likewise.
3492 (vst1_u16_x3): Likewise.
3493 (vst1_u32_x3): Likewise.
3494 (vst1_f16_x3): Likewise.
3495 (vst1_f32_x3): Likewise.
3496 (vst1_p64_x3): Likewise.
3497 (vst1q_s8_x3): Likewise.
3498 (vst1q_p8_x3): Likewise.
3499 (vst1q_s16_x3): Likewise.
3500 (vst1q_p16_x3): Likewise.
3501 (vst1q_s32_x3): Likewise.
3502 (vst1q_s64_x3): Likewise.
3503 (vst1q_u8_x3): Likewise.
3504 (vst1q_u16_x3): Likewise.
3505 (vst1q_u32_x3): Likewise.
3506 (vst1q_u64_x3): Likewise.
3507 (vst1q_f16_x3): Likewise.
3508 (vst1q_f32_x3): Likewise.
3509 (vst1q_f64_x3): Likewise.
3510 (vst1q_p64_x3): Likewise.
3511 (vst2_s64): Likewise.
3512 (vst2_u64): Likewise.
3513 (vst2_f64): Likewise.
3514 (vst2_s8): Likewise.
3515 (vst2_p8): Likewise.
3516 (vst2_s16): Likewise.
3517 (vst2_p16): Likewise.
3518 (vst2_s32): Likewise.
3519 (vst2_u8): Likewise.
3520 (vst2_u16): Likewise.
3521 (vst2_u32): Likewise.
3522 (vst2_f16): Likewise.
3523 (vst2_f32): Likewise.
3524 (vst2_p64): Likewise.
3525 (vst2q_s8): Likewise.
3526 (vst2q_p8): Likewise.
3527 (vst2q_s16): Likewise.
3528 (vst2q_p16): Likewise.
3529 (vst2q_s32): Likewise.
3530 (vst2q_s64): Likewise.
3531 (vst2q_u8): Likewise.
3532 (vst2q_u16): Likewise.
3533 (vst2q_u32): Likewise.
3534 (vst2q_u64): Likewise.
3535 (vst2q_f16): Likewise.
3536 (vst2q_f32): Likewise.
3537 (vst2q_f64): Likewise.
3538 (vst2q_p64): Likewise.
3539 (vst3_s64): Likewise.
3540 (vst3_u64): Likewise.
3541 (vst3_f64): Likewise.
3542 (vst3_s8): Likewise.
3543 (vst3_p8): Likewise.
3544 (vst3_s16): Likewise.
3545 (vst3_p16): Likewise.
3546 (vst3_s32): Likewise.
3547 (vst3_u8): Likewise.
3548 (vst3_u16): Likewise.
3549 (vst3_u32): Likewise.
3550 (vst3_f16): Likewise.
3551 (vst3_f32): Likewise.
3552 (vst3_p64): Likewise.
3553 (vst3q_s8): Likewise.
3554 (vst3q_p8): Likewise.
3555 (vst3q_s16): Likewise.
3556 (vst3q_p16): Likewise.
3557 (vst3q_s32): Likewise.
3558 (vst3q_s64): Likewise.
3559 (vst3q_u8): Likewise.
3560 (vst3q_u16): Likewise.
3561 (vst3q_u32): Likewise.
3562 (vst3q_u64): Likewise.
3563 (vst3q_f16): Likewise.
3564 (vst3q_f32): Likewise.
3565 (vst3q_f64): Likewise.
3566 (vst3q_p64): Likewise.
3567 (vst4_s64): Likewise.
3568 (vst4_u64): Likewise.
3569 (vst4_f64): Likewise.
3570 (vst4_s8): Likewise.
3571 (vst4_p8): Likewise.
3572 (vst4_s16): Likewise.
3573 (vst4_p16): Likewise.
3574 (vst4_s32): Likewise.
3575 (vst4_u8): Likewise.
3576 (vst4_u16): Likewise.
3577 (vst4_u32): Likewise.
3578 (vst4_f16): Likewise.
3579 (vst4_f32): Likewise.
3580 (vst4_p64): Likewise.
3581 (vst4q_s8): Likewise.
3582 (vst4q_p8): Likewise.
3583 (vst4q_s16): Likewise.
3584 (vst4q_p16): Likewise.
3585 (vst4q_s32): Likewise.
3586 (vst4q_s64): Likewise.
3587 (vst4q_u8): Likewise.
3588 (vst4q_u16): Likewise.
3589 (vst4q_u32): Likewise.
3590 (vst4q_u64): Likewise.
3591 (vst4q_f16): Likewise.
3592 (vst4q_f32): Likewise.
3593 (vst4q_f64): Likewise.
3594 (vst4q_p64): Likewise.
3595 (vtbx4_s8): Likewise.
3596 (vtbx4_u8): Likewise.
3597 (vtbx4_p8): Likewise.
3598 (vtrn_f32): Likewise.
3599 (vtrn_p8): Likewise.
3600 (vtrn_p16): Likewise.
3601 (vtrn_s8): Likewise.
3602 (vtrn_s16): Likewise.
3603 (vtrn_s32): Likewise.
3604 (vtrn_u8): Likewise.
3605 (vtrn_u16): Likewise.
3606 (vtrn_u32): Likewise.
3607 (vtrnq_f32): Likewise.
3608 (vtrnq_p8): Likewise.
3609 (vtrnq_p16): Likewise.
3610 (vtrnq_s8): Likewise.
3611 (vtrnq_s16): Likewise.
3612 (vtrnq_s32): Likewise.
3613 (vtrnq_u8): Likewise.
3614 (vtrnq_u16): Likewise.
3615 (vtrnq_u32): Likewise.
3616 (vrsqrte_f16): Likewise.
3617 (vrsqrteq_f16): Likewise.
3618 (vsqrt_f16): Likewise.
3619 (vsqrtq_f16): Likewise.
3620 (vabd_f16): Likewise.
3621 (vabdq_f16): Likewise.
3622 (vpadd_f16): Likewise.
3623 (vpaddq_f16): Likewise.
3624 (vpmax_f16): Likewise.
3625 (vpmaxq_f16): Likewise.
3626 (vpmaxnm_f16): Likewise.
3627 (vpmaxnmq_f16): Likewise.
3628 (vpmin_f16): Likewise.
3629 (vpminq_f16): Likewise.
3630 (vpminnm_f16): Likewise.
3631 (vpminnmq_f16): Likewise.
3632 (vrsqrts_f16): Likewise.
3633 (vrsqrtsq_f16): Likewise.
3634
3635 2019-09-25 Richard Biener <rguenther@suse.de>
3636
3637 PR tree-optimization/91896
3638 * tree-vect-loop.c (vectorizable_reduction): The single
3639 def-use cycle optimization cannot apply when there's more
3640 than one pattern stmt involved.
3641
3642 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3643
3644 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3645 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3646 (reload_macho_picbase_<mode>): Likewise.
3647
3648 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3649
3650 * config/rs6000/rs6000.md: Move darwin.md include until
3651 after the definition of the mode iterators.
3652
3653 2019-09-23 Martin Sebor <msebor@redhat.com>
3654
3655 PR tree-optimization/91570
3656 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3657 non-constant minlen, maxlen and maxbound.
3658
3659 2019-09-24 Richard Biener <rguenther@suse.de>
3660
3661 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3662 Rename to...
3663 (_stmt_vec_info::cond_reduc_code): ... this.
3664 (_stmt_vec_info::induc_cond_initial_val): Add.
3665 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3666 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3667 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3668 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3669 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3670 the reduction code.
3671 (vect_create_epilog_for_reduction): Drop special
3672 induction condition reduction params, pass in reduction code
3673 and simplify.
3674 (vectorizable_reduction): Perform condition reduction kind
3675 selection only at analysis time. Adjust passing on state.
3676
3677 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3678
3679 * config/aarch64/aarch64.md (mov<mode>): Don't call
3680 aarch64_split_dimode_const_store on volatile MEM.
3681
3682 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3683
3684 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3685 Update hwcap string for fp16fml.
3686
3687 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3688
3689 PR middle-end/91866
3690 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3691 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3692
3693 2019-09-24 Martin Liska <mliska@suse.cz>
3694
3695 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3696 instead of if-elseif-elseif-...
3697 * gimple-expr.c (extract_ops_from_tree): Likewise.
3698 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3699 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3700
3701 2019-09-24 Martin Jambor <mjambor@suse.cz>
3702
3703 PR ipa/91831
3704 * ipa-param-manipulation.c (carry_over_param): Make a method of
3705 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3706 in case of a context mismatch.
3707 (ipa_param_body_adjustments::common_initialization): Adjust call to
3708 carry_over_param.
3709 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3710 private method carry_over_param.
3711
3712 2019-09-24 Martin Jambor <mjambor@suse.cz>
3713
3714 PR ipa/91832
3715 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3716
3717 2019-09-24 Richard Biener <rguenther@suse.de>
3718
3719 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3720 base.
3721
3722 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3723
3724 * config/arm/t-arm (arm-builtins.o): Add dependency on
3725 arm_acle_builtins.def.
3726
3727 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3728
3729 PR target/91823
3730 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3731 canonical CONST_INTs. Use gen_rtvec.
3732
3733 2019-09-23 Richard Biener <rguenther@suse.de>
3734
3735 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3736 avoid adjusting by + 0 or * 1.
3737 (vect_create_epilog_for_reduction): Get reduction code only
3738 when necessary. Deal with adjustment_def only when necessary.
3739
3740 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3741
3742 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3743 memmodel index.
3744
3745 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3746
3747 PR ipa/91835
3748 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3749 "ipa-sra".
3750
3751 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3752
3753 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3754 code. Merge code blocks with common conditionals. Use declared
3755 macro instead of a magic number for PIC level.
3756
3757 2019-09-21 Martin Sebor <msebor@redhat.com>
3758
3759 PR middle-end/91830
3760 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3761 Simplify computation of the offset of the referenced subobject.
3762
3763 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3764
3765 * config/darwin.c (machopic_legitimize_pic_address): Check
3766 for lra not reload.
3767
3768 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3769
3770 * ira-conflicts.c (can_use_same_reg_p): New function.
3771 (process_reg_shuffles): Take an insn parameter. Ignore cases
3772 in which input operand op_num could seemingly never be allocated
3773 to the same register as the destination.
3774 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3775
3776 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3777
3778 * simplify-rtx.c (neg_const_int): Replace with...
3779 (neg_poly_int_rtx): ...this new function.
3780 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3781 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3782 (simplify_plus_minus): Likewise for constant terms here.
3783
3784 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3785
3786 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3787 HOST_WIDE_PRINT_UNSIGNED.
3788
3789 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3790
3791 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3792 character.
3793
3794 2019-09-20 Maya Rashish <coypu@sdf.org>
3795
3796 PR target/86811
3797 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3798 Define to speculation_safe_value_not_needed.
3799
3800 2019-09-20 Richard Biener <rguenther@suse.de>
3801 Uros Bizjak <ubizjak@gmail.com>
3802
3803 PR target/91814
3804 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3805 previous change.
3806 (general_scalar_chain::convert_op): Force not suitable memory
3807 operands to a register.
3808
3809 2019-09-20 Richard Biener <rguenther@suse.de>
3810
3811 PR tree-optimization/91821
3812 * tree-vect-loop.c (check_reduction_path): Check we can compute
3813 reduc_idx.
3814 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3815 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3816 operands in canonical order.
3817 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3818 STMT_VINFO_REDUC_IDX.
3819 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3820 (STMT_VINFO_REDUC_IDX): Likewise.
3821
3822 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3823
3824 PR target/91269
3825 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3826
3827 2019-09-20 Richard Biener <rguenther@suse.de>
3828
3829 PR tree-optimization/91822
3830 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3831 parameter.
3832 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3833 for reduc_index in nested cycles, adjust vectorizable_condition
3834 calls.
3835 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3836 parameter.
3837 (vect_analyze_stmt): Adjust.
3838 (vect_transform_stmt): Likewise.
3839
3840 2019-09-20 Richard Biener <rguenther@suse.de>
3841
3842 PR target/91767
3843 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3844 Ensure there's a sequence point between allocating the new register
3845 and passing a reference to a reg via regno_reg_rtx.
3846
3847 2019-09-20 Martin Jambor <mjambor@suse.cz>
3848
3849 * coretypes.h (cgraph_edge): Declare.
3850 * ipa-param-manipulation.c: Rewrite.
3851 * ipa-param-manipulation.h: Likewise.
3852 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3853 (OBJS): Added ipa-sra.o.
3854 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3855 and ref_p, added fields param_adjustments and performed_splits.
3856 (struct cgraph_clone_info): Remove ags_to_skip and
3857 combined_args_to_skip, new field param_adjustments.
3858 (cgraph_node::create_clone): Changed parameters to use
3859 ipa_param_adjustments.
3860 (cgraph_node::create_virtual_clone): Likewise.
3861 (cgraph_node::create_virtual_clone_with_body): Likewise.
3862 (tree_function_versioning): Likewise.
3863 (cgraph_build_function_type_skip_args): Removed.
3864 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3865 using ipa_param_adjustments.
3866 (clone_of_p): Likewise.
3867 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3868 (build_function_decl_skip_args): Likewise.
3869 (duplicate_thunk_for_node): Adjust parameters using
3870 ipa_param_body_adjustments, copy param_adjustments instead of
3871 args_to_skip.
3872 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3873 (cgraph_node::create_virtual_clone): Likewise.
3874 (cgraph_node::create_version_clone_with_body): Likewise.
3875 (cgraph_materialize_clone): Likewise.
3876 (symbol_table::materialize_all_clones): Likewise.
3877 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3878 ipa_replace_map check.
3879 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3880 (initialize_node_lattices): Make aware that some parameters might have
3881 already been removed.
3882 (want_remove_some_param_p): New function.
3883 (create_specialized_node): Convert to using ipa_param_adjustments and
3884 deal with possibly pre-existing adjustments.
3885 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3886 (output_node_opt_summary): Do not stream removed fields. Stream
3887 parameter adjustments instead of argumetns to skip.
3888 (input_node_opt_summary): Likewise.
3889 (input_node_opt_summary): Likewise.
3890 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3891 * lto-streamer.h (lto_section_type): Likewise.
3892 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3893 param_body_adjs.
3894 (copy_decl_to_var): Declare.
3895 * tree-inline.c (update_clone_info): Do not remap old_tree.
3896 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3897 statements, walk all extra generated statements and remap their
3898 operands.
3899 (redirect_all_calls): Add killed SSA names to a hash set.
3900 (remap_ssa_name): Do not remap killed SSA names.
3901 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3902 half of functionality moved to ipa_param_body_adjustments.
3903 (copy_decl_to_var): Make exported.
3904 (copy_body): Destroy killed_new_ssa_names hash set.
3905 (expand_call_inline): Remap performed splits.
3906 (update_clone_info): Likewise.
3907 (tree_function_versioning): Simplify tree_map processing. Updated to
3908 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3909 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3910 for the new interface.
3911 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3912 (simd_clone_compute_base_data_type): Likewise.
3913 (simd_clone_init_simd_arrays): Adjust for the new interface.
3914 (simd_clone_adjust_argument_types): Likewise.
3915 (struct modify_stmt_info): Likewise.
3916 (ipa_simd_modify_stmt_ops): Likewise.
3917 (ipa_simd_modify_function_body): Likewise.
3918 (simd_clone_adjust): Likewise.
3919 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3920 (type_internals_preclude_sra_p): Make public.
3921 * tree-sra.h: New file.
3922 * ipa-inline-transform.c (save_inline_function_body): Update to
3923 refelct new tree_function_versioning signature.
3924 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3925 ipa_param_adjustments to get current parameter indices.
3926 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3927 (ipcp_update_bits): Likewise.
3928 (ipcp_update_vr): Likewise.
3929 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3930 * ipa-sra.c: New file.
3931 * multiple_target.c (create_target_clone): Update to reflet new type
3932 of create_version_clone_with_body.
3933 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3934 tree_function_versioning.
3935 (modify_function): Update to reflect new type of
3936 tree_function_versioning.
3937 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3938 * passes.def: Remove old IPA-SRA and add new one.
3939 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3940 (make_pass_ipa_sra): Declare.
3941 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3942 ipa_sra_retvalues.
3943 * doc/invoke.texi (ipa-sra-max-replacements): New.
3944
3945 2019-09-19 Martin Sebor <msebor@redhat.com>
3946
3947 PR middle-end/91631
3948 * builtins.c (component_size): Correct trailing array computation,
3949 rename to component_ref_size and move...
3950 (compute_objsize): Adjust.
3951 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3952 (builtin_access::strict): Do not consider memmove.
3953 (builtin_access::write_off): New function.
3954 (builtin_memref::builtin_memref): Initialize refsize.
3955 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3956 refsize.
3957 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3958 Handle refsize.
3959 (builtin_access::builtin_access): Initialize dstoff to destination
3960 refeence offset here instead of in maybe_diag_overlap. Adjust
3961 referencess even to unrelated objects. Adjust sizrange of bounded
3962 string functions to reflect bound. For strcat, adjust destination
3963 sizrange by that of source.
3964 (builtin_access::strcat_overlap): Adjust offsets and sizes
3965 to reflect the increase in destination sizrange above.
3966 (builtin_access::overlap): Do not set dstoff here but instead
3967 in builtin_access::builtin_access.
3968 (check_bounds_or_overlap): Use builtin_access::write_off.
3969 (maybe_diag_access_bounds): Add argument. Add informational notes.
3970 (dump_builtin_memref, dump_builtin_access): New functions.
3971 * tree.c (component_ref_size): ...to here.
3972 * tree.h (component_ref_size): Declare.
3973 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3974 nul in the size of the source string.
3975
3976 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3977
3978 PR c/67224
3979 * doc/cpp.texi: Document support for extended characters in
3980 identifiers.
3981 * doc/cppopts.texi: Likewise.
3982
3983 2019-09-19 Richard Biener <rguenther@suse.de>
3984
3985 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3986 (check_reduction_path): New overload having the path as result.
3987 (vect_is_simple_reduction): From the detected reduction
3988 path build a SLP reduction chain if possible.
3989
3990 2019-09-19 Richard Biener <rguenther@suse.de>
3991
3992 PR target/91814
3993 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3994 Force operand to a register if it isn't nonimmediate_operand.
3995
3996 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3997
3998 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3999 * config/arm/iterators.md (optab): Add and, ior, xor entries.
4000 (logical_op): Remove code attribute.
4001 (logical_OP): Likewise.
4002
4003 2019-09-19 Martin Liska <mliska@suse.cz>
4004
4005 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
4006 Use proper casting.
4007
4008 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
4009
4010 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
4011 registers with %R.
4012
4013 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
4014 for NE comparison of TImode values.
4015 (aarch64_emit_load_exclusive): Add support for TImode.
4016 (aarch64_emit_store_exclusive): Likewise.
4017 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
4018 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
4019 Change iterator from ALLI to ALLI_TI.
4020 (@atomic_compare_and_swap<JUST_TI>): New.
4021 (@atomic_compare_and_swap<JUST_TI>_lse): New.
4022 (aarch64_load_exclusive_pair): New.
4023 (aarch64_store_exclusive_pair): New.
4024 * config/aarch64/iterators.md (JUST_TI): New.
4025
4026 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
4027 strong_zero_p for aarch64_track_speculation; unify some code paths;
4028 use aarch64_gen_compare_reg instead of open-coding.
4029
4030 * config/aarch64/aarch64.opt (-moutline-atomics): New.
4031 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
4032 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
4033 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
4034 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
4035 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
4036 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
4037 (atomic_<atomic_op><ALLI>): Likewise.
4038 (atomic_fetch_<atomic_op><ALLI>): Likewise.
4039 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
4040 * doc/invoke.texi: Document -moutline-atomics.
4041
4042 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
4043
4044 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
4045 trivial predicate for condition branch.
4046 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
4047 for switch case.
4048 (compute_bb_predicates): Update predicate based on post-dominating
4049 relationship.
4050 (analyze_function_body): Calculate post-dominating information.
4051
4052 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4053
4054 * tree-vectorizer.h (vectorizable_condition): Take an int
4055 reduction index instead of a boolean flag.
4056 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4057 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
4058 reductions if the reduction accumulator is the "then" rather
4059 than the "else" value.
4060 (vect_analyze_stmt): Update call accordingly.
4061 (vect_transform_stmt): Likewise.
4062 * tree-vect-loop.c (vectorizable_reduction): Likewise,
4063 asserting that the index is > 0.
4064
4065 2019-09-19 Martin Liska <mliska@suse.cz>
4066
4067 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
4068 (sort_congruence_classes_by_decl_uid): Likewise.
4069 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
4070 easier sorting.
4071 (sem_item_optimizer::merge_classes): Likewise.
4072
4073 2019-09-19 Richard Biener <rguenther@suse.de>
4074
4075 PR tree-optimization/91812
4076 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
4077 volatile loads.
4078
4079 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4080
4081 * defaults.h (TARGET_UNIT): New macro.
4082 (target_unit): New type.
4083 * rtl.h (native_encode_rtx, native_decode_rtx)
4084 (native_decode_vector_rtx, subreg_size_lsb): Declare.
4085 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
4086 * rtlanal.c (subreg_lsb_1): Delete.
4087 (subreg_size_lsb): New function.
4088 * simplify-rtx.c: Include rtx-vector-builder.h
4089 (simplify_immed_subreg): Delete.
4090 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
4091 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
4092 functions.
4093 (simplify_subreg): Use them.
4094 (test_vector_subregs_modes, test_vector_subregs_repeating)
4095 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
4096 (test_vector_subregs): New functions.
4097 (test_vector_ops): Call test_vector_subregs for integer vector
4098 modes with at least 2 elements.
4099
4100 2019-09-19 Richard Biener <rguenther@suse.de>
4101
4102 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4103 LOOP_VINFO_OPERANDS_SWAPPED.
4104 (parloops_is_simple_reduction): Likewise.
4105 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4106 initialize operands_swapped.
4107 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4108 (vect_is_slp_reduction): Do not swap operands.
4109 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4110 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4111
4112 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4113
4114 PR target/87007
4115 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4116 Add avx_partial_xmm_update.
4117
4118 2019-09-18 Jim Wilson <jimw@sifive.com>
4119
4120 PR target/91683
4121 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4122 (riscv_move_integer): Likewise.
4123 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4124 riscv_move_integer arg.
4125 (riscv_legitimize_move): Likewise.
4126 (riscv_force_temporary): New parameter in_splitter. Don't call
4127 force_reg if true.
4128 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4129 arg.
4130 (riscv_add_offset): Likewise.
4131 (riscv_split_symbol): New parameter in_splitter. Pass to
4132 riscv_force_temporary.
4133 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4134 arg.
4135 (riscv_move_integer): New parameter in_splitter. New local
4136 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4137 in_splitter TRUE.
4138 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4139 riscv_split_symbol, and riscv_force_temporary args.
4140 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4141 riscv_move_integer arg.
4142 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4143
4144 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4145
4146 PR target/90878
4147 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4148 hard register store cost to 6.
4149
4150 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4151
4152 PR target/91446
4153 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4154 pseudo register store cost from 3 to 6 to make it the same as
4155 QImode and HImode.
4156
4157 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4158
4159 PR target/91738
4160 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4161 (one_cmpldi2): Likewise.
4162 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4163 of the constant parts is simple.
4164 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4165 (logical_op): Add new code attribute.
4166 (logical_OP): Likewise.
4167 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4168 (arm_iordi_operand): Add predicate.
4169 (arm_xordi_operand): Add predicate.
4170
4171 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4172
4173 * config/arm/arm.md (maddsidi4): Remove expander.
4174 (mulsidi3adddi): Remove pattern.
4175 (mulsidi3adddi_v6): Likewise.
4176 (mulsidi3_nov6): Likewise.
4177 (mulsidi3_v6): Likewise.
4178 (umulsidi3): Remove expander.
4179 (umulsidi3_nov6): Remove pattern.
4180 (umulsidi3_v6): Likewise.
4181 (umulsidi3adddi): Likewise.
4182 (umulsidi3adddi_v6): Likewise.
4183 (<Us>mulsidi3): Add combined expander.
4184 (<Us>maddsidi4): Likewise.
4185 (<US>mull): Add combined umull and smull pattern.
4186 (<US>mlal): Likewise.
4187 * config/arm/iterators.md (Us): Add new iterator.
4188
4189 2019-09-18 Richard Biener <rguenther@suse.de>
4190
4191 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4192 swapping.
4193 (vectorize_fold_left_reduction): Remove assert.
4194 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4195 operand in position 2. Remove assert.
4196
4197 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4198
4199 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4200 (smulsi3_highpart_nov6): Remove pattern.
4201 (smulsi3_highpart_v6): Likewise.
4202 (umulsi3_highpart): Likewise.
4203 (umulsi3_highpart_nov6): Likewise.
4204 (umulsi3_highpart_v6): Likewise.
4205 (<US>mull_high): Add new combined multiply pattern.
4206
4207 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4208
4209 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4210 (arm_mulsi3_v6): Likewise.
4211 (mulsi3addsi_v6): Likewise.
4212 (mulsi3subsi): Likewise.
4213 (mul): Add new multiply pattern.
4214 (mla): Likewise.
4215 (mls): Likewise.
4216
4217 2019-09-18 Richard Biener <rguenther@suse.de>
4218
4219 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4220 (parloops_valid_reduction_input_p): Copy from
4221 valid_reduction_input_p.
4222 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4223 (parloops_needs_fold_left_reduction_p): Copy from
4224 needs_fold_left_reduction_p.
4225 (parloops_is_simple_reduction): Copy from
4226 vect_is_simple_reduction.
4227 (parloops_force_simple_reduction): Copy from
4228 vect_force_simple_reduction.
4229 (gather_scalar_reductions): Adjust.
4230 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4231 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4232
4233 2019-09-18 Richard Biener <rguenther@suse.de>
4234
4235 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4236 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4237 static.
4238 (vect_create_epilog_for_reduction): Remove dead code.
4239
4240 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4241
4242 * varasm.c (assemble_real): Generate canonical const_ints.
4243
4244 2019-09-18 Richard Biener <rguenther@suse.de>
4245
4246 PR lto/91763
4247 * lto-streamer-in.c (input_eh_regions): Move EH init to
4248 lto_materialize_function.
4249 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4250 Likewise.
4251
4252 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4253
4254 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4255 are INTEGER_CSTs.
4256
4257 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4258
4259 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4260 of checking specifically for INTEGER_CST.
4261
4262 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4263
4264 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4265 sizes instead of uhwi sizes.
4266
4267 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4268
4269 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4270 (add_const_value_attribute): Handle CONST_POLY_INT.
4271
4272 2019-09-18 Martin Liska <mliska@suse.cz>
4273
4274 * dbgcnt.def (store_merging): New counter.
4275 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4276 Use it in store merging.
4277
4278 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4279
4280 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4281 function.
4282 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4283 * config/arm/arm.c (arm_sched_variable_issue): New function.
4284 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4285
4286 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4287
4288 * config/arm/types.md (no_reservation): New reservation.
4289 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4290 no_insn here.
4291 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4292 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4293 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4294 * config/arm/arm1020e.md (1020alu_op): Likewise.
4295 * config/arm/arm1026ejs.md (alu_op): Likewise.
4296 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4297 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4298 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4299 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4300 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4301 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4302 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4303 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4304 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4305 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4306 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4307 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4308 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4309 * config/arm/fa526.md (526_alu_op): Likewise.
4310 * config/arm/fa606te.md (606te_alu_op): Likewise.
4311 * config/arm/fa626te.md (626te_alu_op): Likewise.
4312 * config/arm/fa726te.md (726te_alu_op): Likewise.
4313 * config/arm/xgene1.md (xgene1_nop): Likewise.
4314
4315 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4316
4317 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4318 "no_insn" to "branch".
4319
4320 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4321
4322 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4323
4324 2019-09-17 Richard Biener <rguenther@suse.de>
4325
4326 PR debug/91772
4327 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4328 was missing generate locations only once.
4329
4330 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4331
4332 PR ipa/91089
4333 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4334 option.
4335 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4336 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4337 for switch default case using range analysis information.
4338
4339 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4340
4341 PR target/91749
4342 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4343 mode attributed is supported by FDPIC.
4344
4345 2019-09-17 Richard Biener <rguenther@suse.de>
4346
4347 PR tree-optimization/91790
4348 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4349 use the correct DR for setting up realignment.
4350
4351 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4352
4353 PR target/91719
4354 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4355 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4356 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4357 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4358
4359 2019-09-16 Jason Merrill <jason@redhat.com>
4360
4361 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4362
4363 2019-09-16 Martin Liska <mliska@suse.cz>
4364
4365 * gimple-fold.c (or_comparisons_1): Remove rules moved
4366 to ...
4367 * match.pd: ... here.
4368
4369 2019-09-16 Martin Liska <mliska@suse.cz>
4370
4371 * gimple-fold.c (or_comparisons_1): Remove rules
4372 moved to ...
4373 * match.pd: ... here.
4374
4375 2019-09-16 Martin Liska <mliska@suse.cz>
4376
4377 * genmatch.c (dt_node::append_simplify): Do not print
4378 warning when we have duplicate patterns belonging
4379 to a same simplify rule.
4380 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4381 (maybe_fold_comparisons_from_match_pd): Handle
4382 tcc_comparison as a results.
4383 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4384
4385 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4386 Qi Feng <ffengqi@linux.ibm.com>
4387
4388 PR middle-end/88784
4389 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4390 (x > y && x == XXX_MIN): Optimize into 'false'.
4391 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4392 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4393 (x < y && x == XXX_MAX): Optimize into 'false'.
4394 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4395 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4396 (x <= y || x != XXX_MIN): Optimize into 'true'.
4397 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4398 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4399 (x >= y || x != XXX_MAX): Optimize into 'true'.
4400 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4401
4402 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4403 Martin Liska <mliska@suse.cz>
4404
4405 * gimple-fold.c (and_comparisons_1): Add type as first
4406 argument.
4407 (and_var_with_comparison): Likewise.
4408 (and_var_with_comparison_1): Likewise.
4409 (or_comparisons_1): Likewise.
4410 (or_var_with_comparison): Likewise.
4411 (or_var_with_comparison_1): Likewise.
4412 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4413 (maybe_fold_or_comparisons): Likewise.
4414 (maybe_fold_comparisons_from_match_pd): New.
4415 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4416 (maybe_fold_or_comparisons): Likewise.
4417 * gimple.c (gimple_size): Make it public and add num_ops argument.
4418 (gimple_init): New function.
4419 (gimple_alloc): Call gimple_init.
4420 * gimple.h (gimple_size): New.
4421 (gimple_init): Likewise.
4422 * tree-if-conv.c (fold_or_predicates): Pass type.
4423 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4424 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4425 (optimize_vec_cond_expr): Likewise.
4426 (ovce_extract_ops): Return type of conditional expression.
4427 * tree-ssanames.c (init_ssa_name_imm_use): New.
4428 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4429 * tree-ssanames.h (init_ssa_name_imm_use): New.
4430
4431 2019-09-16 Richard Biener <rguenther@suse.de>
4432
4433 PR tree-optimization/91756
4434 PR tree-optimization/87132
4435 * tree-ssa-alias.h (enum translate_flags): New.
4436 (get_continuation_for_phi): Use it instead of simple bool flag.
4437 (walk_non_aliased_vuses): Likewise.
4438 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4439 (get_continuation_for_phi): When looking across backedges only
4440 disallow valueization.
4441 (walk_non_aliased_vuses): Adjust.
4442 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4443 if requested.
4444
4445 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4446
4447 PR middle-end/80791
4448 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4449 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4450 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4451 * target.def (have_count_reg_decr_p): New hook.
4452 (doloop_cost_for_generic): Likewise.
4453 (doloop_cost_for_address): Likewise.
4454 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4455 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4456 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4457 * doc/tm.texi: Regenerate.
4458 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4459 addend.
4460 (record_group): Init doloop_p.
4461 (add_candidate_1): Add optional argument doloop, change the handlings
4462 accordingly.
4463 (add_candidate): Likewise.
4464 (generic_predict_doloop_p): Update attribute.
4465 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4466 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4467 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4468 MIN_EXPR.
4469 (get_computation_cost): Update for doloop IV cand extra cost.
4470 (determine_group_iv_cost_cond): Update for doloop IV cand.
4471 (determine_iv_cost): Likewise.
4472 (ivopts_estimate_reg_pressure): Likewise.
4473 (may_eliminate_iv): Update handlings for doloop IV cand.
4474 (add_iv_candidate_for_doloop): New function.
4475 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4476 (iv_ca_set_no_cp): Update for doloop IV cand.
4477 (iv_ca_set_cp): Likewise.
4478 (iv_ca_dump): Dump register cost.
4479 (find_doloop_use): New function.
4480 (analyze_and_mark_doloop_use): Likewise.
4481 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4482
4483 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4484
4485 PR middle-end/91708
4486 * cse.c (cse_insn): Do not replace anything with a
4487 MEM.
4488
4489 2019-09-13 Ian Lance Taylor <iant@golang.org>
4490
4491 * doc/invoke.texi (Optimize Options): Fix typo.
4492
4493 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4494
4495 PR tree-optimization/89386
4496 * config/i386/sse.md (smulhrs<mode>3): New expander.
4497 (smulhrsv4hi3): Ditto.
4498
4499 2019-09-12 Richard Biener <rguenther@suse.de>
4500
4501 PR tree-optimization/91750
4502 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4503 in the type of the evolution.
4504
4505 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4506
4507 PR tree-optimization/89386
4508 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4509 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4510 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4511 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4512 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4513 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4514 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4515 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4516 (su, r): Handle the unspecs above.
4517 (bt): New int attribute.
4518 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4519 * internal-fn.c (first_commutative_argument): Commutativity info for
4520 above.
4521 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4522 (umulhrs_optab): New optabs.
4523 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4524 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4525 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4526 function.
4527 (vect_vect_recog_func_ptrs): Add it.
4528
4529 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4530
4531 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4532 code.
4533
4534 2019-09-11 Nathan Sidwell <nathan@acm.org>
4535
4536 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4537 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4538
4539 2019-09-11 Richard Biener <rguenther@suse.de>
4540
4541 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4542 * lto-wrapper.c (merge_and_complain): Pick up -g.
4543 (append_compiler_options): Likewise.
4544 (run_gcc): Re-instantiate handling -g0 at link-time.
4545 * doc/invoke.texi (flto): Document debug info generation.
4546
4547 2019-09-11 Richard Biener <rguenther@suse.de>
4548
4549 PR tree-optimization/90387
4550 * vr-values.c (vr_values::extract_range_basic): After inlining
4551 simplify non-constant __builtin_constant_p to false.
4552
4553 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4554
4555 PR rtl-optimization/89795
4556 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4557 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4558
4559 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4560
4561 PR tree-optimization/91723
4562 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4563 instead of pointer equality when checking if argument vectypes are
4564 the same.
4565
4566 PR middle-end/91725
4567 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4568 of get_nonzero_bits, only call it for integral types.
4569
4570 2019-09-11 Richard Biener <rguenther@suse.de>
4571
4572 Revert
4573 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4574
4575 * match.pd: Add flag_unsafe_math_optimizations check
4576 before deciding on the widest type in a binary math operation.
4577
4578 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4579
4580 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4581 and CALL_REALLY_USED_REGISTERS must be defined, and that
4582 CALL_REALLY_USED_REGISTERS is preferred.
4583 * doc/tm.texi: Regenerate.
4584 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4585 (call_really_used_regs): Likewise.
4586 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4587 CALL_REALLY_USED_REGISTERS are defined.
4588 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4589 initial value if defined.
4590 (initial_call_really_used_regs): Delete.
4591 (saved_call_really_used_regs): Likewise.
4592 (CALL_REALLY_USED_REGNO_P): Likewise.
4593 (init_reg_sets): Remove handling of call_really_used_regs.
4594 (save_register_info, restore_register_info, globalize_reg): Likewise.
4595 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4596 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4597 outside operand_reg_set.
4598 (fix_register): Don't change call_used_regs if
4599 CALL_REALLY_USED_REGISTERS is defined.
4600 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4601 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4602 instead of call_really_used_regs.
4603 (csky_conditional_register_usage): Remove the old handling of
4604 call_used_regs and change the handling of call_really_used_regs
4605 to use call_used_regs instead.
4606 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4607 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4608 making a register fixed.
4609 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4610 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4611 instead of call_really_used_regs.
4612 (m32r_conditional_register_usage): Don't set call_used_regs when
4613 making a register fixed.
4614 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4615 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4616 instead of call_really_used_regs.
4617 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4618 (mips_cfun_call_saved_reg_p): Likewise.
4619 (mips_swap_registers): Remove the old handling of call_used_regs
4620 and change the handling of call_really_used_regs to use call_used_regs
4621 instead.
4622 (mips_conditional_register_usage): Likewise.
4623 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4624 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4625 instead of call_really_used_regs.
4626 (mn10300_get_live_callee_saved_regs): Likewise.
4627 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4628 (mn10300_conditional_register_usage): Don't set call_used_regs when
4629 making a register fixed.
4630 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4631 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4632 Remove the old handling of call_used_regs and change the handling
4633 of call_really_used_regs to use call_used_regs instead.
4634 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4635 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4636 instead of call_really_used_regs.
4637 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4638 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4639 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4640 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4641 (s390_conditional_register_usage): Remove the old handling of
4642 call_used_regs and change the handling of call_really_used_regs
4643 to use call_used_regs instead.
4644 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4645 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4646 (sh_fix_range, reg_unused_after): Likewise.
4647 (sh_conditional_register_usage): Remove the old handling of
4648 call_used_regs and change the handling of call_really_used_regs
4649 to use call_used_regs instead.
4650 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4651 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4652 call_used_regs when making a register fixed.
4653 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4654 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4655 call_used_regs when making a register fixed.
4656 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4657 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4658 set call_used_regs when making a register fixed.
4659 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4660 * config/visium/visium.c (visium_conditional_register_usage): Remove
4661 the old handling of call_used_regs and change the handling of
4662 call_really_used_regs to use call_used_regs instead.
4663
4664 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4665
4666 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4667 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4668 * reginfo.c (call_used_regs): New macro.
4669
4670 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4671
4672 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4673 fixed_regs test.
4674 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4675 (bpf_expand_epilogue): Likewise.
4676 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4677 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4678 (ft32_expand_epilogue): Likewise.
4679 * config/i386/i386.c (ix86_save_reg): Likewise.
4680 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4681 (moxie_expand_epilogue): Likewise.
4682 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4683 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4684 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4685
4686 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4687
4688 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4689 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4690 instead of testing call_used_regs directly.
4691 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4692 (aarch64_components_for_bb): Likewise.
4693 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4694 * config/arc/arc.c (arc_must_save_register): Likewise.
4695 (arc_epilogue_uses): Likewise.
4696 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4697 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4698 (arm_compute_save_reg0_reg12_mask): Likewise.
4699 (arm_compute_save_core_reg_mask): Likewise.
4700 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4701 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4702 (cmse_nonsecure_entry_clear_before_return): Likewise.
4703 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4704 (arm_expand_epilogue): Likewise.
4705 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4706 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4707 (_reg_unused_after): Likewise.
4708 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4709 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4710 (add_to_reg, hwloop_optimize): Likewise.
4711 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4712 (bpf_expand_epilogue): Likewise.
4713 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4714 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4715 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4716 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4717 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4718 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4719 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4720 * config/frv/frv.c (frv_stack_info): Likewise.
4721 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4722 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4723 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4724 (move_callee_saved_registers): Likewise.
4725 * config/h8300/h8300.c (byte_reg): Likewise.
4726 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4727 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4728 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4729 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4730 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4731 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4732 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4733 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4734 * config/m32c/m32c.c (need_to_save): Likewise.
4735 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4736 * config/mcore/mcore.c (calc_live_regs): Likewise.
4737 * config/microblaze/microblaze.c (microblaze_must_save_register):
4738 Likewise.
4739 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4740 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4741 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4742 (mmix_expand_epilogue): Likewise.
4743 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4744 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4745 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4746 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4747 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4748 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4749 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4750 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4751 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4752 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4753 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4754 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4755 * config/rl78/rl78.c (need_to_save): Likewise.
4756 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4757 (rs6000_stack_info, generate_set_vrsave): Likewise.
4758 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4759 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4760 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4761 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4762 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4763 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4764 (save_local_or_in_reg_p): Likewise.
4765 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4766 (xstormy16_epilogue_uses): Likewise.
4767 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4768 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4769 * config/v850/v850.c (compute_register_save_size): Likewise.
4770 * config/vax/vax.c (vax_expand_prologue): Likewise.
4771 * config/visium/visium.c (visium_save_reg_p): Likewise.
4772 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4773 * cselib.c (cselib_process_insn): Likewise.
4774 * df-scan.c (df_get_entry_block_def_set): Likewise.
4775 * function.c (aggregate_value_p): Likewise.
4776 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4777 * ira-lives.c (process_bb_node_lives): Likewise.
4778 * ira.c (do_reload): Likewise.
4779 * lra-lives.c (process_bb_lives): Likewise.
4780 * lra-remat.c (lra_remat): Likewise.
4781 * lra.c (lra): Likewise.
4782 * postreload.c (reload_combine_recognize_pattern): Likewise.
4783 (reload_cse_move2add): Likewise.
4784 * recog.c (peep2_find_free_register): Likewise.
4785 * regrename.c (check_new_reg_p): Likewise.
4786 * reload.c (find_equiv_reg): Likewise.
4787 * reload1.c (reload, find_reg): Likewise.
4788 * sel-sched.c (init_hard_regs_data): Likewise.
4789
4790 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4791
4792 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4793 regs_invalidated_by_call & ~fixed_reg_set instead of
4794 call_used_or_fixed_regs & ~fixed_reg_set.
4795 * config/sh/sh.c (output_stack_adjust): Likewise.
4796
4797 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4798
4799 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4800 (call_used_reg_set): Delete.
4801 (call_used_or_fixed_regs): New macro.
4802 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4803 of call_used_reg_set.
4804 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4805 instead of call_used_regs.
4806 (save_call_clobbered_regs): Likewise.
4807 * cfgcleanup.c (old_insns_match_p): Likewise.
4808 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4809 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4810 Likewise.
4811 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4812 * config/sh/sh.c (output_stack_adjust): Likewise.
4813 * final.c (collect_fn_hard_reg_usage): Likewise.
4814 * ira-build.c (ira_build): Likewise.
4815 * ira-color.c (calculate_saved_nregs): Likewise.
4816 (allocno_reload_assign, calculate_spill_cost): Likewise.
4817 * ira-conflicts.c (ira_build_conflicts): Likewise.
4818 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4819 * ira-lives.c (process_bb_node_lives): Likewise.
4820 * ira.c (setup_reg_renumber): Likewise.
4821 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4822 * lra-constraints.c (need_for_call_save_p): Likewise.
4823 (need_for_split_p, inherit_in_ebb): Likewise.
4824 * lra-lives.c (process_bb_lives): Likewise.
4825 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4826 * postreload.c (reload_combine): Likewise.
4827 * regrename.c (find_rename_reg): Likewise.
4828 * reload1.c (reload_as_needed): Likewise.
4829 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4830 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4831 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4832
4833 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4834
4835 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4836 (no_caller_save_reg_set): Delete.
4837 * caller-save.c (init_caller_save): Don't initialize it.
4838 * ira-conflicts.c (ira_build_conflicts): Calculate
4839 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4840
4841 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4842
4843 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4844 (target_hard_regs::x_savable_regs): New field.
4845 (call_fixed_reg_set): Delete.
4846 (savable_regs): New macro,
4847 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4848 (init_reg_sets_1): Likewise. Initialize savable_regs.
4849 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4850 for all registers. Set savable_regs instead of call_fixed_reg_set.
4851 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4852 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4853 * config/sh/sh.c (output_stack_adjust): Likewise.
4854
4855 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4856
4857 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4858 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4859 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4860
4861 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4862
4863 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4864 * rtlanal.c (get_call_rtx_from): Likewise.
4865 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4866 than the pattern to get_call_rtx_from.
4867 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4868 an rtx_insn * instead of an rtx.
4869 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4870
4871 2019-09-10 Martin Liska <mliska@suse.cz>
4872
4873 * common.opt: Use newly added WarnRemoved.
4874 * config/aarch64/aarch64.opt: Likewise.
4875 * config/arm/arm.opt: Likewise.
4876 * config/i386/i386.opt: Likewise.
4877 * config/ia64/ia64.opt: Likewise.
4878 * config/rs6000/rs6000.opt: Likewise.
4879 * doc/options.texi: Document WarnRemoved properly.
4880 * dwarf2out.c (gen_producer_string): Handle renamed
4881 OPT_SPECIAL_warn_removed.
4882 * lto-opts.c (lto_write_options): Likewise.
4883 * lto-wrapper.c (merge_and_complain): Likewise.
4884 * opts-common.c (decode_cmdline_option): Likewise.
4885 (prune_options): Likewise.
4886 (read_cmdline_option): Likewise.
4887 (control_warning_option): Likewise.
4888 * opts.c (print_filtered_help): Likewise.
4889 * optc-gen.awk: Parse for WarnRemoved and make usage
4890 of Deprecated an error.
4891 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4892
4893 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4894
4895 * doc/install.texi: Fix syntax for html generation.
4896
4897 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4898
4899 PR middle-end/91680
4900 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4901 the shift type to type.
4902
4903 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4904
4905 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4906 FDPIC mode.
4907 (stack_protect_combined_test_insn): Likewise.
4908
4909 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4910 Mickaël Guêné <mickael.guene@st.com>
4911
4912 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4913 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4914 (load_tp_soft_fdpic): New pattern.
4915 (load_tp_soft): Disable in FDPIC mode.
4916
4917 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4918 Mickaël Guêné <mickael.guene@st.com>
4919
4920 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4921 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4922 (arm_call_tls_get_addr): Add FDPIC support.
4923 (legitimize_tls_address): Likewise.
4924 (arm_emit_tls_decoration): Likewise.
4925
4926 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4927 Mickaël Guêné <mickael.guene@st.com>
4928
4929 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4930 support.
4931 (arm_trampoline_init): Likewise.
4932 (arm_trampoline_adjust_address): Likewise.
4933 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4934
4935 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4936 Mickaël Guêné <mickael.guene@st.com>
4937
4938 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4939 (legitimize_pic_address): Enforce binding rules on function
4940 pointers in FDPIC mode.
4941 (arm_assemble_integer): Likewise.
4942
4943 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4944 Mickaël Guêné <mickael.guene@st.com>
4945
4946 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4947 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4948 FDPIC.
4949
4950 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4951 Mickaël Guêné <mickael.guene@st.com>
4952
4953 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4954 field.
4955
4956 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4957 Mickaël Guêné <mickael.guene@st.com>
4958
4959 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4960 in FDPIC mode.
4961 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4962 new function.
4963 * config/arm/arm.c (arm_option_override): Define pic register to
4964 FDPIC_REGNUM.
4965 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4966 have no decl or go through PLT.
4967 (calculate_pic_address_constant): New function.
4968 (legitimize_pic_address): Call calculate_pic_address_constant.
4969 (arm_load_pic_register): Handle TARGET_FDPIC.
4970 (arm_is_segment_info_known): New function.
4971 (arm_pic_static_addr): Add support for FDPIC.
4972 (arm_load_function_descriptor): New function.
4973 (arm_emit_call_insn): Add support for FDPIC.
4974 (arm_assemble_integer): Add support for FDPIC.
4975 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4976 Define. (FDPIC_REGNUM): New define.
4977 * config/arm/arm.md (call): Add support for FDPIC.
4978 (call_value): Likewise.
4979 (restore_pic_register_after_call): New pattern.
4980 (untyped_call): Disable if FDPIC.
4981 (untyped_return): Likewise.
4982 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4983
4984 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4985 Mickaël Guêné <mickael.guene@st.com>
4986
4987 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4988 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4989 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4990 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4991 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4992 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4993 * config/arm/uclinuxfdpiceabi.h: New file.
4994
4995 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4996
4997 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4998
4999 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5000 Mickaël Guêné <mickael.guene@st.com>
5001
5002 * config/arm/arm.opt: Add -mfdpic option.
5003 * doc/invoke.texi: Add documentation for -mfdpic.
5004
5005 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5006
5007 * expmed.c (extract_bit_field): Update function comment
5008 regarding alt_rtl.
5009 * expr.c (expand_expr_real): Update function comment
5010 regarding alt_rtl.
5011 (expand_misaligned_mem_ref): New helper function.
5012 (expand_expr_real_2): Use expand_misaligned_mem_ref.
5013 Remove duplicate assignment to "base" at case MEM_REF.
5014 Remove a shadowed variable "unsignedp" at case VCE.
5015
5016 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5017
5018 * regset.h (regs_invalidated_by_call_regset): Delete.
5019 (fixed_reg_set_regset): Likewise.
5020 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
5021 (fixed_reg_set_regset, persistent_obstack): Likewise.
5022 (init_reg_sets_1, globalize_reg): Update accordingly.
5023 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
5024 instead of a bitmap.
5025 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
5026 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
5027 instead of regs_invalidated_by_call_regset.
5028 (df_lr_confluence_n, df_md_confluence_n): Likewise.
5029 * df-scan.c (df_scan_start_dump): Likewise.
5030 * dse.c (copy_fixed_regs): Likewise.
5031 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
5032
5033 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5034
5035 * array-traits.h: New file.
5036 * coretypes.h (array_traits, bitmap_view): New types.
5037 * bitmap.h: Include "array-traits.h"
5038 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5039 (base_bitmap_view, bitmap_view): New classes.
5040 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5041 * hard-reg-set.h: Include array-traits.h.
5042 (array_traits<HARD_REG_SET>): New struct.
5043 * regset.h (IOR_REG_SET_HRS): New macro.
5044 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
5045 rather than iterating over each hard register.
5046 * sched-deps.c (sched_analyze_insn): Likewise.
5047 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
5048
5049 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5050
5051 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
5052 instead of a HARD_REG_SET *.
5053 * ira-build.c (ior_hard_reg_conflicts): Likewise.
5054 (ira_build): Update call accordingly.
5055 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
5056
5057 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5058
5059 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
5060 (HARD_REG_SET::operator!=): Likewise.
5061 (hard_reg_set_equal_p): Delete.
5062 * cfgcleanup.c (old_insns_match_p): Use == instead of
5063 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
5064 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
5065 (add_allocno_hard_regs_to_forest): Likewise.
5066 (setup_allocno_available_regs_num): Likewise.
5067 * ira.c (setup_pressure_classes): Likewise.
5068 (setup_allocno_and_important_classes): Likewise.
5069 (setup_reg_class_relations): Likewise.
5070 * lra-lives.c (process_bb_lives): Likewise.
5071 * reg-stack.c (change_stack, convert_regs_1): Likewise.
5072
5073 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5074
5075 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
5076 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5077 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
5078 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
5079 Likewise.
5080 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
5081 * ira.c (setup_reg_renumber): Likewise.
5082 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5083 * regrename.c (regrename_find_superclass): Likewise.
5084 * reload1.c (find_reg): Likewise.
5085
5086 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5087
5088 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
5089 * caller-save.c (setup_save_areas): Use "&~" instead of
5090 AND_COMPL_HARD_REG_SET.
5091 (save_call_clobbered_regs): Likewise.
5092 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5093 Likewise.
5094 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5095 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5096 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
5097 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5098 (mips_conditional_register_usage): Likewise.
5099 * config/sh/sh.c (output_stack_adjust): Likewise.
5100 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5101 (setup_profitable_hard_regs): Likewise.
5102 (get_conflict_and_start_profitable_regs): Likewise.
5103 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5104 (ira_build_conflicts): Likewise.
5105 * ira-costs.c (restrict_cost_classes): Likewise.
5106 (setup_regno_cost_classes_by_aclass): Likewise.
5107 * ira-lives.c (process_bb_node_lives): Likewise.
5108 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5109 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5110 (setup_allocno_and_important_classes, setup_class_translate_array)
5111 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5112 Likewise.
5113 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5114 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5115 (process_alt_operands, inherit_in_ebb): Likewise.
5116 * lra-eliminations.c (update_reg_eliminate): Likewise.
5117 * lra-lives.c (process_bb_lives): Likewise.
5118 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5119 * resource.c (find_dead_or_set_registers): Likewise.
5120 (mark_target_live_regs): Likewise.
5121 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5122 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5123 (implicit_clobber_conflict_p): Likewise.
5124 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5125 (try_shrink_wrapping): Likewise.
5126
5127 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5128
5129 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5130 (HARD_REG_SET::operator|=): Likewise.
5131 (IOR_HARD_REG_SET): Delete.
5132 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5133 IOR_HARD_REG_SET.
5134 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5135 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5136 * final.c (collect_fn_hard_reg_usage): Likewise.
5137 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5138 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5139 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5140 (propagate_some_info_from_allocno): Likewise.
5141 (copy_info_to_removed_store_destinations): Likewise.
5142 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5143 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5144 (fast_allocation): Likewise.
5145 * ira-conflicts.c (ira_build_conflicts): Likewise.
5146 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5147 (process_bb_node_lives): Likewise.
5148 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5149 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5150 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5151 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5152 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5153 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5154 (process_bb_lives): Likewise.
5155 * lra-spills.c (assign_spill_hard_regs): Likewise.
5156 * postreload.c (reload_combine): Likewise.
5157 * reginfo.c (init_reg_sets_1): Likewise.
5158 * regrename.c (merge_overlapping_regs, find_rename_reg)
5159 (merge_chains): Likewise.
5160 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5161 (find_reload_regs, finish_spills, choose_reload_regs_init)
5162 (emit_reload_insns): Likewise.
5163 * reorg.c (redundant_insn): Likewise.
5164 * resource.c (find_dead_or_set_registers, mark_set_resources)
5165 (mark_target_live_regs): Likewise.
5166 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5167 * sched-deps.c (sched_analyze_insn): Likewise.
5168 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5169 (find_best_reg_for_expr): Likewise.
5170 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5171
5172 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5173
5174 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5175 (HARD_REG_SET::operator&): Likewise.
5176 (AND_HARD_REG_SET): Delete.
5177 * caller-save.c (setup_save_areas): Use "&" instead of
5178 AND_HARD_REG_SET.
5179 (save_call_clobbered_regs): Likewise.
5180 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5181 * config/m32c/m32c.c (reduce_class): Likewise.
5182 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5183 * final.c (get_call_reg_set_usage): Likewise.
5184 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5185 (setup_left_conflict_sizes_p): Likewise.
5186 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5187 (ira_build_conflicts): Likewise.
5188 * ira-costs.c (restrict_cost_classes): Likewise.
5189 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5190 (setup_reg_class_relations): Likewise.
5191 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5192 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5193 * resource.c (find_dead_or_set_registers): Likewise.
5194 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5195
5196 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5197
5198 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5199 (COMPL_HARD_REG_SET): Delete.
5200 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5201 of COMPL_HARD_REG_SET.
5202 (try_rename_operands): Likewise.
5203 * config/sh/sh.c (push_regs): Likewise.
5204 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5205 * lra-constraints.c (contains_reg_p): Likewise.
5206 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5207
5208 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5209
5210 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5211 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5212 of COPY_HARD_REG_SET.
5213 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5214 (epiphany_conditional_register_usage): Likewise.
5215 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5216 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5217 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5218 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5219 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5220 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5221 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5222 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5223 * config/sh/sh.c (output_stack_adjust): Likewise.
5224 * final.c (collect_fn_hard_reg_usage): Likewise.
5225 (get_call_reg_set_usage): Likewise.
5226 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5227 (ira_flattening): Likewise.
5228 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5229 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5230 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5231 (ira_reassign_pseudos): Likewise.
5232 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5233 (ira_build_conflicts): Likewise.
5234 * ira-costs.c (restrict_cost_classes): Likewise.
5235 (setup_regno_cost_classes_by_aclass): Likewise.
5236 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5237 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5238 (setup_stack_reg_pressure_class, setup_pressure_classes)
5239 (setup_allocno_and_important_classes, setup_class_translate_array)
5240 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5241 (ira_setup_eliminable_regset): Likewise.
5242 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5243 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5244 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5245 (process_alt_operands, inherit_in_ebb): Likewise.
5246 * lra-lives.c (process_bb_lives): Likewise.
5247 * lra-spills.c (assign_spill_hard_regs): Likewise.
5248 * lra.c (lra): Likewise.
5249 * mode-switching.c (new_seginfo): Likewise.
5250 * postreload.c (reload_combine): Likewise.
5251 * reg-stack.c (straighten_stack): Likewise.
5252 * reginfo.c (save_register_info, restore_register_info): Likewise.
5253 (init_reg_sets_1, record_subregs_of_mode): Likewise
5254 * regrename.c (create_new_chain, rename_chains): Likewise.
5255 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5256 (find_reload_regs): Likewise.
5257 * resource.c (find_dead_or_set_registers): Likewise.
5258 (mark_target_live_regs): Likewise.
5259 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5260
5261 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5262
5263 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5264 (note_pattern_stores): Declare.
5265 (note_stores): Take an rtx_insn *.
5266 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5267 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5268 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5269 (note_stores): Take an rtx_insn * as argument and process
5270 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5271 (note_pattern_stores): ...this.
5272 (find_first_parameter_load): Pass the insn rather than
5273 its pattern to note_stores.
5274 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5275 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5276 (insert_one_insn): Likewise.
5277 * combine.c (combine_instructions): Likewise.
5278 (likely_spilled_retval_p): Likewise.
5279 (try_combine): Use note_pattern_stores instead of note_stores.
5280 (record_dead_and_set_regs): Pass the insn rather than its pattern
5281 to note_stores.
5282 (reg_dead_at_p): Likewise.
5283 * config/bfin/bfin.c (workaround_speculation): Likewise.
5284 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5285 rather than an rtx.
5286 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5287 instead of note_stores.
5288 (frv_optimize_membar_local): Pass the insn rather than its pattern
5289 to note_stores.
5290 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5291 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5292 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5293 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5294 (mips_reorg_process_insns): Likewise.
5295 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5296 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5297 rather than rtxes.
5298 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5299 its pattern to note_stores.
5300 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5301 of note_stores.
5302 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5303 the insn to note_stores.
5304 (prescan_insns_for_dce): Update call accordingly.
5305 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5306 to note_stores.
5307 * df-problems.c (can_move_insns_across): Likewise.
5308 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5309 * function.c (assign_parm_setup_reg): Likewise.
5310 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5311 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5312 (single_set_gcse): Likewise.
5313 * ira.c (validate_equiv_mem): Likewise.
5314 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5315 for no_equiv.
5316 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5317 pattern to note_stores.
5318 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5319 * loop-iv.c (simplify_using_initial_values): Likewise.
5320 * mode-switching.c (optimize_mode_switching): Likewise.
5321 * optabs.c (emit_libcall_block_1): Likewise.
5322 (expand_atomic_compare_and_swap): Likewise.
5323 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5324 (record_opr_changes): Likewise. Remove explicit handling of
5325 CALL_INSN_FUNCTION_USAGE.
5326 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5327 * regcprop.c (kill_clobbered_values): Likewise.
5328 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5329 to note_stores.
5330 * regrename.c (build_def_use): Likewise.
5331 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5332 for mark_not_eliminable.
5333 (reload_as_needed): Pass the insn rather than its pattern
5334 to note_stores.
5335 (emit_output_reload_insns): Likewise.
5336 * resource.c (mark_target_live_regs): Likewise.
5337 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5338 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5339 instead of note_stores.
5340 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5341 its pattern to note_stores.
5342 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5343 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5344
5345 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5346
5347 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5348 than a #define. Use a structure rather than an array as the
5349 fallback definition. Remove special cases for low array sizes.
5350 (const_hard_reg_set): New typedef.
5351 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5352 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5353 (hard_reg_set_empty_p): Likewise.
5354 (SET_HARD_REG_BIT): Use a function rather than a macro to
5355 handle the case in which HARD_REG_SET is a structure.
5356 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5357 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5358 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5359 (IOR_COMPL_HARD_REG_SET): Likewise.
5360 (hard_reg_set_iterator::pset): Constify the pointer target.
5361 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5362 of a "const HARD_REG_SET". Update the handling of non-integer
5363 HARD_REG_SETs.
5364 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5365 * reload.h: Likewise.
5366 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5367 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5368 of a "const HARD_REG_SET".
5369 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5370 (range_in_hard_reg_set_p): Likewise.
5371 * ira-costs.c (restrict_cost_classes): Likewise.
5372 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5373 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5374 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5375 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5376 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5377 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5378 take an unsigned int and open-code the HARD_REG_SET operations.
5379
5380 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5381
5382 * Makefile.in (OBJS): Remove bt-load.o.
5383 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5384 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5385 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5386 document that the option no longer does anything.
5387 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5388 * target.def (branch_target_register_class): Delete.
5389 (branch_target_register_callee_saved): Likewise.
5390 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5391 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5392 * doc/tm.texi: Regenerate.
5393 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5394 (make_pass_branch_target_load_optimize2): Likewise.
5395 * passes.def (pass_branch_target_load_optimize1): Likewise.
5396 (pass_branch_target_load_optimize2): Likewise.
5397 * targhooks.h (default_branch_target_register_class): Likewise.
5398 * targhooks.c (default_branch_target_register_class): Likewise.
5399 * opt-suggestions.c (test_completion_valid_options): Remove
5400 -fbtr-bb-exclusive from the list of test options.
5401 * bt-load.c: Remove.
5402
5403 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5404
5405 * match.pd: Add flag_unsafe_math_optimizations check
5406 before deciding on the widest type in a binary math operation.
5407
5408 2019-09-09 Martin Liska <mliska@suse.cz>
5409
5410 * config/i386/i386.opt: Update comment of removed
5411 options that are preserved only for backward
5412 compatibility.
5413
5414 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5415
5416 PR target/87853
5417 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5418 instead of __v16qs.
5419
5420 PR target/91704
5421 * config/i386/avxintrin.h (__v32qs): New typedef.
5422 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5423 instead of __v32qi.
5424
5425 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5426
5427 * doc/invoke.texi (Option Summary): Cover eBPF.
5428 (eBPF Options): New section.
5429 * doc/extend.texi (BPF Built-in Functions): Likewise.
5430 (BPF Kernel Helpers): Likewise.
5431
5432 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5433
5434 * config.gcc: Support for bpf-*-* targets.
5435 * common/config/bpf/bpf-common.c: New file.
5436 * config/bpf/t-bpf: Likewise.
5437 * config/bpf/predicates.md: Likewise.
5438 * config/bpf/constraints.md: Likewise.
5439 * config/bpf/bpf.opt: Likewise.
5440 * config/bpf/bpf.md: Likewise.
5441 * config/bpf/bpf.h: Likewise.
5442 * config/bpf/bpf.c: Likewise.
5443 * config/bpf/bpf-protos.h: Likewise.
5444 * config/bpf/bpf-opts.h: Likewise.
5445 * config/bpf/bpf-helpers.h: Likewise.
5446 * config/bpf/bpf-helpers.def: Likewise.
5447
5448 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5449
5450 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5451 indirect_calls.
5452
5453 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5454
5455 * opt-functions.awk (integer_range_info): Make sure values are in
5456 numeric context before operating with them.
5457
5458 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5459
5460 * genemit.c (gen_split): Print the filename and line number where the
5461 splitter (or peephole2) was defined, to the dump file.
5462
5463 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5464
5465 PR tree-optimization/91665
5466 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5467 incompatible with the type of PHI result.
5468
5469 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5470
5471 PR target/91684
5472 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5473 gen_unaligned_storedi for 4-byte aligned addresses.
5474
5475 2019-09-06 Jim Wilson <jimw@sifive.com>
5476
5477 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5478 change.
5479
5480 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5481
5482 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5483
5484 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5485
5486 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5487 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5488
5489 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5490
5491 PR target/91654
5492 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5493 cost of SSE->integer and integer->SSE moves from 2 to 6.
5494 (core_cost): Ditto.
5495
5496 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5497
5498 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5499 before testing TYPE_TRANSPARENT_AGGR.
5500 * calls.c (initialize_argument_information, load_register_parameters):
5501 Likewise.
5502
5503 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5504
5505 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5506 high regs.
5507 (cmp_ior): Likewise.
5508
5509 2019-09-06 Martin Liska <mliska@suse.cz>
5510
5511 * doc/match-and-simplify.texi: Separate tuples with ;.
5512
5513 2019-09-06 Martin Liska <mliska@suse.cz>
5514
5515 PR c++/91125
5516 * Makefile.in: Remove tlink.o.
5517 * collect2.c (do_link): New function isolated
5518 from do_tlink.
5519 (main): Use.
5520 * collect2.h (do_tlink): Remove declaration of do_tlink.
5521 * doc/extend.texi: Remove documentation of -frepo.
5522 * doc/invoke.texi: Likewise.
5523 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5524 * tlink.c: Remove.
5525
5526 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5527 Jim Wilson <jimw@sifive.com>
5528
5529 PR target/91635
5530 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5531 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5532 paradoxical_subreg_p (operands[0]).
5533 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5534 use as intermediate value.
5535
5536 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5537
5538 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5539 (sync_compare_and_swap<mode>_insn): Likewise.
5540
5541 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5542
5543 PR middle-end/91615
5544 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5545 without movmisalign optab.
5546
5547 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5548
5549 PR middle-end/91001
5550 PR middle-end/91105
5551 PR middle-end/91106
5552 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5553 types, use type of their first field instead of type of
5554 args[i].tree_value.
5555
5556 2019-09-05 Richard Biener <rguenther@suse.de>
5557
5558 PR rtl-optimization/91656
5559 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5560 of early out.
5561
5562 2019-09-05 Richard Biener <rguenther@suse.de>
5563
5564 PR middle-end/90501
5565 * tree-inline.c (declare_return_variable): Mark the return
5566 slot as addressable after building an address of it.
5567
5568 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5569
5570 * doc/install.texi: Update and clarify requirements to build GNAT.
5571
5572 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5573
5574 PR middle-end/91577
5575 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5576 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5577 call to be in memory.
5578 (pass_expand::execute): Call discover_nonconstant_array_refs before
5579 setting currently_expanding_to_rtl.
5580
5581 2019-09-04 Caroline Tice <cmtice@google.com>
5582
5583 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5584 specified together.
5585
5586 2019-09-04 Marek Polacek <polacek@redhat.com>
5587
5588 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5589
5590 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5591
5592 PR target/32413
5593 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5594 for QI and HImode moves between SSE and general registers.
5595
5596 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5597
5598 PR c/78736
5599 * doc/invoke.texi: Document -Wenum-conversion.
5600
5601 2019-09-04 Richard Biener <rguenther@suse.de>
5602
5603 PR rtl-optimization/36262
5604 * postreload-gcse.c: Include intl.h and gcse.h.
5605 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5606 to avoid linear list walk.
5607 (record_last_mem_set_info): Gate off if not computing transparentness.
5608 (get_bb_avail_insn): If transparentness isn't computed give up
5609 early.
5610 (gcse_after_reload_main): Skip compute_transp and extended PRE
5611 if gcse_or_cprop_is_too_expensive says so.
5612
5613 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5614
5615 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5616 noinit section.
5617 (msp430_select_section): Handle decls with the "noinit" attribute with
5618 default_elf_select_section.
5619 Handle SECCAT_RODATA_MERGE_* section types with
5620 default_elf_select_section.
5621 Add comments about handling of unsupported section types.
5622 (msp430_section_type_flags): Remove handling of the noinit section.
5623
5624 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5625
5626 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5627 conflicting msp430-specific attributes.
5628 (msp430_section_attr): Likewise.
5629 Add warnings about conflicts with generic "noinit" and "section"
5630 attributes.
5631 Fix grammar in -mlarge error message.
5632 (msp430_data_attr): Rename to msp430_persist_attr.
5633 Add warnings about conflicts with generic "noinit" and "section"
5634 attributes.
5635 Add warning for when variable is not initialized.
5636 Chain conditionals which prevent the attribute being added.
5637 (ATTR_EXCL): New helper.
5638 (attr_reent_exclusions): New exclusion table.
5639 (attr_naked_exclusions): Likewise.
5640 (attr_crit_exclusions): Likewise.
5641 (attr_lower_exclusions): Likewise.
5642 (attr_upper_exclusions): Likewise.
5643 (attr_either_exclusions): Likewise.
5644 (attr_persist_exclusions): Likewise.
5645 (msp430_attribute_table): Update with exclusion rules.
5646 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5647 has a section.
5648
5649 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5650
5651 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5652 (msp430_handle_generic_attribute): New function.
5653 * doc/tm.texi: Regenerate.
5654 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5655 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5656 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5657 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5658
5659 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5660
5661 PR tree-optimization/91504
5662 * match.pd: Add ((~a & b) ^a) --> (a | b).
5663
5664 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5665
5666 PR target/91604
5667 * config/i386/i386-expand.c (split_double_mode): If there is more than
5668 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5669 already split matching MEM operand instead of calling adjust_address
5670 again.
5671
5672 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5673
5674 * config.gcc: Obsolete spu target. Remove references to spu.
5675 * configure.ac: Remove references to spu.
5676 * configure: Regenerate.
5677 * config/spu/: Remove directory.
5678 * common/config/spu/: Remove directory.
5679
5680 * doc/extend.texi: Remove references to spu.
5681 * doc/invoke.texi: Likewise.
5682 * doc/md.texi: Likewise.
5683 * doc/sourcebuild.texi: Likewise.
5684
5685 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5686
5687 PR middle-end/91603
5688 PR middle-end/91612
5689 PR middle-end/91613
5690 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5691 and SSA_NAME referring to CONSTANT_P correctly.
5692
5693 2019-09-03 Richard Biener <rguenther@suse.de>
5694
5695 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5696 (vn_nary_op_insert): Likewise.
5697 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5698 (vn_nary_op_lookup): Likewise.
5699 (vn_nary_op_insert): Likewise.
5700
5701 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5702
5703 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5704 (*op0, 1) instead of XEXP (*op1, 0).
5705
5706 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5707
5708 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5709 (aarch64_fjcvtzs): New define_insn.
5710 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5711 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5712 Add AARCH64_JSCVT.
5713 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5714 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5715 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5716 __ARM_FEATURE_JCVT where appropriate.
5717 * config/aarch64/arm_acle.h (__jcvt): Define.
5718
5719 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5720
5721 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5722 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5723 (aarch64_<frintnzs_op><mode>): New define_insn.
5724 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5725 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5726 __ARM_FEATURE_FRINT when appropriate.
5727 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5728 frint32x, frint64z, frint64x.
5729 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5730 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5731 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5732 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5733 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5734 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5735 * config/aarch64/iterators.md (VSFDF): Define.
5736 (FRINTNZX): Likewise.
5737 (frintnzs_op): Likewise.
5738
5739 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5740
5741 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5742 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5743 Cortex-A34.
5744 * config/aarch64/aarch64-tune.md: Regenerated.
5745 * doc/invoke.texi: Document the new processors.
5746
5747 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5748
5749 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5750 string.
5751 (ssbs): Likewise.
5752 (sve2): Likewise.
5753 (sve2-sm4): Likewise.
5754 (sveaes): Likewise.
5755 (svesha3): Likewise.
5756 (svebitperm): Likewise.
5757
5758 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5759 Richard Biener <rguenther@suse.de>
5760
5761 PR tree-optimization/91597
5762 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5763 BIT_AND_EXPR optimization for pointers, even if both operand
5764 ranges don't include NULL, the result can be NULL.
5765
5766 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5767
5768 PR middle-end/91605
5769 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5770 (non_mem_decl_p): ...this.
5771 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5772 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5773 unconditionally as before.
5774
5775 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5776
5777 PR target/91323
5778 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5779 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5780 * tree.def (LTGT_EXPR): Likewise.
5781 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5782
5783 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5784
5785 PR go/91617
5786 * fold-const.c (range_check_type): For enumeral and boolean
5787 type, pass 1 to type_for_size langhook instead of
5788 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5789 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5790 (build_range_check): Don't call unsigned_type_for for pointer types.
5791 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5792 range_check_type result.
5793
5794 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5795
5796 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5797 (replace_ref): Do not replace a chain of only two candidates which are
5798 valid memory references.
5799
5800 2019-09-02 Martin Liska <mliska@suse.cz>
5801
5802 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5803 Bail out when we'll end up with the same number of clusters as
5804 at the beginning.
5805 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5806 (jump_table_cluster::can_be_handled): Remove the guard
5807 as it's already handled in ::is_enabled. Allocate output
5808 after early bail out.
5809
5810 2019-09-02 Martin Liska <mliska@suse.cz>
5811
5812 PR gcov-profile/91601
5813 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5814 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5815 also negative edges.
5816 (circuit): Handle also negative edges as they can happen
5817 in some situations.
5818
5819 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5820
5821 PR target/91472
5822 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5823 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5824 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5825
5826 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5827
5828 PR middle-end/91623
5829 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5830 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5831 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5832 zero vector.
5833
5834 PR lto/91572
5835 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5836 GIMPLE_ASM TREE_LIST operands.
5837
5838 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5839
5840 * doc/generic.texi (Unary and Binary Expressions): Mark up
5841 an instance of TYPE_MIN.
5842
5843 2019-08-31 Stafford Horne <shorne@gmail.com>
5844
5845 * config/or1k/constraints.md (t): New constraint.
5846 * config/or1k/or1k.h (GOT_REGS): New register class.
5847 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5848
5849 2019-08-30 Jim Wilson <jimw@sifive.com>
5850
5851 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5852 and -fpic and -mplt then disable -msave-restore and warn.
5853
5854 2019-08-30 Martin Sebor <msebor@redhat.com>
5855
5856 PR middle-end/91599
5857 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5858 the statement doesn't have one.
5859 * gimple-pretty-print.c (percent_G_format): Same.
5860
5861 PR middle-end/91584
5862 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5863 before using them to validate MEM_REF offset.
5864
5865 2019-08-30 Marek Polacek <polacek@redhat.com>
5866
5867 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5868
5869 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5870
5871 * config/arm/arm.md (unaligned_loaddi,
5872 unaligned_storedi): New unspec insn patterns.
5873 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5874 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5875 and unaligned_storedi for 4-byte aligned memory.
5876 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5877 4-byte aligned memory.
5878
5879 2019-08-30 Martin Jambor <mjambor@suse.cz>
5880
5881 tree-optimization/91579
5882 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5883 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5884 appropriate.
5885 (arg_needs_copy_p): Removed.
5886 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5887 arg_needs_copy_p.
5888 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5889
5890 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5891
5892 * config/i386/i386-features.c
5893 (general_scalar_chain::compute_convert_gain):
5894 Correct cost for double-word shifts.
5895 (general_scalar_to_vector_candidate_p): Reject count operands
5896 greater or equal to mode bitsize.
5897
5898 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5899
5900 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5901 for moves between SSE and non-general registers and between
5902 mask and non-general registers.
5903 (ix86_register_move_cost): Remove stalled comment.
5904
5905 2019-08-29 Richard Biener <rguenther@suse.de>
5906
5907 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5908 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5909
5910 2019-08-29 Richard Biener <rguenther@suse.de>
5911
5912 PR bootstrap/91580
5913 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5914 Do not emit scalar copies for debug-insns, instead replace
5915 their uses with the reg copy used in the chain or reset them
5916 if there is a reaching definition outside of the chain as well.
5917
5918 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5919
5920 PR target/91560
5921 * config/i386/i386-expand.c (expand_vec_perm_movs,
5922 expand_vec_perm_blend, expand_vec_perm_vpermil,
5923 expand_vec_perm_pshufb, expand_vec_perm_1,
5924 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5925 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5926 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5927 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5928 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5929 comments - replace ix86_expand_vec_perm_builtin_1 with
5930 ix86_expand_vec_perm_const_1.
5931 (expand_vec_perm2_vperm2f128_vblend): New function.
5932 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5933 expand_vec_perm2_vperm2f128_vblend as last resort.
5934 (canonicalize_perm): Formatting fix.
5935
5936 PR tree-optimization/91351
5937 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5938 unsigned_type_for.
5939 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5940 range_check_type returns NULL.
5941 * tree-switch-conversion.c (switch_conversion::build_one_array):
5942 Use range_check_type instead of unsigned_type_for, don't perform
5943 linear opt if it returns NULL.
5944 (bit_test_cluster::find_bit_tests): Formatting fix.
5945 (bit_test_cluster::emit): Use range_check_type instead of
5946 unsigned_type_for.
5947 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5948 returns NULL.
5949
5950 2019-08-29 Richard Biener <rguenther@suse.de>
5951
5952 PR tree-optimization/91568
5953 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5954 (vect_update_max_nunits): Add overload for poly_uint64.
5955 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5956 (vect_build_slp_tree): Record max_nunits into the subtree
5957 and merge it upwards.
5958 (vect_print_slp_tree): Print max_nunits.
5959
5960 2019-08-28 Marek Polacek <polacek@redhat.com>
5961
5962 Implement P1152R4: Deprecating some uses of volatile.
5963 PR c++/91361
5964 * doc/invoke.texi: Document -Wvolatile.
5965
5966 2019-08-28 Marek Polacek <polacek@redhat.com>
5967
5968 PR c++/91360 - Implement C++20 P1143R2: constinit.
5969 * doc/invoke.texi: Document -Wc++20-compat.
5970
5971 2019-08-28 Martin Sebor <msebor@redhat.com>
5972
5973 PR tree-optimization/91457
5974 * builtins.c (component_size): New function.
5975 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5976 * builtins.h (compute_objsize): Add argument.
5977 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5978 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5979 (vrp_prop::check_mem_ref): Same.
5980 (vrp_prop::search_for_addr_array): Set no-warning bit.
5981 (check_array_bounds): Same.
5982
5983 2019-08-28 Martin Sebor <msebor@redhat.com>
5984
5985 PR driver/80545
5986 * opts-common.c (option_enabled): Correct checking for language
5987 options.
5988
5989 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5990
5991 * config/i386/i386.c (ix86_register_move_cost): Do not
5992 limit the cost of moves to/from XMM register to minimum 8.
5993
5994 2019-08-28 Martin Jambor <mjambor@suse.cz>
5995
5996 PR ipa/91468
5997 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5998 checking assert a normal assert to test it really is redundant.
5999 * ipa-prop.c (compute_complex_assign_jump_func): Removed
6000 redundant test.
6001 (update_jump_functions_after_inlining): Removed combining unary
6002 arithmetic operations with an ancestor jump function.
6003 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
6004 instead of t.
6005
6006 2019-08-28 Richard Biener <rguenther@suse.de>
6007
6008 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
6009 add the MD problem.
6010
6011 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6012 Richard Biener <rguenther@suse.de>
6013
6014 * expr.c (expand_assignment): Handle misaligned DECLs.
6015 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
6016 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
6017 too.
6018 (assign_parm_setup_stack): Allocate properly aligned stack slots.
6019 * varasm.c (build_constant_desc): Align constants of misaligned types.
6020 * config/arm/predicates.md (aligned_operand): New predicate.
6021 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
6022 aligned_operand to check restrictions on memory addresses.
6023 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
6024 * config/arm/vec-common.md (mov<VALL>): Likewise.
6025
6026 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6027
6028 PR libgomp/91530
6029 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
6030 V_128 iterator instead of VI_128.
6031
6032 2019-08-28 Martin Liska <mliska@suse.cz>
6033
6034 PR tree-optimization/90970
6035 * builtins.c (check_access): Remove assignment to maxread
6036 as it hasn't been used since when it was introduced in r255755.
6037
6038 2019-08-27 Martin Sebor <msebor@redhat.com>
6039
6040 PR tree-optimization/91567
6041 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
6042 of unknown strings.
6043 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
6044 to PTRDIFF_MAX - 2.
6045
6046 2019-08-27 Jeff Law <law@redhat.com>
6047
6048 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
6049 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
6050
6051 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
6052
6053 PR target/91528
6054 * config/i386/i386-features.c (convert_scalars_to_vector):
6055 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
6056 crtl->stack_realign_processed. Update crtl->drap_reg by calling
6057 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
6058 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
6059
6060 2019-08-27 Richard Biener <rguenther@suse.de>
6061
6062 * config/i386/i386-features.h
6063 (general_scalar_chain::~general_scalar_chain): Add.
6064 (general_scalar_chain::insns_conv): New bitmap.
6065 (general_scalar_chain::n_sse_to_integer): New.
6066 (general_scalar_chain::n_integer_to_sse): Likewise.
6067 (general_scalar_chain::make_vector_copies): Adjust signature.
6068 * config/i386/i386-features.c
6069 (general_scalar_chain::general_scalar_chain): Outline,
6070 initialize new members.
6071 (general_scalar_chain::~general_scalar_chain): New.
6072 (general_scalar_chain::mark_dual_mode_def): Record insns
6073 we need to insert conversions at and count them.
6074 (general_scalar_chain::compute_convert_gain): Account
6075 for conversion instructions at chain boundary.
6076 (general_scalar_chain::make_vector_copies): Generate a single
6077 copy for a def by a specific insn.
6078 (general_scalar_chain::convert_registers): First populate
6079 defs_map, then make copies at out-of chain insns.
6080
6081 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
6082
6083 * config/arm/arm.md (stack_protect_set_insn): Add security-related
6084 comment.
6085 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
6086
6087 2019-08-27 Martin Liska <mliska@suse.cz>
6088
6089 * cgraph.c (cgraph_node::remove): Remove dead assignment before
6090 loop.
6091 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
6092 Enclose in anonymous namespace.
6093 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
6094 hard_register initialization in braces.
6095 * tree-vrp.h (value_range_base::supports_type_p): Return false
6096 for function with boolean return type.
6097
6098 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
6099
6100 * config/i386/i386.c (emit_i387_cw_initialization)
6101 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6102
6103 2019-08-26 Martin Sebor <msebor@redhat.com>
6104
6105 PR c++/83431
6106 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6107 (sprintf_dom_walker): Remove class.
6108 (get_int_range): Make argument const.
6109 (directive::fmtfunc, directive::set_precision): Same.
6110 (format_none): Same.
6111 (build_intmax_type_nodes): Same.
6112 (adjust_range_for_overflow): Same.
6113 (format_floating): Same.
6114 (format_character): Same.
6115 (format_string): Same.
6116 (format_plain): Same.
6117 (get_int_range): Cast away constness.
6118 (format_integer): Same.
6119 (get_string_length): Call get_range_strlen_dynamic. Handle
6120 null lendata.maxbound.
6121 (should_warn_p): Adjust argument scope qualifier.
6122 (maybe_warn): Same.
6123 (format_directive): Same.
6124 (parse_directive): Same.
6125 (is_call_safe): Same.
6126 (try_substitute_return_value): Same.
6127 (sprintf_dom_walker::handle_printf_call): Rename...
6128 (handle_printf_call): ...to this. Initialize target to host charmap
6129 here instead of in pass_sprintf_length::execute.
6130 (struct call_info): Make global.
6131 (sprintf_dom_walker::compute_format_length): Make global.
6132 (sprintf_dom_walker::handle_gimple_call): Same.
6133 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6134 * print-rtl.c (print_pattern): Reduce the number of spaces to
6135 avoid -Wformat-truncation.
6136 * tree-pass.h (make_pass_warn_printf): New function.
6137 * tree-ssa-strlen.c (strlen_optimize): New variable.
6138 (get_string_length): Add comments.
6139 (get_range_strlen_dynamic): New function.
6140 (check_and_optimize_call): New function.
6141 (handle_integral_assign): New function.
6142 (strlen_check_and_optimize_stmt): Factor code out into
6143 strlen_check_and_optimize_call and handle_integral_assign.
6144 (strlen_dom_walker::evrp): New member.
6145 (strlen_dom_walker::before_dom_children): Use evrp member.
6146 (strlen_dom_walker::after_dom_children): Use evrp member.
6147 (printf_strlen_execute): New function.
6148 (pass_strlen::gate): Update to handle printf calls.
6149 (dump_strlen_info): New function.
6150 (pass_data_warn_printf): New variable.
6151 (pass_warn_printf): New class.
6152 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6153 (handle_printf_call): Same.
6154 * tree-vrp.c (value_range_base::type): Adjust assertion.
6155 * vr-values.c (vr_values::update_value_range): Use type of the first
6156 argument rather than the second.
6157
6158 2019-08-26 Richard Biener <rguenther@suse.de>
6159
6160 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6161 Remove.
6162 (convert_scalars_to_vector): Do not call it.
6163
6164 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6165 Uros Bizjak <ubizjak@gmail.com>
6166
6167 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6168 CASE_MATHFN_FLOATN for roundeven.
6169 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6170 I387_ROUNDEVEN.
6171 (ix86_mode_needed): Likewise.
6172 (ix86_mode_after): Likewise.
6173 (ix86_mode_entry): Likewise.
6174 (ix86_mode_exit): Likewise.
6175 (ix86_emit_mode_set): Likewise.
6176 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6177 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6178 (ix86_entity): Add I387_ROUNDEVEN.
6179 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6180 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6181 (define_int_iterator): Likewise.
6182 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6183 (define_constant): Define ROUND_ROUNDEVEN mode.
6184 (define_attr): Add roundeven mode for i387_cw.
6185 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6186 * internal-fn.def (ROUNDEVEN): New builtin function.
6187 * optabs.def (roundeven_optab): New optab.
6188
6189 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6190
6191 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6192 for ROUNDEVEN.
6193 * builtins.def: Added function definitions for roundeven function
6194 variants.
6195 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6196 function call. Adjust condition for floor, ceil, trunc and round.
6197 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6198 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6199 (integer_valued_real_call_p): Added case for roundeven function.
6200 * real.c (is_even): New function. Returns true if real number is even,
6201 otherwise returns false.
6202 (is_halfway_below): New function. Returns true if real number is
6203 halfway between two integers, else return false.
6204 (real_roundeven): New function. Round real number to nearest integer,
6205 rounding halfway cases towards even.
6206 * real.h (real_value): Added descriptive comments. Added function
6207 declaration for roundeven function.
6208 * doc/extend.texi (Other Builtins): List roundeven variants among
6209 functions which can be handled as builtins.
6210
6211 2019-08-26 Richard Biener <rguenther@suse.de>
6212
6213 PR target/91522
6214 PR target/91527
6215 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6216 New member.
6217 (general_scalar_chain::replace_with_subreg): Remove.
6218 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6219 (general_scalar_chain::convert_reg): Adjust signature.
6220 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6221 iterate over all defs of a reg.
6222 (general_scalar_chain::replace_with_subreg): Remove.
6223 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6224 (general_scalar_chain::make_vector_copies): Populate defs_map,
6225 place copy only after defs that are used as vectors in the chain.
6226 (general_scalar_chain::convert_reg): Emit a copy for a specific
6227 def in a specific instruction.
6228 (general_scalar_chain::convert_op): All reg uses are converted here.
6229 (general_scalar_chain::convert_insn): Emit copies for scalar
6230 uses of defs here. Replace uses with the copies we created.
6231 Replace and convert the def. Adjust REG_DEAD notes, remove
6232 REG_EQUIV/EQUAL notes.
6233 (general_scalar_chain::convert_registers): Only handle copies
6234 into the chain here.
6235
6236 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6237
6238 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6239
6240 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6241
6242 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6243 Add nop_convert case.
6244 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6245 Fold all statements if requested.
6246 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6247 Allow to fold all statements.
6248 * tree-vrp.c (class vrp_folder):
6249 Let substitute_and_fold_engine fold all statements.
6250
6251 2019-08-26 Richard Biener <rguenther@suse.de>
6252
6253 PR tree-optimization/91526
6254 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6255 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6256 TODO_update_address_taken.
6257
6258 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6259
6260 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6261 __STDC_HOSTED__.
6262
6263 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6264
6265 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6266 machine mode for unspec_volatile operand.
6267
6268 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6269
6270 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6271 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6272 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6273 (prefer_neon_for_64bits): Remove.
6274 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6275 (tune_params): Remove PREF_NEON_64_FALSE uses.
6276 (arm_option_override): Remove prefer_neon selection code.
6277 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6278 * gcc/config/arm/arm-protos.h (tune_params): Remove
6279 prefer_neon_for_64bits.
6280 (prefer_neon_for_64bits): Remove.
6281
6282 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6283
6284 PR pch/61250
6285 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6286 and issue any diagnostics needed before collecting the pre-PCH
6287 state.
6288
6289 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6290
6291 PR middle-end/91283
6292 * common.opt (fexcess-precision=): Add Optimization flag. Use
6293 flag_excess_precision variable instead of
6294 flag_excess_precision_cmdline.
6295 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6296 member.
6297 (flag_excess_precision): Don't define.
6298 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6299 flag_excess_precision_cmdline. Remove comment.
6300 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6301 and x_flag_excess_precision instead of
6302 frontend_set_flag_excess_precision_cmdline and
6303 x_flag_excess_precision_cmdline.
6304 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6305 x_flag_excess_precision_cmdline.
6306 * toplev.c (init_excess_precision): Remove.
6307 (lang_dependent_init_target): Don't call it.
6308
6309 2019-08-23 Martin Liska <mliska@suse.cz>
6310
6311 * lto-wrapper.c (run_gcc): When setting jobserver
6312 set also parallel to 1. This was done so before r273908.
6313
6314 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6315
6316 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6317 (cortex-a76ae): Likewise.
6318 (cortex-a77): Likewise
6319 * config/arm/arm-tables.opt: Regenerate.
6320 * config/arm/arm-tune.md: Likewise.
6321 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6322 cortex-a77 CPU options.
6323
6324 2019-08-23 Martin Liska <mliska@suse.cz>
6325
6326 * profile.c (instrument_values): Do not set
6327 0 as last argument.
6328 * tree-profile.c (gimple_gen_interval_profiler): Remove
6329 last argument.
6330 (gimple_gen_pow2_profiler): Likewise.
6331 (gimple_gen_topn_values_profiler): Likewise.
6332 (gimple_gen_ic_profiler): Likewise.
6333 (gimple_gen_time_profiler): Likewise.
6334 (gimple_gen_average_profiler): Likewise.
6335 (gimple_gen_ior_profiler): Likewise.
6336 * value-prof.c (dump_histogram_value): Use default
6337 in switch statement instead of HIST_TYPE_MAX.
6338 (stream_in_histogram_value): Likewise.
6339 (gimple_duplicate_stmt_histograms): Do not
6340 use NULL for implicitly set arguments.
6341 (gimple_divmod_values_to_profile): Do not use
6342 reserve+quick_push.
6343 (gimple_indirect_call_to_profile): Likewise.
6344 (gimple_find_values_to_profile): Use implicit
6345 function call arguments.
6346 * value-prof.h (gimple_alloc_histogram_value):
6347 Set default values.
6348 (gimple_gen_interval_profiler): Remove last argument.
6349 (gimple_gen_pow2_profiler): Likewise.
6350 (gimple_gen_topn_values_profiler): Likewise.
6351 (gimple_gen_ic_profiler): Likewise.
6352 (gimple_gen_time_profiler): Likewise.
6353 (gimple_gen_average_profiler): Likewise.
6354 (gimple_gen_ior_profiler): Likewise.
6355
6356 2019-08-22 Martin Sebor <msebor@redhat.com>
6357
6358 PR middle-end/91490
6359 * builtins.c (c_strlen): Rename argument and introduce new local.
6360 Set no-warning bit on original argument.
6361 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6362 Fold empty and zero constructors into empty strings.
6363 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6364 for missing initializers.
6365 * tree.c (build_string_literal): Handle optional argument.
6366 * tree.h (build_string_literal): Add defaulted argument.
6367 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6368 no-warning bit on original expression.
6369
6370 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6371
6372 PR target/91481
6373 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6374 and UNSPEC_DARN_RAW.
6375 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6376 UNSPECV_DARN_RAW.
6377 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6378 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6379 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6380
6381 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6382
6383 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6384 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6385 * config/rs6000/rs6000.md (unspec): ... here.
6386 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6387 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6388 cmpeqb, *cmpeqb_internal): Delete, move to...
6389 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6390 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6391 cmpeqb, *cmpeqb_internal): ... here.
6392
6393 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6394
6395 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6396 intrinsics if __ARM_FP.
6397 Use __ARM_FEATURE_CRC32 ifdef guard.
6398
6399 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6400
6401 * config/arm/arm.md (neon_for_64bits): Remove.
6402 (avoid_neon_for_64bits): Remove.
6403 (arm_adddi3): Always split early.
6404 (arm_subdi3): Always split early.
6405 (negdi2): Remove Neon expansion.
6406 (split zero_extend): Split before reload.
6407 (split sign_extend): Split before reload.
6408
6409 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6410
6411 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6412 (qhs_extenddi_cstr): Likewise.
6413 * config/arm/arm.md (ashldi3): Always expand early.
6414 (ashlsi3): Likewise.
6415 (ashrsi3): Likewise.
6416 (zero_extend<mode>di2): Remove Neon variants.
6417 (extend<mode>di2): Likewise.
6418 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6419 (signed_shift_di3_neon): Likewise.
6420 (unsigned_shift_di3_neon): Likewise.
6421 (ashrdi3_neon_imm_noclobber): Likewise.
6422 (lshrdi3_neon_imm_noclobber): Likewise.
6423 (<shift>di3_neon): Likewise.
6424 (split extend): Remove DI extend split patterns.
6425
6426 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6427
6428 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6429 (split not): Add DImode not splitter.
6430 (anddi3): Remove pattern.
6431 (anddi3_insn): Likewise.
6432 (anddi_zesidi_di): Likewise.
6433 (anddi_sesdi_di): Likewise.
6434 (anddi_notdi_di): Likewise.
6435 (anddi_notzesidi_di): Likewise.
6436 (anddi_notsesidi_di): Likewise.
6437 (iordi3): Likewise.
6438 (iordi3_insn): Likewise.
6439 (iordi_zesidi_di): Likewise.
6440 (iordi_sesidi_di): Likewise.
6441 (xordi3): Likewise.
6442 (xordi3_insn): Likewise.
6443 (xordi_sesidi_di): Likewise.
6444 (xordi_zesidi_di): Likewise.
6445 (one_cmpldi2): Likewise.
6446 (one_cmpldi2_insn): Likewise.
6447 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6448 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6449 alternative.
6450 (iwmmxt_xordi3): Likewise.
6451 (iwmmxt_anddi3): Likewise.
6452 * config/arm/neon.md (orndi3_neon): Remove pattern.
6453 (anddi_notdi_di): Likewise.
6454 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6455 (arm_iordi_operand_neon): Likewise.
6456 (arm_xordi_operand_neon): Likewise.
6457 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6458 (iordi_notzesidi_di): Likewise.
6459 (iordi_notdi_zesidi): Likewise.
6460 (iordi_notsesidi_di): Likewise.
6461
6462 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6463
6464 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6465 insn.
6466 (iorsi3_compare0_scratch): Likewise.
6467
6468 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6469
6470 * config/aarch64/aarch64-simd-builtins.def:
6471 (ld1x4): New.
6472 (st1x4): Likewise.
6473 * config/aarch64/aarch64-simd.md:
6474 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6475 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6476 (aarch64_ld1_x4_<mode>): Likewise.
6477 (aarch64_st1_x4_<mode>): Likewise.
6478 * config/aarch64/arm_neon.h:
6479 (vld1_s8_x4): New function.
6480 (vld1q_s8_x4): Likewise.
6481 (vld1_s16_x4): Likewise.
6482 (vld1q_s16_x4): Likewise.
6483 (vld1_s32_x4): Likewise.
6484 (vld1q_s32_x4): Likewise.
6485 (vld1_u8_x4): Likewise.
6486 (vld1q_u8_x4): Likewise.
6487 (vld1_u16_x4): Likewise.
6488 (vld1q_u16_x4): Likewise.
6489 (vld1_u32_x4): Likewise.
6490 (vld1q_u32_x4): Likewise.
6491 (vld1_f16_x4): Likewise.
6492 (vld1q_f16_x4): Likewise.
6493 (vld1_f32_x4): Likewise.
6494 (vld1q_f32_x4): Likewise.
6495 (vld1_p8_x4): Likewise.
6496 (vld1q_p8_x4): Likewise.
6497 (vld1_p16_x4): Likewise.
6498 (vld1q_p16_x4): Likewise.
6499 (vld1_s64_x4): Likewise.
6500 (vld1_u64_x4): Likewise.
6501 (vld1_p64_x4): Likewise.
6502 (vld1q_s64_x4): Likewise.
6503 (vld1q_u64_x4): Likewise.
6504 (vld1q_p64_x4): Likewise.
6505 (vld1_f64_x4): Likewise.
6506 (vld1q_f64_x4): Likewise.
6507 (vst1_s8_x4): Likewise.
6508 (vst1q_s8_x4): Likewise.
6509 (vst1_s16_x4): Likewise.
6510 (vst1q_s16_x4): Likewise.
6511 (vst1_s32_x4): Likewise.
6512 (vst1q_s32_x4): Likewise.
6513 (vst1_u8_x4): Likewise.
6514 (vst1q_u8_x4): Likewise.
6515 (vst1_u16_x4): Likewise.
6516 (vst1q_u16_x4): Likewise.
6517 (vst1_u32_x4): Likewise.
6518 (vst1q_u32_x4): Likewise.
6519 (vst1_f16_x4): Likewise.
6520 (vst1q_f16_x4): Likewise.
6521 (vst1_f32_x4): Likewise.
6522 (vst1q_f32_x4): Likewise.
6523 (vst1_p8_x4): Likewise.
6524 (vst1q_p8_x4): Likewise.
6525 (vst1_p16_x4): Likewise.
6526 (vst1q_p16_x4): Likewise.
6527 (vst1_s64_x4): Likewise.
6528 (vst1_u64_x4): Likewise.
6529 (vst1_p64_x4): Likewise.
6530 (vst1q_s64_x4): Likewise.
6531 (vst1q_u64_x4): Likewise.
6532 (vst1q_p64_x4): Likewise.
6533 (vst1_f64_x4): Likewise.
6534 (vst1q_f64_x4): Likewise.
6535
6536 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6537
6538 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6539
6540 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6541 Richard Sandiford <richard.sandiford@arm.com>
6542
6543 PR target/88839
6544 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6545 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6546
6547 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6548
6549 PR target/90724
6550 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6551 in reg if it fails aarch64_plus_operand predicate.
6552
6553 2019-08-21 Richard Biener <rguenther@suse.de>
6554
6555 PR tree-optimization/91482
6556 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6557 BUILT_IN_ASSUME_ALIGNED calls.
6558
6559 2019-08-21 Richard Biener <rguenther@suse.de>
6560
6561 PR target/91498
6562 PR target/91503
6563 * config/i386/i386-features.c
6564 (general_scalar_chain::make_vector_copies): Copy stack temporary
6565 rtx when using it multiple times.
6566 (general_scalar_chain::convert_reg): Likewise.
6567
6568 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6569
6570 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6571
6572 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6573
6574 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6575 catch more redundant zero initialization cases.
6576 (dse_dom_walker::dse_optimize_stmt): Likewise.
6577
6578 2019-08-20 Richard Biener <rguenther@suse.de>
6579
6580 PR lto/91307
6581 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6582 by collect2 when targetm.have_ctors_dtors which avoids dragging
6583 in temporary filenames from LTO input objects.
6584
6585 2019-08-20 Richard Biener <rguenther@suse.de>
6586
6587 PR tree-optimization/37242
6588 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6589 to (T)a + (T)b if we know that a + b does not overflow.
6590
6591 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6592
6593 PR rtl-optimization/91347
6594 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6595 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6596
6597 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6598
6599 * calls.h (function_arg_info): Add a pass_by_reference field,
6600 defaulting to false.
6601 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6602 when applying pass-by-reference semantics.
6603 (initialize_argument_information): Likewise.
6604 (emit_library_call_value_1): Likewise.
6605 * function.c (assign_parm_data_one): Remove passed_pointer field.
6606 (assign_parm_find_data_types): Don't set it.
6607 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6608 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6609 arg.pass_by_reference instead of passed_pointer.
6610
6611 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6612
6613 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6614 into a single function_arg_info, updating its fields when we
6615 apply pass-by-reference and promotion semantics. Use the
6616 function_arg_info to track the mode rather than keeping it in
6617 a separate local variable.
6618 (initialize_argument_information): Likewise. Base the final
6619 arg_to_skip on this new function_arg_info rather than creating
6620 a new one from scratch.
6621
6622 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6623
6624 * function.c (assign_parm_data_one): Replace passed_type,
6625 promoted_mode and named_arg with a function_arg_info field.
6626 (assign_parm_find_data_types): Remove local variables and
6627 assign directly to "data". Make data->passed_mode shadow
6628 data->arg.mode until promotion, then assign the promoted
6629 mode to data->arg.mode.
6630 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6631 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6632 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6633 (assign_parm_setup_block, assign_parm_setup_reg)
6634 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6635 arg.mode instead of promoted_mode, arg.type instead of passed_type
6636 and arg.named instead of named_arg. Use data->arg for
6637 function_arg_info structures that had the field values passed_type,
6638 promoted_mode and named_arg. Base other function_arg_infos on
6639 data->arg, changing the necessary properties.
6640
6641 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6642
6643 * calls.h (apply_pass_by_reference_rules): Declare.
6644 * calls.c (apply_pass_by_reference_rules): New function.
6645 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6646 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6647 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6648 * function.c (assign_parm_find_data_types): Likewise.
6649 * var-tracking.c (prepare_call_arguments): Likewise.
6650
6651 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6652
6653 * target.def (must_pass_in_stack): Take a function_arg_info instead
6654 of a mode and a type.
6655 * doc/tm.texi: Regenerate.
6656 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6657 instead of a mode and a type.
6658 (must_pass_in_stack_var_size_or_pad): Likewise.
6659 * calls.c (must_pass_in_stack_var_size): Likewise.
6660 (must_pass_in_stack_var_size_or_pad): Likewise.
6661 (initialize_argument_information): Update call to
6662 targetm.calls.must_pass_in_stack.
6663 (must_pass_va_arg_on_stack): Likewise.
6664 * function.c (assign_parm_find_entry_rtl): Likewise.
6665 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6666 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6667 (alpha_function_arg_advance): Likewise.
6668 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6669 (cr16_function_arg_advance): Likewise.
6670 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6671 (cris_arg_partial_bytes): Likewise.
6672 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6673 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6674 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6675 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6676 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6677 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6678 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6679 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6680 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6681 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6682 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6683 instead of a mode and a type.
6684 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6685 (fr30_num_arg_regs): Likewise.
6686 (fr30_setup_incoming_varargs): Update calls accordingly.
6687 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6688 (fr30_function_arg_advance): Likewise.
6689 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6690 instead of a mode and a type.
6691 * config/gcn/gcn.c (num_arg_regs): Likewise.
6692 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6693 num_arg_regs and targetm.calls.must_pass_in_stack.
6694 (gcn_arg_partial_bytes): Likewise.
6695 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6696 function_arg_info instead of a mode and a type.
6697 (classify_argument): Update call accordingly.
6698 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6699 function_arg_info instead of a mode and a type.
6700 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6701 Likewise.
6702 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6703 (rs6000_parm_needs_stack): Update call accordingly.
6704 (setup_incoming_varargs): Likewise.
6705
6706 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6707
6708 * target.def (callee_copies): Take a function_arg_info instead
6709 of a mode, type and named flag.
6710 * doc/tm.texi: Regenerate.
6711 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6712 instead of a mode, type and named flag.
6713 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6714 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6715 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6716 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6717 instead of a mode, type and named flag.
6718 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6719 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6720 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6721 * calls.h (reference_callee_copied): Take a function_arg_info
6722 instead of a mode, type and named flag.
6723 * calls.c (reference_callee_copied): Likewise.
6724 (initialize_argument_information): Update call accordingly.
6725 (emit_library_call_value_1): Likewise.
6726 * function.c (gimplify_parameters): Likewise.
6727 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6728 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6729 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6730 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6731 (TARGET_CALLEE_COPIES): Define to
6732 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6733 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6734 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6735 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6736 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6737 instead of a mode, type and named flag.
6738 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6739 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6740 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6741 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6742 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6743 (TARGET_CALLEE_COPIES): Define to
6744 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6745 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6746 instead of a mode, type and named flag.
6747 * config/sh/sh.c (sh_callee_copies): Likewise.
6748 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6749 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6750 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6751
6752 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6753
6754 * target.def (function_arg_advance): Take a function_arg_info instead
6755 of a mode, type and named flag.
6756 * doc/tm.texi: Regenerate.
6757 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6758 instead of a mode, type and named flag.
6759 * targhooks.c (default_function_arg_advance): Likewise.
6760 * calls.c (initialize_argument_information): Update call to
6761 targetm.calls.function_arg_advance.
6762 (emit_library_call_value_1): Likewise.
6763 * dse.c (get_call_args): Likewise.
6764 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6765 * function.c (assign_parms, gimplify_parameters): Likewise.
6766 * var-tracking.c (prepare_call_arguments): Likewise.
6767 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6768 function_arg_info instead of a mode, type and named flag.
6769 (aarch64_setup_incoming_varargs): Update call accordingly.
6770 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6771 function_arg_info instead of a mode, type and named flag.
6772 (alpha_setup_incoming_varargs): Update call accordingly.
6773 * config/arc/arc.c (arc_function_arg_advance): Take a
6774 function_arg_info instead of a mode, type and named flag.
6775 (arc_setup_incoming_varargs): Update call accordingly.
6776 * config/arm/arm.c (arm_function_arg_advance): Take a
6777 function_arg_info instead of a mode, type and named flag.
6778 (cmse_func_args_or_return_in_stack): Update call accordingly.
6779 (arm_function_ok_for_sibcall): Likewise.
6780 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6781 * config/avr/avr.c (avr_function_arg_advance): Take a
6782 function_arg_info instead of a mode, type and named flag.
6783 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6784 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6785 (c6x_call_saved_register_used): Update call accordingly.
6786 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6787 function_arg_info instead of a mode, type and named flag.
6788 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6789 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6790 (csky_setup_incoming_varargs): Update call accordingly.
6791 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6792 function_arg_info instead of a mode, type and named flag.
6793 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6794 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6795 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6796 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6797 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6798 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6799 (ix86_setup_incoming_varargs): Update call accordingly.
6800 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6801 function_arg_info instead of a mode, type and named flag.
6802 (ia64_setup_incoming_varargs): Update call accordingly.
6803 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6804 function_arg_info instead of a mode, type and named flag.
6805 (iq2000_expand_prologue): Update call accordingly.
6806 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6807 function_arg_info instead of a mode, type and named flag.
6808 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6809 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6810 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6811 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6812 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6813 Likewise.
6814 (microblaze_expand_prologue): Update call accordingly.
6815 * config/mips/mips.c (mips_function_arg_advance): Take a
6816 function_arg_info instead of a mode, type and named flag.
6817 (mips_setup_incoming_varargs): Update call accordingly.
6818 (mips_output_args_xfer): Likewise.
6819 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6820 function_arg_info instead of a mode, type and named flag.
6821 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6822 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6823 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6824 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6825 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6826 (nios2_setup_incoming_varargs): Update call accordingly.
6827 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6828 function_arg_info instead of a mode, type and named flag.
6829 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6830 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6831 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6832 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6833 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6834 (riscv_setup_incoming_varargs): Update call accordingly.
6835 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6836 function_arg_info instead of a mode, type and named flag.
6837 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6838 Likewise.
6839 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6840 (rs6000_parm_needs_stack): Update call accordingly.
6841 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6842 instead of a mode, type and named flag.
6843 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6844 (s390_call_saved_register_used): Update call accordingly.
6845 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6846 instead of a mode, type and named flag.
6847 (sh_output_mi_thunk): Update call accordingly.
6848 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6849 function_arg_info instead of a mode, type and named flag.
6850 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6851 (spu_setup_incoming_varargs): Update call accordingly.
6852 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6853 function_arg_info instead of a mode, type and named flag.
6854 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6855 (tilegx_setup_incoming_varargs): Update call accordingly.
6856 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6857 function_arg_info instead of a mode, type and named flag.
6858 (tilegx_setup_incoming_varargs): Update call accordingly.
6859 * config/v850/v850.c (v850_function_arg_advance): Take a
6860 function_arg_info instead of a mode, type and named flag.
6861 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6862 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6863 (visium_setup_incoming_varargs): Update call accordingly.
6864 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6865 function_arg_info instead of a mode, type and named flag.
6866
6867 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6868
6869 * target.def (function_arg, function_incoming_arg): Take a
6870 function_arg_info instead of a mode, tree and named flag.
6871 * doc/tm.texi: Regenerate.
6872 * targhooks.h (default_function_arg): Take a function_arg_info
6873 instead of a mode, tree and named flag.
6874 (default_function_incoming_arg): Likewise.
6875 * targhooks.c (default_function_arg): Likewise.
6876 (default_function_incoming_arg): Likewise.
6877 * calls.h (function_arg_info::end_marker_p): New function.
6878 (function_arg_info::end_marker): Likewise.
6879 * calls.c (prepare_call_address, initialize_argument_information)
6880 (expand_call, emit_library_call_value_1): Update calls to
6881 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6882 * dse.c: Include calls.h.
6883 (get_call_args): Update call to targetm.calls.function_arg.
6884 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6885 * var-tracking.c (prepare_call_arguments): Likewise.
6886 * function.c (assign_parm_find_entry_rtl): Update call to
6887 targetm.calls.function_incoming_arg.
6888 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6889 function_arg_info instead of a mode, tree and named flag.
6890 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6891 * config/arc/arc.c (arc_function_arg): Likewise.
6892 * config/arm/arm.c (arm_function_arg): Likewise.
6893 (cmse_func_args_or_return_in_stack): Update call accordingly.
6894 (arm_function_ok_for_sibcall): Likewise.
6895 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6896 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6897 instead of a mode, tree and named flag.
6898 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6899 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6900 (c6x_call_saved_register_used): Update call accordingly.
6901 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6902 instead of a mode, tree and named flag.
6903 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6904 (cris_function_arg_1): Likewise.
6905 * config/csky/csky.c (csky_function_arg): Likewise.
6906 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6907 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6908 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6909 (frv_function_arg_1): Likewise.
6910 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6911 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6912 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6913 * config/i386/i386.c (ix86_function_arg): Likewise.
6914 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6915 (ia64_function_arg_1): Likewise.
6916 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6917 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6918 accordingly.
6919 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6920 instead of a mode, tree and named flag.
6921 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6922 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6923 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6924 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6925 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6926 (microblaze_expand_prologue): Update call accordingly.
6927 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6928 instead of a mode, tree and named flag.
6929 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6930 (mmix_function_arg_1): Likewise.
6931 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6932 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6933 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6934 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6935 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6936 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6937 (nvptx_function_incoming_arg): Likewise.
6938 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6939 * config/pa/pa.c (pa_function_arg): Likewise.
6940 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6941 * config/pru/pru.c (pru_function_arg): Likewise.
6942 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6943 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6944 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6945 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6946 (rs6000_parm_needs_stack): Update call accordingly.
6947 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6948 instead of a mode, tree and named flag.
6949 * config/s390/s390.c (s390_function_arg): Likewise.
6950 (s390_call_saved_register_used): Update call accordingly.
6951 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6952 instead of a mode, tree and named flag.
6953 (sh_output_mi_thunk): Update call accordingly.
6954 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6955 (sparc_function_incoming_arg): Take a function_arg_info instead of
6956 a mode, tree and named flag.
6957 * config/spu/spu.c (spu_function_arg): Likewise.
6958 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6959 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6960 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6961 * config/v850/v850.c (v850_function_arg): Likewise.
6962 * config/vax/vax.c (vax_function_arg): Likewise.
6963 * config/visium/visium.c (visium_function_arg): Likewise.
6964 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6965 (xtensa_function_incoming_arg): Likewise.
6966
6967 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6968
6969 * target.def (setup_incoming_varargs): Take a function_arg_info
6970 instead of a mode and tree.
6971 * doc/tm.texi: Regenerate.
6972 * targhooks.h (default_setup_incoming_varargs): Take a
6973 function_arg_info instead of a mode and tree.
6974 * targhooks.c (default_setup_incoming_varargs): Likewise.
6975 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6976 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6977 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6978 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6979 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6980 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6981 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6982 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6983 Likewise.
6984 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6985 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6986 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6987 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6988 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6989 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6990 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6991 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6992 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6993 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6994 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6995 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6996 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6997 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6998 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6999 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
7000 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
7001 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7002 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
7003 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
7004 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
7005 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7006 * function.c (assign_parms_setup_varargs): Update call to
7007 targetm.calls.setup_incoming_varargs.
7008
7009 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7010
7011 * target.def (pass_by_reference): Take a function_arg_info instead
7012 of a mode, type and named flag.
7013 * doc/tm.texi: Regenerate.
7014 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
7015 accordingly.
7016 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
7017 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
7018 function_arg_info instead of a mode, type and named flag.
7019 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
7020 * calls.h (pass_by_reference): Take a function_arg_info instead of a
7021 mode, type and named flag.
7022 * calls.c (pass_by_reference): Likewise.
7023 (pass_va_arg_by_reference): Update call accordingly.
7024 (initialize_argument_information): Likewise.
7025 (emit_library_call_value_1): Likewise.
7026 * function.c (assign_parm_find_data_types): Likewise.
7027 * var-tracking.c (prepare_call_arguments): Likewise.
7028 * stor-layout.c: Include calls.h.
7029 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
7030 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
7031 function_arg_info instead of a mode, type and named flag.
7032 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
7033 * config/arc/arc.c (arc_pass_by_reference): Likewise.
7034 * config/arm/arm.c (arm_pass_by_reference): Likewise.
7035 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
7036 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
7037 (c6x_call_saved_register_used): Update call to pass_by_reference.
7038 * config/cris/cris.c (cris_pass_by_reference): Take a
7039 function_arg_info instead of a mode, type and named flag.
7040 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
7041 function_arg_info instead of a mode, type and named flag.
7042 (epiphany_arg_partial_bytes): Update call accordingly.
7043 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
7044 function_arg_info instead of a mode, type and named flag.
7045 (ft32_arg_partial_bytes): Update call accordingly.
7046 * config/i386/i386.c (ix86_pass_by_reference): Take a
7047 function_arg_info instead of a mode, type and named flag.
7048 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7049 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
7050 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
7051 (m32r_return_in_memory): Update call accordingly.
7052 * config/mips/mips.c (mips_pass_by_reference): Take a
7053 function_arg_info instead of a mode, type and named flag.
7054 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
7055 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7056 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
7057 (moxie_arg_partial_bytes): Update call accordingly.
7058 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
7059 function_arg_info instead of a mode, type and named flag.
7060 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
7061 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
7062 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7063 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
7064 (riscv_return_in_memory): Update call accordingly.
7065 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
7066 function_arg_info instead of a mode, type and named flag.
7067 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
7068 (rs6000_parm_needs_stack): Update call to pass_by_reference.
7069 * config/s390/s390.c (s390_pass_by_reference): Take a
7070 function_arg_info instead of a mode, type and named flag.
7071 (s390_call_saved_register_used): Update call accordingly.
7072 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
7073 instead of a mode, type and named flag.
7074 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
7075 * config/spu/spu.c (spu_pass_by_reference): Likewise.
7076 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
7077 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
7078 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7079 * config/visium/visium.c (visium_pass_by_reference): Likewise.
7080
7081 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7082
7083 * target.def (arg_partial_bytes): Take a function_arg_info instead
7084 of a mode, type and named flag.
7085 * doc/tm.texi: Regenerate.
7086 * target.h (function_arg_info): Declare.
7087 * calls.h (function_arg_info): New class.
7088 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7089 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
7090 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7091 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
7092 * calls.c (initialize_argument_information): Update call to
7093 targetm.calls.partial_bytes.
7094 (emit_library_call_value_1): Likewise.
7095 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7096 * function.c (assign_parm_find_entry_rtl): Likewise.
7097 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
7098 function_arg_info instead of a mode, type and named flag.
7099 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
7100 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7101 (cmse_func_args_or_return_in_stack): Update accordingly.
7102 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7103 function_arg_info instead of a mode, type and named flag.
7104 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7105 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7106 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7107 * config/fr30/fr30.c: Include calls.h.
7108 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7109 type and named flag.
7110 * config/frv/frv.c: Include calls.h.
7111 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7112 type and named flag.
7113 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7114 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7115 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7116 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7117 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7118 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7119 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7120 Likewise.
7121 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7122 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7123 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7124 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7125 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7126 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7127 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7128 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7129 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7130 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7131 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7132 (rs6000_parm_needs_stack): Update call accordingly.
7133 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7134 function_arg_info instead of a mode, type and named flag.
7135 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7136 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7137
7138 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7139
7140 * calls.h (must_pass_va_arg_in_stack): Declare.
7141 * calls.c (must_pass_va_arg_in_stack): New function.
7142 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7143 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7144 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7145 Likewise.
7146 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7147
7148 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7149
7150 * calls.h (pass_va_arg_by_reference): Declare.
7151 * calls.c (pass_va_arg_by_reference): New function.
7152 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7153 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7154 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7155 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7156 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7157 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7158 (mips_gimplify_va_arg_expr): Likewise.
7159 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7160 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7161 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7162 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7163 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7164 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7165 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7166 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7167 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7168 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7169 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7170
7171 2019-08-20 Richard Biener <rguenther@suse.de>
7172
7173 PR target/91498
7174 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7175 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7176 (convert_scalars_to_vector): Add timode_p parameter and use it
7177 to guard TImode-only operation.
7178 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7179 (pass_stv::execute): Pass down timode_p.
7180
7181 2019-08-20 Lili Cui <lili.cui@intel.com>
7182
7183 * common/config/i386/i386-common.c
7184 (processor_names): Add tigerlake and cooperlake.
7185 (processor_alias_table): Add tigerlake and cooperlake.
7186 * config.gcc: Add -march=tigerlake and cooperlake.
7187 * config/i386/driver-i386.c
7188 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7189 Add "has_avx" to classify processor.
7190 * config/i386/i386-builtins.c (processor_model) :
7191 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7192 (arch_names_table): Add tigerlake and cooperlake.
7193 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7194 and PROCESSOR_COOPERLAKE.
7195 * config/i386/i386-c.c
7196 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7197 * config/i386/i386-options.c
7198 (m_TIGERLAKE) : Define.
7199 (m_COOPERLAKE) : Ditto.
7200 (m_CORE_AVX512): Ditto.
7201 (processor_cost_table): Add cascadelake.
7202 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7203 * config/i386/i386.h
7204 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7205 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7206 (PTA_MOVDIRI): Ditto.
7207 (PTA_MOVDIR64B): Ditto.
7208 (PTA_COOPERLAKE) : Ditto.
7209 (PTA_TIGERLAKE) : Ditto.
7210 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7211 * doc/extend.texi: Add tigerlake and cooperlake.
7212 * doc/invoke.texi: Add tigerlake and cooperlake.
7213
7214 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7215
7216 * doc/install.texi (Specific, alpha): Remove note to use
7217 binutils 2.11.2 or later.
7218
7219 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7220
7221 PR middle-end/89544
7222 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7223 when possible.
7224
7225 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7226
7227 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7228 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7229 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7230 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7231 * config/aarch64/constraints.md (Dt): New constraint
7232 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7233
7234 2019-08-19 Richard Biener <rguenther@suse.de>
7235
7236 PR tree-optimization/91403
7237 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7238 cases we can handle with tail-recursion...
7239 (follow_ssa_edge_expr): ... here. Do so.
7240
7241 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7242
7243 PR target/91441
7244 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7245 implemented for -fsanitize=kernel-address, and merge check logic
7246 with -fsanitize=address.
7247
7248 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7249
7250 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7251 for cpu and machine. Factor 64/32b builtins.
7252
7253 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7254
7255 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7256 gone, point to sourceforge.net.
7257
7258 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7259
7260 * doc/ux.texi (User Experience Guidelines): Update reference.
7261
7262 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7263
7264 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7265 not LGPL".
7266
7267 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7268
7269 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7270 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7271
7272 2019-08-16 Martin Sebor <msebor@redhat.com>
7273
7274 * tree.def (TYPE_SIZE): Clarify.
7275 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7276
7277 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7278
7279 PR tree-optimization/91109
7280 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7281 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7282 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7283
7284 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7285
7286 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7287 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7288 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7289 (uavg<mode>3_ceil): New expander.
7290 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7291 mode iterator when creating CONST1_RTX.
7292 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7293 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7294 mode iterator for const1_operand predicate.
7295
7296 2019-08-16 Richard Biener <rguenther@suse.de>
7297
7298 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7299 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7300 follow_ssa_edge.
7301 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7302 (analyze_evolution_in_loop): Likewise.
7303 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7304 (follow_ssa_edge_expr): ... here. Refactor code.
7305
7306 2019-08-16 Richard Biener <rguenther@suse.de>
7307
7308 PR target/91469
7309 * config/i386/i386-features.c
7310 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7311
7312 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7313
7314 PR other/91255
7315 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7316 only if subst_name matches curr_attr string.
7317
7318 2019-08-16 Richard Biener <rguenther@suse.de>
7319
7320 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7321 stmt at gsi_p, instead replace it with a NOP removed later.
7322 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7323 that became dead because of that.
7324
7325 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7326
7327 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7328 for which we can't represent a range.
7329 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7330 set_varying.
7331 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7332 Set VR_UNDEFINED if type is not supported.
7333 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7334 * tree-vrp.c (value_range_base::check): Assert that a varying has
7335 min/max set.
7336 (value_range_base::equal_p): Early bail for undefines.
7337 (value_range_base::set_varying): Accept a type.
7338 (value_range::set_varying): Same.
7339 (value_range_base::type): VARYING can have a type, while UNDEFINE
7340 is typeless.
7341 (value_range_base::dump): Print type for VARYING nodes.
7342 (value_range_base::set): Add type to VARYING.
7343 (extract_range_from_multiplicative_op): Pass type to set_varying.
7344 (extract_range_from_binary_expr): Same.
7345 (value_range_base::intersect_helper): Same.
7346 (value_range_base::union_helper): Same.
7347 (value_range_base::normalize_symbolics): Same.
7348 (determine_value_range_1): Same.
7349 * tree-vrp.h (class value_range_base): Add type to set_varying.
7350 Add prototype for dump(void).
7351 Add prototype for supports_type_p.
7352 (class value_range): Add type to set_varying.
7353 Add prototype for dump(void).
7354 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7355 set_varying.
7356 (vr_values::get_lattice_entry): Set varying even if propagation
7357 finished.
7358 Pass type to set_varying.
7359 (vr_values::get_value_range): Remove vr_const_varying.
7360 Reallocate the lattice if needed.
7361 (vr_values::update_value_range): Pass type to set_varying.
7362 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7363 (vr_values::extract_range_from_binary_expr): Same.
7364 (vr_values::extract_range_from_unary_expr): Same.
7365 (vr_values::extract_range_from_cond_expr): Same.
7366 (vr_values::check_for_binary_op_overflow): Same.
7367 (vr_values::extract_range_basic): Same.
7368 (vr_values::extract_range_from_assignment): Same.
7369 (vr_values::vr_values): Increase size of num_vr_values.
7370 (vr_values::extract_range_from_phi_node): Pass type to
7371 set_varying.
7372
7373 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7374
7375 PR target/90878
7376 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7377 for costs of hard register moves.
7378 (ix86_register_move_cost): Likewise.
7379 * config/i386/i386.h (processor_costs): Move costs of hard
7380 register moves to hard_register. Add int_load, int_store,
7381 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7382 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7383 for costs of RTL expressions.
7384 * config/i386/x86-tune-costs.h: Move costs of hard register
7385 moves to hard_register. Duplicate int_load, int_store,
7386 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7387 sse_load, sse_store for costs of RTL expressions.
7388
7389 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7390
7391 * target.def (setup_incoming_vararg_bounds): Remove.
7392 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7393 * doc/tm.texi: Regenerate.
7394 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7395 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7396 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7397 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7398
7399 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7400
7401 MSP430: Fix lines over 80 characters long in
7402 config/msp430/*.{c,h} files
7403
7404 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7405 specifier in string.
7406 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7407 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7408 redundant old comment.
7409 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7410 Split line more than 80 characters long.
7411 * config/msp430/msp430.c (msp430_option_override): Likewise.
7412 (msp430_return_in_memory): Likewise.
7413 (msp430_gimplify_va_arg_expr): Likewise.
7414 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7415 (msp430_legitimate_constant): Likewise.
7416 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7417 (msp430_attr): Likewise.
7418 (msp430_data_attr): Likewise.
7419 (msp430_start_function): Likewise.
7420 (gen_prefix): Likewise.
7421 (msp430_init_sections): Likewise.
7422 (msp430_select_section): Likewise.
7423 (msp430_function_section): Likewise.
7424 (msp430_unique_section): Likewise.
7425 (msp430_output_aligned_decl_common): Likewise.
7426 (msp430_do_not_relax_short_jumps): Likewise.
7427 (msp430_init_builtins): Likewise.
7428 (msp430_expand_delay_cycles): Likewise.
7429 (msp430_expand_prologue): Likewise.
7430 (msp430_expand_epilogue): Likewise.
7431 (msp430_expand_helper): Likewise.
7432 (msp430_split_movsi): Likewise.
7433 (msp430_print_operand): Likewise.
7434 (msp430_return_addr_rtx): Likewise.
7435 (msp430x_extendhisi): Likewise.
7436 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7437 (ASM_SPEC): Likewise.
7438 Remove very obvious comments.
7439 (LIB_SPEC): Split line more than 80 characters long.
7440 (EH_RETURN_HANDLER_RTX): Likewise.
7441 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7442
7443 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7444
7445 MSP430: Fix whitespace errors and incorrect indentation in
7446 config/msp430/*.{c,h} files
7447
7448 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7449 (msp430_select_hwmult_lib): Likewise.
7450 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7451 (msp430_extract_mcu_data): Likewise.
7452 (struct t_msp430_mcu_data): Likewise.
7453 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7454 before left square bracket.
7455 (msp430_option_override): Fix indentation.
7456 (msp430_hard_regno_nregs_with_padding): Likewise.
7457 (msp430_initial_elimination_offset): Likewise.
7458 (msp430_special_register_convention_p): Remove whitespace before left
7459 square bracket and after exclamation mark.
7460 (msp430_evaluate_arg): Likewise.
7461 (msp430_callee_copies): Fix indentation.
7462 (msp430_gimplify_va_arg_expr): Likewise.
7463 (msp430_function_arg_advance): Remove whitespace before left square
7464 bracket.
7465 (reg_ok_for_addr): Likewise.
7466 (msp430_preserve_reg_p): Likewise.
7467 (msp430_compute_frame_info): Likewise.
7468 (msp430_asm_output_addr_const_extra): Add space between function name
7469 and open parenthesis.
7470 (has_section_name): Fix indentation.
7471 (msp430_attr): Remove trailing whitespace.
7472 (msp430_section_attr): Likewise.
7473 (msp430_data_attr): Likewise.
7474 (struct msp430_attribute_table): Fix comment and whitespace.
7475 (msp430_start_function): Remove whitespace before left square bracket.
7476 Add space between function name and open parenthesis.
7477 (msp430_select_section): Remove trailing whitespace.
7478 (msp430_section_type_flags): Remove trailing whitespace.
7479 (msp430_unique_section): Remove space before closing parenthesis.
7480 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7481 (msp430_builtins): Remove whitespace before left square bracket.
7482 (msp430_init_builtins): Fix indentation.
7483 (msp430_expand_prologue): Remove whitespace before left square bracket.
7484 Remove space before closing parenthesis.
7485 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7486 (msp430_split_movsi): Remove space before closing parenthesis.
7487 (helper_function_name_mappings): Fix indentation.
7488 (msp430_use_f5_series_hwmult): Fix whitespace.
7489 (use_32bit_hwmult): Likewise.
7490 (msp430_no_hwmult): Likewise.
7491 (msp430_output_labelref): Remove whitespace before left square bracket.
7492 (msp430_print_operand_raw): Likewise.
7493 (msp430_print_operand_addr): Likewise.
7494 (msp430_print_operand): Add two spaces after '.' in comment.
7495 Fix trailing whitespace.
7496 (msp430x_extendhisi): Fix indentation.
7497 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7498 tab.
7499 (PC_REGNUM): Likewise.
7500 (STACK_POINTER_REGNUM): Likewise.
7501 (CC_REGNUM): Likewise.
7502
7503 2019-08-15 Richard Biener <rguenther@suse.de>
7504
7505 PR target/91454
7506 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7507 helper.
7508 (general_scalar_chain::make_vector_copies): Use it.
7509
7510 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7511
7512 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7513
7514 2019-08-15 Martin Liska <mliska@suse.cz>
7515
7516 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7517 operators with no arguments.
7518 (eliminate_unnecessary_stmts): Likewise here.
7519
7520 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7521
7522 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7523 <case COMPARE>: Revert 2019-08-14 change.
7524 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7525 for (TARGET_64BIT || mode != DImode).
7526
7527 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7528
7529 * tree-vrp.c (value_range_base::set): Merge in code from
7530 value_range_base::set_and_canonicalize.
7531 Enforce canonicalization at set time.
7532 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7533 (value_range_base::set_undefined): Inline call to set().
7534 (value_range_base::set_varying): Same.
7535 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7536 (vrp_val_max): New argument handle_pointers.
7537 (vrp_val_min): Same.
7538 (ranges_from_anti_range): Same.
7539 (extract_range_into_wide_ints): Use tree argument instead of sign
7540 and precision.
7541 (extract_range_from_multiplicative_op): Take in tree type instead
7542 of precision and sign. Adapt function for canonicalized ranges.
7543 (extract_range_from_binary_expr): Pass type to
7544 extract_range_from_multiplicative_op.
7545 Adapt for canonicalized ranges.
7546 (extract_range_from_unary_expr): Same.
7547 (value_range_base::intersect_helper): Adjust for canonicalized
7548 ranges.
7549 (value_range_base::union_helper): Same.
7550 (value_range_base::normalize_symbolics): New.
7551 * tree-vrp.h (class value_range_base): Remove
7552 set_and_canonicalize.
7553 New prototype for normalize_symbolics.
7554 (class value_range): Remove set_and_canonicalize.
7555 (vrp_val_min): Adjust prototype.
7556 (vrp_val_max): Same.
7557 * vr-values.c
7558 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7559 instead of set_and_canonicalize.
7560
7561 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7562
7563 PR middle-end/91444
7564 * tree-vect-stmts.c (vectorizable_call): Check that the function
7565 is a BUILT_IN_MD function before passing it to
7566 targetm.vectorize.builtin_md_vectorized_function.
7567
7568 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7569
7570 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7571 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7572 (aarch64_select_early_remat_modes): Use it.
7573
7574 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7575
7576 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7577 16 for SVE predicates even if they are fixed-length.
7578
7579 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7580
7581 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7582 operand order match the MOV /Z alias.
7583
7584 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7585
7586 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7587 the vector pattern as an aarch64_svpattern argument. Update the
7588 overloaded caller accordingly.
7589 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7590 (aarch64_output_sve_vector_inc_dec): Likewise.
7591
7592 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7593
7594 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7595 multiplication case, try to compute VG * (lowest set bit) directly
7596 rather than always basing the multiplication on VG. Use
7597 expand_mult for the multiplication if we can.
7598
7599 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7600
7601 * config/aarch64/aarch64-protos.h
7602 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7603 (aarch64_sve_inc_dec_immediate_p): Rename to...
7604 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7605 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7606 (aarch64_output_sve_scalar_inc_dec): Declare.
7607 (aarch64_output_sve_inc_dec_immediate): Rename to...
7608 (aarch64_output_sve_vector_inc_dec): ...this.
7609 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7610 (aarch64_output_sve_scalar_inc_dec): New functions.
7611 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7612 arguments. Only handle true ADDVL and ADDPL instructions;
7613 don't emit an INC or DEC.
7614 (aarch64_sve_inc_dec_immediate_p): Rename to...
7615 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7616 (aarch64_output_sve_inc_dec_immediate): Rename to...
7617 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7618 aarch64_sve_vector_inc_dec_immediate_p.
7619 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7620 (aarch64_sve_plus_immediate): New predicates.
7621 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7622 rather than aarch64_sve_addvl_addpl_immediate.
7623 (aarch64_sve_inc_dec_immediate): Rename to...
7624 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7625 aarch64_sve_vector_inc_dec_immediate_p.
7626 (aarch64_sve_add_operand): Update accordingly.
7627 * config/aarch64/constraints.md (Uai): New constraint.
7628 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7629 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7630 operand into a register if it satisfies aarch64_sve_plus_immediate.
7631 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7632 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7633 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7634 aarch64_output_sve_vector_inc_dec instead of
7635 aarch64_output_sve_inc_dec_immediate.
7636
7637 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7638
7639 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7640 (UNSPEC_REVW): New constants.
7641 (elem_bits): New mode attribute.
7642 (SVE_INT_UNARY): New int iterator.
7643 (optab): Handle UNSPEC_REV[BHW].
7644 (sve_int_op): New int attribute.
7645 (min_elem_bits): Handle VNx16QI and the predicate modes.
7646 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7647 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7648 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7649 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7650 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7651 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7652 unspecs based on the total width of the reversed data.
7653 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7654 reinterpret followed by a subreg on big-endian targets.
7655
7656 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7657 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7658
7659 * config/aarch64/aarch64-sve.md
7660 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7661 alternatives in which one of the inputs is in the same register
7662 as the output.
7663
7664 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7665
7666 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7667 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7668
7669 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7670
7671 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7672 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7673
7674 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7675 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7676
7677 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7678 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7679 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7680
7681 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7682 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7683
7684 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7685 Add an alternative that uses reversed shifts.
7686
7687 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7688
7689 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7690 struct.
7691
7692 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7693
7694 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7695 a commutativity marker.
7696
7697 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7698 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7699
7700 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7701 (aarch64_prepare_sve_cond_int_fma): Declare.
7702 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7703 (aarch64_prepare_sve_int_fma): New functions.
7704 (aarch64_prepare_sve_cond_int_fma): Likewise.
7705 * config/aarch64/aarch64-sve.md
7706 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7707 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7708 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7709 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7710 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7711 (*madd<mode>): Rename to...
7712 (*fma<mode>4): ...this.
7713 (*msub<mode>): Rename to...
7714 (*fnma<mode>4): ...this.
7715
7716 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7717 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7718
7719 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7720 Print 2.0 naturally.
7721 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7722 * config/aarch64/predicates.md
7723 (aarch64_sve_float_negated_arith_immediate): New predicate,
7724 renamed from aarch64_sve_float_arith_with_sub_immediate.
7725 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7726 positive and negative constants.
7727 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7728 or an aarch64_sve_float_arith_with_sub_immediate.
7729 * config/aarch64/constraints.md (vsN): Use
7730 aarch64_sve_float_negated_arith_immediate.
7731 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7732 iterator.
7733 (sve_pred_fp_rhs2_immediate): New int attribute.
7734 * config/aarch64/aarch64-sve.md
7735 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7736 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7737 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7738 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7739 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7740 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7741
7742 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7743 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7744
7745 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7746 (*aarch64_cond_abd<SVE_F:mode>_3)
7747 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7748
7749 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7750 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7751
7752 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7753 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7754
7755 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7756 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7757
7758 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7759 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7760 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7761 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7762 optabs.
7763 * optabs.h (create_convert_operand_from): Expand comment.
7764 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7765 when mapping scalar rtxes to vector operands.
7766 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7767 ashiftrt and lshiftrt.
7768 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7769 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7770 (*cond_<optab><mode>_any_const): New patterns.
7771
7772 2019-08-15 Martin Liska <mliska@suse.cz>
7773
7774 PR ipa/91438
7775 * cgraph.c (cgraph_node::remove): When setting
7776 n->origin = NULL for all nested functions, reset
7777 also next_nested.
7778
7779 2019-08-15 Martin Liska <mliska@suse.cz>
7780
7781 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7782 and next_nested.
7783
7784 2019-08-15 Martin Liska <mliska@suse.cz>
7785
7786 PR ipa/91404
7787 * passes.c (order): Remove.
7788 (uid_hash_t): Likewise).
7789 (remove_cgraph_node_from_order): Remove from set
7790 of pointers (cgraph_node *).
7791 (insert_cgraph_node_to_order): New.
7792 (duplicate_cgraph_node_to_order): New.
7793 (do_per_function_toporder): Register all 3 cgraph hooks.
7794 Skip removed_nodes now as we know about all of them.
7795
7796 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7797
7798 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7799 <case E_V8QImode>: Use vector_set path for
7800 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7801 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7802 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7803
7804 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7805
7806 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7807
7808 2019-08-14 Martin Sebor <msebor@redhat.com>
7809
7810 PR tree-optimization/91294
7811 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7812 source length as exact.
7813
7814 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7815
7816 * doc/extend.texi: Add "noinit" attribute documentation.
7817 * doc/sourcebuild.texi: Add noinit effective target documentation.
7818 * varasm.c (default_section_type_flags): Add support for "noinit"
7819 section.
7820 (default_elf_select_section): Add support for "noinit" attribute.
7821 * config/msp430/msp430.c (msp430_attribute_table): Remove
7822 "noinit" entry.
7823
7824 2019-08-14 Richard Biener <rguenther@suse.de>
7825 Uroš Bizjak <ubizjak@gmail.com>
7826
7827 PR target/91154
7828 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7829 mode arguments.
7830 (scalar_chain::smode): New member.
7831 (scalar_chain::vmode): Likewise.
7832 (dimode_scalar_chain): Rename to...
7833 (general_scalar_chain): ... this.
7834 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7835 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7836 base with TImode and V1TImode.
7837 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7838 (general_scalar_chain::vector_const_cost): Adjust for SImode
7839 chains.
7840 (general_scalar_chain::compute_convert_gain): Likewise. Add
7841 {S,U}{MIN,MAX} support.
7842 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7843 (general_scalar_chain::make_vector_copies): Likewise. Handle
7844 non-DImode chains appropriately.
7845 (general_scalar_chain::convert_reg): Likewise.
7846 (general_scalar_chain::convert_op): Likewise.
7847 (general_scalar_chain::convert_insn): Likewise. Add
7848 fatal_insn_not_found if the result is not recognized.
7849 (convertible_comparison_p): Pass in the scalar mode and use that.
7850 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7851 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7852 (scalar_to_vector_candidate_p): Remove by inlining into single
7853 caller.
7854 (general_remove_non_convertible_regs): Rename from
7855 dimode_remove_non_convertible_regs.
7856 (remove_non_convertible_regs): Remove by inlining into single caller.
7857 (convert_scalars_to_vector): Handle SImode and DImode chains
7858 in addition to TImode chains.
7859 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7860 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7861 (*<maxmin>di3_doubleword): Likewise.
7862
7863 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7864 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7865
7866 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7867 (*cond_bic<mode>_any): New patterns.
7868
7869 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7870
7871 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7872 take the equivalent mask, as well as a bit count.
7873 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7874 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7875 (aarch64_sve_pred_and_operand): New predicates.
7876 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7877 code attribute.
7878 * config/aarch64/aarch64-sve.md
7879 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7880 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7881
7882 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7883
7884 * config/aarch64/aarch64-sve.md
7885 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7886 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7887 New patterns.
7888
7889 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7890 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7891
7892 * config/aarch64/aarch64-sve.md
7893 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7894 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7895
7896 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7897 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7898
7899 * config/aarch64/aarch64-sve.md
7900 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7901 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7902
7903 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7904
7905 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7906 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7907 New pattern.
7908
7909 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7910 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7911
7912 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7913
7914 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7915 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7916
7917 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7918 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7919 (aarch64_print_operand): Add support for %I.
7920 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7921 Bitcast floating-point constants to the corresponding integer constant.
7922 (aarch64_float_const_representable_p): Handle vectors as well
7923 as scalars.
7924 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7925 for the new vcond_mask_<mode><vpred> expander.
7926 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7927 test aarch64_float_const_representable_p.
7928 (aarch64_sve_reg_or_dup_imm): New predicate.
7929 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7930 gen_vcond_mask_<mode><vpred> instead of
7931 gen_aarch64_sve_dup<mode>_const.
7932 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7933 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7934 for operands 1 and 2 respectively. Force operand 2 into a
7935 register if operand 1 is a register. Fold old define_insn...
7936 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7937 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7938 floating-point constants that can be moved as integers. Add
7939 alternatives for MOV /M and FMOV /M.
7940 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7941 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7942 1 and 2 respectively.
7943 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7944 as scalars.
7945 (vss): New constraint.
7946
7947 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7948
7949 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7950 (aarch64_sve_float_maxmin_operand): New predicates.
7951 * config/aarch64/constraints.md (vsB): New constraint.
7952 (vsM): Fix typo.
7953 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7954 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7955 UNSPEC_COND_FMINNM.
7956 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7957 Use aarch64_sve_float_maxmin_operand for operand 2.
7958 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7959 Add alternatives for the constant forms.
7960
7961 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7962
7963 * config/aarch64/constraints.md (vsb): New constraint.
7964 (vsm): Generalize description.
7965 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7966 iterator.
7967 (sve_imm_con): Handle smax, smin, umax and umin.
7968 (sve_imm_prefix): New code attribute.
7969 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7970 (aarch64_sve_vsb_operand): New predicates.
7971 (aarch64_sve_mul_immediate): Rename to...
7972 (aarch64_sve_vsm_immediate): ...this.
7973 (aarch64_sve_mul_operand): Rename to...
7974 (aarch64_sve_vsm_operand): ...this.
7975 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7976 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7977 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7978 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7979 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7980 add movprfx support for the immediate alternatives.
7981 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7982 of the above.
7983 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7984 for operand 3.
7985
7986 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7987
7988 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7989 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7990 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7991
7992 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7993
7994 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7995 (optab, sve_int_op): Handle them.
7996 * config/aarch64/aarch64-sve.md: Expand comment.
7997
7998 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7999
8000 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
8001 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
8002 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
8003
8004 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8005
8006 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
8007 (aarch64_expand_sve_const_pred_trn): New functions.
8008 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
8009 use the above functions when the parameter is true.
8010 (aarch64_expand_sve_const_pred): Update call accordingly.
8011 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
8012 Rename to...
8013 (@aarch64_sve_<perm_insn><mode>): ...this.
8014
8015 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8016
8017 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
8018 Declare.
8019 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
8020 (aarch64_sve_emit_int_cmp): New functions.
8021 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
8022 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
8023 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
8024 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
8025 (UNSPEC_PRED_Z): New unspec.
8026 (set_clobber_cc_nzc): Delete.
8027 * config/aarch64/aarch64-sve.md: Add a block comment about
8028 UNSPEC_PRED_Z.
8029 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
8030 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
8031 the old pattern with that name. Use UNSPEC_PRED_Z instead of
8032 UNSPEC_MERGE_PTRUE.
8033 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
8034 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
8035 check for compatible predicates.
8036 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
8037 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
8038 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
8039 comparisons above.
8040
8041 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8042
8043 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
8044 * config/aarch64/aarch64-sve.md: Add a section describing it.
8045 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
8046 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
8047 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
8048 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
8049 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
8050 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
8051 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
8052 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
8053 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
8054 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
8055 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
8056 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
8057 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
8058 (aarch64_evpc_rev_local): Update accordingly.
8059
8060 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8061
8062 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
8063 iterators.
8064 (SVE_BHSI, SVE_SDI): Tweak comment.
8065 (SVE_HSDI): Likewise. Fix definition.
8066 (SVE_SDF): New mode iterator.
8067 (elem_bits): New mode attribute.
8068 (SVE_COND_FCVT): New int iterator.
8069 * config/aarch64/aarch64-sve.md
8070 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
8071 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
8072 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
8073 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8074 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8075 ...these new patterns.
8076 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
8077 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
8078 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
8079 Merge into...
8080 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
8081 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
8082 ...these new patterns.
8083 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
8084 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
8085 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
8086 ...this new pattern.
8087 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
8088 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
8089 ...this new pattern.
8090 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
8091
8092 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8093
8094 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
8095 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
8096 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
8097 unspecs.
8098 (optab, su): Handle them.
8099 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
8100 * config/aarch64/aarch64-sve.md
8101 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8102 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8103 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8104 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8105 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8106 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8107 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8108 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8109 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8110 FIXUORS.
8111 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8112 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8113 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8114 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8115 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8116 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8117 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8118 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8119 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8120 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8121 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8122 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8123 of UNSPEC_FLOAT_CONVERT.
8124 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8125 aarch64_sve_extend<mode><Vwide>2.
8126
8127 2019-08-14 Richard Biener <rguenther@suse.de>
8128
8129 PR target/91154
8130 * config/i386/i386-features.c
8131 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8132 individual instruction gain. Fix reg-reg copy GRP cost. Use
8133 ix86_cost->sse_op for vector instruction costs.
8134
8135 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8136
8137 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8138 (cmp_op): Handle it.
8139 (SVE_COND_FP_CMP): Rename to...
8140 (SVE_COND_FP_CMP_I0): ...this.
8141 (SVE_FP_CMP): Remove.
8142 * config/aarch64/aarch64-sve.md
8143 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8144 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8145 using unspecs to represent the comparison.
8146 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8147 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8148 accordingly.
8149 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8150 (aarch64_unspec_cond_code): Move after integer code. Handle
8151 UNORDERED.
8152 (aarch64_emit_sve_predicated_cond): Replace with...
8153 (aarch64_emit_sve_fp_cond): ...this new function.
8154 (aarch64_emit_sve_or_conds): Replace with...
8155 (aarch64_emit_sve_or_fp_conds): ...this new function.
8156 (aarch64_emit_sve_inverted_cond): Replace with...
8157 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8158 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8159
8160 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8161
8162 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8163 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8164 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8165 SVE_HSD instead of SVE_SD.
8166
8167 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8168 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8169
8170 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8171 iterator.
8172 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8173 attributes.
8174 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8175 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8176 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8177 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8178 (*div<SVE_F:mode>3): Generalize to...
8179 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8180
8181 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8182 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8183
8184 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8185 constants.
8186 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8187 predicate.
8188 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8189 Declare.
8190 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8191 function.
8192 * config/aarch64/aarch64-sve.md: Add a block comment about the
8193 handling of predicated FP operations.
8194 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8195 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8196 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8197 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8198 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8199 operand.
8200 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8201 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8202 operand.
8203 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8204 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8205 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8206 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8207 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8208 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8209 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8210 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8211 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8212 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8213 strictness operands. Use aarch64_sve_pred_dominates_p to check
8214 whether the predicate on the conditional operation is suitable
8215 for merging. Split patterns into the canonical equal-predicate form.
8216 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8217 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8218
8219 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8220 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8221
8222 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8223 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8224 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8225 rtx codes.
8226 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8227 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8228 unspecs.
8229
8230 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8231 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8232
8233 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8234 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8235 actually has, rather than relying on REG_EQUAL notes.
8236 Make the insn operand order match the SVE operand order.
8237 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8238 the SVE operand order.
8239
8240 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8241
8242 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8243 (aarch64_emit_set_immediate): Likewise.
8244 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8245 (aarch64_pfalse_reg): Likewise.
8246 (aarch64_convert_sve_data_to_pred): New function.
8247 (aarch64_sve_move_pred_via_while): Take an optional target register
8248 and the required register mode.
8249 (aarch64_expand_sve_const_pred_1): New function.
8250 (aarch64_expand_sve_const_pred): Likewise.
8251 (aarch64_expand_mov_immediate): Build an all-true predicate
8252 if the significant bits of the immediate are all true. Use
8253 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8254 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8255 before register allocation.
8256 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8257 a VNx16BI PTRUE when splitting the memory alternative.
8258 (vec_duplicate<mode>): Update accordingly.
8259 (*pred_cmp<cmp_op><mode>): Rename to...
8260 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8261
8262 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8263
8264 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8265 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8266 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8267 (UNSPEC_PTEST): New unspec.
8268 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8269 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8270 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8271 * config/aarch64/aarch64-sve.md: Add a new section describing the
8272 handling of UNSPEC_PTEST.
8273 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8274 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8275 (ptest_ptrue<mode>): Replace with...
8276 (aarch64_ptest<mode>): ...this new pattern.
8277 (cbranch<mode>4): Update after above changes.
8278 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8279 UNSPEC_PTEST_PTRUE.
8280 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8281 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8282 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8283
8284 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8285
8286 PR lto/91287
8287 * builtins.c (builtin_with_linkage_p): New function.
8288 * builtins.h (builtin_with_linkage_p): New function.
8289 * symtab.c (write_symbol): Remove redundant assert.
8290 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8291 Remove FIXME and use builtin_with_linkage_p.
8292
8293 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8294
8295 PR middle-end/91421
8296 * tree-core.h (function_decl::function_code): Change type to
8297 unsigned int.
8298 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8299 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8300 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8301 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8302 is BUILT_IN_NORMAL.
8303 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8304 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8305 (fndecl_built_in_p): Change the type of the "name" argument to
8306 unsigned int.
8307 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8308 after check for DECL_BUILT_IN_CLASS.
8309 * cgraphclones.c (build_function_decl_skip_args): Use
8310 set_decl_built_in_function.
8311 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8312 * ipa-split.c (split_function): Likewise.
8313 * langhooks.c (add_builtin_function_common): Likewise.
8314 * omp-simd-clone.c (simd_clone_create): Likewise.
8315 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8316 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8317 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8318 DECL_FUNCTION_CODE.
8319 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8320 instead of DECL_FUNCTION_CODE.
8321 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8322 instead of DECL_FUNCTION_CODE.
8323 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8324 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8325 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8326 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8327 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8328 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8329 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8330 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8331 (alpha_gimple_fold_builtin): Likewise.
8332 * config/arc/arc.c (arc_expand_builtin): Likewise.
8333 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8334 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8335 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8336 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8337 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8338 * config/frv/frv.c (frv_expand_builtin): Likewise.
8339 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8340 (gcn_expand_builtin): Likewise.
8341 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8342 (fold_builtin_cpu): Likewise.
8343 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8344 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8345 (ix86_gimple_fold_builtin): Likewise.
8346 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8347 (ia64_expand_builtin): Likewise.
8348 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8349 * config/mips/mips.c (mips_expand_builtin): Likewise.
8350 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8351 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8352 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8353 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8354 * config/pa/pa.c (pa_expand_builtin): Likewise.
8355 * config/pru/pru.c (pru_expand_builtin): Likewise.
8356 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8357 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8358 Likewise.
8359 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8360 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8361 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8362 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8363 (rs6000_builtin_reciprocal): Likewise.
8364 * config/rx/rx.c (rx_expand_builtin): Likewise.
8365 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8366 * config/s390/s390.c (s390_expand_builtin): Likewise.
8367 * config/sh/sh.c (sh_expand_builtin): Likewise.
8368 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8369 (sparc_fold_builtin): Likewise.
8370 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8371 * config/spu/spu.c (spu_expand_builtin): Likewise.
8372 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8373 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8374 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8375 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8376 (xtensa_expand_builtin): Likewise.
8377
8378 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8379
8380 PR middle-end/91421
8381 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8382 before the DECL_FUNCTION_CODE.
8383 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8384 to check for a BUILT_IN_ALLOCA call.
8385 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8386 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8387 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8388 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8389 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8390 for BUILT_IN_NORMAL functions.
8391 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8392 test for BUILT_IN_TM_ABORT.
8393 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8394 to check for a BUILT_IN_STACK_RESTORE call.
8395 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8396 * tree-ssa-threadedge.c
8397 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8398 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8399 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8400 test for a BUILT_IN_NORMAL call instead of a negative test for
8401 an internal function call.
8402
8403 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8404
8405 * tree.h (build_vector_a_then_b): Declare.
8406 * tree.c (build_vector_a_then_b): New function.
8407 * fold-const-call.c (fold_while_ult): Likewise.
8408 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8409 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8410 (aarch64_svpattern): New enum.
8411 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8412 constants through aarch64_expand_mov_immediate.
8413 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8414 than general_operand as the predicate for operand 1.
8415 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8416 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8417 insn_type.
8418 (simd_immediate_info::simd_immediate_info): New overload that
8419 takes a scalar_int_mode and an svpattern.
8420 (simd_immediate_info::u): Add a "pattern" field.
8421 (svpattern_token): New function.
8422 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8423 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8424 (aarch64_sve_move_pred_via_while): New functions.
8425 (aarch64_expand_mov_immediate): Try using
8426 aarch64_sve_move_pred_via_while for predicates that contain N ones
8427 followed by M zeros but that do not correspond to a VLnnn pattern.
8428 (aarch64_sve_pred_valid_immediate): New function.
8429 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8430 with PTRUE and PFALSE.
8431 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8432 forms.
8433
8434 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8435
8436 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8437 flag.
8438 (darwin_override_options): Likewise.
8439 * config/darwin.h: Likewise.
8440 * config/darwin.opt: Likewise.
8441 * config/i386/i386.c (output_pic_addr_const): Likewise.
8442 * config/rs6000/darwin.h: Likewise.
8443 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8444 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8445 ... this TARGET_MACHO_SYMBOL_STUBS.
8446 (FUNCTION_PROFILER):Likewise.
8447 * config/i386/i386.h: Likewise.
8448
8449 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8450
8451 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8452 <case E_V2SImode>: Use vec_extr path for
8453 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8454 <case E_V8QImode>: Ditto.
8455 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8456 Use SWI48 mode iterator. Use %k to output operand 0.
8457 (*mmx_pextrw): New insn pattern.
8458 (*mmx_pextrb): Ditto.
8459 (*mmx_pextrb_zext): Ditto.
8460
8461 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8462
8463 * target.def (libc_has_function, libc_has_fast_function): Improve
8464 documentation strings.
8465 * doc/tm.texi: Regenerate.
8466
8467 2019-08-13 Caroline Tice <cmtice@google.com>
8468
8469 PR other/91396
8470 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8471 vtv_end.o or vtv_end_preinit.o files if !static.
8472
8473 2019-08-13 Olivier Hainque <hainque@adacore.com>
8474
8475 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8476
8477 2019-08-13 Olivier Hainque <hainque@adacore.com>
8478
8479 * rtlanal.c (tablejump_casesi_pattern): New function, to
8480 determine if a tablejump insn is a casesi dispatcher. Extracted
8481 from patch_jump_insn.
8482 * rtl.h (tablejump_casesi_pattern): Declare.
8483 * cfgrtl.c (patch_jump_insn): Use it.
8484 * dwarf2cfi.c (create_trace_edges): Use it.
8485
8486 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8487
8488 PR target/81800
8489 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8490 operand is larger than a long int.
8491
8492 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8493
8494 * machmode.h (opt_mode::else_mode): New function.
8495 (opt_mode::else_blk): Use it.
8496 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8497 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8498 (aarch64_gen_stepped_int_parallel): Likewise.
8499 (aarch64_stepped_int_parallel_p): Likewise.
8500 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8501 argument.
8502 * config/aarch64/aarch64.c
8503 (aarch64_expand_sve_widened_duplicate): Delete.
8504 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8505 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8506 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8507 argument. Use early returns in the !CONST_INT_P handling.
8508 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8509 than handling some inline.
8510 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8511 from...
8512 (aarch64_simd_container_mode): ...here.
8513 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8514 (aarch64_sve_ld1rq_operand_p): New functions.
8515 * config/aarch64/predicates.md (descending_int_parallel)
8516 (aarch64_sve_ld1rq_operand): New predicates.
8517 * config/aarch64/constraints.md (UtQ): New constraint.
8518 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8519 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8520 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8521 (@aarch64_sve_reinterpret<mode>): New expander.
8522 (*aarch64_sve_reinterpret<mode>): New pattern.
8523 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8524 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8525 (*sve_ld1rq<Vesize>): Replace with...
8526 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8527
8528 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8529
8530 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8531 16:12.
8532
8533 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8534
8535 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8536 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8537 (msp430_check_path_for_devices): New.
8538 (parse_devices_csv_1): New.
8539 (parse_devices_csv): New.
8540 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8541 MCU data in devices.csv before using the hard-coded data.
8542 Warn if devices.csv isn't found and the MCU wasn't found in the
8543 hard-coded data either.
8544 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8545 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8546 Search for devices.csv on -I and -L paths.
8547 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8548 msp430_set_driver_var.
8549 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8550 -mdevices-csv-loc=.
8551 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8552 searched for devices.csv.
8553 (mwarn-devices-csv): Document option.
8554
8555 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8556
8557 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8558 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8559 Use a single Dn alternative instead of separate Dz and Dm
8560 alternatives. Use aarch64_output_sve_move_immediate.
8561 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8562 function.
8563 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8564 for predicates too.
8565 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8566 (aarch64_output_ptrue): Delete.
8567
8568 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8569
8570 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8571 INDEX.
8572 (simd_immediate_info::value, simd_immediate_info::step)
8573 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8574 with...
8575 (simd_immediate_info::u): ...this new union.
8576 (simd_immediate_info::simd_immediate_info): Update accordingly.
8577 (aarch64_output_simd_mov_immediate): Likewise.
8578 (aarch64_output_sve_mov_immediate): Likewise.
8579
8580 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8581
8582 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8583 extra_gcc_objs.
8584 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8585 (msp430_select_cpu): New spec function.
8586 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8587 MCU data.
8588 * config/msp430/msp430-devices.c: New file.
8589 * config/msp430/msp430-devices.h: New file.
8590 * config/msp430/msp430.c: Remove msp430_mcu_data.
8591 (msp430_option_override): Use msp430_extract_mcu_data to extract
8592 MCU data.
8593 (msp430_use_f5_series_hwmult): Likewise.
8594 (use_32bit_hwmult): Likewise.
8595 (msp430_no_hwmult): Likewise.
8596 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8597 assembler.
8598 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8599 and -mcpu option.
8600 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8601 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8602 Remove hard-coded MCU multilib data.
8603
8604 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8605
8606 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8607 based on the mode instead of testing properties of it.
8608
8609 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8610
8611 * doc/md.texi: Document the x and y constraints for AArch64.
8612 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8613 (FP_LO8_REGS): New reg_class.
8614 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8615 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8616 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8617 * config/aarch64/predicates.md (aarch64_simd_register): Use
8618 FP_REGNUM_P instead of checking the classes manually.
8619 * config/aarch64/constraints.md (y): New constraint.
8620
8621 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8622
8623 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8624 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8625 * config/aarch64/aarch64-simd.md
8626 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8627 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8628 from the asm template.
8629 * config/aarch64/aarch64-sve.md
8630 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8631 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8632 from the asm template.
8633 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8634 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8635 from the asm template.
8636 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8637
8638 2019-08-13 Martin Liska <mliska@suse.cz>
8639
8640 * value-prof.c (gimple_ic_transform): Add new line.
8641 Print details with MSG_NOTE.
8642
8643 2019-08-13 Martin Liska <mliska@suse.cz>
8644
8645 * doc/invoke.texi: Document automatic detection of jobserver.
8646 * lto-wrapper.c (run_gcc): Detect jobserver always.
8647
8648 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8649
8650 * config/i386/i386-expand.c (ix86_expand_vector_set)
8651 <case E_V2SImode>: Use vec_merge path for
8652 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8653 <case E_V8QImode>: Ditto.
8654 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8655 (*mmx_pinsrb): Ditto.
8656
8657 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8658
8659 PR target/83250
8660 PR target/91340
8661 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8662 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8663 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8664 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8665 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8666
8667 2019-08-12 Richard Biener <rguenther@suse.de>
8668
8669 PR lto/91375
8670 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8671 flag_devirtualize.
8672
8673 2019-08-12 Richard Biener <rguenther@suse.de>
8674
8675 PR driver/91130
8676 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8677 lang_mask option, always use CL_DRIVER.
8678 (get_options_from_collect_gcc_options): Adjust.
8679 (find_and_merge_options): Likewise.
8680 (run_gcc): Likewise.
8681
8682 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8683
8684 * ipa-predicate.c (add_condition): Restore inverted test.
8685
8686 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8687
8688 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8689 (enum omp_clause_device_type_kind): New enum.
8690 (struct tree_omp_clause): Add subcode.device_type_kind.
8691 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8692 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8693 for device_type clause.
8694 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8695 * tree-pretty-print.c (dump_omp_clause): Likewise.
8696
8697 PR target/91408
8698 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8699 vector_operand.
8700
8701 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8702
8703 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8704 handling spilled pseudos.
8705
8706 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8707
8708 PR target/91386
8709 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8710 to preserve the contents of the original insns.
8711
8712 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8713
8714 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8715 (addsi3_compare_op2): Likewise.
8716
8717 2019-08-09 Martin Liska <mliska@suse.cz>
8718
8719 * alias.c (alias_ptr_types_compatible_p): Strengten
8720 type comparison in LTO mode.
8721
8722 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8723
8724 PR middle-end/90313
8725 * tree-tailcall.c (find_tail_calls): Reject calls that might
8726 read from an escaped RESULT_DECL.
8727
8728 2019-08-09 Martin Liska <mliska@suse.cz>
8729
8730 * doc/invoke.texi: Document the option value.
8731 * lto-wrapper.c (run_gcc): Set auto_parallel
8732 only with -flto=auto.
8733
8734 2019-08-09 Martin Liska <mliska@suse.cz>
8735
8736 * opts.c (common_handle_option): Error for an invalid argument
8737 to -flto=.
8738
8739 2019-08-09 Martin Liska <mliska@suse.cz>
8740
8741 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8742 use dump_printf to report optimization.
8743 (sem_variable::merge): Likwise.
8744 (sem_item_optimizer::merge_classes): Use dump_printf to report
8745 ICF hits.
8746
8747 2019-08-09 Martin Liska <mliska@suse.cz>
8748
8749 * value-prof.c (gimple_divmod_fixed_value_transform):
8750 Use dump_printf_loc.
8751 (gimple_mod_pow2_value_transform): Likewise.
8752 (gimple_mod_subtract_transform): Likewise.
8753 (init_node_map): Likewise.
8754 (gimple_ic_transform): Likewise.
8755 (gimple_stringops_transform): Likewise.
8756
8757 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8758
8759 * doc/extend.texi: Add const qualifier to ld intrinsics.
8760
8761 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8762
8763 * config/rs6000/dfp.md (D64_D128): Rename to ...
8764 (DDTD): ... this, throughout.
8765 (dfp_suffix): Rename to ...
8766 (q): ... this, throughout.
8767
8768 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8769
8770 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8771 (dfp_suffix): Ditto.
8772 (adddd3, addtd3): Merge to ...
8773 (add<mode>3 for D64_D128): ... this.
8774 (subdd3, subtd3): Merge to ...
8775 (sub<mode>3 for D64_D128): ... this.
8776 (muldd3, multd3): Merge to ...
8777 (mul<mode>3 for D64_D128): ... this.
8778 (divdd3, divtd3): Merge to ...
8779 (div<mode>3 for D64_D128): ... this.
8780 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8781 (*cmp<mode>_internal1 for D64_D128): ... this.
8782 (ftruncdd2, ftrunctd2): Merge to ...
8783 (ftrunc<mode>2 for D64_D128): ... this.
8784 (fixdddi2, fixtddi2): Merge to ...
8785 (fix<mode>di2 for D64_D128): ... this.
8786
8787 2019-08-08 Jim Wilson <jimw@sifive.com>
8788
8789 PR target/91229
8790 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8791 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8792 Pass into recursive call.
8793 (riscv_flatten_aggregate_argument): New arg. Pass to
8794 riscv_flatten_aggregate_field.
8795 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8796 riscv_flatten_aggregate_argument twice, with false and true as last
8797 arg. Process result twice. Compare results and warn if different.
8798 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8799
8800 2019-08-08 Martin Liska <mliska@suse.cz>
8801
8802 PR bootstrap/91352
8803 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8804 * lto-wrapper.c (jobserver_active_p): Likewise.
8805
8806 2019-08-08 Martin Liska <mliska@suse.cz>
8807
8808 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8809 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8810 (create_version_clone_with_body): Likewise.
8811
8812 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8813
8814 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8815 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8816 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8817 GOVD_EXPLICIT flags.
8818 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8819 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8820 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8821 call install_var_field with mask 11 instead of 3.
8822 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8823 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8824
8825 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8826
8827 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8828 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8829
8830 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8831
8832 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8833 MOVPRFX alternatives. Make the GPR alternatives more expensive
8834 than the FPR ones.
8835
8836 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8837
8838 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8839 Disparage the GPR alternative relative to the FPR one.
8840 Fix handling of 8-bit and 16-bit FPR values.
8841
8842 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8843
8844 * config/aarch64/iterators.md (BITWISEV): Delete.
8845 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8846 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8847 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8848 UNSPEC_FMINNMV, UNSPEC_FMINV.
8849 (bit_reduc_op): Delete.
8850 (sve_int_op): New int attribute.
8851 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8852 UNSPEC_FMINNMV, UNSPEC_FMINV.
8853 * config/aarch64/aarch64-sve.md
8854 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8855 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8856 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8857 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8858 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8859 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8860 new patterns.
8861 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8862 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8863 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8864 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8865 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8866 new patterns.
8867
8868 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8869
8870 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8871 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8872 (fms<mode>4, *fms<mode>4): Replace with...
8873 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8874 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8875 Use unspecs instead of rtx codes.
8876 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8877 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8878
8879 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8880
8881 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8882 int iterator.
8883 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8884 * config/aarch64/aarch64-sve.md
8885 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8886 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8887 use a single unspec for the rhs.
8888 (*<su><maxmin><mode>3): Delete.
8889 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8890
8891 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8892
8893 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8894 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8895 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8896 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8897 (optab, sve_fp_op): Handle them.
8898 (SVE_FP_UNARY): Delete.
8899 (optab): Remove sqrt entry.
8900 (sve_fp_op): Remove neg, abs and sqrt entries.
8901 (SVE_COND_FP_UNARY): New int iterator.
8902 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8903 (*<frint_pattern><mode>2): Delete.
8904 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8905 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8906 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8907 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8908
8909 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8910
8911 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8912
8913 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8914
8915 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8916 (UNSPEC_COND_FADD): ...this.
8917 (UNSPEC_COND_SUB): Rename to...
8918 (UNSPEC_COND_FSUB): ...this.
8919 (UNSPEC_COND_MUL): Rename to...
8920 (UNSPEC_COND_FMUL): ...this.
8921 (UNSPEC_COND_DIV): Rename to...
8922 (UNSPEC_COND_FDIV): ...this.
8923 (UNSPEC_COND_MAX): Rename to...
8924 (UNSPEC_COND_FMAXNM): ...this.
8925 (UNSPEC_COND_MIN): Rename to...
8926 (UNSPEC_COND_FMINNM): ...this.
8927 (UNSPEC_COND_LT): Rename to...
8928 (UNSPEC_COND_FCMLT): ...this.
8929 (UNSPEC_COND_LE): Rename to...
8930 (UNSPEC_COND_FCMLE): ...this.
8931 (UNSPEC_COND_EQ): Rename to...
8932 (UNSPEC_COND_FCMEQ): ...this.
8933 (UNSPEC_COND_NE): Rename to...
8934 (UNSPEC_COND_FCMNE): ...this.
8935 (UNSPEC_COND_GE): Rename to...
8936 (UNSPEC_COND_FCMGE): ...this.
8937 (UNSPEC_COND_GT): Rename to...
8938 (UNSPEC_COND_FCMGT): ...this.
8939 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8940 (sve_fp_op_rev): Update accordingly.
8941 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8942
8943 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8944
8945 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8946 banner comments.
8947 * config/aarch64/check-sve-md.awk: New file.
8948 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8949 (insn-conditions.md): Depend on it.
8950
8951 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8952
8953 PR target/91385
8954 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8955 (*negsi2_cmpz_zext): Ditto.
8956
8957 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8958
8959 * config/aarch64/iterators.md (commutative): Remove.
8960
8961 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8962
8963 PR driver/91130
8964 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8965 processing COLLECT_GCC_OPTIONS.
8966 (run_gcc): Likewise.
8967
8968 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8969
8970 PR tree-optimization/91109
8971 * lra-remat.c (update_scratch_ops): Remove assignment of the
8972 hard register.
8973
8974 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8975
8976 * data-streamer.h (streamer_write_poly_uint64): Declare.
8977 (streamer_read_poly_uint64): Likewise.
8978 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8979 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8980 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8981 (add_condition): Take a poly_int64 size.
8982 * ipa-predicate.c (add_condition): Likewise.
8983 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8984 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8985 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8986 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8987 condition::size as a poly_int64.
8988 (unmodified_parm_1): Take a poly_int64 size pointer.
8989 (unmodified_parm): Likewise.
8990 (unmodified_parm_or_parm_agg_item): Likewise.
8991 (set_cond_stmt_execution_predicate): Update accordingly.
8992 (set_switch_stmt_execution_predicate): Likewise.
8993 (will_be_nonconstant_expr_predicate): Likewise.
8994 (will_be_nonconstant_predicate): Likewise.
8995 (inline_read_section): Stream condition::size as a poly_int.
8996 (ipa_fn_summary_write): Likewise.
8997
8998 2019-08-07 Martin Liska <mliska@suse.cz>
8999
9000 * fold-const.c (twoval_comparison_p): Replace int
9001 with bool as a return type.
9002 (simple_operand_p): Likewise.
9003 (operand_equal_p): Replace int with bool as a return type.
9004 * fold-const.h (operand_equal_p): Likewise.
9005
9006 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9007
9008 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
9009 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
9010 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9011 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
9012 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
9013 * tree-pretty-print.c (dump_omp_clause): Likewise.
9014 * tree-nested.c (convert_nonlocal_omp_clauses,
9015 convert_local_omp_clauses): Likewise.
9016 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9017 Likewise.
9018 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
9019 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
9020 clause with array or reference to array types, no matter what type
9021 except for reference it has.
9022
9023 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
9024
9025 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
9026
9027 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
9028
9029 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
9030 (arch_canonicalize): Support rv32g and rv64g and fix error
9031 handling.
9032
9033 2019-08-06 Martin Liska <mliska@suse.cz>
9034
9035 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
9036 and DECL_IS_OPERATOR_DELETE_P.
9037
9038 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9039
9040 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
9041 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
9042 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
9043 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
9044 (gimplify_omp_for): Don't do C++ random access iterator clause
9045 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
9046 don't predetermine the artificial iterator in case of C++ random
9047 access iterators as lastprivate, but private. For OMP_LOOP, force
9048 bind expr around simd body and force for_pre_body before the
9049 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
9050 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
9051 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
9052 diff var of C++ random access iterators. Handle
9053 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
9054 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
9055 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
9056 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
9057 * omp-low.c (lower_rec_input_clauses): For
9058 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
9059 variables instead of default constructing them.
9060 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
9061 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
9062 is_taskloop_ctx check from the assert to the guarding condition.
9063
9064 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
9065
9066 * config/riscv/multilib-generator: (canonical_order): New.
9067 (arch_canonicalize): Dito.
9068 Apply arch_canonicalize for alts.
9069
9070 2019-08-05 Martin Sebor <msebor@redhat.com>
9071
9072 * doc/extend.texi (Common Variable Attributes): Document alias
9073 attribute.
9074
9075 2019-08-05 Marek Polacek <polacek@redhat.com>
9076
9077 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
9078 * doc/invoke.texi: Document -Wcomma-subscript.
9079
9080 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9081
9082 * tree-core.h (tree_function_decl): Make function_code an
9083 independent field. Group the remaining bitfields into bytes
9084 and move decl_type so that it contines to be at a byte boundary.
9085 Leave 12 bits for future expansion.
9086
9087 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9088
9089 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
9090 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
9091 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
9092 IFN_MASK_STORE.
9093
9094 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9095
9096 * gimple.h (gimple_move_vops): Declare.
9097 * gimple.c (gimple_move_vops): New function
9098 * gimple-fold.c (replace_call_with_call_and_fold)
9099 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
9100 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9101 (gimple_fold_call): Use it.
9102 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9103 * tree-call-cdce.c (use_internal_fn): Likewise.
9104 * tree-if-conv.c (predicate_load_or_store): Likewise.
9105 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9106 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9107 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9108 (update_call_from_tree): Likewise.
9109 * tree-vect-stmts.c (vectorizable_load): Likewise.
9110 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9111
9112 2019-08-05 Martin Liska <mliska@suse.cz>
9113
9114 PR c++/91334
9115 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9116 with not arguments.
9117 (eliminate_unnecessary_stmts): Likewise.
9118
9119 2019-08-05 Richard Biener <rguenther@suse.de>
9120
9121 PR middle-end/91169
9122 * fold-const.c (get_array_ctor_element_at_index): Create
9123 offset_ints according to the sign of the index type and treat
9124 that as signed if it is obviously so.
9125
9126 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9127
9128 PR target/91341
9129 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9130 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9131 _mm256_storeu2_m128i): New function.
9132
9133 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9134
9135 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9136 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9137
9138 2019-08-05 Alan Modra <amodra@gmail.com>
9139
9140 PR target/91349
9141 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9142 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9143
9144 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9145
9146 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9147 bug that was fixed in Tcl 8.6.1.
9148
9149 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9150
9151 * config/rs6000/future.md: New file.
9152 * config/rs6000/rs6000.md: Include future.md.
9153 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9154
9155 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9156
9157 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9158 check to use targetm.slow_unaligned_access instead.
9159
9160 * function.c (assign_param_data_one): Remove unused data members.
9161
9162 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9163
9164 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9165 build_distinct_type_copy.
9166 (simd_clone_adjust_argument_types): Ditto.
9167 (simd_clone_adjust): Call build_distinct_type_copy here.
9168 (expand_simd_clones): Ditto.
9169
9170 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9171
9172 PR target/91201
9173 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9174
9175 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9176
9177 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9178 from 'const void *'.
9179 (sort_locs_in_loop_postorder_cmp): Likewise.
9180
9181 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9182
9183 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9184 (hot-bb-count-ws-permille): Likewise.
9185 (hot-bb-frequency-fraction): Likewise.
9186 (unlikely-bb-count-fraction): Likewise.
9187 * params.def (hot-bb-count-fraction): Rework description.
9188 (hot-bb-count-ws-permille): Likewise.
9189 (hot-bb-frequency-fraction): Likewise.
9190 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9191 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9192
9193 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9194
9195 PR target/91323
9196 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9197 Return false.
9198
9199 2019-08-02 Richard Biener <rguenther@suse.de>
9200
9201 * vec.h (vec::sort): Add gcc_qsort_r support.
9202 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9203 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9204 to gcc_qsort_r style callback.
9205 (sort_locs_in_loop_postorder_cmp): Likewise.
9206 (analyze_memory_references): Use gcc_sort_r interfaces.
9207 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9208
9209 2019-08-02 Martin Liska <mliska@suse.cz>
9210
9211 PR lto/91313
9212 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9213 to detect working job server.
9214 (driver::detect_jobserver): Test whether jobserver
9215 is active from GCC driver. That will prevent situation where
9216 GCC is invoked from a LD plugin and the linker already uses
9217 file descriptors suggested by make. That leads to a wrong
9218 detection.
9219 * gcc.h (driver): Add detect_jobserver.
9220 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9221 not scanning for --jobserver-auth prefix.
9222
9223 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9224
9225 PR tree-optimization/91201
9226 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9227 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9228 extraction.
9229
9230 2019-08-01 Martin Sebor <msebor@redhat.com>
9231
9232 PR c++/90947
9233 * tree.c (type_initializer_zero_p): Define.
9234 * tree.h (type_initializer_zero_p): New function.
9235
9236 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9237
9238 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9239
9240 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9241
9242 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9243 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9244 * predict.c (maybe_hot_count_p): Likewise.
9245 (maybe_hot_bb_p): Tweak comment.
9246 (maybe_hot_edge_p): Likewise.
9247 (probably_never_executed): Likewise. Minor tweak.
9248 (probably_never_executed_bb_p): Likewise.
9249 (unlikely_executed_edge_p): Likewise.
9250 (probably_never_executed_edge_p): Likewise.
9251 (optimize_function_for_size_p): Likewise.
9252 (optimize_function_for_speed_p): Likewise.
9253 (function_optimization_type): Likewise.
9254 (optimize_bb_for_size_p): Likewise.
9255 (optimize_bb_for_speed_p): Likewise.
9256 (bb_optimization_type): Likewise.
9257 (optimize_edge_for_size_p): Likewise.
9258 (optimize_edge_for_speed_p): Likewise.
9259 (optimize_insn_for_size_p): Likewise.
9260 (optimize_insn_for_speed_p): Likewise.
9261 (optimize_loop_for_size_p): Likewise.
9262 (optimize_loop_for_speed_p): Likewise.
9263 (optimize_loop_nest_for_speed_p): Likewise.
9264 (optimize_loop_nest_for_size_p): Likewise.
9265 (predictable_edge_p): Likewise.
9266 (handle_missing_profiles): Minor tweak.
9267
9268 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9269
9270 * config/rs6000/predicates.md (pcrel_external_address): Update
9271 comment.
9272
9273 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9274
9275 PR target/85693
9276 * config/i386/mmx.md (usadv8qi): New expander.
9277
9278 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9279
9280 PR c++/90590
9281 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9282 with reserved names that are in a system header.
9283
9284 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9285
9286 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9287 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9288 (*vec_extractv2si_0_zext): Ditto.
9289 (*vec_extractv2si_1): Add (rm,x) alternative.
9290 (*vec_extractv2si_1_zext): New insn pattern.
9291 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9292 insn constraint.
9293
9294 2019-08-01 Richard Biener <rguenther@suse.de>
9295
9296 * domwalk.c (bb_postorder): Remove static variable.
9297 (cmp_bb_postorder): Adjust.
9298 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9299 (dom_walker::walk): Adjust.
9300
9301 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9302
9303 * sort.cc (sort_r_ctx): New struct.
9304 (reorder23): Make templated on context type.
9305 (reorder45): Ditto.
9306 (cmp1): Ditto. Adjust signature.
9307 (netsort): Ditto.
9308 (mergesort): Ditto.
9309 [CHECKING_P] (cmp2to3): New static function. Use it...
9310 (gcc_qsort) [CHECKING_P]: ...here.
9311 (gcc_sort_r): New function.
9312 * system.h (sort_r_cmp_fn): New function typedef.
9313 (qsort_chk): Adjust signature.
9314 (gcc_sort_r): Declare.
9315 * vec.c (qsort_chk_error): Adjust.
9316 (qsort_chk): Adjust.
9317
9318 2019-08-01 Richard Biener <rguenther@suse.de>
9319
9320 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9321 (compute_antic): Localize it here.
9322
9323 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9324
9325 * common/config/riscv/riscv-common.c: Check -march string ends
9326 with null.
9327
9328 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9329
9330 * ipa-devirt.c (type_warning_cmp): Make static.
9331 (decl_warning_cmp): Ditto.
9332
9333 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9334
9335 PR target/91050
9336 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9337 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9338 use of deleted rs6000_dejagnu_cpu_index variable.
9339 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9340 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9341 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9342 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9343 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9344 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9345
9346 2019-07-31 Richard Biener <rguenther@suse.de>
9347
9348 PR tree-optimization/91280
9349 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9350 Decompose MEM_REF manually for offset handling.
9351
9352 2019-07-31 Richard Biener <rguenther@suse.de>
9353
9354 PR tree-optimization/91293
9355 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9356 of reduction stmts.
9357
9358 2019-07-31 Matt Thomas <matt@3am-software.com>
9359 Nick Hudson <nick@nthcliff.demon.co.uk>
9360 Matthew Green <mrg@eterna.com.au>
9361 Maya Rashish <coypu@sdf.org>
9362
9363 * config.gcc (hppa*-*-netbsd*): New target.
9364 * config/pa/pa-netbsd.h: New file.
9365 * config/pa/pa32-netbsd.h: New file.
9366
9367 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9368
9369 PR tree-optimization/91201
9370 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9371
9372 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9373
9374 * config/gcn/gcn-valu.md
9375 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9376 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9377 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9378 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9379 struct ilist. Add nops for delayeduse insns.
9380 * config/gcn/gcn.md (delayeduse): New attribute.
9381 (*movbi): Remove s_waitcnt from stores.
9382 (*mov<mode>_insn): Likewise.
9383 (*movti_insn): Likewise. Add delayeduse attribute.
9384 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9385 (atomic_store<mode>): Remove or adjust s_waitcnt.
9386
9387 2019-07-31 Richard Biener <rguenther@suse.de>
9388
9389 * vr-values.h (vr_values::swap_vr_value): New.
9390 (vr_values::free_value_range): likewise.
9391 * vr-values.c (vr_values::swap_vr_value): Implement.
9392 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9393 Do not return a range or take a var.
9394 (evrp_range_analyzer::stack): Change back to recording a non-const
9395 value_range *.
9396 * gimple-ssa-evrp-analyze.c
9397 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9398 value-range.
9399 (evrp_range_analyzer::pop_to_marker): Adjust.
9400 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9401 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9402 no longer needed value-range.
9403
9404 2019-07-31 Martin Liska <mliska@suse.cz>
9405
9406 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9407 have size and (or) alignment as 2nd and later arguments.
9408 Mark all of them as necessary.
9409
9410 2019-07-31 Richard Biener <rguenther@suse.de>
9411
9412 PR tree-optimization/91178
9413 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9414 Use tail-recursion.
9415
9416 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9417
9418 PR tree-optimization/91201
9419 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9420 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9421 TARGET_AVX512F.
9422 (reduc_plus_scal_<mode>): Improve formatting by introducing
9423 a temporary.
9424
9425 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9426
9427 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9428 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9429 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9430 (aarch64_init_tme_builtins): New.
9431 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9432 (aarch64_expand_builtin_tme): New.
9433 (aarch64_expand_builtin): Handle TME builtins.
9434 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9435 __ARM_FEATURE_TME when enabled.
9436 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9437 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9438 (TARGET_TME): New.
9439 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9440 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9441 UNSPECV_TCANCEL.
9442 (tstart, ttest, tcommit, tcancel): New instructions.
9443 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9444 (__tcancel, __ttest): New.
9445 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9446 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9447 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9448 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9449 * config/arm/types.md: Add new tme type attr.
9450 * doc/invoke.texi: Document "tme".
9451
9452 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9453
9454 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9455 warn_unused_result attribute.
9456 (cmse_check_address_range): Add warn_unused_result attribute.
9457
9458 2019-07-31 Richard Biener <rguenther@suse.de>
9459
9460 PR tree-optimization/91257
9461 * tree-vrp.c (union_ranges): Unify equality and less tests
9462 by using compare_values. Re-order cheap tests first.
9463
9464 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9465
9466 PR middle-end/91301
9467 * gimplify.c (gimplify_omp_for): If for class iterator on
9468 distribute parallel for there is no data sharing clause
9469 on inner_for_stmt, look for private clause on combined
9470 parallel too and if found, move it to inner_for_stmt.
9471
9472 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9473
9474 * lra-int.h (lra_operand_data): Remove early_clobber field.
9475 (lra_insn_reg): Likewise.
9476 * lra.c (debug_operand_data): Update accordingly.
9477 (setup_operand_alternative): Likewise.
9478 (new_insn_reg): Likewise. Remove early_clobber parameter.
9479 (collect_non_operand_hard_regs): Update call accordingly.
9480 Don't assign to lra_insn_reg::early_clobber.
9481 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9482 and update calls to new_insn_reg.
9483 (lra_update_insn_regno_info): Update calls accordingly.
9484 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9485 alternative number as a parameter and test whether the operand
9486 is earlyclobbered in that particular alternative.
9487 (process_alt_operands): Update call accordingly. Use per-alternative
9488 checks for earyclobber here too.
9489 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9490 against zero for IRA_UNKNOWN_ALT.
9491
9492 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9493
9494 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9495
9496 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9497
9498 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9499 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9500
9501 2019-07-30 Martin Liska <mliska@suse.cz>
9502
9503 PR ipa/89330
9504 * cgraph.c (cgraph_edge::make_direct): Use
9505 edge->indirect_unknown_callee as edge->resolve_speculation can
9506 deallocate edge which is this pointer.
9507
9508 2019-07-30 Richard Biener <rguenther@suse.de>
9509
9510 PR tree-optimization/91257
9511 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9512
9513 2019-07-30 Martin Liska <mliska@suse.cz>
9514
9515 * doc/invoke.texi: Document new behavior.
9516 * lto-wrapper.c (cpuset_popcount): New function
9517 is a copy of libgomp/config/linux/proc.c.
9518 (init_num_threads): Likewise.
9519 (run_gcc): Automatically detect core count for -flto.
9520 (jobserver_active_p): New function.
9521
9522 2019-07-30 Richard Biener <rguenther@suse.de>
9523
9524 PR tree-optimization/91257
9525 * bitmap.h (bitmap_ior_into_and_free): Declare.
9526 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9527 whether to add the unliked element to the freelist.
9528 (bitmap_list_insert_element_after): Add defaulted param for
9529 an already allocated element.
9530 (bitmap_ior_into_and_free): New function.
9531 * tree-ssa-structalias.c (condense_visit): Reduce the
9532 ponts-to and edge bitmaps of the SCC members in a
9533 logarithmic fashion rather than all to one.
9534
9535 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9536
9537 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9538 parameter. When nonnull, make sure that the addition or subtraction
9539 has the same condition.
9540 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9541 for CFN_COND_MUL too.
9542
9543 2019-07-30 Richard Biener <rguenther@suse.de>
9544
9545 PR tree-optimization/91291
9546 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9547 constant values.
9548
9549 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9550
9551 PR middle-end/91216
9552 * omp-low.c (global_nonaddressable_vars): New variable.
9553 (use_pointer_for_field): For global decls, if they are non-addressable,
9554 remember it in the global_nonaddressable_vars bitmap, if they are
9555 addressable and in the global_nonaddressable_vars bitmap, ignore their
9556 TREE_ADDRESSABLE bit.
9557 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9558 vars in global_nonaddressable_vars bitmap.
9559 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9560
9561 PR target/91150
9562 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9563 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9564 comparison to unsigned HOST_WIDE_INT before shifting it left.
9565
9566 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9567
9568 * config/i386/i386.md (movstrict<mode>): Use register_operand
9569 predicate for operand 0. Add expander condition. Assert that
9570 operand 0 is a SUBREG RTX.
9571 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9572 Update operand constraints and insn condition.
9573 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9574 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9575 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9576 Update operand 0 constraints.
9577 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9578
9579 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9580
9581 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9582 when -m{code,data}-region are used without -mlarge.
9583 * config/msp430/msp430.c (msp430_option_override): Error when a
9584 non-default code or data region is used without -mlarge.
9585 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9586 attributes when they are used without -mlarge.
9587
9588 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9589
9590 PR target/70320
9591 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9592
9593 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9594
9595 PR middle-end/91242
9596 * wide-int.h (generic_wide_int::sext_elt): New function.
9597 * inchash.h (hash::add_wide_int): Use it instead of elt.
9598
9599 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9600
9601 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9602 CODE_FOR_arm_##.
9603 * config/arm/arm.md (<crc_variant>): Rename to...
9604 (arm_<crc_variant>): ... This.
9605 (<cdp>): Rename to...
9606 (arm_<cdp>): ... This.
9607 (<ldc>): Rename to...
9608 (arm_<ldc>): ... This.
9609 (<stc>): Rename to...
9610 (arm_<stc>): ... This.
9611 (<mcr>): Rename to...
9612 (arm_<mcr>): ... This.
9613 (<mrc>): Rename to...
9614 (arm_<mrc>): ... This.
9615 (<mcrr>): Rename to...
9616 (arm_<mcrr>): ... This.
9617 (<mrrc>): Rename to...
9618 (arm_<mrrc>): ... This.
9619
9620 2019-07-29 Richard Biener <rguenther@suse.de>
9621
9622 PR tree-optimization/91257
9623 * tree-ssa-sccvn.h (struct vn_avail): New.
9624 (struct vn_ssa_aux): Add avail member.
9625 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9626 member, add m_avail_freelist one.
9627 (rpo_elim::~rpo_elim): Remove.
9628 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9629 data structure.
9630 (rpo_elim::eliminate_push_avail): Likewise.
9631 (do_unwind): Likewise.
9632 (do_rpo_vn): Likewise.
9633
9634 2019-07-29 Richard Biener <rguenther@suse.de>
9635
9636 PR tree-optimization/91257
9637 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9638 most cases, instead call compare_values which handles the
9639 symbolic ranges we handle specially.
9640 (compare_values_warnv): Do not call operand_less_p but open-code
9641 the effective fold calls. Avoid converting so much.
9642
9643 2019-07-29 Martin Liska <mliska@suse.cz>
9644
9645 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9646 remove LHS of operator new call. It's handled latter.
9647
9648 2019-07-29 Richard Biener <rguenther@suse.de>
9649
9650 PR tree-optimization/91267
9651 * vr-values.c (vr_values::update_value_range): Add early return
9652 for effectively VARYING lattice entry.
9653
9654 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9655
9656 PR debug/86638
9657 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9658 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9659 necessary if keep_all_vdefs_p is true.
9660 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9661 that keep_all_vdefs_p is false.
9662 (mark_all_reaching_defs_necessary): Likewise.
9663 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9664
9665 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9666
9667 * common.opt (Og): Change the initial value of flag_dse to 0.
9668 * opts.c (default_options_table): Move OPT_ftree_dse from
9669 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9670 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9671 entry before the OPT_ftree_sra entry.
9672 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9673 of flags disabled by Og.
9674
9675 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9676
9677 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9678 variables for -Og.
9679
9680 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9681
9682 * doc/sourcebuild.texi (check-function-bodies): Document.
9683
9684 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9685
9686 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9687 VEC_DUPLICATE of a fixed-length vector even if the result
9688 is variable-length. Likewise fold a duplicate of a
9689 variable-length vector if the variable-length vector is
9690 itself a duplicate of a fixed-length sequence.
9691 (test_vector_ops_duplicate): Test more cases.
9692
9693 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9694
9695 * vector-builder.h (vector_builder): Add a shape template parameter.
9696 (vector_builder::new_unary_operation): New function, generalizing
9697 the old tree_vector_builder function.
9698 (vector_builder::new_binary_operation): Likewise.
9699 (vector_builder::binary_encoded_nelts): Likewise.
9700 * int-vector-builder.h (int_vector_builder): Update template
9701 parameters to vector_builder.
9702 (int_vector_builder::shape_nelts): New function.
9703 * rtx-vector-builder.h (rtx_vector_builder): Update template
9704 parameters to vector_builder.
9705 (rtx_vector_builder::shape_nelts): New function.
9706 (rtx_vector_builder::nelts_of): Likewise.
9707 (rtx_vector_builder::npatterns_of): Likewise.
9708 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9709 * tree-vector-builder.h (tree_vector_builder): Update template
9710 parameters to vector_builder.
9711 (tree_vector_builder::shape_nelts): New function.
9712 (tree_vector_builder::nelts_of): Likewise.
9713 (tree_vector_builder::npatterns_of): Likewise.
9714 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9715 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9716 (tree_vector_builder::new_binary_operation): Delete.
9717 (tree_vector_builder::binary_encoded_nelts): Likewise.
9718 * simplify-rtx.c: Include rtx-vector-builder.h.
9719 (distributes_over_addition_p): New function.
9720 (simplify_const_unary_operation)
9721 (simplify_const_binary_operation): Generalize handling of vector
9722 constants to include variable-length vectors.
9723 (test_vector_ops_series): Add more tests.
9724
9725 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9726
9727 PR lto/91222
9728 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9729 than INDENTIFIER_POINTER.
9730
9731 2019-07-28 Martin Liska <mliska@suse.cz>
9732
9733 PR ipa/89330
9734 * cgraph.c (symbol_table::create_edge): Always allocate
9735 a cgraph_edge.
9736 (symbol_table::free_edge): Store summary_id to
9737 edge_released_summary_ids if != -1;
9738 * cgraph.h (NEXT_FREE_NODE): Remove.
9739 (SET_NEXT_FREE_NODE): Likewise.
9740 (NEXT_FREE_EDGE): Likewise.
9741 (symbol_table::release_symbol): Store summary_id to
9742 cgraph_released_summary_ids if != -1;
9743 (symbol_table::allocate_cgraph_symbol): Always allocate
9744 a cgraph_node.
9745
9746 2019-07-28 Alan Modra <amodra@gmail.com>
9747
9748 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9749 gen_sibcall.
9750
9751 2019-07-28 Alan Modra <amodra@gmail.com>
9752
9753 PR target/91135
9754 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9755 define.
9756 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9757 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9758 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9759
9760 2019-07-28 Alan Modra <amodra@gmail.com>
9761
9762 PR target/91050
9763 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9764 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9765 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9766 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9767 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9768 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9769 in asm_default spec.
9770 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9771 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9772
9773 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9774
9775 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9776
9777 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9778
9779 PR target/89517
9780 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9781 * config/aarch64/aarch64-option-extensions.def: Add new comments
9782 and restore easier to read options.
9783
9784 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9785
9786 * convert.c (convert_to_real_1): Move part of conversion code...
9787 * match.pd: ...To here.
9788
9789 2019-07-26 Martin Jambor <mjambor@suse.cz>
9790
9791 PR ipa/89330
9792 * ipa-inline-transform.c (check_speculations_1): New function.
9793 (push_all_edges_in_set_to_vec): Likewise.
9794 (check_speculations): Use check_speculations_1, new parameter
9795 new_edges.
9796 (inline_call): Pass new_edges to check_speculations.
9797 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9798 NULL.
9799 (speculation_useful_p): Early return true if edge is inlined, remove
9800 later checks for inline_failed.
9801
9802 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9803
9804 PR rtl-optimization/91223
9805 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9806 matching with INOUT operand.
9807
9808 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9809
9810 * stmt.c (expand_case): Try to narrow the index type if it's larger
9811 than a word. Tidy up.
9812
9813 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9814
9815 * cif-code.def (NEVER_CALL): New code.
9816 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9817 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9818
9819 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9820
9821 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9822 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9823
9824 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9825
9826 * ipa-devirt.c (add_type_duplicate): Fix return value.
9827
9828 2019-07-25 Richard Biener <rguenther@suse.de>
9829
9830 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9831 type parameter and use it instead of guessing expression
9832 type from the first operand.
9833 (extract_range_from_binary_expr): Pass expr_type down.
9834
9835 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9836
9837 * config/arm/arm.md (SATrev): Change to code attribute.
9838 (*satsi_<SAT:code>): Adjust for the above.
9839 (*satsi_<SAT:code>_shift): Likewise.
9840
9841 2019-07-25 Richard Biener <rguenther@suse.de>
9842
9843 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9844 Make value_range * temporary const.
9845 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9846 Likewise.
9847 (evrp_range_analyzer::record_ranges_from_): Likewise.
9848 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9849 deal with having recorded a const one.
9850 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9851 Return a const value_range *.
9852 (evrp_range_analyzer::pop_value_range): Likewise.
9853 (evrp_range_analyzer::stack): Record const value_range *s.
9854 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9855 Adjust.
9856 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9857 (format_integer): Likewise.
9858 (sprintf_dom_walker::handle_gimple_call): Likewise.
9859 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9860 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9861 (vrp_prop::get_value_range): Adjust.
9862 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9863 modifying the lattice in-place.
9864 (vrp_prop::visit_stmt): Likewise.
9865 * vr-values.c (vr_values::get_lattice_entry): New private method.
9866 (vr_values::get_value_range): Wrap it and return a const
9867 value_range *.
9868 (vr_values::set_def_to_varying): New.
9869 (vr_values::set_defs_to_varying): Use it.
9870 (vr_values::update_value_range): Likewise.
9871 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9872 (values::op_with_constant_singleton_va): Likewise.
9873 (vr_values::extract_range_for_var_from_co): Likewise.
9874 (vr_values::extract_range_from_ssa_name): Likewise.
9875 (vr_values::extract_range_from_cond_expr): Likewise.
9876 (vr_values::extract_range_basic): Likewise.
9877 (compare_ranges): Take const value_range *, adjust.
9878 (compare_range_with_value): Likewise.
9879 (vrp_valueize): Adjust.
9880 (vrp_valueize_1): Likewise.
9881 (vr_values::get_vr_for_comparison): Return a const value_range *.
9882 (vr_values::compare_name_with_value): Adjust.
9883 (vr_values::compare_names): Likewise.
9884 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9885 Likewise.
9886 (vr_values::vrp_evaluate_conditional): Likewise.
9887 (find_case_label_ranges): Take a const value_range *.
9888 (vr_values::vrp_visit_switch_stmt): Adjust.
9889 (vr_values::extract_range_from_phi_node): Likewise.
9890 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9891 (vr_values::simplify_abs_using_ranges): Likewise.
9892 (test_for_singularity): Take a const value_range *.
9893 (range_fits_type_p): Likewise.
9894 (vr_values::simplify_cond_using_ranges_1): Adjust.
9895 (vr_values::simplify_cond_using_ranges_2): Likewise.
9896 (vr_values::simplify_switch_using_ranges): Likewise.
9897 (vr_values::simplify_float_conversion_usi): Likewise.
9898 (vr_values::two_valued_val_range_p): Likewise.
9899 * vr-values.h (vr_values::get_value_range): Return a const
9900 value_range *.
9901 (vr_values::set_def_to_varying): New.
9902 (vr_values::get_lattice_entry): New private method.
9903 (vr_values::get_vr_for_comparison): Return a const value_range *.
9904
9905 2019-07-25 Martin Liska <mliska@suse.cz>
9906 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9907
9908 PR c++/23383
9909 * common.opt: Add -fallocation-dce
9910 * gimple.c (gimple_call_operator_delete_p): New.
9911 * gimple.h (gimple_call_operator_delete_p): Likewise.
9912 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9913 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9914 DECL_IS_OPERATOR_DELETE_P.
9915 (mark_all_reaching_defs_necessary_1): Likewise.
9916 (propagate_necessity): Likewise.
9917 (eliminate_unnecessary_stmts): Handle
9918 gimple_call_operator_delete_p.
9919 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9920 Add packing of OPERATOR_DELETE.
9921 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9922 Similarly here.
9923 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9924 (DECL_SET_IS_OPERATOR_DELETE): New.
9925 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9926
9927 2019-07-25 Martin Liska <mliska@suse.cz>
9928
9929 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9930 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9931 * coverage.c (coverage_begin_function): Likewise.
9932 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9933 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9934 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9935 (sem_item::hash_referenced_symbol_properties): Likewise.
9936 * lto-streamer-out.c (hash_tree): Likewise.
9937 * predict.c (expr_expected_value_1): Likewise.
9938 * tree-inline.c (expand_call_inline): Likewise.
9939 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9940 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9941 * tree-core.h (enum function_decl_type): New enum.
9942 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9943 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9944 (set_function_decl_type): Likewise.
9945 (DECL_IS_OPERATOR_NEW_P): New.
9946 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9947 (DECL_LAMBDA_FUNCTION): Likewise.
9948 (DECL_LAMBDA_FUNCTION_P): Likewise.
9949 (DECL_IS_OPERATOR_NEW): Remove.
9950 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9951
9952 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9953
9954 * ipa-profile.c (get_most_common_single_value): Use
9955 get_nth_most_common_value.
9956 * profile.c (sort_hist_value): New function.
9957 (compute_value_histograms): Call sort_hist_value to sort the
9958 values after loading from disk.
9959 * value-prof.c (get_most_common_single_value): Rename to ...
9960 get_nth_most_common_value. Add input params n, return
9961 the n_th value and count.
9962 (gimple_divmod_fixed_value_transform): Use
9963 get_nth_most_common_value.
9964 (gimple_ic_transform): Likewise.
9965 (gimple_stringops_transform): Likewise.
9966 * value-prof.h (get_most_common_single_value): Add input params
9967 n, default to 0.
9968
9969 2019-07-25 Richard Biener <rguenther@suse.de>
9970
9971 PR tree-optimization/91236
9972 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9973 size of CONSTRUCTOR write. Fix buffer size we pass to
9974 native_encode_expr.
9975
9976 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9977
9978 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9979 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9980 r273773.
9981
9982 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9983
9984 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9985 explicitly disabled with --disable-initfini-array.
9986
9987 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9988
9989 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9990 if-exists.
9991
9992 2019-07-24 Martin Sebor <msebor@redhat.com>
9993
9994 PR tree-optimization/91183
9995 PR tree-optimization/86688
9996 * builtins.c (compute_objsize): Handle MEM_REF.
9997 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9998 (get_min_string_length): Remove.
9999 (count_nonzero_bytes): New function.
10000 (handle_char_store): Rename...
10001 (handle_store): to this. Handle multibyte stores via integer types.
10002 (strlen_check_and_optimize_stmt): Adjust conditional and the called
10003 function name.
10004
10005 2019-07-24 Martin Sebor <msebor@redhat.com>
10006
10007 PR driver/80545
10008 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
10009 (diagnostic_report_diagnostic): Same.
10010 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
10011 (diagnostic_context::lang_mask): New data member.
10012 * ipa-pure-const.c (suggest_attribute): Use
10013 lang_hooks.option_lang_mask ().
10014 * opts-common.c (option_enabled): Handle new argument.
10015 (get_option_state): Pass an additional argument.
10016 * opts.c (print_filtered_help): Print supported languages for
10017 unsupported options. Adjust printing of current state.
10018 * opts.h (option_enabled): Add argument.
10019 * toplev.c (print_switch_values): Use lang_mask.
10020 (general_init): Set global_dc->lang_mask.
10021
10022 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10023
10024 PR bootstrap/87030
10025 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
10026
10027 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
10028
10029 * cgraphunit.c (symbol_table::compile): Start and stop
10030 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
10031 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
10032
10033 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
10034
10035 * gimplify.c (flag_instrument_functions_exclude_p): Include
10036 namespace/class information in the printable name.
10037 * opts.c (add_comma_separated_to_vector): Add NUL terminator
10038 to tokens entered into the vector.
10039
10040 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
10041
10042 * tree-nested.c (build_simple_mem_ref_notrap): New function.
10043 (get_static_chain): Call it instead of build_simple_mem_ref.
10044 (get_frame_field): Likewise.
10045 (get_nonlocal_debug_decl): Likewise.
10046 (convert_nonlocal_reference_op): Likewise.
10047
10048 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
10049
10050 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
10051 declaration.
10052 (arc_compute_frame_size): Millicode is disabled when compiling
10053 ISR.
10054 (arc_return_address_register): Likewise.
10055 (arc_compute_function_type): Likewise.
10056 (arc_compute_frame_size): Likewise.
10057 (secondary_reload_info): Likewise.
10058 (arc_get_unalign): Likewise.
10059 (arc_can_use_return_insn): Declare.
10060 * config/arc/arc.c (AUX_LP_START): Define
10061 (AUX_LP_END): Likewise.
10062 (arc_frame_info): Update gmask member to 64-bit datum.
10063 (GMASK_LEN): Update.
10064 (arc_compute_function_type): Make it static, move it forward.
10065 (arc_must_save_register): Update, consider the extra regs.
10066 (arc_compute_millicode_save_restore_regs): Update to use the 64
10067 bit gmask.
10068 (arc_compute_frame_size): Likewise.
10069 (arc_enter_leave_p): Likewise.
10070 (arc_save_callee_saves): Likewise.
10071 (arc_restore_callee_saves): Likewise.
10072 (arc_save_callee_enter): Likewise.
10073 (arc_restore_callee_leave): Likewise.
10074 (arc_save_callee_milli): Likewise.
10075 (arc_restore_callee_milli): Likewise.
10076 (arc_expand_prologue): Add new interrupt handling.
10077 (arc_return_address_register): Make it static, move it forward.
10078 (arc_expand_epilogue): Add new interrupt handling.
10079 (arc_get_unalign): Delete.
10080 (arc_epilogue_uses): Make sure we do not remove the extra
10081 saved/restored registers when interrupt.
10082 (arc_can_use_return_insn): New function.
10083 (push_reg): Likewise.
10084 (pop_reg): Likewise.
10085 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
10086 procedures.
10087 (arc_restore_callee_saves): Likewise, but restoring.
10088 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
10089 (R33_REG): Likewise.
10090 (R34_REG): Likewise.
10091 (R35_REG): Likewise.
10092 (R36_REG): Likewise.
10093 (R37_REG): Likewise.
10094 (R38_REG): Likewise.
10095 (R39_REG): Likewise.
10096 (R45_REG): Likewise.
10097 (R46_REG): Likewise.
10098 (R47_REG): Likewise.
10099 (R48_REG): Likewise.
10100 (R49_REG): Likewise.
10101 (R50_REG): Likewise.
10102 (R51_REG): Likewise.
10103 (R52_REG): Likewise.
10104 (R53_REG): Likewise.
10105 (R54_REG): Likewise.
10106 (R55_REG): Likewise.
10107 (R56_REG): Likewise.
10108 (R58_REG): Likewise.
10109 (type): Add rtie attribute.
10110 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10111 (movsi_insn): Accept moves to lp_count.
10112 (rtie): Update pattern.
10113 (simple_return): Simplify it, don't use this pattern as a return
10114 from an interrupt.
10115 (arc600_rtie): New pattern.
10116 (p_return_i): Clean up.
10117 (return): Likewise.
10118 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10119 family CPUs.
10120 * config/arc/predicates.md (move_src_operand): Consider lp_count
10121 as a register.
10122
10123 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10124
10125 * config/s390/predicates.md (addv_const_operand): New predicate.
10126 * config/s390/s390-modes.def (CCO): New condition code mode.
10127 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10128 (s390_branch_condition_mask): Likewise.
10129 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10130 ("mulv<mode>4"): New expanders.
10131 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10132 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10133 pattern definitions.
10134
10135 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10136
10137 PR middle-end/91166
10138 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10139 (define_predicates): Add entry for uniform_vector_p.
10140 (vec_same_elem_p): New match pattern.
10141
10142 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10143
10144 PR bootstrap/87030
10145 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10146 * config/i386/darwin32-biarch.h .. to here.
10147 * config/i386/darwin64-biarch.h: Adjust comments.
10148 * config/rs6000/darwin32-biarch.h: Likewise.
10149 * config/rs6000/darwin64-biarch.h: Likewise.
10150 * config.gcc: Missed commit from r273746
10151 (*-*-darwin*): Don't include CPU t-darwin here.
10152 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10153 an error message if i686-darwin configuration is attempted for
10154 Darwin >= 18.
10155
10156 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10157
10158 PR bootstrap/87030
10159 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10160 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10161 an error message if i686-darwin configuration is attempted for
10162 Darwin >= 18.
10163 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10164 (powerpc-*-darwin*): Use biarch files where needed.
10165 (powerpc64-*-darwin*): Likewise.
10166 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10167 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10168 arch case.
10169 * config/i386/darwin32-biarch.h: New.
10170 * config/i386/darwin64.h: Rename.
10171 * config/i386/darwin64-biarch.h: To this.
10172 * config/i386/t-darwin: Rename.
10173 * config/i386/t-darwin32-biarch: To this.
10174 * config/i386/t-darwin64: Rename.
10175 * config/i386/t-darwin64-biarch: To this.
10176 * config/rs6000/darwin32-biarch.h: New.
10177 * config/rs6000/darwin64.h: Rename.
10178 * config/rs6000/darwin64-biarch.h: To this.
10179 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10180 arch case.
10181 * config/rs6000/t-darwin8: Rename.
10182 * config/rs6000/t-darwin32-biarch: To this.
10183 * config/rs6000/t-darwin64 Rename.
10184 * config/rs6000/t-darwin64-biarch: To this.
10185
10186 2019-07-23 Martin Sebor <msebor@redhat.com>
10187
10188 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10189
10190 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10191
10192 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10193 (rh): New alias for it.
10194
10195 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10196
10197 * gdbhooks.py: Pass replace=True to
10198 gdb.printing.register_pretty_printer.
10199
10200 2019-07-23 Richard Biener <rguenther@suse.de>
10201
10202 PR debug/91231
10203 * lto-streamer-in.c (input_function): Drop inline-entry markers
10204 that ended up with an unknown location block.
10205
10206 2019-07-23 Richard Biener <rguenther@suse.de>
10207
10208 PR tree-optimization/83518
10209 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10210 init from a constant even when partial defs are already recorded.
10211
10212 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10213
10214 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10215 * config/i386/znver1.md: Enable patterns for znver2 and add store
10216 variants which use extra AGU unit.
10217
10218 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10219
10220 * config/i386/i386-options.c (ix86_option_override_internal): Default
10221 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10222 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10223 for ZNVER2.
10224
10225 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10226
10227 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10228 (znver2_costs): Update 256 bit SSE costs and multiplication.
10229
10230 2019-07-23 Jan Beulich <jbeulich@suse.com>
10231
10232 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10233 Require only AVX512F.
10234 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10235 alternative expanding to vpternlog.
10236
10237 2019-07-23 Martin Liska <mliska@suse.cz>
10238
10239 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10240 to -flto in dwarf producer string.
10241
10242 2019-07-23 Richard Biener <rguenther@suse.de>
10243
10244 * tree-cfg.c (label_for_bb): Remove global var.
10245 (main_block_label): Take label_for_bb as argument.
10246 (cleanup_dead_labels_eh): Likewise, adjust.
10247 (cleanup_dead_labels): Adjust.
10248
10249 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10250
10251 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10252 Configurations): Add documentation for __builtin_mtfsf.
10253
10254 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10255
10256 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10257 * config/riscv/riscv.c (riscv_constant_alignment): Use
10258 riscv_align_data_type.
10259 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10260 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10261 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10262 * config/riscv/riscv.opt (malign-data): New.
10263 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10264
10265 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10266
10267 * cgraph.c (dump_graphviz): New function.
10268 * cgraph.h (dump_graphviz): New function.
10269 * symtab.c (dump_graphviz): New function.
10270
10271 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10272
10273 * config/aarch64/aarch64-simd.md
10274 (*aarch64_simd_sra<mode>): New.
10275 * config/aarch64/iterators.md
10276 (SHIFTRT): New iterator.
10277 (sra_op): New attribute.
10278
10279 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10280
10281 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10282 callee-saved regs R4->R10 in an interrupt function that calls another
10283 function.
10284
10285 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10286
10287 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10288 (_mm_blendv_epi8): New.
10289
10290 2019-07-22 Richard Biener <rguenther@suse.de>
10291
10292 PR tree-optimization/91221
10293 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10294 restrict partial-def handling of empty constructors and
10295 memset to refs with known offset.
10296
10297 2019-07-22 Jan Beulich <jbeulich@suse.com>
10298
10299 * config/i386/sse.md (ternlogsuffix): New.
10300 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10301 AVX512F is in use.
10302 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10303
10304 2019-07-22 Martin Liska <mliska@suse.cz>
10305
10306 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10307 comment.
10308 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10309
10310 2019-07-22 Martin Liska <mliska@suse.cz>
10311
10312 * lto-section-in.c (lto_get_section_data):
10313 Use new function get_compression.
10314 * lto-streamer-out.c (produce_lto_section): Use
10315 set_compression to encode compression algorithm.
10316 * lto-streamer.h (struct lto_section): Do not
10317 use bitfields in the format.
10318
10319 2019-07-22 Martin Liska <mliska@suse.cz>
10320
10321 PR driver/91172
10322 * opts-common.c (decode_cmdline_option): Decode
10323 argument of -Werror and check it for a wrong language.
10324 * opts-global.c (complain_wrong_lang): Remove such case.
10325
10326 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10327
10328 * config/arc/arc.c (prepare_move_operands): Always use an
10329 intermediate register when storing a TLS symbols.
10330
10331 2019-07-22 Stafford Horne <shorne@gmail.com>
10332
10333 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10334 force_reg.
10335
10336 2019-07-22 Stafford Horne <shorne@gmail.com>
10337
10338 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10339 and munordered-float validations.
10340 * config/or1k/constraints.md (d): New register constraint.
10341 * config/or1k/predicates.md (fp_comparison_operator): New.
10342 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10343 operands.
10344 (or1k_expand_compare): Normalize unordered comparisons.
10345 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10346 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10347 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10348 * config/or1k/or1k.md (type): Add fpu.
10349 (fpu): New instruction reservation.
10350 (F, f, fr, fi, FI, FOP, fop): New.
10351 (<fop><F:mode>3): New ALU instruction definition.
10352 (float<fi><F:mode>2): New conversion instruction definition.
10353 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10354 (fpcmpcc): New code iterator.
10355 (*sf_fp_insn): New instruction definition.
10356 (cstore<F:mode>4): New expand definition.
10357 (cbranch<F:mode>4): New expand definition.
10358 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10359 munordered-float): New options.
10360 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10361 munordered-float.
10362
10363 2019-07-22 Stafford Horne <shorne@gmail.com>
10364
10365 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10366 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10367 documenation to be more clear.
10368 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10369 more clear.
10370 * config/or1k/or1k.opt (mrori): New option.
10371 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10372 msfimm, mshftimm): Rewrite documentation to be more clear.
10373 * config/or1k/or1k.md (insn_support): Add ror and rori.
10374 (enabled): Add conditions for ror and rori.
10375 (rotrsi3): Replace condition for shftimm with ror and rori.
10376
10377 2019-07-22 Stafford Horne <shorne@gmail.com>
10378
10379 PR target/90363
10380 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10381 (extend<mode>si2): Update predicate.
10382 * config/or1k/predicates.md (volatile_mem_operand): New.
10383 (reg_or_mem_operand): New.
10384
10385 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10386
10387 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10388 * config/rs6000/rs6000-call.c: ... to here.
10389
10390 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10391
10392 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10393 memory.
10394
10395 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10396
10397 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10398
10399 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10400
10401 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10402
10403 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10404
10405 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10406 (any_memory_operand): New predicate.
10407 (reg_or_mem_operand): Use it.
10408
10409 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10410
10411 PR target/91204
10412 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10413
10414 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10415
10416 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10417 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10418
10419 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10420
10421 * tree.def (OMP_LOOP): New tree code.
10422 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10423 (enum omp_clause_bind_kind): New enum.
10424 (struct tree_omp_clause): Add subcode.bind_kind.
10425 * tree.h (OMP_LOOP_CHECK): Rename to ...
10426 (OMP_LOOPING_CHECK): ... this.
10427 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10428 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10429 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10430 (OMP_CLAUSE_BIND_KIND): Define.
10431 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10432 bind clause entries.
10433 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10434 * tree-pretty-print.c (dump_omp_clause): Likewise.
10435 (dump_generic_node): Handle OMP_LOOP.
10436 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10437 (in_omp_construct): New variable.
10438 (is_gimple_stmt): Handle OMP_LOOP.
10439 (gimplify_scan_omp_clauses): For lastprivate don't set
10440 check_non_private if code == OMP_LOOP. For reduction clause
10441 on OMP_LOOP combined with parallel or teams propagate as shared
10442 on the combined construct. Handle OMP_CLAUSE_BIND.
10443 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10444 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10445 for constructs from a loop construct to gimplify_scan_omp_clauses.
10446 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10447 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10448 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10449 to match the implicit ORT_TARGET construct around whole body.
10450 Temporarily clear in_omp_construct when processing body.
10451 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10452 etc. temporarily set in_omp_construct when processing body.
10453 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10454 * omp-low.c (struct omp_context): Add loop_p.
10455 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10456 in that the original var might be private.
10457 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10458 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10459 addition of loop construct.
10460 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10461
10462 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10463 lastprivate non-addressable iterator of a collapse(1) simd.
10464
10465 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10466
10467 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10468 as in rs6000.c.
10469
10470 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10471
10472 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10473 refer to default conditions. Warn for the 'y' spec which is ignored
10474 by current linkers.
10475
10476 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10477
10478 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10479 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10480 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10481 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10482 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10483 init_cumulative_args, rs6000_promote_function_mode,
10484 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10485 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10486 rs6000_function_arg_boundary, rs6000_parm_offset,
10487 rs6000_parm_start, rs6000_arg_size,
10488 rs6000_darwin64_record_arg_advance_flush,
10489 rs6000_darwin64_record_arg_advance_recurse,
10490 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10491 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10492 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10493 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10494 rs6000_finish_function_arg, rs6000_function_arg,
10495 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10496 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10497 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10498 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10499 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10500 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10501 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10502 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10503 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10504 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10505 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10506 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10507 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10508 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10509 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10510 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10511 get_element_number, altivec_expand_vec_set_builtin,
10512 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10513 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10514 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10515 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10516 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10517 rs6000_expand_builtin, rs6000_vector_type,
10518 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10519 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10520 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10521 to rs6000-call.c.
10522 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10523 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10524 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10525 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10526 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10527 init_cumulative_args, rs6000_promote_function_mode,
10528 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10529 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10530 rs6000_function_arg_boundary, rs6000_parm_offset,
10531 rs6000_parm_start, rs6000_arg_size,
10532 rs6000_darwin64_record_arg_advance_flush,
10533 rs6000_darwin64_record_arg_advance_recurse,
10534 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10535 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10536 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10537 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10538 rs6000_finish_function_arg, rs6000_function_arg,
10539 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10540 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10541 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10542 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10543 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10544 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10545 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10546 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10547 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10548 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10549 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10550 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10551 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10552 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10553 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10554 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10555 get_element_number, altivec_expand_vec_set_builtin,
10556 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10557 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10558 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10559 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10560 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10561 rs6000_expand_builtin, rs6000_vector_type,
10562 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10563 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10564 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10565 to here from rs6000.c.
10566 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10567 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10568 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10569 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10570 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10571 rs6000_return_in_memory, rs6000_return_in_msb,
10572 rs6000_pass_by_reference, setup_incoming_varargs,
10573 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10574 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10575 rs6000_function_arg_padding, rs6000_function_arg,
10576 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10577 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10578 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10579 rs6000_passes_long_double, rs6000_passes_vector,
10580 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10581 altivec_builtin_mask_for_load) Add declarations.
10582 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10583 * config/config.gcc: Add new source file rs6000-call.c to garbage
10584 collector and extra_objs.
10585
10586 2019-07-19 Jeff Law <law@redhat.com>
10587
10588 PR tree-optimization/86061
10589 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10590 strncpy. Drop some trivial dead code.
10591 (maybe_trim_memstar_call): Handle strncpy.
10592
10593 2019-07-19 Richard Biener <rguenther@suse.de>
10594
10595 PR tree-optimization/91211
10596 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10597 memset encoding size.
10598
10599 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10600
10601 PR target/91204
10602 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10603
10604 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10605
10606 PR ipa/91194
10607 * ipa-inline.c (recursive_inlining): Fix limits check.
10608
10609 2019-07-19 Richard Biener <rguenther@suse.de>
10610
10611 PR tree-optimization/91200
10612 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10613 no PHI nodes in middle-bb.
10614
10615 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10616
10617 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10618 to +sve-bitperm.
10619 * config/aarch64/aarch64-option-extensions.def: Likewise.
10620
10621 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10622
10623 PR middle-end/91190
10624 * function.c (insert_temp_slot_address): Store into the hash table
10625 a copy of address to avoid RTL sharing issues.
10626
10627 2019-07-19 Richard Biener <rguenther@suse.de>
10628
10629 PR tree-optimization/91207
10630 Revert
10631 2019-07-17 Richard Biener <rguenther@suse.de>
10632
10633 PR tree-optimization/91178
10634 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10635 loads with a gap larger than the vector size always use
10636 VMAT_STRIDED_SLP.
10637 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10638 avoid loading vectors that are only contained in the gap
10639 and thus are not needed.
10640
10641 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10642
10643 * config/i386/i386.md (*addqi_2_slp): Remove.
10644 (*<code>qi_2_slp): Ditto.
10645
10646 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10647
10648 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10649 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10650 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10651 Rename function from rs6000_prefixed_address.
10652 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10653 TARGET_HAS_TOC.
10654 (TARGET_TOC): Likewise.
10655 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10656 rs6000.h.
10657 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10658 TARGET_HAS_TOC.
10659 (TARGET_TOC): Likewise.
10660 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10661 rs6000.h.
10662 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10663 TARGET_HAS_TOC.
10664 (TARGET_TOC): Likewise.
10665 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10666 check to require -mcmodel=medium for pc-relative addressing.
10667 (create_TOC_reference): Add assertion for TARGET_TOC.
10668 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10669 TARGET_NO_TOC.
10670 (rs6000_emit_move): Likewise.
10671 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10672 to 'TOC_alias_set'.
10673 (get_TOC_alias_set): Likewise.
10674 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10675 TARGET_NO_TOC.
10676 (rs6000_can_eliminate): Likewise.
10677 (rs6000_prefixed_address_mode_p): Rename function from
10678 rs6000_prefixed_address.
10679 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10680 TARGET_HAS_TOC and not pc-relative.
10681 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10682 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10683 TARGET_HAS_TOC.
10684 (TARGET_TOC): Likewise.
10685 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10686 rs6000.h.
10687
10688 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10689
10690 PR target/91188
10691 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10692 for operand 0. Do not use (match_dup) to match operand 1 with
10693 operand 0. Add check in insn constraint that either input operand
10694 matches operand 0. Use SWI12 mode iterator to also handle
10695 HImode operands.
10696 (*and<mode>_1_slp): Ditto.
10697 (*<code>qi_1_slp): Ditto.
10698 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10699 Do not use (match_dup) to match operand 1 with operand 0. Add
10700 check in insn constraint that operand 1 matches operand 0.
10701 Use SWI12 mode iterator to also handle HImode operands.
10702 (*ashl<mode>3_1_slp): Ditto.
10703 (*<shift_insn><mode>3_1_slp): Ditto.
10704 (*<rotate_insn><mode>3_1_slp): Ditto.
10705
10706 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10707
10708 * config/arm/arm-builtins.c
10709 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10710 (arm_expand_unop_builtin): Likewise.
10711 * config/arm/crypto.md
10712 (crypto_sha1h): Convert from define_insn to define_expand.
10713 (crypto_<crypto_pattern>): Likewise.
10714 (crypto_sha1h_lb): New define_insn.
10715 (crypto_<crypto_pattern>_lb): Likewise.
10716
10717 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10718
10719 PR target/90317
10720 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10721 (vsha1cq_u32): Likewise.
10722 (vsha1pq_u32): Likewise.
10723 (vsha1mq_u32): Likewise.
10724 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10725 vec select.
10726 (crypto_sha1c): Correct vec select.
10727 (crypto_sha1m): Likewise.
10728 (crypto_sha1p): Likewise.
10729
10730 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10731
10732 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10733 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10734 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10735 (subdi_zesidi_zesidi): Likewise.
10736 (negdi2_compare, negdi2_insn): Likewise.
10737 (negdi_extensidi): Likewise.
10738 (negdi_zero_extendsidi): Likewise.
10739 (arm_cmpdi_insn): Likewise.
10740 (subsi3_carryin): Use arm_borrow_operation.
10741 (subsi3_carryin_const): Likewise.
10742 (subsi3_carryin_const0): Likewise.
10743 (subsi3_carryin_compare): Likewise.
10744 (subsi3_carryin_compare_const): Likewise.
10745 (subsi3_carryin_compare_const0): Likewise.
10746 (subsi3_carryin_shift): Likewise.
10747 (rsbsi3_carryin_shift): Likewise.
10748 (negsi2_carryin_compare): Likewise.
10749
10750 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10751
10752 PR tree-optimization/91137
10753 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10754 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10755 Init, use and fini the above new field.
10756 (determine_base_object_1): New function.
10757 (determine_base_object): Reimplement using walk_tree.
10758
10759 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10760
10761 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10762 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10763 CLEANUP_FORCE_FAST_DCE is set.
10764 * ifcvt.c (rest_of_handle_if_conversion): Pass
10765 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10766 if-conversion succeeded.
10767
10768 2019-07-18 Richard Biener <rguenther@suse.de>
10769
10770 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10771 branches to make code less indented.
10772
10773 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10774
10775 PR middle-end/81824
10776 * attribs.c (decls_mismatched_attributes): Simplify the logic
10777 that avoids duplicates and false positives.
10778
10779 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10780
10781 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10782 data into data section when generating PIC code.
10783 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10784 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10785 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10786 return 2 for SOM and 0 for other targets.
10787
10788 2019-07-17 Jeff Law <law@redhat.com>
10789
10790 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10791 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10792 avoid unexpected switch statement fallthru.
10793
10794 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10795
10796 * config/i386/i386.md (*add<dwi>3_doubleword):
10797 Remove redundant constraints.
10798 (*add<mode>_1): Ditto.
10799 (*addhi_1): Ditto.
10800 (*addqi_1): Ditto.
10801 (*addqi_1_slp): Ditto.
10802 (*add<mode>_2): Ditto.
10803 (*addv<mode>4): Ditto.
10804 (*sub<dwi>3_doubleword): Ditto.
10805 (*sub<mode>_1): Ditto.
10806 (*subqi_1_slp): Ditto.
10807 (*sub<mode>_2): Ditto.
10808 (*subv<mode>4): Ditto.
10809 (*sub<mode>_3): Ditto.
10810 (@add<mode>3_carry): Ditto.
10811 (@sub<mode>3_carry): Ditto.
10812 (*add<mode>3_cc_overflow_1): Ditto.
10813 (*add<mode>3_zext_cc_overflow_2): Ditto.
10814 (*anddi_1): Ditto.
10815 (*and<mode>_1): Ditto.
10816 (*andqi_1): Ditto.
10817 (*andqi_1_slp): Ditto.
10818 (*anddi_2): Ditto.
10819 (*andqi_2_maybe_si): Ditto.
10820 (*and<mode>_2): Ditto.
10821 (*andqi_2_slp): Ditto.
10822 (*<code><mode>_1): Ditto.
10823 (*<code>qi_1): Ditto.
10824 (*<code>qi_1_slp): Ditto.
10825 (*<code><mode>_2): Ditto.
10826 (*<code>qi_2_slp): Ditto.
10827
10828 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10829
10830 * alias.c (record_component_aliases): Do not simplify pointed-to
10831 types of ODR types.
10832
10833 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10834
10835 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10836 partial reg stall on alternative 2.
10837
10838 2019-07-17 Richard Biener <rguenther@suse.de>
10839
10840 PR tree-optimization/91178
10841 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10842 lower SSA names to avoid quadratic behavior in the common case.
10843 * tree-data-ref.c (split_constant_offset): Add limit argument
10844 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10845 (split_constant_offset_1): Add limit argument and use it to
10846 limit SSA def walking. Optimize the common plus/minus case.
10847
10848 2019-07-17 Richard Biener <rguenther@suse.de>
10849
10850 PR tree-optimization/91178
10851 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10852 loads with a gap larger than the vector size always use
10853 VMAT_STRIDED_SLP.
10854 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10855 avoid loading vectors that are only contained in the gap
10856 and thus are not needed.
10857
10858 2019-07-17 Richard Biener <rguenther@suse.de>
10859
10860 PR tree-optimization/91180
10861 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10862 computation for memset partial defs.
10863
10864 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10865
10866 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10867 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10868 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10869 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10870 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10871 * omp-grid.c (grid_process_grid_body,
10872 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10873 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10874 == GF_OMP_FOR_KIND_SIMD.
10875 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10876 check_omp_nesting_restrictions, scan_omp_1_stmt,
10877 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10878 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10879 omp_find_scan): Likewise.
10880 * omp-expand.c (expand_omp_for): Likewise.
10881 * omp-general.c (omp_extract_for_data): Likewise.
10882
10883 PR tree-optimization/91157
10884 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10885 a vector boolean with scalar mode.
10886 (expand_vector_condition): Handle first operand being a vector boolean
10887 with scalar mode.
10888 (expand_vector_operations_1): For comparisons, don't bail out early
10889 if the return type is vector boolean with scalar mode, but comparison
10890 operand type is not.
10891
10892 2019-07-17 Richard Biener <rguenther@suse.de>
10893
10894 PR tree-optimization/91181
10895 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10896 IFN_LOADs as calls.
10897
10898 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10899
10900 * config/i386/i386.md (*testdi_1): Match CCZmode for
10901 constants that might have the SImode sign bit set.
10902 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10903 Use correct constraints for pentium pairing.
10904 (*test<mode>_1): Ditto.
10905
10906 2019-07-16 Jeff Law <law@redhat.com>
10907
10908 PR rtl-optimization/91173
10909 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10910 SSA_NAME with a constant value, fold its value into the offset
10911 and clear the base before calling gen_addr_rtx.
10912
10913 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10914
10915 PR rtl-optimization/91164
10916 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10917 invalidate dominance info.
10918
10919 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10920
10921 * read-md.h (md_reader::record_potential_iterator_use): Add a
10922 file_location parameter.
10923 * read-rtl.c (attribute_use::loc): New field.
10924 (map_attr_string): Take a file_location parameter. Report cases
10925 in which attributes map to multiple distinct values.
10926 (apply_attribute_uses): Update call accordingly.
10927 (md_reader::handle_overloaded_name): Likewise.
10928 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10929 nonnull strings.
10930 (record_attribute_use): Take a file_location parameter.
10931 Initialize attribute_use::loc.
10932 (md_reader::record_potential_iterator_use): Take a file_location
10933 parameter. Update call to record_attribute_use.
10934 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10935 (rtx_reader::read_rtx_code): Likewise.
10936 (rtx_reader::read_rtx_operand): Likewise. Record a location
10937 for implicitly-expanded empty strings.
10938
10939 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10940
10941 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10942 Use file_location instead of separate fields.
10943 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10944 separate filename and line number.
10945 * read-md.c (ptr_loc): As above.
10946 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10947 (md_reader::fprint_md_ptr_loc): Likewise.
10948 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10949 instead of a separate filename and line number.
10950 (md_reader::read_string): Update call accordingly.
10951
10952 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10953
10954 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10955 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10956 leaving the choice between SFDF and P implicit.
10957 (*mov<mode>_update2): Likewise.
10958 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10959 rather than leaving the choice betweem IBM128 and GPR implicit.
10960 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10961 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10962 QHSI implicit.
10963 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10964 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10965 * config/rs6000/vsx.md
10966 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10967 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10968 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10969 and VSX_EXTRACT_I implicit.
10970
10971 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10972
10973 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10974 Explicitly use <MOVEP1:MODE> for the mode attribute.
10975
10976 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10977
10978 PR bootstrap/91176
10979 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10980
10981 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10982
10983 PR target/91050
10984 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10985 .machine directive.
10986
10987 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10988
10989 * config/i386/i386.md (@test<mode>_ccno_1):
10990 Rename from test<mode>_ccno_1.
10991 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10992 (*testqi_1_maybe_si): Remove modrm attribute.
10993 (*test<mode>_1): Ditto.
10994 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10995 gen_test_ccno_1 and gen_extend_insn.
10996
10997 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10998
10999 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
11000 to 0.
11001
11002 2019-07-15 Richard Biener <rguenther@suse.de>
11003
11004 PR middle-end/91162
11005 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
11006 node make sure to replace all uses with something valid.
11007
11008 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
11009
11010 PR tree-optimization/88497
11011 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
11012 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
11013 function undistribute_bitref_for_vector.
11014 (undistribute_bitref_for_vector): New function.
11015 (cleanup_vinfo_map): Likewise.
11016 (sort_by_mach_mode): Likewise.
11017
11018 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
11019
11020 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
11021 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
11022 and testdi_ccno_1 using SWI48 mode attribute.
11023 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
11024 x86_64_szext_general_operand.
11025 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
11026 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
11027 instead of genera_operand mode attribute.
11028
11029 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
11030
11031 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
11032 fopen and fclose to their respective types.
11033 (DotFn.invoke): Ditto.
11034
11035 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
11036
11037 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
11038 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
11039 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
11040 (array_index_predicate): Remove.
11041 (analyze_function_body): Account cost for variable ofsetted array
11042 indexing.
11043 (estimate_node_size_and_time): Do not compute array index hint.
11044 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
11045 (inline_read_section): Do not read array index hint.
11046 (ipa_fn_summary_write): Do not write array index hint.
11047 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
11048 * ipa-cp.c (hint_time_bonus): Remove.
11049 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
11050 (ipa_fnsummary): Remove array_index.
11051 * ipa-inline.c (want_inline_small_function_p): Do not use
11052 array_index.
11053 (edge_badness): Likewise.
11054 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
11055
11056 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
11057
11058 PR target/91148
11059 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
11060 superfluous "builtin function" phrasing.
11061
11062 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
11063
11064 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
11065 Break out from ...
11066 (aliasing_component_refs_walk): Break out from ...
11067 (aliasing_component_refs_p): ... here.
11068
11069 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
11070
11071 PR target/91148
11072 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
11073 "builtin function" phrasing.
11074
11075 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11076
11077 PR target/90723
11078 * recog.h (temporary_volatile_ok): New class.
11079 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
11080 volatile_ok temporarily to true using temporary_volatile_ok.
11081 * expr.c (emit_block_move_via_cpymem): Likewise.
11082 * optabs.c (maybe_legitimize_operand): Likewise.
11083
11084 2019-07-13 Jakub Jelinek <jakub@redhat.com>
11085
11086 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
11087 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
11088 uses inside of order(concurrent) constructs.
11089 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
11090 OMP_CLAUSE_ORDER is seen.
11091 * omp-low.c (struct omp_context): Add order_concurrent member.
11092 (scan_sharing_clauses): Set ctx->order_concurrent if
11093 OMP_CLAUSE_ORDER is seen.
11094 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
11095 of simd order(concurrent). Diagnose constructs not allowed inside of
11096 for order(concurrent).
11097 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
11098 complaining about static double setjmp (double); or class static
11099 methods or non-global namespace setjmps.
11100 (omp_runtime_api_call): New function.
11101 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11102 order(concurrent) loops.
11103
11104 2019-07-12 Martin Sebor <msebor@redhat.com>
11105
11106 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11107 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11108 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11109 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11110
11111 2019-07-12 Jan Hubicka <jh@suse.cz>
11112
11113 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11114 (indirect_refs_may_alias_p): ... here.
11115 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11116 mem refs in the access paths.
11117
11118 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11119
11120 PR tree-optimization/89430
11121 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11122 store elimination for local variable without address escape.
11123
11124 2019-07-12 Jeff Law <law@redhat.com>
11125
11126 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11127 for the ".far" section.
11128
11129 2019-07-12 Richard Biener <rguenther@suse.de>
11130
11131 PR tree-optimization/91145
11132 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11133 chain check.
11134
11135 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11136
11137 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11138 rather than this_state as the lowering context for the ELSE
11139 seq in a GIMPLE_EH_ELSE.
11140
11141 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11142
11143 * vector-builder.h (vector_builder::elt): Allow already-supplied
11144 elements to be read back before building is complete.
11145
11146 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11147
11148 PR rtl-optimization/91136
11149 * df-core.c (ACCESSING REFS): Fix typos in comment.
11150 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11151 the beginning of the block to the initial set of live registers.
11152
11153 2019-07-12 Richard Biener <rguenther@suse.de>
11154
11155 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11156 * fold-const.c (get_array_ctor_element_at_index): Add
11157 ctor_idx output parameter informing the caller where in
11158 the constructor the element was (not) found. Add early exit
11159 for when the ctor is sorted.
11160 * gimple-fold.c (fold_array_ctor_reference): Support constant
11161 folding across multiple array elements.
11162
11163 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11164
11165 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11166 doesn't have location, set the current location to the function's end.
11167
11168 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11169
11170 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11171 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11172 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11173 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11174 * config/aarch64/aarch64-simd.md
11175 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11176 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11177 * config/aarch64/aarch64-sve.md
11178 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11179 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11180
11181 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11182
11183 * doc/md.texi: Document that @ patterns can have different
11184 numbers of operands.
11185 * genemit.c (handle_overloaded_gen): Handle this case.
11186 * genopinit.c (handle_overloaded_gen): Likewise.
11187 * gensupport.c (replace_operands_with_dups): Iterate over
11188 the new rtx's format rather than the old one's.
11189
11190 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11191
11192 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11193 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11194 order clause entries.
11195 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11196 * tree-pretty-print.c (dump_omp_clause): Likewise.
11197 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11198 Likewise.
11199 * omp-low.c (scan_sharing_clauses): Likewise.
11200 * tree-nested.c (convert_nonlocal_omp_clauses,
11201 convert_local_omp_clauses): Likewise.
11202
11203 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11204
11205 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11206 fallthrough target of current basic block isn't the placed
11207 right next.
11208
11209 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11210
11211 PR target/90980
11212 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11213 (_mm512_storeu_epi64): Likewise.
11214 (_mm512_loadu_epi32): Likewise.
11215 (_mm512_storeu_epi32): Likewise.
11216 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11217 (_mm_storeu_epi64): Likewise.
11218 (_mm256_storeu_epi32): Likewise.
11219 (_mm_storeu_epi32): Likewise.
11220
11221 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11222
11223 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11224
11225 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11226
11227 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11228 Handle Modula-2.
11229
11230 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11231
11232 PR target/91124
11233 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11234 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11235 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11236 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11237 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11238 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11239 define_insns.
11240 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11241 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11242 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11243 define_insns.
11244 (sse2_cvttpd2dq<mask_name>): Change into ...
11245 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11246 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11247 (*sse2_cvtpd2dq<mask_name>): Change into ...
11248 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11249 Add "C" constraint to const0_operand.
11250 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11251 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11252 changes.
11253
11254 PR target/91124
11255 * config/i386/i386-builtin-types.def
11256 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11257 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11258 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11259 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11260 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11261 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11262 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11263 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11264 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11265 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11266 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11267 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11268 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11269 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11270 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11271 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11272 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11273 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11274 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11275 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11276 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11277 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11278 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11279 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11280 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11281 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11282 __builtin_ia32_vpdpbusd_v4si_maskz,
11283 __builtin_ia32_vpdpbusds_v16si_mask,
11284 __builtin_ia32_vpdpbusds_v16si_maskz,
11285 __builtin_ia32_vpdpbusds_v8si_mask,
11286 __builtin_ia32_vpdpbusds_v8si_maskz,
11287 __builtin_ia32_vpdpbusds_v4si_mask,
11288 __builtin_ia32_vpdpbusds_v4si_maskz,
11289 __builtin_ia32_vpdpwssd_v16si_mask,
11290 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11291 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11292 __builtin_ia32_vpdpwssd_v4si_maskz,
11293 __builtin_ia32_vpdpwssds_v16si_mask,
11294 __builtin_ia32_vpdpwssds_v16si_maskz,
11295 __builtin_ia32_vpdpwssds_v8si_mask,
11296 __builtin_ia32_vpdpwssds_v8si_maskz,
11297 __builtin_ia32_vpdpwssds_v4si_mask,
11298 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11299 suffixed types rather than *_INT.
11300 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11301 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11302 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11303 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11304 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11305 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11306
11307 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11308
11309 * tree-vrp.c (intersect_ranges): If we know the intersection is
11310 empty, there is no need to conservatively add anything else to
11311 the set.
11312
11313 2019-07-11 Richard Biener <rguenther@suse.de>
11314
11315 PR middle-end/91131
11316 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11317 when the object is volatile and we have not cleared it even though
11318 there are no nonzero elements.
11319
11320 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11321
11322 * config/rs6000/predicates.md (cint34_operand): Update
11323 SIGNED_34BIT_OFFSET_P call.
11324 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11325 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11326 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11327 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11328 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11329 argument.
11330 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11331 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11332 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11333 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11334 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11335
11336 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11337
11338 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11339 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11340 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11341 (DEF_MIN_OSX_VERSION): New.
11342
11343 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11344
11345 * fold-const.c (fold_relational_const): Fix folding of
11346 vector-to-scalar NE_EXPRs.
11347 (test_vector_folding): Add more tests.
11348
11349 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11350
11351 PR target/91060
11352 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11353 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11354 (vec_setv2di_internal): Reexpress as...
11355 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11356 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11357 rather than gen_neon_vset_lane<mode>.
11358
11359 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11360
11361 PR target/91102
11362 * lra-constraints.c (process_alt_operands): Don't match user
11363 defined regs only if they are early clobbers.
11364
11365 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11366
11367 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11368
11369 2019-07-10 Richard Biener <rguenther@suse.de>
11370
11371 PR tree-optimization/91126
11372 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11373 native encoding offset for BYTES_BIG_ENDIAN.
11374 (vn_reference_lookup_3): Likewise.
11375
11376 2019-07-10 Richard Biener <rguenther@suse.de>
11377
11378 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11379 LHS whenever possible.
11380
11381 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11382
11383 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11384 from ...; work also on duplicated types.
11385 (nonoverlapping_component_refs_since_match): ... here
11386 (ncr_type_uid): Break out from ...
11387 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11388 available.
11389 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11390 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11391
11392 2019-07-09 Martin Sebor <msebor@redhat.com>
11393
11394 PR tree-optimization/90989
11395 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11396 optimization to just single character stores.
11397
11398 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11399
11400 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11401 Swap operands only once.
11402
11403 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11404
11405 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11406 for both call instructions.
11407
11408 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11409
11410 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11411 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11412
11413 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11414
11415 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11416 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11417 function from rs6000-logue.c back to rs6000.c.
11418 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11419
11420 2019-07-09 Martin Sebor <msebor@redhat.com>
11421
11422 PR c++/61339
11423 * auto-profile.c: Change class-key of PODs to struct and others
11424 to class.
11425 * basic-block.h: Same.
11426 * bitmap.c (bitmap_alloc): Same.
11427 * bitmap.h: Same.
11428 * builtins.c (expand_builtin_prefetch): Same.
11429 (expand_builtin_interclass_mathfn): Same.
11430 (expand_builtin_strlen): Same.
11431 (expand_builtin_mempcpy_args): Same.
11432 (expand_cmpstr): Same.
11433 (expand_builtin___clear_cache): Same.
11434 (expand_ifn_atomic_bit_test_and): Same.
11435 (expand_builtin_thread_pointer): Same.
11436 (expand_builtin_set_thread_pointer): Same.
11437 * caller-save.c (setup_save_areas): Same.
11438 (replace_reg_with_saved_mem): Same.
11439 (insert_restore): Same.
11440 (insert_save): Same.
11441 (add_used_regs): Same.
11442 * cfg.c (get_bb_copy): Same.
11443 (set_loop_copy): Same.
11444 * cfg.h: Same.
11445 * cfganal.h: Same.
11446 * cfgexpand.c (alloc_stack_frame_space): Same.
11447 (add_stack_var): Same.
11448 (add_stack_var_conflict): Same.
11449 (add_scope_conflicts_1): Same.
11450 (update_alias_info_with_stack_vars): Same.
11451 (expand_used_vars): Same.
11452 * cfghooks.c (redirect_edge_and_branch_force): Same.
11453 (delete_basic_block): Same.
11454 (split_edge): Same.
11455 (make_forwarder_block): Same.
11456 (force_nonfallthru): Same.
11457 (duplicate_block): Same.
11458 (lv_flush_pending_stmts): Same.
11459 * cfghooks.h: Same.
11460 * cfgloop.c (flow_loops_cfg_dump): Same.
11461 (flow_loop_nested_p): Same.
11462 (superloop_at_depth): Same.
11463 (get_loop_latch_edges): Same.
11464 (flow_loop_dump): Same.
11465 (flow_loops_dump): Same.
11466 (flow_loops_free): Same.
11467 (flow_loop_nodes_find): Same.
11468 (establish_preds): Same.
11469 (flow_loop_tree_node_add): Same.
11470 (flow_loop_tree_node_remove): Same.
11471 (flow_loops_find): Same.
11472 (find_subloop_latch_edge_by_profile): Same.
11473 (find_subloop_latch_edge_by_ivs): Same.
11474 (mfb_redirect_edges_in_set): Same.
11475 (form_subloop): Same.
11476 (merge_latch_edges): Same.
11477 (disambiguate_multiple_latches): Same.
11478 (disambiguate_loops_with_multiple_latches): Same.
11479 (flow_bb_inside_loop_p): Same.
11480 (glb_enum_p): Same.
11481 (get_loop_body_with_size): Same.
11482 (get_loop_body): Same.
11483 (fill_sons_in_loop): Same.
11484 (get_loop_body_in_dom_order): Same.
11485 (get_loop_body_in_custom_order): Same.
11486 (release_recorded_exits): Same.
11487 (get_loop_exit_edges): Same.
11488 (num_loop_branches): Same.
11489 (remove_bb_from_loops): Same.
11490 (find_common_loop): Same.
11491 (delete_loop): Same.
11492 (cancel_loop): Same.
11493 (verify_loop_structure): Same.
11494 (loop_preheader_edge): Same.
11495 (loop_exit_edge_p): Same.
11496 (single_exit): Same.
11497 (loop_exits_to_bb_p): Same.
11498 (loop_exits_from_bb_p): Same.
11499 (get_loop_location): Same.
11500 (record_niter_bound): Same.
11501 (get_estimated_loop_iterations_int): Same.
11502 (max_stmt_executions_int): Same.
11503 (likely_max_stmt_executions_int): Same.
11504 (get_estimated_loop_iterations): Same.
11505 (get_max_loop_iterations): Same.
11506 (get_max_loop_iterations_int): Same.
11507 (get_likely_max_loop_iterations): Same.
11508 * cfgloop.h (simple_loop_desc): Same.
11509 (get_loop): Same.
11510 (loop_depth): Same.
11511 (loop_outer): Same.
11512 (loop_iterator::next): Same.
11513 (loop_outermost): Same.
11514 * cfgloopanal.c (mark_irreducible_loops): Same.
11515 (num_loop_insns): Same.
11516 (average_num_loop_insns): Same.
11517 (expected_loop_iterations_unbounded): Same.
11518 (expected_loop_iterations): Same.
11519 (mark_loop_exit_edges): Same.
11520 (single_likely_exit): Same.
11521 * cfgloopmanip.c (fix_bb_placement): Same.
11522 (fix_bb_placements): Same.
11523 (remove_path): Same.
11524 (place_new_loop): Same.
11525 (add_loop): Same.
11526 (scale_loop_frequencies): Same.
11527 (scale_loop_profile): Same.
11528 (create_empty_if_region_on_edge): Same.
11529 (create_empty_loop_on_edge): Same.
11530 (loopify): Same.
11531 (unloop): Same.
11532 (fix_loop_placements): Same.
11533 (copy_loop_info): Same.
11534 (duplicate_loop): Same.
11535 (duplicate_subloops): Same.
11536 (loop_redirect_edge): Same.
11537 (can_duplicate_loop_p): Same.
11538 (duplicate_loop_to_header_edge): Same.
11539 (mfb_keep_just): Same.
11540 (has_preds_from_loop): Same.
11541 (create_preheader): Same.
11542 (create_preheaders): Same.
11543 (lv_adjust_loop_entry_edge): Same.
11544 (loop_version): Same.
11545 * cfgloopmanip.h: Same.
11546 * cgraph.h: Same.
11547 * cgraphbuild.c: Same.
11548 * combine.c (make_extraction): Same.
11549 * config/i386/i386-features.c: Same.
11550 * config/i386/i386-features.h: Same.
11551 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11552 (ix86_emit_outlined_ms2sysv_restore): Same.
11553 (ix86_noce_conversion_profitable_p): Same.
11554 (ix86_init_cost): Same.
11555 (ix86_simd_clone_usable): Same.
11556 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11557 Wstruct-not-pod.
11558 * coretypes.h: Same.
11559 * data-streamer-in.c (string_for_index): Change class-key of PODs
11560 to struct and others to class.
11561 (streamer_read_indexed_string): Same.
11562 (streamer_read_string): Same.
11563 (bp_unpack_indexed_string): Same.
11564 (bp_unpack_string): Same.
11565 (streamer_read_uhwi): Same.
11566 (streamer_read_hwi): Same.
11567 (streamer_read_gcov_count): Same.
11568 (streamer_read_wide_int): Same.
11569 * data-streamer.h (streamer_write_bitpack): Same.
11570 (bp_unpack_value): Same.
11571 (streamer_write_char_stream): Same.
11572 (streamer_write_hwi_in_range): Same.
11573 (streamer_write_record_start): Same.
11574 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11575 (add_cross_iteration_register_deps): Same.
11576 (build_intra_loop_deps): Same.
11577 * df-core.c (df_analyze): Same.
11578 (loop_post_order_compute): Same.
11579 (loop_inverted_post_order_compute): Same.
11580 * df-problems.c (df_rd_alloc): Same.
11581 (df_rd_simulate_one_insn): Same.
11582 (df_rd_local_compute): Same.
11583 (df_rd_init_solution): Same.
11584 (df_rd_confluence_n): Same.
11585 (df_rd_transfer_function): Same.
11586 (df_rd_free): Same.
11587 (df_rd_dump_defs_set): Same.
11588 (df_rd_top_dump): Same.
11589 (df_lr_alloc): Same.
11590 (df_lr_reset): Same.
11591 (df_lr_local_compute): Same.
11592 (df_lr_init): Same.
11593 (df_lr_confluence_n): Same.
11594 (df_lr_free): Same.
11595 (df_lr_top_dump): Same.
11596 (df_lr_verify_transfer_functions): Same.
11597 (df_live_alloc): Same.
11598 (df_live_reset): Same.
11599 (df_live_init): Same.
11600 (df_live_confluence_n): Same.
11601 (df_live_finalize): Same.
11602 (df_live_free): Same.
11603 (df_live_top_dump): Same.
11604 (df_live_verify_transfer_functions): Same.
11605 (df_mir_alloc): Same.
11606 (df_mir_reset): Same.
11607 (df_mir_init): Same.
11608 (df_mir_confluence_n): Same.
11609 (df_mir_free): Same.
11610 (df_mir_top_dump): Same.
11611 (df_word_lr_alloc): Same.
11612 (df_word_lr_reset): Same.
11613 (df_word_lr_init): Same.
11614 (df_word_lr_confluence_n): Same.
11615 (df_word_lr_free): Same.
11616 (df_word_lr_top_dump): Same.
11617 (df_md_alloc): Same.
11618 (df_md_simulate_one_insn): Same.
11619 (df_md_reset): Same.
11620 (df_md_init): Same.
11621 (df_md_free): Same.
11622 (df_md_top_dump): Same.
11623 * df-scan.c (df_insn_delete): Same.
11624 (df_insn_rescan): Same.
11625 (df_notes_rescan): Same.
11626 (df_sort_and_compress_mws): Same.
11627 (df_install_mws): Same.
11628 (df_refs_add_to_chains): Same.
11629 (df_ref_create_structure): Same.
11630 (df_ref_record): Same.
11631 (df_def_record_1): Same.
11632 (df_find_hard_reg_defs): Same.
11633 (df_uses_record): Same.
11634 (df_get_conditional_uses): Same.
11635 (df_get_call_refs): Same.
11636 (df_recompute_luids): Same.
11637 (df_get_entry_block_def_set): Same.
11638 (df_entry_block_defs_collect): Same.
11639 (df_get_exit_block_use_set): Same.
11640 (df_exit_block_uses_collect): Same.
11641 (df_mws_verify): Same.
11642 (df_bb_verify): Same.
11643 * df.h (df_scan_get_bb_info): Same.
11644 * doc/tm.texi: Same.
11645 * dse.c (record_store): Same.
11646 * dumpfile.h: Same.
11647 * emit-rtl.c (const_fixed_hasher::equal): Same.
11648 (set_mem_attributes_minus_bitpos): Same.
11649 (change_address): Same.
11650 (adjust_address_1): Same.
11651 (offset_address): Same.
11652 * emit-rtl.h: Same.
11653 * except.c (dw2_build_landing_pads): Same.
11654 (sjlj_emit_dispatch_table): Same.
11655 * explow.c (allocate_dynamic_stack_space): Same.
11656 (emit_stack_probe): Same.
11657 (probe_stack_range): Same.
11658 * expmed.c (store_bit_field_using_insv): Same.
11659 (store_bit_field_1): Same.
11660 (store_integral_bit_field): Same.
11661 (extract_bit_field_using_extv): Same.
11662 (extract_bit_field_1): Same.
11663 (emit_cstore): Same.
11664 * expr.c (emit_block_move_via_cpymem): Same.
11665 (expand_cmpstrn_or_cmpmem): Same.
11666 (set_storage_via_setmem): Same.
11667 (emit_single_push_insn_1): Same.
11668 (expand_assignment): Same.
11669 (store_constructor): Same.
11670 (expand_expr_real_2): Same.
11671 (expand_expr_real_1): Same.
11672 (try_casesi): Same.
11673 * flags.h: Same.
11674 * function.c (try_fit_stack_local): Same.
11675 (assign_stack_local_1): Same.
11676 (assign_stack_local): Same.
11677 (cut_slot_from_list): Same.
11678 (insert_slot_to_list): Same.
11679 (max_slot_level): Same.
11680 (move_slot_to_level): Same.
11681 (temp_address_hasher::equal): Same.
11682 (remove_unused_temp_slot_addresses): Same.
11683 (assign_temp): Same.
11684 (combine_temp_slots): Same.
11685 (update_temp_slot_address): Same.
11686 (preserve_temp_slots): Same.
11687 * function.h: Same.
11688 * fwprop.c: Same.
11689 * gcc-rich-location.h: Same.
11690 * gcov.c: Same.
11691 * genattrtab.c (check_attr_test): Same.
11692 (check_attr_value): Same.
11693 (convert_set_attr_alternative): Same.
11694 (convert_set_attr): Same.
11695 (check_defs): Same.
11696 (copy_boolean): Same.
11697 (get_attr_value): Same.
11698 (expand_delays): Same.
11699 (make_length_attrs): Same.
11700 (min_fn): Same.
11701 (make_alternative_compare): Same.
11702 (simplify_test_exp): Same.
11703 (tests_attr_p): Same.
11704 (get_attr_order): Same.
11705 (clear_struct_flag): Same.
11706 (gen_attr): Same.
11707 (compares_alternatives_p): Same.
11708 (gen_insn): Same.
11709 (gen_delay): Same.
11710 (find_attrs_to_cache): Same.
11711 (write_test_expr): Same.
11712 (walk_attr_value): Same.
11713 (write_attr_get): Same.
11714 (eliminate_known_true): Same.
11715 (write_insn_cases): Same.
11716 (write_attr_case): Same.
11717 (write_attr_valueq): Same.
11718 (write_attr_value): Same.
11719 (write_dummy_eligible_delay): Same.
11720 (next_comma_elt): Same.
11721 (find_attr): Same.
11722 (make_internal_attr): Same.
11723 (copy_rtx_unchanging): Same.
11724 (gen_insn_reserv): Same.
11725 (check_tune_attr): Same.
11726 (make_automaton_attrs): Same.
11727 (handle_arg): Same.
11728 * genextract.c (gen_insn): Same.
11729 (VEC_char_to_string): Same.
11730 * genmatch.c (print_operand): Same.
11731 (lower): Same.
11732 (parser::parse_operation): Same.
11733 (parser::parse_capture): Same.
11734 (parser::parse_c_expr): Same.
11735 (parser::parse_simplify): Same.
11736 (main): Same.
11737 * genoutput.c (output_operand_data): Same.
11738 (output_get_insn_name): Same.
11739 (compare_operands): Same.
11740 (place_operands): Same.
11741 (process_template): Same.
11742 (validate_insn_alternatives): Same.
11743 (validate_insn_operands): Same.
11744 (gen_expand): Same.
11745 (note_constraint): Same.
11746 * genpreds.c (write_one_predicate_function): Same.
11747 (add_constraint): Same.
11748 (process_define_register_constraint): Same.
11749 (write_lookup_constraint_1): Same.
11750 (write_lookup_constraint_array): Same.
11751 (write_insn_constraint_len): Same.
11752 (write_reg_class_for_constraint_1): Same.
11753 (write_constraint_satisfied_p_array): Same.
11754 * genrecog.c (optimize_subroutine_group): Same.
11755 * gensupport.c (process_define_predicate): Same.
11756 (queue_pattern): Same.
11757 (remove_from_queue): Same.
11758 (process_rtx): Same.
11759 (is_predicable): Same.
11760 (change_subst_attribute): Same.
11761 (subst_pattern_match): Same.
11762 (alter_constraints): Same.
11763 (alter_attrs_for_insn): Same.
11764 (shift_output_template): Same.
11765 (alter_output_for_subst_insn): Same.
11766 (process_one_cond_exec): Same.
11767 (subst_dup): Same.
11768 (process_define_cond_exec): Same.
11769 (mnemonic_htab_callback): Same.
11770 (gen_mnemonic_attr): Same.
11771 (read_md_rtx): Same.
11772 * ggc-page.c: Same.
11773 * gimple-loop-interchange.cc (dump_reduction): Same.
11774 (dump_induction): Same.
11775 (loop_cand::~loop_cand): Same.
11776 (free_data_refs_with_aux): Same.
11777 (tree_loop_interchange::interchange_loops): Same.
11778 (tree_loop_interchange::map_inductions_to_loop): Same.
11779 (tree_loop_interchange::move_code_to_inner_loop): Same.
11780 (compute_access_stride): Same.
11781 (compute_access_strides): Same.
11782 (proper_loop_form_for_interchange): Same.
11783 (tree_loop_interchange_compute_ddrs): Same.
11784 (prune_datarefs_not_in_loop): Same.
11785 (prepare_data_references): Same.
11786 (pass_linterchange::execute): Same.
11787 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11788 (unroll_jam_possible_p): Same.
11789 (fuse_loops): Same.
11790 (adjust_unroll_factor): Same.
11791 (tree_loop_unroll_and_jam): Same.
11792 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11793 (loop_versioning::expensive_stmt_p): Same.
11794 (loop_versioning::version_for_unity): Same.
11795 (loop_versioning::dump_inner_likelihood): Same.
11796 (loop_versioning::find_per_loop_multiplication): Same.
11797 (loop_versioning::analyze_term_using_scevs): Same.
11798 (loop_versioning::record_address_fragment): Same.
11799 (loop_versioning::analyze_expr): Same.
11800 (loop_versioning::analyze_blocks): Same.
11801 (loop_versioning::prune_conditions): Same.
11802 (loop_versioning::merge_loop_info): Same.
11803 (loop_versioning::add_loop_to_queue): Same.
11804 (loop_versioning::decide_whether_loop_is_versionable): Same.
11805 (loop_versioning::make_versioning_decisions): Same.
11806 (loop_versioning::implement_versioning_decisions): Same.
11807 * gimple-ssa-evrp-analyze.c
11808 (evrp_range_analyzer::record_ranges_from_phis): Same.
11809 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11810 (count_multiple_uses): Same.
11811 (split_group): Same.
11812 (imm_store_chain_info::output_merged_store): Same.
11813 (pass_store_merging::process_store): Same.
11814 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11815 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11816 (is_max): Same.
11817 (alloca_call_type): Same.
11818 (pass_walloca::execute): Same.
11819 * gimple-streamer-in.c (input_phi): Same.
11820 (input_gimple_stmt): Same.
11821 * gimple-streamer.h: Same.
11822 * godump.c (go_force_record_alignment): Same.
11823 (go_format_type): Same.
11824 (go_output_type): Same.
11825 (go_output_fndecl): Same.
11826 (go_output_typedef): Same.
11827 (keyword_hash_init): Same.
11828 (find_dummy_types): Same.
11829 * graph.c (draw_cfg_nodes_no_loops): Same.
11830 (draw_cfg_nodes_for_loop): Same.
11831 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11832 * hsa-brig.c: Same.
11833 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11834 * hsa-dump.c (dump_hsa_cfun): Same.
11835 * hsa-gen.c (gen_function_def_parameters): Same.
11836 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11837 * input.c (dump_line_table_statistics): Same.
11838 (test_lexer): Same.
11839 * input.h: Same.
11840 * internal-fn.c (get_multi_vector_move): Same.
11841 (expand_load_lanes_optab_fn): Same.
11842 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11843 (expand_GOMP_SIMT_EXIT): Same.
11844 (expand_GOMP_SIMT_LAST_LANE): Same.
11845 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11846 (expand_GOMP_SIMT_VOTE_ANY): Same.
11847 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11848 (expand_GOMP_SIMT_XCHG_IDX): Same.
11849 (expand_addsub_overflow): Same.
11850 (expand_neg_overflow): Same.
11851 (expand_mul_overflow): Same.
11852 (expand_call_mem_ref): Same.
11853 (expand_mask_load_optab_fn): Same.
11854 (expand_scatter_store_optab_fn): Same.
11855 (expand_gather_load_optab_fn): Same.
11856 * ipa-cp.c (ipa_get_parm_lattices): Same.
11857 (print_all_lattices): Same.
11858 (ignore_edge_p): Same.
11859 (build_toporder_info): Same.
11860 (free_toporder_info): Same.
11861 (push_node_to_stack): Same.
11862 (ipcp_lattice<valtype>::set_contains_variable): Same.
11863 (set_agg_lats_to_bottom): Same.
11864 (ipcp_bits_lattice::meet_with): Same.
11865 (set_single_call_flag): Same.
11866 (initialize_node_lattices): Same.
11867 (ipa_get_jf_ancestor_result): Same.
11868 (ipcp_verify_propagated_values): Same.
11869 (propagate_scalar_across_jump_function): Same.
11870 (propagate_context_across_jump_function): Same.
11871 (propagate_bits_across_jump_function): Same.
11872 (ipa_vr_operation_and_type_effects): Same.
11873 (propagate_vr_across_jump_function): Same.
11874 (set_check_aggs_by_ref): Same.
11875 (set_chain_of_aglats_contains_variable): Same.
11876 (merge_aggregate_lattices): Same.
11877 (agg_pass_through_permissible_p): Same.
11878 (propagate_aggs_across_jump_function): Same.
11879 (call_passes_through_thunk_p): Same.
11880 (propagate_constants_across_call): Same.
11881 (devirtualization_time_bonus): Same.
11882 (good_cloning_opportunity_p): Same.
11883 (context_independent_aggregate_values): Same.
11884 (gather_context_independent_values): Same.
11885 (perform_estimation_of_a_value): Same.
11886 (estimate_local_effects): Same.
11887 (value_topo_info<valtype>::add_val): Same.
11888 (add_all_node_vals_to_toposort): Same.
11889 (value_topo_info<valtype>::propagate_effects): Same.
11890 (ipcp_propagate_stage): Same.
11891 (ipcp_discover_new_direct_edges): Same.
11892 (same_node_or_its_all_contexts_clone_p): Same.
11893 (cgraph_edge_brings_value_p): Same.
11894 (gather_edges_for_value): Same.
11895 (create_specialized_node): Same.
11896 (find_more_scalar_values_for_callers_subset): Same.
11897 (find_more_contexts_for_caller_subset): Same.
11898 (copy_plats_to_inter): Same.
11899 (intersect_aggregates_with_edge): Same.
11900 (find_aggregate_values_for_callers_subset): Same.
11901 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11902 (decide_about_value): Same.
11903 (decide_whether_version_node): Same.
11904 (spread_undeadness): Same.
11905 (identify_dead_nodes): Same.
11906 (ipcp_store_vr_results): Same.
11907 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11908 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11909 (redirect_to_unreachable): Same.
11910 (edge_set_predicate): Same.
11911 (evaluate_conditions_for_known_args): Same.
11912 (evaluate_properties_for_edge): Same.
11913 (ipa_fn_summary_t::duplicate): Same.
11914 (ipa_call_summary_t::duplicate): Same.
11915 (dump_ipa_call_summary): Same.
11916 (ipa_dump_fn_summary): Same.
11917 (eliminated_by_inlining_prob): Same.
11918 (set_cond_stmt_execution_predicate): Same.
11919 (set_switch_stmt_execution_predicate): Same.
11920 (compute_bb_predicates): Same.
11921 (will_be_nonconstant_expr_predicate): Same.
11922 (phi_result_unknown_predicate): Same.
11923 (analyze_function_body): Same.
11924 (compute_fn_summary): Same.
11925 (estimate_edge_devirt_benefit): Same.
11926 (estimate_edge_size_and_time): Same.
11927 (estimate_calls_size_and_time): Same.
11928 (estimate_node_size_and_time): Same.
11929 (remap_edge_change_prob): Same.
11930 (remap_edge_summaries): Same.
11931 (ipa_merge_fn_summary_after_inlining): Same.
11932 (ipa_fn_summary_generate): Same.
11933 (inline_read_section): Same.
11934 (ipa_fn_summary_read): Same.
11935 (ipa_fn_summary_write): Same.
11936 * ipa-fnsummary.h: Same.
11937 * ipa-hsa.c (ipa_hsa_read_section): Same.
11938 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11939 * ipa-icf.c (sem_function::param_used_p): Same.
11940 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11941 * ipa-inline.c (edge_badness): Same.
11942 (inline_small_functions): Same.
11943 * ipa-polymorphic-call.c
11944 (ipa_polymorphic_call_context::stream_out): Same.
11945 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11946 (predicate::remap_after_inlining): Same.
11947 (predicate::stream_out): Same.
11948 * ipa-predicate.h: Same.
11949 * ipa-profile.c (ipa_profile_read_summary): Same.
11950 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11951 (count_formal_params): Same.
11952 (ipa_dump_param): Same.
11953 (ipa_alloc_node_params): Same.
11954 (ipa_print_node_jump_functions_for_edge): Same.
11955 (ipa_print_node_jump_functions): Same.
11956 (ipa_load_from_parm_agg): Same.
11957 (get_ancestor_addr_info): Same.
11958 (ipa_compute_jump_functions_for_edge): Same.
11959 (ipa_analyze_virtual_call_uses): Same.
11960 (ipa_analyze_stmt_uses): Same.
11961 (ipa_analyze_params_uses_in_bb): Same.
11962 (update_jump_functions_after_inlining): Same.
11963 (try_decrement_rdesc_refcount): Same.
11964 (ipa_impossible_devirt_target): Same.
11965 (update_indirect_edges_after_inlining): Same.
11966 (combine_controlled_uses_counters): Same.
11967 (ipa_edge_args_sum_t::duplicate): Same.
11968 (ipa_write_jump_function): Same.
11969 (ipa_write_indirect_edge_info): Same.
11970 (ipa_write_node_info): Same.
11971 (ipa_read_edge_info): Same.
11972 (ipa_prop_read_section): Same.
11973 (read_replacements_section): Same.
11974 * ipa-prop.h (ipa_get_param_count): Same.
11975 (ipa_get_param): Same.
11976 (ipa_get_type): Same.
11977 (ipa_get_param_move_cost): Same.
11978 (ipa_set_param_used): Same.
11979 (ipa_get_controlled_uses): Same.
11980 (ipa_set_controlled_uses): Same.
11981 (ipa_get_cs_argument_count): Same.
11982 * ipa-pure-const.c (analyze_function): Same.
11983 (pure_const_read_summary): Same.
11984 * ipa-ref.h: Same.
11985 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11986 * ipa-split.c (test_nonssa_use): Same.
11987 (dump_split_point): Same.
11988 (dominated_by_forbidden): Same.
11989 (split_part_set_ssa_name_p): Same.
11990 (find_split_points): Same.
11991 * ira-build.c (finish_loop_tree_nodes): Same.
11992 (low_pressure_loop_node_p): Same.
11993 * ira-color.c (ira_reuse_stack_slot): Same.
11994 * ira-int.h: Same.
11995 * ira.c (setup_reg_equiv): Same.
11996 (print_insn_chain): Same.
11997 (ira): Same.
11998 * loop-doloop.c (doloop_condition_get): Same.
11999 (add_test): Same.
12000 (record_reg_sets): Same.
12001 (doloop_optimize): Same.
12002 * loop-init.c (loop_optimizer_init): Same.
12003 (fix_loop_structure): Same.
12004 * loop-invariant.c (merge_identical_invariants): Same.
12005 (compute_always_reached): Same.
12006 (find_exits): Same.
12007 (may_assign_reg_p): Same.
12008 (find_invariants_bb): Same.
12009 (find_invariants_body): Same.
12010 (replace_uses): Same.
12011 (can_move_invariant_reg): Same.
12012 (free_inv_motion_data): Same.
12013 (move_single_loop_invariants): Same.
12014 (change_pressure): Same.
12015 (mark_ref_regs): Same.
12016 (calculate_loop_reg_pressure): Same.
12017 * loop-iv.c (biv_entry_hasher::equal): Same.
12018 (iv_extend_to_rtx_code): Same.
12019 (check_iv_ref_table_size): Same.
12020 (clear_iv_info): Same.
12021 (latch_dominating_def): Same.
12022 (iv_get_reaching_def): Same.
12023 (iv_constant): Same.
12024 (iv_subreg): Same.
12025 (iv_extend): Same.
12026 (iv_neg): Same.
12027 (iv_add): Same.
12028 (iv_mult): Same.
12029 (get_biv_step): Same.
12030 (record_iv): Same.
12031 (analyzed_for_bivness_p): Same.
12032 (record_biv): Same.
12033 (iv_analyze_biv): Same.
12034 (iv_analyze_expr): Same.
12035 (iv_analyze_def): Same.
12036 (iv_analyze_op): Same.
12037 (iv_analyze): Same.
12038 (iv_analyze_result): Same.
12039 (biv_p): Same.
12040 (eliminate_implied_conditions): Same.
12041 (simplify_using_initial_values): Same.
12042 (shorten_into_mode): Same.
12043 (canonicalize_iv_subregs): Same.
12044 (determine_max_iter): Same.
12045 (check_simple_exit): Same.
12046 (find_simple_exit): Same.
12047 (get_simple_loop_desc): Same.
12048 * loop-unroll.c (report_unroll): Same.
12049 (decide_unrolling): Same.
12050 (unroll_loops): Same.
12051 (loop_exit_at_end_p): Same.
12052 (decide_unroll_constant_iterations): Same.
12053 (unroll_loop_constant_iterations): Same.
12054 (compare_and_jump_seq): Same.
12055 (unroll_loop_runtime_iterations): Same.
12056 (decide_unroll_stupid): Same.
12057 (unroll_loop_stupid): Same.
12058 (referenced_in_one_insn_in_loop_p): Same.
12059 (reset_debug_uses_in_loop): Same.
12060 (analyze_iv_to_split_insn): Same.
12061 * lra-eliminations.c (lra_debug_elim_table): Same.
12062 (setup_can_eliminate): Same.
12063 (form_sum): Same.
12064 (lra_get_elimination_hard_regno): Same.
12065 (lra_eliminate_regs_1): Same.
12066 (eliminate_regs_in_insn): Same.
12067 (update_reg_eliminate): Same.
12068 (init_elimination): Same.
12069 (lra_eliminate): Same.
12070 * lra-int.h: Same.
12071 * lra-lives.c (initiate_live_solver): Same.
12072 * lra-remat.c (create_remat_bb_data): Same.
12073 * lra-spills.c (lra_spill): Same.
12074 * lra.c (lra_set_insn_recog_data): Same.
12075 (lra_set_used_insn_alternative_by_uid): Same.
12076 (init_reg_info): Same.
12077 (expand_reg_info): Same.
12078 * lto-cgraph.c (output_symtab): Same.
12079 (read_identifier): Same.
12080 (get_alias_symbol): Same.
12081 (input_node): Same.
12082 (input_varpool_node): Same.
12083 (input_ref): Same.
12084 (input_edge): Same.
12085 (input_cgraph_1): Same.
12086 (input_refs): Same.
12087 (input_symtab): Same.
12088 (input_offload_tables): Same.
12089 (output_cgraph_opt_summary): Same.
12090 (input_edge_opt_summary): Same.
12091 (input_cgraph_opt_section): Same.
12092 * lto-section-in.c (lto_free_raw_section_data): Same.
12093 (lto_create_simple_input_block): Same.
12094 (lto_free_function_in_decl_state_for_node): Same.
12095 * lto-streamer-in.c (lto_tag_check_set): Same.
12096 (lto_location_cache::revert_location_cache): Same.
12097 (lto_location_cache::input_location): Same.
12098 (lto_input_location): Same.
12099 (stream_input_location_now): Same.
12100 (lto_input_tree_ref): Same.
12101 (lto_input_eh_catch_list): Same.
12102 (input_eh_region): Same.
12103 (lto_init_eh): Same.
12104 (make_new_block): Same.
12105 (input_cfg): Same.
12106 (fixup_call_stmt_edges): Same.
12107 (input_struct_function_base): Same.
12108 (input_function): Same.
12109 (lto_read_body_or_constructor): Same.
12110 (lto_read_tree_1): Same.
12111 (lto_read_tree): Same.
12112 (lto_input_scc): Same.
12113 (lto_input_tree_1): Same.
12114 (lto_input_toplevel_asms): Same.
12115 (lto_input_mode_table): Same.
12116 (lto_reader_init): Same.
12117 (lto_data_in_create): Same.
12118 * lto-streamer-out.c (output_cfg): Same.
12119 * lto-streamer.h: Same.
12120 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12121 (generate_prolog_epilog): Same.
12122 (mark_loop_unsched): Same.
12123 (dump_insn_location): Same.
12124 (loop_canon_p): Same.
12125 (sms_schedule): Same.
12126 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12127 (expand_omp_for_generic): Same.
12128 (expand_omp_for_static_nochunk): Same.
12129 (expand_omp_for_static_chunk): Same.
12130 (expand_omp_simd): Same.
12131 (expand_omp_taskloop_for_inner): Same.
12132 (expand_oacc_for): Same.
12133 (expand_omp_atomic_pipeline): Same.
12134 (mark_loops_in_oacc_kernels_region): Same.
12135 * omp-offload.c (oacc_xform_loop): Same.
12136 * omp-simd-clone.c (simd_clone_adjust): Same.
12137 * optabs-query.c (get_traditional_extraction_insn): Same.
12138 * optabs.c (expand_vector_broadcast): Same.
12139 (expand_binop_directly): Same.
12140 (expand_twoval_unop): Same.
12141 (expand_twoval_binop): Same.
12142 (expand_unop_direct): Same.
12143 (emit_indirect_jump): Same.
12144 (emit_conditional_move): Same.
12145 (emit_conditional_neg_or_complement): Same.
12146 (emit_conditional_add): Same.
12147 (vector_compare_rtx): Same.
12148 (expand_vec_perm_1): Same.
12149 (expand_vec_perm_const): Same.
12150 (expand_vec_cond_expr): Same.
12151 (expand_vec_series_expr): Same.
12152 (maybe_emit_atomic_exchange): Same.
12153 (maybe_emit_sync_lock_test_and_set): Same.
12154 (expand_atomic_compare_and_swap): Same.
12155 (expand_atomic_load): Same.
12156 (expand_atomic_store): Same.
12157 (maybe_emit_op): Same.
12158 (valid_multiword_target_p): Same.
12159 (create_integer_operand): Same.
12160 (maybe_legitimize_operand_same_code): Same.
12161 (maybe_legitimize_operand): Same.
12162 (create_convert_operand_from_type): Same.
12163 (can_reuse_operands_p): Same.
12164 (maybe_legitimize_operands): Same.
12165 (maybe_gen_insn): Same.
12166 (maybe_expand_insn): Same.
12167 (maybe_expand_jump_insn): Same.
12168 (expand_insn): Same.
12169 * optabs.h (create_expand_operand): Same.
12170 (create_fixed_operand): Same.
12171 (create_output_operand): Same.
12172 (create_input_operand): Same.
12173 (create_convert_operand_to): Same.
12174 (create_convert_operand_from): Same.
12175 * optinfo.h: Same.
12176 * poly-int.h: Same.
12177 * predict.c (optimize_insn_for_speed_p): Same.
12178 (optimize_loop_for_size_p): Same.
12179 (optimize_loop_for_speed_p): Same.
12180 (optimize_loop_nest_for_speed_p): Same.
12181 (get_base_value): Same.
12182 (predicted_by_loop_heuristics_p): Same.
12183 (predict_extra_loop_exits): Same.
12184 (predict_loops): Same.
12185 (predict_paths_for_bb): Same.
12186 (predict_paths_leading_to): Same.
12187 (propagate_freq): Same.
12188 (pass_profile::execute): Same.
12189 * predict.h: Same.
12190 * profile-count.c (profile_count::differs_from_p): Same.
12191 (profile_probability::differs_lot_from_p): Same.
12192 * profile-count.h: Same.
12193 * profile.c (branch_prob): Same.
12194 * regrename.c (free_chain_data): Same.
12195 (mark_conflict): Same.
12196 (create_new_chain): Same.
12197 (merge_overlapping_regs): Same.
12198 (init_rename_info): Same.
12199 (merge_chains): Same.
12200 (regrename_analyze): Same.
12201 (regrename_do_replace): Same.
12202 (scan_rtx_reg): Same.
12203 (record_out_operands): Same.
12204 (build_def_use): Same.
12205 * regrename.h: Same.
12206 * reload.h: Same.
12207 * reload1.c (init_reload): Same.
12208 (maybe_fix_stack_asms): Same.
12209 (copy_reloads): Same.
12210 (count_pseudo): Same.
12211 (count_spilled_pseudo): Same.
12212 (find_reg): Same.
12213 (find_reload_regs): Same.
12214 (select_reload_regs): Same.
12215 (spill_hard_reg): Same.
12216 (fixup_eh_region_note): Same.
12217 (set_reload_reg): Same.
12218 (allocate_reload_reg): Same.
12219 (compute_reload_subreg_offset): Same.
12220 (reload_adjust_reg_for_icode): Same.
12221 (emit_input_reload_insns): Same.
12222 (emit_output_reload_insns): Same.
12223 (do_input_reload): Same.
12224 (inherit_piecemeal_p): Same.
12225 * rtl.h: Same.
12226 * sanopt.c (maybe_get_dominating_check): Same.
12227 (maybe_optimize_ubsan_ptr_ifn): Same.
12228 (can_remove_asan_check): Same.
12229 (maybe_optimize_asan_check_ifn): Same.
12230 (sanopt_optimize_walker): Same.
12231 * sched-deps.c (add_dependence_list): Same.
12232 (chain_to_prev_insn): Same.
12233 (add_insn_mem_dependence): Same.
12234 (create_insn_reg_set): Same.
12235 (maybe_extend_reg_info_p): Same.
12236 (sched_analyze_reg): Same.
12237 (sched_analyze_1): Same.
12238 (get_implicit_reg_pending_clobbers): Same.
12239 (chain_to_prev_insn_p): Same.
12240 (deps_analyze_insn): Same.
12241 (deps_start_bb): Same.
12242 (sched_free_deps): Same.
12243 (init_deps): Same.
12244 (init_deps_reg_last): Same.
12245 (free_deps): Same.
12246 * sched-ebb.c: Same.
12247 * sched-int.h: Same.
12248 * sched-rgn.c (add_branch_dependences): Same.
12249 (concat_insn_mem_list): Same.
12250 (deps_join): Same.
12251 (sched_rgn_compute_dependencies): Same.
12252 * sel-sched-ir.c (reset_target_context): Same.
12253 (copy_deps_context): Same.
12254 (init_id_from_df): Same.
12255 (has_dependence_p): Same.
12256 (change_loops_latches): Same.
12257 (bb_top_order_comparator): Same.
12258 (make_region_from_loop_preheader): Same.
12259 (sel_init_pipelining): Same.
12260 (get_loop_nest_for_rgn): Same.
12261 (make_regions_from_the_rest): Same.
12262 (sel_is_loop_preheader_p): Same.
12263 * sel-sched-ir.h (inner_loop_header_p): Same.
12264 (get_all_loop_exits): Same.
12265 * selftest.h: Same.
12266 * sese.c (sese_build_liveouts): Same.
12267 (sese_insert_phis_for_liveouts): Same.
12268 * sese.h (defined_in_sese_p): Same.
12269 * sreal.c (sreal::stream_out): Same.
12270 * sreal.h: Same.
12271 * streamer-hooks.h: Same.
12272 * target-globals.c (save_target_globals): Same.
12273 * target-globals.h: Same.
12274 * target.def: Same.
12275 * target.h: Same.
12276 * targhooks.c (default_has_ifunc_p): Same.
12277 (default_empty_mask_is_expensive): Same.
12278 (default_init_cost): Same.
12279 * targhooks.h: Same.
12280 * toplev.c: Same.
12281 * tree-affine.c (aff_combination_mult): Same.
12282 (aff_combination_expand): Same.
12283 (aff_combination_constant_multiple_p): Same.
12284 * tree-affine.h: Same.
12285 * tree-cfg.c (build_gimple_cfg): Same.
12286 (replace_loop_annotate_in_block): Same.
12287 (replace_uses_by): Same.
12288 (remove_bb): Same.
12289 (dump_cfg_stats): Same.
12290 (gimple_duplicate_sese_region): Same.
12291 (gimple_duplicate_sese_tail): Same.
12292 (move_block_to_fn): Same.
12293 (replace_block_vars_by_duplicates): Same.
12294 (move_sese_region_to_fn): Same.
12295 (print_loops_bb): Same.
12296 (print_loop): Same.
12297 (print_loops): Same.
12298 (debug): Same.
12299 (debug_loops): Same.
12300 * tree-cfg.h: Same.
12301 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12302 (chrec_fold_multiply_poly_poly): Same.
12303 (chrec_evaluate): Same.
12304 (chrec_component_in_loop_num): Same.
12305 (reset_evolution_in_loop): Same.
12306 (is_multivariate_chrec): Same.
12307 (chrec_contains_symbols): Same.
12308 (nb_vars_in_chrec): Same.
12309 (chrec_convert_1): Same.
12310 (chrec_convert_aggressive): Same.
12311 * tree-chrec.h: Same.
12312 * tree-core.h: Same.
12313 * tree-data-ref.c (dump_data_dependence_relation): Same.
12314 (canonicalize_base_object_address): Same.
12315 (data_ref_compare_tree): Same.
12316 (prune_runtime_alias_test_list): Same.
12317 (get_segment_min_max): Same.
12318 (create_intersect_range_checks): Same.
12319 (conflict_fn_no_dependence): Same.
12320 (object_address_invariant_in_loop_p): Same.
12321 (analyze_ziv_subscript): Same.
12322 (analyze_siv_subscript_cst_affine): Same.
12323 (analyze_miv_subscript): Same.
12324 (analyze_overlapping_iterations): Same.
12325 (build_classic_dist_vector_1): Same.
12326 (add_other_self_distances): Same.
12327 (same_access_functions): Same.
12328 (build_classic_dir_vector): Same.
12329 (subscript_dependence_tester_1): Same.
12330 (subscript_dependence_tester): Same.
12331 (access_functions_are_affine_or_constant_p): Same.
12332 (get_references_in_stmt): Same.
12333 (loop_nest_has_data_refs): Same.
12334 (graphite_find_data_references_in_stmt): Same.
12335 (find_data_references_in_bb): Same.
12336 (get_base_for_alignment): Same.
12337 (find_loop_nest_1): Same.
12338 (find_loop_nest): Same.
12339 * tree-data-ref.h (dr_alignment): Same.
12340 (ddr_dependence_level): Same.
12341 * tree-if-conv.c (fold_build_cond_expr): Same.
12342 (add_to_predicate_list): Same.
12343 (add_to_dst_predicate_list): Same.
12344 (phi_convertible_by_degenerating_args): Same.
12345 (idx_within_array_bound): Same.
12346 (all_preds_critical_p): Same.
12347 (pred_blocks_visited_p): Same.
12348 (predicate_bbs): Same.
12349 (build_region): Same.
12350 (if_convertible_loop_p_1): Same.
12351 (is_cond_scalar_reduction): Same.
12352 (predicate_scalar_phi): Same.
12353 (remove_conditions_and_labels): Same.
12354 (combine_blocks): Same.
12355 (version_loop_for_if_conversion): Same.
12356 (versionable_outer_loop_p): Same.
12357 (ifcvt_local_dce): Same.
12358 (tree_if_conversion): Same.
12359 (pass_if_conversion::gate): Same.
12360 * tree-if-conv.h: Same.
12361 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12362 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12363 (free_rdg): Same.
12364 (stmt_has_scalar_dependences_outside_loop): Same.
12365 (copy_loop_before): Same.
12366 (create_bb_after_loop): Same.
12367 (const_with_all_bytes_same): Same.
12368 (generate_memset_builtin): Same.
12369 (generate_memcpy_builtin): Same.
12370 (destroy_loop): Same.
12371 (build_rdg_partition_for_vertex): Same.
12372 (compute_access_range): Same.
12373 (data_ref_segment_size): Same.
12374 (latch_dominated_by_data_ref): Same.
12375 (compute_alias_check_pairs): Same.
12376 (fuse_memset_builtins): Same.
12377 (finalize_partitions): Same.
12378 (find_seed_stmts_for_distribution): Same.
12379 (prepare_perfect_loop_nest): Same.
12380 * tree-parloops.c (lambda_transform_legal_p): Same.
12381 (loop_parallel_p): Same.
12382 (reduc_stmt_res): Same.
12383 (add_field_for_name): Same.
12384 (create_call_for_reduction_1): Same.
12385 (replace_uses_in_bb_by): Same.
12386 (transform_to_exit_first_loop_alt): Same.
12387 (try_transform_to_exit_first_loop_alt): Same.
12388 (transform_to_exit_first_loop): Same.
12389 (num_phis): Same.
12390 (gen_parallel_loop): Same.
12391 (gather_scalar_reductions): Same.
12392 (get_omp_data_i_param): Same.
12393 (try_create_reduction_list): Same.
12394 (oacc_entry_exit_single_gang): Same.
12395 (parallelize_loops): Same.
12396 * tree-pass.h: Same.
12397 * tree-predcom.c (determine_offset): Same.
12398 (last_always_executed_block): Same.
12399 (split_data_refs_to_components): Same.
12400 (suitable_component_p): Same.
12401 (valid_initializer_p): Same.
12402 (find_looparound_phi): Same.
12403 (insert_looparound_copy): Same.
12404 (add_looparound_copies): Same.
12405 (determine_roots_comp): Same.
12406 (predcom_tmp_var): Same.
12407 (initialize_root_vars): Same.
12408 (initialize_root_vars_store_elim_1): Same.
12409 (initialize_root_vars_store_elim_2): Same.
12410 (finalize_eliminated_stores): Same.
12411 (initialize_root_vars_lm): Same.
12412 (remove_stmt): Same.
12413 (determine_unroll_factor): Same.
12414 (execute_pred_commoning_cbck): Same.
12415 (base_names_in_chain_on): Same.
12416 (combine_chains): Same.
12417 (pcom_stmt_dominates_stmt_p): Same.
12418 (try_combine_chains): Same.
12419 (prepare_initializers_chain_store_elim): Same.
12420 (prepare_initializers_chain): Same.
12421 (prepare_initializers): Same.
12422 (prepare_finalizers_chain): Same.
12423 (prepare_finalizers): Same.
12424 (insert_init_seqs): Same.
12425 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12426 (compute_overall_effect_of_inner_loop): Same.
12427 (add_to_evolution_1): Same.
12428 (add_to_evolution): Same.
12429 (follow_ssa_edge_binary): Same.
12430 (follow_ssa_edge_expr): Same.
12431 (backedge_phi_arg_p): Same.
12432 (follow_ssa_edge_in_condition_phi_branch): Same.
12433 (follow_ssa_edge_in_condition_phi): Same.
12434 (follow_ssa_edge_inner_loop_phi): Same.
12435 (follow_ssa_edge): Same.
12436 (analyze_evolution_in_loop): Same.
12437 (analyze_initial_condition): Same.
12438 (interpret_loop_phi): Same.
12439 (interpret_condition_phi): Same.
12440 (interpret_rhs_expr): Same.
12441 (interpret_expr): Same.
12442 (interpret_gimple_assign): Same.
12443 (analyze_scalar_evolution_1): Same.
12444 (analyze_scalar_evolution): Same.
12445 (analyze_scalar_evolution_for_address_of): Same.
12446 (get_instantiated_value_entry): Same.
12447 (loop_closed_phi_def): Same.
12448 (instantiate_scev_name): Same.
12449 (instantiate_scev_poly): Same.
12450 (instantiate_scev_binary): Same.
12451 (instantiate_scev_convert): Same.
12452 (instantiate_scev_not): Same.
12453 (instantiate_scev_r): Same.
12454 (instantiate_scev): Same.
12455 (resolve_mixers): Same.
12456 (initialize_scalar_evolutions_analyzer): Same.
12457 (scev_reset_htab): Same.
12458 (scev_reset): Same.
12459 (derive_simple_iv_with_niters): Same.
12460 (simple_iv_with_niters): Same.
12461 (expression_expensive_p): Same.
12462 (final_value_replacement_loop): Same.
12463 * tree-scalar-evolution.h (block_before_loop): Same.
12464 * tree-ssa-address.h: Same.
12465 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12466 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12467 (record_edge_info): Same.
12468 * tree-ssa-live.c (var_map_base_fini): Same.
12469 (remove_unused_locals): Same.
12470 * tree-ssa-live.h: Same.
12471 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12472 (pass_ch_vect::execute): Same.
12473 (pass_ch::process_loop_p): Same.
12474 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12475 (movement_possibility): Same.
12476 (outermost_invariant_loop): Same.
12477 (stmt_cost): Same.
12478 (determine_max_movement): Same.
12479 (invariantness_dom_walker::before_dom_children): Same.
12480 (move_computations): Same.
12481 (may_move_till): Same.
12482 (force_move_till_op): Same.
12483 (force_move_till): Same.
12484 (memref_free): Same.
12485 (record_mem_ref_loc): Same.
12486 (set_ref_stored_in_loop): Same.
12487 (mark_ref_stored): Same.
12488 (sort_bbs_in_loop_postorder_cmp): Same.
12489 (sort_locs_in_loop_postorder_cmp): Same.
12490 (analyze_memory_references): Same.
12491 (mem_refs_may_alias_p): Same.
12492 (find_ref_loc_in_loop_cmp): Same.
12493 (rewrite_mem_ref_loc::operator): Same.
12494 (first_mem_ref_loc_1::operator): Same.
12495 (sm_set_flag_if_changed::operator): Same.
12496 (execute_sm_if_changed_flag_set): Same.
12497 (execute_sm): Same.
12498 (hoist_memory_references): Same.
12499 (ref_always_accessed::operator): Same.
12500 (refs_independent_p): Same.
12501 (record_dep_loop): Same.
12502 (ref_indep_loop_p_1): Same.
12503 (ref_indep_loop_p): Same.
12504 (can_sm_ref_p): Same.
12505 (find_refs_for_sm): Same.
12506 (loop_suitable_for_sm): Same.
12507 (store_motion_loop): Same.
12508 (store_motion): Same.
12509 (fill_always_executed_in): Same.
12510 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12511 (estimated_unrolled_size): Same.
12512 (loop_edge_to_cancel): Same.
12513 (remove_exits_and_undefined_stmts): Same.
12514 (remove_redundant_iv_tests): Same.
12515 (unloop_loops): Same.
12516 (estimated_peeled_sequence_size): Same.
12517 (try_peel_loop): Same.
12518 (canonicalize_loop_induction_variables): Same.
12519 (canonicalize_induction_variables): Same.
12520 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12521 (name_info): Same.
12522 (stmt_after_inc_pos): Same.
12523 (contains_abnormal_ssa_name_p): Same.
12524 (niter_for_exit): Same.
12525 (find_bivs): Same.
12526 (mark_bivs): Same.
12527 (find_givs_in_bb): Same.
12528 (find_induction_variables): Same.
12529 (find_interesting_uses_cond): Same.
12530 (outermost_invariant_loop_for_expr): Same.
12531 (idx_find_step): Same.
12532 (add_candidate_1): Same.
12533 (add_iv_candidate_derived_from_uses): Same.
12534 (alloc_use_cost_map): Same.
12535 (prepare_decl_rtl): Same.
12536 (generic_predict_doloop_p): Same.
12537 (computation_cost): Same.
12538 (determine_common_wider_type): Same.
12539 (get_computation_aff_1): Same.
12540 (get_use_type): Same.
12541 (determine_group_iv_cost_address): Same.
12542 (iv_period): Same.
12543 (difference_cannot_overflow_p): Same.
12544 (may_eliminate_iv): Same.
12545 (determine_set_costs): Same.
12546 (cheaper_cost_pair): Same.
12547 (compare_cost_pair): Same.
12548 (iv_ca_cand_for_group): Same.
12549 (iv_ca_recount_cost): Same.
12550 (iv_ca_set_remove_invs): Same.
12551 (iv_ca_set_no_cp): Same.
12552 (iv_ca_set_add_invs): Same.
12553 (iv_ca_set_cp): Same.
12554 (iv_ca_add_group): Same.
12555 (iv_ca_cost): Same.
12556 (iv_ca_compare_deps): Same.
12557 (iv_ca_delta_reverse): Same.
12558 (iv_ca_delta_commit): Same.
12559 (iv_ca_cand_used_p): Same.
12560 (iv_ca_delta_free): Same.
12561 (iv_ca_new): Same.
12562 (iv_ca_free): Same.
12563 (iv_ca_dump): Same.
12564 (iv_ca_extend): Same.
12565 (iv_ca_narrow): Same.
12566 (iv_ca_prune): Same.
12567 (cheaper_cost_with_cand): Same.
12568 (iv_ca_replace): Same.
12569 (try_add_cand_for): Same.
12570 (get_initial_solution): Same.
12571 (try_improve_iv_set): Same.
12572 (find_optimal_iv_set_1): Same.
12573 (create_new_iv): Same.
12574 (rewrite_use_compare): Same.
12575 (remove_unused_ivs): Same.
12576 (determine_scaling_factor): Same.
12577 * tree-ssa-loop-ivopts.h: Same.
12578 * tree-ssa-loop-manip.c (create_iv): Same.
12579 (compute_live_loop_exits): Same.
12580 (add_exit_phi): Same.
12581 (add_exit_phis): Same.
12582 (find_uses_to_rename_use): Same.
12583 (find_uses_to_rename_def): Same.
12584 (find_uses_to_rename_in_loop): Same.
12585 (rewrite_into_loop_closed_ssa): Same.
12586 (check_loop_closed_ssa_bb): Same.
12587 (split_loop_exit_edge): Same.
12588 (ip_end_pos): Same.
12589 (ip_normal_pos): Same.
12590 (copy_phi_node_args): Same.
12591 (gimple_duplicate_loop_to_header_edge): Same.
12592 (can_unroll_loop_p): Same.
12593 (determine_exit_conditions): Same.
12594 (scale_dominated_blocks_in_loop): Same.
12595 (niter_for_unrolled_loop): Same.
12596 (tree_transform_and_unroll_loop): Same.
12597 (rewrite_all_phi_nodes_with_iv): Same.
12598 * tree-ssa-loop-manip.h: Same.
12599 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12600 (number_of_iterations_ne): Same.
12601 (assert_no_overflow_lt): Same.
12602 (assert_loop_rolls_lt): Same.
12603 (number_of_iterations_lt): Same.
12604 (adjust_cond_for_loop_until_wrap): Same.
12605 (tree_simplify_using_condition): Same.
12606 (simplify_using_initial_conditions): Same.
12607 (simplify_using_outer_evolutions): Same.
12608 (loop_only_exit_p): Same.
12609 (ssa_defined_by_minus_one_stmt_p): Same.
12610 (number_of_iterations_popcount): Same.
12611 (number_of_iterations_exit): Same.
12612 (find_loop_niter): Same.
12613 (finite_loop_p): Same.
12614 (chain_of_csts_start): Same.
12615 (get_val_for): Same.
12616 (loop_niter_by_eval): Same.
12617 (derive_constant_upper_bound_ops): Same.
12618 (do_warn_aggressive_loop_optimizations): Same.
12619 (record_estimate): Same.
12620 (get_cst_init_from_scev): Same.
12621 (record_nonwrapping_iv): Same.
12622 (idx_infer_loop_bounds): Same.
12623 (infer_loop_bounds_from_ref): Same.
12624 (infer_loop_bounds_from_array): Same.
12625 (infer_loop_bounds_from_pointer_arith): Same.
12626 (infer_loop_bounds_from_signedness): Same.
12627 (bound_index): Same.
12628 (discover_iteration_bound_by_body_walk): Same.
12629 (maybe_lower_iteration_bound): Same.
12630 (estimate_numbers_of_iterations): Same.
12631 (estimated_loop_iterations): Same.
12632 (estimated_loop_iterations_int): Same.
12633 (max_loop_iterations): Same.
12634 (max_loop_iterations_int): Same.
12635 (likely_max_loop_iterations): Same.
12636 (likely_max_loop_iterations_int): Same.
12637 (estimated_stmt_executions_int): Same.
12638 (max_stmt_executions): Same.
12639 (likely_max_stmt_executions): Same.
12640 (estimated_stmt_executions): Same.
12641 (stmt_dominates_stmt_p): Same.
12642 (nowrap_type_p): Same.
12643 (loop_exits_before_overflow): Same.
12644 (scev_var_range_cant_overflow): Same.
12645 (scev_probably_wraps_p): Same.
12646 (free_numbers_of_iterations_estimates): Same.
12647 * tree-ssa-loop-niter.h: Same.
12648 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12649 (idx_analyze_ref): Same.
12650 (analyze_ref): Same.
12651 (gather_memory_references_ref): Same.
12652 (mark_nontemporal_store): Same.
12653 (emit_mfence_after_loop): Same.
12654 (may_use_storent_in_loop_p): Same.
12655 (mark_nontemporal_stores): Same.
12656 (should_unroll_loop_p): Same.
12657 (volume_of_dist_vector): Same.
12658 (add_subscript_strides): Same.
12659 (self_reuse_distance): Same.
12660 (insn_to_prefetch_ratio_too_small_p): Same.
12661 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12662 (patch_loop_exit): Same.
12663 (find_or_create_guard_phi): Same.
12664 (easy_exit_values): Same.
12665 (connect_loop_phis): Same.
12666 (connect_loops): Same.
12667 (compute_new_first_bound): Same.
12668 (split_loop): Same.
12669 (tree_ssa_split_loops): Same.
12670 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12671 (is_maybe_undefined): Same.
12672 (tree_may_unswitch_on): Same.
12673 (simplify_using_entry_checks): Same.
12674 (tree_unswitch_single_loop): Same.
12675 (tree_unswitch_loop): Same.
12676 (tree_unswitch_outer_loop): Same.
12677 (empty_bb_without_guard_p): Same.
12678 (used_outside_loop_p): Same.
12679 (get_vop_from_header): Same.
12680 (hoist_guard): Same.
12681 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12682 (get_lsm_tmp_name): Same.
12683 * tree-ssa-loop.h: Same.
12684 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12685 (build_and_add_sum): Same.
12686 (no_side_effect_bb): Same.
12687 (get_ops): Same.
12688 (linearize_expr): Same.
12689 (should_break_up_subtract): Same.
12690 (linearize_expr_tree): Same.
12691 * tree-ssa-scopedtables.c: Same.
12692 * tree-ssa-scopedtables.h: Same.
12693 * tree-ssa-structalias.c (condense_visit): Same.
12694 (label_visit): Same.
12695 (dump_pred_graph): Same.
12696 (perform_var_substitution): Same.
12697 (move_complex_constraints): Same.
12698 (remove_preds_and_fake_succs): Same.
12699 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12700 (determine_bb_domination_status): Same.
12701 (duplicate_thread_path): Same.
12702 (thread_through_all_blocks): Same.
12703 * tree-ssa-threadupdate.h: Same.
12704 * tree-streamer-in.c (streamer_read_string_cst): Same.
12705 (input_identifier): Same.
12706 (unpack_ts_type_common_value_fields): Same.
12707 (unpack_ts_block_value_fields): Same.
12708 (unpack_ts_translation_unit_decl_value_fields): Same.
12709 (unpack_ts_omp_clause_value_fields): Same.
12710 (streamer_read_tree_bitfields): Same.
12711 (streamer_alloc_tree): Same.
12712 (lto_input_ts_common_tree_pointers): Same.
12713 (lto_input_ts_vector_tree_pointers): Same.
12714 (lto_input_ts_poly_tree_pointers): Same.
12715 (lto_input_ts_complex_tree_pointers): Same.
12716 (lto_input_ts_decl_minimal_tree_pointers): Same.
12717 (lto_input_ts_decl_common_tree_pointers): Same.
12718 (lto_input_ts_decl_non_common_tree_pointers): Same.
12719 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12720 (lto_input_ts_field_decl_tree_pointers): Same.
12721 (lto_input_ts_function_decl_tree_pointers): Same.
12722 (lto_input_ts_type_common_tree_pointers): Same.
12723 (lto_input_ts_type_non_common_tree_pointers): Same.
12724 (lto_input_ts_list_tree_pointers): Same.
12725 (lto_input_ts_vec_tree_pointers): Same.
12726 (lto_input_ts_exp_tree_pointers): Same.
12727 (lto_input_ts_block_tree_pointers): Same.
12728 (lto_input_ts_binfo_tree_pointers): Same.
12729 (lto_input_ts_constructor_tree_pointers): Same.
12730 (lto_input_ts_omp_clause_tree_pointers): Same.
12731 (streamer_read_tree_body): Same.
12732 * tree-streamer.h: Same.
12733 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12734 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12735 (vect_analyze_possibly_independent_ddr): Same.
12736 (vect_analyze_data_ref_dependence): Same.
12737 (vect_compute_data_ref_alignment): Same.
12738 (vect_enhance_data_refs_alignment): Same.
12739 (vect_analyze_data_ref_access): Same.
12740 (vect_check_gather_scatter): Same.
12741 (vect_find_stmt_data_reference): Same.
12742 (vect_create_addr_base_for_vector_ref): Same.
12743 (vect_setup_realignment): Same.
12744 (vect_supportable_dr_alignment): Same.
12745 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12746 (adjust_phi_and_debug_stmts): Same.
12747 (vect_set_loop_mask): Same.
12748 (add_preheader_seq): Same.
12749 (vect_maybe_permute_loop_masks): Same.
12750 (vect_set_loop_masks_directly): Same.
12751 (vect_set_loop_condition_masked): Same.
12752 (vect_set_loop_condition_unmasked): Same.
12753 (slpeel_duplicate_current_defs_from_edges): Same.
12754 (slpeel_add_loop_guard): Same.
12755 (slpeel_can_duplicate_loop_p): Same.
12756 (create_lcssa_for_virtual_phi): Same.
12757 (iv_phi_p): Same.
12758 (vect_update_ivs_after_vectorizer): Same.
12759 (vect_gen_vector_loop_niters_mult_vf): Same.
12760 (slpeel_update_phi_nodes_for_loops): Same.
12761 (slpeel_update_phi_nodes_for_guard1): Same.
12762 (find_guard_arg): Same.
12763 (slpeel_update_phi_nodes_for_guard2): Same.
12764 (slpeel_update_phi_nodes_for_lcssa): Same.
12765 (vect_do_peeling): Same.
12766 (vect_create_cond_for_alias_checks): Same.
12767 (vect_loop_versioning): Same.
12768 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12769 (vect_inner_phi_in_double_reduction_p): Same.
12770 (vect_analyze_scalar_cycles_1): Same.
12771 (vect_fixup_scalar_cycles_with_patterns): Same.
12772 (vect_get_loop_niters): Same.
12773 (bb_in_loop_p): Same.
12774 (vect_get_max_nscalars_per_iter): Same.
12775 (vect_verify_full_masking): Same.
12776 (vect_compute_single_scalar_iteration_cost): Same.
12777 (vect_analyze_loop_form_1): Same.
12778 (vect_analyze_loop_form): Same.
12779 (vect_active_double_reduction_p): Same.
12780 (vect_analyze_loop_operations): Same.
12781 (neutral_op_for_slp_reduction): Same.
12782 (vect_is_simple_reduction): Same.
12783 (vect_model_reduction_cost): Same.
12784 (get_initial_def_for_reduction): Same.
12785 (get_initial_defs_for_reduction): Same.
12786 (vect_create_epilog_for_reduction): Same.
12787 (vectorize_fold_left_reduction): Same.
12788 (vectorizable_reduction): Same.
12789 (vectorizable_induction): Same.
12790 (vectorizable_live_operation): Same.
12791 (loop_niters_no_overflow): Same.
12792 (vect_get_loop_mask): Same.
12793 (vect_transform_loop_stmt): Same.
12794 (vect_transform_loop): Same.
12795 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12796 (vect_determine_precisions): Same.
12797 (vect_pattern_recog_1): Same.
12798 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12799 * tree-vect-stmts.c (stmt_vectype): Same.
12800 (process_use): Same.
12801 (vect_init_vector_1): Same.
12802 (vect_truncate_gather_scatter_offset): Same.
12803 (get_group_load_store_type): Same.
12804 (vect_build_gather_load_calls): Same.
12805 (vect_get_strided_load_store_ops): Same.
12806 (vectorizable_simd_clone_call): Same.
12807 (vectorizable_store): Same.
12808 (permute_vec_elements): Same.
12809 (vectorizable_load): Same.
12810 (vect_transform_stmt): Same.
12811 (supportable_widening_operation): Same.
12812 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12813 (vec_info::free_stmt_vec_info): Same.
12814 (vect_free_loop_info_assumptions): Same.
12815 (vect_loop_vectorized_call): Same.
12816 (set_uid_loop_bbs): Same.
12817 (vectorize_loops): Same.
12818 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12819 * tree.c (add_tree_to_fld_list): Same.
12820 (fld_type_variant_equal_p): Same.
12821 (fld_decl_context): Same.
12822 (fld_incomplete_type_of): Same.
12823 (free_lang_data_in_binfo): Same.
12824 (need_assembler_name_p): Same.
12825 (find_decls_types_r): Same.
12826 (get_eh_types_for_runtime): Same.
12827 (find_decls_types_in_eh_region): Same.
12828 (find_decls_types_in_node): Same.
12829 (assign_assembler_name_if_needed): Same.
12830 * value-prof.c (stream_out_histogram_value): Same.
12831 * value-prof.h: Same.
12832 * var-tracking.c (use_narrower_mode): Same.
12833 (prepare_call_arguments): Same.
12834 (vt_expand_loc_callback): Same.
12835 (resolve_expansions_pending_recursion): Same.
12836 (vt_expand_loc): Same.
12837 * varasm.c (const_hash_1): Same.
12838 (compare_constant): Same.
12839 (tree_output_constant_def): Same.
12840 (simplify_subtraction): Same.
12841 (get_pool_constant): Same.
12842 (output_constant_pool_2): Same.
12843 (output_constant_pool_1): Same.
12844 (mark_constants_in_pattern): Same.
12845 (mark_constant_pool): Same.
12846 (get_section_anchor): Same.
12847 * vr-values.c (compare_range_with_value): Same.
12848 (vr_values::extract_range_from_phi_node): Same.
12849 * vr-values.h: Same.
12850 * web.c (unionfind_union): Same.
12851 * wide-int.h: Same.
12852
12853 2019-07-09 Martin Sebor <msebor@redhat.com>
12854
12855 PR c++/61339
12856 * align.h: Change class-key from class to struct and vice versa
12857 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12858 * alloc-pool.h: Same.
12859 * asan.c (shadow_mem_size): Same.
12860 * auto-profile.c: Same.
12861 * basic-block.h: Same.
12862 * bitmap.h: Same.
12863 * cfgexpand.c (set_rtl): Same.
12864 (expand_one_stack_var_at): Same.
12865 * cfghooks.h: Same.
12866 * cfgloop.h: Same.
12867 * cgraph.h: Same.
12868 * config/i386/i386.h: Same.
12869 * df-problems.c (df_print_bb_index): Same.
12870 * df-scan.c: Same.
12871 * df.h (df_single_use): Same.
12872 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12873 (layout::annotation_line_showed_range_p): Same.
12874 (get_printed_columns): Same.
12875 (correction::ensure_terminated): Same.
12876 (line_corrections::~line_corrections): Same.
12877 * dojump.h: Same.
12878 * dse.c: Same.
12879 * dump-context.h: Same.
12880 * dumpfile.h: Same.
12881 * dwarf2out.c: Same.
12882 * edit-context.c: Same.
12883 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12884 * flags.h: Same.
12885 * function.c (assign_stack_local): Same.
12886 * function.h: Same.
12887 * gcc.c: Same.
12888 * gcov.c (block_info::block_info): Same.
12889 * genattrtab.c: Same.
12890 * genextract.c: Same.
12891 * genmatch.c (comparison_code_p): Same.
12892 (id_base::id_base): Same.
12893 (decision_tree::print): Same.
12894 * genoutput.c: Same.
12895 * genpreds.c (write_one_predicate_function): Same.
12896 * genrecog.c (validate_pattern): Same.
12897 (find_operand_positions): Same.
12898 (optimize_subroutine_group): Same.
12899 (merge_pattern_transition::merge_pattern_transition): Same.
12900 (merge_pattern_info::merge_pattern_info): Same.
12901 (merge_state_result::merge_state_result): Same.
12902 (merge_into_state): Same.
12903 * gensupport.c: Same.
12904 * gensupport.h: Same.
12905 * ggc-common.c (init_ggc_heuristics): Same.
12906 * ggc-tests.c (test_union): Same.
12907 * gimple-loop-interchange.cc (dump_induction): Same.
12908 * gimple-loop-versioning.cc: Same.
12909 * gimple-match.h (gimple_match_cond::any_else): Same.
12910 * gimple-ssa-backprop.c: Same.
12911 * gimple-ssa-sprintf.c: Same.
12912 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12913 Same.
12914 (store_immediate_info::store_immediate_info): Same.
12915 (merged_store_group::apply_stores): Same.
12916 (get_location_for_stmts): Same.
12917 * gimple-ssa-strength-reduction.c: Same.
12918 * gimple-ssa-warn-alloca.c: Same.
12919 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12920 * godump.c (go_type_decl): Same.
12921 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12922 * hash-map.h: Same.
12923 * hash-set-tests.c (test_set_of_strings): Same.
12924 * hsa-brig.c: Same.
12925 * hsa-common.h: Same.
12926 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12927 * input.c (assert_loceq): Same.
12928 * input.h: Same.
12929 * ipa-cp.c: Same.
12930 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12931 * ipa-fnsummary.h: Same.
12932 * ipa-inline.h: Same.
12933 * ipa-prop.h: Same.
12934 * ipa-split.c (visit_bb): Same.
12935 * ira-int.h (minmax_set_iter_next): Same.
12936 * loop-invariant.c: Same.
12937 * loop-iv.c: Same.
12938 * lra-eliminations.c: Same.
12939 * lra-int.h: Same.
12940 * lra-lives.c (mark_regno_dead): Same.
12941 * lra-remat.c: Same.
12942 * lra-spills.c: Same.
12943 * lto-streamer.h: Same.
12944 * mem-stats.h: Same.
12945 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12946 * omp-low.c (omp_clause_aligned_alignment): Same.
12947 * optabs-query.h (get_vcond_eq_icode): Same.
12948 * optabs.h: Same.
12949 * opts.c (wrap_help): Same.
12950 * poly-int.h: Same.
12951 * predict.c (predict_paths_leading_to_edge): Same.
12952 * pretty-print.h: Same.
12953 * profile-count.h: Same.
12954 * read-md.h: Same.
12955 * read-rtl-function.c: Same.
12956 * ree.c: Same.
12957 * reginfo.c: Same.
12958 * regrename.c: Same.
12959 * regrename.h: Same.
12960 * reload.h: Same.
12961 * rtl-iter.h: Same.
12962 * rtl.h (costs_add_n_insns): Same.
12963 * sanopt.c: Same.
12964 * sched-int.h: Same.
12965 * sel-sched-ir.h: Same.
12966 * selftest.h: Same.
12967 * sese.h (vec_find): Same.
12968 * stmt.c: Same.
12969 * target-globals.h: Same.
12970 * tree-affine.c (aff_combination_find_elt): Same.
12971 * tree-affine.h: Same.
12972 * tree-data-ref.h: Same.
12973 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12974 * tree-predcom.c: Same.
12975 * tree-scalar-evolution.c (find_var_scev_info): Same.
12976 * tree-ssa-alias.h: Same.
12977 * tree-ssa-ccp.c: Same.
12978 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12979 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12980 (rewrite_mem_refs): Same.
12981 (execute_sm_if_changed): Same.
12982 (hoist_memory_references): Same.
12983 * tree-ssa-loop-ivopts.c (operator<=): Same.
12984 * tree-ssa-loop.h: Same.
12985 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12986 * tree-ssa-structalias.c: Same.
12987 * tree-switch-conversion.h (cluster::cluster): Same.
12988 (simple_cluster::simple_cluster): Same.
12989 * tree-vect-patterns.c (type_conversion_p): Same.
12990 * tree-vectorizer.c (dump_stmt_cost): Same.
12991 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12992 * tree.c (protected_set_expr_location): Same.
12993 * tree.h (desired_pro_or_demotion_p): Same.
12994 (fndecl_built_in_p): Same.
12995 * unique-ptr-tests.cc: Same.
12996 * var-tracking.c (delete_variable_part): Same.
12997 * varasm.c (assemble_real): Same.
12998 (tree_output_constant_def): Same.
12999 * vec.c: Same.
13000 * wide-int-bitmask.h: Same.
13001 * wide-int.h (decompose): Same.
13002
13003 2019-07-09 Richard Biener <rguenther@suse.de>
13004
13005 PR tree-optimization/91114
13006 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
13007 find a vector type isn't fatal.
13008
13009 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13010
13011 * config/aarch64/aarch64-simd.md
13012 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
13013 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
13014 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
13015 (*aarch64_crypto_aese_fused,
13016 *aarch64_crypto_aesd_fused): Update to new definition.
13017 * config/aarch64/aarch64.c
13018 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
13019
13020 2019-07-09 Richard Biener <rguenther@suse.de>
13021
13022 * gimple-match.h (gimple_match_op::resimplify): New.
13023 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
13024 gimple_resimplify4, gimple_resimplify5): Remove.
13025 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
13026 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
13027 Make static.
13028 (gimple_match_op::resimplify): New.
13029 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
13030 according to availability. Use gimple_match_op::resimplify.
13031
13032 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
13033
13034 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
13035
13036 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13037
13038 * config/arm/crypto.md:
13039 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
13040 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
13041 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
13042 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
13043 * config/arm/arm.c
13044 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
13045 * config/arm/aarch-common-protos.h
13046 (aarch_crypto_can_dual_issue): Remove.
13047 * config/arm/aarch-common.c
13048 (aarch_crypto_can_dual_issue): Likewise.
13049 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
13050 * config/arm/cortex-a53.md: Likewise.
13051 * config/arm/cortex-a57.md: Likewise.
13052 * config/arm/iterators.md:
13053 (CRYPTO_BINARY): Redefine.
13054 (CRYPTO_UNARY): Removed.
13055 (CRYPTO_AES, CRYPTO_AESMC): New.
13056
13057 2019-07-09 Richard Biener <rguenther@suse.de>
13058
13059 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
13060 (vn_reference_lookup_3): If the main ref has no access path recorded
13061 but orig_ref has use it to do access-path based disambiguation.
13062 (vn_reference_lookup_pieces): Adjust.
13063 (vn_reference_lookup): Pass down original ref if we valueized.
13064
13065 2019-07-09 Martin Liska <mliska@suse.cz>
13066
13067 * doc/extend.texi: Document influence on loop
13068 optimizers.
13069
13070 2019-07-09 Martin Liska <mliska@suse.cz>
13071
13072 * lto-compress.c (lto_normalized_zstd_level): Do not use
13073 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
13074 of libzstd. One can use 0 as a default compression level.
13075
13076 2019-07-09 Martin Liska <mliska@suse.cz>
13077
13078 * doc/invoke.texi: Add link from -fprofile-dir option.
13079 Use better wording for 'gcno filename'.
13080
13081 2019-07-08 Martin Sebor <msebor@redhat.com>
13082
13083 PR middle-end/71924
13084 PR middle-end/90549
13085 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
13086 comment.
13087 (args_loc_t): New type.
13088 (args_loc_t, locmap_t): same.
13089 (diag_returned_locals): New function.
13090 (is_addr_local): Same.
13091 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
13092 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
13093 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
13094
13095 2019-07-08 Jakub Jelinek <jakub@redhat.com>
13096
13097 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
13098 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
13099 and casts in offset when different, both through gimple stmts
13100 and through trees. Rewritten using loops to minimize code duplication
13101 for each operand.
13102
13103 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13104
13105 * emit-rtl.c (set_insn_locations): New function moved from...
13106 * function.c (set_insn_locations): ...here.
13107 * ira-emit.c (emit_moves): Propagate location of the first instruction
13108 to the inserted move instructions.
13109 * reg-stack.c (compensate_edge): Set the location if the sequence is
13110 inserted on the edge.
13111 * rtl.h (set_insn_locations): Declare.
13112
13113 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13114
13115 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13116 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13117 .machine string.
13118
13119 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13120
13121 PR rtl-optimization/88233
13122 * common.opt (fsplit-wide-types-early): New option.
13123 * common/config/rs6000/rs6000-common.c
13124 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13125 OPT_LEVELS_ALL.
13126 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13127 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13128 flag_split_wide_types_early.
13129 (pass_data_lower_subreg3): New.
13130 (pass_lower_subreg3): New.
13131 (make_pass_lower_subreg3): New.
13132 * passes.def (pass_lower_subreg2): Move after the loop passes.
13133 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13134 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13135 the pass pipeline; its previous place is taken by ...
13136 (make_pass_lower_subreg3): ... this.
13137
13138 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13139
13140 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13141 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13142
13143 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13144
13145 * config/s390/constraints.md: Add new jsc constraint.
13146 * config/s390/predicates.md: New predicates.
13147 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13148 * config/s390/s390.c (s390_valid_shift_count): New function.
13149 (print_shift_count_operand): Use s390_valid_shift_count.
13150 (print_operand): Likewise.
13151 * config/s390/s390.md: Use new predicate.
13152 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13153 * config/s390/vector.md: Use new predicate.
13154
13155 2019-07-08 Andrew Waterman <andrew@sifive.com>
13156 Jim Wilson <jimw@sifive.com>
13157
13158 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13159 bitsize instead of BITS_PER_WORD.
13160
13161 2019-07-08 Martin Liska <mliska@suse.cz>
13162
13163 * collect2.c (defined): Revert to before r254460.
13164 (scan_prog_file): Revert to before r254460.
13165
13166 2019-07-08 Richard Biener <rguenther@suse.de>
13167
13168 PR tree-optimization/83518
13169 * tree-ssa-sccvn.c: Include splay-tree.h.
13170 (struct pd_range, struct pd_data): New.
13171 (struct vn_walk_cb_data): Add data to track partial definitions.
13172 (vn_walk_cb_data::~vn_walk_cb_data): New.
13173 (vn_walk_cb_data::push_partial_def): New.
13174 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13175 (vn_reference_lookup_2): When partial defs are registered give up.
13176 (vn_reference_lookup_3): Track partial defs for memset and
13177 constructor zeroing and for defs from constants.
13178
13179 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13180
13181 * doc/install.texi (bootstrap-Og): Document.
13182
13183 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13184
13185 * config/riscv/pic.md (*local_pic_load_s<mode>)
13186 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13187 referenced by <mode>, giving...
13188 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13189 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13190 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13191 use <X:MODE> for the mode attribute.
13192
13193 2019-07-07 Jeff Law <law@redhat.com>
13194
13195 PR tree-optimization/91090
13196 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13197 in handling of ranges to simplify switch statements.
13198
13199 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13200
13201 * config/darwin.c (darwin_override_options): Make a final check on PIC
13202 options.
13203
13204 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13205
13206 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13207 on for kernel code.
13208
13209 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13210
13211 PR target/91068
13212 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13213 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13214 instead of matching them to "l" output operands.
13215
13216 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13217
13218 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13219 and check whether addr.reg is nonnull before using it.
13220
13221 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13222
13223 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13224 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13225 variable(s). For conditional lastprivate look through outer
13226 GIMPLE_OMP_SCAN context.
13227 (lower_omp_1): For conditional lastprivate look through outer
13228 GIMPLE_OMP_SCAN context.
13229
13230 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13231 member to combined_into_simd_safelen1.
13232 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13233 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13234 clauses if ctx->combined_into_simd_safelen1 put statements after the
13235 predicate conditionalized block rather than into it.
13236
13237 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13238
13239 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13240 operand 1.
13241 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13242 Make the choice of <mode> explicit, giving...
13243 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13244
13245 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13246
13247 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13248 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13249 of .md attributes.
13250 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13251 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13252 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13253 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13254 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13255 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13256 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13257 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13258 (*avx512f_scatterdi<mode>): Likewise.
13259 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13260
13261 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13262
13263 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13264 specify the mode iterator referenced by <mode>, giving...
13265 (*push1_h8300hs_<QHI:mode>): ...this.
13266
13267 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13268
13269 * config/gcn/gcn-valu.md
13270 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13271 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13272 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13273 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13274 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13275 but using the _exec comparison patterns.
13276 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13277 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13278 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13279 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13280 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13281 but using the _exec comparison patterns.
13282
13283 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13284
13285 * config/arm/sync.md
13286 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13287 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13288 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13289 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13290 <SIDI:cas_cmp_str>.
13291
13292 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13293
13294 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13295 (maybe_lookup_ctx): Add forward declaration.
13296 (omp_find_scan): Likewise. Walk into body of simd if composited
13297 with worksharing loop.
13298 (scan_omp_simd_scan): New function.
13299 (scan_omp_1_stmt): Call it.
13300 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13301 ctx->for_simd_scan_phase.
13302 (lower_rec_input_clauses): Do much less work for inscan reductions
13303 in ctx->for_simd_scan_phase is_simd regions.
13304 (lower_omp_scan): Set is_simd also on simd constructs composited
13305 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13306 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13307 emit their body after in simd constructs composited with worksharing
13308 loop.
13309 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13310
13311 * omp-low.c (omp_find_scan): Make static.
13312 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13313 the second loop, var2 represents the first partial sum and so needs
13314 to go before rprivb[ivar].
13315
13316 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13317
13318 * config/rs6000/rs6000-logue.c: Remove unused code.
13319
13320 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13321
13322 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13323
13324 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13325
13326 PR target/90712
13327 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13328 check with a frame laid out check.
13329
13330 2019-07-05 Richard Biener <rguenther@suse.de>
13331
13332 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13333 when comparing against a store with possibly the same value.
13334
13335 2019-07-05 Richard Biener <rguenther@suse.de>
13336
13337 PR tree-optimization/91091
13338 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13339 (walk_non_aliased_vuses): Likewise.
13340 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13341 (get_continuation_for_phi): New tbaa_p parameter and pass
13342 it down.
13343 (walk_non_aliased_vuses): Likewise.
13344 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13345 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13346 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13347 Likewise.
13348 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13349 (adjust_offsets_for_equal_base_address): New function.
13350 (vn_reference_lookup_3): Use it to catch more base equivalences.
13351 Handle and pass down tbaa_p flag.
13352 (vn_reference_lookup_pieces): Adjust.
13353 (vn_reference_lookup): Remove alias-set altering, instead pass
13354 down false as tbaa_p.
13355
13356 2019-07-05 Richard Biener <rguenther@suse.de>
13357
13358 PR tree-optimization/91091
13359 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13360 accesses can happen with -fno-strict-aliasing.
13361
13362 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13363
13364 * tree-ssa-alias.c (alias_stats): Add
13365 nonoverlapping_component_refs_since_match_p_must_overlap.
13366 (dump_alias_stats): Print it.
13367 (nonoverlapping_component_refs_since_match_p): Add early exit.
13368 (nonoverlapping_component_refs_p): Do not account early exit.
13369
13370 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13371
13372 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13373 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13374 (emit_eh_dispatch): Delete.
13375 (lower_catch): Emit the eh_dispatch manually and set the location of
13376 the first catch statement onto it.
13377 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13378 (lower_eh_dispatch): Propagate location.
13379 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13380 (eliminate_build): Likewise.
13381
13382 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13383
13384 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13385 phi nodes if possible.
13386 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13387 location info on the newly created statement.
13388 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13389 newly created increment if needed.
13390
13391 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13392
13393 PR middle-end/78884
13394 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13395 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13396 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13397 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13398 ctx->add_safelen1 is set.
13399
13400 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13401 GOMP_loop_start at the start of second worksharing loop in a scan.
13402 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13403 worksharing loop in a scan even if there are conditional lastprivates,
13404 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13405
13406 2019-07-04 Jan Hubicka <jh@suse.cz>
13407
13408 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13409 Fix check for match in the ref walk.
13410
13411 2019-07-04 Martin Liska <mliska@suse.cz>
13412
13413 * tree-ssa-loop-niter.c
13414 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13415 (estimate_numbers_of_iterations):
13416 Support __builtin_expect_with_probability for analysis
13417 of # of loop iterations.
13418
13419 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13420
13421 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13422 * except.c: Likewise.
13423 * expr.c (expand_expr_real_1): Reject it.
13424 * gimplify.c (gimplify_expr): Gimplify it, within
13425 TRY_FINALLY_EXPR.
13426 * tree-dump.c (dequeue_and_dump): Dump it.
13427 * tree-pretty-print.c (dump_generic_node): Likewise.
13428 * tree.c (block_may_fallthru): Handle it.
13429 * tree.def (EH_ELSE_EXPR): Introduce it.
13430 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13431 with GIMPLE_EH_ELSE as try/finally/else.
13432
13433 2019-07-04 Richard Biener <rguenther@suse.de>
13434
13435 PR ipa/91062
13436 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13437 parameter whether to disable GC collection.
13438 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13439 honor it.
13440 (execute_all_ipa_transforms): Likewise and pass it down.
13441 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13442 collection from applying IPA transforms.
13443 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13444 from applying IPA transforms.
13445
13446 2019-07-04 Richard Biener <rguenther@suse.de>
13447
13448 PR tree-optimization/90911
13449 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13450 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13451 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13452 scalar_loop_scaling.
13453 (vect_transform_loop): Scale scalar loop profile if needed.
13454 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13455 the loop copy from if-conversion adjust edge probabilities
13456 and scale the vectorized loop body profile, queue the scalar
13457 profile for updating after peeling.
13458
13459 2019-07-04 Jan Hubicka <jh@suse.cz>
13460
13461 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13462 parameters; return early for must-alias.
13463 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13464 outer types match, try nonoverlapping_component_refs
13465 if must-alias is not obvious.
13466 (indirect_refs_may_alias_p): Likewise.
13467 (refs_may_alias_p_2): Likewise.
13468
13469 2019-07-04 Richard Biener <rguenther@suse.de>
13470
13471 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13472 argument.
13473 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13474 globals into...
13475 (struct vn_walk_cb_data): New callback data struct.
13476 (vn_reference_lookup_2): Adjust.
13477 (vn_reference_lookup_3): Likewise.
13478 (vn_reference_lookup_pieces): Likewise.
13479 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13480 (visit_reference_op_load): Adjust.
13481
13482 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13483
13484 PR tree-optimization/91063
13485 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13486 stmt from stmts sequence before calling vect_init_vector_1.
13487 Formatting fix.
13488
13489 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13490
13491 PR target/88833
13492 * fwprop.c (reg_single_def_p): New function.
13493 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13494 (forward_propagate_into): New parameter reg_prop_only
13495 with default value false.
13496 Propagate def's src into loop only if SET_SRC and SET_DEST
13497 of def_set have single definitions.
13498 Likewise if reg_prop_only is set to true.
13499 (fwprop): New param fwprop_addr_p.
13500 Integrate fwprop_addr into fwprop.
13501 (fwprop_addr): Remove.
13502 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13503 to true.
13504 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13505 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13506 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13507
13508 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13509
13510 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13511 in worksharing loop scans.
13512
13513 PR tree-optimization/91074
13514 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13515 temporary.
13516
13517 PR rtl-optimization/90756
13518 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13519 for VECTOR_TYPE_P.
13520
13521 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13522
13523 * config/aarch64/aarch64.md: Remove redundant constraints from
13524 define_expand but keep some patterns untouched if they are
13525 specially selected by TARGET_SECONDARY_RELOAD hook.
13526 * config/aarch64/aarch64-sve.md: Likewise.
13527 * config/aarch64/atomics.md: Remove redundant constraints from
13528 define_expand.
13529 * config/aarch64/aarch64-simd.md: Likewise.
13530
13531 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13532
13533 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13534 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13535 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13536 clauses.
13537 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13538 DARWIN_NOPIE_SPEC.
13539
13540 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13541
13542 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13543 (STARTFILE_SPEC): Split crt3 into a separate spec.
13544 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13545 (DARWIN_CRT2_SPEC): New.
13546 (DARWIN_CRT3_SPEC): New.
13547 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13548 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13549 (DARWIN_CRT3_SPEC): New.
13550
13551 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13552
13553 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13554 Change the RTL attribute "length" from "4" to "*" to allow the
13555 length attribute to be adjusted automatically for prefixed load,
13556 store, and add immediate instructions.
13557 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13558 Likewise.
13559 (extendsi<mode>2, EXTSI iterator): Likewise.
13560 (movsi_internal1): Likewise.
13561 (movsi_from_sf): Likewise.
13562 (movdi_from_sf_zero_ext): Likewise.
13563 (mov<mode>_internal): Likewise.
13564 (movcc_internal1, QHI iterator): Likewise.
13565 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13566 (movsf_from_si): Likewise.
13567 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13568 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13569 (mov<mode>, FMOVE128 iterator): Likewise.
13570 (movdi_internal64): Likewise.
13571 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13572 Likewise.
13573 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13574 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13575 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13576 (vsx_splat_v4sf): Likewise.
13577
13578 2019-07-03 Mark Wielaard <mark@klomp.org>
13579
13580 PR debug/90981
13581 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13582 DW_AT_addr_base if there is actually a .debug_addr section with
13583 addresses.
13584 (output_addr_table): Add DWARF5 table header generation here after
13585 checking there are actually any addresses from...
13586 (dwarf2out_finish): ...here.
13587
13588 2019-07-03 Richard Biener <rguenther@suse.de>
13589
13590 PR middle-end/91069
13591 * match.pd (vec_perm -> bit_insert): Fix element read from
13592 first vector.
13593
13594 2019-07-03 Martin Liska <mliska@suse.cz>
13595
13596 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13597 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13598 condition.
13599 * generic-match-head.c: Include dbgcnt.h.
13600 * gimple-match-head.c: Likewise.
13601
13602 2019-07-03 Martin Liska <mliska@suse.cz>
13603
13604 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13605 (GCOV_COUNTER_V_TOPN): New.
13606 (GCOV_COUNTER_V_INDIR): Use _topn.
13607 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13608 (GCOV_TOPN_VALUES): New.
13609 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13610 (GCOV_TOPN_VALUES_COUNTERS): New.
13611 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13612 * tree-profile.c:
13613 (gimple_init_gcov_profiler): Rename variables from one_value
13614 to topn_values.
13615 (gimple_gen_one_value_profiler): Remove.
13616 (gimple_gen_topn_values_profiler): New function.
13617 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13618 names instead of SINGLE_VALUE.
13619 (stream_out_histogram_value): Likewise.
13620 (stream_in_histogram_value): Likewise.
13621 (get_most_common_single_value): Likewise.
13622 (gimple_divmod_fixed_value_transform): Likewise.
13623 (gimple_stringops_transform): Likewise.
13624 (gimple_divmod_values_to_profile): Likewise.
13625 (gimple_stringops_values_to_profile): Likewise.
13626 (gimple_find_values_to_profile): Likewise.
13627 * value-prof.h (enum hist_type): Rename to TOPN.
13628 (gimple_gen_one_value_profiler): Remove.
13629 (gimple_gen_topn_values_profiler): New.
13630
13631 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13632
13633 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13634 if it has the DW_AT_data_member_location attribute.
13635
13636 2019-07-03 Richard Biener <rguenther@suse.de>
13637
13638 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13639 dumping.
13640
13641 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13642
13643 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13644 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13645 (tlsdesc_small_sve_<mode>): Likewise.
13646
13647 2019-07-03 Martin Liska <mliska@suse.cz>
13648
13649 * Makefile.in: Define ZSTD_LIB.
13650 * common.opt: Adjust compression level
13651 to support also zstd levels.
13652 * config.in: Regenerate.
13653 * configure: Likewise.
13654 * configure.ac: Add --with-zstd and --with-zstd-include options
13655 and detect ZSTD.
13656 * doc/install.texi: Mention zstd dependency.
13657 * gcc.c: Print supported LTO compression algorithms.
13658 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13659 (lto_compression_zstd): Likewise.
13660 (lto_uncompression_zstd): Likewise.
13661 (lto_end_compression): Dispatch in between zlib and zstd.
13662 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13663 (lto_uncompression_zlib): Make it static.
13664 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13665 * lto-section-in.c (lto_get_section_data): Pass info
13666 about used compression.
13667 * lto-streamer-out.c: By default use zstd when possible.
13668 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13669 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13670
13671 2019-07-03 Martin Liska <mliska@suse.cz>
13672
13673 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13674 * lto-section-out.c (lto_destroy_simple_output_block): Never
13675 compress LTO_section_lto section.
13676 * lto-streamer-out.c (produce_asm): Do not set major_version
13677 and minor_version.
13678 (lto_output_toplevel_asms): Likewise.
13679 (produce_lto_section): New function.
13680 (lto_output): Call produce_lto_section.
13681 (lto_write_mode_table): Do not set major_version and
13682 minor_version.
13683 (produce_asm_for_decls): Likewise.
13684 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13685 type.
13686 (struct lto_header): Remove.
13687 (struct lto_section): New struct.
13688 (struct lto_simple_header): Do not inherit from lto_header.
13689 (struct lto_file_decl_data): Add lto_section_header field.
13690
13691 2019-07-03 Martin Liska <mliska@suse.cz>
13692
13693 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13694 dead assignemts.
13695 * reg-stack.c (check_asm_stack_operands): Likewise.
13696 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13697 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13698 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13699 force_expand_binop.
13700
13701 2019-07-03 Martin Liska <mliska@suse.cz>
13702
13703 PR tree-optimization/90892
13704 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13705 in string constants.
13706
13707 2019-07-03 Martin Liska <mliska@suse.cz>
13708
13709 PR middle-end/90899
13710 * multiple_target.c (create_dispatcher_calls): Add to comdat
13711 group only if set for ifunc.
13712
13713 2019-07-03 Martin Liska <mliska@suse.cz>
13714
13715 PR target/88056
13716 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13717 Define local_object_name in outer scope in order to handle
13718 use-after-scope issue.
13719
13720 2019-07-03 Martin Liska <mliska@suse.cz>
13721
13722 * common.opt: Add fprofile-note.
13723 * coverage.c (coverage_init): Append the option
13724 to bbg_file_name.
13725 * doc/invoke.texi: Document -fprofile-note.
13726
13727 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13728
13729 PR tree-optimization/91033
13730 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13731 vect_analyze_data_refs): Add bool * arguments.
13732 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13733 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13734 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13735 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13736 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13737 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13738 vect_analyze_data_refs caller.
13739
13740 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13741 clause.
13742 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13743 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13744 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13745 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13746 OMP_CLAUSE__SCANTEMP_ entry.
13747 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13748 * tree-pretty-print.c (dump_omp_clause): Likewise.
13749 * tree-nested.c (convert_nonlocal_omp_clauses,
13750 convert_local_omp_clauses): Likewise.
13751 * omp-general.h (struct omp_for_data): Add have_scantemp and
13752 have_nonctrl_scantemp members.
13753 * omp-general.c (omp_extract_for_data): Initialize them.
13754 * omp-low.c (struct omp_context): Add scan_exclusive member.
13755 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13756 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13757 ctx->scan_exclusive.
13758 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13759 of !ctx->scan_inclusive.
13760 (lower_rec_input_clauses): Simplify gimplification of dtors using
13761 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13762 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13763 loops. Don't add barrier for reduction_omp_orig_ref if
13764 ctx->scan_??xclusive.
13765 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13766 (lower_omp_scan): Use ctx->scan_exclusive instead
13767 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13768 reductions. Use new_vard != new_var instead of repeated
13769 omp_is_reference calls.
13770 (omp_find_scan, lower_omp_for_scan): New functions.
13771 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13772 inscan reductions.
13773 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13774 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13775 and fd->have_scantemp.
13776
13777 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13778 on worksharing loop propagate it as shared clause to containing
13779 combined parallel.
13780
13781 * omp-expand.c (expand_omp_for_static_nochunk,
13782 expand_omp_for_static_chunk): For nowait worksharing loop with
13783 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13784 at the end.
13785
13786 2019-07-02 qing zhao <qing.zhao@oracle.com>
13787
13788 PR preprocessor/90581
13789 * doc/cppopts.texi: Add document for -fmax-include-depth.
13790 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13791
13792 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13793
13794 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13795 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13796 (mmx_packssdw): Ditto.
13797 (mmx_punpckhbw): Ditto.
13798 (mmx_punpcklbw): Ditto.
13799 (mmx_punpckhwd): Ditto.
13800 (mmx_punpcklwd): Ditto.
13801 (mmx_punpckhdq): Ditto.
13802 (mmx_punpckldq): Ditto.
13803 (*vec_dupv4hi): Ditto.
13804 (*vec_dupv2si): Ditto.
13805 (mmx_pmovmskb): Ditto.
13806 * config/i386/sse.md (sse_cvtpi2ps): Use
13807 TARGET_SSE2 && SSE_REG_P in split condition.
13808 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13809 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13810 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13811 (ssse3_pshufbv8qi3): Ditto.
13812 (ssse3_palignrdi): Ditto.
13813
13814 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13815
13816 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13817 with inlined save and restore.
13818
13819 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13820
13821 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13822 to be inserted on single successor edge of the entry block. Then call
13823 commit_edge_insertions instead of inserting the instructions manually.
13824 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13825 RTL expansion and rebuild jump labels chain.
13826
13827 2019-07-02 Richard Biener <rguenther@suse.de>
13828
13829 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13830 TI_CHREC_KNOWN.
13831 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13832 Define here.
13833 * tree.c (build_common_tree_nodes): Initialize them.
13834 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13835 Make declarations comments.
13836 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13837 chrec_known): Remove definitions.
13838 (initialize_scalar_evolutions_analyzer): Remove.
13839 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13840 * tree-streamer.c (preload_common_nodes): Do not preload
13841 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13842
13843 2019-07-02 Jan Hubicka <jh@suse.cz>
13844
13845 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13846 sanity check.
13847
13848 2019-07-02 Jan Hubicka <jh@suse.cz>
13849
13850 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13851 to ..
13852 (nonoverlapping_component_refs_since_match_p): ... this one;
13853 handle also non-decl bases; return -1 if search gave up.
13854 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13855 nonoverlapping_component_refs_of_decl_p_no_alias to
13856 nonoverlapping_component_refs_since_match_p_may_alias,
13857 nonoverlapping_component_refs_since_match_p_no_alias.
13858 (dump_alias_stats): Update dumping.
13859 (aliasing_matching_component_refs_p): Break out from ...;
13860 dispatch to nonoverlapping_component_refs_for_decl_p
13861 and nonoverlapping_component_refs_since_match_p.
13862 (aliasing_component_refs_p): ... here; call
13863 nonoverlapping_component_refs_p in scenarios where we can not
13864 precisely determine base match.
13865 (decl_refs_may_alias_p): Use
13866 nonoverlapping_component_refs_since_match_p.
13867 (indirect_ref_may_alias_decl_p): Do not call
13868 nonoverlapping_component_refs_p.
13869 (indirect_refs_may_alias_p): Likewise.
13870
13871 2019-07-02 Jan Hubicka <jh@suse.cz>
13872
13873 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13874 to clobber of return value.
13875
13876 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13877
13878 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13879 for is_neon_type instructions that have not already been categorized.
13880
13881 2019-07-02 Richard Biener <rguenther@suse.de>
13882
13883 PR tree-optimization/58483
13884 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13885 for MEM_REF base hashing.
13886 (equal_mem_array_ref_p): Likewise for base comparison.
13887
13888 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13889
13890 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13891 parameterized name.
13892 (signbit<mode>2): Use that name. Simplify.
13893
13894 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13895
13896 PR middle-end/66726
13897 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13898 Tune heuristic from PR71016 to allow MIN / MAX.
13899
13900 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13901
13902 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13903 parameterized name.
13904 (abs<mode>2): Use that name. Simplify.
13905
13906 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13907
13908 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13909 parameterized name.
13910 (neg<mode>2): Use that name. Simplify.
13911
13912 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13913
13914 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13915 name.
13916 (abs<mode>2): Use that name. Simplify.
13917
13918 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13919
13920 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13921 name.
13922 (neg<mode>2): Use that name. Simplify.
13923
13924 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13925
13926 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13927 ("enabled" attribute): Handle sse_noavx isa attribute.
13928 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13929 Use TARGET_SSE && SSE_REGNO_P in split condition.
13930 (*vec_dupv2sf): Ditto.
13931
13932 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13933
13934 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13935 name.
13936 (floatsi<mode>2): Use that name. Simplify.
13937
13938 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13939
13940 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13941 parameterized name.
13942 (extenddf<mode>2_vsx): Make this a parameterized name.
13943 (extenddf<mode>2): Use those names. Simplify.
13944
13945 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13946
13947 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13948 name.
13949 (eh_return): Use that name. Simplify.
13950
13951 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13952
13953 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13954 (doloop_end): Use that name. Simplify.
13955
13956 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13957
13958 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13959 parameterized name.
13960 (indirect_jump): Use that name. Simplify.
13961
13962 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13963
13964 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13965 parameterized name.
13966 (abs<mode>2): Use that name. Simplify.
13967
13968 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13969
13970 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13971 parameterized name.
13972 (fix_trunc<mode>si2): Use that name. Simplify.
13973
13974 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13975
13976 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13977 (allocate_stack): Use that name. Simplify.
13978
13979 2019-07-01 Martin Sebor <msebor@redhat.com>
13980
13981 PR middle-end/90923
13982 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13983 (hash_map::get_or_insert): Same. Reformat comment.
13984 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13985 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13986 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13987 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13988 (hash_table::hash_table (const hash_table&)): Use copy ctor
13989 instead of assignment to copy elements.
13990
13991 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13992 John David Anglin <danglin@gcc.gnu.org>
13993
13994 PR target/90963
13995 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13996 using saved frame pointer.
13997
13998 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13999
14000 PR middle-end/64242
14001 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
14002 Add frame clobber and schedule blockage.
14003
14004 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
14005
14006 * doc/invoke.texi (Link Options): Further editorial changes to
14007 -flinker-output docs.
14008
14009 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14010
14011 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
14012 Load both operands of a PLUS into registers separately.
14013
14014 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
14015
14016 * config/s390/vector.md: Fix shift count operand printing.
14017
14018 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14019
14020 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
14021
14022 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14023
14024 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
14025 Use recog_data to test for an output operand.
14026
14027 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14028
14029 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
14030 exclude any others that are disparaged or that are bound to need
14031 a reload or spill.
14032 (ira_get_dup_out_num): Expand comment.
14033
14034 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14035
14036 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
14037 constraint string for each operand/alternative combo. Only handle
14038 '%' at the start of constraint strings, and look for it outside
14039 the main loop.
14040
14041 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14042
14043 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
14044 alternative_mask instead of HARD_REG_SET to represent a
14045 bitmask of alternatives.
14046 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14047 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
14048
14049 2019-07-01 Martin Liska <mliska@suse.cz>
14050
14051 * edit-context.c (test_applying_fixits_unreadable_file): Do not
14052 use () for a constructor call.
14053 (test_applying_fixits_line_out_of_range): Likewise.
14054 * ggc-page.c (alloc_page): Use (void *) for %p printf format
14055 argument.
14056 (free_page): Likewise.
14057
14058 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
14059
14060 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
14061 parameter names to match usage (no functional change).
14062 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
14063
14064 2019-07-01 Richard Biener <rguenther@suse.de>
14065
14066 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
14067 pass parameter.
14068 (pass_fre::execute): Honor it.
14069 * passes.def: Adjust pass_fre invocations to allow iterating,
14070 add non-iterating pass_fre before late threading/dom.
14071
14072 2019-07-01 Richard Biener <rguenther@suse.de>
14073
14074 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
14075 TARGET_MEM_REF handling to also handle address-taken ones.
14076
14077 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
14078
14079 * doc/sourcebuild.texi (Effective-Target Keywords, Other
14080 hardware attributes): Document avx512vp2intersect.
14081
14082 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14083
14084 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
14085 (abs<mode>2): New expander.
14086 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
14087 Use CODE_FOR_ssse3_absv8qi2.
14088 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
14089 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
14090
14091 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14092
14093 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
14094 to sse, sse_noavx and avx. Update all uses.
14095
14096 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14097
14098 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
14099 (*mmx_<plusminus_insn><mode>3): Ditto.
14100 (*mmx_mulv4hi3"): Ditto.
14101 (*mmx_smulv4hi3_highpart): Ditto.
14102 (*mmx_umulv4hi3_highpart): Ditto.
14103 (*mmx_pmaddwd): Ditto.
14104 (*sse2_umulv1siv1di3): Ditto.
14105 (*mmx_<code>v4hi3): Ditto.
14106 (*mmx_<code>v8qi3): Ditto.
14107 (mmx_ashr<mode>3): Ditto.
14108 ("mmx_<shift_insn><mode>3): Ditto.
14109 (*mmx_eq<mode>3): Ditto.
14110 (mmx_gt<mode>3): Ditto.
14111 (mmx_andnot<mode>3): Ditto.
14112 (*mmx_<code><mode>3): Ditto.
14113 (*mmx_pinsrw): Ditto.
14114 (*mmx_pextrw): Ditto.
14115 (mmx_pshufw_1): Ditto.
14116 (*mmx_uavgv8qi3): Ditto.
14117 (*mmx_uavgv4hi3): Ditto.
14118 ("mmx_psadbw): Ditto.
14119 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14120 (sse_cvttps2pi): Ditto.
14121 (ssse3_pmaddubsw): Ditto.
14122 (*ssse3_pmulhrswv4hi3): Ditto.
14123 (ssse3_psign<mode>3): Ditto.
14124
14125 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14126
14127 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14128 adjustment for bit-fields to all aggregate types.
14129
14130 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14131
14132 * config/rs6000/predicates.md (pcrel_address): Use
14133 SYMBOL_REF_LOCAL_P to determine if a label is local.
14134 (pcrel_external_address): New predicate.
14135 (non_prefixed_mem_operand): Delete, predicate not used.
14136 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14137 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14138 addressing.
14139 (SYMBOL_REF_PCREL_P): Likewise.
14140
14141 PR target/91009
14142 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14143 alternative.
14144 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14145 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14146 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14147
14148 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14149
14150 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14151 override on extra_headers.
14152
14153 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14154
14155 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14156 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14157 from warning.
14158 (darwin_driver_init): Likewise.
14159
14160 2019-06-28 Jan Beulich <jbeulich@suse.com>
14161
14162 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14163 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14164 Eliminate redundant alternative.
14165
14166 2019-06-28 Jan Beulich <jbeulich@suse.com>
14167
14168 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14169 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14170 Use vector_operand.
14171
14172 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14173
14174 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14175 having a lower cost regardless of the speed option.
14176
14177 2019-06-28 Jan Beulich <jbeulich@suse.com>
14178
14179 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14180 vector_operand plus, on both alternatives, "Bm" constraint.
14181
14182 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14183
14184 * config/arm/arm.md: Remove redundant constraints from
14185 define_expand but leave reload_inm and reload_outm patterns
14186 untouched since they need special constraints to work.
14187 * config/arm/arm-fixed.md: Remove redundant constraints from
14188 define_expand.
14189 * config/arm/iwmmxt.md: Likewise.
14190 * config/arm/neon.md: Likewise.
14191 * config/arm/sync.md: Likewise.
14192 * config/arm/thumb1.md: Likewise.
14193 * config/arm/vec-common.md: Likewise.
14194
14195 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14196
14197 * doc/install.texi: Document --disable-tm-clone-registry.
14198
14199 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14200
14201 PR c++/91024
14202 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14203 statements.
14204
14205 PR tree-optimization/91010
14206 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14207 return true. Otherwise, don't call operand_equal_p if offset1 or
14208 offset2 is NULL and just return false.
14209
14210 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14211
14212 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14213 user-specified float mode choice for kernel mode code.
14214
14215 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14216
14217 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14218 spec.
14219
14220 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14221
14222 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14223 use longcall for 64b code.
14224
14225 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14226
14227 * builtins.c (get_memory_rtx): Fix comment.
14228 * optabs.def (movmem_optab): Change to cpymem_optab.
14229 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14230 (emit_block_move_hints): Change movmem to cpymem.
14231 * defaults.h: Change movmem to cpymem.
14232 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14233 (default_use_by_pieces_infrastructure_p): Ditto.
14234 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14235 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14236 to cpymem.
14237 * config/aarch64/aarch64.h: Change movmem to cpymem.
14238 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14239 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14240 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14241 movmem to cpymem.
14242 * config/arc/arc-protos.h: Change movmem to cpymem.
14243 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14244 * config/arc/arc.h: Change movmem to cpymem in comment.
14245 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14246 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14247 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14248 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14249 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14250 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14251 * config/avr/avr-protos.h: Change movmem to cpymem.
14252 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14253 avr_out_movmem): Change movmem to cpymem.
14254 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14255 Change movmem to cpymem.
14256 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14257 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14258 Change movmem to cpymem.
14259 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14260 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14261 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14262 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14263 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14264 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14265 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14266 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14267 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14268 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14269 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14270 expand_small_cpymem_or_setmem,
14271 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14272 expand_set_or_cpymem_constant_prologue,
14273 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14274 * config/i386/i386-protos.h: Change movmem to cpymem.
14275 * config/i386/i386.h: Change movmem to cpymem in comment.
14276 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14277 (setmem<mode>): Change expansion function name.
14278 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14279 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14280 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14281 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14282 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14283 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14284 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14285 to cpymem.
14286 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14287 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14288 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14289 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14290 Change movmem to cpymem.
14291 * config/mips/mips.h: Change movmem to cpymem.
14292 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14293 * config/nds32/nds32-memory-manipulation.c
14294 (nds32_expand_movmemsi_loop_unknown_size,
14295 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14296 nds32_expand_movmemsi_unroll,
14297 nds32_expand_movmemsi): Change movmem to cpymem.
14298 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14299 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14300 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14301 (pa_adjust_insn_length): Change call to compute_movmem_length.
14302 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14303 movmemdi, movmemdi_prereload,
14304 movmemdi_postreload): Change movmem to cpymem.
14305 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14306 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14307 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14308 * config/riscv/riscv.h: Change movmem to cpymem.
14309 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14310 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14311 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14312 movmem to cpymem.
14313 * config/s390/s390-protos.h: Change movmem to cpymem.
14314 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14315 s390_expand_insv): Change movmem to cpymem.
14316 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14317 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14318 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14319 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14320 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14321 for nonexistent function.
14322 * config/vax/vax.h: Change movmem to cpymem in comment.
14323 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14324 * config/visium/visium.h: Change movmem to cpymem in comment.
14325 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14326 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14327 * doc/md.texi: Change movmem to cpymem and update description to match.
14328 * doc/rtl.texi: Change movmem to cpymem.
14329 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14330 * doc/tm.texi: Regenerate.
14331
14332 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14333
14334 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14335 -fvariable-expansion-in-unroller by default.
14336 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14337 default for Power.
14338
14339 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14340
14341 Revert
14342 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14343 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14344
14345 * config.gcc(rs6000-*-*): Define target_gtfiles.
14346
14347 2019-06-27 Jan Hubicka <jh@suse.cz>
14348
14349 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14350 (add_type_duplicate): When odr hash is not allocated, to nothing.
14351 (odr_based_tbaa_p): New function.
14352 (set_type_canonical_for_odr_type): New function.
14353 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14354 set_type_canonical_for_odr_type): New.
14355 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14356 ODR based TBAA are not equivalent to non-ODR types.
14357
14358 2019-06-27 Martin Liska <mliska@suse.cz>
14359
14360 PR tree-optimization/90974
14361 PR rtl-optimization/90975
14362 PR rtl-optimization/90976
14363 PR target/91016
14364 PR tree-optimization/91017
14365 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14366 unused tmp.
14367 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14368 initial commit of IRA.
14369 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14370 of op0 and op1.
14371 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14372 Remove unused mode1.
14373 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14374 to new_stmt_info.
14375
14376 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14377
14378 PR target/90991
14379 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14380 instead of register_operand for operands[1], add m to its constraints
14381 if operands[2] uses "C" constraint. Ensure in condition that if
14382 operands[2] is not 0, then operands[1] is not a MEM. For last two
14383 alternatives, use unaligned loads instead of aligned if operands[1] is
14384 misaligned_operand.
14385
14386 2019-06-27 Martin Liska <mliska@suse.cz>
14387
14388 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14389 dead assignments.
14390 * bt-load.c (move_btr_def): Likewise.
14391 * builtins.c (expand_builtin_apply_args_1): Likewise.
14392 (expand_builtin_apply): Likewise.
14393 * cfgexpand.c (expand_asm_stmt): Likewise.
14394 (construct_init_block): Likewise.
14395 * cfghooks.c (verify_flow_info): Likewise.
14396 * cfgloopmanip.c (remove_path): Likewise.
14397 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14398 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14399 * combine.c (simplify_if_then_else): Likewise.
14400 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14401 (choose_basereg): Likewise.
14402 (ix86_expand_prologue): Likewise.
14403 (ix86_preferred_output_reload_class): Likewise.
14404 * cselib.c (cselib_record_sets): Likewise.
14405 * df-scan.c (df_scan_alloc): Likewise.
14406 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14407 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14408 * emit-rtl.c (try_split): Likewise.
14409 * graphite-scop-detection.c (assign_parameter_index_in_region):
14410 Likewise.
14411 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14412 * ira-color.c (setup_profitable_hard_regs): Likewise.
14413 * ira.c (rtx_moveable_p): Likewise.
14414 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14415 * read-rtl.c (read_subst_mapping): Likewise.
14416 * regrename.c (scan_rtx): Likewise.
14417 * reorg.c (fill_slots_from_thread): Likewise.
14418 * tree-inline.c (tree_function_versioning): Likewise.
14419 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14420 * tree-ssa-sink.c (statement_sink_location): Likewise.
14421 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14422 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14423 (vect_create_epilog_for_reduction): Likewise.
14424 * tree.c (build_nonstandard_integer_type): Likewise.
14425
14426 2019-06-27 Richard Biener <rguenther@suse.de>
14427
14428 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14429
14430 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14431
14432 PR tree-optimization/89772
14433 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14434 out-of-bound accesses checking.
14435
14436 2019-06-27 Martin Liska <mliska@suse.cz>
14437
14438 PR tree-optimization/91014
14439 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14440 when LHS is NULL_TREE.
14441
14442 2019-06-27 Martin Liska <mliska@suse.cz>
14443
14444 * symbol-summary.h (traverse): Pass
14445 argument a to the call of callback.
14446 (gt_ggc_mx): Mark arguments as unused.
14447 (gt_pch_nx): Likewise.
14448
14449 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14450
14451 PR target/62147
14452 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14453 finiteness.
14454
14455 2019-06-26 Jeff Law <law@redhat.com>
14456
14457 PR tree-optimization/90883
14458 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14459 (delete_dead_or_redundant_assignment): Likewise.
14460
14461 PR tree-optimization/90883
14462 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14463 * tree-ssa-dse.c: Update various comments to distinguish between
14464 dead and redundant stores.
14465 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14466 (dse_optimize_redundant_stores): New function.
14467 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14468 Distinguish between dead and redundant calls in dump output. All
14469 callers updated.
14470 (delete_dead_or_redundant_assignment): Similarly for assignments.
14471 (dse_optimize_stmt): Handle _CHK variants. For statements which
14472 store 0 into multiple memory locations, try to prove a subsequent
14473 store is redundant.
14474
14475 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14476
14477 PR target/89021
14478 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14479 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14480
14481 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14482
14483 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14484 (branch_islands): New extern.
14485 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14486 * config/rs6000/rs6000.c: .. here.
14487
14488 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14489
14490 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14491 (powerpc*-*-*) ... to here.
14492
14493 2019-06-26 Jeff Law <law@redhat.com>
14494
14495 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14496 memcpy, memmove and memset builtins.
14497 (maybe_trim_memstar_call): Likewise.
14498
14499 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14500
14501 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14502
14503 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14504
14505 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14506
14507 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14508
14509 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14510 declaration.
14511 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14512 "static".
14513 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14514 declaration.
14515
14516 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14517
14518 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14519
14520 2019-06-26 Richard Biener <rguenther@suse.de>
14521
14522 PR ipa/90982
14523 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14524
14525 2019-06-26 Richard Biener <rguenther@suse.de>
14526
14527 * lto-streamer.h (lto_bitmap_alloc): Remove.
14528 (lto_bitmap_free): Likewise.
14529 * lto-streamer.c (lto_bitmap_alloc): Remove.
14530 (lto_bitmap_free): Likewise.
14531 (lto_obstack): Likewise.
14532 (lto_obstack_initialized): Likewise.
14533 * lto-streamer-out.c (lto_output): Use own obstack for local
14534 bitmap, free it consistently.
14535
14536 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14537
14538 PR target/90991
14539 * config/i386/sse.md
14540 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14541 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14542 insns if operands[2] is misaligned_operand.
14543
14544 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14545
14546 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14547 TARGET_POWERPC64.
14548 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14549 to GPR.
14550
14551 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14552
14553 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14554
14555 2019-06-26 Martin Liska <mliska@suse.cz>
14556
14557 PR tree-optimization/90973
14558 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14559 epilogue_cost_vec instead of prologue_cost_vec for
14560 a epilogue cost.
14561
14562 2019-06-26 Martin Liska <mliska@suse.cz>
14563
14564 * bb-reorder.c (connect_better_edge_p): Add missing else
14565 statement in the middle of if-else statements.
14566
14567 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14568 H.J. Lu <hongjiu.lu@intel.com>
14569 Olga Makhotina <olga.makhotina@intel.com>
14570
14571 * common/config/i386/i386-common.c
14572 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14573 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14574 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14575 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14576 (ix86_handle_option): Handle -mavx512vp2intersect.
14577 * config/i386/avx512vp2intersectintrin.h: New.
14578 * config/i386/avx512vp2intersectvlintrin.h: New.
14579 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14580 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14581 AVX512VP2INTERSECT.
14582 * config/i386/i386-builtin-types.def: Add new types.
14583 * config/i386/i386-builtin.def: Add new builtins.
14584 * config/i386/i386-builtins.c: (enum processor_features): Add
14585 F_AVX512VP2INTERSECT.
14586 (static const _isa_names_table isa_names_table): Ditto.
14587 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14588 __AVX512VP2INTERSECT__.
14589 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14590 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14591 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14592 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14593 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14594 * config/i386/i386-options.c (ix86_target_string): Add
14595 -mavx512vp2intersect.
14596 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14597 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14598 P2HImode and P2QImode.
14599 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14600 number for P2QImode and P2HImode.
14601 (ix86_regmode_natural_size): New function.
14602 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14603 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14604 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14605 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14606 * config/i386/i386.opt: Add -mavx512vp2intersect.
14607 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14608 avx512vp2intersectvlintrin.h.
14609 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14610 (define_mode_iterator VI48_AVX512VP2VL): New.
14611 (avx512vp2intersect_2intersect<mode>,
14612 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14613 * config.gcc: Add avx512vp2intersectvlintrin.h and
14614 avx512vp2intersectintrin.h to extra_headers.
14615 * doc/invoke.texi: Document -mavx512vp2intersect.
14616
14617 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14618
14619 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14620
14621 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14622
14623 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14624 savres_routine_syms, savres_routine_name, morestack_ref,
14625 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14626 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14627 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14628 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14629 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14630 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14631 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14632 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14633 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14634 get_stack_clash_protection_probe_interval,
14635 get_stack_clash_protection_guard_size,
14636 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14637 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14638 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14639 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14640 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14641 gen_frame_mem_offset, rs6000_savres_routine_name,
14642 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14643 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14644 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14645 rs6000_global_entry_point_prologue_needed_p,
14646 rs6000_get_separate_components, rs6000_components_for_bb,
14647 rs6000_disqualify_components, rs6000_emit_prologue_components,
14648 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14649 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14650 rs6000_output_savres_externs, rs6000_output_function_prologue,
14651 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14652 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14653 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14654 rs6000_output_function_epilogue, gen_add3_const,
14655 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14656 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14657 to rs6000-logue.c.
14658 (machine_function): Moved to rs6000.h.
14659 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14660 rs6000-internal.h.
14661 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14662 savres_routine_syms, savres_routine_name, morestack_ref,
14663 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14664 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14665 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14666 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14667 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14668 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14669 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14670 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14671 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14672 get_stack_clash_protection_probe_interval,
14673 get_stack_clash_protection_guard_size,
14674 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14675 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14676 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14677 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14678 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14679 gen_frame_mem_offset, rs6000_savres_routine_name,
14680 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14681 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14682 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14683 rs6000_global_entry_point_prologue_needed_p,
14684 rs6000_get_separate_components, rs6000_components_for_bb,
14685 rs6000_disqualify_components, rs6000_emit_prologue_components,
14686 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14687 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14688 rs6000_output_savres_externs, rs6000_output_function_prologue,
14689 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14690 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14691 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14692 rs6000_output_function_epilogue, gen_add3_const,
14693 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14694 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14695 to here from rs6000.c.
14696 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14697 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14698 quad_address_offset_p) Moved to here from rs6000.c.
14699 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14700 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14701 collector.
14702
14703 2019-06-25 Martin Liska <mliska@suse.cz>
14704
14705 * hash-table.c (hashtab_chk_error): Move here from ...
14706 * hash-table.h (hashtab_chk_error): ... here.
14707
14708 2019-06-25 Martin Liska <mliska@suse.cz>
14709
14710 PR tree-optimization/90978
14711 * df-scan.c (df_update_entry_block_defs): Remove dead else
14712 branch.
14713 (df_update_exit_block_uses): Likewise.
14714
14715 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14716 Andrew Stubbs <ams@codesourcery.com>
14717
14718 * config.gcc (thread_file): Set to gcn for AMD GCN.
14719 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14720 (TARGET_EMUTLS_VAR_INIT): New hook.
14721
14722 2019-06-25 Martin Jambor <mjambor@suse.cz>
14723
14724 PR ipa/90939
14725 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14726
14727 2019-06-25 Richard Biener <rguenther@suse.de>
14728
14729 PR tree-optimization/90930
14730 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14731 into parallel form in the last pass instance.
14732
14733 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14734
14735 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14736 (arc_legitimize_pic_address): Simplify and cleanup the function.
14737 (SYMBOLIC_CONST): Remove.
14738 (prepare_pic_move): Likewise.
14739 (prepare_move_operands): Handle complex mov cases here.
14740 (arc_legitimize_address_0): Remove call to
14741 arc_legitimize_pic_address.
14742 (arc_legitimize_address): Remove call to
14743 arc_legitimize_tls_address.
14744 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14745 (movhi_insn): Likewise.
14746
14747 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14748
14749 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14750 PTRDIFF_TYPE.
14751 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14752 format of "__intN" types for UINTMAX_TYPE.
14753 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14754 format of "__intN" types for SIZETYPE.
14755 * tree.c (build_common_tree_nodes): Accept "__intN__"
14756 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14757 * doc/invoke.texi: Document that __intN__ disables pedantic
14758 warnings.
14759
14760 2019-06-25 Jan Hubicka <jh@suse.cz>
14761
14762 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14763 base2_alias_set is non-zero before doing TBAA based disambiguation.
14764
14765 2019-06-25 Martin Liska <mliska@suse.cz>
14766
14767 PR tree-optimization/90973
14768 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14769 of prologue and epilogue.
14770
14771 2019-06-24 Jan Hubicka <jh@suse.cz>
14772
14773 * ipa-utils.h (type_with_linkage_p): Verify that type is
14774 CXX_ODR_P.
14775 (odr_type_p): Remove extra return.
14776 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14777 hash STRING_FLAG only for arrays and integers.
14778 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14779 Update analogously.
14780 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14781 Likewise.
14782 * print-tree.c (print_node): Print cxx-odr-p
14783 and string-flag.
14784 * tree.c (need_assembler_name_p): Also check that type
14785 is CXX_ODR_TYPE_P
14786 (verify_type_variant): Update verification of SRING_FLAG;
14787 also check CXX_ODR_P.
14788 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14789 (TYPE_STRING_FLAG): Use it.
14790 (TYPE_CXX_ODR_P): New macro.
14791 * dwarf2out.c (gen_array_type_die): First check that type
14792 is an array and then test string flag.
14793
14794 2019-06-24 Richard Biener <rguenther@suse.de>
14795
14796 PR tree-optimization/90972
14797 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14798 in common code, dealing with STRING_CST properly.
14799
14800 2019-06-24 Richard Biener <rguenther@suse.de>
14801
14802 PR tree-optimization/90930
14803 PR tree-optimization/90316
14804 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14805 decrement of limit.
14806
14807 2019-06-24 Martin Sebor <msebor@redhat.com>
14808
14809 * tree-pretty-print.h: Remove unnecessary punctuation characters
14810 from a diagnostic.
14811 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14812
14813 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14814
14815 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14816 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14817 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14818
14819 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14820
14821 * config/rs6000/darwin.h: Handle GCC target pragma.
14822
14823 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14824
14825 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14826
14827 2019-06-22 Jeff Law <law@redhat.com>
14828
14829 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14830
14831 2019-06-22 Jan Hubicka <jh@suse.cz>
14832
14833 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14834 give up on bitfields; continue searching for different refs
14835 appearing later.
14836
14837 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14838
14839 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14840 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14841 containing the offset as possible simd lane access. Look through
14842 widening conversion. Move the
14843 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14844
14845 2019-06-21 Richard Biener <rguenther@suse.de>
14846
14847 PR tree-optimization/90930
14848 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14849 flag on new stmts to avoid re-processing them.
14850
14851 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14852
14853 PR c++/90875 - added -Wswitch-outside-range option
14854 * doc/invoke.texi (Wswitch-outside-range): Document.
14855
14856 2019-06-21 Jeff Law <law@redhat.com>
14857
14858 PR tree-optimization/90949
14859 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14860 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14861
14862 2019-06-21 Richard Biener <rguenther@suse.de>
14863
14864 PR debug/90914
14865 * dwarf2out.c (prune_unused_types_walk): Always consider
14866 function-local extern declarations as used.
14867
14868 2019-06-21 Richard Biener <rguenther@suse.de>
14869
14870 PR tree-optimization/90913
14871 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14872 the scalar variant of if-conversion versioning.
14873
14874 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14875
14876 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14877 create another "omp scan inscan exclusive" array if
14878 !ctx->scan_inclusive.
14879 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14880 (lower_omp_scan): Likewise.
14881 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14882 2-bit bitfield for simd_lane_access_p member.
14883 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14884 aux == (void *)-4 as simd lane access.
14885 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14886 comment with permutations to show the canonical permutation order.
14887 (vectorizable_scan_store): Handle exclusive scan.
14888 (vectorizable_store): Call vectorizable_scan_store even for
14889 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14890
14891 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14892 "omp simd array" arrays with one byte elements.
14893
14894 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14895
14896 * config/alpha/alpha.md (@unaligned_store<mode>):
14897 Rename from unaligned_store<mode>.
14898 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14899 * config/alpha/sync.md (@load_locked_<mode>): Rename
14900 from load_locked_<mode>.
14901 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14902 (@atomic_compare_and_swap<mode>_1): Rename
14903 from atomic_compare_and_swap<mode>_1.
14904 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14905 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14906 Use gen_reload_in_aligned and gen_unaligned_store.
14907 (emit_load_locked): Remove.
14908 (emit_store_conditional): Ditto.
14909 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14910 (alpha_split_compare_and_swap): Ditto.
14911 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14912 (alpha_split_compare_and_swap_12): Use gen_load_locked
14913 and gen_store_conditional.
14914 (alpha_split_atomic_exchange): Ditto.
14915 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14916 (alpha_split_atomic_exchange_12): Use gen_load_locked
14917 and gen_store_conditional.
14918
14919 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14920
14921 * config/aarch64/aarch64-errata.h: New file.
14922 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14923 (CA53_ERR_843419_SPEC): Delete.
14924 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14925 * config/aarch64/aarch64-linux.h: Likewise.
14926 * config/aarch64/aarch64-netbsd.h: Likewise.
14927 * config/aarch64/aarch64-freebsd.h: Likewise.
14928
14929 2019-06-20 Marek Polacek <polacek@redhat.com>
14930
14931 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14932
14933 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14934
14935 * config/rs6000/rs6000.md (isa attribute): Add support for
14936 for a future processor.
14937
14938 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14939
14940 PR target/54855
14941 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14942 standard scalar operation pattern for V2DF.
14943 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14944 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14945 (*ieee_<ieee_maxmin><mode>3): Likewise.
14946 (vec_setv2df_0): Likewise.
14947
14948 2019-06-20 Jan Hubicka <jh@suse.cz>
14949
14950 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14951 parameter; it has no use in gimple memory model.
14952 (indirect_ref_may_alias_decl_p): Update.
14953
14954 2019-06-20 Martin Liska <mliska@suse.cz>
14955
14956 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14957 to 10.
14958
14959 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14960
14961 * tree-vect-stmts.c (enum scan_store_kind): New type.
14962 (scan_store_can_perm_p): Change last argument from int * to
14963 vec<enum scan_store_kind> *, record precisely which permutations
14964 need whole vector left shift or that plus VEC_COND_EXPR.
14965 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14966 and additional VEC_COND_EXPR only for those iterations that need it.
14967
14968 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14969
14970 * config.gcc: Fix ARM --with-fpu checking and error message.
14971
14972 2019-06-19 Marek Polacek <polacek@redhat.com>
14973
14974 PR c++/60364 - noreturn after first decl not diagnosed.
14975 * attribs.c (get_attribute_namespace): No longer static.
14976 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14977 attributes.
14978 (attr_noreturn_exclusions): Make it extern.
14979 * attribs.h (get_attribute_namespace): Declare.
14980 * tree-inline.c (function_attribute_inlinable_p): Use
14981 get_attribute_name.
14982
14983 2019-06-19 Martin Sebor <msebor@redhat.com>
14984
14985 PR tree-optimization/90626
14986 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14987
14988 PR tree-optimization/90626
14989 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14990 (handle_builtin_string_cmp): Call it.
14991
14992 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14993
14994 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14995 and DARWIN_NOPIE_SPEC.
14996 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14997 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14998 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14999 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
15000 (DARWIN_EXPORT_DYNAMIC): Delete.
15001 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
15002 and pie options processing to darwin.h.
15003 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
15004
15005 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15006
15007 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
15008 in computing the number of options to be moved.
15009
15010 2019-06-19 Maya Rashish <coypu@sdf.org>
15011
15012 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
15013 (CLEAR_INSN_CACHE) Use it.
15014
15015 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
15016
15017 * config/i386/i386.md (cmpstrnsi): Remove dead code.
15018
15019 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
15020
15021 PR middle-end/84521
15022 * builtins.c (expand_builtin_setjmp_setup): Save
15023 hard_frame_pointer_rtx.
15024 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
15025 restore fp.
15026 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
15027 non-local goto.
15028 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
15029 elimination code.
15030 (remove_reg_equal_offset_note): Remove unused function.
15031 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
15032 code.
15033 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15034 (arc_builtin_setjmp_frame_value): Remove function.
15035 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15036 (avr_builtin_setjmp_frame_value): Remove function.
15037 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15038 (ix86_builtin_setjmp_frame_value): Remove function.
15039 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
15040 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15041 (sparc_builtin_setjmp_frame_value): Remove function.
15042 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15043 (vax_builtin_setjmp_frame_value): Remove function.
15044 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
15045 pointer if has_nonlocal_label.
15046
15047 2019-06-19 Jakub Jelinek <jakub@redhat.com>
15048
15049 * doc/md.texi: Document vec_shl_<mode> pattern.
15050 * optabs.def (vec_shl_optab): New optab.
15051 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
15052 argument, if == vec_shl_optab, check for left whole vector shift
15053 pattern rather than right shift.
15054 (expand_vec_perm_const): Add vec_shl_optab support.
15055 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
15056 in the comment.
15057 * tree-vect-generic.c (lower_vec_perm): Support permutations which
15058 can be handled by vec_shl_optab.
15059 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
15060 (check_scan_store): Use it.
15061 (vectorizable_scan_store): If target can't do normal permutations,
15062 try to use whole vector left shifts and if needed a VEC_COND_EXPR
15063 after it.
15064 * config/i386/sse.md (vec_shl_<mode>): New expander.
15065
15066 * omp-low.c (lower_rec_input_clauses): Handle references properly
15067 in inscan clauses.
15068 (lower_omp_scan): Likewise.
15069
15070 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15071
15072 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
15073 mem_mode is BLKmode.
15074
15075 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
15076
15077 PR target/90922
15078 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
15079 pointer adjustment for the case of no callee-saved registers and
15080 stack frame bigger than 128 bytes.
15081
15082 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
15083
15084 PR middle-end/90862
15085 * omp-low.c (check_omp_nesting_restrictions): Handle
15086 GF_OMP_TARGET_KIND_OACC_DECLARE.
15087
15088 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
15089
15090 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
15091 (@add<mode>3_carry): Rename from add<mode>3_carry.
15092 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
15093 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
15094 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
15095 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
15096 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
15097 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
15098 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
15099 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
15100 (cmpstrnsi): Use gen_cmp_1.
15101 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15102 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15103 (@umonitor_<mode>): Rename from umonitor_<mode>.
15104 * config/i386/i386-expand.c (ix86_expand_copysign):
15105 Use gen_copysign3_const and gen_copysign3_var.
15106 (ix86_expand_xorsign): Use gen_xorsign3_1.
15107 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15108 gen_sub3_carry_ccgz and gen_cmp1.
15109 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15110 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15111 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15112 (ix86_split_lshr): Ditto.
15113 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15114
15115 2019-06-18 Jason Merrill <jason@redhat.com>
15116
15117 * tree.c (build_constructor): Add MEM_STAT_DECL.
15118
15119 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15120
15121 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15122 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15123 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15124 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15125 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15126 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15127 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15128 Use CC_NZC instead of CC.
15129 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15130 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15131 (aarch64_print_operand): Handle E_CC_NZCmode.
15132 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15133 of gen_set_clobber_cc.
15134
15135 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15136
15137 * config/aarch64/aarch64-sve.md: Tabify file.
15138
15139 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15140
15141 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15142 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15143 * config/aarch64/aarch64-sve.md: Use it.
15144
15145 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15146
15147 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15148 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15149 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15150 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15151 (aarch64_expand_sve_vec_cmp_int): Use it.
15152 (aarch64_expand_sve_vec_cmp_float): Likewise.
15153 * config/aarch64/aarch64-sve.md: Likewise throughout.
15154
15155 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15156 Kugan Vivekanandarajah <kuganv@linaro.org>
15157
15158 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15159 (*cond_<optab><mode>_z): Fold into...
15160 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15161 operand 4 can be tied to operand 0 (either inherently or via RA).
15162
15163 2019-06-18 Richard Biener <rguenther@suse.de>
15164
15165 PR debug/90900
15166 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15167 as if optimized away.
15168
15169 2019-06-18 Tom de Vries <tdevries@suse.de>
15170
15171 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15172 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15173 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15174 Rename to ...
15175 (define_insn "@set_softstack_<mode>"): ... this.
15176 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15177 (define_insn "@omp_simt_enter_<mode>"): ... this.
15178 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15179 (define_insn "@omp_simt_exit_<mode>"): ... this.
15180
15181 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15182
15183 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15184 vf parameter. Restore the previous iv step of nscalars_step,
15185 but give it iv_type rather than compare_type. Tweak code order
15186 to match the comments.
15187 (vect_set_loop_condition_masked): Update accordingly.
15188 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15189 for iv_precision. Tweak comment formatting.
15190
15191 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15192
15193 * config/darwin.c: Strip trailing whitespace.
15194
15195 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15196
15197 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15198 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15199
15200 2019-06-18 Martin Jambor <mjambor@suse.cz>
15201
15202 PR ipa/90889
15203 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15204 caller does not have flag_ipa_cp set.
15205
15206 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15207
15208 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15209 from "*fold_left_plus_<mode>", updated operands order.
15210 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15211 * internal-fn.c (mask_fold_left_direct): New define.
15212 (expand_mask_fold_left_optab_fn): Likewise.
15213 (direct_mask_fold_left_optab_supported_p): Likewise.
15214 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15215 * optabs.def (mask_fold_left_plus_optab): New optab.
15216 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15217 masked internal_fn for a reduction ifn.
15218 (vectorize_fold_left_reduction): Add support for masking reductions.
15219
15220 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15221
15222 PR middle-end/80791
15223 * target.def (predict_doloop_p): New hook.
15224 * targhooks.h (default_predict_doloop_p): New declaration.
15225 * targhooks.c (default_predict_doloop_p): New function.
15226 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15227 * doc/tm.texi: Regenerate.
15228 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15229 (TARGET_PREDICT_DOLOOP_P): New macro.
15230 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15231
15232 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15233
15234 * omp-low.c (struct omp_context): Add scan_inclusive field.
15235 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15236 if inclusive scan.
15237 (struct omplow_simd_context): Add lastlane member.
15238 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15239 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15240 1 or 2 argument.
15241 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15242 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15243 (lower_omp_scan): New function.
15244 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15245 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15246 check 3rd argument if present rather than 2nd.
15247 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15248 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15249 2-bit bitfield.
15250 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15251 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15252 than 2nd.
15253 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15254 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15255 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15256 init.
15257 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15258 IFN_GOMP_SIMD_LANE argument.
15259 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15260 encoded ->aux value.
15261 * tree-vect-stmts.c: Include attribs.h.
15262 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15263 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15264 functions.
15265 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15266 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15267
15268 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15269
15270 PR target/62055
15271 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15272 (*nabs<mode>2_1): Ditto.
15273 (nabs sse-reg splitter): New splitter.
15274 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15275
15276 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15277
15278 PR bootstrap/90873.
15279 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15280 TMR index check.
15281
15282 2019-06-17 Tom de Vries <tdevries@suse.de>
15283
15284 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15285 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15286 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15287 ...
15288 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15289 match_operand 0.
15290 (define_insn "omp_simt_enter_insn"): Rename to ...
15291 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15292 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15293 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15294 gen_omp_simt_enter_si.
15295 (define_expand "omp_simt_exit"): New.
15296 (define_insn "omp_simt_exit"): Rename to ...
15297 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15298 match_operand 0.
15299
15300 2019-06-17 Matthew Green <mrg@eterna.com.au>
15301 Maya Rashish <coypu@sdf.org>
15302
15303 * config.gcc (aarch64*-*-netbsd*): New target.
15304 * config/aarch64/aarch64-netbsd.h: New file.
15305 * config/aarch64/t-aarch64-netbsd: Likewise.
15306
15307 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15308
15309 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15310 the access path from base to first VIEW_CONVERT_EXPR or
15311 BIT_FIELD_REF.
15312
15313 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15314
15315 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15316 access path on BIT_FIELD_REFs.
15317
15318 2019-06-17 Martin Liska <mliska@suse.cz>
15319
15320 PR ipa/90874
15321 * ipa-utils.h (odr_type_p): Remove dead code.
15322
15323 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15324
15325 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15326 alternative Solaris 11.4 format.
15327 * configure: Regenerate.
15328
15329 2019-06-17 Tom de Vries <tdevries@suse.de>
15330
15331 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15332 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15333 match_operand 0.
15334 (define_insn "call_value_insn"): Rename to ...
15335 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15336 match_operand 0.
15337 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15338 DI.
15339
15340 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15341
15342 PR middle-end/64242
15343 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15344 frame clobbers and schedule block.
15345 (builtin_longjmp): Likewise.
15346
15347 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15348
15349 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15350 describe how to perform MSPABI compliant 64-bit shift.
15351 * config/msp430/msp430.md (ashldi3): New define_expand.
15352 (ashrdi3): New define_expand.
15353 (lshrdi3): New define_expand.
15354
15355 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15356
15357 * doc/sourcebuild.texi: Document new effective target keyword
15358 longlong64.
15359
15360 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15361
15362 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15363 indirect_refs_may_alias_p): Revert accidental commits.
15364
15365 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15366 at the end of structures.
15367
15368 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15369
15370 * config/darwin.c (machopic_indirect_call_target): Use renamed
15371 darwin_picsymbol_stubs to decide on output.
15372 (darwin_override_options): Handle darwin_picsymbol_stubs.
15373 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15374 (LD64_VERSION): Revise default.
15375 * config/darwin.opt: (mpic-symbol-stubs): New option.
15376 (darwin_picsymbol_stubs): New variable.
15377 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15378 rename to TARGET_MACHO_PICSYM_STUBS.
15379 * config/i386/i386.c (output_pic_addr_const): Likewise.
15380 * config/i386/i386.h Likewise.
15381 * config/rs6000/darwin.h: Likewise.
15382 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15383 darwin_picsymbol_stubs.
15384
15385 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15386
15387 * config/darwin.opt (prebind, noprebind, seglinkedit,
15388 noseglinkedit): Add RejectNegative.
15389
15390 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15391
15392 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15393 in my previous patch.
15394
15395 2019-06-16 Tom de Vries <tdevries@suse.de>
15396
15397 PR tree-optimization/89376
15398 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15399
15400 2019-06-15 Maya Rashish <coypu@sdf.org>
15401
15402 * doc/invoke.texi (Spec Files): Update location of the
15403 Fortran spec file.
15404
15405 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15406
15407 * doc/extend.texi (Common Function Attributes): Clarify
15408 no_sanitize. Fix grammar.
15409
15410 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15411
15412 * tree-ssa-alias.c (alias_stats): Add
15413 nonoverlapping_component_refs_p_may_alias,
15414 nonoverlapping_component_refs_p_no_alias,
15415 nonoverlapping_component_refs_of_decl_p_may_alias,
15416 nonoverlapping_component_refs_of_decl_p_no_alias.
15417 (dump_alias_stats): Dump them.
15418 (nonoverlapping_component_refs_of_decl_p): Add stats.
15419 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15420 ARRAY_REF.
15421
15422 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15423
15424 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15425 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15426 only.
15427 (*anddi3_doubleword): Split before reload. Merge with
15428 anddi->zext pre-reload splitter.
15429 (*andndi3_doubleword): Split before reload.
15430 (*<code>di3_doubleword): Ditto.
15431 (*one_cmpldi2_doubleword): Ditto.
15432
15433 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15434
15435 PR middle-end/90779
15436 * gimplify.c: Include omp-offload.h and context.h.
15437 (gimplify_bind_expr): Add "omp declare target" attributes
15438 to static block scope variables inside of target region or target
15439 functions.
15440
15441 2019-06-15 Tom de Vries <tdevries@suse.de>
15442
15443 PR tree-optimization/90009
15444 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15445 Return NULL if bb contains IFN_UNIQUE.
15446
15447 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15448
15449 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15450 (un): New define_mode_attr.
15451 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15452 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15453 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15454 merge into ...
15455 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15456
15457 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15458
15459 * config/darwin.opt: Add RejectNegative where needed, reorder
15460 and add minimal functional descriptions.
15461
15462 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15463
15464 PR rtl-optimization/90765
15465 * calls.c (update_stack_alignment_for_call): New function.
15466 (expand_call): Call update_stack_alignment_for_call when
15467 outgoing parameter is passed in the stack.
15468 (emit_library_call_value_1): Likewise.
15469 * function.c (locate_and_pad_parm): Don't update
15470 stack_alignment_needed and preferred_stack_boundary.
15471
15472 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15473
15474 PR target/90877
15475 * config/i386/i386-features.c
15476 (dimode_scalar_chain::compute_convert_gain): Replace
15477 mmxsse_to_integer with sse_to_integer.
15478 * config/i386/i386.c (ix86_register_move_cost): Verify that
15479 moves between MMX and non-MMX units require secondary memory.
15480 Correct costs of moves between SSE and integer units.
15481 * config/i386/i386.h (processor_costs): Rename cost of moving
15482 SSE register to integer to sse_to_integer. Rename cost of
15483
15484 2019-06-14 Matt Thomas <matt@3am-software.com>
15485 Matthew Green <mrg@eterna.com.au>
15486 Nick Hudson <skrll@netbsd.org>
15487 Maya Rashish <coypu@sdf.org>
15488 Richard Earnshaw <rearnsha@arm.com>
15489
15490 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15491 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15492 * config/arm/netbsd-eabi.h: New file.
15493 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15494 redefining.
15495 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15496 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15497 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15498 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15499
15500 2019-06-14 Richard Biener <rguenther@suse.de>
15501
15502 * tree-loop-distribution.c (classify_partition): Return
15503 whether a reduction appeared in all partitions and do not
15504 stop builtin detection because of this.
15505 (distribute_loop): Sort a non-builtin partition last if
15506 there's a reduction in all partitions and make sure the
15507 partition prevailing as last is not a builtin.
15508
15509 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15510
15511 PR ipa/90401
15512 * ipa-prop.c (add_to_agg_contents_list): New function.
15513 (clobber_by_agg_contents_list_p): Likewise.
15514 (extract_mem_content): Likewise.
15515 (get_place_in_agg_contents_list): Delete.
15516 (determine_known_aggregate_parts): Renamed from
15517 determine_locally_known_aggregate_parts. New parameter
15518 aa_walk_budget_p.
15519
15520 2019-06-13 Martin Sebor <msebor@redhat.com>
15521
15522 PR tree-optimization/90662
15523 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15524 to the same type.
15525
15526 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15527
15528 PR bootstrap/90873
15529 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15530 dbase is not TARGET_MEM_REF.
15531
15532 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15533
15534 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15535 Update all uses.
15536 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15537 Do not generate DImode extends for 32bit targets.
15538 (and->zext post-reload splitter): Use gen_extend_insn
15539 instead of indirect functions.
15540 (anddi->zext pre-reload splitter): New.
15541 (*zext<mode>_doubleword_and): Remove.
15542 (*zext<mode>_doubleword): Ditto.
15543 (*zextsi_doubleword): Dittto.
15544
15545 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15546
15547 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15548 Use gen_sub3_insn instead of indirect function.
15549 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15550 indirect function.
15551 (ix86_adjust_counter): Ditto.
15552
15553 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15554 Lijia He <helijia@linux.ibm.com>
15555
15556 PR tree-optimization/77820
15557 * tree-ssa-threadedge.c
15558 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15559 function.
15560 (thread_across_edge): Add call to
15561 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15562
15563 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15564
15565 * config/darwin-driver.c (validate_macosx_version_min): New.
15566 (darwin_default_min_version): Cleanup and validate supplied version.
15567 (darwin_driver_init): Likewise and push cleaned version into opts.
15568
15569 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15570
15571 PR tree-optimization/90869
15572 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15573 converts in MEM_REF referencing decl rather than view converts
15574 from decl type to MEM_REF type.
15575
15576 2019-06-13 Richard Biener <rguenther@suse.de>
15577
15578 PR tree-optimization/90856
15579 * tree-sra.c (build_ref_for_model): Only use
15580 build_reconstructed_reference when address-spaces are the same.
15581
15582 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15583
15584 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15585 wrap ei variable name in the declaration in ()s.
15586 (nvptx_single): Actually use mode_label variable. Formatting fix.
15587
15588 2019-06-13 Richard Biener <rguenther@suse.de>
15589
15590 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15591 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15592 also return the condition stmt.
15593 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15594 loop we can version and version that, reusing the loop version
15595 created by if-conversion instead of versioning again.
15596
15597 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15598
15599 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15600 may_contain_p.
15601 * tree-vrp (value_range_base::may_contain_p): Call into
15602 value_inside_range.
15603 (value_inside_range): Make private inside value_range_base class.
15604 Take min/max from *this.
15605 (range_includes_p): Remove.
15606 * tree-vrp.h (value_range_base): Add value_inside_range.
15607 (range_includes_p): Remove.
15608 (range_includes_zero_p): Call may_contain_p.
15609 * vr-values.c (compare_range_with_value): Same.
15610
15611 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15612
15613 * doc/extend.texi (ARC Function Attributes): Update info.
15614
15615 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15616
15617 PR tree-optimization/89713
15618 * doc/invoke.texi (-ffinite-loops): Document new option.
15619 * common.opt (-ffinite-loops): New option.
15620 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15621 IFN_GOACC_LOOP calls as necessary.
15622 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15623 is finite.
15624 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15625 IFN_GOACC_LOOP call is not used.
15626 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15627
15628 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15629
15630 PR target/88838
15631 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15632 compare_type is not with Pmode size, we will create an IV with
15633 Pmode size with truncated use (i.e. converted to the correct type).
15634 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15635 (vect_iv_limit_for_full_masking): New. Factored out of
15636 vect_set_loop_condition_masked.
15637 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15638 (vect_iv_limit_for_full_masking): Declare.
15639
15640 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15641
15642 PR target/88834
15643 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15644 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15645 (get_alias_ptr_type_for_ptr_address): Likewise.
15646 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15647 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15648 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15649 allow_reg_index_p.
15650
15651 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15652
15653 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15654
15655 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15656
15657 * common/config/pru/pru-common.c: New file.
15658 * config.gcc: Add PRU target.
15659 * config/pru/alu-zext.md: New file.
15660 * config/pru/constraints.md: New file.
15661 * config/pru/predicates.md: New file.
15662 * config/pru/pru-opts.h: New file.
15663 * config/pru/pru-passes.c: New file.
15664 * config/pru/pru-pragma.c: New file.
15665 * config/pru/pru-protos.h: New file.
15666 * config/pru/pru.c: New file.
15667 * config/pru/pru.h: New file.
15668 * config/pru/pru.md: New file.
15669 * config/pru/pru.opt: New file.
15670 * config/pru/t-pru: New file.
15671 * doc/extend.texi: Document PRU pragmas.
15672 * doc/invoke.texi: Document PRU-specific options.
15673 * doc/md.texi: Document PRU asm constraints.
15674
15675 2019-06-12 Martin Sebor <msebor@redhat.com>
15676
15677 PR middle-end/90676
15678 * tree-pretty-print.c (dump_mem_ref): New function. Include
15679 MEM_REF type in output when different size than operand.
15680 (dump_generic_node): Move code to dump_mem_ref and call it.
15681
15682 2019-06-12 Martin Sebor <msebor@redhat.com>
15683
15684 PR tree-optimization/90662
15685 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15686 to arrays.
15687
15688 2019-06-12 Tom de Vries <tdevries@suse.de>
15689
15690 PR tree-optimization/90009
15691 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15692
15693 2019-06-12 Martin Liska <mliska@suse.cz>
15694
15695 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15696 the created map.
15697 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15698 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15699 Do not sanitize created maps.
15700
15701 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15702
15703 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15704 value_range::singleton_p.
15705 * tree-vrp.c (value_range_constant_singleton): Remove.
15706 * tree-vrp.h (value_range_constant_singleton): Remove.
15707 * vr-values.c (vr_values::singleton): Use
15708 value_range::singleton_p.
15709
15710 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15711
15712 PR target/90811
15713 * cfgexpand.c (align_local_variable): Add really_expand argument,
15714 don't SET_DECL_ALIGN if it is false.
15715 (add_stack_var): Add really_expand argument, pass it through to
15716 align_local_variable.
15717 (expand_one_stack_var_1): Pass true as really_expand to
15718 align_local_variable.
15719 (expand_one_ssa_partition): Pass true as really_expand to
15720 add_stack_var.
15721 (expand_one_var): Pass really_expand through to add_stack_var.
15722
15723 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15724
15725 * config/arm/iterators.md (VABAL): New int iterator.
15726 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15727 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15728 UNSPEC_VABAL_U values.
15729
15730 2019-06-12 Martin Liska <mliska@suse.cz>
15731
15732 * value-prof.c (stream_out_histogram_value): Only first value
15733 can't be negative.
15734
15735 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15736
15737 PR c/90760
15738 * symtab.c (symtab_node::set_section): Allow being called on aliases
15739 as long as they aren't analyzed yet.
15740
15741 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15742
15743 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15744 to `mips_set_text_contents_type' to indicate whether a
15745 non-debug insn follows.
15746
15747 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15748
15749 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15750 enabling -mpcrel by default.
15751 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15752 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15753 that the test against -mcpu=future is done first. Then test if
15754 -mprefixed-addr is on for -mpcrel.
15755 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15756
15757 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15758
15759 PR target/90811
15760 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15761 instead of and.u%d.
15762
15763 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15764
15765 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15766
15767 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15768
15769 PR c++/90449 - add -Winaccessible-base option.
15770 * doc/invoke.texi (Winaccessible-base): Document.
15771
15772 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15773
15774 PR tree-optimization/62041
15775 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15776
15777 2019-06-11 Jason Merrill <jason@redhat.com>
15778
15779 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15780 * tree.c (get_tree_code_name): Likewise.
15781 * print-tree.c (print_node): Only briefly print a node with an
15782 invalid code.
15783
15784 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15785
15786 PR bootstrap/90819
15787 * trans-mem.c (tm_memopt_compute_available): Add assertion
15788 that blocks is not empty. Formatting fix.
15789
15790 2019-06-11 Martin Liska <mliska@suse.cz>
15791
15792 PR c++/87847
15793 * hash-table.h: Extend create_gcc, add one parameter
15794 that is passed into hash_table::hash_table.
15795
15796 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15797
15798 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15799 New prototype.
15800 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15801 Emit clobber also for non-sse operations.
15802 (ix86_split_fp_absneg_operator): New function.
15803 * config/i386/i386.md (SSEMODEF): New mode iterator.
15804 (ssevecmodef): New mode attribute.
15805 (<code>tf2): Use absneg code iterator.
15806 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15807 Add three-operand AVX alternatives.
15808 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15809 Use absneg code iterator and X87MODEF mode iterator.
15810 (absneg fp_reg non-sse splitter): Call absneg code iterator
15811 and X87MODEF mode iterator.
15812 (absneg general_reg non-sse splitter): Use absneg code iterator
15813 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15814 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15815 code iterator. Add three-operand AVX alternative.
15816 (absneg sse_reg splitter): Use absneg code iterator
15817 and SSEMODEF mode iterator. Handle AVX operands.
15818 (absneg fp_reg splitter): Use absneg code iterator
15819 and MODEF mode iterator.
15820 (absneg general_reg splitter): Merge splitters using MODEF mode
15821 iterator. Use absneg code iterator. Call
15822 ix86_split_fp_absneg_operator.
15823 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15824 Do not enable for non-sse modes before reload.
15825 (CSGNMODE): Remove.
15826 (CSGNVMODE): Ditto.
15827 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15828 ssevecmodef mode attribute instaed of CSGNVMODE.
15829 (copysign<mode>3_const): Ditto.
15830 (copysign<mode>3_var): Ditto.
15831 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15832 Use absneg code iterator. Simplify code using std::swap.
15833 * config/i386/predicates.md (absneg_operator): Remove.
15834
15835 2019-06-10 Martin Sebor <msebor@redhat.com>
15836
15837 * gimple-fold.c (get_range_strlen): Update comment that didn't
15838 make it into r267503 or related commits.
15839
15840 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15841
15842 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15843 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15844
15845 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15846
15847 * tree.def (OMP_SCAN): New tree code.
15848 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15849 OMP_CLAUSE_EXCLUSIVE.
15850 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15851 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15852 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15853 OMP_CLAUSE_{IN,EX}CLUSIVE.
15854 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15855 * tree-nested.c (convert_nonlocal_reference_stmt,
15856 convert_local_reference_stmt, convert_gimple_call): Handle
15857 GIMPLE_OMP_SCAN.
15858 * tree-pretty-print.c (dump_omp_clause): Handle
15859 OMP_CLAUSE_{IN,EX}CLUSIVE.
15860 (dump_generic_node): Handle OMP_SCAN.
15861 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15862 * gimple.h (gomp_scan): New type.
15863 (is_a_helper <gomp_scan *>::test,
15864 is_a_helper <const gomp_scan *>::test): New templates.
15865 (gimple_build_omp_scan): Declare.
15866 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15867 gimple_omp_scan_set_clauses): New inline functions.
15868 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15869 * gimple.c (gimple_build_omp_scan): New function.
15870 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15871 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15872 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15873 GIMPLE_OMP_TASKGROUP.
15874 (dump_gimple_omp_scan): New function.
15875 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15876 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15877 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15878 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15879 (is_gimple_stmt): Handle OMP_SCAN.
15880 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15881 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15882 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15883 mentioned in nested #pragma omp scan. Handle
15884 OMP_CLAUSE_{IN,EX}CLUSIVE.
15885 (gimplify_expr): Handle OMP_SCAN.
15886 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15887 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15888 simd constructs.
15889 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15890 GIMPLE_OMP_SCAN.
15891
15892 2019-06-10 Martin Liska <mliska@suse.cz>
15893
15894 * ipa-cp.c (ignore_edge_p): New function.
15895 (build_toporder_info): Use it.
15896 * ipa-inline.c (ignore_edge_p): New function.
15897 (inline_small_functions): Use it.
15898 * ipa-pure-const.c (ignore_edge_for_nothrow):
15899 Verify opt_for_fn for caller and callee.
15900 (ignore_edge_for_pure_const): Likewise.
15901 * ipa-reference.c (ignore_edge_p): Extend to check
15902 for opt_for_fn.
15903 * ipa-utils.c (searchc): Refactor.
15904 * ipa-utils.h: Fix coding style.
15905
15906 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15907
15908 * config/arc/arc.c (arc_rtx_costs): Update costs.
15909
15910 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15911
15912 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15913 (arc_split_ior): Likewise.
15914 (arc_check_mov_const): Likewise.
15915 (arc_split_mov_const): Likewise.
15916 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15917 (arc_rtx_costs): Replace check Crr with Cax constraint.
15918 (prepare_move_operands): Cleanup, remove unused code.
15919 (arc_split_ior): New function.
15920 (arc_check_ior_const): Likewise.
15921 (arc_split_mov_const): Likewise.
15922 (arc_check_mov_const): Likewise.
15923 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15924 in define_insn_and_split pattern.
15925 (iorsi3): Likewise.
15926 (mulsi3_v2): Add new matching variant.
15927 (andsi3_i): Cleanup pattern.
15928 (rotrsi3_cnt1): Update pattern.
15929 (rotrsi3_cnt8): New pattern.
15930 (ashlsi2_cnt8): Likewise.
15931 (ashlsi2_cnt16): Likewise.
15932 * config/arc/constraints.md (C0p): Update constraint.
15933 (Crr): Remove it.
15934 (C0x): New pattern.
15935 (Cax): New pattern.
15936
15937 2019-06-10 Martin Liska <mliska@suse.cz>
15938
15939 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15940 Update coding style.
15941 (sem_item_optimizer::dump_cong_classes):
15942 Print how many items are in a non-singular class. Improve
15943 coding style.
15944
15945 2019-06-10 Martin Liska <mliska@suse.cz>
15946
15947 * value-prof.c (dump_histogram_value): Change dump format.
15948 (gimple_mod_subtract_transform): Remove legacy comment.
15949
15950 2019-06-10 Martin Liska <mliska@suse.cz>
15951
15952 * value-prof.c (dump_histogram_value): Print histogram values
15953 only if present.
15954
15955 2019-06-10 Martin Liska <mliska@suse.cz>
15956
15957 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15958 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15959 * ipa-profile.c (ipa_profile_generate_summary):
15960 Use get_most_common_single_value.
15961 * tree-profile.c (gimple_init_gcov_profiler):
15962 Instrument with __gcov_one_value_profiler_v2
15963 and __gcov_indirect_call_profiler_v4.
15964 * value-prof.c (dump_histogram_value):
15965 Print all values for HIST_TYPE_SINGLE_VALUE.
15966 (stream_out_histogram_value): Update assert for
15967 N values.
15968 (stream_in_histogram_value): Set number of
15969 counters for HIST_TYPE_SINGLE_VALUE.
15970 (get_most_common_single_value): New.
15971 (gimple_divmod_fixed_value_transform):
15972 Use get_most_common_single_value.
15973 (gimple_ic_transform): Likewise.
15974 (gimple_stringops_transform): Likewise.
15975 (gimple_find_values_to_profile): Set number
15976 of counters for HIST_TYPE_SINGLE_VALUE.
15977 * value-prof.h (get_most_common_single_value): New.
15978
15979 2019-06-10 Martin Liska <mliska@suse.cz>
15980
15981 * hash-map.h: Pass default value to hash_table ctor.
15982 * hash-table.h: Add default value to call of a ctor.
15983
15984 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15985
15986 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15987 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15988
15989 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15990
15991 PR target/90751
15992 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15993 Call pa_output_function_label.
15994 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15995 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15996 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15997 to declaration.
15998 (pa_linux_output_function_prologue): Declare.
15999 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
16000 (pa_output_function_label): New.
16001 (pa_output_function_prologue): Revise to use pa_output_function_label.
16002 (pa_linux_output_function_prologue): New.
16003 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
16004
16005 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
16006
16007 * tree-vrp.h (value_range_base::intersect): New.
16008 (value_range::intersect_helper): Move from here...
16009 (value_range_base::intersect_helper): ...to here.
16010 * tree-vrp.c (value_range::intersect_helper): Rename to...
16011 (value_range_base::intersect_helper): ...this, and rewrite to
16012 return a value instead of modifying THIS in place.
16013 Also, move equivalence handling...
16014 (value_range::intersect): ...here, while calling intersect_helper.
16015 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
16016 calling intersect.
16017 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
16018 Same.
16019 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
16020
16021 2019-06-07 Jakub Jelinek <jakub@redhat.com>
16022
16023 * Makefile.in (genprogerr): Add condmd.
16024 (genprog): Remove it here.
16025
16026 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
16027
16028 * doc/invoke.texi (AMD GCN Options): Add gfx906.
16029
16030 2019-06-07 Richard Biener <rguenther@suse.de>
16031
16032 PR debug/90574
16033 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
16034 that appear after user labels.
16035
16036 2019-06-07 Martin Liska <mliska@suse.cz>
16037
16038 * cselib.c (cselib_init): Disable hash table
16039 sanitization.
16040 * hash-set.h: Pass new default argument to m_table.
16041 * hash-table.c: Add global variable with hash table
16042 sanitization limit.
16043 * hash-table.h (Allocator>::hash_table): Add new argument
16044 to ctor.
16045 (hashtab_chk_error): New.
16046 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
16047 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
16048 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
16049
16050 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16051
16052 * common.opt (flto-odr-type-merging): Ignore.
16053 * invoke.texi (-flto-odr-type-merging): Remove.
16054 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
16055 (can_be_vtable_hashed_p): Remove.
16056 (hash_odr_vtable): Remove.
16057 (odr_vtable_hasher::hash): Remove.
16058 (types_same_for_odr): Remove.
16059 (types_odr_comparable): Remove.
16060 (odr_vtable_hasher::equal): Remove.
16061 (odr_vtable_hash_type, odr_vtable_hash): Remove.
16062 (add_type_duplicate): Do not synchronize vtable and name hashtables.
16063 (get_odr_type): Do not use vtable hash.
16064 (dump_odr_type): Remove commented out code.
16065 (build_type_inheritance_graph): Do not allocate vtable hash.
16066 (rebuild_type_inheritance_graph): Do not delete vtable hash.
16067 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
16068 (odr_type_p): Likewise.
16069 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
16070 test.
16071
16072 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16073
16074 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
16075 immediately after same_types_for_tbaa_p returns -1 and continue
16076 looking for possible exact match; if matching types are arrays
16077 watch for partial overlaps.
16078 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
16079 (indirect_refs_may_alias_p): Do type based disambiguation first;
16080 update comment.
16081
16082 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
16083
16084 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
16085
16086 2019-06-07 Martin Liska <mliska@suse.cz>
16087
16088 * doc/invoke.texi: Remove param.
16089 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
16090 Remove.
16091 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
16092 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
16093 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
16094 * profile.c (instrument_values): Remove
16095 HIST_TYPE_INDIR_CALL_TOPN.
16096 * tree-profile.c (init_ic_make_global_vars):
16097 Always build __gcov_indirect_call only.
16098 (gimple_init_gcov_profiler): Remove usage
16099 of PARAM_INDIR_CALL_TOPN_PROFILE.
16100 (gimple_gen_ic_profiler): Likewise.
16101 * value-prof.c (dump_histogram_value): Likewise.
16102 (stream_in_histogram_value): Likewise.
16103 (gimple_indirect_call_to_profile): Likewise.
16104 (gimple_find_values_to_profile): Likewise.
16105 * value-prof.h (enum hist_type): Likewise.
16106
16107 2019-06-07 Martin Liska <mliska@suse.cz>
16108
16109 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16110 function.
16111
16112 2019-06-07 Martin Liska <mliska@suse.cz>
16113
16114 PR tree-optimization/78902
16115 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16116 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16117 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16118 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16119 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16120 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16121 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16122 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16123 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16124 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16125 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16126 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16127 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16128 New.
16129 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16130 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16131 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16132 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16133 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16134 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16135 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16136 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16137 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16138 warn_unused_result attribute.
16139 (BUILT_IN_STRDUP): Likewise.
16140 (BUILT_IN_STRNDUP): Likewise.
16141 (BUILT_IN_ALLOCA): Likewise.
16142 (BUILT_IN_CALLOC): Likewise.
16143 (BUILT_IN_MALLOC): Likewise.
16144 (BUILT_IN_REALLOC): Likewise.
16145
16146 2019-06-06 Jim Wilson <jimw@sifive.com>
16147
16148 PR target/89955
16149 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16150 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16151 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16152
16153 2019-06-06 Martin Sebor <msebor@redhat.com>
16154
16155 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16156 (handle_builtin_malloc): Remove trailing spaces.
16157 (handle_builtin_memset): Same.
16158 (handle_builtin_memcmp): Same.
16159 (compute_string_length): Same.
16160 (determine_min_objsize): Same.
16161 (handle_builtin_string_cmp): Same.
16162 (handle_char_store): Same. Break up excessively long line.
16163
16164 2019-06-06 Martin Jambor <mjambor@suse.cz>
16165
16166 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16167 check.
16168
16169 2019-06-06 Martin Jambor <mjambor@suse.cz>
16170
16171 * tree-sra.c (struct access): New field grp_same_access_path.
16172 (dump_access): Dump it.
16173 (build_reconstructed_reference): New function.
16174 (build_ref_for_model): Use it if possible.
16175 (path_comparable_for_same_access): New function.
16176 (same_access_path_p): Likewise.
16177 (sort_and_splice_var_accesses): Set the new flag.
16178 (analyze_access_subtree): Likewise.
16179 (propagate_subaccesses_across_link): Propagate zero value of the new
16180 flag down the access tree.
16181
16182 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16183
16184 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16185 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16186 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16187 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16188 Add gfx906.
16189
16190 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16191
16192 PR tree-optimization/90332
16193 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16194 Handle VALS containing two vectors.
16195 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16196 to...
16197 (@aarch64_combinez<mode>): ... This.
16198 (*aarch64_combinez_be<mode>): Rename to...
16199 (@aarch64_combinez_be<mode>): ... This.
16200 (vec_init<mode><Vhalf>): New define_expand.
16201 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16202
16203 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16204
16205 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16206 library functions only when not optimizing for size.
16207 (ashlsi3): Likewise.
16208 (ashrhi3): Likewise.
16209 (ashrsi3): Likewise.
16210 (lshrhi3): Likewise.
16211 (lshrsi3): Likewise.
16212
16213 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16214
16215 PR rtl-optimization/88751
16216 * ira.c (ira): Use the number of the actually referenced registers
16217 when calculating the threshold.
16218
16219 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16220
16221 * configure: Regenerate.
16222
16223 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16224
16225 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16226 register if it is in memory, so the shift can be emulated with a rotate
16227 instruction.
16228 (ashrhi3): Likewise.
16229 (lshrhi3): Likewise.
16230
16231 2019-06-06 Martin Liska <mliska@suse.cz>
16232
16233 PR tree-optimization/87954
16234 * match.pd: Simplify mult where both arguments are 0 or 1.
16235
16236 2019-06-06 Richard Biener <rguenther@suse.de>
16237
16238 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16239 put equivalences on UNDEFINED ranges.
16240 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16241 Make sure to drop defs of stmts added during simplification
16242 to VARYING.
16243
16244 2019-06-06 Richard Biener <rguenther@suse.de>
16245
16246 * tree-ssa-structalias.c: Include tree-cfg.h.
16247 (make_heapvar): Do not make heap vars artificial.
16248 (find_func_aliases_for_builtin_call): Handle stack allocation
16249 functions.
16250 (find_func_aliases): Delay processing of simple enough returns
16251 in non-IPA mode.
16252 (set_uids_in_ptset): Adjust.
16253 (find_what_var_points_to): Likewise.
16254 (solve_constraints): Do not dump points-to sets here.
16255 (compute_points_to_sets): Post-process return statements,
16256 amending the escaped solution. Dump points-to sets afterwards.
16257 (ipa_pta_execute): Dump points-to sets.
16258
16259 2019-06-06 Martin Liska <mliska@suse.cz>
16260
16261 PR web/87933
16262 * doc/install.texi: Fix HTML headers and
16263 titles for 'Installing GCC' pages.
16264
16265 2019-06-06 Martin Liska <mliska@suse.cz>
16266
16267 * ipa-icf-gimple.h (dump_message_1): Remove.
16268 (dump_message): Likewise.
16269 (return_false_with_message_1): Print also file.
16270 (return_false_with_msg): Likewise.
16271 (return_with_result): Likewise.
16272 (return_with_debug): Likewise.
16273 * ipa-icf.c (sem_function::equals_private): Remove call
16274 to dump_message.
16275
16276 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16277
16278 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16279 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16280 memory operand for it.
16281 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16282
16283 2019-06-05 Martin Sebor <msebor@redhat.com>
16284
16285 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16286 Adjust quoting and hyphenation.
16287 * convert.c (convert_to_real_1): Same.
16288 * gcc.c (driver_wrong_lang_callback): Same.
16289 (driver::handle_unrecognized_options): Same.
16290 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16291 * opts-common.c (cmdline_handle_error): Same.
16292 (read_cmdline_option): Same.
16293 * opts-global.c (complain_wrong_lang): Same.
16294 (print_ignored_options): Same.
16295 (handle_common_deferred_options): Same.
16296 * pretty-print.h: Same.
16297 * print-rtl.c (debug_bb_n_slim): Same.
16298 * sched-rgn.c (make_pass_sched_fusion): Same.
16299 * tree-cfg.c (verify_gimple_assign_unary): Same.
16300 (verify_gimple_label): Same.
16301 * tree-ssa-operands.c (verify_ssa_operands): Same.
16302 * varasm.c (do_assemble_alias): Same.
16303 (assemble_alias): Same.
16304
16305 2019-06-05 Richard Henderson <rth@twiddle.net>
16306
16307 * config/alpha/alpha.c (direct_return): Move down after
16308 struct machine_function definition; use saved frame_size;
16309 return bool.
16310 (struct machine_function): Add sa_mask, sa_size, frame_size.
16311 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16312 (alpha_compute_frame_layout): ... new function.
16313 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16314 (alpha_initial_elimination_offset): Use saved sa_size.
16315 (alpha_vms_initial_elimination_offset): Likewise.
16316 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16317 (alpha_expand_prologue): Use saved frame data. Merge integer
16318 and fp register save loops.
16319 (alpha_expand_epilogue): Likewise.
16320 (alpha_start_function): Use saved frame data.
16321 * config/alpha/alpha-protos.h (direct_return): Update.
16322 (alpha_sa_size): Remove.
16323
16324 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16325
16326 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16327 multiplication by a power-of-two value.
16328 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16329 and turn the modulo operation into a masking operation.
16330
16331 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16332
16333 PR debug/90733
16334 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16335 with VOIDmode inner operands.
16336
16337 2019-06-05 Richard Biener <rguenther@suse.de>
16338
16339 PR middle-end/90726
16340 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16341 turn an expression graph into a tree.
16342
16343 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16344
16345 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16346 member.
16347 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16348 treat it like explicit monotonic schedule modifier.
16349 (expand_omp_for): Initialize has_lastprivate_conditional.
16350 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16351 schedule modifier.
16352
16353 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16354 references, lookup in in hash map MEM_REF operand instead of the
16355 MEM_REF itself.
16356 (lower_omp_1): When looking for lastprivate conditional assignments,
16357 handle MEM_REFs with REFERENCE_TYPE operands.
16358
16359 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16360 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16361 and references a VLA. Handle references to non-VLAs if is_simd
16362 all privatization clauses like reductions.
16363 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16364 If omp_is_reference, use always omp simd arrays and set
16365 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16366 fails, emit reference initialization.
16367
16368 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16369
16370 PR target/89803
16371 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16372 _mm_mask_fpclass_sd_mask): New intrinsics.
16373 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16374 * config/i386/i386-builtin.def
16375 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16376 New builtins.
16377 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16378 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16379 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16380 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16381 case QI_FTYPE_V2SF_INT): Ditto.
16382 * config/i386/sse.md
16383 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16384 Extended to insnstructions with mask operands.
16385
16386 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16387
16388 * config/rs6000/constraints.md (define_register_constraint "wp"):
16389 Delete.
16390 (define_register_constraint "wq"): Delete.
16391 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16392 (rs6000_init_hard_regno_mode_ok): Adjust.
16393 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16394 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16395 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16396 (define_mode_attr VSa): Delete.
16397 (define_mode_attr VSisa): New.
16398 (rest of file): Adjust.
16399 * doc/md.texi (Machine Constraints): Adjust.
16400
16401 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16402
16403 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16404 (define_attr "enabled"): Handle those new isa values.
16405
16406 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16407
16408 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16409 (define_mode_attr VSr5): Delete.
16410 (define_mode_attr VStype_sqrt): Delete.
16411 (define_mode_iterator VSX_SPDP): Delete.
16412 (define_mode_attr VS_spdp_res): Delete.
16413 (define_mode_attr VS_spdp_insn): Delete.
16414 (define_mode_attr VS_spdp_type): Delete.
16415 (*vsx_sqrt<mode>2): Adjust.
16416 (vsx_<VS_spdp_insn>): Delete, split to...
16417 (vsx_xscvdpsp): ... this. New. And...
16418 (vsx_xvcvspdp): ... this. New. And...
16419 (vsx_xvcvdpsp): ... this. New.
16420
16421 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16422
16423 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16424 and V2DF.
16425 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16426 (rest of file): Adjust.
16427
16428 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16429
16430 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16431 (vsx_extract_<mode>_var): Ditto.
16432
16433 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16434
16435 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16436 with just "wa".
16437
16438 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16439
16440 * config/rs6000/constraints.md (define_register_constraint "ww"):
16441 Delete.
16442 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16443 (rs6000_init_hard_regno_mode_ok): Adjust.
16444 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16445 RS6000_CONSTRAINT_ww.
16446 * config/rs6000/rs6000.md: Adjust.
16447 * config/rs6000/vsx.md: Adjust.
16448 * doc/md.texi (Machine Constraints): Adjust.
16449
16450 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16451
16452 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16453 (define_mode_attr sd): New.
16454 (define_mode_attr s): New.
16455 (define_mode_attr Ftrad): Delete.
16456 (define_mode_attr Fvsx): Delete.
16457 (define_mode_attr Fs): Delete.
16458 (rest of file): Use the new mode attributes.
16459 * config.rs6000/vsx.md: Use the new mode attributes.
16460
16461 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16462
16463 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16464 with just "wa".
16465
16466 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16467
16468 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16469 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16470 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16471
16472 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16473
16474 PR target/78263
16475 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16476 C++ with strict ANSI requirements.
16477
16478 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16479
16480 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16481 computations when step is 1.
16482
16483 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16484
16485 * config/rs6000/constraints.md (define_register_constraint "wf"):
16486 Delete.
16487 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16488 (rs6000_init_hard_regno_mode_ok): Adjust.
16489 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16490 RS6000_CONSTRAINT_wf.
16491 * config/rs6000/rs6000.md: Adjust.
16492 * config/rs6000/vsx.md: Adjust.
16493 * doc/md.texi (Machine Constraints): Adjust.
16494
16495 2019-06-04 Andrew Pinski <apinski@marvell.com>
16496
16497 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16498 Fix ILP32 value.
16499
16500 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16501
16502 * config/rs6000/constraints.md (define_register_constraint "wd"):
16503 Delete.
16504 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16505 (rs6000_init_hard_regno_mode_ok): Adjust.
16506 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16507 RS6000_CONSTRAINT_wd.
16508 * config/rs6000/rs6000.md: Adjust.
16509 * config/rs6000/vsx.md: Adjust.
16510 * doc/md.texi (Machine Constraints): Adjust.
16511
16512 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16513
16514 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16515 (rest of file): Adjust.
16516
16517 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16518
16519 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16520 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16521 (vsx_splat_<mode>_reg): Adjust.
16522
16523 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16524
16525 * config/rs6000/constraints.md (define_register_constraint "ws"):
16526 Delete.
16527 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16528 (rs6000_init_hard_regno_mode_ok): Adjust.
16529 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16530 RS6000_CONSTRAINT_ws.
16531 * config/rs6000/rs6000.md: Adjust.
16532 * config/rs6000/vsx.md: Adjust.
16533 * doc/md.texi (Machine Constraints): Adjust.
16534
16535 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16536
16537 * config/rs6000/constraints.md (define_register_constraint "wv"):
16538 Delete.
16539 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16540 (rs6000_init_hard_regno_mode_ok): Adjust.
16541 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16542 RS6000_CONSTRAINT_wv.
16543 * config/rs6000/rs6000.md: Adjust.
16544 * config/rs6000/vsx.md: Adjust.
16545 * doc/md.texi (Machine Constraints): Adjust.
16546
16547 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16548
16549 * config/rs6000/constraints.md (define_register_constraint "wi"):
16550 Delete.
16551 (define_register_constraint "wt"): Delete.
16552 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16553 (rs6000_init_hard_regno_mode_ok): Adjust.
16554 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16555 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16556 * config/rs6000/rs6000.md: Adjust.
16557 * config/rs6000/vsx.md: Adjust.
16558 * doc/md.texi (Machine Constraints): Adjust.
16559
16560 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16561
16562 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16563 const.
16564 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16565 default_elf_asm_output_external.
16566
16567 2019-06-04 Martin Liska <mliska@suse.cz>
16568
16569 * ipa-icf.c (INCLUDE_LIST): Remove.
16570 (sem_item_optimizer::execute): Remove call to init_wpa.
16571 * ipa-icf.h (init_wpa): Remove.
16572
16573 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16574
16575 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16576 conditional on combined for simd.
16577 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16578 member.
16579 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16580 constructs, don't remove lastprivate_conditional_map, but instead set
16581 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16582 to parent construct temporaries.
16583 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16584 like !ctx->lastprivate_conditional_map.
16585 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16586 use up->outer context instead of up.
16587 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16588 gimple_omp_for_combined_p.
16589 (expand_omp_for_static_nochunk): Likewise.
16590 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16591 probably moved over into expand_omp_for_generic rather than being copied
16592 there.
16593
16594 2019-06-04 Martin Liska <mliska@suse.cz>
16595
16596 * value-prof.c (dump_histogram_value): Fix typo.
16597 (gimple_mod_subtract_transform): Likewise.
16598
16599 2019-06-04 Richard Biener <rguenther@suse.de>
16600
16601 PR middle-end/90726
16602 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16603 (tree_contains_chrecs): Likewise.
16604 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16605 exponential behaivor from ...
16606 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16607 ... here.
16608 (expression_expensive_p): Avoid exponential behavior and compute
16609 expanded size, rejecting any expansion.
16610 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16611 (idx_contains_abnormal_ssa_name_p): Likewise.
16612 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16613 (contains_abnormal_ssa_name_p): Simplify and use
16614 walk_tree_without_duplicates.
16615
16616 2019-06-04 Richard Biener <rguenther@suse.de>
16617
16618 PR tree-optimization/90738
16619 Revert
16620 2019-06-03 Richard Biener <rguenther@suse.de>
16621
16622 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16623 full reference tree and record in ref->ref.
16624 (vn_reference_lookup_3): Pass in original ref to
16625 ao_ref_init_from_vn_reference.
16626 (vn_reference_lookup): Likewise.
16627 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16628 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16629 Handle non-decl bases in the original reference.
16630
16631 2019-06-04 Martin Liska <mliska@suse.cz>
16632
16633 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16634 number of references.
16635 (sem_item_optimizer::do_congruence_step):
16636 (sem_item_optimizer::worklist_push): Dump how references
16637 a class has.
16638 (sem_item_optimizer::worklist_pop): Use heap.
16639 (sem_item_optimizer::process_cong_reduction): Likewise.
16640 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16641
16642 2019-06-04 Martin Liska <mliska@suse.cz>
16643
16644 * ipa-icf.h (struct sem_usage_pair_hash): New.
16645 (sem_usage_pair_hash::hash): Likewise.
16646 (sem_usage_pair_hash::equal): Likewise.
16647 (struct sem_usage_hash): Likewise.
16648 * ipa-icf.c (sem_item::sem_item): Initialize
16649 referenced_by_count.
16650 (sem_item::add_reference): Register a reference
16651 in ref_map and not in target->usages.
16652 (sem_item::setup): Remove initialization of
16653 dead vectors.
16654 (sem_item::~sem_item): Remove usage of dead vectors.
16655 (sem_item::dump): Remove dump of references.
16656 (sem_item_optimizer::sem_item_optimizer): Initialize
16657 m_references.
16658 (sem_item_optimizer::read_section): Remove useless
16659 dump.
16660 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16661 (sem_item_optimizer::build_graph): Pass m_references
16662 to ::add_reference.
16663 (sem_item_optimizer::verify_classes): Remove usage of dead
16664 vectors.
16665 (sem_item_optimizer::traverse_congruence_split): Return true
16666 when a class is split.
16667 (sem_item_optimizer::do_congruence_step_for_index): Use
16668 hash_map for look up of (sem_item *, index). That brings
16669 significant speed up.
16670 (sem_item_optimizer::do_congruence_step): Return true
16671 when a split is done.
16672 (congruence_class::is_class_used): Use referenced_by_count.
16673
16674 2019-06-04 Alan Modra <amodra@gmail.com>
16675
16676 PR target/90689
16677 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16678 error.
16679
16680 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16681
16682 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16683 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16684 (rs6000_secondary_reload_simple_move): Adjust.
16685 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16686 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16687 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16688 comment.
16689 (power6x): Adjust.
16690 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16691 (floatunssi<mode>2_lfiwzx): Adjust.
16692 (fix_trunc<mode>si2_stfiwx): Adjust.
16693 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16694 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16695 (mfpgpr): Mark as deprecated.
16696 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16697 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16698 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16699
16700 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16701
16702 * config/rs6000/constraints.md (define_register_constraint "wg"):
16703 Delete.
16704 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16705 RS6000_CONSTRAINT_wg.
16706 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16707 (rs6000_init_hard_regno_mode_ok): Adjust.
16708 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16709 Delete "wg" alternatives.
16710 * doc/md.texi (Machine Constraints): Adjust.
16711
16712 2019-06-03 Alan Modra <amodra@gmail.com>
16713
16714 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16715 (get_uncond_jump_length): Assert length less than INT_MAX and
16716 non-negative.
16717
16718 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16719
16720 PR middle-end/64242
16721 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16722 block.
16723 (expand_builtin_nonlocal_goto): Likewise.
16724
16725 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16726
16727 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16728 (aarch64_asm_output_external): Declare.
16729 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16730 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16731 (aarch64_asm_output_alias): New.
16732 (aarch64_asm_output_external): New.
16733 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16734 (ASM_OUTPUT_EXTERNAL): Define.
16735
16736 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16737 * tree-vrp.h (value_range_base::nonzero_p): New.
16738 (value_range_base::set_nonnull): Rename to...
16739 (value_range_base::set_nonzero): ...this.
16740 (value_range_base::set_null): Rename to...
16741 (value_range_base::set_zero): ...this.
16742 (value_range::set_nonnull): Remove.
16743 (value_range::set_null): Remove.
16744 * tree-vrp.c (range_is_null): Remove.
16745 (range_is_nonnull): Remove.
16746 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16747 instead of range_is_*null.
16748 (extract_range_from_unary_expr): Same.
16749 (value_range_base::set_nonnull): Rename to...
16750 (value_range_base::set_nonzero): ...this.
16751 (value_range::set_nonnull): Remove.
16752 (value_range_base::set_null): Rename to...
16753 (value_range_base::set_zero): ...this.
16754 (value_range::set_null): Remove.
16755 (extract_range_from_binary_expr): Rename set_*null uses to
16756 set_*zero.
16757 (extract_range_from_unary_expr): Same.
16758 (union_helper): Same.
16759 * vr-values.c (get_value_range): Use set_*zero instead of
16760 set_*null.
16761 (vr_values::extract_range_from_binary_expr): Same.
16762 (vr_values::extract_range_basic): Same.
16763
16764 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16765
16766 PR driver/90684
16767 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16768
16769 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16770
16771 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16772 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16773 Rename to...
16774 (aarch64_<su>abd<mode>_3): ... This.
16775 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16776
16777 2019-06-03 Richard Biener <rguenther@suse.de>
16778
16779 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16780 full reference tree and record in ref->ref.
16781 (vn_reference_lookup_3): Pass in original ref to
16782 ao_ref_init_from_vn_reference.
16783 (vn_reference_lookup): Likewise.
16784 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16785 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16786 Handle non-decl bases in the original reference.
16787
16788 2019-06-03 Martin Liska <mliska@suse.cz>
16789
16790 * doc/generic.texi: Remove Java Trees.
16791
16792 2019-06-03 Martin Liska <mliska@suse.cz>
16793
16794 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16795 returns 0 when operands are equal.
16796
16797 2019-06-03 Richard Biener <rguenther@suse.de>
16798
16799 PR tree-optimization/90716
16800 * tree-loop-distribution.c (destroy_loop): Process blocks in
16801 correct order.
16802
16803 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16804
16805 PR target/88837
16806 * vector-builder.h (vector_builder::count_dups): New method.
16807 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16808 Declare prototype.
16809 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16810 (vec_init<mode><Vel>): New pattern.
16811 * config/aarch64/aarch64.c (emit_insr): New function.
16812 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16813 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16814 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16815 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16816
16817 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16818
16819 PR tree-optimization/90681
16820 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16821 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16822 special case for SLP, but fail on non-groupped loads.
16823
16824 2019-06-03 Martin Liska <mliska@suse.cz>
16825
16826 * cfg.c (debug): Use TDF_DETAILS for debug and
16827 print edge info only once.
16828
16829 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16830
16831 PR fortran/90539
16832 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16833
16834 2019-06-01 Martin Sebor <msebor@redhat.com>
16835
16836 PR middle-end/90694
16837 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16838
16839 2019-05-31 Jan Hubicka <jh@suse.cz>
16840
16841 * alias.c: Include ipa-utils.h.
16842 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16843 * ipa-devirt.c (prevailing_odr_type): New.
16844 * ipa-utils.h (previaling_odr_type): Declare.
16845
16846 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16847 Hongtao Liu <hongtao.liu@intel.com>
16848
16849 PR target/89355
16850 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16851 NOTE_INSN_DELETED_LABEL check.
16852
16853 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16854 Robert Suchanek <robert.suchanek@mips.com>
16855
16856 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16857 and 3rd operands of the fmadd/fmsub/maddv builtin.
16858
16859 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16860
16861 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16862 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16863 on OMP_SIMD if not nested inside of worksharing loop that also has
16864 lastprivate conditional clause for the same decl.
16865 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16866 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16867 on simd.
16868 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16869 on simd construct.
16870 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16871 on simd construct.
16872 (lower_lastprivate_clauses): Likewise.
16873 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16874 calling lower_rec_input_clauses.
16875 (lower_omp_for): Likewise.
16876 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16877 clause on simd construct.
16878 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16879 OMP_CLAUSE__CONDTEMP_ clause is present.
16880
16881 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16882 ivar and lvar.
16883
16884 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16885
16886 PR c/43673
16887 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16888 TEX_D32, TEX_D64 or TEX_D128.
16889
16890 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16891
16892 * match.pd (~(vec?cst1:cst2)): New transformation.
16893
16894 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16895
16896 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16897 ((size_t)(A /[ex] B) CMP C): New transformation.
16898
16899 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16900
16901 * doc/md.texi: Document define_insn_and_rewrite.
16902 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16903 * gensupport.c (queue_elem): Update comment.
16904 (replace_operands_with_dups): New function.
16905 (gen_rewrite_sequence): Likewise.
16906 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16907 * read-rtl.c (apply_subst_iterator): Likewise.
16908 (add_condition_to_rtx, named_rtx_p): Likewise.
16909 (rtx_reader::read_rtx_operand): Likewise.
16910 * config/aarch64/aarch64-sve.md
16911 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16912 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16913 define_insn_and_rewrite.
16914 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16915 Remove separate define_split.
16916
16917 2019-05-31 Jan Hubicka <jh@suse.cz>
16918
16919 * tree-ssa-alias.c (type_has_components_p): New function.
16920 (aliasing_component_refs_p): Use it.
16921
16922 2019-05-31 Martin Liska <mliska@suse.cz>
16923
16924 * gdbhooks.py: Add const_tree to TreePrinter.
16925
16926 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16927
16928 PR debug/86964
16929 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16930 * doc/invoke.texi (Debugging Options): Document new default of
16931 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16932
16933 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16934
16935 PR tree-optimization/90671
16936 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16937 template_block used to be empty on the first call, don't use
16938 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16939 seq with bb_seq and set it with set_bb_seq.
16940
16941 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16942
16943 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16944
16945 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16946 Michael Meissner <meissner@linux.ibm.com>
16947
16948 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16949 (prefixed_mem_operand): Likewise.
16950 (non_prefixed_mem_operand): Likewise.
16951 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16952 prototype.
16953 * config/rs6000/rs6000.c (print_operand_address): Handle
16954 PC-relative addresses.
16955 (mode_supports_prefixed_address_p): New function.
16956 (rs6000_prefixed_address): New function.
16957 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16958 (SYMBOL_REF_PCREL_P): Likewise.
16959
16960 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16961
16962 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16963 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16964 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16965 is nested inside of parallel region, add _condtemp_ clause to both.
16966 * tree-nested.c (convert_nonlocal_omp_clauses,
16967 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16968 assertion failure.
16969 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16970 member.
16971 * omp-general.c (omp_extract_for_data): Compute it.
16972 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16973 (lower_rec_input_clauses): Likewise.
16974 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16975 clause is already present, just add one further one after it.
16976 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16977 (lower_send_shared_vars): Clear _condtemp_ vars.
16978 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16979 or section or taskgroup.
16980 * omp-expand.c (determine_parallel_type): Disallow combining only if
16981 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16982 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16983 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16984 expand_omp_for_static_chunk, expand_omp_for): Use
16985 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16986 determine if a special set of API routines are needed and if condtemp
16987 needs to be initialized, while always initialize cond_var if
16988 fd->lastprivate_conditional is non-zero.
16989
16990 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16991 Michael Meissner <meissner@linux.ibm.com>
16992
16993 * config/rs6000/constraints.md (eI): New constraint.
16994 * config/rs6000/predicates.md (cint34_operand): New predicate.
16995 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16996 (SIGNED_34BIT_OFFSET_P): Likewise.
16997 * doc/md.texi (eI): Document constraint.
16998
16999 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
17000
17001 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
17002
17003 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17004 Michael Meissner <meissner@linux.ibm.com>
17005
17006 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
17007 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
17008 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
17009 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
17010 (OTHER_FUTURE_MASKS): Likewise.
17011 (POWERPC_MASKS): Likewise.
17012 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
17013 specified without -mprefixed-addr or -mcpu=future. Error if
17014 -mprefixed-addr is specified without -mcpu=future.
17015 (rs6000_opt_masks): Add entry for prefixed-addr.
17016 * rs6000.opt (mprefixed-addr): New option.
17017
17018 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
17019
17020 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
17021 cfun->is_thunk check.
17022
17023 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17024
17025 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
17026 to length.
17027
17028 2019-05-30 Martin Liska <mliska@suse.cz>
17029
17030 * gdbinit.in: Fix 'ptc' command. Add trt
17031 that prints TREE_TYPE($).
17032
17033 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
17034 Alan Modra <amodra@gmail.com>
17035
17036 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
17037 calls here...
17038 (rs6000_indirect_call_template_1): ...and here.
17039 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
17040 plt16_ha, plt16_lo, mtctr indirect calls. Use
17041 rs6000_pltseq_enum.
17042 (rs6000_decl_ok_for_sibcall): New function.
17043 (rs6000_function_ok_for_sibcall): Refactor.
17044 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
17045 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
17046 when pcrel. Reorganize.
17047 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
17048 * rs6000.h (rs6000_pltseq_enum): New enum.
17049 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
17050 (*pltseq_tocsave): Use rs6000_pltseq_enum.
17051 (*pltseq_plt16_ha): Likewise.
17052 (*pltseq_plt16_lo): Likewise.
17053 (*pltseq_mtctr): Likewise.
17054 (*pltseq_plt_pcrel): New insn.
17055 (*call_local_aix): Handle @notoc calls.
17056 (*call_value_local_aix): Likewise.
17057 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
17058 (*call_value_nonlocal_aix): Likewise.
17059 (*call_indirect_pcrel): New insn.
17060 (*call_value_indirect_pcrel): Likewise.
17061
17062 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
17063
17064 * config/i386/sse.md (*save_multiple<mode>): Rename from
17065 save_multiple<mode>.
17066 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
17067 (*restore_multiple_and_return<mode>): Rename from
17068 restore_multiple_and_return<mode>.
17069 (*restore_multiple_leave_return<mode>): Rename from
17070 restore_multiple_leave_return<mode>.
17071
17072 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
17073
17074 * config.gcc (rx-*-linux*): New target.
17075 * config/rx/elf.opt: New file.
17076 * config/rx/linux.h: Likewise.
17077 * config/rx/t-linux: Likewise.
17078 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
17079 make it zero.
17080 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
17081 (ASM_APP_OFF): Likewise.
17082 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
17083 moved elsewhere.
17084
17085 2019-05-29 Jan Hubicka <jh@suse.cz>
17086
17087 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
17088 variants are pointer equivalent.
17089
17090 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17091
17092 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
17093 * config/aarch64/aarch64-sve2.md: New file.
17094 (<u>avg<mode>3_floor): New pattern.
17095 (<u>avg<mode>3_ceil): Likewise.
17096 (*<sur>h<addsub><mode>): Likewise.
17097 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
17098 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
17099
17100 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17101
17102 PR bootstrap/90543
17103 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17104 for var_opt_string printing. In cl_optimization_print_diff, print
17105 (null) instead of invoking undefined behavior if one of the
17106 var_opt_string pointers is NULL and use && instead of first || in the
17107 guarding condition. For var_target_other options, handle const char *
17108 target variables similarly to const char * optimize node variables.
17109
17110 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17111
17112 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17113 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17114 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17115 Add autib1716 and pacib1716 initialisation.
17116 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17117 for autib1716 and pacib1716.
17118 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17119 aarch64_post_cfi_startproc): Define.
17120 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17121 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17122 aarch64_handle_pac_ret_protection): Set default sign key to A.
17123 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17124 aarch64_expand_prologue): Add check for b-key.
17125 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17126 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17127 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17128 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17129 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17130 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17131 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17132 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17133 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17134 pauth_hint_num_a with pauth_hint_num.
17135 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17136 pauth_hint_num_a with pauth_hint_num.
17137 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17138 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17139 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17140 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17141 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17142 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17143 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17144 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17145 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17146 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17147 UNSPEC_AUTIA1716 respectively.
17148 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17149 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17150 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17151 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17152 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17153 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17154
17155 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17156
17157 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17158 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17159 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17160 explicit clause on combined parallel into implicit shared clause.
17161 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17162 and firstprivate if the decl has one too from combined parallel to
17163 the worksharing construct.
17164
17165 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17166 Michael Meissner <meissner@linux.ibm.com>
17167
17168 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17169
17170 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17171
17172 * rtl.h (LABEL_REF_P): New #define.
17173
17174 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17175
17176 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17177
17178 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17179
17180 * internal-fn.c: Marked mask_load_direct as vectorizable.
17181 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17182 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17183 combined even if masks different with allow_slp_p param.
17184 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17185 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17186 dissolve SLP-only vectorizable groups when SLP has been discarded.
17187 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17188 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17189 masks.
17190 (vect_build_slp_tree_1): Fixed comment typo.
17191 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17192 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17193 loads for SLP only.
17194 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17195 vectorizable.
17196 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17197
17198 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17199
17200 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17201 Remove obsolete use_thunk reference.
17202 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17203 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17204 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17205 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17206 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17207 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17208 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17209 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17210 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17211
17212 2019-05-28 Nathan Sidwell <nathan@acm.org>
17213
17214 * tree.h (IDENTIFIER_ANON_P): New.
17215 (anon_aggrname_format, anon_aggname_p): Don't declare.
17216 (make_anon_name): Declare.
17217 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17218 (hash_tree): Likewise.
17219 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17220 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17221 (anon_cnt, make_anon_name): New.
17222
17223 2019-05-28 Martin Liska <mliska@suse.cz>
17224
17225 PR other/90315
17226 * opts-global.c (decode_options): Print help for all
17227 help_option_arguments.
17228 * opts.c (print_help): Add new argument.
17229 (common_handle_option): Remember all values into
17230 help_option_arguments.
17231 * opts.h (print_help): Add new argument.
17232
17233 2019-05-28 Martin Liska <mliska@suse.cz>
17234
17235 PR ipa/90555
17236 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17237 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17238 (func_checker::compare_bb): Call compare_loops.
17239
17240 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17241
17242 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17243 on sections construct.
17244 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17245 construct.
17246 (lower_omp_sections): Handle lastprivate conditional.
17247 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17248 lastprivate_conditional_map.
17249 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17250
17251 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17252 critical, taskgroup and section regions when looking for a region
17253 with non-NULL lastprivate_conditional_map.
17254
17255 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17256
17257 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17258 (*ix86_gen_sub3): Ditto.
17259 (*ix86_gen_sub3_carry): Ditto.
17260 (*ix86_gen_one_cmpl2): Ditto.
17261 (*ix86_gen_andsp): Ditto.
17262 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17263 (gen_and2_insn): New static function.
17264 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17265 Use gen_add3_insn instead of ix86_gen_add3.
17266 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17267 instead of ix86_gen_add3.
17268 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17269 Use gen_sub3_insn instead of ix86_gen_sub3.
17270 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17271 instead of ix86_gen_add3.
17272 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17273 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17274 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17275 * config/i386/i386-options.c (ix86_option_override_internal):
17276 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17277 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17278
17279 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17280
17281 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17282 and DW_OP_GNU_const_index opcodes.
17283
17284 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17285
17286 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17287
17288 2019-05-27 Richard Biener <rguenther@suse.de>
17289
17290 PR tree-optimization/90637
17291 * tree-ssa-sink.c (statement_sink_location): Honor the
17292 computed sink location for single-uses.
17293
17294 2019-05-27 Richard Biener <rguenther@suse.de>
17295
17296 PR middle-end/90610
17297 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17298 a bit-insert.
17299
17300 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17301
17302 * config/i386/i386.md (@sub<mode>3_carry): Rename
17303 from sub<mode>3_carry.
17304 (@leave_<mode>): New expander.
17305 (*leave): Rename from leave.
17306 (*leave_rex64): Rename from leave_rex64.
17307 (@monitorx_<mode>): Rename from monitorx_<mode>.
17308 (@clzero_<mode>): Rename from clzero_<mode>.
17309 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17310 from sse3_monitor_<mode>.
17311 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17312 (*ix86_gen_leave): Ditto.
17313 (*ix86_gen_monitor): Ditto.
17314 (*ix86_gen_monitorx): Ditto.
17315 (*ix86_gen_clzero): Ditto.
17316 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17317 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17318 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17319 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17320 Use gen_sse3_monitor instead of ix86_gen_monitor.
17321 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17322 instead of ix86_gen_monitorx.
17323 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17324 instead of ix86_gen_clzero.
17325 * config/i386/i386-options.c (ix86_option_override_internal):
17326 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17327 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17328
17329 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17330
17331 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17332 Rename from tls_global_dynamic_64_<mode>.
17333 (@tls_local_dynamic_base_64_<mode>): Rename from
17334 tls_local_dynamic_base_64_<mode>.
17335 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17336 Remove indirect function.
17337 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17338 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17339 instead of ix86_gen_tls_global_dynamic_64.
17340 Use gen_tls_local_dynamic_base_64 instead of
17341 ix86_gen_tls_local_dynamic_base_64.
17342 * config/i386/i386-options.c (ix86_option_override_internal):
17343 Do not initialize ix86_gen_tls_global_dynamic_64 and
17344 ix86_gen_tls_local_dynamic_base_64.
17345
17346 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17347
17348 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17349 Rename from pro_epilogue_adjust_stack_<mode>_add.
17350 (@pro_epilogue_adjust_stack_sub_<mode>)
17351 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17352 (@allocate_stack_worker_probe_<mode>):
17353 Rename from allocate_stack_worker_probe_<mode>.
17354 (allocate_stack): Use gen_allocate_stack_worker_probe.
17355 (probe_stack): Use gen_probe_stack_1.
17356 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17357 (@adjust_stack_and_probe_<mode>): Rename from
17358 adjust_stack_and_probe<mode>.
17359 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17360 (stack_protect_set): Use gen_stack_protect_set_1.
17361 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17362 (stack_protect_test): Use gen_stack_protect_test_1.
17363 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17364 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17365 Remove indirect function.
17366 (*ix86_gen_adjust_stack_and_probe): Ditto.
17367 (*ix86_gen_probe_stack_range): Ditto.
17368 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17369 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17370 (ix86_adjust_stack_and_probe_stack_clash): Use
17371 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17372 (ix86_adjust_stack_and_probe): Ditto.
17373 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17374 of ix86_gen_probe_stack_range.
17375 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17376 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17377 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17378 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17379 CODE_FOR_stack_protect_test_{si,di}.
17380 * config/i386/i386-options.c (ix86_option_override_internal):
17381 Do not initialize ix86_gen_allocate_stack_worker,
17382 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17383
17384 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17385
17386 * doc/invoke.texi (Link Options): Many editorial changes around
17387 -flinker-output.
17388
17389 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17390
17391 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17392 pre-Solaris 11 referene and most Studio compiler details.
17393
17394 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17395
17396 PR target/90530
17397 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17398 DImode to SImode in floating-point registers on 64-bit target.
17399 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17400 register_operand in xmpyu patterns.
17401
17402 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17403
17404 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17405 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17406 OMP_CLAUSE__REDUCTEMP_.
17407 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17408 OMP_CLAUSE__CONDTEMP_.
17409 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17410 * tree-pretty-print.c (dump_omp_clause): Likewise.
17411 * tree-nested.c (convert_nonlocal_omp_clauses,
17412 convert_local_omp_clauses): Likewise.
17413 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17414 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17415 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17416 on OMP_FOR.
17417 (gimplify_omp_for): Warn and disable conditional modifier from
17418 lastprivate on loop iterators.
17419 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17420 member.
17421 * omp-general.c (omp_extract_for_data): Initialize it.
17422 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17423 member.
17424 (delete_omp_context): Delete it.
17425 (lower_lastprivate_conditional_clauses): New function.
17426 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17427 handle lastprivate conditional clauses.
17428 (lower_reduction_clauses): Add CLIST argument, emit it into
17429 the critical section if any.
17430 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17431 lower_reduction_clauses callers.
17432 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17433 to lower_lastprivate_clauses.
17434 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17435 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17436 clist into a critical section if not emitted there already by
17437 lower_reduction_clauses.
17438 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17439 callers.
17440 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17441 conditional variables.
17442 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17443 clause is present.
17444 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17445 expand_omp_for_static_chunk): Handle lastprivate conditional.
17446 (expand_omp_for): Handle fd.lastprivate_conditional like
17447 fd.have_reductemp.
17448
17449 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17450
17451 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17452 kernel does not exit cleanly.
17453 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17454
17455 2019-05-24 Jason Merrill <jason@redhat.com>
17456
17457 Revert:
17458 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17459
17460 2019-05-24 Richard Biener <rguenther@suse.de>
17461
17462 PR testsuite/90607
17463 * tree-loop-distribution.c (struct partition): Add location
17464 member.
17465 (partition_alloc): Initialize all fields.
17466 (generate_memset_builtin): Use the location recorded in the
17467 partition for the generated call.
17468 (generate_memcpy_builtin): Likewise.
17469 (classify_partition): Record the location of a single store
17470 as location for the partition.
17471
17472 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17473
17474 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17475 for lo-part.
17476
17477 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17478
17479 PR target/90588
17480 * common/config/aarch64/aarch64-common.c
17481 (aarch64_rewrite_selected_cpu): Change local temporary variable
17482 type from unsigned long to uint64_t.
17483 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17484 aarch64_get_extension_string_for_isa_flags): Change declaration to
17485 match new definition by replacing unsigned long with uint64_t.
17486
17487 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17488
17489 PR target/90568
17490 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17491 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17492 Handle stack_protect_test_<mode> codegen similarly to corresponding
17493 sub instruction.
17494
17495 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17496
17497 * config/i386/darwin.h: Reject -mfentry*.
17498 * doc/sourcebuild.texi: Document mfentry target support.
17499
17500 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17501
17502 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17503 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17504 false for PC-relative functions.
17505 (rs6000_output_function_prologue): Change called function name to
17506 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17507 name,1" for PC-relative functions.
17508 (rs6000_elf_declare_function_name): Change called function name to
17509 rs6000_global_entry_point_prologue_needed_p.
17510
17511 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17512
17513 PR target/90552
17514 * config/i386/i386.c (gen_rtx_cost):
17515 Use ix86_tune_cost instead of ix86_cost.
17516
17517 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17518 Michael Meissner <meissner@linux.ibm.com>
17519 Segher Boessenkool <segher@kernel.crashing.org>
17520
17521 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17522 OPTION_MASK_PCREL.
17523 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17524 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17525 (rs6000_fndecl_pcrel_p): Likewise.
17526 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17527 error if -mpcrel is requested without -mcpu=future.
17528 (rs6000_opt_masks): Add entry for pcrel.
17529 (rs6000_fndecl_pcrel_p): New function.
17530 (rs6000_pcrel_p): Likewise.
17531 * config/rs6000/rs6000.opt (mpcrel): New option.
17532 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17533
17534 2019-05-23 Jan Hubicka <jh@suse.cz>
17535 Martin Liska <mliska@suse.cz>
17536
17537 PR tree-optimization/90576
17538 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17539 poly_int_tree_p.
17540 (aliasing_component_refs_p): Fix three way size compare conditional;
17541 give up earlier in case we can not decide on equivalence.
17542
17543 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17544 Michael Meissner <meissner@linux.ibm.com>
17545 Segher Boessenkool <segher@kernel.crashing.org>
17546
17547 * config.gcc: Add future cpu.
17548 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17549 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17550 #define.
17551 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17552 (RS6000_CPU): New instantiation for future cpu.
17553 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17554 PROCESSOR_FUTURE.
17555 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17556 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17557 * config/rs6000/rs6000-tables.opt: Regenerate.
17558 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17559 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17560 (rs6000_machine_from_flags): Handle future cpu.
17561 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17562 PROCESSOR_POWER9 for now.
17563 (rs6000_adjust_cost): Likewise.
17564 (rs6000_issue_rate): Likewise.
17565 (rs6000_register_move_cost): Likewise.
17566 (rs6000_opt_masks): Add entry for future.
17567 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17568 (MASK_FUTURE): New #define.
17569 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17570 * config/rs6000/rs6000.opt (mfuture): New target option.
17571 * doc/invoke.texi (mcpu): Add future cpu.
17572
17573 2019-05-23 Martin Liska <mliska@suse.cz>
17574
17575 PR c++/90587
17576 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17577 operation points to a temporary (pointed via tree_to_wide_ref)
17578 that is out of scope after the &.
17579
17580 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17581
17582 PR c++/90592
17583 * doc/extend.texi (Function Names): Add missing word.
17584
17585 2019-05-23 Richard Biener <rguenther@suse.de>
17586
17587 PR tree-optimization/88440
17588 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17589 at -O[2s]+.
17590 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17591 generated call.
17592 (generate_memcpy_builtin): Likewise.
17593 (distribute_loop): Pass in whether to only distribute patterns.
17594 (prepare_perfect_loop_nest): Also allow size optimization.
17595 (pass_loop_distribution::execute): When optimizing a loop
17596 nest for size allow pattern replacement.
17597
17598 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17599
17600 PR target/90568
17601 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17602 of xor.
17603
17604 2019-05-23 Martin Liska <mliska@suse.cz>
17605
17606 PR sanitizer/90570
17607 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17608 expression similarly to gimplify_decl_expr.
17609
17610 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17611
17612 * cse.c (cse_dump_path): s/dump_file/f.
17613
17614 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17615
17616 PR c++/90462
17617 * diagnostic-format-json.cc: Include "selftest.h".
17618 (json_from_expanded_location): Only add "file" key for non-NULL
17619 file strings.
17620 (json_from_location_range): Don't add "start" and "finish"
17621 children if they are UNKNOWN_LOCATION.
17622 (selftest::test_unknown_location): New selftest.
17623 (selftest::test_bad_endpoints): New selftest.
17624 (selftest::diagnostic_format_json_cc_tests): New function.
17625 * json.cc (json::object::get): New function.
17626 (selftest::test_object_get): New selftest.
17627 (selftest::json_cc_tests): Call it.
17628 * json.h (json::object::get): New decl.
17629 * selftest-run-tests.c (selftest::run_tests): Call
17630 selftest::diagnostic_format_json_cc_tests.
17631 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17632 decl.
17633
17634 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17635 Andrew Stubbs <amd@codesourcery.com>
17636
17637 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17638 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17639 (kernel): Rename to...
17640 (main_kernel): ... this.
17641 (load_image): Load _init_array and _fini_array kernels.
17642 (run): Add argument for kernel to run.
17643 (main): Run init_array_kernel before main_kernel, and
17644 fini_array_kernel after.
17645 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17646 amdgpu_hsa_kernel attribute on functions.
17647 (gcn_disable_constructors): Delete.
17648 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17649 * config/gcn/crt0.c (size_t): Define.
17650 (_init_array, _fini_array): New.
17651 (__preinit_array_start, __preinit_array_end,
17652 __init_array_start, __init_array_end,
17653 __fini_array_start, __fini_array_end): Declare weak references.
17654
17655 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17656
17657 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17658
17659 2019-05-22 Jason Merrill <jason@redhat.com>
17660
17661 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17662
17663 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17664
17665 PR target/88483
17666 * config/i386/i386-options.c (ix86_init_machine_status): Set
17667 stack_frame_required to true.
17668 * config/i386/i386.c (ix86_get_frame_size): New function.
17669 (ix86_frame_pointer_required): Replace get_frame_size with
17670 ix86_get_frame_size.
17671 (ix86_compute_frame_layout): Likewise.
17672 (ix86_find_max_used_stack_alignment): Changed to void. Set
17673 stack_frame_required.
17674 (ix86_finalize_stack_frame_flags): Always call
17675 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17676 ix86_get_frame_size.
17677 * config/i386/i386.h (machine_function): Add stack_frame_required.
17678
17679 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17680
17681 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17682
17683 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17684
17685 * common/config/aarch64/aarch64-common.c
17686 (struct aarch64_option_extension, struct processor_name_to_arch,
17687 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17688 aarch64_contains_opt,
17689 aarch64_get_extension_string_for_isa_flags): Change type of
17690 variables storing flags to uint64_t.
17691 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17692 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17693 * config/aarch64/aarch64.c (struct processor,
17694 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17695 aarch64_validate_march, aarch64_override_options,
17696 aarch64_option_print, aarch64_handle_attr_isa_flags,
17697 aarch64_declare_function_name, aarch64_start_file): Make flag
17698 variables uint64_t.
17699 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17700 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17701 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17702 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17703 * config/aarch64/driver-aarch64.c
17704 (struct aarch64_arch_extension, struct aarch64_core_data,
17705 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17706 flag variables uint64_t.
17707 * doc/invoke.texi: Add documentation for new arguments.
17708
17709 2019-05-22 Richard Biener <rguenther@suse.de>
17710
17711 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17712 rewrite ...
17713 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17714
17715 2019-05-22 Martin Liska <mliska@suse.cz>
17716
17717 PR lto/90500
17718 * doc/extend.texi: Document the change.
17719
17720 2019-05-22 Richard Biener <rguenther@suse.de>
17721
17722 PR tree-optimization/90450
17723 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17724 (mem_ref_hasher::equal): Check it.
17725 (mem_ref_alloc): Initialize it.
17726 (gather_mem_refs_stmt): Set it.
17727
17728 2019-05-22 Richard Biener <rguenther@suse.de>
17729
17730 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17731 Add ABS_EXPR.
17732 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17733 as ABSU_EXPR.
17734
17735 2019-05-22 Alan Modra <amodra@gmail.com>
17736
17737 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17738 (ASM_CPU_SPEC): Conditionally add -many.
17739 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17740 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17741 (rs6000_file_start): ..extracted from here, and modified to
17742 test all ISA bits.
17743 (rs6000_output_function_prologue): Emit .machine as necessary.
17744
17745 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17746
17747 PR middle-end/90553
17748 * ira-lives.c (process_bb_node_lives): Consider defs
17749 for a call insn to be die before the call, not after.
17750
17751 * function.c (assign_parm_setup_block): Raise alignment of
17752 stacked parameter only for STRICT_ALIGNMENT targets.
17753
17754 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17755
17756 * config/rs6000/constraints.md (define_register_constraint "wz"):
17757 Delete.
17758 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17759 RS6000_CONSTRAINT_wz.
17760 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17761 (rs6000_init_hard_regno_mode_ok): Adjust.
17762 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17763 * doc/md.texi (Machine Constraints): Adjust.
17764
17765 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17766
17767 * config/rs6000/constraints.md (define_register_constraint "wl"):
17768 Delete.
17769 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17770 RS6000_CONSTRAINT_wl.
17771 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17772 (rs6000_init_hard_regno_mode_ok): Adjust.
17773 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17774 * doc/md.texi (Machine Constraints): Adjust.
17775
17776 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17777
17778 * config/rs6000/constraints.md (define_register_constraint "wm"):
17779 Delete.
17780 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17781 RS6000_CONSTRAINT_wm.
17782 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17783 (rs6000_init_hard_regno_mode_ok): Adjust.
17784 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17785 * doc/md.texi (Machine Constraints): Adjust.
17786
17787 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17788
17789 * config/rs6000/constraints.md (define_register_constraint "wk"):
17790 Delete.
17791 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17792 RS6000_CONSTRAINT_wk.
17793 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17794 (rs6000_init_hard_regno_mode_ok): Adjust.
17795 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17796 * doc/md.texi (Machine Constraints): Adjust.
17797
17798 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17799
17800 * config/rs6000/constraints.md (define_register_constraint "wj"):
17801 Delete.
17802 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17803 RS6000_CONSTRAINT_wj.
17804 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17805 (rs6000_init_hard_regno_mode_ok): Adjust.
17806 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17807 (VS_64dm): Delete.
17808 * config/rs6000/vsx.md: Ditto.
17809 * doc/md.texi (Machine Constraints): Adjust.
17810
17811 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17812
17813 * config/rs6000/constraints.md (define_register_constraint "wh"):
17814 Delete.
17815 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17816 RS6000_CONSTRAINT_wh.
17817 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17818 (rs6000_init_hard_regno_mode_ok): Adjust.
17819 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17820 * doc/md.texi (Machine Constraints): Adjust.
17821
17822 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17823
17824 PR target/90547
17825 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17826 Avoid calling gen_lowpart with CONST operand.
17827
17828 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17829
17830 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17831 field template_last_to_copy.
17832 (ssa_create_duplicates): Set it, and use it. Attempt to
17833 preserve more debug stmts.
17834
17835 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17836
17837 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17838 (signbit<mode>2): New expander
17839
17840 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17841
17842 PR bootstrap/87338
17843 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17844 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17845
17846 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17847
17848 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17849 %ebx and %ecx bafore calling cpuid with leaf 1 or
17850 non-constant leaf argument.
17851
17852 2019-05-21 Alan Modra <amodra@gmail.com>
17853
17854 PR target/90545
17855 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17856 power9 direct move cost.
17857
17858 2019-05-21 Richard Biener <rguenther@suse.de>
17859
17860 PR middle-end/90510
17861 * fold-const.c (fold_read_from_vector): New function.
17862 * fold-const.h (fold_read_from_vector): Declare.
17863 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17864 single-element insert permutations. Canonicalize selector
17865 further and fix issue with last commit.
17866
17867 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17868
17869 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17870 parameter with default value false to declaration.
17871 (split_edges_for_insertion): New inline function. Wrapper for
17872 split_critical_edges with for_edge_insertion_p = true.
17873 * tree-cfg.c (split_critical_edges): Don't split non-critical
17874 edges if for_edge_insertion_p is false. Fix whitespace.
17875 * tree-ssa-pre.c (pass_pre::execute): Call
17876 split_edges_for_insertion instead of split_critical_edges.
17877 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17878 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17879 (pass_data_sink_code): Update function name in the comment.
17880
17881 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17882
17883 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17884 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17885 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17886 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17887 positives.
17888
17889 2019-05-21 Martin Liska <mliska@suse.cz>
17890
17891 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17892 an extra newline.
17893 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17894 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17895 vec_lvsr.
17896 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17897 Quote a C type.
17898 (rs6000_function_arg): Likewise.
17899 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17900 (rs6000_expand_ternop_builtin): Use interval syntax.
17901 (get_element_number): Likewise.
17902 (altivec_expand_builtin): Likewise.
17903 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17904
17905 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17906
17907 PR c++/59813
17908 PR target/90418
17909 * function.h (struct function): Add calls_eh_return member.
17910 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17911 gimplifying __builtin_eh_return call.
17912 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17913 to cfun.
17914 (expand_call_inline): Or in src_cfun->calls_eh_return into
17915 dst_cfun->calls_eh_return.
17916 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17917 cfun->calls_eh_return.
17918 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17919 * lto-streamer-out.c (output_struct_function_base): Write
17920 calls_eh_return.
17921
17922 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17923
17924 PR rtl-optimization/43147
17925 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17926 IX86_BUILTIN_SHUFPD.
17927
17928 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17929
17930 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17931 (refs_may_alias_p_1): ... here; update stats.
17932 (refs_may_alias_p): Do not update stats here.
17933
17934 2019-05-20 Richard Biener <rguenther@suse.de>
17935
17936 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17937 doesn't produce pointers.
17938 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17939 the first operand points to.
17940
17941 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17942
17943 * tree-ssa-alias.c (compare_sizes): New function.
17944 (sompare_type_sizes): New function
17945 (aliasing_component_refs_p): Use it.
17946 (indirect_ref_may_alias_decl_p): Likewise.
17947
17948 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17949
17950 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17951
17952 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17953
17954 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17955 (LIBLSAN_EARLY_SPEC): Likewise.
17956 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17957
17958 2019-05-20 Martin Liska <mliska@suse.cz>
17959
17960 * config/i386/i386.c (ix86_libc_has_fast_function):
17961 Add ATTRIBUTE_UNUSED for the argument.
17962
17963 2019-05-20 Richard Biener <rguenther@suse.de>
17964
17965 * gimple-match-head.c: Include vec-perm-indices.h.
17966 * generic-match-head.c: Likewise.
17967 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17968 is included.
17969 * fold-const.c (fold_vec_perm): Export.
17970 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17971 (match.pd): ...here.
17972
17973 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17974
17975 * cfgloop.h (struct loop): Add simdlen member.
17976 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17977 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17978 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17979 as new argument to autovectorize_vector_sizes target hook. If
17980 loop->simdlen, pick up vector size where the vectorization factor
17981 is equal to loop->simd, and if there is none, fall back to the first
17982 successful one.
17983 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17984 caller.
17985 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17986 * omp-general.c (omp_max_vf): Likewise.
17987 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17988 * tree-vect-slp.c (vect_slp_bb): Likewise.
17989 * target.def (autovectorize_vector_sizes): Add ALL argument and
17990 document it.
17991 * doc/tm.texi: Adjust documentation.
17992 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17993 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17994 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17995 bool argument.
17996 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17997 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17998 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17999 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
18000 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
18001 preferred vector size is not 512-bit or 256-bit, just put those
18002 unpreferred ones last.
18003
18004 2019-05-20 Martin Liska <mliska@suse.cz>
18005
18006 * targhooks.c (default_libc_has_fast_function): New function.
18007 * targhooks.h (default_libc_has_fast_function): Likewise.
18008
18009 2019-05-20 Martin Liska <mliska@suse.cz>
18010
18011 PR middle-end/90263
18012 * builtins.c (expand_builtin_memory_copy_args): When having a
18013 target with fast mempcpy implementation do now use memcpy.
18014 * config/i386/i386.c (ix86_libc_has_fast_function): New.
18015 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
18016 * doc/tm.texi: Likewise.
18017 * doc/tm.texi.in: Likewise.
18018 * target.def:
18019 * expr.c (emit_block_move_hints): Add 2 new arguments.
18020 * expr.h (emit_block_move_hints): Bail out when libcall
18021 to memcpy would be used.
18022
18023 2019-05-20 Martin Liska <mliska@suse.cz>
18024
18025 * profile-count.c: Add vertical spacing in order
18026 to separate functions.
18027 * profile-count.h: Likewise.
18028
18029 2019-05-20 Martin Liska <mliska@suse.cz>
18030
18031 * profile-count.h: Do not use full qualified
18032 names if possible.
18033 * profile-count.c (profile_count::to_frequency): Likewise.
18034
18035 2019-05-20 Martin Liska <mliska@suse.cz>
18036
18037 * profile-count.h (enum profile_quality): Use capital letters
18038 for enum value names. Use the adjusted names.
18039 * profile-count.c: Use the adjusted names.
18040
18041 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18042
18043 * config/rs6000/constraints.md (define_register_constraint "wH"):
18044 Delete.
18045 (define_register_constraint "wI"): Delete.
18046 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18047 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
18048 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18049 (rs6000_init_hard_regno_mode_ok): Adjust.
18050 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
18051 resp. "d", or with "wa" as appropriate, all with "p8v".
18052 * config/rs6000/vsx.md: Ditto.
18053 * doc/md.texi (Machine Constraints): Adjust.
18054
18055 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18056
18057 * config/rs6000/constraints.md (define_register_constraint "wy"):
18058 Delete.
18059 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18060 RS6000_CONSTRAINT_wy.
18061 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18062 (rs6000_init_hard_regno_mode_ok): Adjust.
18063 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
18064 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
18065 (define_mode_attr Fisa): New.
18066 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
18067 * doc/md.texi (Machine Constraints): Adjust.
18068
18069 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18070
18071 * config/rs6000/constraints.md (define_register_constraint "wu"):
18072 Delete.
18073 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18074 RS6000_CONSTRAINT_wu.
18075 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18076 (rs6000_init_hard_regno_mode_ok): Adjust.
18077 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
18078 both with "p8v".
18079 (define_mode_attr Fa): Delete.
18080 * config/rs6000/vsx.md: Ditto.
18081 * doc/md.texi (Machine Constraints): Adjust.
18082
18083 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18084
18085 * config/rs6000/constraints.md (define_register_constraint "wJ"):
18086 Delete.
18087 (define_register_constraint "wK"): Delete.
18088 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18089 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
18090 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18091 (rs6000_init_hard_regno_mode_ok): Adjust.
18092 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
18093 Replace "wK" constraint by "wH" with "p9v".
18094 * config/rs6000/vsx.md: Ditto.
18095 * doc/md.texi (Machine Constraints): Adjust.
18096
18097 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18098
18099 * config/rs6000/constraints.md (define_register_constraint "wb"):
18100 Delete.
18101 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18102 RS6000_CONSTRAINT_wb.
18103 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18104 (rs6000_init_hard_regno_mode_ok): Adjust.
18105 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18106 * config/rs6000/vsx.md: Ditto.
18107 * doc/md.texi (Machine Constraints): Adjust.
18108
18109 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18110
18111 * config/rs6000/constraints.md (define_register_constraint "wo"):
18112 Delete.
18113 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18114 RS6000_CONSTRAINT_wo.
18115 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18116 (rs6000_init_hard_regno_mode_ok): Adjust.
18117 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18118 * config/rs6000/altivec.md: Ditto.
18119 * doc/md.texi (Machine Constraints): Adjust.
18120
18121 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18122
18123 * config/darwin-c.c (darwin_register_objc_includes): Do not
18124 prepend the sysroot when building gnu-runtime header search
18125 paths.
18126
18127 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18128
18129 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18130 instead of direct output of the asm.
18131
18132 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18133
18134 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18135 argument to be type bool (was int before).
18136 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18137 at first use. Use type bool for some variables. Fix a theoretical
18138 eh_return bug for svr4.
18139
18140 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18141
18142 * config/rs6000/rs6000.md (isa): New attribute.
18143 (enabled): New attribute.
18144
18145 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18146
18147 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18148 assemble_start_function and assemble_end_function.
18149
18150 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18151
18152 PR middle-end/89433
18153 * omp-general.c (oacc_verify_routine_clauses): Change formal
18154 parameters. Add checking if already marked with an OpenACC
18155 'routine' directive. Adjust all users.
18156
18157 PR middle-end/89433
18158 * omp-general.c (oacc_build_routine_dims): Move some of its
18159 processing into...
18160 (oacc_verify_routine_clauses): ... this new function.
18161 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18162
18163 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18164
18165 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18166 formating of picbase labels to match other ports.
18167
18168 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18169
18170 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18171 in the generated code.
18172
18173 2019-05-16 Martin Sebor <msebor@redhat.com>
18174
18175 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18176 identifiers, keywords, operators, and types in diagnostics. Correct
18177 quoting, spelling, and sentence capitalization issues.
18178 (expand_builtin_atomic_is_lock_free): Same.
18179 (fold_builtin_next_arg): Same.
18180 * cfgexpand.c (expand_one_var): Same.
18181 (tree_conflicts_with_clobbers_p): Same.
18182 (expand_asm_stmt): Same.
18183 (verify_loop_structure): Same.
18184 * cgraphunit.c (process_function_and_variable_attributes): Same.
18185 * collect-utils.c (collect_execute): Same.
18186 * collect2.c (maybe_run_lto_and_relink): Same.
18187 (is_lto_object_file): Same.
18188 (scan_prog_file): Same.
18189 * convert.c (convert_to_real_1): Same.
18190 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18191 * except.c (verify_eh_tree): Same.
18192 * gcc.c (execute): Same.
18193 (eval_spec_function): Same.
18194 (run_attempt): Same.
18195 (driver::set_up_specs): Same.
18196 (compare_debug_auxbase_opt_spec_function): Same.
18197 * gcov-tool.c (unlink_gcda_file): Same.
18198 (do_merge): Same.
18199 (do_rewrite): Same.
18200 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18201 * gimplify.c (gimplify_asm_expr): Same.
18202 (gimplify_adjust_omp_clauses): Same.
18203 * hsa-gen.c (gen_hsa_addr_insns): Same.
18204 (gen_hsa_insns_for_load): Same.
18205 (gen_hsa_cmp_insn_from_gimple): Same.
18206 (gen_hsa_insns_for_operation_assignment): Same.
18207 (gen_get_level): Same.
18208 (gen_hsa_alloca): Same.
18209 (omp_simple_builtin::generate): Same.
18210 (gen_hsa_atomic_for_builtin): Same.
18211 (gen_hsa_insns_for_call): Same.
18212 * input.c (dump_location_info): Same.
18213 * ipa-devirt.c (compare_virtual_tables): Same.
18214 * ira.c (ira_setup_eliminable_regset): Same.
18215 * lra-assigns.c (lra_assign): Same.
18216 * lra-constraints.c (lra_constraints): Same.
18217 * lto-streamer-in.c (lto_input_mode_table): Same.
18218 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18219 (merge_and_complain): Same.
18220 (compile_offload_image): Same.
18221 (compile_images_for_offload_targets): Same.
18222 (debug_objcopy): Same.
18223 (run_gcc): Same.
18224 (main): Same.
18225 * opts.c (print_specific_help): Same.
18226 (parse_no_sanitize_attribute): Same.
18227 (print_help): Same.
18228 (handle_param): Same.
18229 * plugin.c (add_new_plugin): Same.
18230 (parse_plugin_arg_opt): Same.
18231 (try_init_one_plugin): Same.
18232 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18233 operators, and types in diagnostics. Correct quoting and spelling
18234 issues.
18235 * read-rtl-function.c (parse_edge_flag_token): Same.
18236 (function_reader::parse_enum_value): Same.
18237 * reg-stack.c (check_asm_stack_operands): Same.
18238 * regcprop.c (validate_value_data): Same.
18239 * sched-rgn.c (make_pass_sched_fusion): Same.
18240 * stmt.c (check_unique_operand_names): Same.
18241 * targhooks.c (default_target_option_pragma_parse): Same.
18242 * tlink.c (recompile_files): Same.
18243 * toplev.c (process_options): Same.
18244 (do_compile): Same.
18245 * trans-mem.c (diagnose_tm_1): Same.
18246 (ipa_tm_scan_irr_block): Same.
18247 (ipa_tm_diagnose_transaction): Same.
18248 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18249 format a tree code name in a diagnostic.
18250 (verify_types_in_gimple_min_lval): Same.
18251 (verify_types_in_gimple_reference): Same.
18252 (verify_gimple_call): Same.
18253 (verify_gimple_assign_unary): Same.
18254 (verify_gimple_assign_binary): Same.
18255 (verify_gimple_assign_ternary): Same.
18256 (verify_gimple_assign_single): Same.
18257 (verify_gimple_switch): Same.
18258 (verify_gimple_label): Same.
18259 (verify_gimple_phi): Same.
18260 (verify_gimple_in_seq): Same.
18261 (verify_eh_throw_stmt_node): Same.
18262 (collect_subblocks): Same.
18263 (gimple_verify_flow_info): Same.
18264 (do_warn_unused_result): Same.
18265 * tree-inline.c (expand_call_inline): Same.
18266 * tree-into-ssa.c (update_ssa): Same.
18267 * tree.c (tree_int_cst_elt_check_failed): Same.
18268 (tree_vec_elt_check_failed): Same.
18269 (omp_clause_operand_check_failed): Same.
18270 (verify_type_variant): Same.
18271 (verify_type): Same.
18272 * value-prof.c (verify_histograms): Same.
18273 * varasm.c (assemble_start_function): Same.
18274
18275 2019-05-16 Martin Sebor <msebor@redhat.com>
18276
18277 * config/i386/i386-expand.c (get_element_number): Quote keywords
18278 and other internal names in diagnostics. Adjust other diagnostic
18279 formatting issues noted by -Wformat-diag.
18280 * config/i386/i386-features.c
18281 (ix86_mangle_function_version_assembler_name): Same.
18282 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18283 * config/i386/i386.c (ix86_function_type_abi): Same.
18284 (ix86_function_ms_hook_prologue): Same.
18285 (classify_argument): Same.
18286 (ix86_expand_prologue): Same.
18287 (ix86_md_asm_adjust): Same.
18288 (ix86_memmodel_check): Same.
18289
18290 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18291
18292 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18293 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18294 and fpxx modes.
18295
18296 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18297
18298 PR target/90497
18299 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18300 intrinsics without SSE/SSE2/SSSE3.
18301 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18302 check.
18303 (*mmx_uavgv8qi3): Likewise.
18304
18305 2019-05-17 Richard Biener <rguenther@suse.de>
18306
18307 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18308 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18309
18310 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18311
18312 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18313 vec_sldw insn pattern.
18314
18315 2019-05-17 Richard Biener <rguenther@suse.de>
18316
18317 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18318
18319 2019-05-17 Martin Liska <mliska@suse.cz>
18320
18321 PR driver/90496
18322 * toplev.c (output_stack_usage): With LTO and sanitizer it
18323 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18324 has no file location.
18325
18326 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18327
18328 PR c++/90484
18329 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18330 sz0 is equal to sz1, instead return false in that case.
18331
18332 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18333 has non-constant expression, force sctx.lane and use two
18334 argument IFN_GOMP_SIMD_LANE instead of single argument.
18335 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18336 two argument IFN_GOMP_SIMD_LANE without lhs.
18337 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18338 member.
18339 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18340 Define.
18341 (LOOP_REQUIRES_VERSIONING): Or in
18342 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18343 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18344 simd_if_cond.
18345 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18346 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18347 from simd if clause if needed.
18348
18349 2019-05-16 Richard Biener <rguenther@suse.de>
18350
18351 * tree-affine.c (expr_to_aff_combination): New function split
18352 out from...
18353 (tree_to_aff_combination): ... here.
18354 (aff_combination_expand): Avoid building a GENERIC tree.
18355
18356 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18357
18358 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18359 assemble_start_function and assemble_end_function calls.
18360 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18361 assemble_start_function and assemble_end_function.
18362 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18363 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18364 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18365 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18366 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18367 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18368 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18369 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18370 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18371 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18372 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18373 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18374 Likewise.
18375 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18376 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18377 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18378 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18379 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18380 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18381 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18382 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18383 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18384 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18385 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18386 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18387 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18388 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18389 Likewise.
18390 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18391 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18392 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18393
18394 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18395
18396 * tree-ssa-alias.c (alias_stats): Add
18397 aliasing_component_refs_p_may_alias and
18398 aliasing_component_refs_p_no_alias.
18399 (dump_alias_stats): Print aliasing_component_refs_p stats.
18400 (aliasing_component_refs_p): Update stats.
18401
18402 2019-05-16 Martin Liska <mliska@suse.cz>
18403
18404 PR lto/90500
18405 * multiple_target.c (expand_target_clones): Do not allow
18406 target_clones being used with a symbol that is an alias.
18407
18408 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18409
18410 PR tree-optimization/90394
18411 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18412 positives rather than ICE for cases where (code2 == NE_EXPR
18413 && code1 == BIT_AND_EXPR).
18414
18415 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18416
18417 PR fortran/90329
18418 * tree-core.h (struct tree_decl_common): Document
18419 decl_nonshareable_flag for PARM_DECLs.
18420 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18421 * calls.c (expand_call): Don't try tail call if caller
18422 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18423 passed on the stack and callee needs to pass any arguments on the
18424 stack.
18425 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18426 else if instead of series of mutually exclusive ifs. Handle
18427 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18428 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18429
18430 * lto-streamer.h (LTO_major_version): Bump to 9.
18431
18432 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18433
18434 PR tree-optimization/90106
18435 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18436 new parameter as new internal function call, also move it to new
18437 basic block.
18438 (use_internal_fn): Pass internal function call to
18439 shrink_wrap_one_built_in_call_with_conds.
18440
18441 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18442
18443 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18444 max_vf to 1.
18445 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18446 safelen_int and set loop->dont_vectorize.
18447
18448 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18449
18450 PR target/89021
18451 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18452 SSE/SSE2/SSSE3.
18453 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18454 Likewise.
18455 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18456 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18457 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18458 is defined.
18459
18460 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18461
18462 PR target/89021
18463 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18464 define_insn_and_split to support SSE emulation.
18465 (*vec_extractv2sf_0): Likewise.
18466 (*vec_extractv2sf_1): Likewise.
18467 (*vec_extractv2si_0): Likewise.
18468 (*vec_extractv2si_1): Likewise.
18469 (*vec_extractv2si_zext_mem): Likewise.
18470 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18471 (vec_extractv2sf_1 splitter): Likewise.
18472 (vec_extractv2sfsf): Likewise.
18473 (vec_setv2si): Likewise.
18474 (vec_extractv2si_1 splitter): Likewise.
18475 (vec_extractv2sisi): Likewise.
18476 (vec_setv4hi): Likewise.
18477 (vec_extractv4hihi): Likewise.
18478 (vec_setv8qi): Likewise.
18479 (vec_extractv8qiqi): Likewise.
18480 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18481 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18482 (vec_extractv2sisi): Likewise.
18483 (vec_extractv4hihi): Likewise.
18484 (vec_extractv8qiqi): Likewise.
18485 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18486 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18487 (vec_initv2sisi): Likewise.
18488 (vec_initv4hihi): Likewise.
18489 (vec_initv8qiqi): Likewise.
18490 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18491 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18492 (vec_setv4hi): Likewise.
18493 (vec_setv8qi): Likewise.
18494
18495 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18496
18497 PR target/89021
18498 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18499 TARGET_MMX_WITH_SSE.
18500 (MMXMODE:*mov<mode>_internal): Likewise.
18501 (MMXMODE:movmisalign<mode>): Likewise.
18502
18503 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18504
18505 PR target/89021
18506 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18507 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18508 (sse2_cvtpd2pi): Ditto.
18509 (sse2_cvttpd2pi): Ditto.
18510 (*vec_concatv2sf_sse4_1): Ditto.
18511 (*vec_concatv2sf_sse): Ditto.
18512 (*vec_concatv2si_sse4_1): Ditto.
18513 (*vec_concatv2si): Ditto.
18514 (*vec_concatv4si_0): Ditto.
18515 (*vec_concatv2di_0): Ditto.
18516
18517 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18518
18519 PR target/89021
18520 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18521
18522 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18523
18524 PR target/89021
18525 * config/i386/sse.md (ssse3_palignrdi): Changed to
18526 define_insn_and_split to support SSE emulation.
18527
18528 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18529
18530 PR target/89021
18531 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18532
18533 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18534
18535 PR target/89021
18536 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18537 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18538 SSE emulation.
18539
18540 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18541
18542 PR target/89021
18543 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18544 or TARGET_MMX_WITH_SSE.
18545 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18546
18547 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18548
18549 PR target/89021
18550 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18551
18552 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18553
18554 PR target/89021
18555 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18556 Changed to define_insn_and_split to support SSE emulation.
18557
18558 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18559
18560 PR target/89021
18561 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18562 Changed to define_insn_and_split to support SSE emulation.
18563
18564 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18565
18566 PR target/89021
18567 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18568 (*mmx_<emms>): This.
18569 (mmx_<emms>): New expander.
18570
18571 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18572
18573 PR target/89021
18574 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18575 support.
18576 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18577
18578 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18579
18580 PR target/89021
18581 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18582
18583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18584
18585 PR target/89021
18586 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18587
18588 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18589
18590 PR target/89021
18591 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18592 TARGET_MMX_WITH_SSE.
18593 (*mmx_uavgv4hi3): Add SSE emulation.
18594
18595 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18596
18597 PR target/89021
18598 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18599 and TARGET_MMX_WITH_SSE.
18600 (*mmx_uavgv8qi3): Add SSE emulation.
18601
18602 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18603
18604 PR target/89021
18605 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18606 maskmovdqu for __MMX_WITH_SSE__.
18607
18608 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18609
18610 PR target/89021
18611 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18612 TARGET_MMX and TARGET_MMX_WITH_SSE.
18613 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18614
18615 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18616
18617 PR target/89021
18618 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18619 define_insn_and_split to support SSE emulation.
18620
18621 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18622
18623 PR target/89021
18624 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18625 and TARGET_MMX_WITH_SSE.
18626 (mmx_<code>v8qi3): Likewise.
18627 (smaxmin:<code>v4hi3): New.
18628 (umaxmin:<code>v8qi3): Likewise.
18629 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18630 (umaxmin:*mmx_<code>v8qi3): Likewise.
18631
18632 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18633
18634 PR target/89021
18635 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18636 TARGET_MMX_WITH_SSE.
18637 (*mmx_pinsrw): Add SSE emulation.
18638
18639 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18640
18641 PR target/89021
18642 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18643
18644 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18645
18646 PR target/89021
18647 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18648 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18649 SSE emulation.
18650
18651 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18652
18653 PR target/89021
18654 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18655 (sse_cvttps2pi): Likewise.
18656
18657 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18658
18659 PR target/89021
18660 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18661 TARGET_MMX_WITH_SSE.
18662 (mmx_pshufw_1): Add SSE emulation.
18663 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18664 TARGET_MMX_WITH_SSE to support SSE emulation.
18665
18666 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18667
18668 PR target/89021
18669 * config/i386/constraints.md (Yw): New constraint.
18670 * config/i386/mmx.md (*vec_dupv2si): Changed to
18671 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18672 support SSE emulation.
18673
18674 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18675
18676 PR target/89021
18677 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18678 TARGET_MMX_WITH_SSE.
18679 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18680 support.
18681 (mmx_gt<mode>3): Likewise.
18682
18683 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18684
18685 PR target/89021
18686 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18687 TARGET_MMX_WITH_SSE. Add SSE support.
18688
18689 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18690
18691 PR target/89021
18692 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18693 TARGET_MMX_WITH_SSE.
18694 (any_logic:<code><mode>3): New.
18695 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18696 Add SSE support.
18697
18698 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18699
18700 PR target/89021
18701 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18702 TARGET_MMX_WITH_SSE. Add SSE emulation.
18703 (mmx_<shift_insn><mode>3): Likewise.
18704 (ashr<mode>3): New.
18705 (<shift_insn><mode>3): Likewise.
18706
18707 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18708
18709 PR target/89021
18710 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18711 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18712
18713 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18714
18715 PR target/89021
18716 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18717 TARGET_MMX_WITH_SSE.
18718 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18719 SSE support.
18720
18721 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18722
18723 PR target/89021
18724 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18725 TARGET_MMX_WITH_SSE.
18726 (mulv4hi3): New.
18727 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18728 support.
18729
18730 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18731
18732 PR target/89021
18733 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18734 (plusminus:mmx_<plusminus_insn><mode>3): Check
18735 TARGET_MMX_WITH_SSE.
18736 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18737 (<plusminus_insn><mode>3): New.
18738 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18739 (*mmx_<plusminus_insn><mode>3): Likewise.
18740
18741 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18742
18743 PR target/89021
18744 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18745 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18746 prototype.
18747 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18748 define_insn_and_split to support SSE emulation.
18749 (mmx_punpcklbw): Likewise.
18750 (mmx_punpckhwd): Likewise.
18751 (mmx_punpcklwd): Likewise.
18752 (mmx_punpckhdq): Likewise.
18753 (mmx_punpckldq): Likewise.
18754
18755 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18756 Uros Bizjak <ubizjak@gmail.com>
18757
18758 PR target/89021
18759 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18760 New function.
18761 (ix86_split_mmx_pack): Likewise.
18762 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18763 New prototype.
18764 (ix86_split_mmx_pack): Likewise.
18765 * config/i386/i386.md (mmx_isa): New.
18766 (enabled): Also check mmx_isa.
18767 * config/i386/mmx.md (any_s_truncate): New code iterator.
18768 (s_trunsuffix): New code attr.
18769 (mmx_packsswb): Removed.
18770 (mmx_packssdw): Likewise.
18771 (mmx_packuswb): Likewise.
18772 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18773 MMX packsswb/packuswb with SSE2.
18774 (mmx_packssdw): Likewise.
18775 * config/i386/predicates.md (register_mmxmem_operand): New.
18776
18777 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18778
18779 PR target/89021
18780 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18781 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18782 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18783 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18784 (ix86_vector_mode_supported_p): Likewise.
18785 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18786
18787 2019-05-15 Martin Liska <mliska@suse.cz>
18788
18789 PR middle-end/90478
18790 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18791 Check for overflow.
18792
18793 2019-05-15 Richard Biener <rguenther@suse.de>
18794
18795 * tree-into-ssa.c (pass_build_ssa::execute): Run
18796 update_address_taken before going into SSA.
18797
18798 2019-05-15 Richard Biener <rguenther@suse.de>
18799
18800 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18801 as __BIT_FIELD_REF with type with -gimple.
18802
18803 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18804
18805 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18806 semantically equivalent branches (left over after prior refactorings).
18807
18808 2019-05-15 Richard Biener <rguenther@suse.de>
18809
18810 PR tree-optimization/88828
18811 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18812 bogus check.
18813
18814 2019-05-14 Richard Biener <rguenther@suse.de>
18815
18816 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18817 as __VIEW_CONVERT with -gimple.
18818
18819 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18820
18821 PR target/82920
18822 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18823 Darwin.
18824
18825 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18826
18827 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18828 define_split to become a define_insn_and_split.
18829
18830 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18831
18832 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18833 arguments.
18834 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18835 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18836 (sibcall_epilogue): Adjust.
18837 (epilogue): Adjust.
18838
18839 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18840
18841 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18842 to unsupported ones.
18843 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18844 * config.host: Likewise.
18845 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18846 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18847 __svr4__]: Remove "brand" fallback.
18848 [!KSTAT_DATA_STRING]: Remove.
18849 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18850 to *-*-solaris2*.
18851 (comdat_group): Likewise.
18852 (set_have_as_tls): Likewise.
18853 (gcc_cv_target_dl_iterate_phdr): Likewise.
18854 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18855 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18856 * configure: Regenerate.
18857 * doc/install.texi: Simplify Solaris target triplets.
18858 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18859 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18860 Remove Solaris 10 references.
18861 Remove obsolete Solaris bug reference.
18862 (Specific, sparc-sun-solaris2.10): Remove.
18863
18864 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18865
18866 * config/i386/i386.md (any_div): New code iterator.
18867 (paired_mod): New code attribute.
18868 (sgnprefix): Handle DIV and UDIV RTXes.
18869 (u): Ditto.
18870 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18871 and udivmod<mode>4 patterns using any_div code iterator.
18872 (divmod splitters): Macroize splitters using any_div code iterator.
18873 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18874 (*udivmodsi4_pow2_zext_2): Ditto.
18875 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18876 and *udivmod<mode>4_noext patterns using any_div code iterator.
18877 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18878 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18879 patterns using any_div code iterator.
18880 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18881 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18882 patterns using any_div code iterator.
18883 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18884 udivmodhiqi3 patterns using any_extend code iterator.
18885
18886 2019-05-14 Richard Biener <rguenther@suse.de>
18887 H.J. Lu <hongjiu.lu@intel.com>
18888
18889 PR tree-optimization/88828
18890 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18891 permuting in a single non-constant element not extracted
18892 from a vector.
18893
18894 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18895
18896 * internal-fn.def (SIGNBIT): New.
18897 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18898 defined.
18899 (signbitv4sf2): Likewise.
18900
18901 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18902
18903 PR target/90357
18904 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18905 next insn when the SRC reg is dead.
18906
18907 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18908
18909 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18910 (alloc_cand_and_find_basis): Ditto.
18911 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18912 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18913 (create_add_imm_cand, slsr_process_cast): Ditto.
18914 (slsr_process_copy, replace_mult_candidate): Ditto.
18915 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18916 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18917 (pass_strength_reduction::execute): Init the first NULL element.
18918
18919 2019-05-13 Nathan Sidwell <nathan@acm.org>
18920
18921 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18922 (run_attempt): Reformat line break.
18923
18924 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18925
18926 PR target/90418
18927 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18928 data registers in sibcall epilogues.
18929 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18930
18931 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18932
18933 PR target/89221
18934 * configure.ac (--enable-frame-pointer):
18935 Disable by default for cygwin and mingw.
18936 * configure: Regenerate.
18937
18938 2019-05-13 Nathan Sidwell <nathan@acm.org>
18939
18940 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18941 piece of code.
18942 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18943 (gen_member_die): Move abstract origin check earlier. Only VARs
18944 can be static_inline_p. Simplify splicing control flow.
18945
18946 2019-05-13 Richard Biener <rguenther@suse.de>
18947
18948 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18949 VIEW_CONVERT_EXPR.
18950 (vect_build_slp_tree_1): Likewise.
18951
18952 2019-05-13 Richard Biener <rguenther@suse.de>
18953
18954 PR tree-optimization/90402
18955 * tree-if-conv.c (tree_if_conversion): Value number only
18956 the loop body by making the latch an exit of the region
18957 as well.
18958 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18959 processing PHIs.
18960 (do_rpo_vn): Deal with multiple edges into the entry block
18961 that are not backedges inside the region by skipping PHIs
18962 of the entry block.
18963
18964 2019-05-13 Richard Biener <rguenther@suse.de>
18965
18966 PR tree-optimization/90316
18967 * tree-ssa-pre.c (insert_aux): Fold into ...
18968 (insert): ... this function. Use a RPO walk to reduce the
18969 number of required iterations.
18970
18971 2019-05-13 Martin Liska <mliska@suse.cz>
18972
18973 PR tree-optimization/90416
18974 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18975 string instead of passing the second part as va_arg argument.
18976
18977 2019-05-13 Martin Liska <mliska@suse.cz>
18978
18979 PR gcov-profile/90380
18980 * gcov.c (handle_cycle): Do not support zero cycle count,
18981 it should not be possible.
18982 (path_contains_zero_cycle_arc): New function.
18983 (circuit): Ignore zero cycle arc counts.
18984
18985 2019-05-13 Martin Liska <mliska@suse.cz>
18986
18987 PR gcov-profile/90380
18988 * gcov.c (enum loop_type): Remove the enum and
18989 the operator.
18990 (handle_cycle): Assert that we should not reach
18991 a negative count.
18992 (circuit): Use loop_found instead of a tri-state loop_type.
18993 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18994 happen.
18995
18996 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18997
18998 PR target/82920
18999 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
19000 (ix86_output_indirect_branch_via_reg): Use output mechanism
19001 accounting for __USER_LABEL_PREFIX__.
19002 (ix86_output_indirect_branch_via_push): Likewise.
19003 (ix86_output_function_return): Likewise.
19004 (ix86_output_indirect_function_return): Likewise.
19005
19006 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
19007
19008 * doc/md.texi: Document use of code attributes in rtx patterns.
19009 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
19010 * read-rtl.c (find_code): Split out search loops into...
19011 (maybe_find_code): ...this new function.
19012 (check_code_iterator): Make the error message more informative.
19013 (check_code_attribute): New function.
19014 (rtx_reader::rtx_alloc_for_name): Likewise.
19015 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
19016 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
19017 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
19018 <max_opp> directly as an rtx code instead of via a match_operator.
19019 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
19020 (<su>abd<mode>_3): Update accordingly.
19021
19022 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19023
19024 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
19025 is given, print the state of the EH "save world" computation for
19026 Darwin.
19027
19028 2019-05-11 Jakub Jelinek <jakub@redhat.com>
19029
19030 PR c++/59813
19031 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
19032 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19033
19034 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
19035
19036 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
19037 Use pinsrd for TARGET_SSE4_1.
19038 * config/i386/sse.md (movdi_to_sse): Ditto.
19039
19040 2019-05-10 Richard Biener <rguenther@suse.de>
19041
19042 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
19043 (do_rpo_vn): Initialize next_value_id.
19044
19045 2019-05-10 Martin Liska <mliska@suse.cz>
19046
19047 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19048 Fix plural form.
19049
19050 2019-05-10 Jakub Jelinek <jakub@redhat.com>
19051
19052 PR tree-optimization/90385
19053 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
19054 arguments of the exit phis.
19055
19056 PR c++/90383
19057 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
19058 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
19059 id->do_not_fold.
19060 (copy_tree_body_r): Likewise.
19061 (copy_fn): Set id.do_not_fold to true.
19062
19063 2019-05-10 Martin Liska <mliska@suse.cz>
19064
19065 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
19066 Reapply changes from r269790.
19067
19068 2019-05-10 Martin Liska <mliska@suse.cz>
19069
19070 PR middle-end/90340
19071 * doc/invoke.texi: New params.
19072 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
19073 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
19074 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19075 Use it.
19076 * tree-switch-conversion.h (struct jump_table_cluster):
19077 Likewise.
19078
19079 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
19080
19081 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
19082
19083 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
19084
19085 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
19086
19087 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
19088
19089 PR rtl-optimization/88879
19090 * sel-sched.c (sel_target_adjust_priority): Remove assert.
19091
19092 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
19093
19094 PR target/90405
19095 * config/arm/arm.c (callee_saved_reg_p): Move before
19096 thumb_find_work_register.
19097 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
19098 thumb_find_work_register. Only call df_get_live_out once.
19099 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
19100 (thumb_find_work_register): Use
19101 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19102 algorithms to locate a spare call clobbered reg.
19103
19104 2019-05-09 Martin Liska <mliska@suse.cz>
19105
19106 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19107 and MAX_EXPR in GIMPLE FE format.
19108
19109 2019-05-09 Martin Liska <mliska@suse.cz>
19110
19111 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19112 * gimple-pretty-print.c (dump_gimple_bb_header):
19113 Dump BB count.
19114 (pp_cfg_jump): Dump edge probability.
19115 * profile-count.c (profile_quality_as_string): Simplify
19116 with a static array.
19117 (parse_profile_quality): New function.
19118 (profile_count::dump): Simplify with a static array.
19119 (profile_count::from_gcov_type): Add new argument.
19120 * profile-count.h (parse_profile_quality): Likewise.
19121 * predict.h (set_hot_bb_threshold): New.
19122 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19123 New param.
19124 * predict.c (get_hot_bb_threshold): Set from the new param.
19125 (set_hot_bb_threshold): New.
19126
19127 2019-05-09 Richard Biener <rguenther@suse.de>
19128
19129 PR tree-optimization/90395
19130 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19131 rewrite vector stores that throw internally.
19132
19133 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19134
19135 * cif-code.def (CHKP): Remove.
19136
19137 PR target/89221
19138 * configure.ac (--enable-frame-pointer): Disable by default for
19139 GNU systems.
19140 * configure: Regenerate.
19141
19142 2019-05-09 Alan Modra <amodra@gmail.com>
19143
19144 PR target/89271
19145 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19146 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19147 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19148 cost for general <-> vsx when direct moves are available.
19149 Cost union classes at minimal cost for any reg in the class.
19150 Correct calculation for moves between vsx, float, and altivec.
19151 Don't return a low cost for moves between special regs. Don't
19152 use hard coded register numbers.
19153 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19154 (rs6000_ira_change_pseudo_allocno_class): New function.
19155 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19156 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19157 alternatives.
19158 (movsi_internal1): Don't disparage vector alternatives.
19159 (mov<mode>_internal): Likewise, excepting alternative that
19160 will be split.
19161 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19162 we <- b alternative.
19163
19164 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19165
19166 PR c++/59813
19167 PR tree-optimization/89060
19168 * tree-ssa-live.h (live_vars_map): New typedef.
19169 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19170 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19171 (struct compute_live_vars_data): New type.
19172 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19173 live_vars_at_stmt, destroy_live_vars): New functions.
19174 * tree-tailcall.c: Include tree-ssa-live.h.
19175 (live_vars, live_vars_vec): New global variables.
19176 (find_tail_calls): Perform variable life analysis before punting.
19177 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19178 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19179 member.
19180 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19181 Perform variable life analysis to select variables that really need
19182 clobbers added.
19183 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19184 instead set id->eh_landing_pad_dest and assert it is the same.
19185 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19186
19187 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19188 Richard Earnshaw <rearnsha@arm.com>
19189
19190 PR target/88167
19191 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19192 function.
19193 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19194 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19195 register if both the epilogue and prologue can use call-clobbered
19196 regs.
19197 (thumb1_unexpanded_epilogue): Use
19198 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19199 picking temporaries for restoring high regs to match that of the
19200 prologue where possible.
19201 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19202 the list of work registers. Detect if the return address is still live
19203 at the end of the prologue and avoid using it for a work register if so.
19204 If the return address is not live, add LR to the list of pushable regs
19205 after the first pass.
19206
19207 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19208
19209 PR tree-optimization/90078
19210 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19211 (INFTY): Increase the value for infinite cost.
19212 (struct comp_cost): Promote type of members to int64_t.
19213 (infinite_cost): Don't set complexity in initialization.
19214 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19215 overflows to infinite_cost.
19216 (adjust_setup_cost): Promote type of parameter and cost computation
19217 to int64_t.
19218 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19219 int64_t.
19220 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19221 cost computation to int64_t.
19222 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19223 int64_t's format specifier in dump.
19224
19225 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19226
19227 PR tree-optimization/90240
19228 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19229 with respect to scaling factor pre-computed for each basic block.
19230 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19231 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19232 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19233 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19234 live range for array of loop's basic blocks. Cleanup aux field of
19235 loop's basic blocks.
19236
19237 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19238
19239 PR tree-optimization/90356
19240 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19241
19242 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19243
19244 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19245 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19246 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19247 (ix86_handle_option): Handle -mavx512bf16.
19248 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19249 to extra_headers.
19250 * config/i386/avx512bf16vlintrin.h: New.
19251 * config/i386/avx512bf16intrin.h: New.
19252 * config/i386/cpuid.h (bit_AVX512BF16): New.
19253 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19254 * config/i386/i386-builtin-types.def: Add new types.
19255 * config/i386/i386-builtin.def: Add new builtins.
19256 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19257 __AVX512BF16__.
19258 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19259 (ix86_option_override_internal): Handle BF16.
19260 (ix86_valid_target_attribute_inner_p): Ditto.
19261 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19262 * config/i386/i386-builtin.c (enum processor_features): Add
19263 F_AVX512BF16.
19264 (static const _isa_names_table isa_names_table): Ditto.
19265 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19266 (PTA_AVX512BF16): Ditto.
19267 * config/i386/i386.opt: Add -mavx512bf16.
19268 * config/i386/immintrin.h: Include avx512bf16intrin.h
19269 and avx512bf16vlintrin.h.
19270 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19271 avx512f_cvtneps2bf16_<mode><mask_name>,
19272 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19273 * config/i386/subst.md (mask_half): Add new subst.
19274 * doc/invoke.texi: Document -mavx512bf16.
19275
19276 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19277
19278 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19279 Delete declaration.
19280 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19281 (rs6000_debug_legitimize_reload_address): Delete.
19282 (rs6000_legitimize_reload_address_ptr): Delete.
19283 (rs6000_option_override_internal): Adjust.
19284 (mem_operand_gpr): Adjust comment.
19285 (legitimate_lo_sum_address_p): Ditto.
19286 (rs6000_legitimize_reload_address): Delete.
19287 (rs6000_debug_legitimize_reload_address): Delete.
19288 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19289
19290 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19291
19292 PR target/89765
19293 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19294 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19295 to compute vector element selector for both constant and variable
19296 operands.
19297
19298 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19299
19300 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19301 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19302 ashrdi3_cvt using SWI48 mode iterator.
19303
19304 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19305
19306 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19307 (aarch64_<su>abd<mode>_3): Likewise.
19308 (*aarch64_<su>abd<mode>_3): New define_insn.
19309 (<sur>sad<vsi2qi>): New define_expand.
19310 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19311 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19312 (build_vect_cond_expr): Likewise.
19313
19314 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19315
19316 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19317 clobbers outside of accessible_reg_set.
19318 * config/i386/i386.c (ix86_conditional_register_usage):
19319 Disable register sets by clearing corresponding bits in
19320 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19321 call_used_regs and don't clear corresponding reg_names array members.
19322
19323 2019-05-07 Richard Biener <rguenther@suse.de>
19324
19325 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19326 not specified still compute a comp_vectype for invariant
19327 compares.
19328
19329 2019-05-07 Richard Biener <rguenther@suse.de>
19330
19331 PR tree-optimization/90316
19332 * tree-ssa-pre.c (translate_vuse_through_block): When
19333 same_valid is NULL do not bother to search for a virtual
19334 PHI continuation.
19335 (phi_translate_1): When operands changed we cannot keep
19336 the same value-number so do not bother to ask whether
19337 that's possible from translate_vuse_through_block.
19338
19339 2019-05-07 Martin Liska <mliska@suse.cz>
19340
19341 * bitmap.c (bitmap_register): Come up with
19342 alloc_descriptor_max_uid and assign it for
19343 a new bitmap.
19344 (register_overhead): Use get_descriptor as
19345 a descriptor.
19346 (release_overhead): New.
19347 (bitmap_elem_to_freelist): Call it.
19348 (bitmap_elt_clear_from): Likewise.
19349 (bitmap_obstack_free): Likewise.
19350 (bitmap_move): Sensitively release memory.
19351 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19352 (bitmap_initialize): Initialize alloc_descriptor to zero.
19353 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19354
19355 2019-05-07 Richard Biener <rguenther@suse.de>
19356
19357 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19358 we build a SLP node. Remove max_size and limiting.
19359 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19360
19361 2019-05-07 Richard Biener <rguenther@suse.de>
19362
19363 PR tree-optimization/90316
19364 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19365 limit by reference.
19366 (walk_non_aliased_vuses): Take walking limit argument.
19367 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19368 walking if it is reached instead of just counting.
19369 (get_continuation_for_phi): Likewise.
19370 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19371 limiting to the callback.
19372 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19373 (vn_reference_lookup_3): Likewise.
19374 (vn_reference_lookup_pieces): Likewise.
19375 (vn_reference_lookup): Likewise.
19376 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19377 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19378 (avail_exprs_stack::lookup_avail_expr): Likewise.
19379
19380 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19381
19382 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19383 for comparaible types in the second direction even if first one
19384 hits incomparable type.
19385
19386 2019-05-07 Richard Biener <rguenther@suse.de>
19387
19388 PR lto/90369
19389 * lto-wrapper.c (debug_objcopy): Use the original filename
19390 including archive offset for the filename used for -save-temps.
19391
19392 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19393
19394 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19395 detection.
19396
19397 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19398 Hongtao Liu <hongtao.liu@intel.com>
19399
19400 PR target/89750
19401 PR target/86444
19402 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19403 Modified, original implementation isn't correct.
19404
19405 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19406
19407 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19408 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19409 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19410 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19411 (FRAME_POINTER_REGNUM): Change numbering.
19412 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19413 (alt_reg_names): Adjust.
19414 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19415 fixed.
19416 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19417 (DWARF_FRAME_REGISTERS): Delete.
19418 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19419 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19420 Adjust.
19421 (REG_ALLOC_ORDER): Adjust.
19422 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19423 (REG_CLASS_CONTENTS): Adjust.
19424 (RETURN_ADDR_RTX): Change comment.
19425 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19426 instead of 67.
19427 (REGISTER_NAMES): Adjust.
19428 (ADDITIONAL_REGISTER_NAMES): Adjust.
19429 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19430
19431 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19432
19433 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19434 Delete.
19435 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19436 (DWARF_FRAME_REGISTERS): Adjust.
19437 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19438 Adjust.
19439 (REG_ALLOC_ORDER): Adjust.
19440 (enum reg_class): Delete SPR_REGS.
19441 (REG_CLASS_NAMES): Delete SPR_REGS.
19442 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19443 (REGISTER_NAMES): Adjust.
19444 (ADDITIONAL_REGISTER_NAMES): Adjust.
19445 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19446 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19447 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19448 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19449 (htm_spr_regno): Delete.
19450 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19451 argument.
19452 (rs6000_dbx_register_number): Adjust.
19453
19454 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19455
19456 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19457
19458 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19459
19460 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19461 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19462
19463 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19464
19465 PR tree-optimization/88709
19466 PR tree-optimization/90271
19467 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19468 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19469 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19470 variable.
19471 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19472 of the store merging group is larger than
19473 PARAM_STORE_MERGING_MAX_SIZE parameter.
19474 (split_group): Add bzero_first argument. If set, always emit first
19475 the first store which must be = {} of the whole area and then for the
19476 rest of the stores consider all zero bytes as paddings.
19477 (imm_store_chain_info::output_merged_store): Check if first store
19478 is = {} of the whole area and if yes, determine which setting of
19479 bzero_first for split_group gives smaller number of stores. Adjust
19480 split_group callers.
19481 (lhs_valid_for_store_merging_p): Allow decls.
19482 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19483 no elts.
19484 (pass_store_merging::process_store): Likewise.
19485
19486 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19487
19488 PR target/89424
19489 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19490 handling of V1TImode.
19491
19492 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19493
19494 PR target/89221
19495 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19496 and enable_frame_pointer ...
19497 * configure.ac: ... here. Update help strings for
19498 --enable-frame-pointer.
19499 * configure: Regenerate.
19500 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19501 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19502 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19503 (USE_X86_64_FRAME_POINTER): Ditto.
19504
19505 2019-05-06 Martin Liska <mliska@suse.cz>
19506
19507 * config.gcc: Append to target_gtfiles and fix indentation.
19508
19509 2019-05-06 Richard Biener <rguenther@suse.de>
19510
19511 PR tree-optimization/90358
19512 * tree-vect-stmts.c (get_group_load_store_type): Properly
19513 detect unused upper half of load.
19514 (vectorizable_load): Likewise.
19515
19516 2019-05-06 Richard Biener <rguenther@suse.de>
19517
19518 PR tree-optimization/88828
19519 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19520 (simplify_vector_constructor): ...here. Handle constants in
19521 the constructor.
19522
19523 2019-05-06 Richard Biener <rguenther@suse.de>
19524
19525 PR tree-optimization/90328
19526 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19527 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19528 is valid in the loop nest before using it.
19529 (initialize_data_dependence_relation): Adjust.
19530 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19531 loop as loop-nest to dr_may_alias_p.
19532
19533 2019-05-06 Richard Biener <rguenther@suse.de>
19534
19535 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19536
19537 2019-05-06 Richard Biener <rguenther@suse.de>
19538
19539 PR tree-optimization/90316
19540 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19541 compute target on demand.
19542 (get_continuation_for_phi): Remove code walking stmts to
19543 get to a target virtual operand which could end up being
19544 quadratic.
19545
19546 2019-05-06 Martin Liska <mliska@suse.cz>
19547
19548 PR sanitizer/90312
19549 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19550 when -mabi is selected to a non-default version.
19551
19552 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19553 Martin Liska <mliska@suse.cz>
19554
19555 * Makefile.in: Add lto-dump.texi.
19556 * cgraph.h: Add new functions get_visibility_string and
19557 get_symtab_type_string.
19558 * doc/gcc.texi: Include lto-dump section.
19559 * doc/lto-dump.texi: New file.
19560 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19561 (parse_dump_option): Factor out this function.
19562 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19563 (parse_dump_option): Export the function.
19564 * symtab.c (symtab_node::get_visibility_string): New function.
19565 (symtab_node::get_symtab_type_string): Likewise.
19566
19567 2019-05-06 Martin Liska <mliska@suse.cz>
19568
19569 * config/i386/i386-builtins.c: New file.
19570 * config/i386/i386-builtins.h: New file.
19571 * config/i386/i386-expand.c: New file.
19572 * config/i386/i386-expand.h: New file.
19573 * config/i386/i386-features.c: New file.
19574 * config/i386/i386-features.h: New file.
19575 * config/i386/i386-options.c: New file.
19576 * config/i386/i386-options.h: New file.
19577 * config.gcc: Add new files into extra_objs and
19578 target_gtfiles.
19579 * config/i386/i386.c: Split content of the file
19580 into newly introduced files.
19581 * config/i386/i386.h: Declare common variables
19582 and macros.
19583 * config/i386/t-i386: Define dependencies for new files.
19584
19585 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19586
19587 PR target/89400
19588 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19589 Restrict 'all' variant to 32-bit configurations.
19590 (unaligned_loadhiu): Likewise.
19591 (unaligned_storehi): Likewise.
19592 (unaligned_storesi): Likewise.
19593 (unaligned_loadhis): Disable when compiling for thumb1.
19594
19595 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19596
19597 PR tree-optimization/90269
19598 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19599 Ignore clobbers.
19600
19601 2019-05-03 Martin Liska <mliska@suse.cz>
19602
19603 * hash-map.h: Add is_empty function.
19604 * hash-set.h: Likewise.
19605 * hash-table.h: Likewise.
19606 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19607 elements () == 0 (and similar usages).
19608 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19609 * gimplify.c (gimplify_bind_expr): Likewise.
19610 (gimplify_switch_expr): Likewise.
19611 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19612 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19613 * postreload-gcse.c (dump_hash_table): Likewise.
19614 (gcse_after_reload_main): Likewise.
19615 * predict.c (combine_predictions_for_bb): Likewise.
19616 * tree-parloops.c (reduction_phi): Likewise.
19617 (separate_decls_in_region): Likewise.
19618 (transform_to_exit_first_loop): Likewise.
19619 (gen_parallel_loop): Likewise.
19620 (gather_scalar_reductions): Likewise.
19621 (try_create_reduction_list): Likewise.
19622 * var-tracking.c (dump_vars): Likewise.
19623 (emit_notes_for_changes): Likewise.
19624 (vt_emit_notes): Likewise.
19625
19626 2019-05-03 Richard Biener <rguenther@suse.de>
19627
19628 PR tree-optimization/90316
19629 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19630 before running VN.
19631
19632 2019-05-03 Richard Biener <rguenther@suse.de>
19633
19634 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19635 peeling for gaps by loading only lower halves of vectors
19636 if possible.
19637 (vectorizable_load): Likewise.
19638
19639 2019-05-03 Richard Biener <rguenther@suse.de>
19640
19641 PR middle-end/89518
19642 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19643
19644 2019-05-03 Richard Biener <rguenther@suse.de>
19645
19646 PR middle-end/87314
19647 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19648 Handle STRING_CST vs DECL or STRING_CST.
19649
19650 2019-05-03 Richard Biener <rguenther@suse.de>
19651
19652 PR tree-optimization/88963
19653 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19654 vector loads feeding only BIT_FIELD_REFs to component
19655 loads. Rewrite stores fed by CONSTRUCTORs to component
19656 stores.
19657
19658 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19659
19660 * opts.h (finish_options): Remove lang_mask argument.
19661 (print_help, help_option_argument): Declare.
19662 * opts.c (print_help): Remove forward declaration, no longer static.
19663 (finish_options): Remove lang_mask argument, don't call print_help
19664 here.
19665 * opts-global.c (decode_options): Adjust finish_option caller, call
19666 print_help here.
19667
19668 PR tree-optimization/90303
19669 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19670 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19671
19672 2019-05-03 Richard Biener <rguenther@suse.de>
19673
19674 PR tree-optimization/89698
19675 * gimple-fold.c (canonicalize_constructor_val): Early out
19676 for constants, handle unfolded INTEGER_CSTs as they appear in
19677 C++ virtual table ctors.
19678
19679 2019-05-03 Richard Biener <rguenther@suse.de>
19680
19681 * passes.c (execute_function_todo): Remove dead code.
19682
19683 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19684
19685 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19686 the internal register number, for any "real" register.
19687
19688 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19689
19690 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19691 correct numbers for TFHAR, TFIAR, TEXASR.
19692
19693 2019-05-02 Richard Biener <rguenther@suse.de>
19694
19695 PR tree-optimization/89653
19696 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19697 update-address-taken before the pass.
19698 * passes.def (pass_tree_loop_init): Put comment before it.
19699
19700 2019-05-02 Richard Biener <rguenther@suse.de>
19701
19702 PR tree-optimization/89509
19703 * tree-ssa-structalias.c (compute_dependence_clique): Look
19704 at the first subvar when determining whether it is restrict.
19705
19706 2019-05-02 Richard Biener <rguenther@suse.de>
19707
19708 PR tree-optimization/90273
19709 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19710 useless debug stmts.
19711
19712 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19713
19714 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19715 ACLE branch.
19716 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19717 SVE ACLE branch.
19718 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19719 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19720 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19721 (vectorizable_reduction): Use the functions above to vectorize in a
19722 fully masked loop codes that don't have a conditional internal
19723 function.
19724
19725 2019-05-02 Martin Liska <mliska@suse.cz>
19726
19727 * cgraphclones.c: Call valid_attribute_p with 1 for
19728 target_clone.
19729 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19730 it's for target attribute.
19731 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19732 Add new boolean argument.
19733 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19734 Likewise.
19735 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19736 to ix86_valid_target_attribute_inner_p.
19737 (ix86_valid_target_attribute_p): Pass flags argument to
19738 ix86_valid_target_attribute_inner_p.
19739 (get_builtin_code_for_version): Use 0 as it's target attribute.
19740
19741 2019-05-02 Martin Liska <mliska@suse.cz>
19742
19743 * gcc.c (process_command): Add dummy file only
19744 if n_infiles == 0.
19745 * opts-global.c (decode_options): Pass lang_mask.
19746 * opts.c (print_help): New function.
19747 (finish_options): Print --help if help_option_argument
19748 is set.
19749 (common_handle_option): Factor out content of OPT__help_
19750 into print_help.
19751 * opts.h (finish_options): Add new argument.
19752
19753 2019-05-02 Martin Liska <mliska@suse.cz>
19754
19755 PR target/88809
19756 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19757 With -minline-all-stringops use inline expansion using 4B loop.
19758 * doc/invoke.texi: Document the change of
19759 -minline-all-stringops.
19760
19761 2019-05-01 Jeff Law <law@redhat.com>
19762
19763 PR tree-optimization/88797
19764 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19765 PHI feeds a conditional on the RHS of an assignment.
19766
19767 2019-04-30 Andrew Waterman <andrew@sifive.com>
19768 Jim Wilson <jimw@sifive.com>
19769
19770 * config/riscv/constraints.md (L): New.
19771 * config/riscv/predicates.md (lui_operand): New.
19772 (sfb_alu_operand): New.
19773 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19774 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19775 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19776 * config/riscv/risc.md (type): Add sfb_alu.
19777 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19778 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19779 (branch_zero<mode>): Delete.
19780 (mov<mode>cc): New.
19781 (mov<GPR:mode><X:mode>cc): Likewise.
19782 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19783
19784 2019-04-30 Nathan Sidwell <nathan@acm.org>
19785
19786 * tree.h (MARK_TS_EXP): New.
19787
19788 2019-04-30 Martin Liska <mliska@suse.cz>
19789
19790 * opts.c (enable_warning_as_error): Provide hints
19791 for unknown options.
19792
19793 2019-04-30 Martin Liska <mliska@suse.cz>
19794
19795 PR debug/90288
19796 * doc/invoke.texi: Add missing dash for gas-locview-support
19797 and gno-as-locview-support.
19798
19799 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19800
19801 PR target/89093
19802 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19803 whitespace at the start of target attribute string.
19804
19805 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19806
19807 PR target/86538
19808 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19809 Define __ARM_FEATURE_ATOMICS.
19810
19811 2019-04-30 Martin Liska <mliska@suse.cz>
19812
19813 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19814 into built_in_function enum. Remove code for endp == 2 and
19815 use BUILT_IN_* constants.
19816 (gimple_fold_builtin): Call the function with fcode.
19817
19818 2019-04-30 Martin Liska <mliska@suse.cz>
19819
19820 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19821 DECL_FUNCTION_CODE into ix86_builtins enum before
19822 the switch statement.
19823
19824 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19825
19826 PR tree-optimization/89475
19827 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19828 calls.
19829
19830 2019-04-30 Martin Liska <mliska@suse.cz>
19831
19832 PR translation/90274
19833 * opts.c (print_filtered_help): Wrap string in _(...).
19834
19835 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19836
19837 PR tree-optimization/90240
19838 Revert:
19839 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19840
19841 PR tree-optimization/90078
19842 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19843 checks for infinite_cost overflow.
19844
19845 2019-04-29 Jeff Law <law@redhat.com>
19846
19847 * passes.def: Move -Wrestrict pass after copy propagation.
19848
19849 2019-04-29 Maya Rashish <coypu@sdf.org>
19850
19851 * config.gcc (default_gnu_indirect_function): Default to yes
19852 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19853 sparc*-*-netbsd*, x86_64-*-netbsd*.
19854
19855 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19856
19857 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19858 where cond2 is NE_EXPR.
19859 (is_value_included_in): Update comment.
19860
19861 2019-04-29 Richard Biener <rguenther@suse.de>
19862
19863 PR tree-optimization/90278
19864 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19865 EH on comparison simplification.
19866
19867 2019-04-29 Jason Merrill <jason@redhat.com>
19868
19869 PR c++/82081 - tail call optimization breaks noexcept
19870 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19871 nothrow function to a might-throw function into a tail call.
19872
19873 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19874
19875 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19876 (DDR_INNER_LOOP): Likewise.
19877 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19878 (initialize_data_dependence_relation): Likewise.
19879 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19880
19881 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19882
19883 PR rtl-optimization/90257
19884 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19885 return value.
19886
19887 Revert the revert:
19888 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19889
19890 PR target/90178
19891 Revert:
19892 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19893
19894 Revert the revert:
19895 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19896
19897 Revert:
19898 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19899
19900 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19901
19902 2019-04-29 Richard Biener <rguenther@suse.de>
19903
19904 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19905 rhs issue a reset.
19906
19907 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19908
19909 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19910 varasm.h, and netbsd-protos.h.
19911
19912 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19913
19914 PR target/89261
19915 * config/i386/i386-protos.h (ix86_data_alignment): Change
19916 the second argument type to unsigned int.
19917 * config/i386/i386.c (ix86_data_alignment): Change "align"
19918 argument type to unsigned int.
19919
19920 2019-04-27 Martin Liska <mliska@suse.cz>
19921
19922 PR middle-end/90258
19923 * opt-suggestions.c (option_proposer::build_option_suggestions):
19924 When get_valid_option_values returns empty values, add the
19925 misspelling candidate.
19926
19927 2019-04-26 Jim Wilson <jimw@sifive.com>
19928
19929 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19930 parameter.
19931 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19932 Pass orig_mode to riscv_build_integer.
19933 (riscv_split_integer): Pass mode to riscv_move_integer.
19934 (riscv_legitimize_const_move): Likewise.
19935 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19936 promoted_mode. Replace force_reg call with code to load constant into
19937 promoted reg and then subreg it for the store.
19938 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19939 riscv_move_integer.
19940
19941 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19942
19943 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19944 corrupt codes.
19945
19946 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19947
19948 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19949 commentary about the encoding of precision.
19950
19951 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19952
19953 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19954 * config/i386/t-freebsd64: New file.
19955 * config.gcc: Add the t-freebsd64 for multilib support.
19956
19957 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19958
19959 * doc/extend.texi (vector_size): Add missing comma after @xref.
19960
19961 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19962
19963 * BASE-VER: Set to 10.0.0.
19964
19965 2019-04-25 Richard Biener <rguenther@suse.de>
19966
19967 PR middle-end/89765
19968 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19969 VIEW_CONVERT_EXPR into one operating on an rvalue.
19970
19971 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19972
19973 PR target/89929
19974 * config/i386/i386.c (feature_priority): Moved to file scope.
19975 (processor_features): Likewise.
19976 (processor_model): Likewise.
19977 (_arch_names_table): Likewise.
19978 (arch_names_table): Likewise.
19979 (_feature_list): Removed.
19980 (feature_list): Likewise.
19981 (_isa_names_table): Moved to file scope. Add priority.
19982 (isa_names_table): Likewise.
19983 (get_builtin_code_for_version): Replace feature_list with
19984 isa_names_table. Update error message for P_ZERO priority.
19985
19986 2019-04-25 Richard Biener <rguenther@suse.de>
19987
19988 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19989 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19990
19991 2019-04-24 Jeff Law <law@redhat.com>
19992
19993 PR tree-optimization/90037
19994 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19995 * passes.def: Replace all instance of phi-only cprop with the
19996 lattice propagator. Move propagation pass from after erroneous
19997 path isolation to before erroneous path isolation.
19998 * tree-ssa-phionlycprop.c: Remove.
19999
20000 2019-04-24 Richard Biener <rguenther@suse.de>
20001
20002 PR middle-end/90213
20003 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
20004 by size and BITS_PER_UNIT on poly-wide-ints.
20005
20006 2019-04-25 Richard Biener <rguenther@suse.de>
20007
20008 PR middle-end/90194
20009 * match.pd: Add pattern to simplify view-conversion of an
20010 empty constructor.
20011
20012 2019-04-24 Clement Chigot <clement.chigot@atos.net>
20013
20014 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
20015 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
20016 for Go on 32 bit AIX.
20017 * config/rs6000/aix72.h: Likewise.
20018
20019 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20020
20021 PR target/90193
20022 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
20023 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
20024
20025 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
20026
20027 PR target/89952
20028 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
20029 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
20030 for restored hard frame pointer.
20031 (s390_sched_dependencies_evaluation): Implement new target hook.
20032 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
20033
20034 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
20035
20036 * config/arc/arc-options.def: Fix typos and spelling mistakes.
20037 * config/arc/arc.c (arc_init): Cleanup warning message.
20038 (arc_override_options): Likewise.
20039
20040 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20041
20042 PR target/90187
20043 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
20044 a register if both if_true and if_false are MEMs.
20045
20046 PR tree-optimization/90208
20047 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
20048 after labels of new_bb, not before them.
20049
20050 PR tree-optimization/90211
20051 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
20052 which are not SSA_NAMEs.
20053
20054 2018-04-23 Sudakshina Das <sudi.das@arm.com>
20055
20056 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
20057 AArch64.
20058 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
20059
20060 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20061
20062 PR rtl-optimization/87979
20063 * modulo-sched.c (sms_schedule): Start ii value "mii" should
20064 not equal zero.
20065
20066 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20067
20068 PR rtl-optimization/84032
20069 * modulo-sched.c (ps_insn_find_column): Change condition so that
20070 branch will always be the last insn in a row inside partial
20071 schedule.
20072
20073 2019-04-23 Richard Biener <rguenther@suse.de>
20074
20075 PR debug/90131
20076 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
20077 dest_single_pred_p argument.
20078 (remove_forwarder_block): Adjust.
20079 (remove_forwarder_block_with_phi): Likewise.
20080
20081 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20082 Bernd Edlinger <bernd.edlinger@hotmail.de>
20083 Jakub Jelinek <jakub@redhat.com>
20084
20085 PR target/89093
20086 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
20087 if used with general-regs-only.
20088 (arm_conditional_register_usage): Don't add non-general regs if
20089 general-regs-only.
20090 (arm_valid_target_attribute_rec): Handle general-regs-only.
20091 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
20092 general-regs-only.
20093 (TARGET_HARD_FLOAT_SUB): Define.
20094 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
20095 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
20096 (TARGET_REALLY_IWMMXT2): Likewise.
20097 * config/arm/arm.opt: Add -mgeneral-regs-only.
20098 * doc/extend.texi: Document ARM general-regs-only target.
20099 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
20100
20101 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20102
20103 PR tree-optimization/90078
20104 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20105 checks for infinite_cost overflow.
20106
20107 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20108
20109 PR tree-optimization/90021
20110 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20111 and check univariate against it.
20112 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20113 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20114
20115 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20116
20117 PR target/90178
20118 Revert:
20119 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20120
20121 Revert the revert:
20122 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20123
20124 Revert:
20125 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20126
20127 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20128
20129 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20130
20131 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20132 names using operand format, rather than hard-wired.
20133 (speculation_barrier): Likewise.
20134
20135 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20136
20137 PR tree-optimization/88055
20138 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20139 (gen_one_condition): Use it if !HONOR_NANS.
20140
20141 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20142
20143 PR middle-end/90139
20144 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20145 assign_temp instead of gen_reg_rtx.
20146
20147 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20148
20149 PR translation/90118
20150 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20151 Add missing space before %<.
20152
20153 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20154
20155 PR rtl-optimization/87871
20156 * ira-lives.c (make_object_dead): Don't add conflicts to
20157 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20158
20159 2019-04-18 Martin Sebor <msebor@redhat.com>
20160
20161 PR middle-end/89797
20162 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20163 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20164 assuming type size fits in SHWI.
20165
20166 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20167
20168 PR ipa/85051
20169 * ipa-inline.c (flatten_function): New parameter UPDATE.
20170 (ipa_inline, early_inliner): Use it.
20171
20172 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20173
20174 * fold-const.c (int_const_binop): Return early on failure.
20175
20176 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20177
20178 PR middle-end/85164
20179 * combine.c (force_int_to_mode): Cast the argument rather than
20180 the result of known_alignment.
20181 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20182
20183 2019-04-18 Richard Biener <rguenther@suse.de>
20184
20185 PR debug/90131
20186 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20187 out from ...
20188 (remove_forwarder_block): ... here.
20189 (remove_forwarder_block_with_phi): Also move debug stmts here.
20190
20191 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20192
20193 PR translation/79183
20194 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20195 inform where appropriate.
20196
20197 2019-04-18 Richard Biener <rguenther@suse.de>
20198
20199 * tree.c (get_qualified_type): Put found type variants at the
20200 head of the variant list.
20201
20202 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20203
20204 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20205
20206 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20207
20208 PR target/90125
20209 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20210 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20211 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20212 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20213 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20214
20215 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20216
20217 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20218 even for allocno's with no conflicts.
20219 (print_conflicts): Print an extra newline.
20220
20221 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20222
20223 * auto-inc-dec.c (attempt_change): Set the alignment of the
20224 temporary memory to that of the original.
20225
20226 2019-04-17 Joao Moreira <jmoreira@suse.de>
20227
20228 * targhooks.c (default_print_patchable_function_entry): Emit
20229 __patchable_function_entries section with writable flags to allow
20230 relocation resolution.
20231
20232 2019-04-17 Jonny Grant <jg@jguk.org>
20233
20234 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20235
20236 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20237
20238 PR middle-end/90095
20239 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20240 on lowpart SUBREGs.
20241
20242 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20243
20244 * config/arc/arc.c (arc_init): Format diagnostic string.
20245 (arc_override_options): Likewise.
20246 (check_if_valid_regno_const): Likewise.
20247 (arc_reorg): Likewise.
20248
20249 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20250
20251 PR target/17108
20252 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20253 name.
20254 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20255 name.
20256 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20257 (*movdi_update1): Use Pmode.
20258 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20259 (movdi_<mode>_update_stack): Rename to ...
20260 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20261 use Pmode.
20262 (*movsi_update1): Use Pmode.
20263 (*movsi_update2): Use Pmode.
20264 (movsi_update): Rename to ...
20265 (movsi_<mode>_update): ... this. Use Pmode.
20266 (movsi_update_stack): Fix condition.
20267 (*movhi_update1): Use Pmode. Fix argument to
20268 avoiding_indexed_address_p.
20269 (*movhi_update2): Ditto.
20270 (*movhi_update3): Ditto.
20271 (*movhi_update4): Ditto.
20272 (*movqi_update1): Ditto.
20273 (*movqi_update2): Ditto.
20274 (*movqi_update3): Ditto.
20275 (*movsf_update1, *movdf_update1): Merge, rename to...
20276 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20277 avoiding_indexed_address_p. Add "size" attribute.
20278 (*movsf_update2, *movdf_update2): Merge, rename to...
20279 (*mov<mode>_update2): This. Ditto.
20280 (*movsf_update3): Use Pmode. Fix argument to
20281 avoiding_indexed_address_p.
20282 (*movsf_update4): Ditto.
20283 (allocate_stack): Simplify condition. Adjust pattern names.
20284
20285 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20286
20287 PR target/89093
20288 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20289 whitespace at the start of target attribute string.
20290
20291 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20292
20293 PR target/84369
20294 * config/rs6000/power9.md: Add store forwarding bypass.
20295
20296 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20297
20298 PR debug/89528
20299 * valtrack.c (dead_debug_insert_temp): Reset debug references
20300 to the return value of a call being removed.
20301
20302 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20303
20304 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20305 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20306 implement target hook.
20307 (arc_memory_move_cost): New function.
20308 (TARGET_REGISTER_MOVE_COST): Define.
20309 (TARGET_MEMORY_MOVE_COST): Likewise.
20310 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20311 (MEMORY_MOVE_COST): Likewise.
20312
20313 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20314
20315 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20316 (sibcall_value_insn): Likewise.
20317 * config/arc/constraints.md (Rs5): Remove.
20318
20319 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20320
20321 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20322 for last two fake registers.
20323 (arc_conditional_register_usage): Make sure fake frame and arg
20324 pointer regs are in general regs class.
20325 (FRAME_POINTER_MASK): Remove.
20326 (RETURN_ADDR_MASK): Remove.
20327 (arc_must_save_register): Use hard frame regnum.
20328 (frame_restore_reg): Use hard_frame_pointer_rtx.
20329 (arc_save_callee_saves): Likewise.
20330 (arc_restore_callee_saves): Likewise.
20331 (arc_save_callee_enter): Likewise.
20332 (arc_restore_callee_leave): Likewise.
20333 (arc_save_callee_milli): Likewise.
20334 (arc_eh_return_address_location): Likewise.
20335 (arc_check_multi): Use hard frame regnum.
20336 (arc_can_eliminate): Likewise.
20337 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20338 for register allocator.
20339 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20340 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20341 (FRAME_POINTER_REGNUM): Change it to a fake register.
20342 (HARD_FRAME_POINTER_REGNUM): Defined.
20343 (ARG_POINTER_REGNUM): Change it to a new fake register.
20344 (ELIMINABLE_REGS): Update.
20345 (REGISTER_NAMES): Update names.
20346 * config/arc/arc.md (LP_START): Remove.
20347 (LP_END): Likewise.
20348 (shift_si3_loop): Update pattern.
20349
20350 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20351
20352 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20353 to avoid delay slot scheduling.
20354 (arc_must_save_register): Don't save SP.
20355 * config/arc/arc.md (stack_tie): Remove.
20356 (UNSPEC_ARC_STKTIE): Likewise.
20357
20358 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20359 Shiva Chen <shiva0217@gmail.com>
20360
20361 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20362 code gen with large shift amount.
20363
20364 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20365
20366 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20367 subreg.
20368
20369 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20370
20371 PR target/90096
20372 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20373 print -m64/-mx32/-m32 if it is true.
20374 (ix86_debug_options, ix86_function_specific_print): Pass true as
20375 ADD_ABI_P to ix86_target_string.
20376 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20377 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20378 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20379
20380 PR rtl-optimization/90082
20381 * dce.c (can_delete_call): New function.
20382 (deletable_insn_p, mark_insn): Use it.
20383
20384 PR tree-optimization/90090
20385 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20386 throw internally.
20387 (is_division_by_square): Likewise. Formatting fix.
20388
20389 2019-04-16 Richard Biener <rguenther@suse.de>
20390
20391 PR tree-optimization/56049
20392 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20393 equality check if alias-set zero will prevail.
20394
20395 2019-04-15 Jeff Law <law@redhat.com>
20396
20397 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20398 size and alignment as unsigned.
20399
20400 2019-04-15 Richard Biener <rguenther@suse.de>
20401
20402 PR debug/90074
20403 * tree-loop-distribution.c (destroy_loop): Preserve correct
20404 debug info.
20405
20406 2019-04-15 Richard Biener <rguenther@suse.de>
20407
20408 PR tree-optimization/90071
20409 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20410 abnormal operands from def stmts.
20411
20412 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20413
20414 PR rtl-optimization/89794
20415 * combine.c (count_auto_inc): New function.
20416 (try_combine): Count how many auto_inc expressions there were in the
20417 original instructions. Ensure we have the same number in the new
20418 instructions. Remove the code that tried to ensure auto_inc side
20419 effects on i1 and i0 are not lost.
20420
20421 2019-04-15 Richard Biener <rguenther@suse.de>
20422
20423 PR ipa/88936
20424 * tree.h (auto_var_p): Declare.
20425 * tree.c (auto_var_p): New function, split out from ...
20426 (auto_var_in_fn_p): ... here.
20427 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20428 member.
20429 (new_var_info): Initialize it.
20430 (set_uids_in_ptset): Also set the shadow variable uid if required.
20431 (ipa_pta_execute): Postprocess points-to solutions assigning
20432 shadow variable uids for locals that may reach their containing
20433 function recursively.
20434 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20435 assert but instead check whether the points-to solution is
20436 a singleton.
20437
20438 2019-04-15 Martin Jambor <mjambor@suse.cz>
20439
20440 PR ipa/pr89693
20441 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20442 the thunk chain.
20443
20444 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20445
20446 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20447
20448 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20449 Kito Cheng <kito.cheng@gmail.com>
20450 Shiva Chen <shiva0217@gmail.com>
20451
20452 * config/nds32/nds32-md-auxiliary.c
20453 (nds32_legitimize_pic_address): Use new PIC pattern.
20454 (nds32_legitimize_tls_address): Use new TLS pattern.
20455 (nds32_output_symrel): New.
20456 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20457 (nds32_alloc_relax_group_id): Ditto.
20458 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20459 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20460 relax_group_id.
20461 (nds32_group_tls_insn): Ditto.
20462 (nds32_group_float_insns): Ditto.
20463 * config/nds32/nds32.md (tls_le): New.
20464 (sym_got): Ditto.
20465
20466 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20467
20468 * configure: Add nds32 target for dwarf2 debug_line checking.
20469 * configure.ac: Regenerated.
20470
20471 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20472
20473 PR lto/89358
20474 * ipa-devirt.c (skip_in_fields_list_p): New.
20475 (odr_types_equivalent_p): Use it.
20476
20477 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20478
20479 PR target/89093
20480 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20481 instead of strncmp when checking for thumb and arm. Formatting fixes.
20482
20483 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20484
20485 * doc/install.texi: Document --with-target-system-zlib.
20486
20487 2019-04-12 Martin Sebor <msebor@redhat.com>
20488
20489 PR c/88383
20490 PR c/89288
20491 PR c/89798
20492 PR c/89797
20493 * targhooks.c (default_vector_alignment): Avoid assuming
20494 argument fits in SHWI.
20495 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20496 a shift expression.
20497 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20498
20499 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20500
20501 PR rtl-optimization/89965
20502 * dce.c: Include rtl-iter.h.
20503 (struct check_argument_load_data): New type.
20504 (check_argument_load): New function.
20505 (find_call_stack_args): Check for loads from stack slots still tracked
20506 in sp_bytes and punt if any is found.
20507
20508 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20509
20510 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20511
20512 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20513 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20514
20515 2019-04-12 Martin Liska <mliska@suse.cz>
20516
20517 PR middle-end/89970
20518 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20519 in error message.
20520 (separate_attrs): Handle multiple 'default's.
20521 (expand_target_clones): Rework error handling code.
20522
20523 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20524
20525 PR target/87532
20526 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20527 mode of vector rather than mode of destination for move instruction.
20528 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20529 Use QI inner mode with V16QI vector mode.
20530
20531 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20532
20533 PR target/52726
20534 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20535 "invalid %%t operand" in output_operand_lossage message.
20536
20537 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20538
20539 * config/s390/predicates.md (permute_pattern_operand): New
20540 predicate.
20541 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20542 operand for the permute pattern.
20543 ("*vec_perm<mode>"): New insn definition.
20544 ("bswap<mode>"): Generate the permute pattern operand in the
20545 expander and perform the operand reloads for pre arch13 level
20546 already.
20547 ("*bswap<mode>_emu"): Rename to ...
20548 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20549 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20550 Add the USE operand for the permute pattern.
20551 ("*vec_set_bswap_vec<mode>"): Likewise.
20552
20553 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20554
20555 PR c/89946
20556 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20557 and gcc_unreachable if it fails, just call tree_to_uhwi which
20558 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20559 Start warning message with a lower-case letter. Formatting fixes.
20560
20561 PR rtl-optimization/90026
20562 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20563 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20564 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20565 in cfglayout mode, use emit_barrier_after_bb.
20566
20567 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20568
20569 PR rtl-optimization/87763
20570 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20571 New Instruction.
20572
20573 2019-04-11 Tom de Vries <tdevries@suse.de>
20574
20575 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20576 max macro using statement expression.
20577
20578 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20579
20580 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20581 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20582 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20583 read_only_private_data_section using xcoff_private_rodata_section_name.
20584 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20585
20586 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20587
20588 PR target/90016
20589 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20590
20591 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20592
20593 PR rtl-optimization/89965
20594 * dce.c (sp_based_mem_offset): New function.
20595 (find_call_stack_args): Use sp_based_mem_offset.
20596
20597 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20598
20599 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20600
20601 2019-04-11 Richard Biener <rguenther@suse.de>
20602
20603 PR tree-optimization/90020
20604 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20605 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20606 * tree-ssa-pre.c (compute_avail): Use it to not put
20607 possibly trapping references after a call that might not
20608 return into EXP_GEN.
20609 * gcse.c (compute_hash_table_work): Do not elide
20610 marking a block containing a call if the call might not
20611 return.
20612
20613 2019-04-11 Richard Biener <rguenther@suse.de>
20614
20615 PR tree-optimization/90018
20616 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20617 Test both SLP and interleaving variants.
20618
20619 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20620
20621 * config/s390/8561.md: New file.
20622 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20623 Add arch13 cpu model.
20624 * config/s390/s390-opts.h (enum processor_type): Likewise.
20625 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20626 (s390_get_unit_mask): Likewise.
20627 (s390_is_fpd): Likewise.
20628 (s390_is_fxd): Likewise.
20629 * config/s390/s390.h (s390_tune_attr): Likewise.
20630 * config/s390/s390.md: Include arch13 pipeline description.
20631 * config/s390/s390.opt: Add arch13.
20632
20633 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20634
20635 PR rtl-optimization/87763
20636 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20637 New prototype.
20638 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20639 New function.
20640 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20641 New instruction.
20642 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20643 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20644 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20645 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20646
20647 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20648
20649 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20650 "Although" in -fipa-icf documentation.
20651
20652 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20653 of using multiple -g options.
20654
20655 2019-04-10 Martin Liska <mliska@suse.cz>
20656
20657 PR gcov-profile/89959
20658 * doc/gcov.texi: Make documentation of -x option
20659 more precise.
20660
20661 2019-04-10 Richard Biener <rguenther@suse.de>
20662
20663 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20664 member.
20665 (DR_GROUP_SAME_DR_STMT): Remove.
20666 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20667 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20668 replace with assert.
20669 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20670 (vect_record_grouped_load_vectors): Remove unreachable code.
20671
20672 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20673
20674 PR target/90016
20675 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20676 obsolete reference to N.
20677
20678 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20679
20680 PR middle-end/90025
20681 * expr.c (store_expr): Set properly size on the MEM passed to
20682 clear_storage.
20683
20684 PR c++/90010
20685 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20686 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20687 translation is needed, and when translation is needed, only append
20688 ... if the string length is hostsz or more bytes long. Avoid using
20689 strncpy or strcat.
20690
20691 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20692
20693 PR target/90024
20694 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20695 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20696 into three.
20697 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20698 differences directly.
20699 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20700
20701 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20702
20703 PR translation/90011
20704 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20705 from diagnostics.
20706 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20707 diagnostics.
20708 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20709 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20710 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20711 trailing space from -gsplit-dwarf diagnostics.
20712
20713 PR tree-optimization/89998
20714 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20715 instead of integer_type_node if possible, don't add ranges if return
20716 type is not compatible with int.
20717 * gimple-fold.c (gimple_fold_builtin_sprintf,
20718 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20719 integer_type_node.
20720
20721 2019-04-09 Martin Liska <mliska@suse.cz>
20722
20723 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20724 * doc/install.texi: Document the new config.
20725
20726 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20727
20728 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20729 use gimple_expr_type for load and store calls. Skip over the
20730 condition argument in a conditional internal function.
20731 Protect use of TREE_INT_CST_LOW.
20732
20733 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20734
20735 PR target/90015
20736 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20737 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20738 trailing period from it too.
20739
20740 2019-04-08 wu yuan <wuyuan5@huawei.com>
20741
20742 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20743 * config/aarch64/aarch64.md : Add "tsv110.md"
20744 * config/aarch64/tsv110.md: New file.
20745
20746 2019-04-08 Richard Biener <rguenther@suse.de>
20747
20748 PR tree-optimization/90006
20749 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20750 calls like lrint.
20751
20752 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20753
20754 PR target/83033
20755 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20756 construction.
20757 (fma_root_node): Likewise.
20758 (func_fma_steering): Likewise.
20759
20760 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20761
20762 PR rtl-optimization/89865
20763 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20764
20765 PR rtl-optimization/89865
20766 * config/i386/i386.md
20767 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20768 numbers not to clash with the additional operands[4].
20769 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20770 with extra register copy in the middle.
20771
20772 2019-04-08 Martin Liska <mliska@suse.cz>
20773
20774 PR gcov-profile/89961
20775 * doc/gcov.texi: Document data_file.
20776 * gcov.c (generate_results): Add data_info into JSON output.
20777
20778 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20779
20780 PR tree-optimization/89725
20781 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20782 loop's chrec as invariant symbol.
20783 * tree-chrec.h (chrec_contains_symbols): New parameter.
20784 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20785 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20786 function of loops not in DDR's loop_nest.
20787 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20788
20789 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20790
20791 PR target/89623
20792 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20793 Mask.
20794
20795 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20796
20797 PR target/89945
20798 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20799 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20800
20801 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20802
20803 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20804 targetm.fixed_condition_code_regs.
20805
20806 2019-04-05 Richard Biener <rguenther@suse.de>
20807
20808 PR debug/89892
20809 PR debug/89905
20810 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20811 debug bind stmts but reset them if they are not valid at the
20812 destination.
20813
20814 2019-04-05 Martin Liska <mliska@suse.cz>
20815
20816 PR translation/89936
20817 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20818 order to wrap keywords or arguments.
20819 * collect2.c (main): Likewise.
20820 (scan_prog_file): Likewise.
20821 (scan_libraries): Likewise.
20822 * common/config/riscv/riscv-common.c
20823 (riscv_subset_list::parsing_subset_version): Likewise.
20824 (riscv_subset_list::parse_std_ext): Likewise.
20825 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20826 Likewise.
20827 * config/arm/arm.c (arm_option_override): Likewise.
20828 * config/cris/cris.c (cris_print_operand): Likewise.
20829 * config/darwin-c.c (darwin_pragma_options): Likewise.
20830 (darwin_pragma_unused): Likewise.
20831 (darwin_pragma_ms_struct): Likewise.
20832 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20833 * config/i386/i386.c (print_reg): Likewise.
20834 (ix86_print_operand): Likewise.
20835 * config/i386/xm-djgpp.h: Likewise.
20836 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20837 * config/m32c/m32c.c (m32c_option_override): Likewise.
20838 * config/msp430/msp430.c (msp430_option_override): Likewise.
20839 * config/nds32/nds32.c (nds32_option_override): Likewise.
20840 * config/nvptx/mkoffload.c (main): Likewise.
20841 * config/rx/rx.c (rx_print_operand): Likewise.
20842 (valid_psw_flag): Likewise.
20843 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20844 (vms_pragma_nomember_alignment): Likewise.
20845 (vms_pragma_extern_model): Likewise.
20846 * lto-wrapper.c (compile_offload_image): Likewise.
20847 * omp-offload.c (oacc_parse_default_dims): Likewise.
20848 * symtab.c (symtab_node::verify_base): Likewise.
20849 * tlink.c (recompile_files): Likewise.
20850 (start_tweaking): Likewise.
20851 * tree-profile.c (parse_profile_filter): Likewise.
20852
20853 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20854
20855 PR tree-optimization/89956
20856 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20857 multiple negates of the same value.
20858
20859 2019-04-04 Martin Sebor <msebor@redhat.com>
20860
20861 PR middle-end/89957
20862 PR middle-end/89911
20863 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20864 have the same precision since the function crashes otherwise.
20865 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20866 has non-zero arguments.
20867
20868 2019-04-04 Martin Sebor <msebor@redhat.com>
20869
20870 PR middle-end/89934
20871 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20872 out if the number of arguments is less than expected.
20873
20874 2019-04-04 Jeff Law <law@redhat.com>
20875
20876 PR rtl-optimization/89399
20877 * ree.c (combine_set_extension): Use single_set rather than
20878 digging into PATTERN for items on the candidate list.
20879 (combine_reaching_defs): Likewise.
20880
20881 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20882
20883 PR rtl-optimization/46590
20884 * loop-invariant.c (find_defs): Move df_remove_problem and
20885 df_process_deferred_rescans to move_invariants.
20886 Move df_live_add_problem and df_live_set_all_dirty calls
20887 to move_invariants.
20888 (move_invariants): Likewise.
20889 (move_loop_invariants): Likewise, making the df_live calls
20890 conditional on -O. Remove the problem again if we added it
20891 locally.
20892
20893 2019-04-03 qing zhao <qing.zhao@oracle.com>
20894
20895 PR tree-optimization/89730
20896 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20897 -flive-patching=inline-only-static.
20898 (can_inline_edge_by_limits_p): Add the checking for
20899 -flive-patching=inline-only-static and grant always_inline
20900 even when -flive-patching=inline-only-static is specified.
20901
20902 2019-04-03 Jeff Law <law@redhat.com>
20903
20904 PR rtl-optimization/81025
20905 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20906
20907 2019-04-03 Richard Biener <rguenther@suse.de>
20908
20909 PR tree-optimization/84101
20910 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20911 regs.h for hard_regno_nregs.
20912 (cfun_returns): New helper.
20913 (vect_model_store_cost): When vectorizing a store to a decl
20914 we return and the function ABI returns in a multi-reg location
20915 account for the possible spilling that will happen.
20916
20917 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20918
20919 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20920 displacement addresses for vector mode operands.
20921
20922 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20923
20924 * config/arc/arc.c (GMASK_LEN): Define.
20925 (arc_restore_callee_saves): Restore first blink when
20926 !optimize_size.
20927
20928 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20929
20930 * doc/extend.texi: Add deprecated comment on sign-return-address
20931 function attribute and add mbranch-protection.
20932 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20933
20934 2019-04-03 Richard Biener <rguenther@suse.de>
20935
20936 PR lto/89896
20937 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20938 the all target phony.
20939
20940 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20941
20942 PR target/89902
20943 PR target/89903
20944 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20945 Return false for variable DImode shifts.
20946 (dimode_scalar_chain::compute_convert_gain): Do not handle
20947 register count operand in variable DImode shifts.
20948 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20949 count argument of a variable shift instruction to a vector register.
20950 (dimode_scalar_chain::convert_reg): Remove support to convert
20951 count argument of a variable shift instruction.
20952
20953 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20954
20955 PR rtl-optimization/84206
20956 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20957 iterating over loop headers.
20958
20959 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20960
20961 PR rtl-optimization/85876
20962 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20963 beyond the original fence.
20964
20965 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20966
20967 * config.gcc: Mark spu* targets as deprecated/obsolete.
20968
20969 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20970
20971 * config/s390/s390-builtin-types.def: New builtin function type
20972 definitions. Remove unused types.
20973 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20974 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20975 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20976 overloaded builtins.
20977 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20978 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20979 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20980 (vec_double, vec_signed, vec_unsigned): Define to use the new
20981 overloaded builtins.
20982 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20983 Remove expanders.
20984
20985 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20986
20987 * config/s390/s390-builtin-types.def: New builtin function type
20988 definitions.
20989 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20990 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20991 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20992 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20993 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20994 constant definitions.
20995 * config/s390/vecintrin.h (vec_search_string_cc)
20996 (vec_search_string_until_zero_cc): New builtin name definitions.
20997 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20998 expanders.
20999 ("vec_vstrs<mode>"): New insn definition.
21000
21001 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21002
21003 * config/s390/s390-builtin-types.def: Add new builtin function
21004 types.
21005 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
21006 New overloaded builtins.
21007 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
21008 s390_vsrd.
21009 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
21010 (UNSPEC_VEC_SLDBYTE): ... this.
21011 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
21012 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
21013 definitions.
21014 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
21015 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
21016 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
21017
21018 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21019
21020 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
21021 New insn definition.
21022 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
21023 * config/s390/vector.md (V_HW_HSD): ... here.
21024
21025 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21026
21027 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
21028 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
21029 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
21030 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
21031 New insn definitions.
21032
21033 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21034
21035 * config/s390/s390-builtin-types.def: Add new builtin function type.
21036 * config/s390/s390-builtins.def: Add overloaded builtin
21037 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
21038 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
21039 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
21040 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
21041 ("eltswap<mode>"): New expander.
21042 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
21043 insn definitions.
21044
21045 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21046
21047 * config/s390/s390-builtin-types.def: Add new builtin function types.
21048 * config/s390/s390-builtins.def: Add overloaded builtin
21049 s390_vec_revb. Add low-level builtins for vlbr and vstbr
21050 instructions.
21051 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
21052 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
21053 ("bswap<mode>"): New expander.
21054 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
21055
21056 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21057
21058 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
21059 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
21060 vector builtin version number in __VEC__.
21061
21062 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21063
21064 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
21065 iterators.
21066 (SFSI): New mode attribute.
21067 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
21068 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
21069 rename to ...
21070 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
21071 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
21072 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
21073 ("floatsi<mode>2"): Add wcefb instruction.
21074
21075 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21076
21077 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
21078 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
21079 mode iterators.
21080 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
21081 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
21082 support 32 bit fp-int conversions. Rename to ...
21083 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21084 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21085 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
21086 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
21087 ... to these.
21088
21089 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21090
21091 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
21092 if-then-else constructs if we can use the select instruction.
21093 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
21094
21095 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21096
21097 * config/s390/s390.md ("*popcountdi_arch13_cc")
21098 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
21099 definition.
21100 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21101 Append _z196 to make it ...
21102 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21103 ("popcounthi2_z196"): ... this.
21104 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21105 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21106
21107 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21108
21109 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21110 certain compares for arch13 in order to make use of the condition
21111 code result produced by the new instructions.
21112 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21113 nxrk, and nxgrk instruction patterns.
21114 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21115 (inv_no): Add new code iterator together with some attributes.
21116 ("*andc_split_<mode>"): Disable splitter for arch13.
21117 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21118 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21119 ("*<ANDOR:bitops_name>c<GPR:mode>")
21120 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21121 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21122 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21123 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21124
21125 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21126
21127 * common/config/s390/s390-common.c (processor_flags_table): New
21128 entry for arch13.
21129 * config.gcc: Support arch13 with the --with-arch= configure flag.
21130 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21131 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21132 * config/s390/s390.c (s390_get_sched_attrmask)
21133 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21134 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21135 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21136 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21137 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21138 definitions.
21139 * config/s390/s390.opt: Support arch13 as processor type in
21140 command line options.
21141
21142 2019-04-02 Martin Liska <mliska@suse.cz>
21143
21144 PR translation/89912
21145 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21146 Fix param description of graphite-max-arrays-per-scop.
21147
21148 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21149
21150 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21151 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21152 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21153
21154 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21155
21156 PR rtl-optimization/85412
21157 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21158 sel_sched_region_1, not after.
21159
21160 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21161
21162 PR rtl-optimization/86928
21163 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21164 compute_live if necessary.
21165 (sel_redirect_edge_and_branch): Likewise.
21166
21167 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21168
21169 PR rtl-optimization/89865
21170 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21171 register if it is a part of small class.
21172
21173 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21174
21175 PR rtl-optimization/87273
21176 * sel-sched-ir.c (merge_fences): Remove assert.
21177
21178 2019-04-01 Richard Biener <rguenther@suse.de>
21179
21180 PR tree-optimization/46590
21181 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21182 (dom_walker::m_reachability): Add in place of...
21183 (dom_walker::m_skip_unreachable_blocks): ...this.
21184 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21185 Move complex initialization ...
21186 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21187 lazily and initialize edge flags on each invocation.
21188 (dom_walker::bb_reachable): Use m_reachability.
21189
21190 2019-04-01 Martin Liska <mliska@suse.cz>
21191
21192 PR driver/89861
21193 * opt-suggestions.c (option_proposer::build_option_suggestions):
21194 Add variant without any argument in order to provide better
21195 hints.
21196
21197 2019-04-01 Richard Biener <rguenther@suse.de>
21198
21199 PR c/71598
21200 * gimple.c: Include langhooks.h.
21201 (gimple_get_alias_set): Treat enumeral types as the underlying
21202 integer type.
21203
21204 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21205 Eric Botcazou <ebotcazou@adacore.com>
21206
21207 PR rtl-optimization/89862
21208 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21209 that operates on the full registers for WORD_REGISTER_OPERATIONS
21210 architectures.
21211
21212 2019-03-29 Jim Wilson <jimw@sifive.com>
21213
21214 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21215 Clear MASK_RVC and then set if C subset supported.
21216
21217 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21218
21219 PR c/89872
21220 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21221 non-addressable complit into its initializer if it is volatile.
21222
21223 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21224
21225 * opts-common.c (integral_argument): Set errno properly in one case.
21226
21227 2019-03-29 Martin Liska <mliska@suse.cz>
21228
21229 * doc/invoke.texi: Remove -Wchkp from documentation.
21230
21231 2019-03-29 Martin Liska <mliska@suse.cz>
21232
21233 * dbgcnt.c (print_limit_reach): New function.
21234 (dbg_cnt): Use it.
21235
21236 2019-03-29 Martin Liska <mliska@suse.cz>
21237
21238 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21239 (dbg_cnt_process_opt): Parse first tokens aas
21240 dbg_cnt_process_single_pair is also using strtok.
21241
21242 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21243
21244 PR rtl-optimization/87485
21245 * function.c (expand_function_end): Move stack_protect_epilogue
21246 before loading of return value into hard register(s).
21247
21248 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21249
21250 PR middle-end/89621
21251 * tree-inline.h (struct copy_body_data): Add
21252 dont_remap_vla_if_no_change flag.
21253 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21254 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21255 and remap_type_2 returns false.
21256 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21257 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21258 only from where it is copied to nested contexts.
21259
21260 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21261
21262 PR target/89865
21263 * config/i386/i386.md (RMW operation with LEA peephole):
21264 Use LEAMODE mode attribute instead of SWI mode iterator for
21265 LEA pattern.
21266
21267 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21268
21269 PR target/89848
21270 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21271 Also process XEXP (src, 0) of a shift insn.
21272
21273 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21274
21275 PR middle-end/89725
21276 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21277 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21278
21279 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21280
21281 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21282 test.
21283 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21284 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21285 immediately after first one with df_analyze in between, but rather
21286 process all bbs, queueing ones that need second pass in a worklist,
21287 df_analyze, process queued debug insn changes and if second pass is
21288 needed, process bbs from worklist, df_analyze, process queued debug
21289 insns again.
21290
21291 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21292 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21293 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21294
21295 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21296
21297 PR c/79022
21298 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21299 definition.
21300
21301 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21302
21303 PR target/85667
21304 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21305 function for 32-bit MS_ABI.
21306 (function_value_ms_32): New function.
21307
21308 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21309
21310 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21311 (movdi): Call gen_movdi_symbol_save_scc.
21312 (gen_movdi_symbol_save_scc): New insn and split.
21313
21314 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21315
21316 PR rtl-optimization/89313
21317 * function.c (matching_constraint_num): New static function.
21318 (match_asm_constraints_1): Use it. Fixup white space and comment.
21319 Don't replace inputs with non-matching constraints which conflict
21320 with early clobber outputs.
21321
21322 2019-03-27 Jeff Law <law@redhat.com>
21323
21324 PR rtl-optimization/87761
21325 PR rtl-optimization/89826
21326 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21327 slightly later.
21328 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21329 note problem to get REG_DEAD/REG_UNUSED notes updated.
21330
21331 2019-03-27 Richard Biener <rguenther@suse.de>
21332
21333 PR tree-optimization/89463
21334 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21335 queue edges to remove.
21336 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21337 dead stmts. Delay edge removal until PHIs are removed to
21338 make debug-stmt creation not confused by seemingly degenerate
21339 PHIs.
21340
21341 2019-03-27 Alan Modra <amodra@gmail.com>
21342
21343 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21344 throughout file.
21345 * config/rs6000/darwin.h: Likewise.
21346 * config/rs6000/rs6000.c: Likewise.
21347
21348 2019-03-27 Alan Modra <amodra@gmail.com>
21349
21350 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21351 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21352
21353 2019-03-26 Andrew Waterman <andrew@sifive.com>
21354 Jim Wilson <jimw@sifive.com>
21355
21356 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21357 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21358 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21359 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21360 (generic_alu): Add auipc to type list.
21361 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21362 (riscv_microarchitecture): Declare.
21363 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21364 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21365 field.
21366 (riscv_microarchitecture): New.
21367 (sifive_7_tune_info): New.
21368 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21369 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21370 entries.
21371 (riscv_store_data_bypass_p): New.
21372 (riscv_option_override): Set riscv_microarchitecture from
21373 cpu->microarchitecture.
21374 * config/riscv/riscv.md: Include sifive-7.md.
21375 (type): Add auipc.
21376 (tune): New.
21377 (auipc<mode>): Change type to auipc.
21378 (restore_stack_nonlocal): New.
21379 * config/riscv/sifive-7.md: New.
21380 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21381
21382 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21383
21384 PR target/89827
21385 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21386 Also process XEXP (src, 0) of a shift insn.
21387
21388 2019-03-26 Richard Biener <rguenther@suse.de>
21389
21390 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21391 (copy_debug_stmt): Likewise.
21392 (expand_call_inline): Likewise.
21393 (copy_bb): Avoid redundant lookup & set of gimple_block.
21394 * gimple-low.c (lower_gimple_return): Likewise.
21395 (lower_builtin_setjmp): Likewise.
21396
21397 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21398
21399 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21400 is constant 0, turn into static const data member initialized to false.
21401 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21402 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21403
21404 2019-03-26 Jason Merrill <jason@redhat.com>
21405 Jakub Jelinek <jakub@redhat.com>
21406
21407 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21408 method.
21409 (mem_alloc_description::release_object_overhead): Fix comment typos.
21410 * hash-table.h (hash_table::~hash_table): Call
21411 release_instance_overhead only if m_entries is non-NULL, otherwise
21412 call unregister_descriptor.
21413
21414 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21415
21416 PR tree-optimization/81740
21417 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21418 In case of outer loop vectorization, check for backward dependence
21419 at the inner loop if outer loop dependence is reversed.
21420
21421 2019-03-26 Alan Modra <amodra@gmail.com>
21422
21423 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21424 rs6000_vector_mem init. Correct wI and wJ comment.
21425
21426 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21427
21428 PR rtl-optimization/88347
21429 PR rtl-optimization/88423
21430 * sched-deps.c (sched_analyze_insn): Take into account that for
21431 tablejumps the barrier appears after a label and a jump_table_data.
21432
21433 2019-03-25 Martin Sebor <msebor@redhat.com>
21434
21435 PR c/89812
21436 * c-common.c (check_user_alignment): Rename local. Correct maximum
21437 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21438 convert it to UHWI when it fits.
21439
21440 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21441
21442 PR debug/86964
21443 * dwarf2out.c (premark_used_variables): New function.
21444 (prune_unused_types_walk): Do not mark not premarked external
21445 variables.
21446 (prune_unused_types): Call premark_used_variables.
21447
21448 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21449
21450 PR rtl-optimization/89676
21451 * lra-constraints.c (curr_insn_transform): Do match reload for
21452 early clobbers when the match was successful only for different
21453 registers.
21454
21455 2019-03-25 Martin Sebor <msebor@redhat.com>
21456
21457 * doc/extend.texi (Common Type Attributes): Document vector_size.
21458 (Common Variable Attributes): Mention size constraint. Correct
21459 quoting and typos.
21460 (Vector Extensions): Use @dfn when defining bas type. Clarify
21461 base type and size constraints.
21462
21463 2019-03-25 Richard Biener <rguenther@suse.de>
21464
21465 PR tree-optimization/89789
21466 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21467 changes from non-undefined back to undefined.
21468
21469 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21470
21471 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21472 heap string and a gc string, but since this variable is unknown to
21473 ggc the gc string might get reused and corrupted. Fixed by always
21474 using a heap string.
21475
21476 2019-03-25 Richard Biener <rguenther@suse.de>
21477
21478 PR tree-optimization/89779
21479 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21480 to remove IV defs, delay actual removal.
21481 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21482 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21483 very end, properly also reset loop control IV information.
21484
21485 2019-03-25 Richard Biener <rguenther@suse.de>
21486
21487 PR tree-optimization/89802
21488 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21489 move EH data to folded stmt.
21490
21491 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21492
21493 * config/s390/s390-builtin-types.def: Remove few unused types and
21494 fix sort order for others.
21495
21496 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21497
21498 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21499 expected and found types with -mdebug during builtin matching.
21500
21501 2019-03-25 Richard Biener <rguenther@suse.de>
21502
21503 PR middle-end/89790
21504 * fold-const.c (operand_equal_p): Revert last change with
21505 updated comment.
21506
21507 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21508
21509 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21510 notes for the result of the __tls_get_addr calls.
21511 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21512
21513 2019-03-24 Jeff Law <law@redhat.com>
21514
21515 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21516
21517 PR rtl-optimization/87761
21518 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21519 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21520 as needed.
21521 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21522 rescans. Reprocess blocks as needed, calling df_analyze before
21523 reprocessing. Always call df_analyze before fixing up debug bind
21524 insns.
21525
21526 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21527
21528 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21529 big endian.
21530
21531 2019-03-22 Andrew Pinski <apinski@marvell.com>
21532
21533 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21534 attrribute for uxtw.
21535
21536 2019-03-26 Jeff Law <law@redhat.com>
21537
21538 PR rtl-optimization/87761
21539 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21540 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21541 (mips_split_move): Accept new INSN argument. Try to forward SRC
21542 into the next instruction.
21543 (mips_split_move_insn): Pass INSN through to mips_split_move.
21544
21545 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21546
21547 PR rtl-optimization/89676
21548 * lra-constraints.c (curr_insn_transform): Do match reload for
21549 early clobbers even if the match was successful.
21550
21551 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21552
21553 PR c++/87481
21554 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21555
21556 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21557
21558 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21559
21560 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21561
21562 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21563 <avx512>_fmsub_<mode>_mask3<round_name>,
21564 <avx512>_fnmadd_<mode>_mask3<round_name>,
21565 <avx512>_fnmsub_<mode>_mask3<round_name>,
21566 avx512f_vmfmadd_<mode>_mask3<round_name>,
21567 avx512f_vmfmsub_<mode>_mask3<round_name>,
21568 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21569 instead of register_operand and %v instead of v for match_operand 1.
21570 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21571 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21572 <round_nimm_predicate> instead of register_operand and %v instead of v
21573 for match_operand 1.
21574
21575 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21576 <avx512>_fmadd_<mode>_mask3<round_name>,
21577 <avx512>_fmsub_<mode>_mask<round_name>,
21578 <avx512>_fmsub_<mode>_mask3<round_name>,
21579 <avx512>_fnmadd_<mode>_mask<round_name>,
21580 <avx512>_fnmadd_<mode>_mask3<round_name>,
21581 <avx512>_fnmsub_<mode>_mask<round_name>,
21582 <avx512>_fnmsub_<mode>_mask3<round_name>,
21583 <avx512>_fmaddsub_<mode>_mask<round_name>,
21584 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21585 <avx512>_fmsubadd_<mode>_mask<round_name>,
21586 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21587 <round_nimm_predicate> instead of nonimmediate_operand.
21588 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21589 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21590 Use register_operand instead of <round_nimm_predicate> for the
21591 operand that needs to match output.
21592 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21593 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21594 Likewise. Formatting fixes.
21595
21596 PR target/89784
21597 * config/i386/i386.c (enum ix86_builtins): Remove
21598 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21599 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21600 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21601 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21602 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21603 __builtin_ia32_vfmsubss3_mask3): New builtins.
21604 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21605 avx512f_vmfmadd_<mode>_mask3<round_name>,
21606 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21607 *avx512f_vmfmsub_<mode>_mask<round_name>,
21608 avx512f_vmfmsub_<mode>_mask3<round_name>,
21609 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21610 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21611 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21612 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21613 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21614 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21615 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21616 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21617 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21618 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21619 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21620 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21621 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21622 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21623 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21624 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21625 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21626 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21627 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21628 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21629 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21630 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21631 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21632 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21633 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21634 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21635 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21636 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21637
21638 2019-03-21 Martin Sebor <msebor@redhat.com>
21639
21640 PR tree-optimization/89350
21641 * builtins.c (compute_objsize): Also ignore offsets whose upper
21642 bound is negative.
21643 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21644 (builtin_memref::builtin_memref): Initialize new member.
21645 Allow EXPR to be null.
21646 (builtin_memref::extend_offset_range): Replace local with a member.
21647 Avoid assuming pointer offsets are unsigned.
21648 (builtin_memref::set_base_and_offset): Determine base object
21649 before computing offset range.
21650 (builtin_access::builtin_access): Handle memset.
21651 (builtin_access::generic_overlap): Replace local with a member.
21652 (builtin_access::strcat_overlap): Same.
21653 (builtin_access::overlap): Same.
21654 (maybe_diag_overlap): Same.
21655 (maybe_diag_access_bounds): Same.
21656 (wrestrict_dom_walker::check_call): Handle memset.
21657 (check_bounds_or_overlap): Same.
21658
21659 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21660 Jakub Jelinek <jakub@redhat.com>
21661
21662 PR lto/89692
21663 * tree.c (fld_type_variant, fld_incomplete_type_of,
21664 fld_process_array_type): Call fld->pset.add and don't call
21665 add_tree_to_fld_list if it returns true.
21666 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21667 non-marked types from TYPE_NEXT_VARIANT list.
21668 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21669
21670 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21671
21672 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21673 to false, if true, don't alloc_entries during construction, but defer
21674 it to the first method that needs m_entries allocated.
21675 (hash_table::hash_table, hash_table::~hash_table,
21676 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21677 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21678 hash_table::clear_slot, hash_table::traverse_noresize,
21679 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21680 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21681 false.
21682 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21683 NO_INSERT instead of find_with_hash.
21684 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21685 hash_set::m_table): Add Lazy to template params of hash_table.
21686 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21687 * attribs.c (test_attribute_exclusions): Likewise.
21688 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21689 hash_set. Add tests for hash_set with Lazy = true.
21690
21691 2019-03-21 Richard Biener <rguenther@suse.de>
21692
21693 PR tree-optimization/89779
21694 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21695 checks with respect to released SSA names now having error_mark_node
21696 type.
21697 * fold-const.c (operand_equal_p): Likewise.
21698
21699 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21700
21701 PR target/89775
21702 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21703 available to ...
21704 (s390_optimize_register_info): Use global_not_special_regno_p to
21705 check for global regs.
21706
21707 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21708
21709 PR target/89752
21710 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21711 update this_alternative nor this_alternative_set.
21712
21713 2019-03-19 Jim Wilson <jimw@sifive.com>
21714
21715 PR target/89411
21716 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21717 align, size, offset. Use them to handle a BLKmode reference. Update
21718 comment.
21719 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21720
21721 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21722
21723 PR rtl-optimization/89768
21724 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21725 instead of GEN_INT.
21726 (unroll_loop_runtime_iterations): Likewise.
21727
21728 2019-03-19 Martin Sebor <msebor@redhat.com>
21729
21730 PR tree-optimization/89644
21731 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21732 rather than endptr as an indicator of nul-termination.
21733
21734 PR tree-optimization/89644
21735 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21736 arrays in determining sequence sizes in strncpy and stpncpy.
21737
21738 2019-03-19 Martin Liska <mliska@suse.cz>
21739
21740 PR middle-end/89737
21741 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21742 unlikely_edges if there's an edge that belongs to both these sets.
21743
21744 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21745
21746 PR target/89746
21747 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21748 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21749 go via a stack temporary.
21750
21751 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21752
21753 PR target/89378
21754 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21755 instead of gen_rtx_SUBREG.
21756 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21757
21758 2019-03-19 Richard Biener <rguenther@suse.de>
21759
21760 PR debug/88389
21761 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21762
21763 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21764
21765 PR lto/87809
21766 PR lto/89335
21767 * tree.c (free_lang_data_in_decl): Do not free context of C++
21768 destrutors.
21769
21770 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21771
21772 PR target/89506
21773 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21774 subs for the first alternative except when operands[3] is 1.
21775
21776 PR target/89752
21777 * gimplify.c (gimplify_asm_expr): For output argument with
21778 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21779 diagnose error.
21780
21781 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21782
21783 PR rtl-optimization/89753
21784 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21785 explicit unrolling factor even more robust.
21786
21787 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21788
21789 PR target/89726
21790 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21791 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21792 signed zeros, do another copysign after the compensation.
21793
21794 2019-03-18 Martin Sebor <msebor@redhat.com>
21795
21796 PR tree-optimization/89720
21797 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21798 more conservatively, the same as anti-range.
21799
21800 2019-03-18 Richard Biener <rguenther@suse.de>
21801
21802 PR middle-end/88945
21803 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21804 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21805 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21806 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21807
21808 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21809
21810 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21811 Extend queue to 1024 entries.
21812 Add "consumed" field.
21813 (gomp_print_output): Remove print_index parameter.
21814 Add final parameter.
21815 Change limit to unsigned.
21816 Use consumed field to implement circular buffer.
21817 Detect interrupted print in final pass.
21818 Flush output at the end.
21819 (run): Update gomp_print_output usage.
21820 (main): Initialize kernargs->output_data.consumed.
21821
21822 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21823
21824 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21825 calculation of the minimum number of scalar iterations for
21826 fully-predicated loops.
21827
21828 2019-03-18 Martin Jambor <mjambor@suse.cz>
21829
21830 PR tree-optimization/89546
21831 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21832 any propagation to its children took place.
21833
21834 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21835
21836 PR target/89627
21837 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21838 parameter, and make use of it.
21839 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21840
21841 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21842
21843 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21844 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21845 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21846 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21847 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21848 match what the ops is doing.
21849 (push_multi_fp_blink): Likewise.
21850 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21851 compiling for size and elf target.
21852 (arc_save_callee_enter): Adjust note to match what enter/leave
21853 operation does.
21854
21855 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21856
21857 * config/arc/arc.md (tst_movb): Fix constraint.
21858
21859 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21860
21861 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21862
21863 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21864
21865 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21866 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21867 reg_alloc_order references.
21868 (size_alloc_order): Define.
21869 (arc_adjust_reg_alloc_order): New function.
21870 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21871 order.
21872 (ADJUST_REG_ALLOC_ORDER): Define.
21873 (HONOR_REG_ALLOC_ORDER): Likewise.
21874
21875 2019-03-18 Richard Biener <rguenther@suse.de>
21876
21877 PR target/87561
21878 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21879 loads and stores a bit more.
21880
21881 2019-03-18 Richard Biener <rguenther@suse.de>
21882
21883 PR target/87561
21884 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21885 load pessimization to stores as well.
21886
21887 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21888
21889 PR middle-end/86979
21890 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21891 successor, use NULL as its av set.
21892
21893 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21894
21895 PR rtl-optimization/89721
21896 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21897
21898 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21899
21900 PR target/87532
21901 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21902 When handling vec_extract, use modular arithmetic to allow
21903 constant selectors greater than vector length.
21904 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21905 V1TImode vectors to have constant selector values greater than 0.
21906 Use modular arithmetic to compute vector index.
21907 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21908 index for in-memory vectors. Correct code generation for
21909 in-register vectors.
21910 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21911 compute index.
21912
21913 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21914
21915 PR c++/88534
21916 PR c++/88537
21917 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21918 VAR_DECL args.
21919
21920 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21921
21922 PR c++/89709
21923 * tree.c (inchash::add_expr): Strip any location wrappers.
21924 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21925 after hash verification.
21926
21927 PR debug/89704
21928 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21929 SIGN_EXTEND and ZERO_EXTEND.
21930
21931 2019-03-14 Jason Merrill <jason@redhat.com>
21932 Jakub Jelinek <jakub@redhat.com>
21933
21934 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21935 than if is_empty (*slot).
21936 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21937 existing elt and for elt removal.
21938 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21939 of already removed elt.
21940
21941 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21942
21943 PR target/89650
21944 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21945 REG_EH_REGION note.
21946
21947 2019-03-14 Martin Liska <mliska@suse.cz>
21948
21949 PR other/89712
21950 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21951
21952 2019-03-14 Richard Biener <rguenther@suse.de>
21953
21954 PR target/89711
21955 * config/i386/i386.c (make_resolver_func): Properly set
21956 DECL_CONTEXT on the RESULT_DECL.
21957 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21958
21959 2019-03-14 Richard Biener <rguenther@suse.de>
21960
21961 * gimple-pretty-print.c: Include cfgloop.h.
21962 (dump_gimple_phi): Adjust.
21963 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21964 (pp_cfg_jump): Adjust.
21965 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21966 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21967 (lower_phi_internal_fn): Remove.
21968 (verify_gimple_call): Remove IFN_PHI special-casing.
21969 (dump_function_to_file): Dump IL state.
21970 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21971 done to deal with PHI nodes being present in non-SSA state.
21972
21973 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21974
21975 PR ipa/89684
21976 * multiple_target.c (create_dispatcher_calls): Change
21977 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21978 In the node->iterate_referring loop, push *ref rather than ref, call
21979 ref->remove_reference () and always pass 0 to iterate_referring.
21980
21981 PR rtl-optimization/89679
21982 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21983 would contain a paradoxical SUBREG.
21984
21985 2019-03-14 Richard Biener <rguenther@suse.de>
21986
21987 PR tree-optimization/89710
21988 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21989 safe_dyn_cast.
21990
21991 2019-03-14 Martin Liska <mliska@suse.cz>
21992
21993 * coverage.c (coverage_begin_function): Stream also
21994 end_column.
21995 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21996 documentation about function declaration location.
21997 * gcov-dump.c (tag_function): Print whole range
21998 of function declaration.
21999 * gcov.c (struct function_info): Add end_column field.
22000 (function_info::function_info): Initialize it.
22001 (output_json_intermediate_file): Output {start,end}_column
22002 fields.
22003 (read_graph_file): Read end_column.
22004
22005 2019-03-14 Richard Biener <rguenther@suse.de>
22006
22007 PR middle-end/89698
22008 * fold-const.c (operand_equal_p): For INDIRECT_REF check
22009 that the access types are similar.
22010
22011 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22012
22013 PR tree-optimization/89703
22014 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
22015 aren't compatible also with builtin_decl_explicit. Check pure
22016 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
22017 and BUILT_IN_STPNCPY{,_CHK}.
22018
22019 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
22020
22021 PR target/89523
22022 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
22023 addr32 prefix to VSIB address for X32.
22024 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
22025 "%M2" to opcode.
22026 (*avx512pf_gatherpf<mode>df_mask): Likewise.
22027 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
22028 (*avx512pf_scatterpf<mode>df_mask): Likewise.
22029 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
22030 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
22031 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
22032 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
22033 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
22034 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
22035 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
22036 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
22037 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
22038 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
22039 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
22040 (*avx512f_scatterdi<mode>): Likewise.
22041
22042 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
22043
22044 PR target/85860
22045 * lra-constraints.c (inherit_in_ebb): Update
22046 potential_reload_hard_regs along with live_hard_regs.
22047
22048 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22049
22050 PR debug/89498
22051 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
22052 DWARF_OFFSET_SIZE.
22053 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
22054
22055 2019-03-13 Martin Sebor <msebor@redhat.com>
22056
22057 PR tree-optimization/89662
22058 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
22059 has a size.
22060
22061 2019-03-13 Richard Biener <rguenther@suse.de>
22062
22063 PR middle-end/89677
22064 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
22065 throw FP expressions at tree-affine.
22066
22067 2019-03-14 Richard Biener <rguenther@suse.de>
22068
22069 * tree-pretty-print.c (dump_generic_node): For -gimple properly
22070 dump negative integer constants using _Literal (type) -num.
22071
22072 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22073
22074 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
22075 nonlocal_value member.
22076
22077 PR middle-end/88588
22078 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
22079 (ipa_simd_modify_function_body): Handle PHIs.
22080
22081 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22082
22083 * config/s390/s390.c (s390_option_override_internal): Use more
22084 aggressive inlining parameters.
22085
22086 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22087
22088 * config/s390/3906.md: New file.
22089 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22090 (LONGRUNNING_THRESHOLD): Remove.
22091 (MAX_SCHED_MIX_SCORE): Decrease.
22092 (MAX_SCHED_MIX_DISTANCE): Decrease.
22093 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
22094 (struct s390_sched_state): New struct to hold scheduling state.
22095 (S390_SCHED_STATE_NORMAL): Remove.
22096 (S390_SCHED_STATE_CRACKED): Remove.
22097 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
22098 (s390_get_sched_attrmask): Use new attribute.
22099 (s390_get_unit_mask): Use new units.
22100 (s390_is_fpd): New function.
22101 (s390_is_fxd): New function.
22102 (s390_is_longrunning): New function.
22103 (s390_sched_score): Use new functions.
22104 (s390_sched_reorder): Likewise.
22105 (s390_sched_variable_issue): Rework and use new functions.
22106 (s390_sched_init): Use new functions.
22107 * config/s390/s390.h (s390_tune_attr): Add z14.
22108 * config/s390/s390.md: Add z14.
22109
22110 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22111
22112 * config/s390/2964.md: Update pipeline description.
22113 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22114 (LONGRUNNING_THRESHOLD): Remove.
22115 (LATENCY_FACTOR): Remove.
22116 (s390_get_unit_mask): Add unit.
22117 (s390_sched_score): Use fxd/fpd.
22118 (s390_sched_variable_issue): Use fxd/fpd.
22119
22120 2019-03-12 Martin Liska <mliska@suse.cz>
22121
22122 * config/i386/i386.c: Reword an error message.
22123
22124 2019-03-12 Martin Jambor <mjambor@suse.cz>
22125
22126 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22127 terminate with newline.
22128
22129 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22130
22131 PR target/52726
22132 * config/s390/s390.md (tabort): Use %wd instead of
22133 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22134 letters and periods.
22135 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22136 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22137 's with %< and %>.
22138
22139 PR middle-end/89663
22140 * builtins.c (expand_builtin_int_roundingfn,
22141 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22142 gcc_unreachable if validate_arglist fails.
22143
22144 2019-03-12 Richard Biener <rguenther@suse.de>
22145
22146 PR tree-optimization/89664
22147 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22148 free the occurance tree after the early out.
22149
22150 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22151
22152 PR middle-end/89655
22153 PR bootstrap/89656
22154 * vr-values.c (vr_values::update_value_range): If
22155 old_vr->varying_p (), don't update it, make new_vr also VARYING
22156 and return false.
22157
22158 2019-03-11 Martin Liska <mliska@suse.cz>
22159
22160 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22161 Fix double string quoting.
22162
22163 2019-03-11 Martin Liska <mliska@suse.cz>
22164
22165 * collect-utils.c (collect_wait): Wrap apostrophes
22166 in gcc internal format with %'.
22167 * collect2.c (main): Likewise.
22168 (scan_prog_file): Likewise.
22169 (scan_libraries): Likewise.
22170 * config/i386/i386.c (ix86_expand_call): Likewise.
22171 (ix86_handle_interrupt_attribute): Likewise.
22172 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22173 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22174 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22175 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22176 * symtab.c (symtab_node::verify_base): Likewise.
22177 * tree-cfg.c (verify_gimple_label): Likewise.
22178 * tree.c (verify_type_variant): Likewise.
22179
22180 2019-03-11 Martin Liska <mliska@suse.cz>
22181
22182 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22183 in a string format message and fix GNU coding style.
22184 (expand_builtin_set_thread_pointer): Likewise.
22185 * common/config/aarch64/aarch64-common.c
22186 (aarch64_rewrite_selected_cpu): Likewise.
22187 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22188 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22189 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22190 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22191 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22192 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22193 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22194 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22195 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22196 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22197 Likewise.
22198 * common/config/riscv/riscv-common.c
22199 (riscv_subset_list::parsing_subset_version): Likewise.
22200 (riscv_subset_list::parse_std_ext): Likewise.
22201 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22202 (riscv_subset_list::parse): Likewise.
22203 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22204 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22205 (aarch64_override_options_internal): Likewise.
22206 (aarch64_validate_mcpu): Likewise.
22207 (aarch64_validate_march): Likewise.
22208 (aarch64_validate_mtune): Likewise.
22209 (aarch64_override_options): Likewise.
22210 * config/alpha/alpha.c (alpha_option_override): Likewise.
22211 * config/arc/arc.c (arc_init): Likewise.
22212 (parse_mrgf_banked_regs_option): Likewise.
22213 (arc_override_options): Likewise.
22214 (arc_expand_builtin_aligned): Likewise.
22215 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22216 (arm_expand_builtin): Likewise.
22217 * config/arm/arm.c (arm_option_check_internal): Likewise.
22218 (arm_configure_build_target): Likewise.
22219 (arm_option_override): Likewise.
22220 (arm_options_perform_arch_sanity_checks): Likewise.
22221 (arm_handle_cmse_nonsecure_entry): Likewise.
22222 (arm_handle_cmse_nonsecure_call): Likewise.
22223 (arm_tls_referenced_p): Likewise.
22224 (thumb1_expand_prologue): Likewise.
22225 * config/avr/avr.c (avr_option_override): Likewise.
22226 * config/bfin/bfin.c (bfin_option_override): Likewise.
22227 * config/c6x/c6x.c (c6x_option_override): Likewise.
22228 * config/cr16/cr16.c (cr16_override_options): Likewise.
22229 * config/cris/cris.c (cris_option_override): Likewise.
22230 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22231 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22232 * config/darwin.c (darwin_override_options): Likewise.
22233 * config/frv/frv.c (frv_expand_builtin): Likewise.
22234 * config/h8300/h8300.c (h8300_option_override): Likewise.
22235 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22236 (ix86_option_override_internal): Likewise.
22237 (warn_once_call_ms2sysv_xlogues): Likewise.
22238 (ix86_expand_prologue): Likewise.
22239 (split_stack_prologue_scratch_regno): Likewise.
22240 (ix86_warn_parameter_passing_abi): Likewise.
22241 * config/ia64/ia64.c (fix_range): Likewise.
22242 * config/m68k/m68k.c (m68k_option_override): Likewise.
22243 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22244 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22245 (mips_set_compression_mode): Likewise.
22246 * config/mmix/mmix.c (mmix_option_override): Likewise.
22247 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22248 * config/msp430/msp430.c (msp430_option_override): Likewise.
22249 * config/nds32/nds32.c (nds32_option_override): Likewise.
22250 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22251 (nios2_option_override): Likewise.
22252 (nios2_expand_custom_builtin): Likewise.
22253 * config/nvptx/mkoffload.c (main): Likewise.
22254 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22255 * config/pa/pa.c (fix_range): Likewise.
22256 (pa_option_override): Likewise.
22257 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22258 (riscv_option_override): Likewise.
22259 * config/rl78/rl78.c (rl78_option_override): Likewise.
22260 * config/rs6000/aix61.h: Likewise.
22261 * config/rs6000/aix71.h: Likewise.
22262 * config/rs6000/aix72.h: Likewise.
22263 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22264 * config/rs6000/freebsd64.h: Likewise.
22265 * config/rs6000/linux64.h: Likewise.
22266 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22267 (rs6000_expand_zeroop_builtin): Likewise.
22268 (rs6000_expand_mtfsb_builtin): Likewise.
22269 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22270 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22271 (rs6000_invalid_builtin): Likewise.
22272 (rs6000_expand_split_stack_prologue): Likewise.
22273 * config/rs6000/rtems.h: Likewise.
22274 * config/rx/rx.c (valid_psw_flag): Likewise.
22275 (rx_expand_builtin): Likewise.
22276 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22277 * config/s390/s390.c (s390_expand_builtin): Likewise.
22278 (s390_function_profiler): Likewise.
22279 (s390_option_override_internal): Likewise.
22280 (s390_option_override): Likewise.
22281 * config/sh/sh.c (sh_option_override): Likewise.
22282 (sh_builtin_saveregs): Likewise.
22283 (sh_fix_range): Likewise.
22284 * config/sh/vxworks.h: Likewise.
22285 * config/sparc/sparc.c (sparc_option_override): Likewise.
22286 * config/spu/spu.c (spu_option_override): Likewise.
22287 (fix_range): Likewise.
22288 * config/visium/visium.c (visium_option_override): Likewise.
22289 (visium_handle_interrupt_attr): Likewise.
22290 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22291 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22292 (dbg_cnt_process_opt): Likewise.
22293 * dwarf2out.c (output_dwarf_version): Likewise.
22294 * except.c (expand_eh_return): Likewise.
22295 * gcc.c (defined): Likewise.
22296 (driver_handle_option): Likewise.
22297 (process_command): Likewise.
22298 (compare_files): Likewise.
22299 (driver::prepare_infiles): Likewise.
22300 (driver::do_spec_on_infiles): Likewise.
22301 (driver::maybe_run_linker): Likewise.
22302 * omp-offload.c (oacc_parse_default_dims): Likewise.
22303 * opts-global.c (handle_common_deferred_options): Likewise.
22304 * opts.c (parse_sanitizer_options): Likewise.
22305 (common_handle_option): Likewise.
22306 (enable_warning_as_error): Likewise.
22307 * passes.c (enable_disable_pass): Likewise.
22308 * plugin.c (parse_plugin_arg_opt): Likewise.
22309 (default_plugin_dir_name): Likewise.
22310 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22311 (default_pch_valid_p): Likewise.
22312 * toplev.c (init_asm_output): Likewise.
22313 (process_options): Likewise.
22314 (toplev::run_self_tests): Likewise.
22315 * tree-cfg.c (verify_gimple_call): Likewise.
22316 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22317 (tree_inlinable_function_p): Likewise.
22318 * var-tracking.c (vt_find_locations): Likewise.
22319
22320 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22321
22322 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22323 only on the else branch.
22324
22325 2019-03-11 Martin Liska <mliska@suse.cz>
22326
22327 * gcov.c (output_intermediate_json_line): Print function
22328 name of each line.
22329 (output_json_intermediate_file): Add new argument.
22330 * doc/gcov.texi: Document the change.
22331
22332 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22333
22334 PR rtl-optimization/89588
22335 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22336 explicit unrolling factor more robust.
22337
22338 2019-03-11 Richard Biener <rguenther@suse.de>
22339
22340 PR tree-optimization/89649
22341 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22342 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22343 on the prolog and epilog loops.
22344 (vect_loop_versioning): Return copy of loop.
22345 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22346 on the non-vectorized version of the loop.
22347
22348 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22349
22350 PR target/68924
22351 * config/i386/sse.md (*vec_extractv2di_0_sse):
22352 Add (=r,x) alternative and corresponding splitter.
22353
22354 2019-03-10 Martin Jambor <mjambor@suse.cz>
22355
22356 PR tree-optimization/85762
22357 PR tree-optimization/87008
22358 PR tree-optimization/85459
22359 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22360 it points to if there is a type changing MEM_REF. Adjust all callers.
22361 (build_accesses_from_assign): Disable total scalarization if
22362 contains_vce_or_bfcref_p returns true through the new parameter, for
22363 both rhs and lhs.
22364
22365 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22366
22367 PR c/88568
22368 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22369 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22370
22371 PR target/79645
22372 * common.opt (fdiagnostics-show-labels,
22373 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22374 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22375 gas-locview-support, ginline-points, ginternal-reset-location-views):
22376 Terminate description text with a dot.
22377 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22378 * config/mcore/mcore.opt (m210, m340): Likewise.
22379 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22380 mnops=): Start description text with a capital letter.
22381 * config/arc/arc.opt (msize-level=): Likewise.
22382 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22383 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22384 mnewlib): Likewise.
22385 * config/ft32/ft32.opt (msim): Likewise.
22386 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22387 (mnodiv, mnopm): Terminate description text with a dot.
22388 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22389 a colon.
22390 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22391 Likewise.
22392 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22393 text.
22394
22395 PR rtl-optimization/89634
22396 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22397 are modified in BB_END (e->src) instruction.
22398
22399 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22400
22401 PR target/79926
22402 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22403 messages more amenable to translation, and improve wording.
22404
22405 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22406
22407 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22408 ud- and du-chains between phases.
22409
22410 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22411
22412 PR debug/89631
22413 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22414 instead of POLY_INT_CST.
22415
22416 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22417
22418 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22419 requirement.
22420
22421 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22422
22423 PR target/68924
22424 PR target/78782
22425 PR target/87558
22426 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22427 (_mm_storeu_si64): Ditto.
22428
22429 2019-03-08 Martin Liska <mliska@suse.cz>
22430
22431 PR target/86952
22432 * config/i386/i386.c (ix86_option_override_internal): Disable
22433 jump tables when retpolines are used.
22434
22435 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22436
22437 PR go/63560
22438 * ipa-split.c (execute_split_functions): Do not split
22439 'noinline' or 'section' function.
22440
22441 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22442
22443 PR target/79846
22444 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22445 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22446 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22447
22448 PR ipa/80000
22449 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22450 from diagnostics. Formatting fixes.
22451
22452 PR target/85665
22453 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22454 warn_odr diagnostics.
22455
22456 PR other/80058
22457 * lra-constraints.c (process_alt_operands): Avoid one space before
22458 " at the end of line and another after " on another line in a string
22459 literal.
22460 * attribs.c (handle_dll_attribute): Likewise.
22461 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22462
22463 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22464 warning_at or inform messages in G_() if there is no ?:.
22465
22466 PR tree-optimization/89550
22467 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22468 returned true. Formatting fixes.
22469 (expand_builtin_strnlen): Formatting fixes.
22470 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22471 if warning_at returned true.
22472 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22473
22474 2019-03-08 Richard Biener <rguenther@suse.de>
22475
22476 PR middle-end/89578
22477 * cfgloop.h (struct loop): Add owned_clique field.
22478 * cfgloopmanip.c (copy_loop_info): Copy it.
22479 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22480 cliques.
22481 * tree-inline.c (copy_loops): Remap owned_clique.
22482 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22483 * lto-streamer-out.c (output_cfg): Likewise.
22484
22485 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22486
22487 PR target/80190
22488 * config/darwin.c: Include intl.h.
22489 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22490 composing the message out of two separate parts.
22491
22492 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22493
22494 PR target/80003
22495 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22496 doesn't start with a capital letter and doesn't end with a dot.
22497 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22498 with a capital letter.
22499 (ix86_mangle_function_version_assembler_name): Likewise.
22500 (ix86_generate_version_dispatcher_body): Likewise.
22501 (fold_builtin_cpu): Likewise.
22502 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22503 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22504 translators, wrap full type name in %qs.
22505
22506 PR translation/79999
22507 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22508 depend clause with source (or sink) modifier.
22509 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22510
22511 PR target/89602
22512 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22513 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22514 (avx512f_load<mode>_mask): New define_expand.
22515 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22516 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22517 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22518 __builtin_ia32_movess_mask): New builtins.
22519 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22520 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22521 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22522 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22523
22524 2019-03-07 Martin Jambor <mjambor@suse.cz>
22525
22526 PR lto/87525
22527 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22528 for extern inline functions.
22529
22530 2019-03-07 Martin Jambor <mjambor@suse.cz>
22531
22532 PR ipa/88235
22533 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22534 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22535 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22536 have multiple callees. At the end check if declarations match as
22537 opposed to cgraph_nodes.
22538
22539 2019-03-07 Martin Liska <mliska@suse.cz>
22540
22541 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22542 which is equivalent to searching for this in clones chain.
22543 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22544 names with a neighbour and special case first node in a chain.
22545
22546 2019-01-25 Jason Merrill <jason@redhat.com>
22547
22548 PR c++/80916 - spurious "static but not defined" warning.
22549 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22550 for an internal symbol with DECL_EXTERNAL.
22551
22552 2019-04-07 Richard Biener <rguenther@suse.de>
22553
22554 PR middle-end/89618
22555 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22556 * tree-inline.c (copy_loops): Simplify.
22557
22558 2019-03-07 Martin Liska <mliska@suse.cz>
22559
22560 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22561
22562 2019-03-07 Richard Biener <rguenther@suse.de>
22563
22564 PR tree-optimization/89595
22565 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22566 stmt iterator as reference, take boolean output parameter to
22567 indicate whether the stmt was removed and thus the iterator
22568 already advanced.
22569 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22570 stmts created by folding.
22571
22572 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22573
22574 PR c++/89585
22575 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22576 at toplevel.
22577
22578 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22579
22580 PR rtl-optimization/88845
22581 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22582 LRA.
22583 * lra.c (remove_scratches_1): New function.
22584 (remove_scratches): Use it.
22585 (lra_emit_move): Likewise.
22586
22587 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22588
22589 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22590 unaligned_access variable.
22591 * config/arc/arc.c (arc_override_options): Set unaligned access
22592 default on for HS CPUs.
22593 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22594
22595 2019-03-06 Martin Liska <mliska@suse.cz>
22596
22597 PR gcov-profile/89577
22598 * doc/gcov.texi: Prefer to use --coverage.
22599 * doc/sourcebuild.texi: Likewise.
22600
22601 2019-03-02 Jason Merrill <jason@redhat.com>
22602
22603 PR c++/86485 - -Wmaybe-unused with empty class ?:
22604 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22605
22606 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22607
22608 PR target/89587
22609 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22610 if_multiarch.
22611
22612 PR middle-end/89590
22613 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22614 exactly one argument.
22615
22616 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22617 Richard Sandiford <richard.sandiford@arm.com>
22618
22619 PR tree-optimization/89570
22620 * match.pd (vec_cond into cond_op simplification): Don't use
22621 get_conditional_internal_fn, use as_internal_fn (cond_op).
22622
22623 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22624
22625 PR target/89222
22626 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22627 to decide when to split off a non-zero offset from a symbol.
22628 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22629 in function symbols.
22630
22631 2019-03-05 Richard Biener <rguenther@suse.de>
22632
22633 PR tree-optimization/89594
22634 * tree-if-conv.c (pass_if_conversion::execute): Handle
22635 case where .LOOP_VECTORIZED_FUNCTION was removed.
22636
22637 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22638
22639 PR bootstrap/89560
22640 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22641 instead alloca it only when needed with the needed size.
22642
22643 PR tree-optimization/89570
22644 * match.pd (vec_cond into cond_op simplification): Guard with
22645 vectorized_internal_fn_supported_p test and #if GIMPLE.
22646
22647 PR tree-optimization/89566
22648 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22649 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22650 Punt if get_user_idx_format succeeds, but idx_format argument is
22651 not provided or doesn't have pointer type, or if idx_args is above
22652 number of provided arguments.
22653
22654 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22655
22656 PR tree-optimization/89437
22657 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22658
22659 2019-03-04 Richard Biener <rguenther@suse.de>
22660
22661 PR middle-end/89572
22662 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22663 safe_dyn_cast.
22664
22665 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22666
22667 PR tree-optimization/89487
22668 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22669 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22670 (distribute_loop): Don't do runtime alias check if there is non-
22671 addressable data reference.
22672 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22673 is a register variable.
22674
22675 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22676
22677 PR target/89506
22678 * config/arm/arm.md (cmpsi2_addneg): Use
22679 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22680 If operands[2] is 0 or INT_MIN, force use of subs.
22681 (*compare_scc splitter): Use gen_int_mode.
22682 (*negscc): Likewise.
22683 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22684
22685 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22686 Monk Chiang <sh.chiang04@gmail.com>
22687
22688 * common/config/riscv/riscv-common.c: Include sstream.
22689 (riscv_subset_list::to_string): New.
22690 (riscv_arch_str): Likewise.
22691 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22692 * config.in: Regen.
22693 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22694 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22695 (riscv_emit_attribute): New.
22696 (riscv_file_start): Emit attribute if needed.
22697 (riscv_option_override): Init riscv_emit_attribute_p.
22698 * config/riscv/riscv.opt (mriscv-attribute): New option.
22699 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22700 * configure: Regen.
22701 * doc/install.texi: Document --with-riscv-attribute.
22702 * doc/invoke.texi: Document -mriscv-attribute.
22703
22704 * common/config/riscv/riscv-common.c:
22705 Include config/riscv/riscv-protos.h.
22706 (INCLUDE_STRING): Defined.
22707 (RISCV_DONT_CARE_VERSION): Defined.
22708 (riscv_subset_t): Declare.
22709 (riscv_subset_t::riscv_subset_t): New.
22710 (riscv_subset_list): Declare.
22711 (riscv_subset_list::riscv_subset_list): New.
22712 (riscv_subset_list::~riscv_subset_list): Likewise.
22713 (riscv_subset_list::parsing_subset_version): Likewise.
22714 (riscv_subset_list::parse_std_ext): Likewise.
22715 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22716 (riscv_subset_list::add): Likewise.
22717 (riscv_subset_list::lookup): Likewise.
22718 (riscv_subset_list::xlen): Likewise.
22719 (riscv_subset_list::parse): Likewise.
22720 (riscv_supported_std_ext): Likewise.
22721 (current_subset_list): Likewise.
22722 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22723 parse.
22724
22725 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22726
22727 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22728 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22729 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22730
22731 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22732
22733 PR rtl-optimization/85899
22734 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22735 fallthru edges leading to the exit block.
22736
22737 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22738
22739 PR target/89517
22740 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22741 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22742
22743 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22744
22745 PR tree-optimization/89535
22746 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22747 for each operand. Calculate the fallback choice for mask operands
22748 and pass it to vect_get_vec_def_for_operand.
22749
22750 2019-03-01 Richard Biener <rguenther@suse.de>
22751
22752 PR middle-end/89541
22753 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22754 get virtual operands.
22755 (get_expr_operands): Handle CONST_DECL like other decls.
22756
22757 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22758
22759 PR middle-end/89503
22760 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22761 on DECL_P and EXPR_P.
22762
22763 2019-03-01 Richard Biener <rguenther@suse.de>
22764
22765 PR middle-end/89497
22766 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22767 argument, defaulted to zero.
22768 * passes.c (execute_function_todo): Pass down SSA update flags
22769 to cleanup_tree_cfg.
22770 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22771 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22772 form if requested.
22773 (cleanup_tree_cfg): Get and pass down SSA update flags.
22774
22775 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22776
22777 PR bootstrap/89539
22778 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22779 early_lto_debug argument.
22780
22781 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22782
22783 PR tree-optimization/89536
22784 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22785 only whether bit #0 of the value is 0 instead of the entire value.
22786
22787 2019-02-28 Marek Polacek <polacek@redhat.com>
22788
22789 PR c++/87068 - missing diagnostic with fallthrough statement.
22790 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22791 at the end of a seq, save its location to walk_stmt_info.
22792 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22793 a switch.
22794
22795 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22796
22797 PR lto/88585
22798 * tree.c (find_atomic_core_type): Move ahead in file.
22799 (check_base_type): Correctly compare alignments of atomic types.
22800
22801 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22802
22803 PR target/89455
22804 * config/i386/i386.c (get_builtin_code_for_version): Identify
22805 Westmere from PCLMUL, instead of AES.
22806
22807 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22808
22809 PR target/89434
22810 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22811 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22812 -UINTVAL (...).
22813
22814 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22815
22816 PR target/88530
22817 * config/aarch64/aarch64-option-extensions.def: Document it.
22818 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22819 if empty hwcaps.
22820
22821 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22822
22823 PR c/89520
22824 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22825 builtins if they don't have a single scalar floating point argument.
22826 Formatting fixes.
22827
22828 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22829
22830 PR rtl-optimization/89490
22831 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22832 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22833 block section is not mergeable.
22834
22835 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22836
22837 PR target/70341
22838 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22839 old define_insn to ...
22840 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22841 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22842 Rename old define_insn to ...
22843 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22844 (thumb2_casesi_internal_pic): New define_expand. Rename old
22845 define_insn to ...
22846 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22847 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22848 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22849
22850 2019-02-27 Richard Biener <rguenther@suse.de>
22851
22852 PR debug/88878
22853 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22854
22855 2019-02-27 Richard Biener <rguenther@suse.de>
22856
22857 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22858 building.
22859
22860 2019-02-27 Richard Biener <rguenther@suse.de>
22861
22862 PR debug/88878
22863 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22864 parameter, prefix section name with .gnu.debuglto_ if true.
22865 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22866 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22867
22868 2019-02-27 Richard Biener <rguenther@suse.de>
22869
22870 PR debug/89514
22871 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22872 rather than on use_debug_types, doing what output_die does.
22873 (value_format): Likewise.
22874
22875 2019-02-27 Martin Jambor <mjambor@suse.cz>
22876 Martin Sebor <msebor@redhat.com>
22877
22878 * doc/invoke.texi (Warning Options): Reword description of
22879 -Wno-absolute-value.
22880
22881 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22882
22883 PR tree-optimization/89280
22884 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22885 builtin_setjmp_setup_bb): New functions.
22886 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22887 When visiting __builtin_setjmp_setup block, queue in special
22888 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22889 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22890 from visited after the loop if they don't have any visited successor
22891 blocks.
22892
22893 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22894
22895 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22896 New function.
22897 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22898
22899 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22900
22901 PR c++/89507
22902 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22903 with types other than sizetype/ssizetype.
22904
22905 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22906
22907 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22908 (enum sparc_processor_type): ...this.
22909 (enum sparc_code_model_type): New enumeration type.
22910 (enum sparc_memory_model_type): Tweak comments.
22911 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22912 (mtune): Likewise.
22913 (mcmodel): Use sparc_code_model enumeration and variable.
22914 (sparc_code_model): New enumeration.
22915 (mdebug): Add Undocumented marker.
22916 * config/sparc/sparc.h (enum cmodel): Delete.
22917 (sparc_cmodel): Likewise.
22918 (TARGET_CM_MEDLOW): Adjust to above renaming.
22919 (TARGET_CM_MEDMID): Likewise.
22920 (TARGET_CM_MEDANY): Likewise.
22921 (TARGET_CM_EMBMEDANY): Likewise.
22922 * config/sparc/sparc.c (sparc_cmodel): Delete.
22923 (sparc_option_override): Remove string/value mapping support for the
22924 code model. Move code and memory model support to after the handling
22925 of target flags. Do private machine setup last.
22926 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22927 (sparc_legitimize_reload_address): Likewise.
22928 (sparc_output_mi_thunk): Likewise.
22929 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22930
22931 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22932
22933 PR tree-optimization/89500
22934 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22935 (handle_builtin_strlen): Remove noncst_bound variable. Always
22936 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22937 cst if the first cst bytes starting at x are known to be non-zero,
22938 even if the string is not zero terminated. Don't try to modify
22939 *si for strnlen. Update strlen_to_stridx only for strlen or if
22940 we can prove strnlen returns the same value as strlen would.
22941
22942 2019-02-26 Martin Liska <mliska@suse.cz>
22943
22944 * alloc-pool.h (struct pool_usage): Remove extra
22945 print_dash_line.
22946 * bitmap.h (struct bitmap_usage): Likewise.
22947 * ggc-common.c (struct ggc_usage): Likewise.
22948 * mem-stats.h (struct mem_usage): Likewise.
22949 (mem_alloc_description::dump): Print dash lines
22950 here and repeat header at the end of a table report.
22951 It's then more readable.
22952 * tree-phinodes.c (phinodes_print_statistics): Make
22953 horizontal alignment.
22954 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22955 * vec.c (struct vec_usage): Remove extra print_dash_line.
22956 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22957
22958 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22959
22960 * doc/extend.texi (__builtin_object_size):
22961 Use @pxref instead of @xref inside parenthesis.
22962 (__builtin_has_attribute): Add missing comma after @xref.
22963 (__builtin_object_size): Ditto.
22964 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22965
22966 2019-02-26 Jeff Law <law@redhat.com>
22967
22968 PR rtl-optimization/87761
22969 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22970 detect obviously dead insns and delete them.
22971
22972 2019-02-26 Richard Biener <rguenther@suse.de>
22973
22974 PR tree-optimization/89505
22975 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22976 to handle restrict pointed-to vars with multiple subvars
22977 correctly.
22978
22979 2019-02-26 Richard Biener <rguenther@suse.de>
22980
22981 PR tree-optimization/89489
22982 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22983
22984 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22985
22986 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22987 and move around comment.
22988 <BIT_AND_EXPR>: Likewise.
22989 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22990
22991 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22992
22993 PR target/89474
22994 * config/i386/i386.c (remove_partial_avx_dependency): Call
22995 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22996 after changing possibly many instructions to use that pseudo. Fix up
22997 insertion of v4sf_const0 setter at the start of bb.
22998
22999 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23000
23001 PR c/80409
23002 * doc/extend.texi (Variadic Pointer Args): New section.
23003
23004 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23005 Martin Sebor <msebor@gmail.com>
23006
23007 * common.opt (Wattribute-alias): Likewise.
23008 * doc/invoke.texi (Option Summary): List general form of
23009 -Wattribute-alias=. List positive form of -Wmissing-attributes.
23010 (-Wmissing-attributes): Invert entry, rewrite and correct default.
23011 Add cross-references.
23012 (-Wattribute-alias): Rewrite and correct default. Mention
23013 considered attributes (same as for -Wmissing-attributes).
23014
23015 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
23016
23017 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
23018 (_mm_cvtpd_ps): Likewise.
23019 (_mm_cvttpd_epi32): Likewise.
23020
23021 PR target/89338
23022 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
23023 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
23024
23025 PR target/89339
23026 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
23027
23028 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23029
23030 PR target/88530
23031 * common/config/aarch64/aarch64-common.c
23032 (struct aarch64_option_extension): Add is_synthetic.
23033 (all_extensions): Use it.
23034 (TARGET_OPTION_INIT_STRUCT): Define hook.
23035 (struct gcc_targetm_common): Moved to end.
23036 (all_extensions_by_on): New.
23037 (opt_ext_cmp, typedef opt_ext): New.
23038 (aarch64_option_init_struct): New.
23039 (aarch64_contains_opt): New.
23040 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
23041 * config/aarch64/aarch64-option-extensions.def
23042 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
23043 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
23044 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
23045 Set is_synthetic to false.
23046 (crypto): Set is_synthetic to true.
23047 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
23048 SYNTHETIC.
23049
23050 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23051
23052 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23053 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
23054 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23055 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
23056 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
23057 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
23058 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
23059 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
23060 Rename ...
23061 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
23062 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23063 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
23064 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
23065 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
23066 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
23067 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
23068 vfmlsl_laneq_high_f16): ... To this.
23069 * config/arm/neon.md: Update comments.
23070
23071 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23072
23073 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23074 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
23075 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23076 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
23077 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
23078 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
23079 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
23080 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
23081 Rename ...
23082 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
23083 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23084 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
23085 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
23086 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
23087 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
23088 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
23089 vfmlslq_laneq_high_f16): ... To this.
23090
23091 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
23092
23093 PR rtl-optimization/86096
23094 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
23095 comparing mw_order values.
23096
23097 2019-02-25 Jakub Jelinek <jakub@redhat.com>
23098
23099 PR target/89434
23100 * config/arm/arm.md (*subsi3_carryin_const): Use
23101 arm_neg_immediate_operand predicate instead of
23102 arm_not_immediate_operand, "L" constraint instead of "K" and
23103 print it using %n2 instead of %B2.
23104 (*subsi3_carryin_const0): New define_insn.
23105 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23106 instead of arm_not_operand and "I" constraint instead of "K" and
23107 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23108 another match_operand and in the condition check that it is negation
23109 of operands[2].
23110 (*subsi3_carryin_compare_const0): New define_ins.
23111 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23112 *subsi3_carryin_const.
23113 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23114 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23115
23116 PR target/89438
23117 * config/arm.vfp.md (*negdf2_vfp): Use
23118 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23119 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23120
23121 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23122
23123 PR rtl-optimization/89445
23124 * simplify-rtx.c (simplify_ternary_operation): Don't use
23125 simplify_merge_mask on operands that may trap.
23126 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23127 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23128 second operand is CONST_VECTOR, check if any element could be zero.
23129 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23130 their operands can trap.
23131
23132 2019-02-23 Martin Sebor <msebor@redhat.com>
23133
23134 * gimple-ssa-sprintf.c (target_strtol): Rename...
23135 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23136 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23137 check for range error.
23138
23139 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23140
23141 PR driver/69471
23142 * opts-common.c (prune_options): Also prune joined switches
23143 with Negative and RejectNegative.
23144 * config/i386/i386.opt (march=): Add Negative(march=).
23145 (mtune=): Add Negative(mtune=).
23146 * doc/options.texi: Document Negative used together with Joined
23147 and RejectNegative.
23148
23149 2019-02-22 Martin Sebor <msebor@redhat.com>
23150
23151 * doc/extend.texi (Other Builtins): Add
23152 __builtin_is_constant_evaluated.
23153
23154 2019-02-22 Richard Biener <rguenther@suse.de>
23155
23156 PR tree-optimization/87609
23157 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23158
23159 2019-02-22 Jeff Law <law@redhat.com>
23160
23161 PR rtl-optimization/87761
23162 * config/mips/mips.md: Add new combiner pattern to recognize
23163 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23164
23165 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23166
23167 PR target/89324
23168 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23169 destination register in peepholes generating patterns for ADDS/SUBS.
23170 (add<mode>3_compare0,
23171 *addsi3_compare0_uxtw, add<mode>3_compareC,
23172 add<mode>3_compareV_imm, add<mode>3_compareV,
23173 *adds_<optab><ALLX:mode>_<GPI:mode>,
23174 *subs_<optab><ALLX:mode>_<GPI:mode>,
23175 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23176 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23177 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23178 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23179 sub<mode>3_compare1): Allow stack pointer for source register.
23180 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23181
23182 2019-02-22 Martin Sebor <msebor@redhat.com>
23183
23184 PR tree-optimization/88993
23185 PR tree-optimization/88853
23186 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23187 New helper.
23188 (sprintf_dom_walker::call_info::is_string_func): New helper.
23189 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23190 for formatted string functions.
23191 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23192
23193 2019-02-22 Martin Sebor <msebor@redhat.com>
23194
23195 PR c/89425
23196 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23197 unreachable subexpressions.
23198
23199 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23200 Hongtao Liu <hongtao.liu@intel.com>
23201 Sunil K Pandey <sunil.k.pandey@intel.com>
23202
23203 PR target/87007
23204 * config/i386/i386-passes.def: Add
23205 pass_remove_partial_avx_dependency.
23206 * config/i386/i386-protos.h
23207 (make_pass_remove_partial_avx_dependency): New.
23208 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23209 New function.
23210 (pass_data_remove_partial_avx_dependency): New.
23211 (pass_remove_partial_avx_dependency): Likewise.
23212 (make_pass_remove_partial_avx_dependency): Likewise.
23213 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23214 (*extendsfdf2): Add avx_partial_xmm_update.
23215 (truncdfsf2): Likewise.
23216 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23217 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23218
23219 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23220
23221 PR middle-end/85598
23222 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23223 analysis for pass.
23224
23225 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23226
23227 PR target/89444
23228 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23229 (PTA_SKYLAKE): Add PTA_AES.
23230 (PTA_GOLDMONT): Likewise.
23231
23232 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23233
23234 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23235 instruction if enabled.
23236 (aarch64_override_options): Remove reference to return address key.
23237
23238 2019-02-22 Richard Biener <rguenther@suse.de>
23239
23240 PR tree-optimization/89440
23241 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23242 not necessary assert.
23243
23244 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23245
23246 PR fortran/72741
23247 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23248 (oacc_replace_fn_attrib_attr): ... this new function.
23249 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23250 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23251
23252 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23253
23254 * config/arm/arm-cpus.in (ares): Rename to...
23255 (neoverse-n1): ... This. Add ares as alias.
23256 * config/arm/arm-tables.opt: Regenerate.
23257 * config/arm/arm-tune.md: Likewise.
23258 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23259
23260 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23261
23262 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23263 * config/aarch64/aarch64-tune.md: Regenerate.
23264 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23265
23266 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23267
23268 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23269 (neoversen1_tunings): ... This.
23270 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23271 (neoverse-n1): New CPU.
23272 * config/aarch64/aarch64-tune.md: Regenerate.
23273 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23274
23275 2019-02-22 Richard Biener <rguenther@suse.de>
23276
23277 PR middle-end/87609
23278 * cfghooks.h (dependence_hash): New typedef.
23279 (struct copy_bb_data): New type.
23280 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23281 (duplicate_block): Likewise.
23282 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23283 (copy_bbs): Create and pass down copy_bb_data.
23284 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23285 (rtl_duplicate_bb): Likewise.
23286 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23287 remap dependence info.
23288
23289 2019-02-22 Richard Biener <rguenther@suse.de>
23290
23291 PR tree-optimization/87609
23292 * tree-core.h (tree_base): Document special clique values.
23293 * tree-inline.c (remap_dependence_clique): Do not use the
23294 special clique value of one.
23295 (maybe_set_dependence_info): Use clique one.
23296 (clear_dependence_clique): New callback.
23297 (compute_dependence_clique): Clear clique one from all refs
23298 before assigning it (again).
23299
23300 2019-02-21 Martin Sebor <msebor@redhat.com>
23301
23302 * doc/extend.texi (__clear_cache): Correct signature.
23303
23304 2019-02-21 Ian Lance Taylor <iant@golang.org>
23305
23306 PR go/89170
23307 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23308 than output_constant_def.
23309 (add_constant_to_table): New static function.
23310 (output_constant_def): Call add_constant_to_table.
23311 (tree_output_constant_def): Likewise.
23312
23313 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23314
23315 PR c++/89285
23316 * builtins.c (fold_builtin_arith_overflow): If first two args are
23317 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23318 to ifn.
23319
23320 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23321
23322 PR target/87412
23323 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23324 error for -mindirect-branch/-mfunction-return with incompatible
23325 -fcf-protection.
23326
23327 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23328
23329 PR bootstrap/88714
23330 * constraints.md (q): Remove.
23331 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23332 instead of q.
23333
23334 2019-02-21 Martin Jambor <mjambor@suse.cz>
23335
23336 PR hsa/89302
23337 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23338 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23339 (omp_adjust_for_condition): ...here. Added necessary parameters.
23340 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23341 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23342 proper values to new parameters of omp_adjust_for_condition.
23343
23344 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23345
23346 PR middle-end/89412
23347 * expr.c (expand_assignment): If result is a MEM, use change_address
23348 instead of simplify_gen_subreg.
23349
23350 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23351 David Malcolm <dmalcolm@redhat.com>
23352
23353 PR middle-end/89091
23354 * fold-const.c (decode_field_reference): Return NULL_TREE if
23355 lang_hooks.types.type_for_size returns NULL. Check it before
23356 overwriting *exp_. Use return NULL_TREE instead of return 0.
23357
23358 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23359
23360 PR middle-end/88074
23361 PR middle-end/89415
23362 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23363 buggy mpc_norm.
23364
23365 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23366
23367 PR target/89397
23368 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23369 TARGET_SSE in addition to TARGET_SSE_MATH.
23370
23371 (ix86_excess_precision): Ditto.
23372 (ix86_float_exceptions_rounding_supported_p): Ditto.
23373 (use_rsqrt_p): Ditto.
23374 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23375
23376 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23377
23378 PR c/89410
23379 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23380 linenum_arith_t when determining if two adjacent line spans are
23381 close enough to merge.
23382 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23383 lines within each line_span.
23384
23385 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23386
23387 PR target/86487
23388 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23389 paradoxical SUBREGS.
23390
23391 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23392
23393 PR target/88100
23394 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23395 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23396 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23397 range checking it.
23398
23399 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23400
23401 * config/gcn/gcn.c (print_operand): Fix typo.
23402
23403 2019-02-19 Richard Biener <rguenther@suse.de>
23404
23405 PR middle-end/88074
23406 * toplev.c (do_compile): Initialize mpfr's exponent range
23407 based on available float modes.
23408
23409 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23410
23411 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23412 as long as the epilogue isn't completed.
23413
23414 2019-02-18 Martin Sebor <msebor@redhat.com>
23415
23416 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23417 __has_cpp_attribute, and __has_include.
23418
23419 2019-02-18 Martin Sebor <msebor@redhat.com>
23420
23421 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23422
23423 2019-02-18 Martin Sebor <msebor@redhat.com>
23424
23425 PR middle-end/89294
23426 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23427 expression.
23428 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23429
23430 2019-02-18 Richard Biener <rguenther@suse.de>
23431
23432 PR tree-optimization/89296
23433 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23434 of no-warning flag to cases that might emit the bogus warning.
23435
23436 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23437
23438 PR bootstrap/88714
23439 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23440 "q" constraint.
23441 * config/arm/vfp.md (*movdi_vfp): Likewise.
23442 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23443 "q" constraint for operands[0].
23444
23445 PR target/89369
23446 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23447 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23448 pattern in a temporary buffer.
23449 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23450 than 64-operands[2].
23451
23452 PR target/89361
23453 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23454 s390_indirect_branch_settings): Define unconditionally.
23455 (s390_set_current_function): Likewise, but guard the whole body except
23456 the s390_indirect_branch_settings call with
23457 #if S390_USE_TARGET_ATTRIBUTE.
23458 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23459
23460 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23461 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23462 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23463 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23464 HOST_WIDE_INT_1U instead of 1ULL.
23465 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23466 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23467 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23468 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23469 instead of 1UL.
23470 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23471 instead of 1ul.
23472
23473 2019-02-18 Martin Jambor <mjambor@suse.cz>
23474
23475 PR tree-optimization/89209
23476 * tree-sra.c (create_access_replacement): New optional parameter
23477 reg_tree. Use it as a type if non-NULL and access type is not of
23478 a register type.
23479 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23480 to create_access_replacement.
23481 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23482 Check lacc is non-NULL before attempting to re-create it on the RHS.
23483
23484 2019-02-18 Martin Liska <mliska@suse.cz>
23485
23486 PR ipa/89306
23487 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23488 by default.
23489 (symbol_table::free_edge): Recycle m_summary_id.
23490 * cgraph.h (get_summary_id): New.
23491 (symbol_table::release_symbol): Set m_summary_id to -1
23492 by default.
23493 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23494 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23495 function_summary to fast_function_summary.
23496 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23497 * ipa-pure-const.c (class funct_state_summary_t):
23498 Switch from function_summary to fast_function_summary.
23499 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23500 (class ipa_ref_opt_summary_t): Switch from function_summary
23501 to fast_function_summary.
23502 * symbol-summary.h (class function_summary_base): New class
23503 that is created from base of former function_summary.
23504 (function_summary_base::unregister_hooks): New.
23505 (class function_summary): Inherit from function_summary_base.
23506 (class call_summary_base): New class
23507 that is created from base of former call_summary.
23508 (class call_summary): Inherit from call_summary_base.
23509 (struct is_same): New.
23510 (class fast_function_summary): New summary class.
23511 (class fast_call_summary): New summary class.
23512 * vec.h (vec_safe_grow_cleared): New function.
23513
23514 2019-02-18 Martin Liska <mliska@suse.cz>
23515
23516 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23517 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23518 * doc/tm.texi: Document new target hook.
23519 * doc/tm.texi.in: Likewise.
23520 * target.def: Add new target macro.
23521 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23522 suffixes.
23523
23524 2019-02-17 Alan Modra <amodra@gmail.com>
23525
23526 PR target/89271
23527 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23528 output reg on add insn.
23529 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23530
23531 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23532
23533 PR target/89372
23534 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23535 (PMULHRSW): Likewise.
23536 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23537 TARGET_AVX2.
23538 (ssse3_pmulhrswv4hi3): New expander.
23539
23540 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23541
23542 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23543 MMX. Add isa attribute.
23544
23545 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23546
23547 PR rtl-optimization/66152
23548 * builtins.h (c_readstr): Declare.
23549 * builtins.c (c_readstr): Remove forward declaration. Add
23550 null_terminated_p argument, if false, read all bytes from the
23551 string instead of stopping after '\0'.
23552 * expr.c (string_cst_read_str): New function.
23553 (store_expr): Use string_cst_read_str instead of
23554 builtin_strncpy_read_str. Try to store by pieces the whole
23555 exp_len first, and only if that fails, split it up into
23556 store by pieces followed by clear_storage. Formatting fix.
23557
23558 * config/i386/i386.md (*movqi_internal): Remove static from
23559 buf variable. Use output_asm_insn (buf, operands); return "";
23560 instead of return buf;.
23561 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23562 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23563 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23564
23565 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23566
23567 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23568 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23569 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23570 (CC1_SPEC): Likewise.
23571 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23572
23573 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23574
23575 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23576 the base address on 64-bit strict-alignment platforms.
23577
23578 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23579
23580 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23581
23582 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23583
23584 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23585
23586 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23587
23588 PR rtl-optimization/88308
23589 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23590 on copied instruction.
23591
23592 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23593
23594 * final.c (insn_current_reference_address): Replace test on JUMP_P
23595 with test on jump_to_label_p.
23596 * config/visium/visium-passes.def: New file.
23597 * config/visium/t-visium (PASSES_EXTRA): Define.
23598 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23599 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23600 (TRAMPOLINE_ALIGNMENT): Define.
23601 * config/visium/visium.c (visium_option_override): Do not register
23602 the machine-specific reorg pass here.
23603 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23604 for the GR6.
23605 (output_branch): Adjust threshold for long branch instruction.
23606 * config/visium/visium.md (cpu): Move around.
23607 (length): Adjust for the GR6.
23608
23609 2019-02-15 Richard Biener <rguenther@suse.de>
23610 Jakub Jelinek <jakub@redhat.com>
23611
23612 PR tree-optimization/89278
23613 * tree-loop-distribution.c: Include tree-eh.h.
23614 (generate_memset_builtin, generate_memcpy_builtin): Call
23615 rewrite_to_non_trapping_overflow on builtin->size before passing it
23616 to force_gimple_operand_gsi.
23617
23618 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23619
23620 PR other/89342
23621 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23622 optimize_debug.
23623 * opth-gen.awk: Likewise.
23624
23625 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23626
23627 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23628 Enable MMX, SSE and SSE2 by default.
23629 * config/i386/i386.c (ix86_option_override_internal): Do not
23630 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23631
23632 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23633
23634 PR rtl-optimization/89354
23635 * combine.c (make_extraction): Punt if extraction_mode is narrower
23636 than len bits.
23637
23638 2019-02-14 Maya Rashish <coypu@sdf.org>
23639
23640 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23641 * config/netbsd-d.c: New file.
23642 * config/t-netbsd: Add netbsd-d.o
23643
23644 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23645
23646 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23647 affects_type_identity to true for aarch64_vector_pcs.
23648 (aarch64_comp_type_attributes): New function.
23649 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23650
23651 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23652
23653 PR target/88850
23654 * config/arm/iterators.md (ANY64): Add V4HF.
23655
23656 2019-02-14 Martin Liska <mliska@suse.cz>
23657
23658 PR rtl-optimization/89242
23659 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23660 process a transformation.
23661
23662 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23663
23664 PR tree-optimization/89314
23665 * fold-const.c (fold_binary_loc): Cast strlen argument to
23666 const char * before dereferencing it. Formatting fixes.
23667
23668 PR middle-end/89284
23669 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23670
23671 2019-02-13 Ian Lance Taylor <iant@golang.org>
23672
23673 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23674 and set current index for other optimizations.
23675
23676 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23677
23678 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23679 nonimmediate_operand as operand 2 predicate.
23680 (vec_set<VF2_512_256:mode>_0): Ditto.
23681 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23682 (*vec_concatv2si): Remove alternative 2.
23683 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23684 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23685 (vec_concatv2di): Split alternatives 4,5,6 to ...
23686 (*vec_concatv2di_0) ... new pattern.
23687
23688 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23689
23690 PR target/89190
23691 * config/arm/arm.c (ldm_stm_operation_p) Set
23692 addr_reg_in_reglist correctly for first register.
23693 (load_multiple_sequence): Remove dead base check.
23694 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23695
23696 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23697
23698 PR target/88847
23699 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23700 Expose as @aarch64_pred_mov.
23701 * config/aarch64/aarch64.c (aarch64_classify_address):
23702 Use expand_insn which legitimizes operands.
23703
23704 2019-02-13 Martin Liska <mliska@suse.cz>
23705
23706 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23707 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23708 and pointer_offset fields.
23709 (initialize_argument_information): Remove usage of dead
23710 fields.
23711 * cgraph.h (struct cgraph_thunk_info): Remove
23712 add_pointer_bounds_args.
23713 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23714 fields.
23715 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23716 fields.
23717 * config/i386/i386.c (ix86_function_arg_advance): Remove
23718 unrelated comment.
23719 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23720 (def_builtin): Remove usage of dead fields.
23721 (ix86_add_new_builtins): Likewise.
23722 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23723 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23724 (sem_function::init): Likewise.
23725 (sem_variable::merge): Likewise.
23726 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23727 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23728 * lto-cgraph.c (lto_output_node): Likewise.
23729 (lto_output_varpool_node): Likewise.
23730 (input_node): Likewise.
23731 (input_varpool_node): Likewise.
23732 * lto-streamer-out.c (lto_output): Likewise.
23733 * tree-inline.c (expand_call_inline): Remove usage of
23734 assign_stmts.
23735 * tree-inline.h (struct copy_body_data): Likewise.
23736 * varpool.c (varpool_node::dump): Likewise.
23737
23738 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23739
23740 PR middle-end/89303
23741 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23742 into pt->vars_contains_escaped_heap instead of setting
23743 pt->vars_contains_escaped_heap to it.
23744
23745 PR middle-end/89281
23746 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23747 INTVAL (size), compare it to GET_MODE_MASK instead of
23748 1 << GET_MODE_BITSIZE.
23749
23750 PR target/89290
23751 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23752 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23753 -mcmodel=large.
23754
23755 2019-02-13 Martin Liska <mliska@suse.cz>
23756
23757 PR lto/88858
23758 * cfgrtl.c (remove_barriers_from_footer): New function.
23759 (try_redirect_by_replacing_jump): Use it.
23760 (cfg_layout_redirect_edge_and_branch): Likewise.
23761
23762 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23763
23764 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23765 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23766 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23767 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23768 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23769 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23770 New BU_CRYPTO_2.
23771 * config/rs6000/rs6000.c (builtin_function_type)
23772 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23773 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23774 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23775 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23776 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23777
23778 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23779
23780 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23781 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23782
23783 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23784
23785 PR target/89229
23786 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23787 268678 and revision 268657.
23788 (*movti_internal): Likewise.
23789
23790 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23791
23792 PR target/89233
23793 * config/s390/s390.c (s390_decompose_address): Update comment.
23794 (s390_check_qrst_address): Reject invalid address forms after
23795 LRA.
23796
23797 2019-02-12 Martin Liska <mliska@suse.cz>
23798
23799 PR lto/88876
23800 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23801 we need default values of funct_state for a function that
23802 is not optimized.
23803
23804 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23805
23806 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23807 the object to pick the size of stores on strict-alignment platforms.
23808
23809 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23810 (*movdi_insn_sp32): Likewise.
23811 (*movdi_insn_sp64): Likewise.
23812
23813 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23814
23815 PR lto/88677
23816 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23817 types that needs constructiong.
23818 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23819
23820 2019-02-12 Richard Biener <rguenther@suse.de>
23821
23822 PR tree-optimization/89253
23823 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23824 duplicate the loop.
23825
23826 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23827
23828 PR lto/88147
23829 * input.c (selftest::test_line_offset_overflow): New selftest.
23830 (selftest::input_c_tests): Call it.
23831
23832 2019-02-11 Martin Sebor <msebor@redhat.com>
23833
23834 PR tree-optimization/88771
23835 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23836 when -Wstringop-overflow is set.
23837 (builtin_memref::builtin_memref): Adjust excessive upper bound
23838 only when lower bound is not excessive.
23839 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23840 -Wstringop-ovefflow.
23841 (maybe_diag_offset_bounds): Rename...
23842 (maybe_diag_access_bounds): ...to this.
23843 (check_bounds_or_overlap): Adjust for name change above.
23844
23845 2019-02-11 Martin Sebor <msebor@redhat.com>
23846
23847 PR c++/87996
23848 * builtins.c (max_object_size): Move from here...
23849 * builtins.h (max_object_size): ...and here...
23850 * tree.c (max_object_size): ...to here...
23851 * tree.h (max_object_size): ...and here.
23852
23853 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23854
23855 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23856 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23857 for correct semantics.
23858
23859 2019-02-11 Alan Modra <amodra@gmail.com>
23860
23861 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23862 -mlongcall and -mpltseq.
23863 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23864 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23865 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23866 * config/rs6000/sysv4.opt (mpltseq): New option.
23867 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23868 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23869 support is lacking. Don't allow -mpltseq with -mbss-plt.
23870 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23871 -mpltseq given for ELFv1.
23872 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23873 Only use UNSPEC_PLTSEQ for inline PLT calls.
23874 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23875 use UNSPEC_PLTSEQ for inline PLT calls.
23876 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23877 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23878 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23879 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23880 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23881 (pltseq_mtctr_<mode>): Likewise.
23882
23883 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23884
23885 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23886 Solaris ld.
23887 * configure: Regenerate.
23888
23889 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23890
23891 PR bootstrap/88714
23892 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23893 instead of r.
23894
23895 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23896
23897 * function.c (assign_parm_setup_block): Use the stored
23898 size, not the passed size, when allocating stack-space,
23899 also for a parameter with alignment larger than
23900 MAX_SUPPORTED_STACK_ALIGNMENT.
23901
23902 2019-02-11 Martin Liska <mliska@suse.cz>
23903
23904 PR ipa/89009
23905 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23906 * ipa-inline.c (inline_small_functions): Likewise.
23907 * ipa-pure-const.c (propagate_pure_const): Likewise.
23908 (propagate_nothrow): Likewise.
23909 * ipa-reference.c (propagate): Likewise.
23910 * ipa-utils.c (struct searchc_env): Remove unused field.
23911 (searchc): Always search across AVAIL_INTERPOSABLE.
23912 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23913 the only called IPA pure const can properly not propagate
23914 across interposable boundary.
23915 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23916
23917 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23918
23919 * config/nds32/nds32.md (call_internal, call_value_internal,
23920 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23921
23922 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23923
23924 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23925 typo.
23926
23927 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23928
23929 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23930 in comments
23931
23932 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23933
23934 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23935
23936 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23937
23938 PR tree-optimization/89268
23939 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23940 if preds is non-NULL.
23941
23942 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23943
23944 PR lto/89272
23945 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23946 polymorphic types.
23947
23948 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23949
23950 * config/nds32/nds32.md (trap): New pattern.
23951
23952 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23953
23954 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23955 dwarf span.
23956
23957 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23958
23959 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23960 to split POST_INC.
23961
23962 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23963
23964 * ipa-visibility.c (localize_node): Also do not localize
23965 LDPR_PREVAILING_DEF_IRONLY_EXP.
23966
23967 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23968
23969 PR lto/87957
23970 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23971 instead of type_with_linkage.
23972
23973 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23974
23975 PR ipa/88755
23976 * params.def (uninlined-function-insns, uninlined-function-time,
23977 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23978 bound so we don't get overflows.
23979
23980 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23981
23982 * config/rs6000/rs6000-string.c (expand_compare_loop,
23983 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23984 memcmp/strncmp.
23985
23986 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23987
23988 PR middle-end/89246
23989 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23990 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23991 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23992
23993 2019-02-09 Alan Modra <amodra@gmail.com>
23994
23995 PR target/88343
23996 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23997 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23998 setup.
23999
24000 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
24001
24002 PR middle-end/88560
24003 * lra-constraints.c (process_alt_operands): Don't increase reject
24004 for memory when offset memory is required.
24005
24006 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
24007
24008 * config/s390/vector.md: Implement vector copysign.
24009
24010 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24011
24012 * expr.c (expand_constructor): Correct indentations.
24013
24014 2019-02-08 Richard Biener <rguenther@suse.de>
24015
24016 PR tree-optimization/89247
24017 * tree-if-conv.c: Include tree-cfgcleanup.h.
24018 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
24019 (tree_if_conversion): Pass through predicate vector.
24020 (pass_if_conversion::execute): Do CFG cleanup and SSA update
24021 inline, see if any if-converted loops we refrece in
24022 LOOP_VECTORIZED calls vanished and fixup.
24023 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
24024
24025 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
24026
24027 * config/s390/constraints.md (jdd): New constraint.
24028
24029 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24030
24031 PR target/89229
24032 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
24033 upper 16 vector registers without TARGET_AVX512VL.
24034 (*movti_internal): Likewise.
24035
24036 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24037
24038 PR rtl-optimization/89234
24039 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
24040 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
24041 (copy_reg_eh_region_note_backward): Likewise.
24042
24043 2019-02-08 Richard Biener <rguenther@suse.de>
24044
24045 PR middle-end/89223
24046 * tree-data-ref.c (initialize_matrix_A): Fail if constant
24047 doesn't fit in HWI.
24048 (analyze_subscript_affine_affine): Handle failure from
24049 initialize_matrix_A.
24050
24051 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24052
24053 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
24054 cfun everywhere.
24055
24056 2019-02-07 David Malcolm <dmalcolm@redhat.com>
24057
24058 PR tree-optimization/86637
24059 PR tree-optimization/89235
24060 * tree-vect-loop.c (optimize_mask_stores): Add an
24061 auto_purge_vect_location sentinel to ensure that vect_location is
24062 purged on exit.
24063 * tree-vectorizer.c
24064 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
24065 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
24066 to ensure that vect_location is purged on exit.
24067 (pass_slp_vectorize::execute): Likewise, replacing the manual
24068 reset.
24069 * tree-vectorizer.h (class auto_purge_vect_location): New class.
24070
24071 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24072
24073 * config/aarch64/iterators.md (max_opp): New code_attr.
24074 (USMAX): New code iterator.
24075 * config/aarch64/predicates.md (aarch64_smin): New predicate.
24076 (aarch64_smax): Likewise.
24077 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
24078 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
24079 MINUS (MAX MIN).
24080
24081 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
24082
24083 PR target/89229
24084 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
24085 for TARGET_AVX512VL.
24086 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
24087
24088 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
24089
24090 * config/s390/s390-builtin-types.def: Add new types.
24091 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
24092 (s390_vec_xlw4): Make the memory operand into a const pointer.
24093 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
24094 float.
24095 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
24096 a new vector type with the alignment of the scalar memory operand.
24097
24098 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
24099 Jakub Jelinek <jakub@redhat.com>
24100
24101 PR bootstrap/88714
24102 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24103 arm_count_ldrdstrd_insns): New declarations.
24104 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24105 MINUS.
24106 (valid_operands_ldrd_strd): New function.
24107 (arm_count_ldrdstrd_insns): New function.
24108 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24109 sets instead of single DImode set and define new insns to match this.
24110
24111 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24112
24113 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24114 Make it a C initializer.
24115
24116 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24117
24118 PR/target 88850
24119 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24120
24121 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24122
24123 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24124 Use neon_dot<q> for type.
24125 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24126
24127 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24128
24129 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24130 Use neon_dot<q> for type.
24131 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24132 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24133
24134 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24135
24136 PR rtl-optimization/89225
24137 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24138 sizes check.
24139
24140 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24141
24142 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24143 after restoring registers saved to allocate the frame on Windows.
24144
24145 2019-02-06 Richard Biener <rguenther@suse.de>
24146
24147 PR tree-optimization/89182
24148 * graphite.h (cached_scalar_evolution_in_region): Declare.
24149 * graphite.c (struct seir_cache_key): New.
24150 (struct sese_scev_hash): Likewise.
24151 (seir_cache): New global.
24152 (cached_scalar_evolution_in_region): New function.
24153 (graphite_transform_loops): Allocate and release seir_cache.
24154 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24155 cached_scalar_evolution_in_region.
24156 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24157 Simplify.
24158 (scop_detection::graphite_can_represent_expr: Use
24159 cached_scalar_evolution_in_region.
24160 (scop_detection::stmt_simple_for_scop_p): Likewise.
24161 (find_params_in_bb): Likewise.
24162 (gather_bbs::before_dom_children): Likewise.
24163 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24164 (add_loop_constraints): Likewise.
24165
24166 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24167
24168 PR middle-end/89210
24169 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24170 operand to new_unary_operation only if both element types are integral
24171 and it isn't a widening conversion. Return NULL_TREE if
24172 new_unary_operation failed.
24173
24174 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24175
24176 PR target/88856
24177 * config/s390/s390.md: Remove load and test FP splitter.
24178
24179 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24180
24181 PR target/89112
24182 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24183 expand_compare_loop, expand_block_compare_gpr,
24184 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24185 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24186 #include "profile-count.h" and "predict.h" for types and functions
24187 needed to work with REG_BR_PROB notes.
24188
24189 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24190
24191 PR target/89112
24192 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24193 for the long branch case.
24194
24195 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24196
24197 PR target/89188
24198 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24199 can throw, non-call exceptions are enabled and we can't delete
24200 dead exceptions or alter cfg. Set must_clean if
24201 delete_insn_and_edges returns true, don't set it blindly for calls.
24202 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24203
24204 PR rtl-optimization/89195
24205 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24206 of the original MEM.
24207
24208 2019-02-05 Martin Liska <mliska@suse.cz>
24209
24210 PR gcov-profile/89000
24211 * gcov.c (function_summary): Remove argument.
24212 (file_summary): New function.
24213 (print_usage): Replace tabs with spaces.
24214 (generate_results): Use new function file_summary.
24215
24216 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24217
24218 PR target/89186
24219 * optabs.c (prepare_cmp_insn): Pass x and y to
24220 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24221
24222 2019-02-05 Richard Biener <rguenther@suse.de>
24223
24224 PR middle-end/89150
24225 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24226 (struct bitmap_element): Drop chain_prev so we properly recurse on
24227 the prev member, supporting tree views.
24228 (struct bitmap_head): GTY skip the obstack member.
24229
24230 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24231
24232 PR c/88698
24233 * doc/extend.texi (Vector Extensions): Add an example of using vector
24234 types together with x86 intrinsics.
24235
24236 2019-02-04 Alan Modra <amodra@gmail.com>
24237
24238 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24239 str[] size to 160, and comment.
24240
24241 2019-02-04 Alan Modra <amodra@gmail.com>
24242
24243 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24244 (rs6000_pltseq_template): Guard output of TLS markers with
24245 TARGET_TLS_MARKERS.
24246 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24247 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24248 to use inline PLT sequences.
24249 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24250 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24251 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24252
24253 2019-02-04 Martin Liska <mliska@suse.cz>
24254
24255 PR ipa/88985
24256 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24257 out when ipa_fn_summaries does not contain entry for callee.
24258
24259 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24260
24261 * config/sparc/sparc.h: Remove superfluous blank lines.
24262 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24263 (got_register_rtx): ...this.
24264 (sparc_got): Adjust to above renaming.
24265 (sparc_tls_got): Likewise.
24266 (sparc_delegitimize_address): Likewise.
24267 (sparc_output_mi_thunk): Likewise.
24268 (sparc_init_pic_reg): Likewise.
24269 (save_local_or_in_reg_p): Fix test on the GOT register.
24270 (USE_HIDDEN_LINKONCE): Move around.
24271 (get_pc_thunk_name): Likewise.
24272 (gen_load_pcrel_sym): Likewise.
24273 (load_got_register): Likewise.
24274
24275 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24276
24277 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24278 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24279
24280 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24281
24282 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24283 into consideration.
24284
24285 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24286
24287 * config.gcc (with_nds32_lib, glibc):
24288 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24289 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24290 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24291
24292 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24293
24294 PR target/89071
24295 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24296 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24297 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24298 (*rcpsf2_sse): Ditto.
24299 (*rsqrtsf2_sse): Ditto.
24300 (sse4_1_round<mode<2): Ditto.
24301
24302 2019-02-03 Richard Biener <rguenther@suse.de>
24303
24304 PR debug/87295
24305 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24306 orig.
24307
24308 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24309
24310 PR middle-end/87887
24311 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24312 Punt with warning on aggregate return or argument types. Ignore
24313 type/mode checking for uniform arguments.
24314
24315 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24316
24317 * combine.c (try_combine): Do not print "Can't combine" messages unless
24318 printing failed combination attempts.
24319
24320 2019-02-01 Martin Jambor <mjambor@suse.cz>
24321
24322 PR hsa/87863
24323 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24324 segment and global segment variables before making them static.
24325
24326 2019-02-01 Martin Jambor <mjambor@suse.cz>
24327
24328 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24329 missed optimization dump with dump_enabled_p.
24330
24331 2019-02-01 Richard Biener <rguenther@suse.de>
24332
24333 PR middle-end/88597
24334 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24335 the instantiate cache.
24336 (instantiate_scev_binary): Elide second operand procesing
24337 if equal to the first.
24338 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24339 (chrec_contains_undetermined): Likewise.
24340 (tree_contains_chrecs): Likewise.
24341
24342 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24343
24344 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24345
24346 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24347
24348 PR tree-optimization/89143
24349 * wide-int-range.h (wide_int_range_absu): Declare.
24350 * wide-int-range.cc (wide_int_range_absu): New function.
24351 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24352
24353 PR tree-optimization/88107
24354 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24355 instead of assertion that eh_region_outermost is non-NULL, if it
24356 is NULL, set *ALL to true and return NULL.
24357 (move_sese_region_to_fn): Adjust caller, if all is set, call
24358 duplicate_eh_regions with NULL region.
24359
24360 2019-02-01 Richard Biener <rguenth@suse.de>
24361
24362 PR rtl-optimization/88593
24363 * mode-switching.c (optimize_mode_switching): Free dominators before
24364 calling cleanup_cfg.
24365
24366 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24367
24368 PR tree-optimization/88932
24369 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24370
24371 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24372
24373 PR middle-end/89137
24374 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24375 bogus clang warning.
24376
24377 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24378
24379 PR target/89071
24380 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24381 alternative to avoid partial SSE register stall for TARGET_AVX.
24382 (truncdfsf2): Ditto.
24383 (sse4_1_round<mode>2): Ditto.
24384
24385 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24386
24387 PR tree-optimization/89008
24388 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24389 process anything of the form X * 0.
24390
24391 2019-01-31 Richard Biener <rguenther@suse.de>
24392
24393 PR tree-optimization/89135
24394 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24395 with abnormal preds.
24396
24397 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24398
24399 PR sanitizer/89124
24400 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24401 always_inline callees into no_sanitize_address callers.
24402
24403 2019-01-31 Richard Biener <rguenther@suse.de>
24404
24405 PR rtl-optimization/89115
24406 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24407
24408 2019-01-30 Martin Sebor <msebor@redhat.com>
24409
24410 PR other/89106
24411 * doc/extend.texi (cast to a union): Correct and expand.
24412
24413 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24414
24415 PR rtl-optimization/87246
24416 * lra-constraints.c (simplify_operand_subreg): Reload memory
24417 in subreg if the address became invalid.
24418
24419 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24420
24421 PR target/87064
24422 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24423 Disable for little-endian.
24424
24425 2019-01-30 Richard Biener <rguenther@suse.de>
24426
24427 PR rtl-optimization/89115
24428 * opts.c (default_options_optimization): Reduce
24429 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24430 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24431 to the default.
24432
24433 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24434
24435 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24436 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24437 type of vector element when vec_extract is implemented by direct
24438 move.
24439
24440 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24441
24442 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24443
24444 2019-01-30 Richard Biener <rguenther@suse.de>
24445
24446 PR tree-optimization/89111
24447 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24448 canonicalization to appropriately sized access types.
24449
24450 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24451
24452 PR c++/89105
24453 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24454 for arguments to functions that are TU-local and shouldn't be
24455 referenced by assembly.
24456
24457 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24458
24459 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24460 after '='.
24461
24462 2019-01-29 Martin Sebor <msebor@redhat.com>
24463
24464 PR c/88956
24465 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24466
24467 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24468
24469 PR c++/66676
24470 PR ipa/89104
24471 * omp-simd-clone.c (simd_clone_clauses_extract)
24472 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24473 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24474
24475 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24476
24477 * config.gcc: Force .init_array for ARC.
24478
24479 2019-01-29 Richard Biener <rguenther@suse.de>
24480
24481 PR debug/87295
24482 * dwarf2out.c (collect_skeleton_dies): New helper.
24483 (copy_decls_for_unworthy_types): Call it.
24484 (build_abbrev_table): Assert we do not try to replace
24485 DW_AT_signature refs with local refs.
24486
24487 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24488
24489 PR middle-end/89002
24490 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24491 for lastprivate/linear IV, push gimplify context around gimplify_assign
24492 and, if it needed any temporaries, pop it into a gimple bind around the
24493 sequence.
24494
24495 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24496
24497 * common.opt (-Wattribute-alias): Remove "no-" from name.
24498 Make -Wattribute-alias command line option and
24499 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24500
24501 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24502
24503 PR target/89073
24504 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24505 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24506 x86 ISA options.
24507 (bmi2): Add missing @opindex.
24508 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24509 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24510 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24511 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24512 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24513 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24514 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24515 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24516 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24517 xsavec, xsaveopt and xsaves options.
24518
24519 2019-01-28 Richard Biener <rguenther@suse.de>
24520
24521 PR debug/89076
24522 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24523 support removal.
24524
24525 2019-01-28 Richard Biener <rguenther@suse.de>
24526
24527 PR tree-optimization/88739
24528 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24529 BIT_FIELD_REFs only are applied to mode-precision operands
24530 when they are integral.
24531 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24532 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24533 BIT_FIELD_REFs of non-mode-precision integral operands.
24534
24535 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24536
24537 PR target/87214
24538 * config/i386/sse.md
24539 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24540 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24541 first constants in pairs are multiples of 2. Formatting fixes.
24542 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24543 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24544 first constants in each quadruple are multiples of 4. Formatting fixes.
24545
24546 2019-01-26 Martin Jambor <mjambor@suse.cz>
24547
24548 PR ipa/88933
24549 * tree-inline.c: Include tree-cfgcleanup.h.
24550 (delete_unreachable_blocks_update_callgraph): Move...
24551 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24552 ...here, make externally visible, make second argument bool, adjust
24553 all callers.
24554 * tree-cfgcleanup.c: Include cgraph.h.
24555 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24556 Declare.
24557 * ipa-prop.c: Include tree-cfgcleanup.h.
24558 (ipcp_transform_function): Call
24559 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24560
24561 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24562
24563 PR rtl-optimization/88846
24564 * ira.c (process_set_for_memref_referenced_p): New.
24565 (memref_referenced_p): Add new param. Use
24566 process_set_for_memref_referenced_p. Add new switch cases.
24567 (memref_used_between_p): Pass new arg to memref_referenced_p.
24568
24569 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24570
24571 PR target/88469
24572 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24573 argument ABI_BREAK. Set to true if the calculated alignment has
24574 changed in gcc-9. Check bit-fields for their base type alignment.
24575 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24576 (aarch64_function_arg_boundary): Likewise.
24577 (aarch64_gimplify_va_arg_expr): Likewise.
24578
24579 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24580
24581 PR middle-end/89037
24582 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24583 instead of accessing TREE_INT_CST_ELT directly.
24584
24585 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24586
24587 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24588 fenv_exceptions description.
24589
24590 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24591
24592 PR rtl-optimization/87763
24593 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24594 Allow SUBREG when matching CC_NZmode compare.
24595
24596 2019-01-25 Richard Biener <rguenther@suse.de>
24597
24598 PR tree-optimization/89049
24599 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24600 Look at the pattern stmt to determine if the stmt is vectorized.
24601
24602 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24603
24604 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24605 (pred_mov<mode>): Handle all-register forms using both a new
24606 alternative and a split.
24607
24608 2019-01-25 Richard Biener <rguenther@suse.de>
24609
24610 PR tree-optimization/86865
24611 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24612 Reject non-do-while loops.
24613
24614 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24615
24616 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24617 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24618 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24619 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24620 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24621 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24622 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24623 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24624 vlogical_operand, gpc_reg_operand, int_reg_operand,
24625 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24626 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24627 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24628 (save_world_operation, restore_world_operation, lmw_operation,
24629 stmw_operation): Use MEM_P and REG_P.
24630 (tie_operand): Use MEM_P.
24631 (vrsave_operation, crsave_operation): Use REG_P.
24632 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24633 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24634 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24635 (call_operand): Use HARD_REGISTER_P.
24636 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24637 Use CONST_INT_P.
24638 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24639 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24640 quad_aligned_load_p, replace_swapped_aligned_store,
24641 recombine_lvx_pattern, replace_swapped_aligned_load,
24642 recombine_stvx_pattern): Use MEM_P.
24643 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24644 Use MEM_P and SYMBOL_REF_P.
24645 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24646 (insn_is_swappable_p): Use REG_P and MEM_P.
24647 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24648 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24649 Use CONST_INT_P.
24650 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24651 Use CONST_DOUBLE_P.
24652 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24653 CONST_WIDE_INT_P.
24654 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24655 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24656 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24657 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24658 reg_or_subregno:
24659 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24660 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24661 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24662 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24663 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24664 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24665 rs6000_split_logical_di): Use CONST_INT_P.
24666 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24667 REG_P and SYMBOL_REF_P.
24668 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24669 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24670 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24671 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24672 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24673 (small_data_operand, print_operand_address): Use CONST_INT_P and
24674 SYMBOL_REF_P.
24675 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24676 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24677 Use HARD_REGISTER_NUM_P.
24678 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24679 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24680 SUBREG_P and SYMBOL_REF_P.
24681 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24682 and HARD_REGISTER_NUM_P.
24683 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24684 reg_or_subregno.
24685 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24686 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24687 MEM_P and REG_P.
24688 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24689 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24690 find_addr_reg): Use REG_P.
24691 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24692 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24693 (offsettable_ok_by_alignment, constant_pool_expr_p,
24694 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24695 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24696 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24697 rs6000_assemble_integer, create_TOC_reference,
24698 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24699 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24700 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24701 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24702 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24703 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24704 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24705 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24706 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24707 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24708 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24709 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24710 and cbranch<mode>4): Use CONST_INT_P.
24711 (multiple define_splits): Use REG_P and SUBREG_P.
24712 (define_expands call, call_value): Use MEM_P.
24713 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24714 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24715 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24716 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24717 and HARD_REGISTER_NUM_P.
24718 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24719
24720 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24721
24722 PR rtl-optimization/88948
24723 * rtl.h (prepare_copy_insn): New prototype.
24724 * gcse.c (prepare_copy_insn): New function, split out from
24725 process_insert_insn.
24726 (process_insert_insn): Use prepare_copy_insn.
24727 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24728 instead of gen_move_insn.
24729
24730 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24731
24732 PR debug/89006
24733 * config/i386/i386.c (ix86_pic_register_p): Return true for
24734 UNSPEC_SET_GOT too.
24735
24736 PR tree-optimization/88964
24737 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24738 punt if HONOR_SNANS (chrec).
24739
24740 PR middle-end/89015
24741 * tree-nested.c (convert_nonlocal_reference_stmt,
24742 convert_local_reference_stmt, convert_tramp_reference_stmt,
24743 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24744 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24745 or GIMPLE_OMP_TASK.
24746
24747 PR tree-optimization/89027
24748 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24749 for "omp simd array" variables.
24750
24751 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24752
24753 PR target/88469
24754 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24755 force the alignment of m_val.
24756
24757 2019-01-24 Richard Biener <rguenther@suse.de>
24758
24759 PR lto/87187
24760 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24761 When in "legacy" debug mode make sure to reset self-origins.
24762
24763 2019-01-24 Martin Liska <mliska@suse.cz>
24764
24765 PR gcov-profile/88994
24766 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24767 result will be always smaller or equal to the original.
24768 * gcov.c (mangle_name): Fix else branch where we should
24769 also copy to PTR and shift the pointer.
24770
24771 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24772
24773 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24774 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24775
24776 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24777
24778 * common/config/i386/i386-common.c
24779 (OPTION_MASK_ISA_ENQCMD_SET,
24780 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24781 (ix86_handle_option): Handle -menqcmd.
24782 * config.gcc (enqcmdintrin.h): New header file.
24783 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24784 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24785 -menqcmd.
24786 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24787 function type.
24788 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24789 __builtin_ia32_enqcmds): New builtins.
24790 * config/i386/i386-c.c (__ENQCMD__): New macro.
24791 * config/i386/i386-option.c (ix86_target_string): Add
24792 -menqcmd.
24793 (ix86_valid_target_attribute_inner_p): Likewise.
24794 * config/i386/i386-expand.c
24795 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24796 IX86_BUILTIN_ENQCMDS.
24797 * config/i386/i386.h (TARGET_ENQCMD): New.
24798 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24799 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24800 (movdir64b_<mode>): Parameterize to enable share expansion code
24801 with ENQCMD in function ix86_expand_builtin.
24802 * config/i386/i386.opt: Add -menqcmd.
24803 * config/i386/immintrin.h: Include enqcmdintrin.h.
24804 * config/i386/enqcmdintrin.h: New intrinsic file.
24805 * doc/invoke.texi: Add -menqcmd.
24806
24807 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24808 Steve Ellcey <sellcey@marvell.com>
24809
24810 PR target/85711
24811 * recog.c (address_operand): Return false on wrong mode for address.
24812 (constrain_operands): Check for mode with 'p' constraint.
24813
24814 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24815
24816 PR target/88998
24817 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24818 Disparage MMX alternative.
24819 (sse2_cvtpd2pi): Ditto.
24820 (sse2_cvttpd2pi): Ditto.
24821
24822 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24823
24824 PR driver/89014
24825 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24826 use-after-free of the result of
24827 aarch64_get_extension_string_for_isa_flags.
24828
24829 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24830
24831 PR c/44715
24832 * doc/extend.texi: Document break and continue behavior in
24833 statement expressions.
24834
24835 2019-01-23 Richard Biener <rguenther@suse.de>
24836
24837 PR tree-optimization/89008
24838 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24839 not leave another stray operand.
24840
24841 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24842
24843 * BASE-VER: Bump to 9.0.1.
24844
24845 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24846
24847 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24848 thunk that returns by reference, use the type of the return object
24849 of the thunk instead of that of the alias to build the dereference.
24850
24851 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24852
24853 * config/arc/atomic.md: Add operand to DMB instruction.
24854
24855 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24856
24857 PR tree-optimization/88964
24858 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24859 build_zero_cst instead of build_int_cst. Return false for loop
24860 invariants which honor signed zeros.
24861
24862 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24863
24864 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24865
24866 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24867
24868 PR target/88965
24869 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24870 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24871 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24872
24873 PR middle-end/88968
24874 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24875 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24876
24877 PR target/87064
24878 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24879 Disable for little endian.
24880
24881 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24882
24883 PR target/88469
24884 * config/arm/arm.c (arm_needs_double_word_align): Check
24885 DECL_BIT_FIELD_TYPE.
24886
24887 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24888 H.J. Lu <hongjiu.lu@intel.com>
24889
24890 PR target/88909
24891 * config/i386/i386-builtin.def: Add mask2 to all builtin
24892 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24893 SPECIAL_ARGS.
24894 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24895 (BDESC_FIRST): Likewise.
24896 (define_builtin): Add an argument for mask2. Updated to handle
24897 both ix86_isa_flags and ix86_isa_flags2.
24898 (define_builtin_const): Likewise.
24899 (define_builtin_pure): Likewise.
24900 (define_builtin2): Deleted.
24901 (define_builtin_const2): Likewise.
24902 (builtin_description): Add a member, mask2.
24903 (bdesc_*): Add mask2 to builtin initializations.
24904 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24905 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24906 support.
24907 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24908
24909 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24910
24911 PR target/88954
24912 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24913 noplt attribute.
24914
24915 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24916
24917 PR target/88469
24918 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24919 alignment is dominated by a bitfield with 64-bit aligned base type.
24920 (arm_function_arg): Emit a warning if the alignment has changed since
24921 earlier GCC releases.
24922 (arm_function_arg_boundary): Likewise.
24923 (arm_setup_incoming_varargs): Likewise.
24924
24925 2019-01-22 Richard Biener <rguenther@suse.de>
24926
24927 PR tree-optimization/88862
24928 * graphite-scop-detection.c
24929 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24930
24931 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24932
24933 * doc/extend.tex (AMD GCN Function Attributes): New section.
24934 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24935 * doc/invoke.texi (AMD GCN Options): New section.
24936 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24937
24938 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24939
24940 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24941 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24942
24943 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24944
24945 PR tree-optimization/88044
24946 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24947 is false in the first iteration, but !every_iteration, return false
24948 instead of true with niter->niter zero.
24949
24950 PR rtl-optimization/88904
24951 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24952 any nonequal registers before processing BB_END (b).
24953
24954 PR target/88905
24955 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24956 GET_MODE (op0).
24957 (expand_binop_directly, expand_doubleword_clz,
24958 expand_doubleword_popcount, expand_ctz, expand_ffs,
24959 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24960
24961 PR rtl-optimization/49429
24962 PR target/49454
24963 PR rtl-optimization/86334
24964 PR target/88906
24965 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24966 addressable from here...
24967 (emit_block_op_via_libcall): ... to here.
24968
24969 2019-01-22 Richard Biener <rguenther@suse.de>
24970
24971 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24972 auto_vec for cost vector to fix memleak.
24973 (vectorize_fold_left_reduction): Properly gather SLP defs.
24974 (vectorizable_comparison): Do not swap operands to properly
24975 gather SLP defs.
24976
24977 2019-01-22 Alan Modra <amodra@gmail.com>
24978
24979 PR target/88614
24980 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24981 stays a reg. Allow a const_int.
24982 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24983 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24984 (IS_NOMARK_TLSGETADDR): Define.
24985 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24986 (rs6000_output_tlsargs): New function.
24987 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24988 __tls_get_addr call takes an arg.
24989 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24990 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24991 delete split..
24992 (call_value_nonlocal_sysv): ..or here, delete split.
24993 (tls_gdld_nomark): Delete.
24994 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24995 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24996 (call_value_nonlocal_sysv): Likewise.
24997 (call_value_nonlocal_sysv_secure): Likewise.
24998 (call_value_nonlocal_aix): Likewise.
24999 (call_value_indirect_aix): Likewise.
25000 (call_value_indirect_elfv2): Likewise.
25001 (call_value_local32, call_value_local64): Disable for no-mark tls.
25002 (call_value_local_aix): Likewise.
25003
25004 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
25005
25006 PR target/88938
25007 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
25008 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
25009
25010 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
25011
25012 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
25013 string contents as hash_map keys.
25014
25015 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25016
25017 PR c/88928
25018 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
25019 for rvalue context. Handle rvalues correctly. Use min_align_of_type
25020 instead of TYPE_ALIGN.
25021 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
25022 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
25023 pointer from TYPE_STUB_DECL.
25024
25025 2019-01-21 Richard Biener <rguenther@suse.de>
25026
25027 PR tree-optimization/88934
25028 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
25029 at the possibly non-constant operand.
25030 (vect_get_constant_vectors): Adjust.
25031
25032 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
25033
25034 PR target/71659
25035 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
25036 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
25037 instead of _X86INTRIN_H_INCLUDED.
25038 * onfig/i386/clwbintrin.h: Likewise.
25039 * config/i386/pkuintrin.h: Likewise.
25040 * config/i386/prfchwintrin.h: Likewise.
25041 * config/i386/rdseedintrin.h: Likewise.
25042 * config/i386/wbnoinvdintrin.h: Likewise.
25043 * config/i386/xsavecintrin.h: Likewise.
25044 * config/i386/xsavesintrin.h: Likewise.
25045 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
25046 * config/i386/xsaveintrin.h: Likewise.
25047 * config/i386/xsaveoptintrin.h: Likewise.
25048 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
25049 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
25050 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
25051 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
25052 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
25053 * config/i386/immintrin.h: Here.
25054
25055 2019-01-20 Martin Jambor <mjambor@suse.cz>
25056
25057 PR ipa/87615
25058 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
25059 with aa_walk_budget.
25060 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
25061 aa_walk_budget_p parameter.
25062 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
25063 walk. Updated all callers.
25064 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
25065 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
25066 unmodified_parm.
25067 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
25068 parameter info. Extract info from fbi. Pass fbi to recursive calls
25069 and to unmodified_parm.
25070 (phi_result_unknown_predicate): New parameter fbi, removed parameter
25071 info, updated call to will_be_nonconstant_expr_predicate.
25072 (param_change_prob): New parameter fbi, limit AA walking.
25073 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
25074 calls to various above functions.
25075 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
25076 parameter. Use it to limit AA walking.
25077 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
25078 fbi, limit AA walk.
25079 (detect_type_change): New parameter fbi, pass it on to
25080 detect_type_change_from_memory_writes.
25081 (detect_type_change_ssa): Likewise.
25082 (aa_overwalked): Removed.
25083 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
25084 accordingly, adjust to the neew AA limiting scheme.
25085 (parm_ref_data_preserved_p): Likewise.
25086 (ipa_compute_jump_functions_for_edge): Adjust call to
25087 get_dynamic_type.
25088 (ipa_analyze_call_uses): Likewise.
25089 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
25090 (ipa_analyze_node): Initialize aa_walk_budget.
25091 (ipcp_transform_function): Likewise.
25092 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
25093 to get_dynamic_type.
25094
25095 2019-01-19 Jakub Jelinek <jakub@redhat.com>
25096
25097 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
25098 outside of #if CHECKING_P code.
25099
25100 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25101
25102 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25103 New function, split out from...
25104 (loop_versioning::analyze_stride): ...here.
25105 (loop_versioning::find_per_loop_multiplication): Use gassign.
25106 (loop_versioning::analyze_term_using_scevs): Return a success code.
25107 (loop_versioning::analyze_arbitrary_term): New function.
25108 (loop_versioning::analyze_address_fragment): Use
25109 analyze_arbitrary_term if all else fails.
25110
25111 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25112
25113 PR target/88892
25114 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25115 operands.
25116
25117 2019-01-18 Richard Biener <rguenther@suse.de>
25118
25119 PR tree-optimization/88903
25120 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25121 scalar stmts a SLP shift amount is composed of when detecting
25122 shifts by scalars.
25123
25124 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25125
25126 PR target/88799
25127 * config/arm/arm-cpus.in (mp): New feature.
25128 (sec): New feature.
25129 (fgroup ARMv7ve): Add mp and sec features.
25130 (arch armv7-a): Add options to allow mp and sec extensions.
25131 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25132 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25133 extenstions to the base architecture.
25134 (cpu cortex-a8): Add sec extension to the base architecture.
25135 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25136 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25137 variants down to the base v7-a varaint.
25138 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25139 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25140 of permitted extensions for -march=armv7-a and for
25141 -mcpu=generic-armv7-a.
25142
25143 2019-01-18 Martin Liska <mliska@suse.cz>
25144
25145 * params.def: Fix comment.
25146 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25147 name.
25148 (gimple_gen_ic_func_profiler): Likewise.
25149
25150 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25151
25152 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25153 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25154 and put in error checks for stack protector guard options.
25155 (aarch64_stack_protect_guard): New.
25156 (TARGET_STACK_PROTECT_GUARD): Define.
25157 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25158 (reg_stack_protect_address<mode>): New.
25159 (stack_protect_set): Adjust for SSP_GLOBAL.
25160 (stack_protect_test): Likewise.
25161 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25162 (-mstack-protector-guard): Likewise.
25163 (-mstack-protector-guard-offset): Likewise.
25164
25165 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25166
25167 PR tree-optimization/86214
25168 * tree-inline.h (struct copy_body_data): Add
25169 add_clobbers_to_eh_landing_pads member.
25170 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25171 (copy_edges_for_bb): Call it if EH edge destination is <
25172 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25173 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25174 if flag_stack_reuse != SR_NONE and clear it afterwards.
25175
25176 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25177
25178 PR target/85596
25179 * doc/install.texi (with-multilib-list): Document for aarch64.
25180
25181 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25182
25183 PR target/88734
25184 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25185 (("..."))) with ("...").
25186
25187 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25188
25189 * doc/extend.texi (Built-in Functions for Memory Model Aware
25190 Atomic Operations): Document atomic fetch and nand.
25191
25192 2019-01-18 Martin Liska <mliska@suse.cz>
25193 Richard Biener <rguenther@suse.de>
25194
25195 PR middle-end/88587
25196 * cgraph.h (create_version_clone_with_body): Add new argument
25197 with attributes.
25198 * cgraphclones.c (cgraph_node::create_version_clone): Add
25199 DECL_ATTRIBUTES to a newly created decl. And call
25200 valid_attribute_p so that proper cl_target_optimization_node
25201 is set for the newly created declaration.
25202 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25203 for declaration.
25204 (expand_target_clones): Do not call valid_attribute_p, it must
25205 be already done.
25206 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25207 vector types.
25208
25209 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25210
25211 PR target/88734
25212 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25213 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25214 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25215
25216 2019-01-17 Martin Sebor <msebor@redhat.com>
25217
25218 PR middle-end/88273
25219 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25220 Handle anti-ranges the same as no range at all.
25221
25222 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25223
25224 * config/aarch64/aarch64.c (cgraph.h): New include.
25225 (intl.h): New include.
25226 (supported_simd_type): New function.
25227 (currently_supported_simd_type): Ditto.
25228 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25229 (aarch64_simd_clone_adjust): Ditto.
25230 (aarch64_simd_clone_usable): Ditto.
25231 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25232 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25233 (TARGET_SIMD_CLONE_USABLE): Ditto.
25234 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25235 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25236 call.
25237
25238 2019-01-17 Martin Sebor <msebor@redhat.com>
25239
25240 PR tree-optimization/88800
25241 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25242 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25243 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25244 redundant argument. Add new argument and issue diagnostics under
25245 its control. Detect out-of-bounds access even with warnings
25246 disabled.
25247 (check_bounds_or_overlap): Change return type. Add argument.
25248 (wrestrict_dom_walker::check_call): Adjust.
25249 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25250 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25251 check_bounds_or_overlap's return value.
25252 (handle_builtin_stxncpy): Same.
25253 (handle_builtin_strcat): Same.
25254
25255 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25256 Kwok Cheung Yeung <kcy@codesourcery.com>
25257 Julian Brown <julian@codesourcery.com>
25258 Tom de Vries <tom@codesourcery.com>
25259
25260 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25261
25262 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25263
25264 * doc/sourcebuild.texi: Document dg-require-effective-target
25265 llvm_binutils and offload_gcn.
25266
25267 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25268 Kwok Cheung Yeung <kcy@codesourcery.com>
25269 Julian Brown <julian@codesourcery.com>
25270 Tom de Vries <tom@codesourcery.com>
25271
25272 * doc/sourcebuild.texi: Document dg-required-effective-target
25273 exceptions.
25274
25275 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25276 Kwok Cheung Yeung <kcy@codesourcery.com>
25277 Julian Brown <julian@codesourcery.com>
25278 Tom de Vries <tom@codesourcery.com>
25279 Jan Hubicka <hubicka@ucw.cz>
25280 Martin Jambor <mjambor@suse.cz>
25281
25282 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25283 * configure.ac: Check for dlopen.
25284 * configure: Regenerate.
25285
25286 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25287 Kwok Cheung Yeung <kcy@codesourcery.com>
25288 Julian Brown <julian@codesourcery.com>
25289 Tom de Vries <tom@codesourcery.com>
25290 Jan Hubicka <hubicka@ucw.cz>
25291 Martin Jambor <mjambor@suse.cz>
25292
25293 * common/config/gcn/gcn-common.c: New file.
25294 * config/gcn/driver-gcn.c: New file.
25295 * config/gcn/gcn-builtins.def: New file.
25296 * config/gcn/gcn-hsa.h: New file.
25297 * config/gcn/gcn-modes.def: New file.
25298 * config/gcn/gcn-opts.h: New file.
25299 * config/gcn/gcn-passes.def: New file.
25300 * config/gcn/gcn-protos.h: New file.
25301 * config/gcn/gcn-run.c: New file.
25302 * config/gcn/gcn-tree.c: New file.
25303 * config/gcn/gcn.c: New file.
25304 * config/gcn/gcn.h: New file.
25305 * config/gcn/gcn.opt: New file.
25306 * config/gcn/t-gcn-hsa: New file.
25307
25308 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25309 Kwok Cheung Yeung <kcy@codesourcery.com>
25310 Julian Brown <julian@codesourcery.com>
25311 Tom de Vries <tom@codesourcery.com>
25312 Jan Hubicka <hubicka@ucw.cz>
25313 Martin Jambor <mjambor@suse.cz>
25314
25315 * config/gcn/constraints.md: New file.
25316 * config/gcn/gcn-valu.md: New file.
25317 * config/gcn/gcn.md: New file.
25318 * config/gcn/predicates.md: New file.
25319
25320 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25321
25322 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25323 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25324 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25325 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25326
25327 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25328
25329 PR target/88851
25330 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25331 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25332 it and document registers.
25333
25334 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25335
25336 * config/aarch64/aarch64.c (ares_tunings): Define.
25337 * config/aarch64/aarch64-cores.def (ares): Use the above.
25338
25339 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25340
25341 PR target/88794
25342 Revert:
25343 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25344
25345 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25346 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25347 (_mm512_maskz_fixupimm_round_pd): Ditto.
25348 (_mm512_fixupimm_round_ps): Ditto.
25349 (_mm512_maskz_fixupimm_round_ps): Ditto.
25350 (_mm_fixupimm_round_sd): Ditto.
25351 (_mm_maskz_fixupimm_round_sd): Ditto.
25352 (_mm_fixupimm_round_ss): Ditto.
25353 (_mm_maskz_fixupimm_round_ss): Ditto.
25354 (_mm512_fixupimm_pd): Ditto.
25355 (_mm512_maskz_fixupimm_pd): Ditto.
25356 (_mm512_fixupimm_ps): Ditto.
25357 (_mm512_maskz_fixupimm_ps): Ditto.
25358 (_mm_fixupimm_sd): Ditto.
25359 (_mm_maskz_fixupimm_sd): Ditto.
25360 (_mm_fixupimm_ss): Ditto.
25361 (_mm_maskz_fixupimm_ss): Ditto.
25362 (_mm512_mask_fixupimm_round_pd): Update builtin.
25363 (_mm512_mask_fixupimm_round_ps): Ditto.
25364 (_mm_mask_fixupimm_round_sd): Ditto.
25365 (_mm_mask_fixupimm_round_ss): Ditto.
25366 (_mm512_mask_fixupimm_pd): Ditto.
25367 (_mm512_mask_fixupimm_ps): Ditto.
25368 (_mm_mask_fixupimm_sd): Ditto.
25369 (_mm_mask_fixupimm_ss): Ditto.
25370 * config/i386/avx512vlintrin.h:
25371 (_mm256_fixupimm_pd): Update parameters and builtin.
25372 (_mm256_maskz_fixupimm_pd): Ditto.
25373 (_mm256_fixupimm_ps): Ditto.
25374 (_mm256_maskz_fixupimm_ps): Ditto.
25375 (_mm_fixupimm_pd): Ditto.
25376 (_mm_maskz_fixupimm_pd): Ditto.
25377 (_mm_fixupimm_ps): Ditto.
25378 (_mm_maskz_fixupimm_ps): Ditto.
25379 (_mm256_mask_fixupimm_pd): Update builtin.
25380 (_mm256_mask_fixupimm_ps): Ditto.
25381 (_mm_mask_fixupimm_pd): Ditto.
25382 (_mm_mask_fixupimm_ps): Ditto.
25383 * config/i386/i386-builtin-types.def: Add new types and remove
25384 useless ones.
25385 * config/i386/i386-builtin.def: Update builtin definitions.
25386 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25387 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25388 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25389 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25390 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25391 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25392 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25393 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25394 * config/i386/subst.md:
25395 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25396 (round_saeonly_sd_mask_op4): Ditto.
25397 (round_saeonly_expand_operand5): Ditto.
25398 (round_saeonly_expand): Update.
25399
25400 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25401
25402 PR target/88794
25403 Revert:
25404 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25405
25406 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25407 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25408 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25409 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25410 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25411 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25412 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25413
25414 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25415
25416 PR target/88794
25417 Revert:
25418 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25419
25420 PR target/88489
25421 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25422 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25423 instead of UNSPEC_FIXUPIMM.
25424
25425 2019-01-17 Richard Biener <rguenther@suse.de>
25426
25427 PR lto/86736
25428 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25429 and friends for the LTO part of debug info.
25430
25431 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25432
25433 PR tree-optimization/86214
25434 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25435 if x == y.
25436
25437 PR rtl-optimization/88870
25438 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25439 throw if we can't alter the cfg or delete dead exceptions.
25440 (mark_insn): Don't call find_call_stack_args for such calls.
25441
25442 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25443
25444 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25445 prototypes for vec_st.
25446 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25447 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25448 mainly on signed/unsigned long long and double.
25449
25450 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25451
25452 PR target/88861
25453 * combine.c (delete_noop_moves): Convert to "bool" return,
25454 returning true if any edges are eliminated.
25455 (combine_instructions): Also return true if delete_noop_moves
25456 returns true.
25457
25458 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25459
25460 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25461 correct max nunits for endian swap.
25462 (aarch64_expand_fcmla_builtin): Correct subreg code.
25463 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25464 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25465 lane endianness.
25466
25467 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25468
25469 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25470 Handle split indirect COMPLEX_TYPE arguments.
25471
25472 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25473
25474 PR target/86891
25475 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25476 bit is set by add and compare.
25477 (CC_ADC): New CC_MODE.
25478 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25479 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25480 comparison. Add detection for CC_ADCmode.
25481 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25482 CC_ADCmode.
25483 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25484 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25485 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25486 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25487 to eliminate the need for zero-extending the operands.
25488 (add<mode>3_compareC_imm): Delete. Merge into ...
25489 (add<mode>3_compareC): ... this. Restructure the comparison to
25490 eliminate the need for zero-extending the operands.
25491 (add<mode>3_carryin): Use LTU for the overflow detection.
25492 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25493 Reexpress comparison for overflow.
25494 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25495 (add<mode>3_carryinC): Likewise.
25496 (add<mode>3_carryinV): Use LTU for carry between partials.
25497 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25498 handling of CC_Cmode and add CC_ADCmode.
25499 (aarch64_borrow_operation): Likewise.
25500
25501 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25502
25503 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25504 Remove patternmode.
25505 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25506 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25507 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25508 Remove endianness conversion.
25509
25510 2019-01-16 Martin Liska <mliska@suse.cz>
25511
25512 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25513 for GCC driver.
25514 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25515 a new argument.
25516 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25517 (path_prefix_reset): Move up in the source file.
25518 (find_fortran_preinclude_file): Make complex search for the
25519 fortran header files.
25520
25521 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25522
25523 * godump.c (go_output_typedef): When outputting a typedef, refer
25524 to the underlying type by its name and not its structure.
25525
25526 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25527
25528 PR c++/88795
25529 * tree.c (build_function_type): Assert that arg_types is not
25530 error_mark_node.
25531
25532 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25533
25534 PR inline-asm/52813
25535 * doc/extend.texi: Document that listing the stack pointer in the
25536 clobber list of an asm is a deprecated feature.
25537 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25538 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25539 warning instead of an error for clobbers of the stack pointer.
25540 Add a note explaining why.
25541
25542 2019-01-15 Richard Biener <rguenther@suse.de>
25543
25544 PR debug/88046
25545 * dwarf2out.c (gen_member_die): Do not generate inheritance
25546 DIEs late.
25547
25548 2019-01-15 Richard Biener <rguenther@suse.de>
25549
25550 PR tree-optimization/88855
25551 * tree-if-conv.c (combine_blocks): Collect
25552 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25553
25554 2019-01-15 Tom de Vries <tdevries@suse.de>
25555
25556 PR target/80547
25557 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25558 lhs == NULL_TREE for gang-level reduction.
25559
25560 2019-01-15 Richard Biener <rguenther@suse.de>
25561 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25562
25563 PR ipa/88788
25564 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25565 return true if SSA_NAME is already marked in visited bitmap.
25566 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25567
25568 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25569
25570 PR tree-optimization/88775
25571 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25572 equal == 0 equality pointer comparisons some more if compared in
25573 integral types and either one points to an automatic var and the
25574 other to a global, or we can prove at least one points to the middle
25575 or both point to start or both point to end.
25576
25577 2019-01-14 Andi Kleen <ak@linux.intel.com>
25578
25579 * Makefile.in: Lower autofdo sampling rate by 10x.
25580 * Makefile.tpl: Dito.
25581
25582 2019-01-14 Tom Honermann <tom@honermann.net>
25583
25584 * defaults.h: Define CHAR8_TYPE.
25585
25586 2019-01-14 Martin Sebor <msebor@redhat.com>
25587
25588 PR target/88638
25589 * doc/extend.texi (Darwin Format Checks): Clarify.
25590
25591 2019-01-14 Richard Biener <rguenther@suse.de>
25592
25593 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25594 whether we are in (simplify ...) or (match ...) context.
25595
25596 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25597
25598 PR rtl-optimization/88796
25599 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25600 * cfgexpand.c (stack_protect_prologue): Initialize
25601 crtl->stack_protect_guard_decl.
25602 * function.c (stack_protect_epilogue): Use it instead of calling
25603 targetm.stack_protect_guard again.
25604 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25605 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25606 crtl->stack_protect_guard_decl.
25607 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25608 on the returned MEM_EXPR.
25609
25610 2019-01-12 Tom de Vries <tdevries@suse.de>
25611
25612 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25613 vector length using -fopenacc-dim.
25614
25615 2019-01-12 Tom de Vries <tdevries@suse.de>
25616
25617 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25618 lengths into account.
25619
25620 2019-01-12 Svante Signell <svante.signell@gmail.com>
25621
25622 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25623 (TARGET_CAN_SPLIT_STACK): Define.
25624 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25625
25626 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25627
25628 * params.def (inline-unit-growth): Set to 40.
25629
25630 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25631
25632 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25633
25634 2019-01-12 Tom de Vries <tdevries@suse.de>
25635
25636 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25637 region calling vector-partitionable routine, set default_vector_length
25638 to WARP_SIZE.
25639
25640 2019-01-12 Tom de Vries <tdevries@suse.de>
25641
25642 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25643 variable default_vector_length.
25644
25645 2019-01-12 Tom de Vries <tdevries@suse.de>
25646
25647 PR middle-end/88703
25648 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25649 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25650 dimensions limits.
25651
25652 2019-01-12 Tom de Vries <tdevries@suse.de>
25653
25654 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25655 (nvptx_goacc_validate_dims): Add used parameter.
25656 * doc/tm.texi: Regenerate.
25657 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25658 argument to call to targetm.goacc.validate_dims.
25659 (default_goacc_validate_dims): Add used
25660 parameter.
25661 * target.def (validate_dims): Add used parameter in DEFHOOK.
25662 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25663
25664 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25665
25666 PR middle-end/85956
25667 PR lto/88733
25668 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25669 field.
25670 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25671 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25672 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25673 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25674
25675 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25676
25677 PR rtl-optimization/87305
25678 * lra-assigns.c
25679 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25680 for little endian pseudos used as paradoxical subreg.
25681
25682 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25683
25684 PR tree-optimization/88693
25685 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25686 for STRING_CSTs that don't contain any NUL characters in the first
25687 TREE_STRING_LENGTH bytes.
25688
25689 2019-01-11 Alan Modra <amodra@gmail.com>
25690
25691 PR 88777
25692 PR 88614
25693 * genattrtab.c (min_fn): Don't translate values.
25694 (min_attr_value): Return INT_MAX when the value can't be calculated.
25695 Return minimum among any values that can be calculated.
25696 (max_attr_value): Adjust.
25697
25698 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25699
25700 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25701
25702 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25703
25704 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25705 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25706 (aarch64_return_call_with_max_clobbers): New function.
25707 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25708 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25709 argument.
25710 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25711 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25712 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25713 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25714 * cselib.c (cselib_process_insn): Add argument to
25715 targetm.hard_regno_call_part_clobbered call.
25716 * ira-conflicts.c (ira_build_conflicts): Ditto.
25717 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25718 * lra-constraints.c (inherit_reload_reg): Ditto.
25719 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25720 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25721 argument. Call targetm.return_call_with_max_clobbers.
25722 Add argument to targetm.hard_regno_call_part_clobbered call.
25723 (calls_have_same_clobbers_p): New function.
25724 (process_bb_lives): Add call_insn and last_call_insn variables.
25725 Pass call_insn to check_pseudos_live_through_calls.
25726 Modify if stmt to check targetm.return_call_with_max_clobbers.
25727 Update setting of flush variable.
25728 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25729 to false.
25730 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25731 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25732 targetm.hard_regno_call_part_clobbered call.
25733 * reginfo.c (choose_hard_reg_mode): Ditto.
25734 * regrename.c (check_new_reg_p): Ditto.
25735 * reload.c (find_equiv_reg): Ditto.
25736 * reload1.c (emit_reload_insns): Ditto.
25737 * sched-deps.c (deps_analyze_insn): Ditto.
25738 * sel-sched.c (init_regs_for_mode): Ditto.
25739 (mark_unavailable_hard_regs): Ditto.
25740 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25741 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25742 (return_call_with_max_clobbers): New target function.
25743 * doc/tm.texi: Regenerate.
25744 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25745 * hooks.c (hook_bool_uint_mode_false): Change to
25746 hook_bool_insn_uint_mode_false.
25747 * hooks.h (hook_bool_uint_mode_false): Ditto.
25748
25749 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25750
25751 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25752 (aarch64_remove_extra_call_preserved_regs): New function.
25753 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25754 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25755 * doc/tm.texi: Regenerate.
25756 * final.c (get_call_reg_set_usage): Call new hook.
25757 * target.def (remove_extra_call_preserved_regs): New hook.
25758 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25759 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25760
25761 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25762
25763 PR bootstrap/88714
25764 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25765 inside of pass_combine_1 dump rather than pass_profile_1.
25766
25767 2019-01-11 Tom de Vries <tdevries@suse.de>
25768
25769 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25770 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25771 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25772 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25773 num_workers 16.
25774
25775 2019-01-11 Tom de Vries <tdevries@suse.de>
25776
25777 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25778
25779 2019-01-11 Jan Beulich <jbeulich@suse.com>
25780
25781 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25782 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25783 sse2_cvtsi2sd): Add {l}.
25784 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25785 syntax.
25786
25787 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25788
25789 PR target/88785
25790 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25791 define_expand.
25792 (*float<floatunssuffix>v2div2sf2): New define_insn.
25793 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25794 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25795 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25796 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25797 match_operands with "const0_operand" "C".
25798
25799 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25800
25801 * config/aarch64/aarch64-builtins.c
25802 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25803 (aarch64_init_simd_builtins): ...Here
25804
25805 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25806
25807 PR rtl-optimization/87305
25808 * lra-assigns.c
25809 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25810 allocation for big endian pseudos used as paradoxical subregs and
25811 spill them if it is wrong.
25812 * lra-constraints.c (lra_constraints): Add a comment.
25813
25814 2019-01-10 Richard Biener <rguenther@suse.de>
25815
25816 PR tree-optimization/88792
25817 * tree-ssa-pre.c (get_representative_for): Do not return a
25818 value-number here.
25819
25820 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25821
25822 PR middle-end/84877
25823 PR bootstrap/88450
25824 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25825 (assign_parm_setup_block): Do the argument slot realignment here
25826 instead.
25827
25828 2019-01-10 Stefan Agner <stefan@agner.ch>
25829
25830 PR target/88648
25831 * config/arm/arm.c (arm_option_override_internal): Force
25832 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25833
25834 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25835
25836 PR c/88568
25837 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25838 DECL_EXTERNAL.
25839
25840 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25841
25842 * config/arm/arm-builtins.c
25843 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25844 (MAC_LANE_PAIR_QUALIFIERS): New.
25845 (arm_expand_builtin_args): Use it.
25846 (arm_expand_builtin_1): Likewise.
25847 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25848 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25849 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25850 * config/arm/arm_neon.h:
25851 (vcadd_rot90_f16): New.
25852 (vcaddq_rot90_f16): New.
25853 (vcadd_rot270_f16): New.
25854 (vcaddq_rot270_f16): New.
25855 (vcmla_f16): New.
25856 (vcmlaq_f16): New.
25857 (vcmla_lane_f16): New.
25858 (vcmla_laneq_f16): New.
25859 (vcmlaq_lane_f16): New.
25860 (vcmlaq_laneq_f16): New.
25861 (vcmla_rot90_f16): New.
25862 (vcmlaq_rot90_f16): New.
25863 (vcmla_rot90_lane_f16): New.
25864 (vcmla_rot90_laneq_f16): New.
25865 (vcmlaq_rot90_lane_f16): New.
25866 (vcmlaq_rot90_laneq_f16): New.
25867 (vcmla_rot180_f16): New.
25868 (vcmlaq_rot180_f16): New.
25869 (vcmla_rot180_lane_f16): New.
25870 (vcmla_rot180_laneq_f16): New.
25871 (vcmlaq_rot180_lane_f16): New.
25872 (vcmlaq_rot180_laneq_f16): New.
25873 (vcmla_rot270_f16): New.
25874 (vcmlaq_rot270_f16): New.
25875 (vcmla_rot270_lane_f16): New.
25876 (vcmla_rot270_laneq_f16): New.
25877 (vcmlaq_rot270_lane_f16): New.
25878 (vcmlaq_rot270_laneq_f16): New.
25879 (vcadd_rot90_f32): New.
25880 (vcaddq_rot90_f32): New.
25881 (vcadd_rot270_f32): New.
25882 (vcaddq_rot270_f32): New.
25883 (vcmla_f32): New.
25884 (vcmlaq_f32): New.
25885 (vcmla_lane_f32): New.
25886 (vcmla_laneq_f32): New.
25887 (vcmlaq_lane_f32): New.
25888 (vcmlaq_laneq_f32): New.
25889 (vcmla_rot90_f32): New.
25890 (vcmlaq_rot90_f32): New.
25891 (vcmla_rot90_lane_f32): New.
25892 (vcmla_rot90_laneq_f32): New.
25893 (vcmlaq_rot90_lane_f32): New.
25894 (vcmlaq_rot90_laneq_f32): New.
25895 (vcmla_rot180_f32): New.
25896 (vcmlaq_rot180_f32): New.
25897 (vcmla_rot180_lane_f32): New.
25898 (vcmla_rot180_laneq_f32): New.
25899 (vcmlaq_rot180_lane_f32): New.
25900 (vcmlaq_rot180_laneq_f32): New.
25901 (vcmla_rot270_f32): New.
25902 (vcmlaq_rot270_f32): New.
25903 (vcmla_rot270_lane_f32): New.
25904 (vcmla_rot270_laneq_f32): New.
25905 (vcmlaq_rot270_lane_f32): New.
25906 (vcmlaq_rot270_laneq_f32): New.
25907 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25908 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25909 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25910 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25911 vcmlaq_lane270): New.
25912 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25913 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25914 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25915 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25916 (arm_option_reconfigure_globals): Use them.
25917 * config/arm/iterators.md (VDF, VQ_HSF): New.
25918 (VCADD, VCMLA): New.
25919 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25920 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25921 New.
25922 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25923 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25924
25925 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25926
25927 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25928 Add qualifier_lane_pair_index.
25929 (emit-rtl.h): Include.
25930 (TYPES_QUADOP_LANE_PAIR): New.
25931 (aarch64_simd_expand_args): Use it.
25932 (aarch64_simd_expand_builtin): Likewise.
25933 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25934 New.
25935 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25936 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25937 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25938 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25939 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25940 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25941 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25942 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25943 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25944 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25945 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25946 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25947 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25948 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25949 Add __ARM_FEATURE_COMPLEX.
25950 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25951 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25952 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25953 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25954 fcmlaq_lane270): New.
25955 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25956 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25957 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25958 * config/aarch64/arm_neon.h:
25959 (vcadd_rot90_f16): New.
25960 (vcaddq_rot90_f16): New.
25961 (vcadd_rot270_f16): New.
25962 (vcaddq_rot270_f16): New.
25963 (vcmla_f16): New.
25964 (vcmlaq_f16): New.
25965 (vcmla_lane_f16): New.
25966 (vcmla_laneq_f16): New.
25967 (vcmlaq_lane_f16): New.
25968 (vcmlaq_rot90_lane_f16): New.
25969 (vcmla_rot90_laneq_f16): New.
25970 (vcmla_rot90_lane_f16): New.
25971 (vcmlaq_rot90_f16): New.
25972 (vcmla_rot90_f16): New.
25973 (vcmlaq_laneq_f16): New.
25974 (vcmla_rot180_laneq_f16): New.
25975 (vcmla_rot180_lane_f16): New.
25976 (vcmlaq_rot180_f16): New.
25977 (vcmla_rot180_f16): New.
25978 (vcmlaq_rot90_laneq_f16): New.
25979 (vcmlaq_rot270_laneq_f16): New.
25980 (vcmlaq_rot270_lane_f16): New.
25981 (vcmla_rot270_laneq_f16): New.
25982 (vcmlaq_rot270_f16): New.
25983 (vcmla_rot270_f16): New.
25984 (vcmlaq_rot180_laneq_f16): New.
25985 (vcmlaq_rot180_lane_f16): New.
25986 (vcmla_rot270_lane_f16): New.
25987 (vcadd_rot90_f32): New.
25988 (vcaddq_rot90_f32): New.
25989 (vcaddq_rot90_f64): New.
25990 (vcadd_rot270_f32): New.
25991 (vcaddq_rot270_f32): New.
25992 (vcaddq_rot270_f64): New.
25993 (vcmla_f32): New.
25994 (vcmlaq_f32): New.
25995 (vcmlaq_f64): New.
25996 (vcmla_lane_f32): New.
25997 (vcmla_laneq_f32): New.
25998 (vcmlaq_lane_f32): New.
25999 (vcmlaq_laneq_f32): New.
26000 (vcmla_rot90_f32): New.
26001 (vcmlaq_rot90_f32): New.
26002 (vcmlaq_rot90_f64): New.
26003 (vcmla_rot90_lane_f32): New.
26004 (vcmla_rot90_laneq_f32): New.
26005 (vcmlaq_rot90_lane_f32): New.
26006 (vcmlaq_rot90_laneq_f32): New.
26007 (vcmla_rot180_f32): New.
26008 (vcmlaq_rot180_f32): New.
26009 (vcmlaq_rot180_f64): New.
26010 (vcmla_rot180_lane_f32): New.
26011 (vcmla_rot180_laneq_f32): New.
26012 (vcmlaq_rot180_lane_f32): New.
26013 (vcmlaq_rot180_laneq_f32): New.
26014 (vcmla_rot270_f32): New.
26015 (vcmlaq_rot270_f32): New.
26016 (vcmlaq_rot270_f64): New.
26017 (vcmla_rot270_lane_f32): New.
26018 (vcmla_rot270_laneq_f32): New.
26019 (vcmlaq_rot270_lane_f32): New.
26020 (vcmlaq_rot270_laneq_f32): New.
26021 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
26022 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
26023 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
26024 (FCADD, FCMLA): New.
26025 (rot): New.
26026 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
26027
26028 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26029
26030 PR other/16615
26031
26032 * config/pa/pa.c: Change "can not" to "cannot".
26033 * gimple-ssa-evrp-analyze.c: Likewise.
26034 * ipa-icf.c: Likewise.
26035 * ipa-polymorphic-call.c: Likewise.
26036 * ipa-pure-const.c: Likewise.
26037 * lra-constraints.c: Likewise.
26038 * lra-remat.c: Likewise.
26039 * reload1.c: Likewise.
26040 * reorg.c: Likewise.
26041 * tree-ssa-uninit.c: Likewise.
26042
26043 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26044
26045 PR other/16615
26046
26047 * Makefile.in: Mechanically replace "can not" with "cannot".
26048 * alias.c: Likewise.
26049 * builtins.c: Likewise.
26050 * calls.c: Likewise.
26051 * cgraph.c: Likewise.
26052 * cgraph.h: Likewise.
26053 * cgraphclones.c: Likewise.
26054 * cgraphunit.c: Likewise.
26055 * combine-stack-adj.c: Likewise.
26056 * combine.c: Likewise.
26057 * common/config/i386/i386-common.c: Likewise.
26058 * config/aarch64/aarch64.c: Likewise.
26059 * config/alpha/sync.md: Likewise.
26060 * config/arc/arc.c: Likewise.
26061 * config/arc/predicates.md: Likewise.
26062 * config/arm/arm-c.c: Likewise.
26063 * config/arm/arm.c: Likewise.
26064 * config/arm/arm.h: Likewise.
26065 * config/arm/arm.md: Likewise.
26066 * config/arm/cortex-r4f.md: Likewise.
26067 * config/csky/csky.c: Likewise.
26068 * config/csky/csky.h: Likewise.
26069 * config/darwin-f.c: Likewise.
26070 * config/epiphany/epiphany.md: Likewise.
26071 * config/i386/i386.c: Likewise.
26072 * config/i386/sol2.h: Likewise.
26073 * config/m68k/m68k.c: Likewise.
26074 * config/mcore/mcore.h: Likewise.
26075 * config/microblaze/microblaze.md: Likewise.
26076 * config/mips/20kc.md: Likewise.
26077 * config/mips/sb1.md: Likewise.
26078 * config/nds32/nds32.c: Likewise.
26079 * config/nds32/predicates.md: Likewise.
26080 * config/pa/pa.c: Likewise.
26081 * config/rs6000/e300c2c3.md: Likewise.
26082 * config/rs6000/rs6000.c: Likewise.
26083 * config/s390/s390.h: Likewise.
26084 * config/sh/sh.c: Likewise.
26085 * config/sh/sh.md: Likewise.
26086 * config/spu/vmx2spu.h: Likewise.
26087 * cprop.c: Likewise.
26088 * dbxout.c: Likewise.
26089 * df-scan.c: Likewise.
26090 * doc/cfg.texi: Likewise.
26091 * doc/extend.texi: Likewise.
26092 * doc/fragments.texi: Likewise.
26093 * doc/gty.texi: Likewise.
26094 * doc/invoke.texi: Likewise.
26095 * doc/lto.texi: Likewise.
26096 * doc/md.texi: Likewise.
26097 * doc/objc.texi: Likewise.
26098 * doc/rtl.texi: Likewise.
26099 * doc/tm.texi: Likewise.
26100 * dse.c: Likewise.
26101 * emit-rtl.c: Likewise.
26102 * emit-rtl.h: Likewise.
26103 * except.c: Likewise.
26104 * expmed.c: Likewise.
26105 * expr.c: Likewise.
26106 * fold-const.c: Likewise.
26107 * genautomata.c: Likewise.
26108 * gimple-fold.c: Likewise.
26109 * hard-reg-set.h: Likewise.
26110 * ifcvt.c: Likewise.
26111 * ipa-comdats.c: Likewise.
26112 * ipa-cp.c: Likewise.
26113 * ipa-devirt.c: Likewise.
26114 * ipa-fnsummary.c: Likewise.
26115 * ipa-icf.c: Likewise.
26116 * ipa-inline-transform.c: Likewise.
26117 * ipa-inline.c: Likewise.
26118 * ipa-polymorphic-call.c: Likewise.
26119 * ipa-profile.c: Likewise.
26120 * ipa-prop.c: Likewise.
26121 * ipa-pure-const.c: Likewise.
26122 * ipa-reference.c: Likewise.
26123 * ipa-split.c: Likewise.
26124 * ipa-visibility.c: Likewise.
26125 * ipa.c: Likewise.
26126 * ira-build.c: Likewise.
26127 * ira-color.c: Likewise.
26128 * ira-conflicts.c: Likewise.
26129 * ira-costs.c: Likewise.
26130 * ira-int.h: Likewise.
26131 * ira-lives.c: Likewise.
26132 * ira.c: Likewise.
26133 * ira.h: Likewise.
26134 * loop-invariant.c: Likewise.
26135 * loop-unroll.c: Likewise.
26136 * lower-subreg.c: Likewise.
26137 * lra-assigns.c: Likewise.
26138 * lra-constraints.c: Likewise.
26139 * lra-eliminations.c: Likewise.
26140 * lra-lives.c: Likewise.
26141 * lra-remat.c: Likewise.
26142 * lra-spills.c: Likewise.
26143 * lra.c: Likewise.
26144 * lto-cgraph.c: Likewise.
26145 * lto-streamer-out.c: Likewise.
26146 * postreload-gcse.c: Likewise.
26147 * predict.c: Likewise.
26148 * profile-count.h: Likewise.
26149 * profile.c: Likewise.
26150 * recog.c: Likewise.
26151 * ree.c: Likewise.
26152 * reload.c: Likewise.
26153 * reload1.c: Likewise.
26154 * reorg.c: Likewise.
26155 * resource.c: Likewise.
26156 * rtl.def: Likewise.
26157 * rtl.h: Likewise.
26158 * rtlanal.c: Likewise.
26159 * sched-deps.c: Likewise.
26160 * sched-ebb.c: Likewise.
26161 * sched-rgn.c: Likewise.
26162 * sel-sched-ir.c: Likewise.
26163 * sel-sched.c: Likewise.
26164 * shrink-wrap.c: Likewise.
26165 * simplify-rtx.c: Likewise.
26166 * symtab.c: Likewise.
26167 * target.def: Likewise.
26168 * toplev.c: Likewise.
26169 * tree-call-cdce.c: Likewise.
26170 * tree-cfg.c: Likewise.
26171 * tree-complex.c: Likewise.
26172 * tree-core.h: Likewise.
26173 * tree-eh.c: Likewise.
26174 * tree-inline.c: Likewise.
26175 * tree-loop-distribution.c: Likewise.
26176 * tree-nrv.c: Likewise.
26177 * tree-profile.c: Likewise.
26178 * tree-sra.c: Likewise.
26179 * tree-ssa-alias.c: Likewise.
26180 * tree-ssa-dce.c: Likewise.
26181 * tree-ssa-dom.c: Likewise.
26182 * tree-ssa-forwprop.c: Likewise.
26183 * tree-ssa-loop-im.c: Likewise.
26184 * tree-ssa-loop-ivcanon.c: Likewise.
26185 * tree-ssa-loop-ivopts.c: Likewise.
26186 * tree-ssa-loop-niter.c: Likewise.
26187 * tree-ssa-phionlycprop.c: Likewise.
26188 * tree-ssa-phiopt.c: Likewise.
26189 * tree-ssa-propagate.c: Likewise.
26190 * tree-ssa-threadedge.c: Likewise.
26191 * tree-ssa-threadupdate.c: Likewise.
26192 * tree-ssa-uninit.c: Likewise.
26193 * tree-ssanames.c: Likewise.
26194 * tree-streamer-out.c: Likewise.
26195 * tree.c: Likewise.
26196 * tree.h: Likewise.
26197 * vr-values.c: Likewise.
26198
26199 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26200
26201 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26202 (ix86_split_xorsign): Ditto.
26203 * config/i386/i386.c (ix86_expand_xorsign): New function.
26204 (ix86_split_xorsign): Ditto.
26205 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26206 (xorsign<mode>3): New expander.
26207 (xorsign<mode>3_1): New insn_and_split pattern.
26208 * config/i386/sse.md (xorsign<mode>3): New expander.
26209
26210 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26211
26212 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26213 (*tablejump_sp64): Likewise.
26214 (*tablejump<P:mode>): ...this.
26215 (*call_address_sp32): Merge into...
26216 (*call_address_sp64): Likewise.
26217 (*call_address<P:mode>): ...this.
26218 (*call_symbolic_sp32): Merge into...
26219 (*call_symbolic_sp64): Likewise.
26220 (*call_symbolic<P:mode>): ...this.
26221 (call_value): Remove constraint and add predicate.
26222 (*call_value_address_sp32): Merge into...
26223 (*call_value_address_sp64): Likewise.
26224 (*call_value_address<P:mode>): ...this.
26225 (*call_value_symbolic_sp32): Merge into...
26226 (*call_value_symbolic_sp64): Likewise.
26227 (*call_value_symbolic<P:mode>): ...this.
26228 (*sibcall_symbolic_sp32): Merge into...
26229 (*sibcall_symbolic_sp64): Likewise.
26230 (*sibcall_symbolic<P:mode>): ...this.
26231 (sibcall_value): Remove constraint and add predicate.
26232 (*sibcall_value_symbolic_sp32): Merge into...
26233 (*sibcall_value_symbolic_sp64): Likewise.
26234 (*sibcall_value_symbolic<P:mode>): ...this.
26235 (window_save): Minor tweak.
26236 (*branch_sp32): Merge into...
26237 (*branch_sp64): Likewise.
26238 (*branch<P:mode>): ...this.
26239
26240 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26241 James Clarke <jrtc27@jrtc27.com>
26242
26243 PR target/84010
26244 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26245 consistently in TLS address generation and adjust code to the renaming
26246 of patterns. Mark calls to __tls_get_addr as const.
26247 * config/sparc/sparc.md (tgd_hi22): Turn into...
26248 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26249 (tgd_lo10): Turn into...
26250 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26251 (tgd_add32): Merge into...
26252 (tgd_add64): Likewise.
26253 (tgd_add<P:mode>): ...this and use Pmode throughout.
26254 (tldm_hi22): Turn into...
26255 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26256 (tldm_lo10): Turn into...
26257 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26258 (tldm_add32): Merge into...
26259 (tldm_add64): Likewise.
26260 (tldm_add<P:mode>): ...this and use Pmode throughout.
26261 (tldm_call32): Merge into...
26262 (tldm_call64): Likewise.
26263 (tldm_call<P:mode>): ...this and use Pmode throughout.
26264 (tldo_hix22): Turn into...
26265 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26266 (tldo_lox10): Turn into...
26267 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26268 (tldo_add32): Merge into...
26269 (tldo_add64): Likewise.
26270 (tldo_add<P:mode>): ...this and use Pmode throughout.
26271 (tie_hi22): Turn into...
26272 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26273 (tie_lo10): Turn into...
26274 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26275 (tie_ld64): Use DImode throughout.
26276 (tie_add32): Merge into...
26277 (tie_add64): Likewise.
26278 (tie_add<P:mode>): ...this and use Pmode throughout.
26279 (tle_hix22_sp32): Merge into...
26280 (tle_hix22_sp64): Likewise.
26281 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26282 (tle_lox22_sp32): Merge into...
26283 (tle_lox22_sp64): Likewise.
26284 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26285 (*tldo_ldub_sp32): Merge into...
26286 (*tldo_ldub_sp64): Likewise.
26287 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26288 (*tldo_ldub1_sp32): Merge into...
26289 (*tldo_ldub1_sp64): Likewise.
26290 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26291 (*tldo_ldub2_sp32): Merge into...
26292 (*tldo_ldub2_sp64): Likewise.
26293 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26294 (*tldo_ldsb1_sp32): Merge into...
26295 (*tldo_ldsb1_sp64): Likewise.
26296 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26297 (*tldo_ldsb2_sp32): Merge into...
26298 (*tldo_ldsb2_sp64): Likewise.
26299 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26300 (*tldo_ldub3_sp64): Use DImode throughout.
26301 (*tldo_ldsb3_sp64): Likewise.
26302 (*tldo_lduh_sp32): Merge into...
26303 (*tldo_lduh_sp64): Likewise.
26304 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26305 (*tldo_lduh1_sp32): Merge into...
26306 (*tldo_lduh1_sp64): Likewise.
26307 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26308 (*tldo_ldsh1_sp32): Merge into...
26309 (*tldo_ldsh1_sp64): Likewise.
26310 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26311 (*tldo_lduh2_sp64): Use DImode throughout.
26312 (*tldo_ldsh2_sp64): Likewise.
26313 (*tldo_lduw_sp32): Merge into...
26314 (*tldo_lduw_sp64): Likewise.
26315 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26316 (*tldo_lduw1_sp64): Use DImode throughout.
26317 (*tldo_ldsw1_sp64): Likewise.
26318 (*tldo_ldx_sp64): Likewise.
26319 (*tldo_stb_sp32): Merge into...
26320 (*tldo_stb_sp64): Likewise.
26321 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26322 (*tldo_sth_sp32): Merge into...
26323 (*tldo_sth_sp64): Likewise.
26324 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26325 (*tldo_stw_sp32): Merge into...
26326 (*tldo_stw_sp64): Likewise.
26327 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26328 (*tldo_stx_sp64): Use DImode throughout.
26329
26330 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26331
26332 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26333 check configure option to set BTI and Return Address Signing.
26334 * configure.ac: Add --enable-standard-branch-protection and
26335 --disable-standard-branch-protection.
26336 * configure: Regenerated.
26337 * doc/install.texi: Document the same.
26338
26339 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26340 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26341
26342 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26343 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26344 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26345 if bti is enabled.
26346 * config/aarch64/aarch64-bti-insert.c: New file.
26347 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26348 pass.
26349 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26350 new bti pass.
26351 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26352 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26353 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26354 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26355
26356 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26357
26358 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26359 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26360 Disable bti for -mbranch-protection=none.
26361 (aarch64_handle_standard_branch_protection): Enable bti for
26362 -mbranch-protection=standard.
26363 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26364 -mbranch-protection.
26365 (aarch64_bti_enabled): Check if bti is enabled.
26366 * config/aarch64/aarch64.opt: Declare target variable.
26367 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26368
26369 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26370
26371 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26372 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26373 (aarch64_expand_epilogue): Likewise.
26374 (aarch64_output_mi_thunk): Likewise.
26375 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26376 TAILCALL_ADDR_REGS to x16 and x17.
26377 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26378
26379 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26380
26381 * config/aarch64/aarch64-option-extensions.def: Define
26382 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26383 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26384 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26385 (AARCH64_FL_PREDRES): New.
26386 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26387 AARCH64_FL_PREDRES by default.
26388 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26389
26390 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26391
26392 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26393 ARMv8.5-A.
26394 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26395 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26396 * doc/invoke.texi: Document ARMv8.5-A.
26397
26398 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26399
26400 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26401 (xorsign<mode>3): Likewise.
26402
26403 2019-01-09 Jelinek <jakub@redhat.com>
26404
26405 PR middle-end/88758
26406 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26407 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26408
26409 PR rtl-optimization/88331
26410 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26411 not currently_expanding_to_rtl.
26412
26413 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26414
26415 * doc/invoke.texi (-Os): Remove trailing spaces.
26416 (-finline-functions): Remove reference to -O2.
26417
26418 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26419
26420 PR rtl-optimization/79593
26421 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26422
26423 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26424 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26425
26426 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26427
26428 PR bootstrap/88721
26429 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26430 to -1 on entry.
26431
26432 PR debug/88723
26433 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26434 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26435
26436 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26437
26438 PR target/88717
26439 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26440 ix86_avx_u128_mode_entry.
26441
26442 2019-01-08 Martin Liska <mliska@suse.cz>
26443
26444 PR tree-optimization/88753
26445 * tree-switch-conversion.c (switch_conversion::build_one_array):
26446 Come up with local variable constructor. Convert first to
26447 type of constructor values.
26448
26449 2019-01-08 Richard Biener <rguenther@suse.de>
26450
26451 PR tree-optimization/86554
26452 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26453 rpo_avail): Move earlier.
26454 (visit_nary_op): When value-numbering to expressions
26455 with different overflow behavior make sure there's an
26456 available expression on the path.
26457
26458 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26459
26460 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26461 aarch64_parse_branch_protection,
26462 struct aarch64_branch_protect_type,
26463 aarch64_handle_no_branch_protection,
26464 aarch64_handle_standard_branch_protection,
26465 aarch64_validate_mbranch_protection,
26466 aarch64_handle_pac_ret_protection,
26467 aarch64_handle_attr_branch_protection,
26468 accepted_branch_protection_string,
26469 aarch64_pac_ret_subtypes,
26470 aarch64_branch_protect_types,
26471 aarch64_handle_pac_ret_leaf): Define.
26472 (aarch64_override_options_after_change_1, aarch64_override_options):
26473 Add check for accepted_branch_protection_string.
26474 (aarch64_option_save): Save accepted_branch_protection_string.
26475 (aarch64_option_restore): Save accepted_branch_protection_string.
26476 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26477 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26478 msign-return-address.
26479 * doc/invoke.texi: Add mbranch-protection.
26480
26481 2019-01-08 Alan Modra <amodra@gmail.com>
26482
26483 PR target/88614
26484 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26485 Delete "unknownp" parameter. Adjust callers. Handle
26486 CONST_INT, PLUS, MINUS, and MULT.
26487 (attr_value_aligned): Renamed from or_attr_value.
26488 (min_attr_value): Return INT_MIN for unhandled rtl case..
26489 (min_fn): ..and translate to INT_MAX here.
26490 (write_length_unit_log): Modify to cope without "unknown".
26491 (write_attr_value): Handle IF_THEN_ELSE.
26492
26493 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26494
26495 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26496 optimization for masked stores.
26497
26498 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26499
26500 PR middle-end/88567
26501 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26502 output vector directly to duplicate_and_interleave instead of
26503 going through a temporary. Postpone insertion of ctor_seq to
26504 the end of the loop.
26505
26506 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26507
26508 PR target/86891
26509 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26510 unsigned_p. Handle signed and unsigned overflow correction as
26511 required.
26512 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26513 prototype.
26514 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26515 for operand 2.
26516 (add<mode>3_compareV_imm): Make this callable for expanding.
26517 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26518 aarch64_plus_operand for operand 2.
26519 (subv<GPI:mode>_insn): New insn pattern.
26520 (subv<GPI:mode>_imm): Likewise.
26521 (negv<GPI:mode>3): New expand pattern.
26522 (negv<GPI:mode>_insn): New insn pattern.
26523 (negv<GPI:mode>_cmp_only): Likewise.
26524 (cmpv<GPI:mode>_insn): Likewise.
26525 (subvti4): Use register_operand for operand 1. Update call to
26526 aarch64_expand_subvti.
26527 (usubvti4): Likewise.
26528 (negvti3): New expand pattern.
26529 (negdi_carryout): New insn pattern.
26530 (negvdi_carryinV): New insn pattern.
26531 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26532 version the named version.
26533 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26534 operands.
26535 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26536 patterns.
26537 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26538 patterns.
26539 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26540 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26541 (sub<mode>3_carryinCV): Delete.
26542 (sub<GPI:mode>3_carryinV): New expand pattern.
26543 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26544
26545 2019-01-07 Richard Biener <rguenther@suse.de>
26546
26547 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26548 of tree_operand_hash.
26549
26550 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26551
26552 PR tree-optimization/88598
26553 * tree.h (single_nonzero_element): Declare.
26554 * tree.c (single_nonzero_element): New function.
26555 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26556 if I is the only nonzero element of CST.
26557
26558 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26559
26560 PR tree-optimization/88598
26561 * tree.h (initializer_each_zero_or_onep): Declare.
26562 * tree.c (initializer_each_zero_or_onep): New function.
26563 (signed_or_unsigned_type_for): Handle float types too.
26564 (unsigned_type_for, signed_type_for): Update comments accordingly.
26565 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26566 x & { 0 or -1, 0 or -1, ... }.
26567
26568 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26569
26570 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26571 with x86_64-pc-linux-gnu.
26572
26573 2019-01-07 Tom de Vries <tdevries@suse.de>
26574
26575 PR target/85486
26576 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26577 function.
26578 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26579 routines.
26580
26581 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26582
26583 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26584 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26585 TARGET_AVX512F as condition.
26586
26587 PR debug/88723
26588 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26589 const_not_ok_for_debug_p target hook.
26590 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26591 on UNSPEC and subexpressions thereof if all subexpressions of the
26592 UNSPEC are CONSTANT_P.
26593
26594 PR tree-optimization/88676
26595 * tree-ssa-phiopt.c (two_value_replacement): New function.
26596 (tree_ssa_phiopt_worker): Call it.
26597
26598 PR sanitizer/88619
26599 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26600 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26601
26602 PR c++/85052
26603 * tree-vect-generic.c: Include insn-config.h and recog.h.
26604 (expand_vector_piecewise): Add defaulted ret_type argument,
26605 if non-NULL, use that in preference to type for the result type.
26606 (expand_vector_parallel): Formatting fix.
26607 (do_vec_conversion, do_vec_narrowing_conversion,
26608 expand_vector_conversion): New functions.
26609 (expand_vector_operations_1): Call expand_vector_conversion
26610 for VEC_CONVERT ifn calls.
26611 * internal-fn.def (VEC_CONVERT): New internal function.
26612 * internal-fn.c (expand_VEC_CONVERT): New function.
26613 * fold-const-call.c (fold_const_vec_convert): New function.
26614 (fold_const_call): Use it for CFN_VEC_CONVERT.
26615 * doc/extend.texi (__builtin_convertvector): Document.
26616
26617 2019-01-07 Tom de Vries <tdevries@suse.de>
26618
26619 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26620 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26621 vector_red_partition, vector_red_sym): New global variables.
26622 (nvptx_option_override): Initialize vector_red_sym.
26623 (nvptx_declare_function_name): Restore red_partition register.
26624 (nvptx_file_end): Emit code to declare the vector reduction variables.
26625 (nvptx_output_red_partition): New function.
26626 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26627 large vector reductions.
26628 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26629 (nvptx_init_builtins): Add VECTOR_ADDR.
26630 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26631 Handle nvptx_expand_shared_addr.
26632 (nvptx_get_shared_red_addr): Add vector argument and handle large
26633 vectors.
26634 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26635 large vectors.
26636 (nvptx_goacc_reduction_init): Likewise.
26637 (nvptx_goacc_reduction_fini): Likewise.
26638 (nvptx_goacc_reduction_teardown): Likewise.
26639 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26640 init,fini,teardown}.
26641 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26642 (nvptx_set_current_function): Init vector_red_partition.
26643 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26644 (nvptx_red_partition): New insn.
26645 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26646
26647 2019-01-07 Tom de Vries <tdevries@suse.de>
26648
26649 PR target/85381
26650 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26651 empty loops.
26652
26653 2019-01-07 Tom de Vries <tdevries@suse.de>
26654
26655 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26656 (nvptx_option_override): Init oacc_bcast_partition.
26657 (nvptx_init_oacc_workers): New function.
26658 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26659 (nvptx_needs_shared_bcast): New function.
26660 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26661 to propagate state.
26662 (nvptx_shared_propagate): Initialize vector bcast partition and
26663 synchronization state.
26664 (nvptx_single): Generalize to enable vectors to use shared-memory
26665 to propagate state.
26666 (nvptx_process_pars): Likewise.
26667 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26668 * config/nvptx/nvptx.h (struct machine_function): Add
26669 bcast_partition and sync_bar members.
26670
26671 2019-01-07 Tom de Vries <tdevries@suse.de>
26672
26673 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26674 (nvptx_apply_dim_limits): New function.
26675 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26676 PTX_WARP_SIZE.
26677
26678 2019-01-07 Tom de Vries <tdevries@suse.de>
26679
26680 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26681 as late as possible.
26682
26683 2019-01-07 Tom de Vries <tdevries@suse.de>
26684
26685 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26686 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26687 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26688 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26689 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26690
26691 2019-01-07 Tom de Vries <tdevries@suse.de>
26692
26693 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26694
26695 2019-01-07 Tom de Vries <tdevries@suse.de>
26696
26697 * omp-offload.c (oacc_get_min_dim): New function.
26698 * omp-offload.h (oacc_get_min_dim): Declare.
26699
26700 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26701
26702 PR target/88521
26703 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26704 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26705
26706 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26707
26708 PR tree-opt/86020
26709 Revert:
26710 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26711
26712 * ipa-inline.c (edge_badness): Use inlined_time instead of
26713 inline_summaries->get.
26714
26715 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26716
26717 * opts.c (enable_fdo_optimizations): Enable
26718 version-loops-for-strides, loop-interchange, unrol-and-jam
26719 and tree-loop-distribution.
26720 * invoke.texi: Document newly enabled options.
26721
26722 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26723
26724 * doc/invoke.texi (max-inline-insns-small): New parameters.
26725 * ipa-inline.c (want_early_inline_function_p): simplify.
26726 (want_inline_small_function_p): Fix pasto from previous patch;
26727 use max-inline-insns-small bound.
26728 * params.def (max-inline-insns-small): New param.
26729 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26730 variables correctly.
26731
26732 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26733
26734 * doc/invoke.texi: Document max-inline-insns-size,
26735 uninlined-function-insns, uninlined-function-time,
26736 uninlined-thunk-insns and uninlined-thunk-time.
26737 * params.def: Add max-inline-insns-size,
26738 uninlined-function-insns, uninlined-function-time,
26739 uninlined-thunk-insns and uninlined-thunk-time.
26740 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26741 new parameters.
26742 * ipa-inline.c (can_inline_edge_by_limits_p,
26743 want_inline_small_function_p): Use new parameters.
26744
26745 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26746
26747 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26748
26749 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26750
26751 PR middle-end/82564
26752 PR target/88620
26753 * expr.c (expand_assignment): For calls returning VLA structures
26754 if to_rtx is not a MEM, force it into a stack temporary.
26755
26756 PR debug/88635
26757 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26758 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26759 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26760 subexpressions of both operands.
26761 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26762 subrtxes are CONSTANT_P.
26763 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26764 2018-11-09 changes.
26765
26766 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26767
26768 * params.def (hot-bb-count-ws-permille): Set to 990.
26769
26770 2019-01-04 Martin Sebor <msebor@redhat.com>
26771
26772 PR c/88546
26773 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26774 leaf.
26775
26776 2019-01-04 Martin Sebor <msebor@redhat.com>
26777
26778 PR c/88363
26779 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26780
26781 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26782
26783 * gdbinit.in: Turn off pagination for the skip commands, restore
26784 it to previous state afterwards.
26785
26786 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26787
26788 PR target/88594
26789 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26790 of GET_MODE (opN) as modes of the libcall arguments.
26791
26792 2019-01-04 Jan Beulich <jbeulich@suse.com>
26793
26794 * config/i386/sse.md
26795 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26796 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26797 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26798 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26799 avx512f_vmcmp<mode>3<round_saeonly_name>,
26800 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26801 avx512f_maskcmp<mode>3,
26802 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26803 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26804 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26805 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26806 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26807 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26808 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26809 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26810 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26811 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26812 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26813 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26814 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26815 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26816 avx512cd_maskb_vec_dup<mode>,
26817 avx512cd_maskw_vec_dup<mode>,
26818 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26819 avx512dq_vmfpclass<mode>,
26820 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26821 instead of =Yk.
26822
26823 2019-01-03 Martin Sebor <msebor@redhat.com>
26824
26825 PR tree-optimization/88659
26826 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26827
26828 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26829
26830 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26831 unaligned vsx and avoid lxvd2x/stxvd2x.
26832 (gen_lvx_v4si_move): New function.
26833
26834 2019-01-03 Tom de Vries <tdevries@suse.de>
26835
26836 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26837 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26838 function.
26839 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26840
26841 2019-01-03 Tom de Vries <tdevries@suse.de>
26842
26843 * config/nvptx/nvptx.c (struct offload_attrs): New.
26844 (populate_offload_attrs): New function. Factor mask extraction out of
26845 nvptx_reorg. Add extraction of dimensions.
26846 (nvptx_reorg): Use populate_offload_attrs.
26847
26848 2019-01-03 Tom de Vries <tdevries@suse.de>
26849
26850 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26851 cases for oacc_min_dims_p and routine_p. Add asserts for
26852 oacc_default_dims_p and offload_region_p.
26853
26854 2019-01-03 Tom de Vries <tdevries@suse.de>
26855
26856 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26857 factored out of ...
26858 (nvptx_goacc_validate_dims): ... here.
26859
26860 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26861
26862 PR tree-optimization/85574
26863 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26864 structure.
26865 (struct ssa_equip_hash_traits): Declare.
26866 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26867
26868 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26869
26870 PR debug/88644
26871 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26872 change it to qualified_type.
26873
26874 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26875
26876 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26877 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26878
26879 2019-01-02 Martin Sebor <msebor@redhat.com>
26880 Jeff Law <law@redhat.com>
26881
26882 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26883 (get_range_strlen_tree): Update appropriately.
26884 (get_range_strlen)
26885 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26886
26887 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26888 rather than set_range_info.
26889 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26890 maybe_set_strlen_range. Handle potentially boundary crossing
26891 cases more conservatively.
26892 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26893 Call set_strlen_range.
26894 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26895
26896 PR middle-end/88663
26897 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26898 need the flexp argument.
26899 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26900 from calls to get_range_strlen. Update comments. Just update
26901 VAL for an unterminated const char array and let the reset of the
26902 code handle it normally. No longer try to set *flexp. Adjust
26903 return value.
26904 (get_range_strlen): Update for the new get_range_strlen API.
26905 (get_maxval_strlen): Similarly.
26906 (gimple_fold_builtin_strlen): Handle update meaning of return value
26907 from get_range_strlen.
26908 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26909 get_range_strlen API.
26910
26911 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26912
26913 PR lto/88130
26914 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26915 false at WPA time when body was removed.
26916
26917 2019-01-02 Martin Liska <mliska@suse.cz>
26918
26919 PR tree-optimization/88650
26920 * predict.c (set_even_probabilities): Calculate probability
26921 remainer only when really used.
26922
26923 2019-01-02 Richard Biener <rguenther@suse.de>
26924
26925 PR middle-end/88651
26926 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26927 widest_ints when mangling max_stmt_execution results.
26928
26929 2019-01-02 Richard Biener <rguenther@suse.de>
26930
26931 PR tree-optimization/88621
26932 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26933 bitfields when canoncalizing.
26934
26935 2019-01-02 Richard Biener <rguenther@suse.de>
26936
26937 PR target/87545
26938 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26939 cost of cheap SSE instruction.
26940
26941 2019-01-02 Richard Biener <rguenther@suse.de>
26942
26943 PR ipa/85574
26944 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26945 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26946 function.
26947 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26948 set after UIDs before splitting them.
26949
26950 2019-01-01 Martin Sebor <msebor@redhat.com>
26951 Jeff Law <law@redhat.com>
26952
26953 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26954 length is optimistic. If it is, then arrange to compute the
26955 conservative length as well.
26956
26957 * gimple-fold.h (get_range_strlen): Update prototype.
26958 * builtins.c (check_access): Update call to get_range_strlen to use
26959 c_strlen_data pointer. Change various variable accesses to instead
26960 pull data from the c_strlen_data structure.
26961 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26962 * calls.c (maybe_warn_nonstring_arg): Likewise.
26963 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26964 minimum length if maximum lengh is unknown.
26965 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26966 that used c_strlen, it's no longer needed. Restructure slightly.
26967 (format_string): Set unlikely range appropriately.
26968 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26969 formatting issues.
26970 (get_range_strlen): Accept c_strlen_data pointer for external
26971 call sites as well. Pass through to call to internal get_range_strlen.
26972 Adjust minlen, maxlen and maxbound as needed.
26973 (get_maxval_strlen): Update comments.
26974 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26975 to use c_strlen_data pointer. Change variable accesses to instead
26976 use c_strlen_data data members.
26977
26978 * gimple-fold.c (get_range_strlen): Update prototype.
26979 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26980 local variables. Use pdata to return information to caller.
26981 Update calls to get_range_strlen. Update pdata->maxbound.
26982 (get_range_strlen -- static version): Similarly.
26983 (get_range_strlen -- extern version): Update for internal
26984 get_range_strlen API change. Convert to external data format.
26985 (get_maxval_strlen): Similarly.
26986
26987 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26988
26989 * coverage.c (get_coverage_counts): Use current_function_decl.
26990 * profile.c (read_thunk_profile): New function.
26991 (branch_prob): Add THUNK parameter.
26992 * tree-profile.c (tree_profiling): Handle thunks.
26993 * value-prof.c (init_node_map): Handle thunks.
26994 * value-prof.h (branch_prob): Upate prototype.
26995 (read_thunk_profile): Declare.
26996
26997 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26998
26999 Update copyright years.
27000
27001 * gcc.c (process_command): Update copyright notice dates.
27002 * gcov-dump.c (print_version): Ditto.
27003 * gcov.c (print_version): Ditto.
27004 * gcov-tool.c (print_version): Ditto.
27005 * gengtype.c (create_file): Ditto.
27006 * doc/cpp.texi: Bump @copying's copyright year.
27007 * doc/cppinternals.texi: Ditto.
27008 * doc/gcc.texi: Ditto.
27009 * doc/gccint.texi: Ditto.
27010 * doc/gcov.texi: Ditto.
27011 * doc/install.texi: Ditto.
27012 * doc/invoke.texi: Ditto.
27013 \f
27014 Copyright (C) 2019 Free Software Foundation, Inc.
27015
27016 Copying and distribution of this file, with or without modification,
27017 are permitted in any medium without royalty provided the copyright
27018 notice and this notice are preserved.