]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
PR tree-optimization/92056
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-17 Jakub Jelinek <jakub@redhat.com>
2
3 PR tree-optimization/92056
4 * tree-object-size.c (cond_expr_object_size): Return early if then_
5 processing resulted in unknown size.
6
7 PR tree-optimization/92115
8 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
9 temporary if it could trap.
10
11 2019-10-17 Richard Biener <rguenther@suse.de>
12
13 PR debug/91887
14 * dwarf2out.c (gen_formal_parameter_die): Also try to match
15 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
16
17 2019-10-16 Jakub Jelinek <jakub@redhat.com>
18
19 * tree-ssa-strlen.c (maybe_invalidate): Use
20 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
21
22 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
23 Jim Wilson <jimw@sifive.com>
24
25 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
26 regs to SIBCALL_REGS.
27 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
28 passing regs to SIBCALL_REGS.
29
30 2019-10-16 Martin Sebor <msebor@redhat.com>
31
32 PR tree-optimization/83821
33 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
34 the length of a string when available.
35 (handle_builtin_memset) Add argument.
36 (handle_store, strlen_check_and_optimize_call): Same.
37 (check_and_optimize_stmt): Same. Pass it to callees.
38
39 2019-10-16 Martin Sebor <msebor@redhat.com>
40
41 PR tree-optimization/91996
42 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
43 information.
44 (compare_nonzero_chars): Add an overload.
45 (count_nonzero_bytes): Add an argument. Call overload above.
46 Handle non-constant lengths in some range.
47 (handle_store): Add an argument.
48 (check_and_optimize_stmt): Pass an argument to handle_store.
49
50 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
51
52 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
53
54 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
55
56 * config/mips/mips.c (mips_expand_builtin_insn): Force the
57 operands which correspond to the same input-output register to
58 have the same pseudo assigned to them.
59
60 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
61
62 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
63
64 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
65
66 * config/aarch64/aarch64.c (aarch64_classify_symbol):
67 Apply reasonable limit to symbol offsets.
68
69 2019-10-16 Richard Biener <rguenther@suse.de>
70
71 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
72 (vect_is_simple_reduction): Delay checking to
73 vectorizable_reduction and relax the checking.
74 (vectorizable_reduction): Check we have a simple use. Check
75 for bogus condition reductions.
76 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
77 are looking at the last stmt in a pattern sequence when
78 filling in backedge PHI values.
79
80 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
81 Jiufu Guo <guojiufu@linux.ibm.com>
82
83 PR target/70010
84 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
85 the callee explicitly disables some isa_flags the caller is using.
86
87 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
88
89 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
90
91 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
92
93 * genmodes.c (mode_data::order): New field.
94 (blank_mode): Update accordingly.
95 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
96 (make_vector_modes): Likewise.
97 (VECTOR_MODES): Update use accordingly.
98 (cmp_modes): Sort by the new order field ahead of sorting by size.
99 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
100 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
101 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
102 (aarch64_classify_vector_mode): Handle the new partial modes.
103 (aarch64_vl_bytes): New function.
104 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
105 when counting the number of registers in an SVE mode.
106 (aarch64_class_max_nregs): Likewise.
107 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
108 in registers yet.
109 (aarch64_classify_address): Treat partial vectors analogously
110 to full vectors.
111 (aarch64_print_address_internal): Consolidate the printing of
112 MUL VL addresses, using aarch64_vl_bytes as the number of
113 bytes represented by "VL".
114 (aarch64_vector_mode_supported_p): Reject partial vector modes.
115
116 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
117
118 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
119 rather than known_lt when choosing frame layouts.
120
121 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
122
123 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
124 that all the adjustments add up to the full frame size.
125 Use crtl->outgoing_args_size directly as the final adjustment
126 where appropriate.
127
128 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
129
130 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
131 "frame" reference instead of always referring directly to
132 "cfun->machine->frame".
133
134 2019-10-16 Richard Biener <rguenther@suse.de>
135
136 PR tree-optimization/92119
137 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
138 against missing bswap lhs.
139
140 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
141
142 PR middle-end/92033
143 * poly-int.h (constant_lower_bound_with_limit): New function.
144 (constant_upper_bound_with_limit): Likewise.
145 * doc/poly-int.texi: Document them.
146 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
147 into the worst-case INTEGER_CST bounds.
148
149 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
150
151 PR ipa/91088
152 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
153 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
154 * ipa-predicat.h (struct expr_eval_op): New struct.
155 (expr_eval_ops): New typedef.
156 (struct condition): Add type and param_ops fields, remove size field.
157 (add_condition): Replace size parameter with type parameter, add
158 param_ops parameter.
159 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
160 (predicate::add_clause): Add comparisons on type and param_ops.
161 (dump_condition): Add debug dump for param_ops.
162 (remap_after_inlining): Adjust call arguments to add_condition.
163 (add_condition): Replace size parameter with type parameter, add
164 param_ops parameter. Unshare constant value used in conditions.
165 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
166 parameter expressions using param_ops.
167 (decompose_param_expr): New function.
168 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
169 to replace call to unmodified_parm_or_parm_agg_item.
170 (set_switch_stmt_execution_predicate): Likewise.
171 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
172 with type.
173 (inline_read_section): Read param_ops from summary stream.
174 (ipa_fn_summary_write): Write param_ops to summary stream.
175
176 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
177
178 PR rtl-optimization/92107
179 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
180 expression written.
181
182 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
183
184 * config/darwin.c: Update description of fix and continue.
185
186 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
187
188 * config/darwin.c (darwin_binds_local_p): Update to call
189 default_binds_local_p_3 () directly. amend comments.
190
191 2019-10-15 Richard Biener <rguenther@suse.de>
192
193 * lto-streamer-out.c (lto_variably_modified_type_p): New.
194 (tree_is_indexable): Use it.
195 * tree-streamer-out.c (pack_ts_type_common_value_fields):
196 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
197 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
198
199 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
200
201 * config/msp430/msp430.md (zero_extendqipsi2): New.
202 (zero_extendqisi2): Optimize case where src register and base dst
203 register are the same.
204 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
205 (zero_extendpsisi2): Optimize r->m case.
206 Add unnamed insn patterns to catch insns combine searches for when
207 optimizing pointer manipulation.
208
209 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
210
211 * config/msp430/msp430.md: Group zero_extend* insns together.
212
213 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
214
215 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
216 constraint.
217 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
218 POST_INC.
219 (msp430_subreg): Likewise.
220 (msp430_split_addsi): Likewise.
221 (msp430_print_operand_addr): Likewise.
222 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
223 (USE_STORE_POST_INCREMENT): Define.
224 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
225 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
226 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
227 (msp430_general_dst_operand): New.
228 (msp430_general_dst_nonv_operand): New.
229 (msp430_nonsubreg_operand): Remove.
230 (msp430_nonsubreg_dst_operand): New.
231 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
232 of defunct msp430_nonsubreg_operand.
233 (msp430_nonsubregnonpostinc_or_imm_operand): New.
234
235 2019-10-15 Richard Biener <rguenther@suse.de>
236
237 PR tree-optimization/91929
238 * tree-ssa-pre.c (pre_expr_d::loc): New member.
239 (get_or_alloc_expr_for_name): Initialize it.
240 (get_or_alloc_expr_for_constant): Likewise.
241 (phi_translate_1): Copy it.
242 (create_expression_by_pieces): Use the original location
243 of the expression for the inserted stmt.
244 (compute_avail): Record the location of the stmt for the
245 expressions created.
246
247 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
248
249 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
250 before using tree_to_uhwi.
251
252 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
253
254 * config/s390/s390.md: Run %a0:DI splitters only after reload.
255
256 2019-10-15 Richard Biener <rguenther@suse.de>
257
258 PR tree-optimization/92094
259 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
260 do not adjust the reduction definition def type.
261 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
262 defines the latch argument of the PHI.
263
264 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
265
266 PR target/92035
267 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
268 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
269 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
270 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
271 _mm_maskz_roundscale_round_sd): New intrinsics.
272 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
273 __builtin_ia32_rndscales?_mask_round builtins instead of
274 __builtin_ia32_rndscales?_round.
275 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
276 __builtin_ia32_rndscalesd_round): Remove.
277 (__builtin_ia32_rndscaless_mask_round,
278 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
279 * config/i386/sse.md
280 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
281 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
282 ... this, adjust and add subst atrributes to make it maskable.
283
284 2019-10-15 Richard Biener <rguenther@suse.de>
285
286 PR middle-end/92046
287 * common.opt (fallow-store-data-races): New.
288 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
289 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
290 * doc/invoke.texi (fallow-store-data-races): Document.
291 (--param allow-store-data-races): Remove docs.
292 * opts.c (default_options_table): Enable -fallow-store-data-races
293 at -Ofast.
294 (default_options_optimization): Do not enable --param
295 allow-store-data-races at -Ofast.
296 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
297 instead of PARAM_ALLOW_STORE_DATA_RACES.
298 * tree-ssa-loop-im.c (execute_sm): Likewise.
299
300 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
301
302 PR tree-optimization/92085
303 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
304 instead of calling it unconditionally after
305 delete_dead_or_redundant_assignment and fix indentation.
306
307 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
308
309 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
310 TARGET_VFP_DOUBLE.
311 (*fmsub<SDF:mode>4): Likewise.
312 *fnmsub<SDF:mode>4): Likewise.
313 (*fnmadd<SDF:mode>4): Likewise.
314
315 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
316
317 * doc/tree-ssa.texi: Update renamed macro name.
318
319 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
320
321 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
322 vector constants.
323
324 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
325
326 * config/darwin.c: Use unsigned ints for the picbase label
327 counters, initialise the vars explicitly.
328 (update_pic_label_number_if_needed): Move a variable declaration
329 to where it's needed.
330 (machopic_output_function_base_name): Use a more strict checking
331 assert, and and unsigned int for the picbase label counter.
332 (machopic_get_function_picbase): Likewise.
333
334 2019-10-14 Richard Biener <rguenther@suse.de>
335
336 PR middle-end/92046
337 * dse.c (scan_insn): Use param max_active_local_stores.
338 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
339 based on optimization level.
340 * loop-invariant.c (move_loop_invariants): Adjust
341 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
342 * opts.c (default_options_optimization): Do not adjust
343 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
344 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
345
346 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
347
348 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
349
350 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
351
352 * config/arm/arm.c (arm_option_override): Don't override sched
353 pressure algorithm.
354
355 2019-10-14 Richard Biener <rguenther@suse.de>
356
357 PR tree-optimization/92069
358 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
359 cycles do not set vect_nested_cycle on the latch definition.
360
361 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
362
363 * function-abi.h (expr_callee_abi): Declare.
364 * function-abi.cc (expr_callee_abi): New function.
365
366 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
367
368 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
369 into [1,MAX].
370 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
371 non-zero being represented as [1,MAX].
372
373 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
374
375 * tree-sra.c (dump_access): Add missing braces.
376
377 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
378
379 * config/darwin.c (machopic_indirection_name): Rework the
380 function to emit linker-visible symbols only for indirections
381 in the data section. Clean up the code and update comments.
382
383 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
384
385 * config/darwin.c (machopic_indirect_data_reference): Remove
386 redundant code.
387
388 2019-10-13 Nathan Sidwell <nathan@acm.org>
389
390 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
391
392 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
393
394 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
395 c99_runtime.
396
397 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
398
399 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
400 so non-virutal are before virutals.
401 (output_function): Avoid body modifications.
402
403 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
404
405 * config/pa/pa.c (pa_output_call): Load descriptor address to register
406 %r22. Load function address before global pointer.
407 (pa_attr_length_indirect_call): Adjust length of inline versions of
408 $$dyncall.
409 (pa_output_indirect_call): Remove fast inline version of $$dyncall
410 before normal cases. Update inline $$dyncall sequences to preserve
411 function descriptor address in register %r22.
412 (TRAMPOLINE_CODE_SIZE): Adjust.
413 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
414 register %r22 contains trampoline address.
415 (pa_trampoline_init): Adjust offsets.
416 (pa_trampoline_adjust_address): Likewise.
417 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
418
419 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
420
421 PR target/67183
422 * config/darwin.c (machopic_indirection): New field to flag
423 non-lazy-symbol-pointers in the data section.
424 (machopic_indirection_name): Compute if an indirection should
425 appear in the data section.
426 (machopic_output_data_section_indirection): New callback split
427 from machopic_output_indirection.
428 (machopic_output_stub_indirection): Likewise.
429 (machopic_output_indirection): Retain the code for non-lazy
430 symbol pointers in their regular section.
431 (machopic_finish): Use the new callbacks to order the indirection
432 output.
433
434 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
435
436 * config/darwin-protos.h (machopic_finish): Delete.
437 * config/darwin.c (machopic_finish): Make static.
438
439 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
440
441 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
442 sections when building kernel extension code.
443
444 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
445
446 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
447 later standard."
448
449 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
450
451 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
452 from warning.
453
454 2019-10-12 Jakub Jelinek <jakub@redhat.com>
455
456 PR middle-end/92063
457 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
458 <case VEC_COND_EXPR>: Return false with *handled = false.
459 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
460 recursing on the first operand.
461 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
462 instead of tree_could_trap_p.
463 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
464
465 2019-10-11 Jim Wilson <jimw@sifive.com>
466
467 PR rtl-optimization/91860
468 * combine.c (subst): If new_rtx is a constant, also check for
469 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
470
471 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
472
473 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
474 INTVAL when calling store_bit_field.
475
476 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
477
478 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
479 size.
480
481 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
482
483 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
484 vectorizable_live_operation.
485 (vectorizable_live_operation): Adjust parameters.
486 * tree-vect-stmts.c (vect_init_vector,
487 vect_gen_widened_results_half): Fix typo in function comment.
488 (can_vectorize_live_stmts): Adjust function comment.
489 Adjust parameters. Adjust call to vectorizable_live_operation.
490 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
491 (vect_transform_stmt): Adjust function comment. Adjust call to
492 can_vectorize_live_stmts.
493 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
494
495 2019-10-11 Richard Biener <rguenther@suse.de>
496
497 PR tree-optimization/90883
498 PR tree-optimization/91091
499 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
500 alias-sets both for recording VN table entries and continuing
501 walking after translating through copies. Handle same-sized
502 reads from SSA names by returning the plain SSA name.
503 (eliminate_dom_walker::eliminate_stmt): Properly handle
504 non-size precision stores in redundant store elimination.
505
506 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
507
508 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
509 (ggc_collect): Dump later to not interfere with release_page dump.
510 (ggc_trim): New function.
511 * ggc-none.c (ggc_trim): New.
512 * ggc.h (ggc_trim): Declare.
513
514 2019-10-11 Richard Biener <rguenther@suse.de>
515
516 PR tree-optimization/92066
517 PR tree-optimization/92046
518 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
519 Fix bogus cost model check.
520
521 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
522
523 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
524 (LANG_HOOKS_DECLS): Add it.
525 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
526 update comment for omp_is_optional_argument.
527 * omp-general.c (omp_is_allocatable_or_ptr): New.
528 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
529 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
530 Fortran's optional arguments and allocatable/pointer scalars
531 with use_device_addr.
532
533 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
534
535 PR target/77918
536 * config/s390/2827.md: Add new opcodes.
537 * config/s390/2964.md: Likewise.
538 * config/s390/3906.md: Likewise.
539 * config/s390/8561.md: Likewise.
540 * config/s390/s390-builtins.def (s390_vfchesb): Use
541 the new vec_cmpgev4sf_quiet_nocc.
542 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
543 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
544 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
545 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
546 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
547 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
548 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
549 * config/s390/s390-modes.def (CCSFPS): New mode.
550 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
551 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
552 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
553 (s390_expand_vec_compare): Use non-signaling patterns where
554 necessary.
555 (s390_reverse_condition): Support CCSFPS.
556 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
557 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
558 (asm_fcmp_op): Likewise.
559 (*smaxv2df3_vx): Use pattern for quiet comparison.
560 (*sminv2df3_vx): Likewise.
561 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
562 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
563 (vec_cmpgt<mode>_quiet_nocc): Likewise.
564 (vec_cmplt<mode>_quiet_nocc): New expander.
565 (vec_cmpge<mode>_quiet_nocc): New pattern.
566 (vec_cmple<mode>_quiet_nocc): New expander.
567 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
568 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
569 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
570 (*vec_cmpge<mode>_signaling_nocc): Likewise.
571 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
572 (vec_cmpungt<mode>): New expander.
573 (vec_cmpunge<mode>): Likewise.
574 (vec_cmpuneq<mode>): Use quiet patterns.
575 (vec_cmpltgt<mode>): Allow only on z14+.
576 (vec_cmpordered<mode>): Use quiet patterns.
577 (vec_cmpunordered<mode>): Likewise.
578 (VEC_CMP_EXPAND): Add ungt and unge.
579
580 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
581
582 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
583 parameter.
584 * lto-streamer-out.c: Include tree-dfa.h.
585 (output_cfg): Do not use cfun.
586 (lto_prepare_function_for_streaming): New.
587 (output_function): Do not push cfun; do not initialize loop optimizer.
588 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
589 * passes.c (ipa_write_summaries): Use it.
590 (ipa_write_optimization_summaries): Do not modify bodies.
591 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
592 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
593 * tree-ssa-dse.c (pass_dse::execute): Update use of
594 renumber_gimple_stmt_uids.
595 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
596
597 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
598
599 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
600 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
601
602 2019-10-10 Joseph Myers <joseph@codesourcery.com>
603
604 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
605 macros.
606 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
607 Also define DFP macros for these conditions.
608 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
609 DEC128_SUBNORMAL_MIN): Do not define.
610 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
611 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
612
613 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
614 Sandra Loosemore <sandra@codesourcery.com>
615
616 PR middle-end/26241
617 * doc/lto.texi (IPA): Reference to the IPA passes.
618 * doc/passes.texi (Pass manager): Add node IPA passes and
619 description for each IPA pass.
620
621 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
622
623 * ipa-reference.c: Do not include splay-tree.h
624 (reference_vars_to_consider): Turn to hash map.
625 (get_static_name, ipa_init, analyze_function, propagate,
626 stream_out_bitmap, ipa_reference_write_optimization_summary,
627 ipa_reference_write_optimization_summary): Update.
628
629 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
630
631 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
632
633 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
634
635 * config/darwin.c: Lookup Objective C metadata and force indirection
636 for IVAR refs.
637
638 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
639
640 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
641 addresses.
642 (mem_operand_gpr): Add check for prefixed addresses.
643 (mem_operand_ds_form): Add check for prefixed addresses.
644 (rs6000_legitimate_offset_address_p): If we support prefixed
645 addresses, check for a 34-bit offset instead of 16-bit.
646 (rs6000_legitimate_address_p): Add check for prefixed addresses.
647 Do not allow load/store with update if the address is prefixed.
648 (rs6000_mode_dependent_address): If we support prefixed
649 addresses, check for a 34-bit offset instead of 16-bit.
650
651 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
652
653 PR target/77918
654 * config/s390/vector.md (vcond_comparison_operator): New
655 predicate.
656 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
657
658 2019-10-10 David Malcolm <dmalcolm@redhat.com>
659
660 PR 87488
661 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
662 -D.
663 * configure.ac (--with-documentation-root-url): New option.
664 * configure: Regenerate.
665 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
666 option URL, add it as a new string field of the diagnostic option.
667 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
668 (print_option_information): If get_option_url is non-NULL, call
669 it, and if the result is non-NULL, potentially emit an escape
670 sequence to markup the option text with the resulting URL.
671 * diagnostic.h (diagnostic_context::get_option_url): New callback.
672 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
673 example of JSON output.
674 * opts-diagnostic.h (get_option_url): New decl.
675 * opts.c (get_option_url): New function.
676 * toplev.c (general_init): Initialize the get_option_url callback.
677
678 2019-10-10 David Malcolm <dmalcolm@redhat.com>
679
680 PR 87488
681 * common.opt (fdiagnostics-urls=): New option.
682 (diagnostic-url.h): Add SourceInclude.
683 (diagnostic_url_rule): New enum.
684 * diagnostic-color.c: Include "diagnostic-url.h".
685 (diagnostic_urls_enabled_p): New function.
686 * diagnostic-url.h: New file.
687 * diagnostic.c: Include "diagnostic-url.h".
688 (diagnostic_urls_init): New function.
689 * diagnostic.h (diagnostic_urls_init): New decl.
690 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
691 -fdiagnostics-urls to the list.
692 (-fdiagnostics-urls): New option.
693 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
694 (driver::global_initializations): Call diagnostic_urls_init.
695 * opts-global.c (init_options_once): Likewise.
696 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
697 * pretty-print.c (pretty_printer::pretty_printer): Initialize
698 show_urls.
699 (pp_begin_url): New function.
700 (pp_end_url): New function.
701 (selftest::test_urls): New selftest.
702 (selftest::pretty_print_c_tests): Call it.
703 * pretty-print.h (pretty_printer::show_urls): New field.
704 (pp_begin_url): New decl.
705 (pp_end_url): New decl.
706
707 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
708
709 PR target/92022
710 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
711
712 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
713
714 PR target/88630
715 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
716 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
717 also for TARGET_FPU_SH4_300.
718 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
719 TARGET_SH4_300.
720 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
721 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
722 (*negsf2_i): Split into ...
723 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
724 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
725 (**abssf2_i): Split into ...
726 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
727 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
728 (*negdf2_i): Split into ...
729 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
730 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
731 (**abssf2_i): Split into ...
732 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
733
734 2019-10-10 Richard Biener <rguenther@suse.de>
735
736 PR middle-end/92046
737 * opts.c (finish_options): Do not influence global --params
738 from options that are adjustable per function.
739 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
740 Apply --param adjustment based on active cost-model.
741 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
742 further store-sinking when vectorization or if-conversion
743 are not enabled.
744
745 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
746
747 PR middle-end/92037
748 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
749 rather than ggc_alloc_cleared to alloc symbol table.
750 * toplev.c (general_init): Likewise.
751 * cgraph.h (symbol_table): Explicitly construct every field.
752
753 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
754
755 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
756 (PF_Z15): ... this.
757 * config.gcc: Add z15 as option for --with-arch and --with-tune
758 configure switches.
759 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
760 error reporting for unsupported builtins.
761 * config/s390/s390-opts.h (enum processor_type): Rename
762 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
763 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
764 * config/s390/driver-native.c (s390_host_detect_local_cpu):
765 Likewise.
766 * config/s390/s390-builtins.def: Likewise.
767 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
768 (s390_expand_builtin): Add missing check for unsupported builtins.
769 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
770 (s390_rtx_costs): Likewise.
771 (s390_get_sched_attrmask): Rename arch13 to z15.
772 (s390_get_unit_mask): Likewise.
773 (s390_is_fpd): Likewise.
774 (s390_is_fxd): Likewise.
775 * config/s390/s390.h (enum processor_flags): Likewise.
776 * config/s390/s390.md: Likewise.
777 * config/s390/vector.md: Likewise.
778 * config/s390/vx-builtins.md: Likewise.
779 * config/s390/s390.opt: Add z15 to processor_type value.
780
781 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
782
783 PR target/91035
784 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
785 prototype.
786 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
787 ("split_stack_data", "split_stack_call")
788 ("split_stack_call_<mode>", "split_stack_cond_call")
789 ("split_stack_cond_call_<mode>"): Remove.
790 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
791 insn definition.
792 * config/s390/s390.c (s390_output_split_stack_data): New function.
793 (s390_expand_split_stack_prologue): Use the merged expander.
794
795 2019-10-09 Martin Sebor <msebor@redhat.com>
796
797 PR tree-optimization/90879
798 * builtins.c (check_access): Avoid using maxbound when null.
799 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
800 * doc/invoke.texi (-Wstring-compare): Document new warning option.
801 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
802 conditional.
803 (get_range_strlen): Overwrite initial maxbound when non-null.
804 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
805 changes.
806 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
807 (used_only_for_zero_equality): New function.
808 (handle_builtin_memcmp): Call it.
809 (determine_min_objsize): Return an integer instead of tree.
810 (get_len_or_size, strxcmp_eqz_result): New functions.
811 (maybe_warn_pointless_strcmp): New function.
812 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
813 between a longer string and a smaller array.
814 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
815
816 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
817
818 * config/darwin.c (darwin_override_options): Make the check for
819 Objective-C ABI version more specific for 64bit code.
820
821 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
822
823 * config/darwin.c (machopic_indirect_data_reference): Set flag to
824 indicate that the new symbol is an indirection.
825 (machopic_indirect_call_target): Likewise.
826 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
827 (MACHO_SYMBOL_INDIRECTION_P): New.
828 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
829
830 2019-10-08 Jason Merrill <jason@redhat.com>
831
832 * doc/invoke.texi: Document -fconcepts-ts.
833
834 2019-10-09 Richard Biener <rguenther@suse.de>
835
836 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
837 allow stmts other than GIMPLE_ASSIGN in nested cycles.
838
839 2019-10-08 Richard Biener <rguenther@suse.de>
840
841 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
842 (_stmt_vec_info::force_single_cycle): Likewise.
843 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
844 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
845 * tree-vect-loop.c (vectorizable_reduction): Set
846 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
847 (vect_transform_reduction): Use them to remove redundant code.
848 (vect_transform_cycle_phi): Likewise.
849
850 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
851
852 PR tree-optimization/90836
853 * gcc/match.pd (popcount): New pattern.
854
855 2019-10-08 Martin Sebor <msebor@redhat.com>
856
857 PR middle-end/92026
858 PR middle-end/92014
859 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
860 again once nbytes has been set. Set the access size when not yet set.
861
862 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
863
864 * config/darwin.c (machopic_select_section): Remove dead code for
865 old Objective-C section selection method, replace with unreachable.
866
867 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
868
869 * config/darwin.c (machopic_indirect_data_reference): Check for
870 required indirections before making direct access to defined
871 values.
872 (machopic_output_indirection): Place the indirected pointes for
873 required indirections into the non-lazy symbol pointers section.
874 (darwin_encode_section_info):
875 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
876 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
877
878 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
879
880 PR target/91994
881 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
882 instead of ALL_SSE_REG to check if function call preserves some
883 256-bit SSE registers.
884
885 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
886
887 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
888 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
889 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
890
891 2019-10-08 Richard Biener <rguenther@suse.de>
892
893 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
894 (_stmt_vec_info::is_reduc_info): Add.
895 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
896 (vectorizable_condition): Remove.
897 (vectorizable_shift): Likewise.
898 (vectorizable_reduction): Adjust.
899 (info_for_reduction): New.
900 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
901 (vect_analyze_scalar_cycles_1): ... here.
902 (vect_analyze_loop_operations): Adjust.
903 (needs_fold_left_reduction_p): Simplify for single caller.
904 (vect_is_simple_reduction): Likewise. Remove stmt restriction
905 for nested cycles not part of double reductions.
906 (vect_model_reduction_cost): Pass in the reduction type.
907 (info_for_reduction): New function.
908 (vect_create_epilog_for_reduction): Use it, access reduction
909 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
910 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
911 (vectorize_fold_left_reduction): Remove pointless assert.
912 (vectorizable_reduction): Analyze the full reduction when
913 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
914 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
915 stmt code-generation to vectorizable_* in most cases. Verify
916 code-generation only for cases handled by
917 vect_transform_reductuon.
918 (vect_transform_reduction): Use info_for_reduction to get at
919 reduction meta. Simplify.
920 (vect_transform_cycle_phi): Likewise.
921 (vectorizable_live_operation): Likewise.
922 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
923 at the PHI node for STMT_VINFO_REDUC_TYPE.
924 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
925 longer necessary code.
926 * tree-vect-stmts.c (vectorizable_shift): Make static again.
927 (vectorizable_condition): Likewise. Get at reduction related
928 info via info_for_reduction.
929 (vect_analyze_stmt): Adjust.
930 (vect_transform_stmt): Likewise.
931 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
932 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
933
934 2019-10-08 Joseph Myers <joseph@codesourcery.com>
935
936 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
937 -fno-fp-int-builtin-inexact default for C2X.
938
939 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
940 Richard Biener <rguenther@suse.de>
941
942 PR tree-optimization/91532
943 * tree-if-conv.c: Include tree-ssa-dse.h.
944 (ifcvt_local_dce): Change param from bb to loop,
945 and call dse_classify_store.
946 (tree_if_conversion): Pass loop instead of loop->header as arg
947 to ifcvt_local_dce.
948 * tree-ssa-dse.c: Include tree-ssa-dse.h.
949 (delete_dead_or_redundant_assignment): Remove static qualifier from
950 declaration, and add prototype in tree-ssa-dse.h.
951 (dse_store_status): Move to tree-ssa-dse.h.
952 (dse_classify_store): Remove static qualifier and add new tree param
953 stop_at_vuse, and add prototype in tree-ssa-dse.h.
954 * tree-ssa-dse.h: New header.
955
956 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
957
958 * config/darwin.c (machopic_output_indirection): Don't put
959 hidden symbol indirections into the .data section, use the
960 non-lazy symbol pointers section as normal.
961 (darwin_encode_section_info): Record if a symbol is hidden.
962 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
963 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
964
965 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
966
967 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
968 predicates instead of accessing bits directly.
969 (machopic_indirect_call_target): Likewise.
970 (machopic_output_indirection): Likewise.
971 (darwin_encode_section_info): Improve description. Use renamed
972 symbol flags. Use predicate macros for variables and functions.
973 * config/darwin.h:
974 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
975 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
976 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
977 (MACHO_SYMBOL_VARIABLE_P): New.
978 (MACHO_SYMBOL_DEFINED_P):New.
979 (MACHO_SYMBOL_STATIC_P): New.
980 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
981 (SYMBOL_FLAG_SUBT_DEP): New.
982 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
983
984 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
985
986 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
987 (msp430_expand_epilogue): Likewise.
988 * config/msp430/predicates.md: Likewise.
989 * config/msp430/msp430.md: Likewise.
990 Replace blocks of 8 spaces with tabs.
991
992 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
993
994 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
995 * config/msp430/msp430.c (msp430_split_addsi): New.
996 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
997 a block of C code for splitting addsi.
998
999 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
1000
1001 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
1002 ix86_expand_rounddf_32): Reorder functions.
1003 * config/i386/i386-protos.h: Update.
1004
1005 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1006
1007 * config.in: Regenerate.
1008 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
1009 Add new "Yx" constraint.
1010 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
1011 function.
1012 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
1013 prototype.
1014 * config/msp430/msp430.c (msp430_option_override): Allow the lower
1015 code/data region to be selected in the small memory model.
1016 (msp430_section_attr): Don't warn if the "section" and "lower"
1017 attributes are used together.
1018 (msp430_handle_generic_attribute): Likewise.
1019 (msp430_var_in_low_mem): New function.
1020 (TARGET_ENCODE_SECTION_INFO): Define.
1021 (msp430_encode_section_info): New function.
1022 (gen_prefix): Return early in the small memory model.
1023 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
1024 ".lower" prefix if -m{code,data}-region=lower have been passed.
1025 (msp430_output_aligned_decl_common): Emit common symbols when
1026 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
1027 set.
1028 (TARGET_ASM_FILE_END): Define.
1029 (msp430_file_end): New function.
1030 (msp430_do_not_relax_short_jumps): Allow relaxation when
1031 function will be in the lower region.
1032 (msp430_op_not_in_high_mem): New function.
1033 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
1034 the 'X' operand selector.
1035 Clarify comment for 'x' operand selector.
1036 * config/msp430/msp430.h (LINK_SPEC): Propagate
1037 -m{code,data}-region to the linker via spec function
1038 msp430_propagate_region_opt.
1039 (msp430_propagate_region_opt): New prototype.
1040 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
1041 (SYMBOL_FLAG_LOW_MEM): Define.
1042 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
1043 selector.
1044 (zero_extendqihi2): Fix operand number used by "%X" selector.
1045 (zero_extendqisi2): Likewise.
1046 (zero_extendhisi2): Likewise.
1047 (movqi): Use "Yx" constraint in place of "%X" operand selector.
1048 (movhi): Likewise.
1049 (addqi3): Likewise.
1050 (addhi3): Likewise.
1051 (addsi3): Likewise.
1052 (addhi3_cy): Likewise.
1053 (addchi4_cy): Likewise.
1054 (subqi3): Likewise.
1055 (subhi3): Likewise.
1056 (subsi3): Likewise.
1057 (bic<mode>3): Likewise.
1058 (and<mode>3): Likewise.
1059 (ior<mode>3): Likewise.
1060 (xor<mode>3): Likewise.
1061 (slli_1): Add missing "%X" operand selector.
1062 (slll_1): Likewise.
1063 (slll_2): Likewise.
1064 (srai_1): Likewise.
1065 (sral_1): Likewise.
1066 (sral_2): Likewise.
1067 (srli_1): Likewise.
1068 (srll_1): Likewise.
1069 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1070 selector.
1071 (cbranchhi4_real): Likewise.
1072 (cbranchqi4_reversed): Likewise.
1073 (cbranchhi4_reversed): Likewise.
1074 (*bitbranch<mode>4): Likewise.
1075 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1076 * config/msp430/msp430.opt (mcode-region=): Set default to
1077 MSP430_REGION_LOWER. Improve docstring.
1078 (mdata-region=): Likewise.
1079 (muse-lower-region-prefix): New option.
1080 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1081 mdata-region=none multilib.
1082 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1083 mdata-region=none multilib.
1084 MULTILIB_EXCEPTIONS: Remove.
1085 MULTILIB_REQUIRED: Define.
1086 * configure: Regenerate.
1087 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1088 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1089 * doc/extend.texi: Clarify comment for {upper,lower,either}
1090 function attributes.
1091 Add separate description for "lower" variable attribute.
1092
1093 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1094
1095 PR target/77918
1096 * optabs-tree.c (vcond_icode_p): New function.
1097 (vcond_eq_icode_p): Likewise.
1098 (expand_vec_cond_expr_p): Use vcond_icode_p and
1099 vcond_eq_icode_p.
1100 * optabs.c (can_vcond_compare_p): New function.
1101 * optabs.h (can_vcond_compare_p): Likewise.
1102
1103 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1104
1105 PR target/77918
1106 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1107 caller passes a non-trapping condition.
1108 (is_gimple_condexpr): Allow trapping conditions.
1109 (is_gimple_condexpr_1): New helper function.
1110 (is_gimple_condexpr_for_cond): New function, acts like old
1111 is_gimple_condexpr.
1112 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1113 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1114 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1115 * gimplify.c (gimplify_cond_expr): Use
1116 is_gimple_condexpr_for_cond.
1117 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1118 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1119 VEC_COND_EXPR.
1120 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1121 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1122 is_gimple_condexpr_for_cond, remove pointless tmp check
1123 (forward_propagate_into_cond): Remove pointless tmp check.
1124
1125 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1126
1127 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1128 match that of other gsi_next_* functions. Adjust the comment.
1129 (gsi_start_nonvirtual_phis): New function.
1130 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1131 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1132
1133 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1134
1135 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1136 setjmp situation here. Fix a verb's ending: "the exact variables or
1137 elements for which there are warnings depends" -> "... depend".
1138
1139 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1140
1141 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1142
1143 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1144
1145 * ipa-prop.c (ipa_vr::nonzero_p): New.
1146 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1147 non-zero range.
1148 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1149 * tree-vrp.c (range_has_numeric_bounds_p): New.
1150 (range_int_cst_p): Use range_has_numeric_bounds_p.
1151 (get_range_op_handler): New.
1152 (supported_types_p): New.
1153 (defined_ranges_p): New.
1154 (drop_undefines_to_varying): New.
1155 (range_fold_binary_symbolics_p): New.
1156 (range_fold_unary_symbolics_p): New.
1157 (range_fold_unary_expr): Extract out into above functions.
1158 (range_fold_binary_expr): Same.
1159 (value_range_base::normalize_addresses): New.
1160 (value_range_base::normalize_symbolics): Normalize addresses.
1161 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1162
1163 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1164
1165 * tree-vrp.c (value_range_base::singleton_p): Use
1166 value_range_base::num_pairs instead of vrp_val_is* to check
1167 if a range has one sub-range.
1168
1169 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1170
1171 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1172 DEF is not a true earlyclobber but is tied to a specific input
1173 operand, and so is effectively earlyclobber wrt inputs that have
1174 different values.
1175 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1176
1177 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1178
1179 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1180 (pod_mode): Mark operators likewise.
1181 (scalar_int_mode): Mark non-default constructors and
1182 operators with CONSTEXPR.
1183 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1184 (fixed_size_mode): Likewise.
1185
1186 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1187
1188 PR target/91994
1189 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1190 and wrap the unspec_volatile in a parallel.
1191 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1192 the unspec_volatile.
1193 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1194 unspec_volatile to be wrapped in a parallel.
1195 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1196 (ix86_add_reg_usage_to_vzerouppers): New functions.
1197 (rest_of_handle_insert_vzeroupper): Use them to add register
1198 usage information to the vzeroupper instructions.
1199
1200 2019-10-07 Richard Biener <rguenther@suse.de>
1201
1202 PR tree-optimization/91975
1203 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1204 handle invariants.
1205
1206 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1207
1208 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1209 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1210
1211 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1212
1213 * config/darwin.c (darwin_override_options): Adjust objective-c
1214 ABI version error messages to avoid punctuation and contracted
1215 negations.
1216
1217 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1218
1219 * ipa-inline.c: Fix type; compute size rather than self_size
1220 for size of caller function.
1221
1222 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1223
1224 PR target/59888
1225 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1226 choose const_data section for constants with relocations.
1227 (machopic_select_section): Pass relocation flag to
1228 darwin_rodata_section ().
1229
1230 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1231
1232 PR tree-optimization/91734
1233 * generic-match-head.c: Include fold-const-call.h.
1234 * match.pd (sqrt(x) cmp c): Check the boundary value and
1235 in case inexact computation of c*c affects comparison of the boundary,
1236 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1237 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1238 for -frounding-math. For c2, try the next smaller or larger floating
1239 point constant depending on comparison code and if it has the same
1240 sqrt as c2, use it instead of c2.
1241
1242 2019-10-04 Martin Sebor <msebor@redhat.com>
1243
1244 PR middle-end/91977
1245 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1246 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1247 uninitialized objects.
1248
1249 2019-10-04 Martin Sebor <msebor@redhat.com>
1250
1251 * builtins.c (compute_objsize): Add an argument.
1252 * tree-object-size.c (addr_object_size): Same.
1253 (compute_builtin_object_size): Same.
1254 * tree-object-size.h (compute_builtin_object): Same.
1255
1256 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1257
1258 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1259
1260 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1261
1262 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1263
1264 2019-10-04 Martin Jambor <mjambor@suse.cz>
1265
1266 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1267 fntype when switching to calling memcpy instead of memset.
1268
1269 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1270
1271 * hash-table.h (hash_table::empty_slow): Don't assign
1272 size_t values to int variables.
1273
1274 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1275
1276 * expr.c (convert_mode_scalar): Remove shadowing local var.
1277 (emit_block_move): Rename local vars.
1278 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1279 (emit_push_insn): Rename local vars.
1280 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1281 shadowing local vars.
1282 (store_constructor): Remove shadowing local vars. Rename local var.
1283 (store_field, expand_cond_expr_using_cmove,
1284 expand_expr_real_2): Remove shadowing local vars.
1285 (expand_expr_real_1,
1286 do_store_flag): Remove shadowing local vars. Rename local vars.
1287
1288 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1289
1290 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1291
1292 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1293
1294 * genmatch.c (commutate): Rename local var.
1295 (lower_cond): Reuse local var.
1296 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1297 dt_operand::gen, dt_operand::gen_gimple_expr,
1298 dt_simplify::gen): Add a param. Rename generated vars.
1299 (decision_tree::insert_operand,
1300 (capture_info::walk_match, capture_info::walk_result,
1301 capture_info::walk_c_expr): Rename local vars.
1302 (expr::gen_transform): Rename generated vars.
1303 Use snprintf. Rename local vars.
1304 (capture::gen_transform, dt_operand::get_name,
1305 dt_operand::gen_opname): Rename generated vars.
1306 (write_predicate): Adjust call to gen_kids.
1307 (parser::get_internal_capture_id): Rename generated vars.
1308 (parser::parse_expr): Rename local vars.
1309 (parser::parse_if): Remove local var.
1310 (parser::parse_pattern, add_operator): Rename local vars.
1311
1312 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1313
1314 * builtins.def (DEF_C2X_BUILTIN): New macro.
1315 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1316 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1317 (strndup): Use DEF_C2X_BUILTIN.
1318 * coretypes.h (enum function_class): Add function_c2x_misc.
1319
1320 2019-10-04 Maya Rashish <coypu@sdf.org>
1321
1322 * ira-color.c (update_costs_from_allocno): Call
1323 ira_init_register_move_cost_if_necessary.
1324
1325 2019-10-04 Jeff Law <law@redhat.com>
1326
1327 * config/h8300/h8300.md (cpymemsi): Disable.
1328 (movmd, movmd_internal_<mode>, movstr, movsd):
1329 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1330 (movmd splitter, movsd splitter): Likewise.
1331
1332 * range-op.cc (range_tests): Avoid two tests when ints and
1333 shorts are the same size.
1334
1335 2019-10-04 Richard Biener <rguenther@suse.de>
1336
1337 PR lto/91968
1338 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1339 BLOCK_VARS.
1340
1341 2019-10-04 Richard Biener <rguenther@suse.de>
1342
1343 PR tree-optimization/91982
1344 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1345 against EXTRACT_LAST_REDUCTION.
1346 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1347
1348 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1349
1350 * range-op.o (value_range_from_overflowed_bounds): Rename from
1351 adjust_overflow_bound.
1352 (value_range_with_overflow): Rename from
1353 create_range_with_overflow.
1354 (create_possibly_reversed_range): Adjusted for above renames.
1355 (operator_*::wi_fold): Same.
1356 (cross_product_operator::wi_cross_productor): Same.
1357
1358 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1359
1360 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1361 -Wshadow=compatible-local): Fix description.
1362 Add an example where -Wshadow=compatible-local does not
1363 warn.
1364
1365 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1366
1367 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1368
1369 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1370 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1371
1372 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1373
1374 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1375 can_move_by_pieces issue.
1376
1377 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1378
1379 PR target/87243
1380 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1381 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1382 is available and the user has not set one on the command line.
1383
1384 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1385
1386 PR target/91769
1387 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1388 instead of REGNO equality check on addr.reg.
1389
1390 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1391
1392 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1393 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1394 * doc/invoke.texi (inline-heuristics-hint-percent,
1395 inline-heuristics-hint-percent-O2): Document.
1396 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1397 hint attribute.
1398 (can_inline_edge_by_limits_p): Use it.
1399
1400 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1401
1402 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1403 to print CONST_DOUBLEs.
1404
1405 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1406
1407 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1408 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1409 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1410
1411 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1412
1413 * Makefile.in (OBJS): Add range.o and range-op.o.
1414 Remove wide-int-range.o.
1415 * function-tests.c (test_ranges): New.
1416 (function_tests_c_tests): Call test_ranges.
1417 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1418 range_fold_unary_expr instead of extract_range_from_unary_expr.
1419 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1420 * range-op.cc: New file.
1421 * range-op.h: New file.
1422 * range.cc: New file.
1423 * range.h: New file.
1424 * selftest.h (range_tests): New prototype.
1425 * ssa.h: Include range.h.
1426 * tree-vrp.c (value_range_base::value_range_base): New
1427 constructors.
1428 (value_range_base::singleton_p): Do not call
1429 ranges_from_anti_range until sure we will need to.
1430 (value_range_base::type): Rename gcc_assert to
1431 gcc_checking_assert.
1432 (vrp_val_is_max): New argument.
1433 (vrp_val_is_min): Same.
1434 (wide_int_range_set_zero_nonzero_bits): Move from
1435 wide-int-range.cc.
1436 (extract_range_into_wide_ints): Remove.
1437 (extract_range_from_multiplicative_op): Remove.
1438 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1439 from extract_range_from_binary_expr.
1440 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1441 from extract_range_from_binary_expr.
1442 (extract_range_from_binary_expr): Remove.
1443 (normalize_for_range_ops): New.
1444 (range_fold_binary_expr): New.
1445 (range_fold_unary_expr): New.
1446 (value_range_base::num_pairs): New.
1447 (value_range_base::lower_bound): New.
1448 (value_range_base::upper_bound): New.
1449 (value_range_base::upper_bound): New.
1450 (value_range_base::contains_p): New.
1451 (value_range_base::invert): New.
1452 (value_range_base::union_): New.
1453 (value_range_base::intersect): New.
1454 (range_compatible_p): New.
1455 (value_range_base::operator==): New.
1456 (determine_value_range_1): Call range_fold_*expr instead of
1457 extract_range_from_*expr.
1458 * tree-vrp.h (class value_range_base): Add new constructors.
1459 Add methods for union_, intersect, operator==, contains_p,
1460 num_pairs, lower_bound, upper_bound, invert.
1461 (vrp_val_is_min): Add handle_pointers argument.
1462 (vrp_val_is_max): Same.
1463 (extract_range_from_unary_expr): Remove.
1464 (extract_range_from_binary_expr): Remove.
1465 (range_fold_unary_expr): New.
1466 (range_fold_binary_expr): New.
1467 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1468 range_fold_binary_expr instead of extract_range_from_binary_expr.
1469 (vr_values::extract_range_basic): Same.
1470 (vr_values::extract_range_from_unary_expr): Call
1471 range_fold_unary_expr instead of extract_range_from_unary_expr.
1472 * wide-int-range.cc: Remove.
1473 * wide-int-range.h: Remove.
1474
1475 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1476
1477 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1478 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1479 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1480 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1481 macro.
1482
1483 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1484
1485 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1486 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1487 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1488 * glimits.h: Likewise.
1489
1490 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1491
1492 PR rtl-optimization/91976
1493 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1494 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1495 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1496
1497 2019-10-02 Martin Sebor <msebor@redhat.com>
1498
1499 PR tree-optimization/80936
1500 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1501
1502 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1503
1504 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1505 instead of reg_class_contents[ALL_REGS].
1506
1507 2019-09-30 Jason Merrill <jason@redhat.com>
1508
1509 Add some hash_map_safe_* functions like vec_safe_*.
1510 * hash-map.h (default_hash_map_size): New variable.
1511 (create_ggc): Use it as default argument.
1512 (hash_map_maybe_create, hash_map_safe_get)
1513 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1514
1515 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1516
1517 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1518 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1519 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1520 (can_inline_edge_by_limits_p): Use it.
1521 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1522 (want_inline_small_function_p): Use O2 bounds.
1523 (edge_badness): LIkewise.
1524 * opts.c (default_options): Add OPT_finline_functions.
1525 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1526 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1527 New parameters.
1528 * doc/invoke.texi (-finline-functions): Update documentation.
1529 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1530 inline-min-speedup-O2): Document.
1531 (early-inlining-insns-O2): Simplify docs.
1532
1533 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1534
1535 PR rtl-optimization/87047
1536 * ifcvt.c (average_cost): New static function. Use it...
1537 (noce_process_if_block): ... here.
1538
1539 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1540
1541 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1542 * config/rs6000/rs6000-string.c (expand_block_move): Add
1543 might_overlap parm.
1544 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1545 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1546
1547 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1548
1549 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1550 (expand_builtin_memcpy): Use might_overlap parm.
1551 (expand_builtin_mempcpy_args): Use might_overlap parm.
1552 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1553 (expand_builtin_memory_copy_args): Add might_overlap parm.
1554 * expr.c (emit_block_move_via_cpymem): Rename to
1555 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1556 or movmem optab as appropriate.
1557 (emit_block_move_hints): Add might_overlap parm, do the right
1558 thing for might_overlap==true.
1559 * expr.h (emit_block_move_hints): Update prototype.
1560
1561 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1562
1563 * tree-eh.h (unsplit_eh_edges): Declare.
1564 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1565 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1566 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1567 (struct store_immediate_info): Add lp_nr field.
1568 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1569 initialize lp_nr with it.
1570 (struct merged_store_group): Add lp_nr and only_constants fields.
1571 (merged_store_group::merged_store_group): Initialize them.
1572 (merged_store_group::can_be_merged_into): Deal with them.
1573 (pass_store_merging): Rename terminate_and_release_chain into
1574 terminate_and_process_chain.
1575 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1576 renaming and remove useless assertions.
1577 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1578 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1579 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1580 instead of always recomputing it and compare lp_nr.
1581 (imm_store_chain_info::output_merged_store): If the group is in an
1582 active EH region, register new stores if they can throw. Moreover,
1583 if the insertion has created new basic blocks, adjust the PHI nodes
1584 of the post landing pad.
1585 (imm_store_chain_info::output_merged_stores): If the original stores
1586 are in an active EH region, deregister them.
1587 (lhs_valid_for_store_merging_p): Prettify.
1588 (adjust_bit_pos): New function extracted from...
1589 (mem_valid_for_store_merging): ...here. Use it for the base address
1590 and also for the offset if it is the addition of a constant.
1591 (lp_nr_for_store): New function.
1592 (pass_store_merging::process_store): Change return type to bool.
1593 Call lp_nr_for_store to initialize the store info. Propagate the
1594 return status of various called functions to the return value.
1595 (store_valid_for_store_merging_p): New predicate.
1596 (enum basic_block_status): New enumeration.
1597 (get_status_for_store_merging): New function.
1598 (pass_store_merging::execute): If the function can throw and catch
1599 non-call exceptions, unsplit the EH edges on entry and clean up the
1600 CFG on exit if something changed. Call get_status_for_store_merging
1601 for every basic block and keep the chains open across basic blocks
1602 when possible. Terminate and process open chains at the end, if any.
1603
1604 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1605
1606 * reginfo.c (globalize_reg): Fix shadowed variable in
1607 function_abis walk.
1608
1609 2019-10-02 Martin Jambor <mjambor@suse.cz>
1610
1611 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1612 do not compute some stuff when set.
1613 (cgraph_node::create_edge): Likewise.
1614 (cgraph_node::create_indirect_edge): Renamed last parameter to
1615 coning_p and flipped its meaning, don't even calculate
1616 inline_failed when set.
1617 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1618 (symbol_table::::create_edge): Likewise.
1619 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1620 the default value.
1621 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1622 call graph edge creating functions.
1623
1624 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1625
1626 PR c++/91222
1627 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1628 namespace types.
1629
1630 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1631
1632 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1633
1634 2019-10-02 Richard Biener <rguenther@suse.de>
1635
1636 * tree-vectorizer.h (vect_transform_reduction): Declare.
1637 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1638 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1639 stmt transform to ...
1640 (vect_transform_reduction): ... this.
1641
1642 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1643
1644 * omp-low.c (lower_omp_target): Dereference optional argument
1645 to work with the right pointer.
1646
1647 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1648
1649 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1650 false.
1651 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1652 * langhooks.h (omp_is_optional_argument): New hook.
1653 * omp-general.c (omp_is_optional_argument): New.
1654 * omp-general.h (omp_is_optional_argument): New declaration.
1655 * omp-low.c (lower_omp_target): Create temporary for received value
1656 and take the address for new_var if the original variable was a
1657 DECL_BY_REFERENCE. Use size of referenced object when a
1658 pass-by-reference optional argument used as argument to firstprivate.
1659
1660 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1661
1662 PR tree-optimization/91940
1663 * tree-vect-patterns.c: Include tree-vector-builder.h and
1664 vec-perm-indices.h.
1665 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1666 unpromoting the argument back to uint16_t, or by converting into a
1667 rotate, or into shifts plus ior.
1668
1669 2019-10-02 Richard Biener <rguenther@suse.de>
1670
1671 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1672 New.
1673 (vect_transform_cycle_phi): Declare.
1674 * tree-vect-stmts.c (vect_transform_stmt): Call
1675 vect_transform_cycle_phi.
1676 * tree-vect-loop.c (vectorizable_reduction): Split out
1677 PHI transformation stage to ...
1678 (vect_transform_cycle_phi): ... here.
1679
1680 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1681
1682 PR middle-end/91957
1683 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1684 eliminable registers.
1685 (make_hard_regno_live): Likewise, and don't make them live.
1686
1687 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1688
1689 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1690 Call pp_emit_prefix.
1691 (layout::print_source_line): Likewise.
1692 (layout::start_annotation_line): Likewise.
1693 (diagnostic_show_locus): Remove call to temporarily clear the
1694 prefix.
1695 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1696 interaction of pp_set_prefix with rulers and fix-it hints.
1697 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1698 prefix when calling diagnostic_show_locus, rather than destroying
1699 it afterwards.
1700 (print_parseable_fixits): Temporarily clear prefix.
1701 * pretty-print.c (pp_format): Save and restore line_length, rather
1702 than assuming it is zero.
1703 (pp_output_formatted_text): Remove assertion that line_length is
1704 zero.
1705
1706 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1707
1708 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1709 Rename to ...
1710 (nonoverlapping_refs_since_match_p): ... this; handle also
1711 ARRAY_REFs.
1712 (alias_stats): Update stats.
1713 (dump_alias_stats): Likewise.
1714 (cheap_array_ref_low_bound): New function.
1715 (aliasing_matching_component_refs_p): Add partial_overlap
1716 argument;
1717 pass it to nonoverlapping_refs_since_match_p.
1718 (aliasing_component_refs_walk): Update call of
1719 aliasing_matching_component_refs_p
1720 (nonoverlapping_array_refs_p): New function.
1721 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1722 indirect_refs_may_alias_p): Update calls of
1723 nonoverlapping_refs_since_match_p.
1724
1725 2019-10-01 Maya Rashish <coypu@sdf.org>
1726
1727 PR target/85401
1728 * ira-color.c (allocno_copy_cost_saving): Call
1729 ira_init_register_move_cost_if_necessary.
1730
1731 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1732
1733 * Makefile.in (gnat_install_lib): New variable.
1734 * configure.ac: Substitute it.
1735 * configure: Regenerate.
1736
1737 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1738
1739 PR lto/91222
1740 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1741 is matched with non-C++ type
1742
1743 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1744
1745 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1746 after local CSE.
1747
1748 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1749
1750 * doc/invoke.texi (early-inlining-insns-O2): Document.
1751 (early-inlining-insns): Update.
1752 * params.def (early-inlining-insns-O2): New bound.
1753 (early-inlining-insns): Update docs.
1754 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1755
1756 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1757
1758 PR target/88562
1759 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1760 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1761 a memory access insn.
1762
1763 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1764
1765 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1766 vpmsumd.
1767
1768 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1769
1770 PR target/77918
1771 * config/s390/s390.c (s390_expand_vec_compare): Use
1772 gen_vec_cmpordered and gen_vec_cmpunordered.
1773 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1774 vec_unordered): Delete.
1775 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1776 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1777 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1778 (vec_cmp<code>): Generic dispatcher.
1779
1780 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1781
1782 PR target/77918
1783 * config/s390/vector.md (V_HW): Add V1TI in order to make
1784 vcond$a$b generate vcondv1tiv1tf.
1785
1786 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1787
1788 PR rtl-optimization/91948
1789 * ira-build.c (ira_create_allocno): Initialize
1790 ALLOCNO_CROSSED_CALLS_ABIS.
1791 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1792 than regno to ira_need_caller_save_p.
1793
1794 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1795
1796 * config/i386/i386-options.c
1797 (ix86_recompute_optlev_based_flags): New, moved out of...
1798 (ix86_option_override_internal): ... this. Call it.
1799 (ix86_override_options_after_change): Call it here too.
1800
1801 PR debug/91507
1802 * dwarf2out.c (override_type_for_decl_p): New.
1803 (gen_variable_die): Use it.
1804
1805 2019-10-01 Richard Biener <rguenther@suse.de>
1806
1807 * tree-vect-loop.c (vectorizable_reduction): Move variables
1808 to where they are used.
1809
1810 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1811
1812 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1813 (build_def_use): Use PC instead of CC0 in a comment.
1814
1815 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1816
1817 * rtl.def (CLOBBER_HIGH): Delete.
1818 * doc/rtl.texi (clobber_high): Remove documentation.
1819 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1820 (reg_is_clobbered_by_clobber_high): Delete.
1821 (gen_hard_reg_clobber_high): Likewise.
1822 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1823 * cfgexpand.c (expand_gimple_stmt): Likewise.
1824 * combine-stack-adj.c (single_set_for_csa): Likewise.
1825 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1826 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1827 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1828 * cse.c (invalidate_reg): Remove clobber_high parameter.
1829 (invalidate): Update call accordingly.
1830 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1831 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1832 (count_reg_usage, insn_live_p): Likewise.
1833 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1834 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1835 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1836 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1837 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1838 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1839 (mark_nonreg_stores_2): Likewise.
1840 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1841 (df_get_call_refs): Likewise.
1842 * dwarf2out.c (mem_loc_descriptor): Likewise.
1843 * emit-rtl.c (verify_rtx_sharing): Likewise.
1844 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1845 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1846 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1847 * genemit.c (gen_exp, gen_insn): Likewise.
1848 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1849 * haifa-sched.c (haifa_classify_rtx): Likewise.
1850 * ira-build.c (create_insn_allocnos): Likewise.
1851 * ira-costs.c (scan_one_insn): Likewise.
1852 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1853 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1854 * jump.c (mark_jump_label_1): Likewise.
1855 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1856 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1857 handling.
1858 (mark_not_eliminable): Likewise.
1859 * lra-lives.c (process_bb_lives): Likewise.
1860 * lra.c (new_insn_reg): Remove clobber_high parameter.
1861 (collect_non_operand_hard_regs): Likewise. Update call to new
1862 insn_reg. Remove CLOBBER_HIGH handling.
1863 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1864 to collect_non_operand_hard_regs.
1865 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1866 Update call to new_insn_reg.
1867 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1868 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1869 (move2add_note_store): Likewise.
1870 * print-rtl.c (print_pattern): Likewise.
1871 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1872 (if_test_bypass_p): Likewise.
1873 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1874 * reginfo.c (reg_scan_mark_refs): Likewise.
1875 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1876 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1877 (forget_old_reloads_1): Likewise.
1878 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1879 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1880 (dbr_schedule): Likewise.
1881 * resource.c (update_live_status, mark_referenced_resources)
1882 (mark_set_resources): Likewise.
1883 * rtl.c (copy_rtx): Likewise.
1884 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1885 (note_pattern_stores): Likewise.
1886 (reg_is_clobbered_by_clobber_high): Delete.
1887 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1888 CLOBBER_HIGH handling.
1889
1890 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1891
1892 PR target/91452
1893 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1894 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1895 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1896 Handle ARM_PCS_TLSDESC.
1897 (aarch64_tlsdesc_abi_id): New function.
1898 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1899 rtx instead of a list of clobbers and clobber_highs.
1900 (tlsdesc_small_<mode>): Update accordingly.
1901
1902 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1903
1904 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1905 extra callee_abi argument.
1906 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1907 Insert a CALLEE_ABI unspec into the call pattern as the second
1908 element in the PARALLEL.
1909 (aarch64_simd_call_p): Delete.
1910 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1911 the new CALLEE_ABI element of the PARALLEL.
1912 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1913 from the function type, if given.
1914 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1915 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1916 when passed the function_arg_info end marker.
1917 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1918 final argument of gen_sibcall.
1919 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1920 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1921 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1922 pattern.
1923 (call_value): Likewise operand 3.
1924 (sibcall): Likewise operand 2. Place the unspec before rather than
1925 after the return.
1926 (sibcall_value): Likewise operand 3.
1927 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1928 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1929 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1930 constraint strings.
1931 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1932
1933 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1934
1935 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1936 choose_hard_reg_mode.
1937 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1938
1939 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1940
1941 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1942 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1943 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1944
1945 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1946
1947 * diagnostic-show-locus.c (line_label::line_label): Initialize
1948 m_has_vbar.
1949 (line_label::comparator): Reverse the sort order by m_state_idx,
1950 so that when the list is walked backwards the labels appear in
1951 order of insertion into the rich_location.
1952 (line_label::m_has_vbar): New field.
1953 (layout::print_any_labels): When dealing with multiple labels at
1954 the same line and column, only print vertical bars for the one
1955 with the highest label_line.
1956 (selftest::test_one_liner_labels): Update test for multiple labels
1957 to expect the labels to be in the order of insertion into the
1958 rich_location. Add a test for many such labels, where the column
1959 numbers are out-of-order relative to the insertion order.
1960
1961 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1962
1963 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1964 (ix86_frame::expensive_count): Likewise.
1965 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1966 of use_fast_prologue_epilogue robust against incidental changes
1967 in function size.
1968
1969 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1970
1971 PR target/77918
1972 * config/s390/vector.md (vec_unordered<mode>): Call
1973 gen_vec_ordered<mode>.
1974
1975 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1976
1977 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1978 New pattern for ASRD.
1979 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1980 * internal-fn.def (IFN_DIV_POW2): New internal function.
1981 * optabs.def (sdiv_pow2_optab): New optab.
1982 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1983 Modify pattern to support new operation.
1984 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1985 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1986 Document new target selector.
1987
1988 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1989
1990 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1991 to test whether we're compiling a vector PCS function and to test
1992 whether the function needs to save a particular register.
1993 Remove the vector PCS handling of df_set_regs_ever_live.
1994 (aarch64_components_for_bb): Use crtl->abi to test whether
1995 the function needs to save a particular register.
1996 (aarch64_process_components): Use crtl->abi to test whether
1997 we're compiling a vector PCS function.
1998 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1999 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
2000
2001 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2002
2003 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
2004 Delete.
2005 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
2006 whether the block calls a function that clobbers more registers
2007 than the current function is allowed to.
2008 (aarch64_use_simple_return_insn_p): Delete.
2009 * config/aarch64/aarch64.md (simple_return): Remove condition.
2010
2011 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2012
2013 * function-abi.h (function_abi_aggregator): New class.
2014 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
2015 function.
2016 * ira.c (update_equiv_regs_prescan): New function. Call
2017 set_paradoxical_subreg here rather than...
2018 (update_equiv_regs): ...here.
2019 (ira): Call update_equiv_regs_prescan.
2020
2021 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2022
2023 * hard-reg-set.h (regs_invalidated_by_call): Only define if
2024 IN_TARGET_CODE.
2025 (call_used_or_fixed_regs): Likewise.
2026 (call_used_or_fixed_reg_p): Likewise.
2027 * reginfo.c (regs_invalidated_by_call): New macro.
2028
2029 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2030
2031 * shrink-wrap.c: Include function-abi.h.
2032 (requires_stack_frame_p): Use crtl->abi to test whether the
2033 current function can use a register without saving it first.
2034
2035 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2036
2037 * sel-sched-ir.h (_def::crosses_call): Replace with...
2038 (_def::crossed_call_abis): ..this new field.
2039 (def_list_add): Take a mask of ABIs instead of a crosses_call
2040 boolean.
2041 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
2042 of _def accordingly.
2043 * sel-sched.c: Include function-abi.h.
2044 (hard_regs_data::regs_for_call_clobbered): Delete.
2045 (reg_rename::crosses_call): Replace with...
2046 (reg_rename::crossed_call_abis): ...this new field.
2047 (fur_static_params::crosses_call): Replace with...
2048 (fur_static_params::crossed_call_abis): ...this new field.
2049 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
2050 (init_hard_regs_data): Use crtl->abi to test which registers the
2051 current function would need to save before it uses them.
2052 (mark_unavailable_hard_regs): Update handling of call-clobbered
2053 registers, using call_clobbers_in_region to find out which registers
2054 might be call-clobbered (but without taking -fipa-ra into account
2055 for now). Remove separate handling of partially call-clobbered
2056 registers.
2057 (verify_target_availability): Use crossed_call_abis instead of
2058 crosses_call.
2059 (get_spec_check_type_for_insn, find_used_regs): Likewise.
2060 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
2061
2062 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2063
2064 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2065 function to test whether a register is fully or partly clobbered.
2066
2067 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2068
2069 * rtlanal.c: Include function-abi.h.
2070 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2071 function and clobbers_reg_p to test whether the register
2072 is call-clobbered.
2073 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2074 to get the ABI of the called function and full_reg_clobbers to
2075 get the set of fully call-clobbered registers. Warn about the
2076 pitfalls of using this mode.
2077
2078 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2079
2080 * reload.c: Include function-abi.h.
2081 (find_equiv_reg): Use clobbers_reg_p to test whether either
2082 of the equivalent registers is clobbered by a call.
2083 * reload1.c: Include function-abi.h.
2084 (reg_reloaded_call_part_clobbered): Delete.
2085 (reload): Use crtl->abi to test which registers would need
2086 saving in the prologue before use.
2087 (find_reg): Likewise.
2088 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2089 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2090 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2091
2092 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2093
2094 * regrename.h (du_head::call_clobber_mask): New field.
2095 (du_head::need_caller_save_reg): Replace with...
2096 (du_head::call_abis): ...this new field.
2097 * regrename.c: Include function-abi.h.
2098 (call_clobbered_in_chain_p): New function.
2099 (check_new_reg_p): Use crtl->abi when deciding whether a register
2100 is free for use after RA. Use call_clobbered_in_chain_p to test
2101 whether a candidate register would be clobbered by a call.
2102 (find_rename_reg): Don't add call-clobber conflicts here.
2103 (rename_chains): Check call_abis instead of need_caller_save_reg.
2104 (merge_chains): Update for changes to du_head.
2105 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2106 target. Record the ABI identifier in call_abis and the set of
2107 fully or partially clobbered registers in call_clobber_mask.
2108 Add fully-clobbered registers to hard_conflicts here rather
2109 than in find_rename_reg.
2110 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2111 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2112 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2113 function-abi.h.
2114 * config/c6x/c6x.c: Likewise.
2115
2116 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2117
2118 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2119 mode of the register when deciding whether it is no longer
2120 available after a call.
2121
2122 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2123
2124 * recog.c: Include function-abi.h.
2125 (peep2_find_free_register): Use crtl->abi when deciding whether
2126 a register is free for use after RA.
2127
2128 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2129
2130 * postreload-gcse.c: Include regs.h and function-abi.h.
2131 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2132 call insn target. Conservatively assume that partially-clobbered
2133 registers are altered.
2134
2135 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2136
2137 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2138 when deciding whether a register is free for use after RA.
2139 (reload_combine): Remove unnecessary use of fixed_reg_set.
2140 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2141 call insn target. Use reg_mode when testing whether a register
2142 is no longer available.
2143
2144 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2145
2146 * target.def (return_call_with_max_clobbers): Delete.
2147 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2148 * doc/tm.texi: Regenerate.
2149 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2150 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2151 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2152 (lra_reg::call_insn): Delete.
2153 * lra.c: Include function-abi.h.
2154 (initialize_lra_reg_info_element): Don't initialize the fields above.
2155 (lra): Use crtl->abi to test whether the current function needs to
2156 save a register in the prologue. Remove special pre-inheritance
2157 lra_create_live_ranges pass for flag_ipa_ra.
2158 * lra-assigns.c: Include function-abi.h
2159 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2160 function needs to save a register in the prologue.
2161 (lra_assign): Assert that registers aren't allocated to a
2162 conflicting register, rather than checking only for overlaps
2163 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2164 and for registers that are not live across a call.
2165 * lra-constraints.c (last_call_for_abi): New variable.
2166 (full_and_partial_call_clobbers): Likewise.
2167 (setup_next_usage_insn): Remove the register from
2168 full_and_partial_call_clobbers.
2169 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2170 whether the register needs a caller save.
2171 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2172 of call_used_or_fixed_regs.
2173 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2174 full_and_partial_call_clobbers.
2175 * lra-lives.c (check_pseudos_live_through_calls): Replace
2176 last_call_used_reg_set and call_insn arguments with an abi argument.
2177 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2178 as the set of conflicting registers.
2179 (calls_have_same_clobbers_p): Delete.
2180 (process_bb_lives): Track the ABI of the last call instead of an
2181 insn/HARD_REG_SET pair. Update calls to
2182 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2183 the set of registers that could be clobbered by an EH edge.
2184 Include partially-clobbered as well as fully-clobbered registers.
2185 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2186 * lra-remat.c: Include function-abi.h.
2187 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2188 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2189 registers and bitmap_view to combine them into dead_regs.
2190 (call_used_input_regno_present_p): Take a function_abi argument
2191 and use it to test whether a register is call-clobbered.
2192 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2193 call insn target. Update tje call to call_used_input_regno_present_p.
2194 (do_remat): Likewise.
2195 (lra_remat): Remove the initialization of call_used_regs_arr_len
2196 and call_used_regs_arr.
2197
2198 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2199
2200 * loop-iv.c: Include regs.h and function-abi.h.
2201 (simplify_using_initial_values): Use insn_callee_abi to get the
2202 ABI of the call insn target. Conservatively assume that
2203 partially-clobbered registers are altered.
2204
2205 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2206
2207 * function-abi.h (call_clobbers_in_region): Declare.
2208 (call_clobbered_in_region_p): New function.
2209 * function-abi.cc (call_clobbers_in_region): Likewise.
2210 * ira-int.h: Include function-abi.h.
2211 (ira_allocno::crossed_calls_abis): New field.
2212 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2213 (ira_need_caller_save_regs): New function.
2214 (ira_need_caller_save_p): Likewise.
2215 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2216 of call_used_or_fixed_regs.
2217 (do_reload): Use crtl->abi to test whether the current function
2218 needs to save a register in the prologue. Count registers that
2219 need to be saved rather than registers that don't.
2220 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2221 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2222 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2223 (propagate_some_info_from_allocno): Likewise.
2224 (copy_info_to_removed_store_destinations): Likewise.
2225 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2226 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2227 (ira_build): Use ira_need_caller_save_regs instead of
2228 call_used_or_fixed_regs.
2229 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2230 whether the current function would need to save a register
2231 before using it.
2232 (calculate_spill_cost): Likewise.
2233 (allocno_reload_assign): Use ira_need_caller_save_regs and
2234 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2235 * ira-conflicts.c (ira_build_conflicts): Use
2236 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2237 as the set of call-clobbered registers. Remove the
2238 call_used_or_fixed_regs mask from the calculation of
2239 temp_hard_reg_set and mask its use instead. Remove special
2240 handling of partially-clobbered registers.
2241 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2242 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2243 calculate the set of conflicting registers for calls that
2244 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2245 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2246 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2247 Use eh_edge_abi to calculate the set of registers that could
2248 be clobbered by an EH edge. Include partially-clobbered as
2249 well as fully-clobbered registers.
2250
2251 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2252
2253 * haifa-sched.c: Include function-abi.h.
2254 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2255 the function would need to save a register before using it.
2256
2257 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2258
2259 * gcse.c: Include function-abi.h.
2260 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2261 the call insn target. Invalidate partially call-clobbered
2262 registers as well as fully call-clobbered ones.
2263
2264 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2265
2266 * function.c (aggregate_value_p): Work out which ABI the
2267 function is using before testing which registers are at least
2268 partly preserved by a call.
2269
2270 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2271
2272 * early-remat.c: Include regs.h and function-abi.h.
2273 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2274 registers here.
2275 (early_remat::restrict_remat_for_unavail_regs): New function.
2276 (early_remat::restrict_remat_for_call): Likewise.
2277 (early_remat::process_block): Before calling emit_remat_insns
2278 for a previous call in the block, invalidate any candidates
2279 that would clobber call-preserved registers.
2280 (early_remat::emit_remat_insns_for_block): Likewise for the
2281 final call in a block. Do the same thing for live-in registers
2282 when calling emit_remat_insns at the head of a block.
2283
2284 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2285
2286 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2287 whether the current function needs to save at least part of a
2288 register before using it.
2289 (df_get_exit_block_use_set): Likewise for epilogue restores.
2290
2291 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2292
2293 * df-problems.c: Include regs.h and function-abi.h.
2294 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2295 sparse_invalidated_by_eh and dense_invalidated_by_call to
2296 dense_invalidated_by_eh.
2297 (df_print_bb_index): Update accordingly.
2298 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2299 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2300 that are clobbered by an EH edge. Clobber partially-clobbered
2301 registers as well as fully-clobbered ones.
2302 (df_md_confluence_n): Likewise.
2303 (df_rd_local_compute): Likewise. Update for changes to
2304 df_rd_problem_data.
2305 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2306 of registers that are clobbered by an EH edge. Includde partially-
2307 clobbered registers as well as fully-clobbered ones.
2308
2309 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2310
2311 * cselib.c (cselib_process_insn): If we know what mode a
2312 register was set in, check whether it is clobbered in that
2313 mode by a call. Only fall back to reg_raw_mode if that fails.
2314
2315 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2316
2317 * cse.c: Include regs.h and function-abi.h.
2318 (invalidate_for_call): Take the call insn as an argument.
2319 Use insn_callee_abi to get the ABI of the call and invalidate
2320 partially clobbered registers as well as fully clobbered ones.
2321 (cse_insn): Update call accordingly.
2322
2323 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2324
2325 * combine.c: Include function-abi.h.
2326 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2327 of the target of call insns. Invalidate partially-clobbered
2328 registers as well as fully-clobbered ones.
2329
2330 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2331
2332 * cfgloopanal.c: Include regs.h and function-abi.h.
2333 (init_set_costs): Use default_function_abi to test whether
2334 a general register is call-clobbered.
2335
2336 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2337
2338 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2339 instead of the call-clobbered sets.
2340
2341 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2342
2343 * caller-save.c (setup_save_areas): Remove redundant |s of
2344 fixed_reg_set.
2345 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2346 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2347 value is useful.
2348
2349 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2350
2351 * rtl.h (predefined_function_abi): Declare.
2352 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2353 instead of a boolean call_save flag.
2354 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2355 accordingly.
2356 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2357 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2358 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2359 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2360 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2361 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2362 * reginfo.c (init_reg_modes_target): Likewise.
2363 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2364 instead of a boolean call_save flag.
2365 * targhooks.c: Include function-abi.h.
2366 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2367 using eh_edge_abi to choose the mode.
2368
2369 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2370
2371 * target.def (hard_regno_call_part_clobbered): Take an ABI
2372 identifier instead of an rtx_insn.
2373 * doc/tm.texi: Regenerate.
2374 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2375 (hook_bool_uint_uint_mode_false): New function.
2376 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2377 (hook_bool_uint_uint_mode_false): New function.
2378 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2379 Take an ABI identifier instead of an rtx_insn.
2380 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2381 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2382 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2383 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2384 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2385 Likewise.
2386 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2387 * cselib.c: Include function-abi.h.
2388 (cselib_process_insn): Update call to
2389 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2390 to get the appropriate ABI identifier.
2391 * function-abi.cc (predefined_function_abi::initialize): Update call
2392 to targetm.hard_regno_call_part_clobbered.
2393 * ira-conflicts.c (ira_build_conflicts): Likewise.
2394 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2395 * lra-constraints.c: Include function-abi.h.
2396 (need_for_call_save_p): Update call to
2397 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2398 to get the appropriate ABI identifier.
2399 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2400 * regcprop.c (copyprop_hardreg_forward_1): Update call
2401 to targetm.hard_regno_call_part_clobbered.
2402 * reginfo.c (choose_hard_reg_mode): Likewise.
2403 * regrename.c (check_new_reg_p): Likewise.
2404 * reload.c (find_equiv_reg): Likewise.
2405 * reload1.c (emit_reload_insns): Likewise.
2406 * sched-deps.c: Include function-abi.h.
2407 (deps_analyze_insn): Update call to
2408 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2409 to get the appropriate ABI identifier.
2410 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2411 call to targetm.hard_regno_call_part_clobbered.
2412 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2413
2414 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2415
2416 * config/i386/i386.c: Include function-abi.h.
2417 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2418 if they preserve some 256-bit or 512-bit SSE registers.
2419
2420 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2421
2422 * target.def (insn_callee_abi): New hook.
2423 (remove_extra_call_preserved_regs): Delete.
2424 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2425 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2426 * doc/tm.texi: Regenerate.
2427 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2428 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2429 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2430 insn argument.
2431 (aarch64_remove_extra_call_preserved_regs): Delete.
2432 (aarch64_insn_callee_abi): New function.
2433 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2434 (TARGET_INSN_CALLEE_ABI): New macro.
2435 * rtl.h (get_call_fndecl): Declare.
2436 (cgraph_rtl_info): Fix formatting. Tweak comment for
2437 function_used_regs. Remove function_used_regs_valid.
2438 * rtlanal.c (get_call_fndecl): Moved from final.c
2439 * function-abi.h (insn_callee_abi): Declare.
2440 (target_function_abi_info): Mention insn_callee_abi.
2441 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2442 way to get_call_reg_set_usage did.
2443 (insn_callee_abi): New function.
2444 * regs.h (get_call_reg_set_usage): Delete.
2445 * final.c: Include function-abi.h.
2446 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2447 function_used_regs before the main loop rather than afterwards.
2448 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2449 if function_used_regs ends up not being useful.
2450 (get_call_fndecl): Move to rtlanal.c
2451 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2452 * caller-save.c: Include function-abi.h.
2453 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2454 instead of get_call_reg_set_usage.
2455 * cfgcleanup.c: Include function-abi.h.
2456 (old_insns_match_p): Use insn_callee_abi instead of
2457 get_call_reg_set_usage.
2458 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2459 a tree.
2460 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2461 function_used_regs.
2462 * df-scan.c: Include function-abi.h.
2463 (df_get_call_refs): Use insn_callee_abi instead of
2464 get_call_reg_set_usage.
2465 * ira-lives.c: Include function-abi.h.
2466 (process_bb_node_lives): Use insn_callee_abi instead of
2467 get_call_reg_set_usage.
2468 * lra-lives.c: Include function-abi.h.
2469 (process_bb_lives): Use insn_callee_abi instead of
2470 get_call_reg_set_usage.
2471 * postreload.c: Include function-abi.h.
2472 (reload_combine): Use insn_callee_abi instead of
2473 get_call_reg_set_usage.
2474 * regcprop.c: Include function-abi.h.
2475 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2476 get_call_reg_set_usage.
2477 * resource.c: Include function-abi.h.
2478 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2479 instead of get_call_reg_set_usage.
2480 * var-tracking.c: Include function-abi.h.
2481 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2482 get_call_reg_set_usage.
2483
2484 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2485
2486 * target.def (fntype_abi): New target hook.
2487 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2488 * doc/tm.texi: Regenerate.
2489 * target.h (predefined_function_abi): Declare.
2490 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2491 if defined.
2492 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2493 * config/aarch64/aarch64.c: Include function-abi.h.
2494 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2495 (TARGET_FNTYPE_ABI): Define.
2496
2497 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2498
2499 * Makefile.in (OBJS): Add function-abi.o.
2500 (GTFILES): Add function-abi.h.
2501 * function-abi.cc: New file.
2502 * function-abi.h: Likewise.
2503 * emit-rtl.h (rtl_data::abi): New field.
2504 * function.c: Include function-abi.h.
2505 (prepare_function_start): Initialize crtl->abi.
2506 * read-rtl-function.c: Include regs.h and function-abi.h.
2507 (read_rtl_function_body): Initialize crtl->abi.
2508 (read_rtl_function_body_from_file_range): Likewise.
2509 * reginfo.c: Include function-abi.h.
2510 (init_reg_sets_1): Initialize default_function_abi.
2511 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2512 when making a register global.
2513 * target-globals.h (this_target_function_abi_info): Declare.
2514 (target_globals::function_abi_info): New field.
2515 (restore_target_globals): Copy it.
2516 * target-globals.c: Include function-abi.h.
2517 (default_target_globals): Initialize the function_abi_info field.
2518 (target_globals): Allocate it.
2519 (save_target_globals): Free it.
2520
2521 2019-09-30 Nick Clifton <nickc@redhat.com>
2522
2523 PR target/85978
2524 * config/frv/frv.c (frv_register_move_cost): Add break statements
2525 to avoid falling through to the wrong cases. Tidy code.
2526
2527 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2528
2529 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2530 For multi-registers modes, test how big each register part is.
2531
2532 2019-09-30 Nick Clifton <nickc@redhat.com>
2533
2534 PR target/59205
2535 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2536 (TARGET_ASM_SELECT_SECTION): Remove definition.
2537 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2538
2539 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2540
2541 * emit-rtl.c (init_raw_REG): New function.
2542 (gen_raw_REG): Use init_raw_REG.
2543 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2544 macros.
2545 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2546 * rtl.h (rtx_init): New function.
2547 (rtx_alloca): New function.
2548 (init_raw_REG): New function.
2549 (alloca_raw_REG): New macro.
2550
2551 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2552
2553 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2554 (pcrel_local_address): Replace pcrel_address predicate, use the
2555 new function address_to_insn_form.
2556 (pcrel_external_address): Replace with new implementation using
2557 address_to_insn_form..
2558 (prefixed_mem_operand): Delete predicate which is now unused.
2559 (pcrel_external_mem_operand): Delete predicate which is now
2560 unused.
2561 * config/rs6000/rs6000-protos.h (enum insn_form): New
2562 enumeration.
2563 (enum non_prefixed_form): New enumeration.
2564 (address_to_insn_form): New declaration.
2565 (prefixed_load_p): New declaration.
2566 (prefixed_store_p): New declaration.
2567 (prefixed_paddi_p): New declaration.
2568 (rs6000_asm_output_opcode): New declaration.
2569 (rs6000_final_prescan_insn): Move declaration and update calling
2570 signature.
2571 (address_is_prefixed): New helper inline function.
2572 * config/rs6000/rs6000.c(print_operand_address): Check for either
2573 PC-relative local symbols or PC-relative external symbols.
2574 (rs6000_emit_move): Support loading PC-relative addresses.
2575 (mode_supports_prefixed_address_p): Delete, no longer used.
2576 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2577 (address_to_insn_form): New function to decode an address format.
2578 (reg_to_non_prefixed): New function to identify what the
2579 non-prefixed memory instruction format is for a register.
2580 (prefixed_load_p): New function to identify prefixed loads.
2581 (prefixed_store_p): New function to identify prefixed stores.
2582 (prefixed_paddi_p): New function to identify prefixed load
2583 immediates.
2584 (next_insn_prefixed_p): New static state variable.
2585 (rs6000_final_prescan_insn): New function to determine if an insn
2586 uses a prefixed instruction.
2587 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2588 prefixed instruction.
2589 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2590 (ASM_OUTPUT_OPCODE): New target hook.
2591 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2592 prefixed instructions.
2593 (prefixed_length): New insn attribute for the size of prefixed
2594 instructions.
2595 (non_prefixed_length): New insn attribute for the size of
2596 non-prefixed instructions.
2597 (pcrel_local_addr): New insn to load up a local PC-relative
2598 address.
2599 (pcrel_extern_addr): New insn to load up an external PC-relative
2600 address.
2601 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2602 GPR and loading a 128-bit floating point type to a GPR.
2603
2604 2019-09-30 Richard Biener <rguenther@suse.de>
2605
2606 * gimple.c (gimple_get_lhs): For PHIs return the result.
2607 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2608 SLP instance as argument.
2609 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2610 double-reduction PHIs with vectorizable_lc_phi.
2611 (vect_analyze_loop_operations): Adjust.
2612 (vect_create_epilog_for_reduction): Remove all code not dealing
2613 with reduction LC PHI or epilogue generation.
2614 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2615 for live stmts of reductions.
2616 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2617 do not handle defs that are not vect_internal_def.
2618 (can_vectorize_live_stmts): Adjust.
2619 (vect_analyze_stmt): When the vectorized stmt defined a value
2620 used on backedges adjust the backedge uses of vectorized PHIs.
2621
2622 2019-09-30 Martin Jambor <mjambor@suse.cz>
2623
2624 PR ipa/91853
2625 * tree-inline.c (force_value_to_type): New function.
2626 (setup_one_parameter): Use force_value_to_type to convert type.
2627 * tree-inline.c (force_value_to_type): Declare.
2628 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2629 with register type mismatches.
2630
2631 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2632
2633 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2634 32-bit PowerPC.
2635 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2636 * config/rs6000/t-freebsd64: Make use of the above define and build
2637 the 32-bit libraries with secure-plt.
2638
2639 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2640
2641 PR target/91931
2642 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2643 gen_int_mode instead of GEN_INT.
2644
2645 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2646
2647 * config/darwin.c (gen_macho_low): Amend to include the mode
2648 argument.
2649 (machopic_indirect_data_reference): Amend gen_macho_low call
2650 to include mode argument
2651 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2652 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2653 the macho_high expander and two define_insn entries.
2654
2655 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2656
2657 PR bootstrap/90543
2658 * optc-save-gen.awk: Fix up printing string option differences.
2659
2660 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2661
2662 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2663 vec_perm cost to 1 for non-Power7 VSX architectures.
2664
2665 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2666
2667 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2668 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2669 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2670
2671 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2672
2673 * config/darwin.c (gen_macho_high): Amend to include the mode
2674 argument.
2675 (machopic_indirect_data_reference): Amend gen_macho_high call
2676 to include mode argument.
2677 (machopic_legitimize_pic_address): Likewise.
2678 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2679 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2680 the macho_high expander and two define_insn entries.
2681
2682 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2683
2684 PR target/86805
2685 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2686
2687 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2688
2689 PR target/80672
2690 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2691 std::string::compare instead of std::string::find.
2692
2693 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2694
2695 * configure: Regenerate.
2696
2697 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2698
2699 PR middle-end/91920
2700 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2701 variables as shared.
2702
2703 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2704
2705 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2706 replaces the expander and two define_insn entries.
2707 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2708 call.
2709 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2710
2711 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2712
2713 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2714 (fibonacci_heap::nodes): Likewise.
2715 (fibonacci_heap::min_key): Likewise.
2716 (fibonacci_heap::min): Likewise.
2717
2718 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2719
2720 * cgraph.c (cgraph_node::get_fun): Make const.
2721 * cgraph.h (cgraph_node::get_fun): Likewise.
2722
2723 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2724
2725 PR target/91919
2726 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2727 of SImode MULT.
2728
2729 2019-09-27 Richard Biener <rguenther@suse.de>
2730
2731 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2732 (STMT_VINFO_REDUC_FN): Likewise.
2733 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2734 STMT_VINFO_REDUC_FN.
2735 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2736 for condition reductions.
2737 (vect_create_epilog_for_reduction): Compute all required state
2738 from the stmt to be vectorized.
2739 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2740 invocation and remove then dead code. For single def-use chains
2741 record only a single vector stmt.
2742
2743 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2744
2745 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2746 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2747 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2748 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2749 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2750 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2751 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2752 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2753 (aarch64_general_builtin_rsqrt): Declare.
2754 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2755 New function.
2756 (aarch64_mangle_builtin_type): Rename to...
2757 (aarch64_general_mangle_builtin_type): ...this.
2758 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2759 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2760 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2761 aarch64_general_add_builtin instead of add_builtin_function.
2762 (aarch64_init_builtins): Rename to...
2763 (aarch64_general_init_builtins): ...this. Use
2764 aarch64_general_add_builtin instead of add_builtin_function.
2765 (aarch64_builtin_decl): Rename to...
2766 (aarch64_general_builtin_decl): ...this and remove the unused
2767 arguments.
2768 (aarch64_expand_builtin): Rename to...
2769 (aarch64_general_expand_builtin): ...this and remove the unused
2770 arguments.
2771 (aarch64_builtin_rsqrt): Rename to...
2772 (aarch64_general_builtin_rsqrt): ...this.
2773 (aarch64_fold_builtin): Rename to...
2774 (aarch64_general_fold_builtin): ...this. Take the function subcode
2775 and return type as arguments. Remove the "ignored" argument.
2776 (aarch64_gimple_fold_builtin): Rename to...
2777 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2778 subcode and gcall as arguments, and return the new function call.
2779 * config/aarch64/aarch64.c (aarch64_init_builtins)
2780 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2781 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2782 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2783 instead of aarch64_builtin_rsqrt.
2784 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2785 instead of aarch64_mangle_builtin_type.
2786
2787 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2788
2789 * target.def (check_builtin_call): New target hook.
2790 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2791 * doc/tm.texi: Regenerate.
2792
2793 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2794
2795 PR tree-optimization/91909
2796 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2797 reduc_index parameter. When handling COND_REDUCTION, make sure
2798 that the reduction phi operand is in the correct arm of the
2799 VEC_COND_EXPR.
2800 (vectorizable_reduction): Pass reduc_index to the above.
2801
2802 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2803
2804 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2805 New combine pattern.
2806
2807 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2808
2809 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2810 loop instruction into new basic block before the loop when basic
2811 block that precedes the loop is empty.
2812
2813 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2814
2815 * function.c (gimplify_parameters): Use build_clobber function.
2816 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2817 * tree-inline.c (expand_call_inline): Likewise.
2818 * tree-sra.c (clobber_subtree): Likewise.
2819 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2820 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2821 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2822 lower_omp_target): Likewise.
2823 * omp-expand.c (expand_omp_for_generic): Likewise.
2824 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2825
2826 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2827
2828 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2829 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2830 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2831 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2832 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2833 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2834 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2835 LD_ELEMREV_V16QI): Use the PURE attribute.
2836
2837 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2838
2839 * config/rs6000/darwin.md: Replace the expanders for
2840 load_macho_picbase and reload_macho_picbase with use of '@'
2841 and <mode> in their respective define_insns.
2842 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2843 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2844 Pmode to gen_load_macho_picbase.
2845 * config/rs6000/rs6000.md: Likewise.
2846
2847 2019-09-25 Richard Biener <rguenther@suse.de>
2848
2849 PR tree-optimization/91896
2850 * tree-vect-loop.c (vectorizable_reduction): The single
2851 def-use cycle optimization cannot apply when there's more
2852 than one pattern stmt involved.
2853
2854 2019-09-26 Richard Biener <rguenther@suse.de>
2855
2856 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2857 loop-closed PHIs that are vect_internal_def.
2858 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2859 Simplify.
2860 (vectorizable_lc_phi): New.
2861 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2862 (vect_transform_stmt): Likewise.
2863 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2864 (vectorizable_lc_phi): Declare.
2865
2866 2019-09-26 Richard Biener <rguenther@suse.de>
2867
2868 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2869 vectorizable_reduction for vect_double_reduction_def.
2870 (vect_transform_loop): Likewise.
2871 (vect_create_epilog_for_reduction): Move double-reduction
2872 PHI creation and preheader argument setting of PHIs ...
2873 (vectorizable_reduction): ... here. Also process
2874 vect_double_reduction_def PHIs, creating the vectorized
2875 PHI nodes, remembering the scalar adjustment computed for
2876 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2877 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2878 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2879 Initialize STMT_VINFO_REDUC_CODE.
2880 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2881 (_stmt_vec_info::reduc_code): Likewise.
2882 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2883 (STMT_VINFO_REDUC_CODE): Likewise.
2884
2885 2019-09-26 Matt Turner <mattst88@gmail.com>
2886
2887 PR driver/69471
2888 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2889 (mtune=): Add Negative(mtune=).
2890 (mcpu=): Add Negative(mcpu=).
2891 * config/arm/arm.opt: Likewise.
2892
2893 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2894
2895 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2896 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2897 Define.
2898 * config/arm/arm_acle.h: Define builtins for the above.
2899 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2900 (simd32_op): Handle the above.
2901 * config/arm/unspecs.md: Define unspecs for the above.
2902
2903 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2904
2905 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2906 (arm_<sup>xtb16): Likewise.
2907 (arm_usada8): Likewise.
2908 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2909 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2910 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2911 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2912 __sxtb16, __uxtab16, __uxtb16): Define.
2913 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2914 * config/arm/unspecs.md: Define unspecs for the above.
2915 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2916 (USXTB16): Likewise.
2917 (simd32_op): New int_attribute.
2918 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2919 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2920
2921 2019-09-26 Martin Jambor <mjambor@suse.cz>
2922
2923 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2924 internal_error.
2925
2926 2019-09-26 Martin Jambor <mjambor@suse.cz>
2927
2928 * ipa-sra.c (process_scan_results): Fix continue condition.
2929
2930 2019-09-26 Martin Liska <mliska@suse.cz>
2931
2932 PR tree-optimization/91885
2933 * tree-vectorizer.c (try_vectorize_loop_1): Add
2934 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2935
2936 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2937
2938 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2939 aarch64_plus_immediate rather than aarch64_uimm12_shift
2940 to test for valid PLUS immediates.
2941
2942 2019-09-25 Martin Jambor <mjambor@suse.cz>
2943
2944 * tree-sra.c (no_accesses_p): Remove.
2945 (no_accesses_representant): Likewise.
2946
2947 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2948
2949 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2950 consistenly.
2951 (vaba_s16): Likewise.
2952 (vaba_s32): Likewise.
2953 (vaba_u8): Likewise.
2954 (vaba_u16): Likewise.
2955 (vaba_u32): Likewise.
2956 (vabal_high_s8): Likewise.
2957 (vabal_high_s16): Likewise.
2958 (vabal_high_s32): Likewise.
2959 (vabal_high_u8): Likewise.
2960 (vabal_high_u16): Likewise.
2961 (vabal_high_u32): Likewise.
2962 (vabal_s8): Likewise.
2963 (vabal_s16): Likewise.
2964 (vabal_s32): Likewise.
2965 (vabal_u8): Likewise.
2966 (vabal_u16): Likewise.
2967 (vabal_u32): Likewise.
2968 (vabaq_s8): Likewise.
2969 (vabaq_s16): Likewise.
2970 (vabaq_s32): Likewise.
2971 (vabaq_u8): Likewise.
2972 (vabaq_u16): Likewise.
2973 (vabaq_u32): Likewise.
2974 (vabd_s8): Likewise.
2975 (vabd_s16): Likewise.
2976 (vabd_s32): Likewise.
2977 (vabd_u8): Likewise.
2978 (vabd_u16): Likewise.
2979 (vabd_u32): Likewise.
2980 (vabdl_high_s8): Likewise.
2981 (vabdl_high_s16): Likewise.
2982 (vabdl_high_s32): Likewise.
2983 (vabdl_high_u8): Likewise.
2984 (vabdl_high_u16): Likewise.
2985 (vabdl_high_u32): Likewise.
2986 (vabdl_s8): Likewise.
2987 (vabdl_s16): Likewise.
2988 (vabdl_s32): Likewise.
2989 (vabdl_u8): Likewise.
2990 (vabdl_u16): Likewise.
2991 (vabdl_u32): Likewise.
2992 (vabdq_s8): Likewise.
2993 (vabdq_s16): Likewise.
2994 (vabdq_s32): Likewise.
2995 (vabdq_u8): Likewise.
2996 (vabdq_u16): Likewise.
2997 (vabdq_u32): Likewise.
2998 (vaddlv_s8): Likewise.
2999 (vaddlv_s16): Likewise.
3000 (vaddlv_u8): Likewise.
3001 (vaddlv_u16): Likewise.
3002 (vaddlvq_s8): Likewise.
3003 (vaddlvq_s16): Likewise.
3004 (vaddlvq_s32): Likewise.
3005 (vaddlvq_u8): Likewise.
3006 (vaddlvq_u16): Likewise.
3007 (vaddlvq_u32): Likewise.
3008 (vcvtx_f32_f64): Likewise.
3009 (vcvtx_high_f32_f64): Likewise.
3010 (vcvtxd_f32_f64): Likewise.
3011 (vmla_n_f32): Likewise.
3012 (vmla_n_s16): Likewise.
3013 (vmla_n_s32): Likewise.
3014 (vmla_n_u16): Likewise.
3015 (vmla_n_u32): Likewise.
3016 (vmla_s8): Likewise.
3017 (vmla_s16): Likewise.
3018 (vmla_s32): Likewise.
3019 (vmla_u8): Likewise.
3020 (vmla_u16): Likewise.
3021 (vmla_u32): Likewise.
3022 (vmlal_high_n_s16): Likewise.
3023 (vmlal_high_n_s32): Likewise.
3024 (vmlal_high_n_u16): Likewise.
3025 (vmlal_high_n_u32): Likewise.
3026 (vmlal_high_s8): Likewise.
3027 (vmlal_high_s16): Likewise.
3028 (vmlal_high_s32): Likewise.
3029 (vmlal_high_u8): Likewise.
3030 (vmlal_high_u16): Likewise.
3031 (vmlal_high_u32): Likewise.
3032 (vmlal_n_s16): Likewise.
3033 (vmlal_n_s32): Likewise.
3034 (vmlal_n_u16): Likewise.
3035 (vmlal_n_u32): Likewise.
3036 (vmlal_s8): Likewise.
3037 (vmlal_s16): Likewise.
3038 (vmlal_s32): Likewise.
3039 (vmlal_u8): Likewise.
3040 (vmlal_u16): Likewise.
3041 (vmlal_u32): Likewise.
3042 (vmlaq_n_f32): Likewise.
3043 (vmlaq_n_s16): Likewise.
3044 (vmlaq_n_s32): Likewise.
3045 (vmlaq_n_u16): Likewise.
3046 (vmlaq_n_u32): Likewise.
3047 (vmlaq_s8): Likewise.
3048 (vmlaq_s16): Likewise.
3049 (vmlaq_s32): Likewise.
3050 (vmlaq_u8): Likewise.
3051 (vmlaq_u16): Likewise.
3052 (vmlaq_u32): Likewise.
3053 (vmls_n_f32): Likewise.
3054 (vmls_n_s16): Likewise.
3055 (vmls_n_s32): Likewise.
3056 (vmls_n_u16): Likewise.
3057 (vmls_n_u32): Likewise.
3058 (vmls_s8): Likewise.
3059 (vmls_s16): Likewise.
3060 (vmls_s32): Likewise.
3061 (vmls_u8): Likewise.
3062 (vmls_u16): Likewise.
3063 (vmls_u32): Likewise.
3064 (vmlsl_high_n_s16): Likewise.
3065 (vmlsl_high_n_s32): Likewise.
3066 (vmlsl_high_n_u16): Likewise.
3067 (vmlsl_high_n_u32): Likewise.
3068 (vmlsl_high_s8): Likewise.
3069 (vmlsl_high_s16): Likewise.
3070 (vmlsl_high_s32): Likewise.
3071 (vmlsl_high_u8): Likewise.
3072 (vmlsl_high_u16): Likewise.
3073 (vmlsl_high_u32): Likewise.
3074 (vmlsl_n_s16): Likewise.
3075 (vmlsl_n_s32): Likewise.
3076 (vmlsl_n_u16): Likewise.
3077 (vmlsl_n_u32): Likewise.
3078 (vmlsl_s8): Likewise.
3079 (vmlsl_s16): Likewise.
3080 (vmlsl_s32): Likewise.
3081 (vmlsl_u8): Likewise.
3082 (vmlsl_u16): Likewise.
3083 (vmlsl_u32): Likewise.
3084 (vmlsq_n_f32): Likewise.
3085 (vmlsq_n_s16): Likewise.
3086 (vmlsq_n_s32): Likewise.
3087 (vmlsq_n_u16): Likewise.
3088 (vmlsq_n_u32): Likewise.
3089 (vmlsq_s8): Likewise.
3090 (vmlsq_s16): Likewise.
3091 (vmlsq_s32): Likewise.
3092 (vmlsq_u8): Likewise.
3093 (vmlsq_u16): Likewise.
3094 (vmlsq_u32): Likewise.
3095 (vmovl_high_s8): Likewise.
3096 (vmovl_high_s16): Likewise.
3097 (vmovl_high_s32): Likewise.
3098 (vmovl_high_u8): Likewise.
3099 (vmovl_high_u16): Likewise.
3100 (vmovl_high_u32): Likewise.
3101 (vmovl_s8): Likewise.
3102 (vmovl_s16): Likewise.
3103 (vmovl_s32): Likewise.
3104 (vmovl_u8): Likewise.
3105 (vmovl_u16): Likewise.
3106 (vmovl_u32): Likewise.
3107 (vmovn_high_s16): Likewise.
3108 (vmovn_high_s32): Likewise.
3109 (vmovn_high_s64): Likewise.
3110 (vmovn_high_u16): Likewise.
3111 (vmovn_high_u32): Likewise.
3112 (vmovn_high_u64): Likewise.
3113 (vmovn_s16): Likewise.
3114 (vmovn_s32): Likewise.
3115 (vmovn_s64): Likewise.
3116 (vmovn_u16): Likewise.
3117 (vmovn_u32): Likewise.
3118 (vmovn_u64): Likewise.
3119 (vmull_high_n_s16): Likewise.
3120 (vmull_high_n_s32): Likewise.
3121 (vmull_high_n_u16): Likewise.
3122 (vmull_high_n_u32): Likewise.
3123 (vmull_high_p8): Likewise.
3124 (vmull_high_s8): Likewise.
3125 (vmull_high_s16): Likewise.
3126 (vmull_high_s32): Likewise.
3127 (vmull_high_u8): Likewise.
3128 (vmull_high_u16): Likewise.
3129 (vmull_high_u32): Likewise.
3130 (vmull_n_s16): Likewise.
3131 (vmull_n_s32): Likewise.
3132 (vmull_n_u16): Likewise.
3133 (vmull_n_u32): Likewise.
3134 (vmull_p8): Likewise.
3135 (vmull_s8): Likewise.
3136 (vmull_s16): Likewise.
3137 (vmull_s32): Likewise.
3138 (vmull_u8): Likewise.
3139 (vmull_u16): Likewise.
3140 (vmull_u32): Likewise.
3141 (vpadal_s8): Likewise.
3142 (vpadal_s16): Likewise.
3143 (vpadal_s32): Likewise.
3144 (vpadal_u8): Likewise.
3145 (vpadal_u16): Likewise.
3146 (vpadal_u32): Likewise.
3147 (vpadalq_s8): Likewise.
3148 (vpadalq_s16): Likewise.
3149 (vpadalq_s32): Likewise.
3150 (vpadalq_u8): Likewise.
3151 (vpadalq_u16): Likewise.
3152 (vpadalq_u32): Likewise.
3153 (vpaddl_s8): Likewise.
3154 (vpaddl_s16): Likewise.
3155 (vpaddl_s32): Likewise.
3156 (vpaddl_u8): Likewise.
3157 (vpaddl_u16): Likewise.
3158 (vpaddl_u32): Likewise.
3159 (vpaddlq_s8): Likewise.
3160 (vpaddlq_s16): Likewise.
3161 (vpaddlq_s32): Likewise.
3162 (vpaddlq_u8): Likewise.
3163 (vpaddlq_u16): Likewise.
3164 (vpaddlq_u32): Likewise.
3165 (vpaddq_s8): Likewise.
3166 (vpaddq_s16): Likewise.
3167 (vpaddq_s32): Likewise.
3168 (vpaddq_s64): Likewise.
3169 (vpaddq_u8): Likewise.
3170 (vpaddq_u16): Likewise.
3171 (vpaddq_u32): Likewise.
3172 (vpaddq_u64): Likewise.
3173 (vqdmulh_n_s16): Likewise.
3174 (vqdmulh_n_s32): Likewise.
3175 (vqdmulhq_n_s16): Likewise.
3176 (vqdmulhq_n_s32): Likewise.
3177 (vqmovn_high_s16): Likewise.
3178 (vqmovn_high_s32): Likewise.
3179 (vqmovn_high_s64): Likewise.
3180 (vqmovn_high_u16): Likewise.
3181 (vqmovn_high_u32): Likewise.
3182 (vqmovn_high_u64): Likewise.
3183 (vqmovun_high_s16): Likewise.
3184 (vqmovun_high_s32): Likewise.
3185 (vqmovun_high_s64): Likewise.
3186 (vqrdmulh_n_s16): Likewise.
3187 (vqrdmulh_n_s32): Likewise.
3188 (vqrdmulhq_n_s16): Likewise.
3189 (vqrdmulhq_n_s32): Likewise.
3190 (vrsqrte_u32): Likewise.
3191 (vrsqrteq_u32): Likewise.
3192 (vtst_p8): Likewise.
3193 (vtst_p16): Likewise.
3194 (vtst_p64): Likewise.
3195 (vtstq_p8): Likewise.
3196 (vtstq_p16): Likewise.
3197 (vtstq_p64): Likewise.
3198 (vaddlv_s32): Likewise.
3199 (vaddlv_u32): Likewise.
3200 (vqtbl1_p8): Likewise.
3201 (vqtbl1_s8): Likewise.
3202 (vqtbl1_u8): Likewise.
3203 (vqtbl1q_p8): Likewise.
3204 (vqtbl1q_s8): Likewise.
3205 (vqtbl1q_u8): Likewise.
3206 (vqtbx1_s8): Likewise.
3207 (vqtbx1_u8): Likewise.
3208 (vqtbx1_p8): Likewise.
3209 (vqtbx1q_s8): Likewise.
3210 (vqtbx1q_u8): Likewise.
3211 (vqtbx1q_p8): Likewise.
3212 (vtbl1_s8): Likewise.
3213 (vtbl1_u8): Likewise.
3214 (vtbl1_p8): Likewise.
3215 (vtbl2_s8): Likewise.
3216 (vtbl2_u8): Likewise.
3217 (vtbl2_p8): Likewise.
3218 (vtbl3_s8): Likewise.
3219 (vtbl3_u8): Likewise.
3220 (vtbl3_p8): Likewise.
3221 (vtbl4_s8): Likewise.
3222 (vtbl4_u8): Likewise.
3223 (vtbl4_p8): Likewise.
3224 (vtbx2_s8): Likewise.
3225 (vtbx2_u8): Likewise.
3226 (vtbx2_p8): Likewise.
3227 (vld1_f32): Likewise.
3228 (vld1_f64): Likewise.
3229 (vld1_p8): Likewise.
3230 (vld1_p16): Likewise.
3231 (vld1_p64): Likewise.
3232 (vld1_s8): Likewise.
3233 (vld1_s16): Likewise.
3234 (vld1_s32): Likewise.
3235 (vld1_s64): Likewise.
3236 (vld1_u8): Likewise.
3237 (vld1_u16): Likewise.
3238 (vld1_u32): Likewise.
3239 (vld1_u64): Likewise.
3240 (vld1q_f32): Likewise.
3241 (vld1q_f64): Likewise.
3242 (vld1q_p8): Likewise.
3243 (vld1q_p16): Likewise.
3244 (vld1q_p64): Likewise.
3245 (vld1q_s8): Likewise.
3246 (vld1q_s16): Likewise.
3247 (vld1q_s32): Likewise.
3248 (vld1q_s64): Likewise.
3249 (vld1q_u8): Likewise.
3250 (vld1q_u16): Likewise.
3251 (vld1q_u32): Likewise.
3252 (vld1q_u64): Likewise.
3253 (vpmax_s8): Likewise.
3254 (vpmax_s16): Likewise.
3255 (vpmax_s32): Likewise.
3256 (vpmax_u8): Likewise.
3257 (vpmax_u16): Likewise.
3258 (vpmax_u32): Likewise.
3259 (vpmaxq_s8): Likewise.
3260 (vpmaxq_s16): Likewise.
3261 (vpmaxq_s32): Likewise.
3262 (vpmaxq_u8): Likewise.
3263 (vpmaxq_u16): Likewise.
3264 (vpmaxq_u32): Likewise.
3265 (vpmax_f32): Likewise.
3266 (vpmaxq_f32): Likewise.
3267 (vpmaxq_f64): Likewise.
3268 (vpmaxqd_f64): Likewise.
3269 (vpmaxs_f32): Likewise.
3270 (vpmaxnm_f32): Likewise.
3271 (vpmaxnmq_f32): Likewise.
3272 (vpmaxnmq_f64): Likewise.
3273 (vpmaxnmqd_f64): Likewise.
3274 (vpmaxnms_f32): Likewise.
3275 (vpmin_s8): Likewise.
3276 (vpmin_s16): Likewise.
3277 (vpmin_s32): Likewise.
3278 (vpmin_u8): Likewise.
3279 (vpmin_u16): Likewise.
3280 (vpmin_u32): Likewise.
3281 (vpminq_s8): Likewise.
3282 (vpminq_s16): Likewise.
3283 (vpminq_s32): Likewise.
3284 (vpminq_u8): Likewise.
3285 (vpminq_u16): Likewise.
3286 (vpminq_u32): Likewise.
3287 (vpmin_f32): Likewise.
3288 (vpminq_f32): Likewise.
3289 (vpminq_f64): Likewise.
3290 (vpminqd_f64): Likewise.
3291 (vpmins_f32): Likewise.
3292 (vpminnm_f32): Likewise.
3293 (vpminnmq_f32): Likewise.
3294 (vpminnmq_f64): Likewise.
3295 (vpminnmqd_f64): Likewise.
3296 (vpminnms_f32): Likewise.
3297 (vmla_f32): Likewise.
3298 (vmlaq_f32): Likewise.
3299 (vmlaq_f64): Likewise.
3300 (vmls_f32): Likewise.
3301 (vmlsq_f32): Likewise.
3302 (vmlsq_f64): Likewise.
3303 (vqtbl2_s8): Likewise.
3304 (vqtbl2_u8): Likewise.
3305 (vqtbl2_p8): Likewise.
3306 (vqtbl2q_s8): Likewise.
3307 (vqtbl2q_u8): Likewise.
3308 (vqtbl2q_p8): Likewise.
3309 (vqtbl3_s8): Likewise.
3310 (vqtbl3_u8): Likewise.
3311 (vqtbl3_p8): Likewise.
3312 (vqtbl3q_s8): Likewise.
3313 (vqtbl3q_u8): Likewise.
3314 (vqtbl3q_p8): Likewise.
3315 (vqtbl4_s8): Likewise.
3316 (vqtbl4_u8): Likewise.
3317 (vqtbl4_p8): Likewise.
3318 (vqtbl4q_s8): Likewise.
3319 (vqtbl4q_u8): Likewise.
3320 (vqtbl4q_p8): Likewise.
3321 (vqtbx2_s8): Likewise.
3322 (vqtbx2_u8): Likewise.
3323 (vqtbx2_p8): Likewise.
3324 (vqtbx2q_s8): Likewise.
3325 (vqtbx2q_u8): Likewise.
3326 (vqtbx2q_p8): Likewise.
3327 (vqtbx3_s8): Likewise.
3328 (vqtbx3_u8): Likewise.
3329 (vqtbx3_p8): Likewise.
3330 (vqtbx3q_s8): Likewise.
3331 (vqtbx3q_u8): Likewise.
3332 (vqtbx3q_p8): Likewise.
3333 (vqtbx4_s8): Likewise.
3334 (vqtbx4_u8): Likewise.
3335 (vqtbx4_p8): Likewise.
3336 (vqtbx4q_s8): Likewise.
3337 (vqtbx4q_u8): Likewise.
3338 (vqtbx4q_p8): Likewise.
3339 (vrev16_p8): Likewise.
3340 (vrev16_s8): Likewise.
3341 (vrev16_u8): Likewise.
3342 (vrev16q_p8): Likewise.
3343 (vrev16q_s8): Likewise.
3344 (vrev16q_u8): Likewise.
3345 (vrev32_p8): Likewise.
3346 (vrev32_p16): Likewise.
3347 (vrev32_s8): Likewise.
3348 (vrev32_s16): Likewise.
3349 (vrev32_u8): Likewise.
3350 (vrev32_u16): Likewise.
3351 (vrev32q_p8): Likewise.
3352 (vrev32q_p16): Likewise.
3353 (vrev32q_s8): Likewise.
3354 (vrev32q_s16): Likewise.
3355 (vrev32q_u8): Likewise.
3356 (vrev32q_u16): Likewise.
3357 (vrev64_f32): Likewise.
3358 (vrev64_p8): Likewise.
3359 (vrev64_p16): Likewise.
3360 (vrev64_s8): Likewise.
3361 (vrev64_s16): Likewise.
3362 (vrev64_s32): Likewise.
3363 (vrev64_u8): Likewise.
3364 (vrev64_u16): Likewise.
3365 (vrev64_u32): Likewise.
3366 (vrev64q_f32): Likewise.
3367 (vrev64q_p8): Likewise.
3368 (vrev64q_p16): Likewise.
3369 (vrev64q_s8): Likewise.
3370 (vrev64q_s16): Likewise.
3371 (vrev64q_s32): Likewise.
3372 (vrev64q_u8): Likewise.
3373 (vrev64q_u16): Likewise.
3374 (vrev64q_u32): Likewise.
3375 (vsha1cq_u32): Likewise.
3376 (vsha1mq_u32): Likewise.
3377 (vsha1pq_u32): Likewise.
3378 (vsha1h_u32): Likewise.
3379 (vsha1su0q_u32): Likewise.
3380 (vsha1su1q_u32): Likewise.
3381 (vsha256hq_u32): Likewise.
3382 (vsha256h2q_u32): Likewise.
3383 (vsha256su0q_u32): Likewise.
3384 (vsha256su1q_u32): Likewise.
3385 (vmull_p64): Likewise.
3386 (vmull_high_p64): Likewise.
3387 (vsqrt_f32): Likewise.
3388 (vsqrtq_f32): Likewise.
3389 (vsqrt_f64): Likewise.
3390 (vsqrtq_f64): Likewise.
3391 (vst1_f32): Likewise.
3392 (vst1_f64): Likewise.
3393 (vst1_p8): Likewise.
3394 (vst1_p16): Likewise.
3395 (vst1_p64): Likewise.
3396 (vst1_s8): Likewise.
3397 (vst1_s16): Likewise.
3398 (vst1_s32): Likewise.
3399 (vst1_s64): Likewise.
3400 (vst1_u8): Likewise.
3401 (vst1_u16): Likewise.
3402 (vst1_u32): Likewise.
3403 (vst1_u64): Likewise.
3404 (vst1q_f32): Likewise.
3405 (vst1q_f64): Likewise.
3406 (vst1q_p8): Likewise.
3407 (vst1q_p16): Likewise.
3408 (vst1q_p64): Likewise.
3409 (vst1q_s8): Likewise.
3410 (vst1q_s16): Likewise.
3411 (vst1q_s32): Likewise.
3412 (vst1q_s64): Likewise.
3413 (vst1q_u8): Likewise.
3414 (vst1q_u16): Likewise.
3415 (vst1q_u32): Likewise.
3416 (vst1q_u64): Likewise.
3417 (vst1_s64_x2): Likewise.
3418 (vst1_u64_x2): Likewise.
3419 (vst1_f64_x2): Likewise.
3420 (vst1_s8_x2): Likewise.
3421 (vst1_p8_x2): Likewise.
3422 (vst1_s16_x2): Likewise.
3423 (vst1_p16_x2): Likewise.
3424 (vst1_s32_x2): Likewise.
3425 (vst1_u8_x2): Likewise.
3426 (vst1_u16_x2): Likewise.
3427 (vst1_u32_x2): Likewise.
3428 (vst1_f16_x2): Likewise.
3429 (vst1_f32_x2): Likewise.
3430 (vst1_p64_x2): Likewise.
3431 (vst1q_s8_x2): Likewise.
3432 (vst1q_p8_x2): Likewise.
3433 (vst1q_s16_x2): Likewise.
3434 (vst1q_p16_x2): Likewise.
3435 (vst1q_s32_x2): Likewise.
3436 (vst1q_s64_x2): Likewise.
3437 (vst1q_u8_x2): Likewise.
3438 (vst1q_u16_x2): Likewise.
3439 (vst1q_u32_x2): Likewise.
3440 (vst1q_u64_x2): Likewise.
3441 (vst1q_f16_x2): Likewise.
3442 (vst1q_f32_x2): Likewise.
3443 (vst1q_f64_x2): Likewise.
3444 (vst1q_p64_x2): Likewise.
3445 (vst1_s64_x3): Likewise.
3446 (vst1_u64_x3): Likewise.
3447 (vst1_f64_x3): Likewise.
3448 (vst1_s8_x3): Likewise.
3449 (vst1_p8_x3): Likewise.
3450 (vst1_s16_x3): Likewise.
3451 (vst1_p16_x3): Likewise.
3452 (vst1_s32_x3): Likewise.
3453 (vst1_u8_x3): Likewise.
3454 (vst1_u16_x3): Likewise.
3455 (vst1_u32_x3): Likewise.
3456 (vst1_f16_x3): Likewise.
3457 (vst1_f32_x3): Likewise.
3458 (vst1_p64_x3): Likewise.
3459 (vst1q_s8_x3): Likewise.
3460 (vst1q_p8_x3): Likewise.
3461 (vst1q_s16_x3): Likewise.
3462 (vst1q_p16_x3): Likewise.
3463 (vst1q_s32_x3): Likewise.
3464 (vst1q_s64_x3): Likewise.
3465 (vst1q_u8_x3): Likewise.
3466 (vst1q_u16_x3): Likewise.
3467 (vst1q_u32_x3): Likewise.
3468 (vst1q_u64_x3): Likewise.
3469 (vst1q_f16_x3): Likewise.
3470 (vst1q_f32_x3): Likewise.
3471 (vst1q_f64_x3): Likewise.
3472 (vst1q_p64_x3): Likewise.
3473 (vst2_s64): Likewise.
3474 (vst2_u64): Likewise.
3475 (vst2_f64): Likewise.
3476 (vst2_s8): Likewise.
3477 (vst2_p8): Likewise.
3478 (vst2_s16): Likewise.
3479 (vst2_p16): Likewise.
3480 (vst2_s32): Likewise.
3481 (vst2_u8): Likewise.
3482 (vst2_u16): Likewise.
3483 (vst2_u32): Likewise.
3484 (vst2_f16): Likewise.
3485 (vst2_f32): Likewise.
3486 (vst2_p64): Likewise.
3487 (vst2q_s8): Likewise.
3488 (vst2q_p8): Likewise.
3489 (vst2q_s16): Likewise.
3490 (vst2q_p16): Likewise.
3491 (vst2q_s32): Likewise.
3492 (vst2q_s64): Likewise.
3493 (vst2q_u8): Likewise.
3494 (vst2q_u16): Likewise.
3495 (vst2q_u32): Likewise.
3496 (vst2q_u64): Likewise.
3497 (vst2q_f16): Likewise.
3498 (vst2q_f32): Likewise.
3499 (vst2q_f64): Likewise.
3500 (vst2q_p64): Likewise.
3501 (vst3_s64): Likewise.
3502 (vst3_u64): Likewise.
3503 (vst3_f64): Likewise.
3504 (vst3_s8): Likewise.
3505 (vst3_p8): Likewise.
3506 (vst3_s16): Likewise.
3507 (vst3_p16): Likewise.
3508 (vst3_s32): Likewise.
3509 (vst3_u8): Likewise.
3510 (vst3_u16): Likewise.
3511 (vst3_u32): Likewise.
3512 (vst3_f16): Likewise.
3513 (vst3_f32): Likewise.
3514 (vst3_p64): Likewise.
3515 (vst3q_s8): Likewise.
3516 (vst3q_p8): Likewise.
3517 (vst3q_s16): Likewise.
3518 (vst3q_p16): Likewise.
3519 (vst3q_s32): Likewise.
3520 (vst3q_s64): Likewise.
3521 (vst3q_u8): Likewise.
3522 (vst3q_u16): Likewise.
3523 (vst3q_u32): Likewise.
3524 (vst3q_u64): Likewise.
3525 (vst3q_f16): Likewise.
3526 (vst3q_f32): Likewise.
3527 (vst3q_f64): Likewise.
3528 (vst3q_p64): Likewise.
3529 (vst4_s64): Likewise.
3530 (vst4_u64): Likewise.
3531 (vst4_f64): Likewise.
3532 (vst4_s8): Likewise.
3533 (vst4_p8): Likewise.
3534 (vst4_s16): Likewise.
3535 (vst4_p16): Likewise.
3536 (vst4_s32): Likewise.
3537 (vst4_u8): Likewise.
3538 (vst4_u16): Likewise.
3539 (vst4_u32): Likewise.
3540 (vst4_f16): Likewise.
3541 (vst4_f32): Likewise.
3542 (vst4_p64): Likewise.
3543 (vst4q_s8): Likewise.
3544 (vst4q_p8): Likewise.
3545 (vst4q_s16): Likewise.
3546 (vst4q_p16): Likewise.
3547 (vst4q_s32): Likewise.
3548 (vst4q_s64): Likewise.
3549 (vst4q_u8): Likewise.
3550 (vst4q_u16): Likewise.
3551 (vst4q_u32): Likewise.
3552 (vst4q_u64): Likewise.
3553 (vst4q_f16): Likewise.
3554 (vst4q_f32): Likewise.
3555 (vst4q_f64): Likewise.
3556 (vst4q_p64): Likewise.
3557 (vtbx4_s8): Likewise.
3558 (vtbx4_u8): Likewise.
3559 (vtbx4_p8): Likewise.
3560 (vtrn_f32): Likewise.
3561 (vtrn_p8): Likewise.
3562 (vtrn_p16): Likewise.
3563 (vtrn_s8): Likewise.
3564 (vtrn_s16): Likewise.
3565 (vtrn_s32): Likewise.
3566 (vtrn_u8): Likewise.
3567 (vtrn_u16): Likewise.
3568 (vtrn_u32): Likewise.
3569 (vtrnq_f32): Likewise.
3570 (vtrnq_p8): Likewise.
3571 (vtrnq_p16): Likewise.
3572 (vtrnq_s8): Likewise.
3573 (vtrnq_s16): Likewise.
3574 (vtrnq_s32): Likewise.
3575 (vtrnq_u8): Likewise.
3576 (vtrnq_u16): Likewise.
3577 (vtrnq_u32): Likewise.
3578 (vrsqrte_f16): Likewise.
3579 (vrsqrteq_f16): Likewise.
3580 (vsqrt_f16): Likewise.
3581 (vsqrtq_f16): Likewise.
3582 (vabd_f16): Likewise.
3583 (vabdq_f16): Likewise.
3584 (vpadd_f16): Likewise.
3585 (vpaddq_f16): Likewise.
3586 (vpmax_f16): Likewise.
3587 (vpmaxq_f16): Likewise.
3588 (vpmaxnm_f16): Likewise.
3589 (vpmaxnmq_f16): Likewise.
3590 (vpmin_f16): Likewise.
3591 (vpminq_f16): Likewise.
3592 (vpminnm_f16): Likewise.
3593 (vpminnmq_f16): Likewise.
3594 (vrsqrts_f16): Likewise.
3595 (vrsqrtsq_f16): Likewise.
3596
3597 2019-09-25 Richard Biener <rguenther@suse.de>
3598
3599 PR tree-optimization/91896
3600 * tree-vect-loop.c (vectorizable_reduction): The single
3601 def-use cycle optimization cannot apply when there's more
3602 than one pattern stmt involved.
3603
3604 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3605
3606 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3607 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3608 (reload_macho_picbase_<mode>): Likewise.
3609
3610 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3611
3612 * config/rs6000/rs6000.md: Move darwin.md include until
3613 after the definition of the mode iterators.
3614
3615 2019-09-23 Martin Sebor <msebor@redhat.com>
3616
3617 PR tree-optimization/91570
3618 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3619 non-constant minlen, maxlen and maxbound.
3620
3621 2019-09-24 Richard Biener <rguenther@suse.de>
3622
3623 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3624 Rename to...
3625 (_stmt_vec_info::cond_reduc_code): ... this.
3626 (_stmt_vec_info::induc_cond_initial_val): Add.
3627 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3628 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3629 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3630 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3631 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3632 the reduction code.
3633 (vect_create_epilog_for_reduction): Drop special
3634 induction condition reduction params, pass in reduction code
3635 and simplify.
3636 (vectorizable_reduction): Perform condition reduction kind
3637 selection only at analysis time. Adjust passing on state.
3638
3639 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3640
3641 * config/aarch64/aarch64.md (mov<mode>): Don't call
3642 aarch64_split_dimode_const_store on volatile MEM.
3643
3644 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3645
3646 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3647 Update hwcap string for fp16fml.
3648
3649 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3650
3651 PR middle-end/91866
3652 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3653 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3654
3655 2019-09-24 Martin Liska <mliska@suse.cz>
3656
3657 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3658 instead of if-elseif-elseif-...
3659 * gimple-expr.c (extract_ops_from_tree): Likewise.
3660 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3661 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3662
3663 2019-09-24 Martin Jambor <mjambor@suse.cz>
3664
3665 PR ipa/91831
3666 * ipa-param-manipulation.c (carry_over_param): Make a method of
3667 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3668 in case of a context mismatch.
3669 (ipa_param_body_adjustments::common_initialization): Adjust call to
3670 carry_over_param.
3671 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3672 private method carry_over_param.
3673
3674 2019-09-24 Martin Jambor <mjambor@suse.cz>
3675
3676 PR ipa/91832
3677 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3678
3679 2019-09-24 Richard Biener <rguenther@suse.de>
3680
3681 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3682 base.
3683
3684 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3685
3686 * config/arm/t-arm (arm-builtins.o): Add dependency on
3687 arm_acle_builtins.def.
3688
3689 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3690
3691 PR target/91823
3692 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3693 canonical CONST_INTs. Use gen_rtvec.
3694
3695 2019-09-23 Richard Biener <rguenther@suse.de>
3696
3697 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3698 avoid adjusting by + 0 or * 1.
3699 (vect_create_epilog_for_reduction): Get reduction code only
3700 when necessary. Deal with adjustment_def only when necessary.
3701
3702 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3703
3704 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3705 memmodel index.
3706
3707 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3708
3709 PR ipa/91835
3710 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3711 "ipa-sra".
3712
3713 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3714
3715 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3716 code. Merge code blocks with common conditionals. Use declared
3717 macro instead of a magic number for PIC level.
3718
3719 2019-09-21 Martin Sebor <msebor@redhat.com>
3720
3721 PR middle-end/91830
3722 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3723 Simplify computation of the offset of the referenced subobject.
3724
3725 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3726
3727 * config/darwin.c (machopic_legitimize_pic_address): Check
3728 for lra not reload.
3729
3730 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3731
3732 * ira-conflicts.c (can_use_same_reg_p): New function.
3733 (process_reg_shuffles): Take an insn parameter. Ignore cases
3734 in which input operand op_num could seemingly never be allocated
3735 to the same register as the destination.
3736 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3737
3738 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3739
3740 * simplify-rtx.c (neg_const_int): Replace with...
3741 (neg_poly_int_rtx): ...this new function.
3742 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3743 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3744 (simplify_plus_minus): Likewise for constant terms here.
3745
3746 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3747
3748 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3749 HOST_WIDE_PRINT_UNSIGNED.
3750
3751 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3752
3753 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3754 character.
3755
3756 2019-09-20 Maya Rashish <coypu@sdf.org>
3757
3758 PR target/86811
3759 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3760 Define to speculation_safe_value_not_needed.
3761
3762 2019-09-20 Richard Biener <rguenther@suse.de>
3763 Uros Bizjak <ubizjak@gmail.com>
3764
3765 PR target/91814
3766 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3767 previous change.
3768 (general_scalar_chain::convert_op): Force not suitable memory
3769 operands to a register.
3770
3771 2019-09-20 Richard Biener <rguenther@suse.de>
3772
3773 PR tree-optimization/91821
3774 * tree-vect-loop.c (check_reduction_path): Check we can compute
3775 reduc_idx.
3776 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3777 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3778 operands in canonical order.
3779 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3780 STMT_VINFO_REDUC_IDX.
3781 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3782 (STMT_VINFO_REDUC_IDX): Likewise.
3783
3784 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3785
3786 PR target/91269
3787 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3788
3789 2019-09-20 Richard Biener <rguenther@suse.de>
3790
3791 PR tree-optimization/91822
3792 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3793 parameter.
3794 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3795 for reduc_index in nested cycles, adjust vectorizable_condition
3796 calls.
3797 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3798 parameter.
3799 (vect_analyze_stmt): Adjust.
3800 (vect_transform_stmt): Likewise.
3801
3802 2019-09-20 Richard Biener <rguenther@suse.de>
3803
3804 PR target/91767
3805 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3806 Ensure there's a sequence point between allocating the new register
3807 and passing a reference to a reg via regno_reg_rtx.
3808
3809 2019-09-20 Martin Jambor <mjambor@suse.cz>
3810
3811 * coretypes.h (cgraph_edge): Declare.
3812 * ipa-param-manipulation.c: Rewrite.
3813 * ipa-param-manipulation.h: Likewise.
3814 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3815 (OBJS): Added ipa-sra.o.
3816 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3817 and ref_p, added fields param_adjustments and performed_splits.
3818 (struct cgraph_clone_info): Remove ags_to_skip and
3819 combined_args_to_skip, new field param_adjustments.
3820 (cgraph_node::create_clone): Changed parameters to use
3821 ipa_param_adjustments.
3822 (cgraph_node::create_virtual_clone): Likewise.
3823 (cgraph_node::create_virtual_clone_with_body): Likewise.
3824 (tree_function_versioning): Likewise.
3825 (cgraph_build_function_type_skip_args): Removed.
3826 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3827 using ipa_param_adjustments.
3828 (clone_of_p): Likewise.
3829 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3830 (build_function_decl_skip_args): Likewise.
3831 (duplicate_thunk_for_node): Adjust parameters using
3832 ipa_param_body_adjustments, copy param_adjustments instead of
3833 args_to_skip.
3834 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3835 (cgraph_node::create_virtual_clone): Likewise.
3836 (cgraph_node::create_version_clone_with_body): Likewise.
3837 (cgraph_materialize_clone): Likewise.
3838 (symbol_table::materialize_all_clones): Likewise.
3839 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3840 ipa_replace_map check.
3841 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3842 (initialize_node_lattices): Make aware that some parameters might have
3843 already been removed.
3844 (want_remove_some_param_p): New function.
3845 (create_specialized_node): Convert to using ipa_param_adjustments and
3846 deal with possibly pre-existing adjustments.
3847 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3848 (output_node_opt_summary): Do not stream removed fields. Stream
3849 parameter adjustments instead of argumetns to skip.
3850 (input_node_opt_summary): Likewise.
3851 (input_node_opt_summary): Likewise.
3852 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3853 * lto-streamer.h (lto_section_type): Likewise.
3854 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3855 param_body_adjs.
3856 (copy_decl_to_var): Declare.
3857 * tree-inline.c (update_clone_info): Do not remap old_tree.
3858 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3859 statements, walk all extra generated statements and remap their
3860 operands.
3861 (redirect_all_calls): Add killed SSA names to a hash set.
3862 (remap_ssa_name): Do not remap killed SSA names.
3863 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3864 half of functionality moved to ipa_param_body_adjustments.
3865 (copy_decl_to_var): Make exported.
3866 (copy_body): Destroy killed_new_ssa_names hash set.
3867 (expand_call_inline): Remap performed splits.
3868 (update_clone_info): Likewise.
3869 (tree_function_versioning): Simplify tree_map processing. Updated to
3870 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3871 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3872 for the new interface.
3873 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3874 (simd_clone_compute_base_data_type): Likewise.
3875 (simd_clone_init_simd_arrays): Adjust for the new interface.
3876 (simd_clone_adjust_argument_types): Likewise.
3877 (struct modify_stmt_info): Likewise.
3878 (ipa_simd_modify_stmt_ops): Likewise.
3879 (ipa_simd_modify_function_body): Likewise.
3880 (simd_clone_adjust): Likewise.
3881 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3882 (type_internals_preclude_sra_p): Make public.
3883 * tree-sra.h: New file.
3884 * ipa-inline-transform.c (save_inline_function_body): Update to
3885 refelct new tree_function_versioning signature.
3886 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3887 ipa_param_adjustments to get current parameter indices.
3888 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3889 (ipcp_update_bits): Likewise.
3890 (ipcp_update_vr): Likewise.
3891 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3892 * ipa-sra.c: New file.
3893 * multiple_target.c (create_target_clone): Update to reflet new type
3894 of create_version_clone_with_body.
3895 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3896 tree_function_versioning.
3897 (modify_function): Update to reflect new type of
3898 tree_function_versioning.
3899 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3900 * passes.def: Remove old IPA-SRA and add new one.
3901 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3902 (make_pass_ipa_sra): Declare.
3903 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3904 ipa_sra_retvalues.
3905 * doc/invoke.texi (ipa-sra-max-replacements): New.
3906
3907 2019-09-19 Martin Sebor <msebor@redhat.com>
3908
3909 PR middle-end/91631
3910 * builtins.c (component_size): Correct trailing array computation,
3911 rename to component_ref_size and move...
3912 (compute_objsize): Adjust.
3913 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3914 (builtin_access::strict): Do not consider memmove.
3915 (builtin_access::write_off): New function.
3916 (builtin_memref::builtin_memref): Initialize refsize.
3917 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3918 refsize.
3919 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3920 Handle refsize.
3921 (builtin_access::builtin_access): Initialize dstoff to destination
3922 refeence offset here instead of in maybe_diag_overlap. Adjust
3923 referencess even to unrelated objects. Adjust sizrange of bounded
3924 string functions to reflect bound. For strcat, adjust destination
3925 sizrange by that of source.
3926 (builtin_access::strcat_overlap): Adjust offsets and sizes
3927 to reflect the increase in destination sizrange above.
3928 (builtin_access::overlap): Do not set dstoff here but instead
3929 in builtin_access::builtin_access.
3930 (check_bounds_or_overlap): Use builtin_access::write_off.
3931 (maybe_diag_access_bounds): Add argument. Add informational notes.
3932 (dump_builtin_memref, dump_builtin_access): New functions.
3933 * tree.c (component_ref_size): ...to here.
3934 * tree.h (component_ref_size): Declare.
3935 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3936 nul in the size of the source string.
3937
3938 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3939
3940 PR c/67224
3941 * doc/cpp.texi: Document support for extended characters in
3942 identifiers.
3943 * doc/cppopts.texi: Likewise.
3944
3945 2019-09-19 Richard Biener <rguenther@suse.de>
3946
3947 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3948 (check_reduction_path): New overload having the path as result.
3949 (vect_is_simple_reduction): From the detected reduction
3950 path build a SLP reduction chain if possible.
3951
3952 2019-09-19 Richard Biener <rguenther@suse.de>
3953
3954 PR target/91814
3955 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3956 Force operand to a register if it isn't nonimmediate_operand.
3957
3958 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3959
3960 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3961 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3962 (logical_op): Remove code attribute.
3963 (logical_OP): Likewise.
3964
3965 2019-09-19 Martin Liska <mliska@suse.cz>
3966
3967 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3968 Use proper casting.
3969
3970 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3971
3972 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3973 registers with %R.
3974
3975 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3976 for NE comparison of TImode values.
3977 (aarch64_emit_load_exclusive): Add support for TImode.
3978 (aarch64_emit_store_exclusive): Likewise.
3979 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3980 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3981 Change iterator from ALLI to ALLI_TI.
3982 (@atomic_compare_and_swap<JUST_TI>): New.
3983 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3984 (aarch64_load_exclusive_pair): New.
3985 (aarch64_store_exclusive_pair): New.
3986 * config/aarch64/iterators.md (JUST_TI): New.
3987
3988 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3989 strong_zero_p for aarch64_track_speculation; unify some code paths;
3990 use aarch64_gen_compare_reg instead of open-coding.
3991
3992 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3993 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3994 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3995 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3996 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3997 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3998 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3999 (atomic_<atomic_op><ALLI>): Likewise.
4000 (atomic_fetch_<atomic_op><ALLI>): Likewise.
4001 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
4002 * doc/invoke.texi: Document -moutline-atomics.
4003
4004 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
4005
4006 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
4007 trivial predicate for condition branch.
4008 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
4009 for switch case.
4010 (compute_bb_predicates): Update predicate based on post-dominating
4011 relationship.
4012 (analyze_function_body): Calculate post-dominating information.
4013
4014 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4015
4016 * tree-vectorizer.h (vectorizable_condition): Take an int
4017 reduction index instead of a boolean flag.
4018 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4019 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
4020 reductions if the reduction accumulator is the "then" rather
4021 than the "else" value.
4022 (vect_analyze_stmt): Update call accordingly.
4023 (vect_transform_stmt): Likewise.
4024 * tree-vect-loop.c (vectorizable_reduction): Likewise,
4025 asserting that the index is > 0.
4026
4027 2019-09-19 Martin Liska <mliska@suse.cz>
4028
4029 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
4030 (sort_congruence_classes_by_decl_uid): Likewise.
4031 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
4032 easier sorting.
4033 (sem_item_optimizer::merge_classes): Likewise.
4034
4035 2019-09-19 Richard Biener <rguenther@suse.de>
4036
4037 PR tree-optimization/91812
4038 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
4039 volatile loads.
4040
4041 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4042
4043 * defaults.h (TARGET_UNIT): New macro.
4044 (target_unit): New type.
4045 * rtl.h (native_encode_rtx, native_decode_rtx)
4046 (native_decode_vector_rtx, subreg_size_lsb): Declare.
4047 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
4048 * rtlanal.c (subreg_lsb_1): Delete.
4049 (subreg_size_lsb): New function.
4050 * simplify-rtx.c: Include rtx-vector-builder.h
4051 (simplify_immed_subreg): Delete.
4052 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
4053 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
4054 functions.
4055 (simplify_subreg): Use them.
4056 (test_vector_subregs_modes, test_vector_subregs_repeating)
4057 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
4058 (test_vector_subregs): New functions.
4059 (test_vector_ops): Call test_vector_subregs for integer vector
4060 modes with at least 2 elements.
4061
4062 2019-09-19 Richard Biener <rguenther@suse.de>
4063
4064 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4065 LOOP_VINFO_OPERANDS_SWAPPED.
4066 (parloops_is_simple_reduction): Likewise.
4067 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4068 initialize operands_swapped.
4069 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4070 (vect_is_slp_reduction): Do not swap operands.
4071 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4072 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4073
4074 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4075
4076 PR target/87007
4077 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4078 Add avx_partial_xmm_update.
4079
4080 2019-09-18 Jim Wilson <jimw@sifive.com>
4081
4082 PR target/91683
4083 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4084 (riscv_move_integer): Likewise.
4085 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4086 riscv_move_integer arg.
4087 (riscv_legitimize_move): Likewise.
4088 (riscv_force_temporary): New parameter in_splitter. Don't call
4089 force_reg if true.
4090 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4091 arg.
4092 (riscv_add_offset): Likewise.
4093 (riscv_split_symbol): New parameter in_splitter. Pass to
4094 riscv_force_temporary.
4095 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4096 arg.
4097 (riscv_move_integer): New parameter in_splitter. New local
4098 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4099 in_splitter TRUE.
4100 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4101 riscv_split_symbol, and riscv_force_temporary args.
4102 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4103 riscv_move_integer arg.
4104 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4105
4106 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4107
4108 PR target/90878
4109 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4110 hard register store cost to 6.
4111
4112 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4113
4114 PR target/91446
4115 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4116 pseudo register store cost from 3 to 6 to make it the same as
4117 QImode and HImode.
4118
4119 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4120
4121 PR target/91738
4122 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4123 (one_cmpldi2): Likewise.
4124 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4125 of the constant parts is simple.
4126 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4127 (logical_op): Add new code attribute.
4128 (logical_OP): Likewise.
4129 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4130 (arm_iordi_operand): Add predicate.
4131 (arm_xordi_operand): Add predicate.
4132
4133 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4134
4135 * config/arm/arm.md (maddsidi4): Remove expander.
4136 (mulsidi3adddi): Remove pattern.
4137 (mulsidi3adddi_v6): Likewise.
4138 (mulsidi3_nov6): Likewise.
4139 (mulsidi3_v6): Likewise.
4140 (umulsidi3): Remove expander.
4141 (umulsidi3_nov6): Remove pattern.
4142 (umulsidi3_v6): Likewise.
4143 (umulsidi3adddi): Likewise.
4144 (umulsidi3adddi_v6): Likewise.
4145 (<Us>mulsidi3): Add combined expander.
4146 (<Us>maddsidi4): Likewise.
4147 (<US>mull): Add combined umull and smull pattern.
4148 (<US>mlal): Likewise.
4149 * config/arm/iterators.md (Us): Add new iterator.
4150
4151 2019-09-18 Richard Biener <rguenther@suse.de>
4152
4153 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4154 swapping.
4155 (vectorize_fold_left_reduction): Remove assert.
4156 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4157 operand in position 2. Remove assert.
4158
4159 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4160
4161 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4162 (smulsi3_highpart_nov6): Remove pattern.
4163 (smulsi3_highpart_v6): Likewise.
4164 (umulsi3_highpart): Likewise.
4165 (umulsi3_highpart_nov6): Likewise.
4166 (umulsi3_highpart_v6): Likewise.
4167 (<US>mull_high): Add new combined multiply pattern.
4168
4169 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4170
4171 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4172 (arm_mulsi3_v6): Likewise.
4173 (mulsi3addsi_v6): Likewise.
4174 (mulsi3subsi): Likewise.
4175 (mul): Add new multiply pattern.
4176 (mla): Likewise.
4177 (mls): Likewise.
4178
4179 2019-09-18 Richard Biener <rguenther@suse.de>
4180
4181 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4182 (parloops_valid_reduction_input_p): Copy from
4183 valid_reduction_input_p.
4184 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4185 (parloops_needs_fold_left_reduction_p): Copy from
4186 needs_fold_left_reduction_p.
4187 (parloops_is_simple_reduction): Copy from
4188 vect_is_simple_reduction.
4189 (parloops_force_simple_reduction): Copy from
4190 vect_force_simple_reduction.
4191 (gather_scalar_reductions): Adjust.
4192 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4193 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4194
4195 2019-09-18 Richard Biener <rguenther@suse.de>
4196
4197 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4198 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4199 static.
4200 (vect_create_epilog_for_reduction): Remove dead code.
4201
4202 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4203
4204 * varasm.c (assemble_real): Generate canonical const_ints.
4205
4206 2019-09-18 Richard Biener <rguenther@suse.de>
4207
4208 PR lto/91763
4209 * lto-streamer-in.c (input_eh_regions): Move EH init to
4210 lto_materialize_function.
4211 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4212 Likewise.
4213
4214 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4215
4216 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4217 are INTEGER_CSTs.
4218
4219 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4220
4221 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4222 of checking specifically for INTEGER_CST.
4223
4224 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4225
4226 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4227 sizes instead of uhwi sizes.
4228
4229 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4230
4231 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4232 (add_const_value_attribute): Handle CONST_POLY_INT.
4233
4234 2019-09-18 Martin Liska <mliska@suse.cz>
4235
4236 * dbgcnt.def (store_merging): New counter.
4237 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4238 Use it in store merging.
4239
4240 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4241
4242 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4243 function.
4244 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4245 * config/arm/arm.c (arm_sched_variable_issue): New function.
4246 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4247
4248 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4249
4250 * config/arm/types.md (no_reservation): New reservation.
4251 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4252 no_insn here.
4253 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4254 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4255 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4256 * config/arm/arm1020e.md (1020alu_op): Likewise.
4257 * config/arm/arm1026ejs.md (alu_op): Likewise.
4258 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4259 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4260 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4261 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4262 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4263 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4264 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4265 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4266 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4267 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4268 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4269 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4270 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4271 * config/arm/fa526.md (526_alu_op): Likewise.
4272 * config/arm/fa606te.md (606te_alu_op): Likewise.
4273 * config/arm/fa626te.md (626te_alu_op): Likewise.
4274 * config/arm/fa726te.md (726te_alu_op): Likewise.
4275 * config/arm/xgene1.md (xgene1_nop): Likewise.
4276
4277 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4278
4279 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4280 "no_insn" to "branch".
4281
4282 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4283
4284 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4285
4286 2019-09-17 Richard Biener <rguenther@suse.de>
4287
4288 PR debug/91772
4289 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4290 was missing generate locations only once.
4291
4292 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4293
4294 PR ipa/91089
4295 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4296 option.
4297 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4298 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4299 for switch default case using range analysis information.
4300
4301 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4302
4303 PR target/91749
4304 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4305 mode attributed is supported by FDPIC.
4306
4307 2019-09-17 Richard Biener <rguenther@suse.de>
4308
4309 PR tree-optimization/91790
4310 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4311 use the correct DR for setting up realignment.
4312
4313 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4314
4315 PR target/91719
4316 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4317 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4318 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4319 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4320
4321 2019-09-16 Jason Merrill <jason@redhat.com>
4322
4323 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4324
4325 2019-09-16 Martin Liska <mliska@suse.cz>
4326
4327 * gimple-fold.c (or_comparisons_1): Remove rules moved
4328 to ...
4329 * match.pd: ... here.
4330
4331 2019-09-16 Martin Liska <mliska@suse.cz>
4332
4333 * gimple-fold.c (or_comparisons_1): Remove rules
4334 moved to ...
4335 * match.pd: ... here.
4336
4337 2019-09-16 Martin Liska <mliska@suse.cz>
4338
4339 * genmatch.c (dt_node::append_simplify): Do not print
4340 warning when we have duplicate patterns belonging
4341 to a same simplify rule.
4342 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4343 (maybe_fold_comparisons_from_match_pd): Handle
4344 tcc_comparison as a results.
4345 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4346
4347 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4348 Qi Feng <ffengqi@linux.ibm.com>
4349
4350 PR middle-end/88784
4351 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4352 (x > y && x == XXX_MIN): Optimize into 'false'.
4353 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4354 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4355 (x < y && x == XXX_MAX): Optimize into 'false'.
4356 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4357 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4358 (x <= y || x != XXX_MIN): Optimize into 'true'.
4359 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4360 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4361 (x >= y || x != XXX_MAX): Optimize into 'true'.
4362 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4363
4364 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4365 Martin Liska <mliska@suse.cz>
4366
4367 * gimple-fold.c (and_comparisons_1): Add type as first
4368 argument.
4369 (and_var_with_comparison): Likewise.
4370 (and_var_with_comparison_1): Likewise.
4371 (or_comparisons_1): Likewise.
4372 (or_var_with_comparison): Likewise.
4373 (or_var_with_comparison_1): Likewise.
4374 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4375 (maybe_fold_or_comparisons): Likewise.
4376 (maybe_fold_comparisons_from_match_pd): New.
4377 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4378 (maybe_fold_or_comparisons): Likewise.
4379 * gimple.c (gimple_size): Make it public and add num_ops argument.
4380 (gimple_init): New function.
4381 (gimple_alloc): Call gimple_init.
4382 * gimple.h (gimple_size): New.
4383 (gimple_init): Likewise.
4384 * tree-if-conv.c (fold_or_predicates): Pass type.
4385 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4386 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4387 (optimize_vec_cond_expr): Likewise.
4388 (ovce_extract_ops): Return type of conditional expression.
4389 * tree-ssanames.c (init_ssa_name_imm_use): New.
4390 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4391 * tree-ssanames.h (init_ssa_name_imm_use): New.
4392
4393 2019-09-16 Richard Biener <rguenther@suse.de>
4394
4395 PR tree-optimization/91756
4396 PR tree-optimization/87132
4397 * tree-ssa-alias.h (enum translate_flags): New.
4398 (get_continuation_for_phi): Use it instead of simple bool flag.
4399 (walk_non_aliased_vuses): Likewise.
4400 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4401 (get_continuation_for_phi): When looking across backedges only
4402 disallow valueization.
4403 (walk_non_aliased_vuses): Adjust.
4404 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4405 if requested.
4406
4407 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4408
4409 PR middle-end/80791
4410 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4411 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4412 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4413 * target.def (have_count_reg_decr_p): New hook.
4414 (doloop_cost_for_generic): Likewise.
4415 (doloop_cost_for_address): Likewise.
4416 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4417 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4418 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4419 * doc/tm.texi: Regenerate.
4420 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4421 addend.
4422 (record_group): Init doloop_p.
4423 (add_candidate_1): Add optional argument doloop, change the handlings
4424 accordingly.
4425 (add_candidate): Likewise.
4426 (generic_predict_doloop_p): Update attribute.
4427 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4428 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4429 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4430 MIN_EXPR.
4431 (get_computation_cost): Update for doloop IV cand extra cost.
4432 (determine_group_iv_cost_cond): Update for doloop IV cand.
4433 (determine_iv_cost): Likewise.
4434 (ivopts_estimate_reg_pressure): Likewise.
4435 (may_eliminate_iv): Update handlings for doloop IV cand.
4436 (add_iv_candidate_for_doloop): New function.
4437 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4438 (iv_ca_set_no_cp): Update for doloop IV cand.
4439 (iv_ca_set_cp): Likewise.
4440 (iv_ca_dump): Dump register cost.
4441 (find_doloop_use): New function.
4442 (analyze_and_mark_doloop_use): Likewise.
4443 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4444
4445 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4446
4447 PR middle-end/91708
4448 * cse.c (cse_insn): Do not replace anything with a
4449 MEM.
4450
4451 2019-09-13 Ian Lance Taylor <iant@golang.org>
4452
4453 * doc/invoke.texi (Optimize Options): Fix typo.
4454
4455 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4456
4457 PR tree-optimization/89386
4458 * config/i386/sse.md (smulhrs<mode>3): New expander.
4459 (smulhrsv4hi3): Ditto.
4460
4461 2019-09-12 Richard Biener <rguenther@suse.de>
4462
4463 PR tree-optimization/91750
4464 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4465 in the type of the evolution.
4466
4467 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4468
4469 PR tree-optimization/89386
4470 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4471 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4472 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4473 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4474 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4475 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4476 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4477 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4478 (su, r): Handle the unspecs above.
4479 (bt): New int attribute.
4480 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4481 * internal-fn.c (first_commutative_argument): Commutativity info for
4482 above.
4483 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4484 (umulhrs_optab): New optabs.
4485 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4486 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4487 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4488 function.
4489 (vect_vect_recog_func_ptrs): Add it.
4490
4491 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4492
4493 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4494 code.
4495
4496 2019-09-11 Nathan Sidwell <nathan@acm.org>
4497
4498 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4499 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4500
4501 2019-09-11 Richard Biener <rguenther@suse.de>
4502
4503 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4504 * lto-wrapper.c (merge_and_complain): Pick up -g.
4505 (append_compiler_options): Likewise.
4506 (run_gcc): Re-instantiate handling -g0 at link-time.
4507 * doc/invoke.texi (flto): Document debug info generation.
4508
4509 2019-09-11 Richard Biener <rguenther@suse.de>
4510
4511 PR tree-optimization/90387
4512 * vr-values.c (vr_values::extract_range_basic): After inlining
4513 simplify non-constant __builtin_constant_p to false.
4514
4515 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4516
4517 PR rtl-optimization/89795
4518 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4519 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4520
4521 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4522
4523 PR tree-optimization/91723
4524 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4525 instead of pointer equality when checking if argument vectypes are
4526 the same.
4527
4528 PR middle-end/91725
4529 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4530 of get_nonzero_bits, only call it for integral types.
4531
4532 2019-09-11 Richard Biener <rguenther@suse.de>
4533
4534 Revert
4535 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4536
4537 * match.pd: Add flag_unsafe_math_optimizations check
4538 before deciding on the widest type in a binary math operation.
4539
4540 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4541
4542 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4543 and CALL_REALLY_USED_REGISTERS must be defined, and that
4544 CALL_REALLY_USED_REGISTERS is preferred.
4545 * doc/tm.texi: Regenerate.
4546 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4547 (call_really_used_regs): Likewise.
4548 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4549 CALL_REALLY_USED_REGISTERS are defined.
4550 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4551 initial value if defined.
4552 (initial_call_really_used_regs): Delete.
4553 (saved_call_really_used_regs): Likewise.
4554 (CALL_REALLY_USED_REGNO_P): Likewise.
4555 (init_reg_sets): Remove handling of call_really_used_regs.
4556 (save_register_info, restore_register_info, globalize_reg): Likewise.
4557 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4558 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4559 outside operand_reg_set.
4560 (fix_register): Don't change call_used_regs if
4561 CALL_REALLY_USED_REGISTERS is defined.
4562 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4563 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4564 instead of call_really_used_regs.
4565 (csky_conditional_register_usage): Remove the old handling of
4566 call_used_regs and change the handling of call_really_used_regs
4567 to use call_used_regs instead.
4568 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4569 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4570 making a register fixed.
4571 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4572 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4573 instead of call_really_used_regs.
4574 (m32r_conditional_register_usage): Don't set call_used_regs when
4575 making a register fixed.
4576 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4577 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4578 instead of call_really_used_regs.
4579 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4580 (mips_cfun_call_saved_reg_p): Likewise.
4581 (mips_swap_registers): Remove the old handling of call_used_regs
4582 and change the handling of call_really_used_regs to use call_used_regs
4583 instead.
4584 (mips_conditional_register_usage): Likewise.
4585 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4586 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4587 instead of call_really_used_regs.
4588 (mn10300_get_live_callee_saved_regs): Likewise.
4589 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4590 (mn10300_conditional_register_usage): Don't set call_used_regs when
4591 making a register fixed.
4592 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4593 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4594 Remove the old handling of call_used_regs and change the handling
4595 of call_really_used_regs to use call_used_regs instead.
4596 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4597 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4598 instead of call_really_used_regs.
4599 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4600 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4601 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4602 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4603 (s390_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/sh/sh.h (CALL_USED_REGISTERS): Delete.
4607 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4608 (sh_fix_range, reg_unused_after): Likewise.
4609 (sh_conditional_register_usage): Remove the old handling of
4610 call_used_regs and change the handling of call_really_used_regs
4611 to use call_used_regs instead.
4612 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4613 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4614 call_used_regs when making a register fixed.
4615 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4616 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4617 call_used_regs when making a register fixed.
4618 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4619 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4620 set call_used_regs when making a register fixed.
4621 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4622 * config/visium/visium.c (visium_conditional_register_usage): Remove
4623 the old handling of call_used_regs and change the handling of
4624 call_really_used_regs to use call_used_regs instead.
4625
4626 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4627
4628 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4629 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4630 * reginfo.c (call_used_regs): New macro.
4631
4632 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4633
4634 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4635 fixed_regs test.
4636 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4637 (bpf_expand_epilogue): Likewise.
4638 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4639 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4640 (ft32_expand_epilogue): Likewise.
4641 * config/i386/i386.c (ix86_save_reg): Likewise.
4642 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4643 (moxie_expand_epilogue): Likewise.
4644 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4645 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4646 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4647
4648 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4649
4650 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4651 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4652 instead of testing call_used_regs directly.
4653 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4654 (aarch64_components_for_bb): Likewise.
4655 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4656 * config/arc/arc.c (arc_must_save_register): Likewise.
4657 (arc_epilogue_uses): Likewise.
4658 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4659 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4660 (arm_compute_save_reg0_reg12_mask): Likewise.
4661 (arm_compute_save_core_reg_mask): Likewise.
4662 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4663 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4664 (cmse_nonsecure_entry_clear_before_return): Likewise.
4665 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4666 (arm_expand_epilogue): Likewise.
4667 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4668 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4669 (_reg_unused_after): Likewise.
4670 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4671 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4672 (add_to_reg, hwloop_optimize): Likewise.
4673 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4674 (bpf_expand_epilogue): Likewise.
4675 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4676 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4677 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4678 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4679 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4680 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4681 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4682 * config/frv/frv.c (frv_stack_info): Likewise.
4683 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4684 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4685 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4686 (move_callee_saved_registers): Likewise.
4687 * config/h8300/h8300.c (byte_reg): Likewise.
4688 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4689 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4690 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4691 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4692 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4693 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4694 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4695 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4696 * config/m32c/m32c.c (need_to_save): Likewise.
4697 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4698 * config/mcore/mcore.c (calc_live_regs): Likewise.
4699 * config/microblaze/microblaze.c (microblaze_must_save_register):
4700 Likewise.
4701 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4702 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4703 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4704 (mmix_expand_epilogue): Likewise.
4705 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4706 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4707 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4708 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4709 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4710 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4711 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4712 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4713 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4714 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4715 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4716 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4717 * config/rl78/rl78.c (need_to_save): Likewise.
4718 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4719 (rs6000_stack_info, generate_set_vrsave): Likewise.
4720 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4721 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4722 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4723 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4724 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4725 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4726 (save_local_or_in_reg_p): Likewise.
4727 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4728 (xstormy16_epilogue_uses): Likewise.
4729 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4730 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4731 * config/v850/v850.c (compute_register_save_size): Likewise.
4732 * config/vax/vax.c (vax_expand_prologue): Likewise.
4733 * config/visium/visium.c (visium_save_reg_p): Likewise.
4734 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4735 * cselib.c (cselib_process_insn): Likewise.
4736 * df-scan.c (df_get_entry_block_def_set): Likewise.
4737 * function.c (aggregate_value_p): Likewise.
4738 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4739 * ira-lives.c (process_bb_node_lives): Likewise.
4740 * ira.c (do_reload): Likewise.
4741 * lra-lives.c (process_bb_lives): Likewise.
4742 * lra-remat.c (lra_remat): Likewise.
4743 * lra.c (lra): Likewise.
4744 * postreload.c (reload_combine_recognize_pattern): Likewise.
4745 (reload_cse_move2add): Likewise.
4746 * recog.c (peep2_find_free_register): Likewise.
4747 * regrename.c (check_new_reg_p): Likewise.
4748 * reload.c (find_equiv_reg): Likewise.
4749 * reload1.c (reload, find_reg): Likewise.
4750 * sel-sched.c (init_hard_regs_data): Likewise.
4751
4752 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4753
4754 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4755 regs_invalidated_by_call & ~fixed_reg_set instead of
4756 call_used_or_fixed_regs & ~fixed_reg_set.
4757 * config/sh/sh.c (output_stack_adjust): Likewise.
4758
4759 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4760
4761 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4762 (call_used_reg_set): Delete.
4763 (call_used_or_fixed_regs): New macro.
4764 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4765 of call_used_reg_set.
4766 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4767 instead of call_used_regs.
4768 (save_call_clobbered_regs): Likewise.
4769 * cfgcleanup.c (old_insns_match_p): Likewise.
4770 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4771 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4772 Likewise.
4773 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4774 * config/sh/sh.c (output_stack_adjust): Likewise.
4775 * final.c (collect_fn_hard_reg_usage): Likewise.
4776 * ira-build.c (ira_build): Likewise.
4777 * ira-color.c (calculate_saved_nregs): Likewise.
4778 (allocno_reload_assign, calculate_spill_cost): Likewise.
4779 * ira-conflicts.c (ira_build_conflicts): Likewise.
4780 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4781 * ira-lives.c (process_bb_node_lives): Likewise.
4782 * ira.c (setup_reg_renumber): Likewise.
4783 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4784 * lra-constraints.c (need_for_call_save_p): Likewise.
4785 (need_for_split_p, inherit_in_ebb): Likewise.
4786 * lra-lives.c (process_bb_lives): Likewise.
4787 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4788 * postreload.c (reload_combine): Likewise.
4789 * regrename.c (find_rename_reg): Likewise.
4790 * reload1.c (reload_as_needed): Likewise.
4791 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4792 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4793 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4794
4795 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4796
4797 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4798 (no_caller_save_reg_set): Delete.
4799 * caller-save.c (init_caller_save): Don't initialize it.
4800 * ira-conflicts.c (ira_build_conflicts): Calculate
4801 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4802
4803 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4804
4805 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4806 (target_hard_regs::x_savable_regs): New field.
4807 (call_fixed_reg_set): Delete.
4808 (savable_regs): New macro,
4809 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4810 (init_reg_sets_1): Likewise. Initialize savable_regs.
4811 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4812 for all registers. Set savable_regs instead of call_fixed_reg_set.
4813 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4814 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4815 * config/sh/sh.c (output_stack_adjust): Likewise.
4816
4817 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4818
4819 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4820 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4821 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4822
4823 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4824
4825 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4826 * rtlanal.c (get_call_rtx_from): Likewise.
4827 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4828 than the pattern to get_call_rtx_from.
4829 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4830 an rtx_insn * instead of an rtx.
4831 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4832
4833 2019-09-10 Martin Liska <mliska@suse.cz>
4834
4835 * common.opt: Use newly added WarnRemoved.
4836 * config/aarch64/aarch64.opt: Likewise.
4837 * config/arm/arm.opt: Likewise.
4838 * config/i386/i386.opt: Likewise.
4839 * config/ia64/ia64.opt: Likewise.
4840 * config/rs6000/rs6000.opt: Likewise.
4841 * doc/options.texi: Document WarnRemoved properly.
4842 * dwarf2out.c (gen_producer_string): Handle renamed
4843 OPT_SPECIAL_warn_removed.
4844 * lto-opts.c (lto_write_options): Likewise.
4845 * lto-wrapper.c (merge_and_complain): Likewise.
4846 * opts-common.c (decode_cmdline_option): Likewise.
4847 (prune_options): Likewise.
4848 (read_cmdline_option): Likewise.
4849 (control_warning_option): Likewise.
4850 * opts.c (print_filtered_help): Likewise.
4851 * optc-gen.awk: Parse for WarnRemoved and make usage
4852 of Deprecated an error.
4853 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4854
4855 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4856
4857 * doc/install.texi: Fix syntax for html generation.
4858
4859 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4860
4861 PR middle-end/91680
4862 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4863 the shift type to type.
4864
4865 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4866
4867 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4868 FDPIC mode.
4869 (stack_protect_combined_test_insn): Likewise.
4870
4871 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4872 Mickaël Guêné <mickael.guene@st.com>
4873
4874 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4875 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4876 (load_tp_soft_fdpic): New pattern.
4877 (load_tp_soft): Disable in FDPIC mode.
4878
4879 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4880 Mickaël Guêné <mickael.guene@st.com>
4881
4882 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4883 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4884 (arm_call_tls_get_addr): Add FDPIC support.
4885 (legitimize_tls_address): Likewise.
4886 (arm_emit_tls_decoration): Likewise.
4887
4888 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4889 Mickaël Guêné <mickael.guene@st.com>
4890
4891 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4892 support.
4893 (arm_trampoline_init): Likewise.
4894 (arm_trampoline_adjust_address): Likewise.
4895 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4896
4897 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4898 Mickaël Guêné <mickael.guene@st.com>
4899
4900 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4901 (legitimize_pic_address): Enforce binding rules on function
4902 pointers in FDPIC mode.
4903 (arm_assemble_integer): Likewise.
4904
4905 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4906 Mickaël Guêné <mickael.guene@st.com>
4907
4908 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4909 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4910 FDPIC.
4911
4912 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4913 Mickaël Guêné <mickael.guene@st.com>
4914
4915 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4916 field.
4917
4918 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4919 Mickaël Guêné <mickael.guene@st.com>
4920
4921 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4922 in FDPIC mode.
4923 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4924 new function.
4925 * config/arm/arm.c (arm_option_override): Define pic register to
4926 FDPIC_REGNUM.
4927 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4928 have no decl or go through PLT.
4929 (calculate_pic_address_constant): New function.
4930 (legitimize_pic_address): Call calculate_pic_address_constant.
4931 (arm_load_pic_register): Handle TARGET_FDPIC.
4932 (arm_is_segment_info_known): New function.
4933 (arm_pic_static_addr): Add support for FDPIC.
4934 (arm_load_function_descriptor): New function.
4935 (arm_emit_call_insn): Add support for FDPIC.
4936 (arm_assemble_integer): Add support for FDPIC.
4937 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4938 Define. (FDPIC_REGNUM): New define.
4939 * config/arm/arm.md (call): Add support for FDPIC.
4940 (call_value): Likewise.
4941 (restore_pic_register_after_call): New pattern.
4942 (untyped_call): Disable if FDPIC.
4943 (untyped_return): Likewise.
4944 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4945
4946 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4947 Mickaël Guêné <mickael.guene@st.com>
4948
4949 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4950 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4951 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4952 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4953 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4954 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4955 * config/arm/uclinuxfdpiceabi.h: New file.
4956
4957 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4958
4959 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4960
4961 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4962 Mickaël Guêné <mickael.guene@st.com>
4963
4964 * config/arm/arm.opt: Add -mfdpic option.
4965 * doc/invoke.texi: Add documentation for -mfdpic.
4966
4967 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4968
4969 * expmed.c (extract_bit_field): Update function comment
4970 regarding alt_rtl.
4971 * expr.c (expand_expr_real): Update function comment
4972 regarding alt_rtl.
4973 (expand_misaligned_mem_ref): New helper function.
4974 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4975 Remove duplicate assignment to "base" at case MEM_REF.
4976 Remove a shadowed variable "unsignedp" at case VCE.
4977
4978 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4979
4980 * regset.h (regs_invalidated_by_call_regset): Delete.
4981 (fixed_reg_set_regset): Likewise.
4982 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4983 (fixed_reg_set_regset, persistent_obstack): Likewise.
4984 (init_reg_sets_1, globalize_reg): Update accordingly.
4985 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4986 instead of a bitmap.
4987 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4988 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4989 instead of regs_invalidated_by_call_regset.
4990 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4991 * df-scan.c (df_scan_start_dump): Likewise.
4992 * dse.c (copy_fixed_regs): Likewise.
4993 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4994
4995 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4996
4997 * array-traits.h: New file.
4998 * coretypes.h (array_traits, bitmap_view): New types.
4999 * bitmap.h: Include "array-traits.h"
5000 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5001 (base_bitmap_view, bitmap_view): New classes.
5002 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5003 * hard-reg-set.h: Include array-traits.h.
5004 (array_traits<HARD_REG_SET>): New struct.
5005 * regset.h (IOR_REG_SET_HRS): New macro.
5006 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
5007 rather than iterating over each hard register.
5008 * sched-deps.c (sched_analyze_insn): Likewise.
5009 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
5010
5011 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5012
5013 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
5014 instead of a HARD_REG_SET *.
5015 * ira-build.c (ior_hard_reg_conflicts): Likewise.
5016 (ira_build): Update call accordingly.
5017 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
5018
5019 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5020
5021 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
5022 (HARD_REG_SET::operator!=): Likewise.
5023 (hard_reg_set_equal_p): Delete.
5024 * cfgcleanup.c (old_insns_match_p): Use == instead of
5025 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
5026 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
5027 (add_allocno_hard_regs_to_forest): Likewise.
5028 (setup_allocno_available_regs_num): Likewise.
5029 * ira.c (setup_pressure_classes): Likewise.
5030 (setup_allocno_and_important_classes): Likewise.
5031 (setup_reg_class_relations): Likewise.
5032 * lra-lives.c (process_bb_lives): Likewise.
5033 * reg-stack.c (change_stack, convert_regs_1): Likewise.
5034
5035 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5036
5037 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
5038 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5039 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
5040 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
5041 Likewise.
5042 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
5043 * ira.c (setup_reg_renumber): Likewise.
5044 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5045 * regrename.c (regrename_find_superclass): Likewise.
5046 * reload1.c (find_reg): Likewise.
5047
5048 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5049
5050 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
5051 * caller-save.c (setup_save_areas): Use "&~" instead of
5052 AND_COMPL_HARD_REG_SET.
5053 (save_call_clobbered_regs): Likewise.
5054 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5055 Likewise.
5056 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5057 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5058 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
5059 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5060 (mips_conditional_register_usage): Likewise.
5061 * config/sh/sh.c (output_stack_adjust): Likewise.
5062 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5063 (setup_profitable_hard_regs): Likewise.
5064 (get_conflict_and_start_profitable_regs): Likewise.
5065 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5066 (ira_build_conflicts): Likewise.
5067 * ira-costs.c (restrict_cost_classes): Likewise.
5068 (setup_regno_cost_classes_by_aclass): Likewise.
5069 * ira-lives.c (process_bb_node_lives): Likewise.
5070 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5071 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5072 (setup_allocno_and_important_classes, setup_class_translate_array)
5073 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5074 Likewise.
5075 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5076 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5077 (process_alt_operands, inherit_in_ebb): Likewise.
5078 * lra-eliminations.c (update_reg_eliminate): Likewise.
5079 * lra-lives.c (process_bb_lives): Likewise.
5080 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5081 * resource.c (find_dead_or_set_registers): Likewise.
5082 (mark_target_live_regs): Likewise.
5083 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5084 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5085 (implicit_clobber_conflict_p): Likewise.
5086 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5087 (try_shrink_wrapping): Likewise.
5088
5089 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5090
5091 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5092 (HARD_REG_SET::operator|=): Likewise.
5093 (IOR_HARD_REG_SET): Delete.
5094 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5095 IOR_HARD_REG_SET.
5096 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5097 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5098 * final.c (collect_fn_hard_reg_usage): Likewise.
5099 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5100 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5101 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5102 (propagate_some_info_from_allocno): Likewise.
5103 (copy_info_to_removed_store_destinations): Likewise.
5104 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5105 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5106 (fast_allocation): Likewise.
5107 * ira-conflicts.c (ira_build_conflicts): Likewise.
5108 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5109 (process_bb_node_lives): Likewise.
5110 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5111 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5112 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5113 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5114 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5115 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5116 (process_bb_lives): Likewise.
5117 * lra-spills.c (assign_spill_hard_regs): Likewise.
5118 * postreload.c (reload_combine): Likewise.
5119 * reginfo.c (init_reg_sets_1): Likewise.
5120 * regrename.c (merge_overlapping_regs, find_rename_reg)
5121 (merge_chains): Likewise.
5122 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5123 (find_reload_regs, finish_spills, choose_reload_regs_init)
5124 (emit_reload_insns): Likewise.
5125 * reorg.c (redundant_insn): Likewise.
5126 * resource.c (find_dead_or_set_registers, mark_set_resources)
5127 (mark_target_live_regs): Likewise.
5128 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5129 * sched-deps.c (sched_analyze_insn): Likewise.
5130 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5131 (find_best_reg_for_expr): Likewise.
5132 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5133
5134 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5135
5136 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5137 (HARD_REG_SET::operator&): Likewise.
5138 (AND_HARD_REG_SET): Delete.
5139 * caller-save.c (setup_save_areas): Use "&" instead of
5140 AND_HARD_REG_SET.
5141 (save_call_clobbered_regs): Likewise.
5142 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5143 * config/m32c/m32c.c (reduce_class): Likewise.
5144 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5145 * final.c (get_call_reg_set_usage): Likewise.
5146 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5147 (setup_left_conflict_sizes_p): Likewise.
5148 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5149 (ira_build_conflicts): Likewise.
5150 * ira-costs.c (restrict_cost_classes): Likewise.
5151 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5152 (setup_reg_class_relations): Likewise.
5153 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5154 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5155 * resource.c (find_dead_or_set_registers): Likewise.
5156 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5157
5158 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5159
5160 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5161 (COMPL_HARD_REG_SET): Delete.
5162 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5163 of COMPL_HARD_REG_SET.
5164 (try_rename_operands): Likewise.
5165 * config/sh/sh.c (push_regs): Likewise.
5166 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5167 * lra-constraints.c (contains_reg_p): Likewise.
5168 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5169
5170 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5171
5172 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5173 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5174 of COPY_HARD_REG_SET.
5175 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5176 (epiphany_conditional_register_usage): Likewise.
5177 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5178 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5179 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5180 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5181 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5182 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5183 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5184 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5185 * config/sh/sh.c (output_stack_adjust): Likewise.
5186 * final.c (collect_fn_hard_reg_usage): Likewise.
5187 (get_call_reg_set_usage): Likewise.
5188 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5189 (ira_flattening): Likewise.
5190 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5191 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5192 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5193 (ira_reassign_pseudos): Likewise.
5194 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5195 (ira_build_conflicts): Likewise.
5196 * ira-costs.c (restrict_cost_classes): Likewise.
5197 (setup_regno_cost_classes_by_aclass): Likewise.
5198 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5199 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5200 (setup_stack_reg_pressure_class, setup_pressure_classes)
5201 (setup_allocno_and_important_classes, setup_class_translate_array)
5202 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5203 (ira_setup_eliminable_regset): Likewise.
5204 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5205 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5206 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5207 (process_alt_operands, inherit_in_ebb): Likewise.
5208 * lra-lives.c (process_bb_lives): Likewise.
5209 * lra-spills.c (assign_spill_hard_regs): Likewise.
5210 * lra.c (lra): Likewise.
5211 * mode-switching.c (new_seginfo): Likewise.
5212 * postreload.c (reload_combine): Likewise.
5213 * reg-stack.c (straighten_stack): Likewise.
5214 * reginfo.c (save_register_info, restore_register_info): Likewise.
5215 (init_reg_sets_1, record_subregs_of_mode): Likewise
5216 * regrename.c (create_new_chain, rename_chains): Likewise.
5217 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5218 (find_reload_regs): Likewise.
5219 * resource.c (find_dead_or_set_registers): Likewise.
5220 (mark_target_live_regs): Likewise.
5221 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5222
5223 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5224
5225 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5226 (note_pattern_stores): Declare.
5227 (note_stores): Take an rtx_insn *.
5228 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5229 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5230 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5231 (note_stores): Take an rtx_insn * as argument and process
5232 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5233 (note_pattern_stores): ...this.
5234 (find_first_parameter_load): Pass the insn rather than
5235 its pattern to note_stores.
5236 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5237 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5238 (insert_one_insn): Likewise.
5239 * combine.c (combine_instructions): Likewise.
5240 (likely_spilled_retval_p): Likewise.
5241 (try_combine): Use note_pattern_stores instead of note_stores.
5242 (record_dead_and_set_regs): Pass the insn rather than its pattern
5243 to note_stores.
5244 (reg_dead_at_p): Likewise.
5245 * config/bfin/bfin.c (workaround_speculation): Likewise.
5246 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5247 rather than an rtx.
5248 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5249 instead of note_stores.
5250 (frv_optimize_membar_local): Pass the insn rather than its pattern
5251 to note_stores.
5252 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5253 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5254 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5255 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5256 (mips_reorg_process_insns): Likewise.
5257 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5258 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5259 rather than rtxes.
5260 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5261 its pattern to note_stores.
5262 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5263 of note_stores.
5264 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5265 the insn to note_stores.
5266 (prescan_insns_for_dce): Update call accordingly.
5267 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5268 to note_stores.
5269 * df-problems.c (can_move_insns_across): Likewise.
5270 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5271 * function.c (assign_parm_setup_reg): Likewise.
5272 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5273 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5274 (single_set_gcse): Likewise.
5275 * ira.c (validate_equiv_mem): Likewise.
5276 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5277 for no_equiv.
5278 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5279 pattern to note_stores.
5280 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5281 * loop-iv.c (simplify_using_initial_values): Likewise.
5282 * mode-switching.c (optimize_mode_switching): Likewise.
5283 * optabs.c (emit_libcall_block_1): Likewise.
5284 (expand_atomic_compare_and_swap): Likewise.
5285 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5286 (record_opr_changes): Likewise. Remove explicit handling of
5287 CALL_INSN_FUNCTION_USAGE.
5288 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5289 * regcprop.c (kill_clobbered_values): Likewise.
5290 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5291 to note_stores.
5292 * regrename.c (build_def_use): Likewise.
5293 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5294 for mark_not_eliminable.
5295 (reload_as_needed): Pass the insn rather than its pattern
5296 to note_stores.
5297 (emit_output_reload_insns): Likewise.
5298 * resource.c (mark_target_live_regs): Likewise.
5299 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5300 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5301 instead of note_stores.
5302 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5303 its pattern to note_stores.
5304 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5305 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5306
5307 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5308
5309 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5310 than a #define. Use a structure rather than an array as the
5311 fallback definition. Remove special cases for low array sizes.
5312 (const_hard_reg_set): New typedef.
5313 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5314 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5315 (hard_reg_set_empty_p): Likewise.
5316 (SET_HARD_REG_BIT): Use a function rather than a macro to
5317 handle the case in which HARD_REG_SET is a structure.
5318 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5319 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5320 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5321 (IOR_COMPL_HARD_REG_SET): Likewise.
5322 (hard_reg_set_iterator::pset): Constify the pointer target.
5323 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5324 of a "const HARD_REG_SET". Update the handling of non-integer
5325 HARD_REG_SETs.
5326 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5327 * reload.h: Likewise.
5328 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5329 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5330 of a "const HARD_REG_SET".
5331 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5332 (range_in_hard_reg_set_p): Likewise.
5333 * ira-costs.c (restrict_cost_classes): Likewise.
5334 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5335 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5336 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5337 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5338 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5339 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5340 take an unsigned int and open-code the HARD_REG_SET operations.
5341
5342 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5343
5344 * Makefile.in (OBJS): Remove bt-load.o.
5345 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5346 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5347 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5348 document that the option no longer does anything.
5349 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5350 * target.def (branch_target_register_class): Delete.
5351 (branch_target_register_callee_saved): Likewise.
5352 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5353 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5354 * doc/tm.texi: Regenerate.
5355 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5356 (make_pass_branch_target_load_optimize2): Likewise.
5357 * passes.def (pass_branch_target_load_optimize1): Likewise.
5358 (pass_branch_target_load_optimize2): Likewise.
5359 * targhooks.h (default_branch_target_register_class): Likewise.
5360 * targhooks.c (default_branch_target_register_class): Likewise.
5361 * opt-suggestions.c (test_completion_valid_options): Remove
5362 -fbtr-bb-exclusive from the list of test options.
5363 * bt-load.c: Remove.
5364
5365 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5366
5367 * match.pd: Add flag_unsafe_math_optimizations check
5368 before deciding on the widest type in a binary math operation.
5369
5370 2019-09-09 Martin Liska <mliska@suse.cz>
5371
5372 * config/i386/i386.opt: Update comment of removed
5373 options that are preserved only for backward
5374 compatibility.
5375
5376 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5377
5378 PR target/87853
5379 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5380 instead of __v16qs.
5381
5382 PR target/91704
5383 * config/i386/avxintrin.h (__v32qs): New typedef.
5384 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5385 instead of __v32qi.
5386
5387 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5388
5389 * doc/invoke.texi (Option Summary): Cover eBPF.
5390 (eBPF Options): New section.
5391 * doc/extend.texi (BPF Built-in Functions): Likewise.
5392 (BPF Kernel Helpers): Likewise.
5393
5394 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5395
5396 * config.gcc: Support for bpf-*-* targets.
5397 * common/config/bpf/bpf-common.c: New file.
5398 * config/bpf/t-bpf: Likewise.
5399 * config/bpf/predicates.md: Likewise.
5400 * config/bpf/constraints.md: Likewise.
5401 * config/bpf/bpf.opt: Likewise.
5402 * config/bpf/bpf.md: Likewise.
5403 * config/bpf/bpf.h: Likewise.
5404 * config/bpf/bpf.c: Likewise.
5405 * config/bpf/bpf-protos.h: Likewise.
5406 * config/bpf/bpf-opts.h: Likewise.
5407 * config/bpf/bpf-helpers.h: Likewise.
5408 * config/bpf/bpf-helpers.def: Likewise.
5409
5410 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5411
5412 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5413 indirect_calls.
5414
5415 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5416
5417 * opt-functions.awk (integer_range_info): Make sure values are in
5418 numeric context before operating with them.
5419
5420 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5421
5422 * genemit.c (gen_split): Print the filename and line number where the
5423 splitter (or peephole2) was defined, to the dump file.
5424
5425 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5426
5427 PR tree-optimization/91665
5428 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5429 incompatible with the type of PHI result.
5430
5431 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5432
5433 PR target/91684
5434 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5435 gen_unaligned_storedi for 4-byte aligned addresses.
5436
5437 2019-09-06 Jim Wilson <jimw@sifive.com>
5438
5439 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5440 change.
5441
5442 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5443
5444 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5445
5446 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5447
5448 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5449 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5450
5451 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5452
5453 PR target/91654
5454 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5455 cost of SSE->integer and integer->SSE moves from 2 to 6.
5456 (core_cost): Ditto.
5457
5458 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5459
5460 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5461 before testing TYPE_TRANSPARENT_AGGR.
5462 * calls.c (initialize_argument_information, load_register_parameters):
5463 Likewise.
5464
5465 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5466
5467 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5468 high regs.
5469 (cmp_ior): Likewise.
5470
5471 2019-09-06 Martin Liska <mliska@suse.cz>
5472
5473 * doc/match-and-simplify.texi: Separate tuples with ;.
5474
5475 2019-09-06 Martin Liska <mliska@suse.cz>
5476
5477 PR c++/91125
5478 * Makefile.in: Remove tlink.o.
5479 * collect2.c (do_link): New function isolated
5480 from do_tlink.
5481 (main): Use.
5482 * collect2.h (do_tlink): Remove declaration of do_tlink.
5483 * doc/extend.texi: Remove documentation of -frepo.
5484 * doc/invoke.texi: Likewise.
5485 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5486 * tlink.c: Remove.
5487
5488 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5489 Jim Wilson <jimw@sifive.com>
5490
5491 PR target/91635
5492 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5493 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5494 paradoxical_subreg_p (operands[0]).
5495 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5496 use as intermediate value.
5497
5498 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5499
5500 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5501 (sync_compare_and_swap<mode>_insn): Likewise.
5502
5503 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5504
5505 PR middle-end/91615
5506 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5507 without movmisalign optab.
5508
5509 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5510
5511 PR middle-end/91001
5512 PR middle-end/91105
5513 PR middle-end/91106
5514 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5515 types, use type of their first field instead of type of
5516 args[i].tree_value.
5517
5518 2019-09-05 Richard Biener <rguenther@suse.de>
5519
5520 PR rtl-optimization/91656
5521 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5522 of early out.
5523
5524 2019-09-05 Richard Biener <rguenther@suse.de>
5525
5526 PR middle-end/90501
5527 * tree-inline.c (declare_return_variable): Mark the return
5528 slot as addressable after building an address of it.
5529
5530 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5531
5532 * doc/install.texi: Update and clarify requirements to build GNAT.
5533
5534 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5535
5536 PR middle-end/91577
5537 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5538 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5539 call to be in memory.
5540 (pass_expand::execute): Call discover_nonconstant_array_refs before
5541 setting currently_expanding_to_rtl.
5542
5543 2019-09-04 Caroline Tice <cmtice@google.com>
5544
5545 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5546 specified together.
5547
5548 2019-09-04 Marek Polacek <polacek@redhat.com>
5549
5550 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5551
5552 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5553
5554 PR target/32413
5555 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5556 for QI and HImode moves between SSE and general registers.
5557
5558 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5559
5560 PR c/78736
5561 * doc/invoke.texi: Document -Wenum-conversion.
5562
5563 2019-09-04 Richard Biener <rguenther@suse.de>
5564
5565 PR rtl-optimization/36262
5566 * postreload-gcse.c: Include intl.h and gcse.h.
5567 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5568 to avoid linear list walk.
5569 (record_last_mem_set_info): Gate off if not computing transparentness.
5570 (get_bb_avail_insn): If transparentness isn't computed give up
5571 early.
5572 (gcse_after_reload_main): Skip compute_transp and extended PRE
5573 if gcse_or_cprop_is_too_expensive says so.
5574
5575 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5576
5577 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5578 noinit section.
5579 (msp430_select_section): Handle decls with the "noinit" attribute with
5580 default_elf_select_section.
5581 Handle SECCAT_RODATA_MERGE_* section types with
5582 default_elf_select_section.
5583 Add comments about handling of unsupported section types.
5584 (msp430_section_type_flags): Remove handling of the noinit section.
5585
5586 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5587
5588 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5589 conflicting msp430-specific attributes.
5590 (msp430_section_attr): Likewise.
5591 Add warnings about conflicts with generic "noinit" and "section"
5592 attributes.
5593 Fix grammar in -mlarge error message.
5594 (msp430_data_attr): Rename to msp430_persist_attr.
5595 Add warnings about conflicts with generic "noinit" and "section"
5596 attributes.
5597 Add warning for when variable is not initialized.
5598 Chain conditionals which prevent the attribute being added.
5599 (ATTR_EXCL): New helper.
5600 (attr_reent_exclusions): New exclusion table.
5601 (attr_naked_exclusions): Likewise.
5602 (attr_crit_exclusions): Likewise.
5603 (attr_lower_exclusions): Likewise.
5604 (attr_upper_exclusions): Likewise.
5605 (attr_either_exclusions): Likewise.
5606 (attr_persist_exclusions): Likewise.
5607 (msp430_attribute_table): Update with exclusion rules.
5608 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5609 has a section.
5610
5611 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5612
5613 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5614 (msp430_handle_generic_attribute): New function.
5615 * doc/tm.texi: Regenerate.
5616 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5617 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5618 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5619 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5620
5621 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5622
5623 PR tree-optimization/91504
5624 * match.pd: Add ((~a & b) ^a) --> (a | b).
5625
5626 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5627
5628 PR target/91604
5629 * config/i386/i386-expand.c (split_double_mode): If there is more than
5630 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5631 already split matching MEM operand instead of calling adjust_address
5632 again.
5633
5634 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5635
5636 * config.gcc: Obsolete spu target. Remove references to spu.
5637 * configure.ac: Remove references to spu.
5638 * configure: Regenerate.
5639 * config/spu/: Remove directory.
5640 * common/config/spu/: Remove directory.
5641
5642 * doc/extend.texi: Remove references to spu.
5643 * doc/invoke.texi: Likewise.
5644 * doc/md.texi: Likewise.
5645 * doc/sourcebuild.texi: Likewise.
5646
5647 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5648
5649 PR middle-end/91603
5650 PR middle-end/91612
5651 PR middle-end/91613
5652 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5653 and SSA_NAME referring to CONSTANT_P correctly.
5654
5655 2019-09-03 Richard Biener <rguenther@suse.de>
5656
5657 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5658 (vn_nary_op_insert): Likewise.
5659 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5660 (vn_nary_op_lookup): Likewise.
5661 (vn_nary_op_insert): Likewise.
5662
5663 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5664
5665 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5666 (*op0, 1) instead of XEXP (*op1, 0).
5667
5668 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5669
5670 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5671 (aarch64_fjcvtzs): New define_insn.
5672 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5673 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5674 Add AARCH64_JSCVT.
5675 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5676 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5677 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5678 __ARM_FEATURE_JCVT where appropriate.
5679 * config/aarch64/arm_acle.h (__jcvt): Define.
5680
5681 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5682
5683 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5684 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5685 (aarch64_<frintnzs_op><mode>): New define_insn.
5686 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5687 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5688 __ARM_FEATURE_FRINT when appropriate.
5689 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5690 frint32x, frint64z, frint64x.
5691 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5692 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5693 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5694 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5695 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5696 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5697 * config/aarch64/iterators.md (VSFDF): Define.
5698 (FRINTNZX): Likewise.
5699 (frintnzs_op): Likewise.
5700
5701 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5702
5703 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5704 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5705 Cortex-A34.
5706 * config/aarch64/aarch64-tune.md: Regenerated.
5707 * doc/invoke.texi: Document the new processors.
5708
5709 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5710
5711 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5712 string.
5713 (ssbs): Likewise.
5714 (sve2): Likewise.
5715 (sve2-sm4): Likewise.
5716 (sveaes): Likewise.
5717 (svesha3): Likewise.
5718 (svebitperm): Likewise.
5719
5720 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5721 Richard Biener <rguenther@suse.de>
5722
5723 PR tree-optimization/91597
5724 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5725 BIT_AND_EXPR optimization for pointers, even if both operand
5726 ranges don't include NULL, the result can be NULL.
5727
5728 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5729
5730 PR middle-end/91605
5731 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5732 (non_mem_decl_p): ...this.
5733 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5734 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5735 unconditionally as before.
5736
5737 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5738
5739 PR target/91323
5740 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5741 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5742 * tree.def (LTGT_EXPR): Likewise.
5743 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5744
5745 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5746
5747 PR go/91617
5748 * fold-const.c (range_check_type): For enumeral and boolean
5749 type, pass 1 to type_for_size langhook instead of
5750 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5751 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5752 (build_range_check): Don't call unsigned_type_for for pointer types.
5753 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5754 range_check_type result.
5755
5756 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5757
5758 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5759 (replace_ref): Do not replace a chain of only two candidates which are
5760 valid memory references.
5761
5762 2019-09-02 Martin Liska <mliska@suse.cz>
5763
5764 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5765 Bail out when we'll end up with the same number of clusters as
5766 at the beginning.
5767 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5768 (jump_table_cluster::can_be_handled): Remove the guard
5769 as it's already handled in ::is_enabled. Allocate output
5770 after early bail out.
5771
5772 2019-09-02 Martin Liska <mliska@suse.cz>
5773
5774 PR gcov-profile/91601
5775 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5776 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5777 also negative edges.
5778 (circuit): Handle also negative edges as they can happen
5779 in some situations.
5780
5781 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5782
5783 PR target/91472
5784 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5785 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5786 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5787
5788 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5789
5790 PR middle-end/91623
5791 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5792 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5793 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5794 zero vector.
5795
5796 PR lto/91572
5797 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5798 GIMPLE_ASM TREE_LIST operands.
5799
5800 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5801
5802 * doc/generic.texi (Unary and Binary Expressions): Mark up
5803 an instance of TYPE_MIN.
5804
5805 2019-08-31 Stafford Horne <shorne@gmail.com>
5806
5807 * config/or1k/constraints.md (t): New constraint.
5808 * config/or1k/or1k.h (GOT_REGS): New register class.
5809 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5810
5811 2019-08-30 Jim Wilson <jimw@sifive.com>
5812
5813 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5814 and -fpic and -mplt then disable -msave-restore and warn.
5815
5816 2019-08-30 Martin Sebor <msebor@redhat.com>
5817
5818 PR middle-end/91599
5819 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5820 the statement doesn't have one.
5821 * gimple-pretty-print.c (percent_G_format): Same.
5822
5823 PR middle-end/91584
5824 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5825 before using them to validate MEM_REF offset.
5826
5827 2019-08-30 Marek Polacek <polacek@redhat.com>
5828
5829 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5830
5831 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5832
5833 * config/arm/arm.md (unaligned_loaddi,
5834 unaligned_storedi): New unspec insn patterns.
5835 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5836 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5837 and unaligned_storedi for 4-byte aligned memory.
5838 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5839 4-byte aligned memory.
5840
5841 2019-08-30 Martin Jambor <mjambor@suse.cz>
5842
5843 tree-optimization/91579
5844 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5845 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5846 appropriate.
5847 (arg_needs_copy_p): Removed.
5848 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5849 arg_needs_copy_p.
5850 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5851
5852 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5853
5854 * config/i386/i386-features.c
5855 (general_scalar_chain::compute_convert_gain):
5856 Correct cost for double-word shifts.
5857 (general_scalar_to_vector_candidate_p): Reject count operands
5858 greater or equal to mode bitsize.
5859
5860 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5861
5862 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5863 for moves between SSE and non-general registers and between
5864 mask and non-general registers.
5865 (ix86_register_move_cost): Remove stalled comment.
5866
5867 2019-08-29 Richard Biener <rguenther@suse.de>
5868
5869 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5870 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5871
5872 2019-08-29 Richard Biener <rguenther@suse.de>
5873
5874 PR bootstrap/91580
5875 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5876 Do not emit scalar copies for debug-insns, instead replace
5877 their uses with the reg copy used in the chain or reset them
5878 if there is a reaching definition outside of the chain as well.
5879
5880 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5881
5882 PR target/91560
5883 * config/i386/i386-expand.c (expand_vec_perm_movs,
5884 expand_vec_perm_blend, expand_vec_perm_vpermil,
5885 expand_vec_perm_pshufb, expand_vec_perm_1,
5886 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5887 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5888 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5889 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5890 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5891 comments - replace ix86_expand_vec_perm_builtin_1 with
5892 ix86_expand_vec_perm_const_1.
5893 (expand_vec_perm2_vperm2f128_vblend): New function.
5894 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5895 expand_vec_perm2_vperm2f128_vblend as last resort.
5896 (canonicalize_perm): Formatting fix.
5897
5898 PR tree-optimization/91351
5899 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5900 unsigned_type_for.
5901 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5902 range_check_type returns NULL.
5903 * tree-switch-conversion.c (switch_conversion::build_one_array):
5904 Use range_check_type instead of unsigned_type_for, don't perform
5905 linear opt if it returns NULL.
5906 (bit_test_cluster::find_bit_tests): Formatting fix.
5907 (bit_test_cluster::emit): Use range_check_type instead of
5908 unsigned_type_for.
5909 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5910 returns NULL.
5911
5912 2019-08-29 Richard Biener <rguenther@suse.de>
5913
5914 PR tree-optimization/91568
5915 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5916 (vect_update_max_nunits): Add overload for poly_uint64.
5917 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5918 (vect_build_slp_tree): Record max_nunits into the subtree
5919 and merge it upwards.
5920 (vect_print_slp_tree): Print max_nunits.
5921
5922 2019-08-28 Marek Polacek <polacek@redhat.com>
5923
5924 Implement P1152R4: Deprecating some uses of volatile.
5925 PR c++/91361
5926 * doc/invoke.texi: Document -Wvolatile.
5927
5928 2019-08-28 Marek Polacek <polacek@redhat.com>
5929
5930 PR c++/91360 - Implement C++20 P1143R2: constinit.
5931 * doc/invoke.texi: Document -Wc++20-compat.
5932
5933 2019-08-28 Martin Sebor <msebor@redhat.com>
5934
5935 PR tree-optimization/91457
5936 * builtins.c (component_size): New function.
5937 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5938 * builtins.h (compute_objsize): Add argument.
5939 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5940 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5941 (vrp_prop::check_mem_ref): Same.
5942 (vrp_prop::search_for_addr_array): Set no-warning bit.
5943 (check_array_bounds): Same.
5944
5945 2019-08-28 Martin Sebor <msebor@redhat.com>
5946
5947 PR driver/80545
5948 * opts-common.c (option_enabled): Correct checking for language
5949 options.
5950
5951 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5952
5953 * config/i386/i386.c (ix86_register_move_cost): Do not
5954 limit the cost of moves to/from XMM register to minimum 8.
5955
5956 2019-08-28 Martin Jambor <mjambor@suse.cz>
5957
5958 PR ipa/91468
5959 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5960 checking assert a normal assert to test it really is redundant.
5961 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5962 redundant test.
5963 (update_jump_functions_after_inlining): Removed combining unary
5964 arithmetic operations with an ancestor jump function.
5965 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5966 instead of t.
5967
5968 2019-08-28 Richard Biener <rguenther@suse.de>
5969
5970 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5971 add the MD problem.
5972
5973 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5974 Richard Biener <rguenther@suse.de>
5975
5976 * expr.c (expand_assignment): Handle misaligned DECLs.
5977 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5978 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5979 too.
5980 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5981 * varasm.c (build_constant_desc): Align constants of misaligned types.
5982 * config/arm/predicates.md (aligned_operand): New predicate.
5983 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5984 aligned_operand to check restrictions on memory addresses.
5985 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5986 * config/arm/vec-common.md (mov<VALL>): Likewise.
5987
5988 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5989
5990 PR libgomp/91530
5991 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5992 V_128 iterator instead of VI_128.
5993
5994 2019-08-28 Martin Liska <mliska@suse.cz>
5995
5996 PR tree-optimization/90970
5997 * builtins.c (check_access): Remove assignment to maxread
5998 as it hasn't been used since when it was introduced in r255755.
5999
6000 2019-08-27 Martin Sebor <msebor@redhat.com>
6001
6002 PR tree-optimization/91567
6003 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
6004 of unknown strings.
6005 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
6006 to PTRDIFF_MAX - 2.
6007
6008 2019-08-27 Jeff Law <law@redhat.com>
6009
6010 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
6011 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
6012
6013 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
6014
6015 PR target/91528
6016 * config/i386/i386-features.c (convert_scalars_to_vector):
6017 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
6018 crtl->stack_realign_processed. Update crtl->drap_reg by calling
6019 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
6020 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
6021
6022 2019-08-27 Richard Biener <rguenther@suse.de>
6023
6024 * config/i386/i386-features.h
6025 (general_scalar_chain::~general_scalar_chain): Add.
6026 (general_scalar_chain::insns_conv): New bitmap.
6027 (general_scalar_chain::n_sse_to_integer): New.
6028 (general_scalar_chain::n_integer_to_sse): Likewise.
6029 (general_scalar_chain::make_vector_copies): Adjust signature.
6030 * config/i386/i386-features.c
6031 (general_scalar_chain::general_scalar_chain): Outline,
6032 initialize new members.
6033 (general_scalar_chain::~general_scalar_chain): New.
6034 (general_scalar_chain::mark_dual_mode_def): Record insns
6035 we need to insert conversions at and count them.
6036 (general_scalar_chain::compute_convert_gain): Account
6037 for conversion instructions at chain boundary.
6038 (general_scalar_chain::make_vector_copies): Generate a single
6039 copy for a def by a specific insn.
6040 (general_scalar_chain::convert_registers): First populate
6041 defs_map, then make copies at out-of chain insns.
6042
6043 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
6044
6045 * config/arm/arm.md (stack_protect_set_insn): Add security-related
6046 comment.
6047 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
6048
6049 2019-08-27 Martin Liska <mliska@suse.cz>
6050
6051 * cgraph.c (cgraph_node::remove): Remove dead assignment before
6052 loop.
6053 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
6054 Enclose in anonymous namespace.
6055 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
6056 hard_register initialization in braces.
6057 * tree-vrp.h (value_range_base::supports_type_p): Return false
6058 for function with boolean return type.
6059
6060 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
6061
6062 * config/i386/i386.c (emit_i387_cw_initialization)
6063 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6064
6065 2019-08-26 Martin Sebor <msebor@redhat.com>
6066
6067 PR c++/83431
6068 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6069 (sprintf_dom_walker): Remove class.
6070 (get_int_range): Make argument const.
6071 (directive::fmtfunc, directive::set_precision): Same.
6072 (format_none): Same.
6073 (build_intmax_type_nodes): Same.
6074 (adjust_range_for_overflow): Same.
6075 (format_floating): Same.
6076 (format_character): Same.
6077 (format_string): Same.
6078 (format_plain): Same.
6079 (get_int_range): Cast away constness.
6080 (format_integer): Same.
6081 (get_string_length): Call get_range_strlen_dynamic. Handle
6082 null lendata.maxbound.
6083 (should_warn_p): Adjust argument scope qualifier.
6084 (maybe_warn): Same.
6085 (format_directive): Same.
6086 (parse_directive): Same.
6087 (is_call_safe): Same.
6088 (try_substitute_return_value): Same.
6089 (sprintf_dom_walker::handle_printf_call): Rename...
6090 (handle_printf_call): ...to this. Initialize target to host charmap
6091 here instead of in pass_sprintf_length::execute.
6092 (struct call_info): Make global.
6093 (sprintf_dom_walker::compute_format_length): Make global.
6094 (sprintf_dom_walker::handle_gimple_call): Same.
6095 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6096 * print-rtl.c (print_pattern): Reduce the number of spaces to
6097 avoid -Wformat-truncation.
6098 * tree-pass.h (make_pass_warn_printf): New function.
6099 * tree-ssa-strlen.c (strlen_optimize): New variable.
6100 (get_string_length): Add comments.
6101 (get_range_strlen_dynamic): New function.
6102 (check_and_optimize_call): New function.
6103 (handle_integral_assign): New function.
6104 (strlen_check_and_optimize_stmt): Factor code out into
6105 strlen_check_and_optimize_call and handle_integral_assign.
6106 (strlen_dom_walker::evrp): New member.
6107 (strlen_dom_walker::before_dom_children): Use evrp member.
6108 (strlen_dom_walker::after_dom_children): Use evrp member.
6109 (printf_strlen_execute): New function.
6110 (pass_strlen::gate): Update to handle printf calls.
6111 (dump_strlen_info): New function.
6112 (pass_data_warn_printf): New variable.
6113 (pass_warn_printf): New class.
6114 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6115 (handle_printf_call): Same.
6116 * tree-vrp.c (value_range_base::type): Adjust assertion.
6117 * vr-values.c (vr_values::update_value_range): Use type of the first
6118 argument rather than the second.
6119
6120 2019-08-26 Richard Biener <rguenther@suse.de>
6121
6122 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6123 Remove.
6124 (convert_scalars_to_vector): Do not call it.
6125
6126 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6127 Uros Bizjak <ubizjak@gmail.com>
6128
6129 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6130 CASE_MATHFN_FLOATN for roundeven.
6131 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6132 I387_ROUNDEVEN.
6133 (ix86_mode_needed): Likewise.
6134 (ix86_mode_after): Likewise.
6135 (ix86_mode_entry): Likewise.
6136 (ix86_mode_exit): Likewise.
6137 (ix86_emit_mode_set): Likewise.
6138 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6139 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6140 (ix86_entity): Add I387_ROUNDEVEN.
6141 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6142 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6143 (define_int_iterator): Likewise.
6144 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6145 (define_constant): Define ROUND_ROUNDEVEN mode.
6146 (define_attr): Add roundeven mode for i387_cw.
6147 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6148 * internal-fn.def (ROUNDEVEN): New builtin function.
6149 * optabs.def (roundeven_optab): New optab.
6150
6151 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6152
6153 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6154 for ROUNDEVEN.
6155 * builtins.def: Added function definitions for roundeven function
6156 variants.
6157 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6158 function call. Adjust condition for floor, ceil, trunc and round.
6159 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6160 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6161 (integer_valued_real_call_p): Added case for roundeven function.
6162 * real.c (is_even): New function. Returns true if real number is even,
6163 otherwise returns false.
6164 (is_halfway_below): New function. Returns true if real number is
6165 halfway between two integers, else return false.
6166 (real_roundeven): New function. Round real number to nearest integer,
6167 rounding halfway cases towards even.
6168 * real.h (real_value): Added descriptive comments. Added function
6169 declaration for roundeven function.
6170 * doc/extend.texi (Other Builtins): List roundeven variants among
6171 functions which can be handled as builtins.
6172
6173 2019-08-26 Richard Biener <rguenther@suse.de>
6174
6175 PR target/91522
6176 PR target/91527
6177 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6178 New member.
6179 (general_scalar_chain::replace_with_subreg): Remove.
6180 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6181 (general_scalar_chain::convert_reg): Adjust signature.
6182 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6183 iterate over all defs of a reg.
6184 (general_scalar_chain::replace_with_subreg): Remove.
6185 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6186 (general_scalar_chain::make_vector_copies): Populate defs_map,
6187 place copy only after defs that are used as vectors in the chain.
6188 (general_scalar_chain::convert_reg): Emit a copy for a specific
6189 def in a specific instruction.
6190 (general_scalar_chain::convert_op): All reg uses are converted here.
6191 (general_scalar_chain::convert_insn): Emit copies for scalar
6192 uses of defs here. Replace uses with the copies we created.
6193 Replace and convert the def. Adjust REG_DEAD notes, remove
6194 REG_EQUIV/EQUAL notes.
6195 (general_scalar_chain::convert_registers): Only handle copies
6196 into the chain here.
6197
6198 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6199
6200 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6201
6202 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6203
6204 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6205 Add nop_convert case.
6206 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6207 Fold all statements if requested.
6208 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6209 Allow to fold all statements.
6210 * tree-vrp.c (class vrp_folder):
6211 Let substitute_and_fold_engine fold all statements.
6212
6213 2019-08-26 Richard Biener <rguenther@suse.de>
6214
6215 PR tree-optimization/91526
6216 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6217 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6218 TODO_update_address_taken.
6219
6220 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6221
6222 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6223 __STDC_HOSTED__.
6224
6225 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6226
6227 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6228 machine mode for unspec_volatile operand.
6229
6230 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6231
6232 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6233 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6234 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6235 (prefer_neon_for_64bits): Remove.
6236 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6237 (tune_params): Remove PREF_NEON_64_FALSE uses.
6238 (arm_option_override): Remove prefer_neon selection code.
6239 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6240 * gcc/config/arm/arm-protos.h (tune_params): Remove
6241 prefer_neon_for_64bits.
6242 (prefer_neon_for_64bits): Remove.
6243
6244 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6245
6246 PR pch/61250
6247 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6248 and issue any diagnostics needed before collecting the pre-PCH
6249 state.
6250
6251 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6252
6253 PR middle-end/91283
6254 * common.opt (fexcess-precision=): Add Optimization flag. Use
6255 flag_excess_precision variable instead of
6256 flag_excess_precision_cmdline.
6257 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6258 member.
6259 (flag_excess_precision): Don't define.
6260 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6261 flag_excess_precision_cmdline. Remove comment.
6262 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6263 and x_flag_excess_precision instead of
6264 frontend_set_flag_excess_precision_cmdline and
6265 x_flag_excess_precision_cmdline.
6266 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6267 x_flag_excess_precision_cmdline.
6268 * toplev.c (init_excess_precision): Remove.
6269 (lang_dependent_init_target): Don't call it.
6270
6271 2019-08-23 Martin Liska <mliska@suse.cz>
6272
6273 * lto-wrapper.c (run_gcc): When setting jobserver
6274 set also parallel to 1. This was done so before r273908.
6275
6276 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6277
6278 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6279 (cortex-a76ae): Likewise.
6280 (cortex-a77): Likewise
6281 * config/arm/arm-tables.opt: Regenerate.
6282 * config/arm/arm-tune.md: Likewise.
6283 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6284 cortex-a77 CPU options.
6285
6286 2019-08-23 Martin Liska <mliska@suse.cz>
6287
6288 * profile.c (instrument_values): Do not set
6289 0 as last argument.
6290 * tree-profile.c (gimple_gen_interval_profiler): Remove
6291 last argument.
6292 (gimple_gen_pow2_profiler): Likewise.
6293 (gimple_gen_topn_values_profiler): Likewise.
6294 (gimple_gen_ic_profiler): Likewise.
6295 (gimple_gen_time_profiler): Likewise.
6296 (gimple_gen_average_profiler): Likewise.
6297 (gimple_gen_ior_profiler): Likewise.
6298 * value-prof.c (dump_histogram_value): Use default
6299 in switch statement instead of HIST_TYPE_MAX.
6300 (stream_in_histogram_value): Likewise.
6301 (gimple_duplicate_stmt_histograms): Do not
6302 use NULL for implicitly set arguments.
6303 (gimple_divmod_values_to_profile): Do not use
6304 reserve+quick_push.
6305 (gimple_indirect_call_to_profile): Likewise.
6306 (gimple_find_values_to_profile): Use implicit
6307 function call arguments.
6308 * value-prof.h (gimple_alloc_histogram_value):
6309 Set default values.
6310 (gimple_gen_interval_profiler): Remove last argument.
6311 (gimple_gen_pow2_profiler): Likewise.
6312 (gimple_gen_topn_values_profiler): Likewise.
6313 (gimple_gen_ic_profiler): Likewise.
6314 (gimple_gen_time_profiler): Likewise.
6315 (gimple_gen_average_profiler): Likewise.
6316 (gimple_gen_ior_profiler): Likewise.
6317
6318 2019-08-22 Martin Sebor <msebor@redhat.com>
6319
6320 PR middle-end/91490
6321 * builtins.c (c_strlen): Rename argument and introduce new local.
6322 Set no-warning bit on original argument.
6323 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6324 Fold empty and zero constructors into empty strings.
6325 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6326 for missing initializers.
6327 * tree.c (build_string_literal): Handle optional argument.
6328 * tree.h (build_string_literal): Add defaulted argument.
6329 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6330 no-warning bit on original expression.
6331
6332 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6333
6334 PR target/91481
6335 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6336 and UNSPEC_DARN_RAW.
6337 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6338 UNSPECV_DARN_RAW.
6339 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6340 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6341 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6342
6343 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6344
6345 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6346 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6347 * config/rs6000/rs6000.md (unspec): ... here.
6348 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6349 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6350 cmpeqb, *cmpeqb_internal): Delete, move to...
6351 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6352 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6353 cmpeqb, *cmpeqb_internal): ... here.
6354
6355 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6356
6357 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6358 intrinsics if __ARM_FP.
6359 Use __ARM_FEATURE_CRC32 ifdef guard.
6360
6361 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6362
6363 * config/arm/arm.md (neon_for_64bits): Remove.
6364 (avoid_neon_for_64bits): Remove.
6365 (arm_adddi3): Always split early.
6366 (arm_subdi3): Always split early.
6367 (negdi2): Remove Neon expansion.
6368 (split zero_extend): Split before reload.
6369 (split sign_extend): Split before reload.
6370
6371 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6372
6373 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6374 (qhs_extenddi_cstr): Likewise.
6375 * config/arm/arm.md (ashldi3): Always expand early.
6376 (ashlsi3): Likewise.
6377 (ashrsi3): Likewise.
6378 (zero_extend<mode>di2): Remove Neon variants.
6379 (extend<mode>di2): Likewise.
6380 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6381 (signed_shift_di3_neon): Likewise.
6382 (unsigned_shift_di3_neon): Likewise.
6383 (ashrdi3_neon_imm_noclobber): Likewise.
6384 (lshrdi3_neon_imm_noclobber): Likewise.
6385 (<shift>di3_neon): Likewise.
6386 (split extend): Remove DI extend split patterns.
6387
6388 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6389
6390 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6391 (split not): Add DImode not splitter.
6392 (anddi3): Remove pattern.
6393 (anddi3_insn): Likewise.
6394 (anddi_zesidi_di): Likewise.
6395 (anddi_sesdi_di): Likewise.
6396 (anddi_notdi_di): Likewise.
6397 (anddi_notzesidi_di): Likewise.
6398 (anddi_notsesidi_di): Likewise.
6399 (iordi3): Likewise.
6400 (iordi3_insn): Likewise.
6401 (iordi_zesidi_di): Likewise.
6402 (iordi_sesidi_di): Likewise.
6403 (xordi3): Likewise.
6404 (xordi3_insn): Likewise.
6405 (xordi_sesidi_di): Likewise.
6406 (xordi_zesidi_di): Likewise.
6407 (one_cmpldi2): Likewise.
6408 (one_cmpldi2_insn): Likewise.
6409 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6410 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6411 alternative.
6412 (iwmmxt_xordi3): Likewise.
6413 (iwmmxt_anddi3): Likewise.
6414 * config/arm/neon.md (orndi3_neon): Remove pattern.
6415 (anddi_notdi_di): Likewise.
6416 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6417 (arm_iordi_operand_neon): Likewise.
6418 (arm_xordi_operand_neon): Likewise.
6419 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6420 (iordi_notzesidi_di): Likewise.
6421 (iordi_notdi_zesidi): Likewise.
6422 (iordi_notsesidi_di): Likewise.
6423
6424 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6425
6426 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6427 insn.
6428 (iorsi3_compare0_scratch): Likewise.
6429
6430 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6431
6432 * config/aarch64/aarch64-simd-builtins.def:
6433 (ld1x4): New.
6434 (st1x4): Likewise.
6435 * config/aarch64/aarch64-simd.md:
6436 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6437 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6438 (aarch64_ld1_x4_<mode>): Likewise.
6439 (aarch64_st1_x4_<mode>): Likewise.
6440 * config/aarch64/arm_neon.h:
6441 (vld1_s8_x4): New function.
6442 (vld1q_s8_x4): Likewise.
6443 (vld1_s16_x4): Likewise.
6444 (vld1q_s16_x4): Likewise.
6445 (vld1_s32_x4): Likewise.
6446 (vld1q_s32_x4): Likewise.
6447 (vld1_u8_x4): Likewise.
6448 (vld1q_u8_x4): Likewise.
6449 (vld1_u16_x4): Likewise.
6450 (vld1q_u16_x4): Likewise.
6451 (vld1_u32_x4): Likewise.
6452 (vld1q_u32_x4): Likewise.
6453 (vld1_f16_x4): Likewise.
6454 (vld1q_f16_x4): Likewise.
6455 (vld1_f32_x4): Likewise.
6456 (vld1q_f32_x4): Likewise.
6457 (vld1_p8_x4): Likewise.
6458 (vld1q_p8_x4): Likewise.
6459 (vld1_p16_x4): Likewise.
6460 (vld1q_p16_x4): Likewise.
6461 (vld1_s64_x4): Likewise.
6462 (vld1_u64_x4): Likewise.
6463 (vld1_p64_x4): Likewise.
6464 (vld1q_s64_x4): Likewise.
6465 (vld1q_u64_x4): Likewise.
6466 (vld1q_p64_x4): Likewise.
6467 (vld1_f64_x4): Likewise.
6468 (vld1q_f64_x4): Likewise.
6469 (vst1_s8_x4): Likewise.
6470 (vst1q_s8_x4): Likewise.
6471 (vst1_s16_x4): Likewise.
6472 (vst1q_s16_x4): Likewise.
6473 (vst1_s32_x4): Likewise.
6474 (vst1q_s32_x4): Likewise.
6475 (vst1_u8_x4): Likewise.
6476 (vst1q_u8_x4): Likewise.
6477 (vst1_u16_x4): Likewise.
6478 (vst1q_u16_x4): Likewise.
6479 (vst1_u32_x4): Likewise.
6480 (vst1q_u32_x4): Likewise.
6481 (vst1_f16_x4): Likewise.
6482 (vst1q_f16_x4): Likewise.
6483 (vst1_f32_x4): Likewise.
6484 (vst1q_f32_x4): Likewise.
6485 (vst1_p8_x4): Likewise.
6486 (vst1q_p8_x4): Likewise.
6487 (vst1_p16_x4): Likewise.
6488 (vst1q_p16_x4): Likewise.
6489 (vst1_s64_x4): Likewise.
6490 (vst1_u64_x4): Likewise.
6491 (vst1_p64_x4): Likewise.
6492 (vst1q_s64_x4): Likewise.
6493 (vst1q_u64_x4): Likewise.
6494 (vst1q_p64_x4): Likewise.
6495 (vst1_f64_x4): Likewise.
6496 (vst1q_f64_x4): Likewise.
6497
6498 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6499
6500 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6501
6502 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6503 Richard Sandiford <richard.sandiford@arm.com>
6504
6505 PR target/88839
6506 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6507 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6508
6509 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6510
6511 PR target/90724
6512 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6513 in reg if it fails aarch64_plus_operand predicate.
6514
6515 2019-08-21 Richard Biener <rguenther@suse.de>
6516
6517 PR tree-optimization/91482
6518 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6519 BUILT_IN_ASSUME_ALIGNED calls.
6520
6521 2019-08-21 Richard Biener <rguenther@suse.de>
6522
6523 PR target/91498
6524 PR target/91503
6525 * config/i386/i386-features.c
6526 (general_scalar_chain::make_vector_copies): Copy stack temporary
6527 rtx when using it multiple times.
6528 (general_scalar_chain::convert_reg): Likewise.
6529
6530 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6531
6532 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6533
6534 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6535
6536 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6537 catch more redundant zero initialization cases.
6538 (dse_dom_walker::dse_optimize_stmt): Likewise.
6539
6540 2019-08-20 Richard Biener <rguenther@suse.de>
6541
6542 PR lto/91307
6543 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6544 by collect2 when targetm.have_ctors_dtors which avoids dragging
6545 in temporary filenames from LTO input objects.
6546
6547 2019-08-20 Richard Biener <rguenther@suse.de>
6548
6549 PR tree-optimization/37242
6550 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6551 to (T)a + (T)b if we know that a + b does not overflow.
6552
6553 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6554
6555 PR rtl-optimization/91347
6556 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6557 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6558
6559 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6560
6561 * calls.h (function_arg_info): Add a pass_by_reference field,
6562 defaulting to false.
6563 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6564 when applying pass-by-reference semantics.
6565 (initialize_argument_information): Likewise.
6566 (emit_library_call_value_1): Likewise.
6567 * function.c (assign_parm_data_one): Remove passed_pointer field.
6568 (assign_parm_find_data_types): Don't set it.
6569 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6570 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6571 arg.pass_by_reference instead of passed_pointer.
6572
6573 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6574
6575 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6576 into a single function_arg_info, updating its fields when we
6577 apply pass-by-reference and promotion semantics. Use the
6578 function_arg_info to track the mode rather than keeping it in
6579 a separate local variable.
6580 (initialize_argument_information): Likewise. Base the final
6581 arg_to_skip on this new function_arg_info rather than creating
6582 a new one from scratch.
6583
6584 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6585
6586 * function.c (assign_parm_data_one): Replace passed_type,
6587 promoted_mode and named_arg with a function_arg_info field.
6588 (assign_parm_find_data_types): Remove local variables and
6589 assign directly to "data". Make data->passed_mode shadow
6590 data->arg.mode until promotion, then assign the promoted
6591 mode to data->arg.mode.
6592 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6593 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6594 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6595 (assign_parm_setup_block, assign_parm_setup_reg)
6596 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6597 arg.mode instead of promoted_mode, arg.type instead of passed_type
6598 and arg.named instead of named_arg. Use data->arg for
6599 function_arg_info structures that had the field values passed_type,
6600 promoted_mode and named_arg. Base other function_arg_infos on
6601 data->arg, changing the necessary properties.
6602
6603 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6604
6605 * calls.h (apply_pass_by_reference_rules): Declare.
6606 * calls.c (apply_pass_by_reference_rules): New function.
6607 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6608 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6609 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6610 * function.c (assign_parm_find_data_types): Likewise.
6611 * var-tracking.c (prepare_call_arguments): Likewise.
6612
6613 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6614
6615 * target.def (must_pass_in_stack): Take a function_arg_info instead
6616 of a mode and a type.
6617 * doc/tm.texi: Regenerate.
6618 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6619 instead of a mode and a type.
6620 (must_pass_in_stack_var_size_or_pad): Likewise.
6621 * calls.c (must_pass_in_stack_var_size): Likewise.
6622 (must_pass_in_stack_var_size_or_pad): Likewise.
6623 (initialize_argument_information): Update call to
6624 targetm.calls.must_pass_in_stack.
6625 (must_pass_va_arg_on_stack): Likewise.
6626 * function.c (assign_parm_find_entry_rtl): Likewise.
6627 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6628 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6629 (alpha_function_arg_advance): Likewise.
6630 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6631 (cr16_function_arg_advance): Likewise.
6632 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6633 (cris_arg_partial_bytes): Likewise.
6634 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6635 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6636 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6637 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6638 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6639 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6640 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6641 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6642 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6643 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6644 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6645 instead of a mode and a type.
6646 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6647 (fr30_num_arg_regs): Likewise.
6648 (fr30_setup_incoming_varargs): Update calls accordingly.
6649 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6650 (fr30_function_arg_advance): Likewise.
6651 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6652 instead of a mode and a type.
6653 * config/gcn/gcn.c (num_arg_regs): Likewise.
6654 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6655 num_arg_regs and targetm.calls.must_pass_in_stack.
6656 (gcn_arg_partial_bytes): Likewise.
6657 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6658 function_arg_info instead of a mode and a type.
6659 (classify_argument): Update call accordingly.
6660 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6661 function_arg_info instead of a mode and a type.
6662 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6663 Likewise.
6664 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6665 (rs6000_parm_needs_stack): Update call accordingly.
6666 (setup_incoming_varargs): Likewise.
6667
6668 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6669
6670 * target.def (callee_copies): Take a function_arg_info instead
6671 of a mode, type and named flag.
6672 * doc/tm.texi: Regenerate.
6673 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6674 instead of a mode, type and named flag.
6675 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6676 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6677 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6678 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6679 instead of a mode, type and named flag.
6680 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6681 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6682 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6683 * calls.h (reference_callee_copied): Take a function_arg_info
6684 instead of a mode, type and named flag.
6685 * calls.c (reference_callee_copied): Likewise.
6686 (initialize_argument_information): Update call accordingly.
6687 (emit_library_call_value_1): Likewise.
6688 * function.c (gimplify_parameters): Likewise.
6689 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6690 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6691 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6692 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6693 (TARGET_CALLEE_COPIES): Define to
6694 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6695 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6696 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6697 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6698 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6699 instead of a mode, type and named flag.
6700 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6701 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6702 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6703 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6704 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6705 (TARGET_CALLEE_COPIES): Define to
6706 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6707 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6708 instead of a mode, type and named flag.
6709 * config/sh/sh.c (sh_callee_copies): Likewise.
6710 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6711 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6712 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6713
6714 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6715
6716 * target.def (function_arg_advance): Take a function_arg_info instead
6717 of a mode, type and named flag.
6718 * doc/tm.texi: Regenerate.
6719 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6720 instead of a mode, type and named flag.
6721 * targhooks.c (default_function_arg_advance): Likewise.
6722 * calls.c (initialize_argument_information): Update call to
6723 targetm.calls.function_arg_advance.
6724 (emit_library_call_value_1): Likewise.
6725 * dse.c (get_call_args): Likewise.
6726 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6727 * function.c (assign_parms, gimplify_parameters): Likewise.
6728 * var-tracking.c (prepare_call_arguments): Likewise.
6729 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6730 function_arg_info instead of a mode, type and named flag.
6731 (aarch64_setup_incoming_varargs): Update call accordingly.
6732 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6733 function_arg_info instead of a mode, type and named flag.
6734 (alpha_setup_incoming_varargs): Update call accordingly.
6735 * config/arc/arc.c (arc_function_arg_advance): Take a
6736 function_arg_info instead of a mode, type and named flag.
6737 (arc_setup_incoming_varargs): Update call accordingly.
6738 * config/arm/arm.c (arm_function_arg_advance): Take a
6739 function_arg_info instead of a mode, type and named flag.
6740 (cmse_func_args_or_return_in_stack): Update call accordingly.
6741 (arm_function_ok_for_sibcall): Likewise.
6742 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6743 * config/avr/avr.c (avr_function_arg_advance): Take a
6744 function_arg_info instead of a mode, type and named flag.
6745 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6746 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6747 (c6x_call_saved_register_used): Update call accordingly.
6748 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6749 function_arg_info instead of a mode, type and named flag.
6750 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6751 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6752 (csky_setup_incoming_varargs): Update call accordingly.
6753 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6754 function_arg_info instead of a mode, type and named flag.
6755 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6756 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6757 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6758 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6759 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6760 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6761 (ix86_setup_incoming_varargs): Update call accordingly.
6762 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6763 function_arg_info instead of a mode, type and named flag.
6764 (ia64_setup_incoming_varargs): Update call accordingly.
6765 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6766 function_arg_info instead of a mode, type and named flag.
6767 (iq2000_expand_prologue): Update call accordingly.
6768 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6769 function_arg_info instead of a mode, type and named flag.
6770 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6771 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6772 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6773 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6774 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6775 Likewise.
6776 (microblaze_expand_prologue): Update call accordingly.
6777 * config/mips/mips.c (mips_function_arg_advance): Take a
6778 function_arg_info instead of a mode, type and named flag.
6779 (mips_setup_incoming_varargs): Update call accordingly.
6780 (mips_output_args_xfer): Likewise.
6781 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6782 function_arg_info instead of a mode, type and named flag.
6783 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6784 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6785 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6786 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6787 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6788 (nios2_setup_incoming_varargs): Update call accordingly.
6789 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6790 function_arg_info instead of a mode, type and named flag.
6791 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6792 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6793 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6794 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6795 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6796 (riscv_setup_incoming_varargs): Update call accordingly.
6797 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6798 function_arg_info instead of a mode, type and named flag.
6799 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6800 Likewise.
6801 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6802 (rs6000_parm_needs_stack): Update call accordingly.
6803 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6804 instead of a mode, type and named flag.
6805 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6806 (s390_call_saved_register_used): Update call accordingly.
6807 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6808 instead of a mode, type and named flag.
6809 (sh_output_mi_thunk): Update call accordingly.
6810 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6811 function_arg_info instead of a mode, type and named flag.
6812 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6813 (spu_setup_incoming_varargs): Update call accordingly.
6814 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6815 function_arg_info instead of a mode, type and named flag.
6816 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6817 (tilegx_setup_incoming_varargs): Update call accordingly.
6818 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6819 function_arg_info instead of a mode, type and named flag.
6820 (tilegx_setup_incoming_varargs): Update call accordingly.
6821 * config/v850/v850.c (v850_function_arg_advance): Take a
6822 function_arg_info instead of a mode, type and named flag.
6823 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6824 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6825 (visium_setup_incoming_varargs): Update call accordingly.
6826 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6827 function_arg_info instead of a mode, type and named flag.
6828
6829 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6830
6831 * target.def (function_arg, function_incoming_arg): Take a
6832 function_arg_info instead of a mode, tree and named flag.
6833 * doc/tm.texi: Regenerate.
6834 * targhooks.h (default_function_arg): Take a function_arg_info
6835 instead of a mode, tree and named flag.
6836 (default_function_incoming_arg): Likewise.
6837 * targhooks.c (default_function_arg): Likewise.
6838 (default_function_incoming_arg): Likewise.
6839 * calls.h (function_arg_info::end_marker_p): New function.
6840 (function_arg_info::end_marker): Likewise.
6841 * calls.c (prepare_call_address, initialize_argument_information)
6842 (expand_call, emit_library_call_value_1): Update calls to
6843 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6844 * dse.c: Include calls.h.
6845 (get_call_args): Update call to targetm.calls.function_arg.
6846 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6847 * var-tracking.c (prepare_call_arguments): Likewise.
6848 * function.c (assign_parm_find_entry_rtl): Update call to
6849 targetm.calls.function_incoming_arg.
6850 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6851 function_arg_info instead of a mode, tree and named flag.
6852 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6853 * config/arc/arc.c (arc_function_arg): Likewise.
6854 * config/arm/arm.c (arm_function_arg): Likewise.
6855 (cmse_func_args_or_return_in_stack): Update call accordingly.
6856 (arm_function_ok_for_sibcall): Likewise.
6857 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6858 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6859 instead of a mode, tree and named flag.
6860 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6861 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6862 (c6x_call_saved_register_used): Update call accordingly.
6863 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6864 instead of a mode, tree and named flag.
6865 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6866 (cris_function_arg_1): Likewise.
6867 * config/csky/csky.c (csky_function_arg): Likewise.
6868 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6869 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6870 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6871 (frv_function_arg_1): Likewise.
6872 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6873 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6874 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6875 * config/i386/i386.c (ix86_function_arg): Likewise.
6876 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6877 (ia64_function_arg_1): Likewise.
6878 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6879 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6880 accordingly.
6881 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6882 instead of a mode, tree and named flag.
6883 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6884 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6885 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6886 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6887 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6888 (microblaze_expand_prologue): Update call accordingly.
6889 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6890 instead of a mode, tree and named flag.
6891 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6892 (mmix_function_arg_1): Likewise.
6893 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6894 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6895 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6896 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6897 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6898 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6899 (nvptx_function_incoming_arg): Likewise.
6900 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6901 * config/pa/pa.c (pa_function_arg): Likewise.
6902 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6903 * config/pru/pru.c (pru_function_arg): Likewise.
6904 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6905 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6906 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6907 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6908 (rs6000_parm_needs_stack): Update call accordingly.
6909 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6910 instead of a mode, tree and named flag.
6911 * config/s390/s390.c (s390_function_arg): Likewise.
6912 (s390_call_saved_register_used): Update call accordingly.
6913 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6914 instead of a mode, tree and named flag.
6915 (sh_output_mi_thunk): Update call accordingly.
6916 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6917 (sparc_function_incoming_arg): Take a function_arg_info instead of
6918 a mode, tree and named flag.
6919 * config/spu/spu.c (spu_function_arg): Likewise.
6920 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6921 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6922 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6923 * config/v850/v850.c (v850_function_arg): Likewise.
6924 * config/vax/vax.c (vax_function_arg): Likewise.
6925 * config/visium/visium.c (visium_function_arg): Likewise.
6926 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6927 (xtensa_function_incoming_arg): Likewise.
6928
6929 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6930
6931 * target.def (setup_incoming_varargs): Take a function_arg_info
6932 instead of a mode and tree.
6933 * doc/tm.texi: Regenerate.
6934 * targhooks.h (default_setup_incoming_varargs): Take a
6935 function_arg_info instead of a mode and tree.
6936 * targhooks.c (default_setup_incoming_varargs): Likewise.
6937 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6938 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6939 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6940 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6941 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6942 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6943 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6944 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6945 Likewise.
6946 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6947 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6948 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6949 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6950 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6951 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6952 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6953 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6954 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6955 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6956 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6957 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6958 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6959 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6960 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6961 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6962 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6963 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6964 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6965 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6966 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6967 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6968 * function.c (assign_parms_setup_varargs): Update call to
6969 targetm.calls.setup_incoming_varargs.
6970
6971 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6972
6973 * target.def (pass_by_reference): Take a function_arg_info instead
6974 of a mode, type and named flag.
6975 * doc/tm.texi: Regenerate.
6976 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6977 accordingly.
6978 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6979 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6980 function_arg_info instead of a mode, type and named flag.
6981 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6982 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6983 mode, type and named flag.
6984 * calls.c (pass_by_reference): Likewise.
6985 (pass_va_arg_by_reference): Update call accordingly.
6986 (initialize_argument_information): Likewise.
6987 (emit_library_call_value_1): Likewise.
6988 * function.c (assign_parm_find_data_types): Likewise.
6989 * var-tracking.c (prepare_call_arguments): Likewise.
6990 * stor-layout.c: Include calls.h.
6991 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6992 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6993 function_arg_info instead of a mode, type and named flag.
6994 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6995 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6996 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6997 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6998 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6999 (c6x_call_saved_register_used): Update call to pass_by_reference.
7000 * config/cris/cris.c (cris_pass_by_reference): Take a
7001 function_arg_info instead of a mode, type and named flag.
7002 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
7003 function_arg_info instead of a mode, type and named flag.
7004 (epiphany_arg_partial_bytes): Update call accordingly.
7005 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
7006 function_arg_info instead of a mode, type and named flag.
7007 (ft32_arg_partial_bytes): Update call accordingly.
7008 * config/i386/i386.c (ix86_pass_by_reference): Take a
7009 function_arg_info instead of a mode, type and named flag.
7010 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7011 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
7012 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
7013 (m32r_return_in_memory): Update call accordingly.
7014 * config/mips/mips.c (mips_pass_by_reference): Take a
7015 function_arg_info instead of a mode, type and named flag.
7016 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
7017 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7018 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
7019 (moxie_arg_partial_bytes): Update call accordingly.
7020 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
7021 function_arg_info instead of a mode, type and named flag.
7022 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
7023 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
7024 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7025 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
7026 (riscv_return_in_memory): Update call accordingly.
7027 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
7028 function_arg_info instead of a mode, type and named flag.
7029 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
7030 (rs6000_parm_needs_stack): Update call to pass_by_reference.
7031 * config/s390/s390.c (s390_pass_by_reference): Take a
7032 function_arg_info instead of a mode, type and named flag.
7033 (s390_call_saved_register_used): Update call accordingly.
7034 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
7035 instead of a mode, type and named flag.
7036 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
7037 * config/spu/spu.c (spu_pass_by_reference): Likewise.
7038 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
7039 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
7040 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7041 * config/visium/visium.c (visium_pass_by_reference): Likewise.
7042
7043 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7044
7045 * target.def (arg_partial_bytes): Take a function_arg_info instead
7046 of a mode, type and named flag.
7047 * doc/tm.texi: Regenerate.
7048 * target.h (function_arg_info): Declare.
7049 * calls.h (function_arg_info): New class.
7050 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7051 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
7052 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7053 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
7054 * calls.c (initialize_argument_information): Update call to
7055 targetm.calls.partial_bytes.
7056 (emit_library_call_value_1): Likewise.
7057 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7058 * function.c (assign_parm_find_entry_rtl): Likewise.
7059 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
7060 function_arg_info instead of a mode, type and named flag.
7061 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
7062 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7063 (cmse_func_args_or_return_in_stack): Update accordingly.
7064 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7065 function_arg_info instead of a mode, type and named flag.
7066 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7067 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7068 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7069 * config/fr30/fr30.c: Include calls.h.
7070 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7071 type and named flag.
7072 * config/frv/frv.c: Include calls.h.
7073 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7074 type and named flag.
7075 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7076 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7077 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7078 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7079 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7080 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7081 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7082 Likewise.
7083 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7084 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7085 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7086 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7087 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7088 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7089 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7090 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7091 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7092 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7093 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7094 (rs6000_parm_needs_stack): Update call accordingly.
7095 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7096 function_arg_info instead of a mode, type and named flag.
7097 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7098 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7099
7100 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7101
7102 * calls.h (must_pass_va_arg_in_stack): Declare.
7103 * calls.c (must_pass_va_arg_in_stack): New function.
7104 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7105 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7106 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7107 Likewise.
7108 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7109
7110 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7111
7112 * calls.h (pass_va_arg_by_reference): Declare.
7113 * calls.c (pass_va_arg_by_reference): New function.
7114 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7115 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7116 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7117 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7118 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7119 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7120 (mips_gimplify_va_arg_expr): Likewise.
7121 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7122 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7123 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7124 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7125 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7126 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7127 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7128 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7129 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7130 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7131 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7132
7133 2019-08-20 Richard Biener <rguenther@suse.de>
7134
7135 PR target/91498
7136 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7137 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7138 (convert_scalars_to_vector): Add timode_p parameter and use it
7139 to guard TImode-only operation.
7140 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7141 (pass_stv::execute): Pass down timode_p.
7142
7143 2019-08-20 Lili Cui <lili.cui@intel.com>
7144
7145 * common/config/i386/i386-common.c
7146 (processor_names): Add tigerlake and cooperlake.
7147 (processor_alias_table): Add tigerlake and cooperlake.
7148 * config.gcc: Add -march=tigerlake and cooperlake.
7149 * config/i386/driver-i386.c
7150 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7151 Add "has_avx" to classify processor.
7152 * config/i386/i386-builtins.c (processor_model) :
7153 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7154 (arch_names_table): Add tigerlake and cooperlake.
7155 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7156 and PROCESSOR_COOPERLAKE.
7157 * config/i386/i386-c.c
7158 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7159 * config/i386/i386-options.c
7160 (m_TIGERLAKE) : Define.
7161 (m_COOPERLAKE) : Ditto.
7162 (m_CORE_AVX512): Ditto.
7163 (processor_cost_table): Add cascadelake.
7164 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7165 * config/i386/i386.h
7166 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7167 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7168 (PTA_MOVDIRI): Ditto.
7169 (PTA_MOVDIR64B): Ditto.
7170 (PTA_COOPERLAKE) : Ditto.
7171 (PTA_TIGERLAKE) : Ditto.
7172 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7173 * doc/extend.texi: Add tigerlake and cooperlake.
7174 * doc/invoke.texi: Add tigerlake and cooperlake.
7175
7176 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7177
7178 * doc/install.texi (Specific, alpha): Remove note to use
7179 binutils 2.11.2 or later.
7180
7181 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7182
7183 PR middle-end/89544
7184 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7185 when possible.
7186
7187 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7188
7189 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7190 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7191 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7192 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7193 * config/aarch64/constraints.md (Dt): New constraint
7194 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7195
7196 2019-08-19 Richard Biener <rguenther@suse.de>
7197
7198 PR tree-optimization/91403
7199 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7200 cases we can handle with tail-recursion...
7201 (follow_ssa_edge_expr): ... here. Do so.
7202
7203 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7204
7205 PR target/91441
7206 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7207 implemented for -fsanitize=kernel-address, and merge check logic
7208 with -fsanitize=address.
7209
7210 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7211
7212 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7213 for cpu and machine. Factor 64/32b builtins.
7214
7215 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7216
7217 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7218 gone, point to sourceforge.net.
7219
7220 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7221
7222 * doc/ux.texi (User Experience Guidelines): Update reference.
7223
7224 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7225
7226 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7227 not LGPL".
7228
7229 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7230
7231 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7232 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7233
7234 2019-08-16 Martin Sebor <msebor@redhat.com>
7235
7236 * tree.def (TYPE_SIZE): Clarify.
7237 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7238
7239 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7240
7241 PR tree-optimization/91109
7242 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7243 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7244 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7245
7246 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7247
7248 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7249 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7250 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7251 (uavg<mode>3_ceil): New expander.
7252 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7253 mode iterator when creating CONST1_RTX.
7254 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7255 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7256 mode iterator for const1_operand predicate.
7257
7258 2019-08-16 Richard Biener <rguenther@suse.de>
7259
7260 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7261 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7262 follow_ssa_edge.
7263 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7264 (analyze_evolution_in_loop): Likewise.
7265 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7266 (follow_ssa_edge_expr): ... here. Refactor code.
7267
7268 2019-08-16 Richard Biener <rguenther@suse.de>
7269
7270 PR target/91469
7271 * config/i386/i386-features.c
7272 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7273
7274 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7275
7276 PR other/91255
7277 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7278 only if subst_name matches curr_attr string.
7279
7280 2019-08-16 Richard Biener <rguenther@suse.de>
7281
7282 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7283 stmt at gsi_p, instead replace it with a NOP removed later.
7284 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7285 that became dead because of that.
7286
7287 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7288
7289 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7290 for which we can't represent a range.
7291 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7292 set_varying.
7293 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7294 Set VR_UNDEFINED if type is not supported.
7295 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7296 * tree-vrp.c (value_range_base::check): Assert that a varying has
7297 min/max set.
7298 (value_range_base::equal_p): Early bail for undefines.
7299 (value_range_base::set_varying): Accept a type.
7300 (value_range::set_varying): Same.
7301 (value_range_base::type): VARYING can have a type, while UNDEFINE
7302 is typeless.
7303 (value_range_base::dump): Print type for VARYING nodes.
7304 (value_range_base::set): Add type to VARYING.
7305 (extract_range_from_multiplicative_op): Pass type to set_varying.
7306 (extract_range_from_binary_expr): Same.
7307 (value_range_base::intersect_helper): Same.
7308 (value_range_base::union_helper): Same.
7309 (value_range_base::normalize_symbolics): Same.
7310 (determine_value_range_1): Same.
7311 * tree-vrp.h (class value_range_base): Add type to set_varying.
7312 Add prototype for dump(void).
7313 Add prototype for supports_type_p.
7314 (class value_range): Add type to set_varying.
7315 Add prototype for dump(void).
7316 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7317 set_varying.
7318 (vr_values::get_lattice_entry): Set varying even if propagation
7319 finished.
7320 Pass type to set_varying.
7321 (vr_values::get_value_range): Remove vr_const_varying.
7322 Reallocate the lattice if needed.
7323 (vr_values::update_value_range): Pass type to set_varying.
7324 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7325 (vr_values::extract_range_from_binary_expr): Same.
7326 (vr_values::extract_range_from_unary_expr): Same.
7327 (vr_values::extract_range_from_cond_expr): Same.
7328 (vr_values::check_for_binary_op_overflow): Same.
7329 (vr_values::extract_range_basic): Same.
7330 (vr_values::extract_range_from_assignment): Same.
7331 (vr_values::vr_values): Increase size of num_vr_values.
7332 (vr_values::extract_range_from_phi_node): Pass type to
7333 set_varying.
7334
7335 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7336
7337 PR target/90878
7338 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7339 for costs of hard register moves.
7340 (ix86_register_move_cost): Likewise.
7341 * config/i386/i386.h (processor_costs): Move costs of hard
7342 register moves to hard_register. Add int_load, int_store,
7343 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7344 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7345 for costs of RTL expressions.
7346 * config/i386/x86-tune-costs.h: Move costs of hard register
7347 moves to hard_register. Duplicate int_load, int_store,
7348 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7349 sse_load, sse_store for costs of RTL expressions.
7350
7351 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7352
7353 * target.def (setup_incoming_vararg_bounds): Remove.
7354 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7355 * doc/tm.texi: Regenerate.
7356 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7357 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7358 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7359 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7360
7361 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7362
7363 MSP430: Fix lines over 80 characters long in
7364 config/msp430/*.{c,h} files
7365
7366 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7367 specifier in string.
7368 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7369 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7370 redundant old comment.
7371 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7372 Split line more than 80 characters long.
7373 * config/msp430/msp430.c (msp430_option_override): Likewise.
7374 (msp430_return_in_memory): Likewise.
7375 (msp430_gimplify_va_arg_expr): Likewise.
7376 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7377 (msp430_legitimate_constant): Likewise.
7378 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7379 (msp430_attr): Likewise.
7380 (msp430_data_attr): Likewise.
7381 (msp430_start_function): Likewise.
7382 (gen_prefix): Likewise.
7383 (msp430_init_sections): Likewise.
7384 (msp430_select_section): Likewise.
7385 (msp430_function_section): Likewise.
7386 (msp430_unique_section): Likewise.
7387 (msp430_output_aligned_decl_common): Likewise.
7388 (msp430_do_not_relax_short_jumps): Likewise.
7389 (msp430_init_builtins): Likewise.
7390 (msp430_expand_delay_cycles): Likewise.
7391 (msp430_expand_prologue): Likewise.
7392 (msp430_expand_epilogue): Likewise.
7393 (msp430_expand_helper): Likewise.
7394 (msp430_split_movsi): Likewise.
7395 (msp430_print_operand): Likewise.
7396 (msp430_return_addr_rtx): Likewise.
7397 (msp430x_extendhisi): Likewise.
7398 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7399 (ASM_SPEC): Likewise.
7400 Remove very obvious comments.
7401 (LIB_SPEC): Split line more than 80 characters long.
7402 (EH_RETURN_HANDLER_RTX): Likewise.
7403 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7404
7405 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7406
7407 MSP430: Fix whitespace errors and incorrect indentation in
7408 config/msp430/*.{c,h} files
7409
7410 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7411 (msp430_select_hwmult_lib): Likewise.
7412 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7413 (msp430_extract_mcu_data): Likewise.
7414 (struct t_msp430_mcu_data): Likewise.
7415 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7416 before left square bracket.
7417 (msp430_option_override): Fix indentation.
7418 (msp430_hard_regno_nregs_with_padding): Likewise.
7419 (msp430_initial_elimination_offset): Likewise.
7420 (msp430_special_register_convention_p): Remove whitespace before left
7421 square bracket and after exclamation mark.
7422 (msp430_evaluate_arg): Likewise.
7423 (msp430_callee_copies): Fix indentation.
7424 (msp430_gimplify_va_arg_expr): Likewise.
7425 (msp430_function_arg_advance): Remove whitespace before left square
7426 bracket.
7427 (reg_ok_for_addr): Likewise.
7428 (msp430_preserve_reg_p): Likewise.
7429 (msp430_compute_frame_info): Likewise.
7430 (msp430_asm_output_addr_const_extra): Add space between function name
7431 and open parenthesis.
7432 (has_section_name): Fix indentation.
7433 (msp430_attr): Remove trailing whitespace.
7434 (msp430_section_attr): Likewise.
7435 (msp430_data_attr): Likewise.
7436 (struct msp430_attribute_table): Fix comment and whitespace.
7437 (msp430_start_function): Remove whitespace before left square bracket.
7438 Add space between function name and open parenthesis.
7439 (msp430_select_section): Remove trailing whitespace.
7440 (msp430_section_type_flags): Remove trailing whitespace.
7441 (msp430_unique_section): Remove space before closing parenthesis.
7442 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7443 (msp430_builtins): Remove whitespace before left square bracket.
7444 (msp430_init_builtins): Fix indentation.
7445 (msp430_expand_prologue): Remove whitespace before left square bracket.
7446 Remove space before closing parenthesis.
7447 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7448 (msp430_split_movsi): Remove space before closing parenthesis.
7449 (helper_function_name_mappings): Fix indentation.
7450 (msp430_use_f5_series_hwmult): Fix whitespace.
7451 (use_32bit_hwmult): Likewise.
7452 (msp430_no_hwmult): Likewise.
7453 (msp430_output_labelref): Remove whitespace before left square bracket.
7454 (msp430_print_operand_raw): Likewise.
7455 (msp430_print_operand_addr): Likewise.
7456 (msp430_print_operand): Add two spaces after '.' in comment.
7457 Fix trailing whitespace.
7458 (msp430x_extendhisi): Fix indentation.
7459 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7460 tab.
7461 (PC_REGNUM): Likewise.
7462 (STACK_POINTER_REGNUM): Likewise.
7463 (CC_REGNUM): Likewise.
7464
7465 2019-08-15 Richard Biener <rguenther@suse.de>
7466
7467 PR target/91454
7468 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7469 helper.
7470 (general_scalar_chain::make_vector_copies): Use it.
7471
7472 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7473
7474 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7475
7476 2019-08-15 Martin Liska <mliska@suse.cz>
7477
7478 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7479 operators with no arguments.
7480 (eliminate_unnecessary_stmts): Likewise here.
7481
7482 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7483
7484 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7485 <case COMPARE>: Revert 2019-08-14 change.
7486 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7487 for (TARGET_64BIT || mode != DImode).
7488
7489 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7490
7491 * tree-vrp.c (value_range_base::set): Merge in code from
7492 value_range_base::set_and_canonicalize.
7493 Enforce canonicalization at set time.
7494 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7495 (value_range_base::set_undefined): Inline call to set().
7496 (value_range_base::set_varying): Same.
7497 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7498 (vrp_val_max): New argument handle_pointers.
7499 (vrp_val_min): Same.
7500 (ranges_from_anti_range): Same.
7501 (extract_range_into_wide_ints): Use tree argument instead of sign
7502 and precision.
7503 (extract_range_from_multiplicative_op): Take in tree type instead
7504 of precision and sign. Adapt function for canonicalized ranges.
7505 (extract_range_from_binary_expr): Pass type to
7506 extract_range_from_multiplicative_op.
7507 Adapt for canonicalized ranges.
7508 (extract_range_from_unary_expr): Same.
7509 (value_range_base::intersect_helper): Adjust for canonicalized
7510 ranges.
7511 (value_range_base::union_helper): Same.
7512 (value_range_base::normalize_symbolics): New.
7513 * tree-vrp.h (class value_range_base): Remove
7514 set_and_canonicalize.
7515 New prototype for normalize_symbolics.
7516 (class value_range): Remove set_and_canonicalize.
7517 (vrp_val_min): Adjust prototype.
7518 (vrp_val_max): Same.
7519 * vr-values.c
7520 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7521 instead of set_and_canonicalize.
7522
7523 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7524
7525 PR middle-end/91444
7526 * tree-vect-stmts.c (vectorizable_call): Check that the function
7527 is a BUILT_IN_MD function before passing it to
7528 targetm.vectorize.builtin_md_vectorized_function.
7529
7530 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7531
7532 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7533 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7534 (aarch64_select_early_remat_modes): Use it.
7535
7536 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7537
7538 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7539 16 for SVE predicates even if they are fixed-length.
7540
7541 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7542
7543 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7544 operand order match the MOV /Z alias.
7545
7546 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7547
7548 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7549 the vector pattern as an aarch64_svpattern argument. Update the
7550 overloaded caller accordingly.
7551 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7552 (aarch64_output_sve_vector_inc_dec): Likewise.
7553
7554 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7555
7556 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7557 multiplication case, try to compute VG * (lowest set bit) directly
7558 rather than always basing the multiplication on VG. Use
7559 expand_mult for the multiplication if we can.
7560
7561 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7562
7563 * config/aarch64/aarch64-protos.h
7564 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7565 (aarch64_sve_inc_dec_immediate_p): Rename to...
7566 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7567 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7568 (aarch64_output_sve_scalar_inc_dec): Declare.
7569 (aarch64_output_sve_inc_dec_immediate): Rename to...
7570 (aarch64_output_sve_vector_inc_dec): ...this.
7571 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7572 (aarch64_output_sve_scalar_inc_dec): New functions.
7573 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7574 arguments. Only handle true ADDVL and ADDPL instructions;
7575 don't emit an INC or DEC.
7576 (aarch64_sve_inc_dec_immediate_p): Rename to...
7577 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7578 (aarch64_output_sve_inc_dec_immediate): Rename to...
7579 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7580 aarch64_sve_vector_inc_dec_immediate_p.
7581 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7582 (aarch64_sve_plus_immediate): New predicates.
7583 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7584 rather than aarch64_sve_addvl_addpl_immediate.
7585 (aarch64_sve_inc_dec_immediate): Rename to...
7586 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7587 aarch64_sve_vector_inc_dec_immediate_p.
7588 (aarch64_sve_add_operand): Update accordingly.
7589 * config/aarch64/constraints.md (Uai): New constraint.
7590 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7591 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7592 operand into a register if it satisfies aarch64_sve_plus_immediate.
7593 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7594 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7595 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7596 aarch64_output_sve_vector_inc_dec instead of
7597 aarch64_output_sve_inc_dec_immediate.
7598
7599 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7600
7601 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7602 (UNSPEC_REVW): New constants.
7603 (elem_bits): New mode attribute.
7604 (SVE_INT_UNARY): New int iterator.
7605 (optab): Handle UNSPEC_REV[BHW].
7606 (sve_int_op): New int attribute.
7607 (min_elem_bits): Handle VNx16QI and the predicate modes.
7608 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7609 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7610 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7611 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7612 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7613 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7614 unspecs based on the total width of the reversed data.
7615 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7616 reinterpret followed by a subreg on big-endian targets.
7617
7618 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7619 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7620
7621 * config/aarch64/aarch64-sve.md
7622 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7623 alternatives in which one of the inputs is in the same register
7624 as the output.
7625
7626 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7627
7628 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7629 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7630
7631 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7632
7633 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7634 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7635
7636 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7637 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7638
7639 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7640 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7641 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7642
7643 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7644 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7645
7646 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7647 Add an alternative that uses reversed shifts.
7648
7649 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7650
7651 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7652 struct.
7653
7654 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7655
7656 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7657 a commutativity marker.
7658
7659 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7660 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7661
7662 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7663 (aarch64_prepare_sve_cond_int_fma): Declare.
7664 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7665 (aarch64_prepare_sve_int_fma): New functions.
7666 (aarch64_prepare_sve_cond_int_fma): Likewise.
7667 * config/aarch64/aarch64-sve.md
7668 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7669 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7670 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7671 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7672 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7673 (*madd<mode>): Rename to...
7674 (*fma<mode>4): ...this.
7675 (*msub<mode>): Rename to...
7676 (*fnma<mode>4): ...this.
7677
7678 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7679 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7680
7681 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7682 Print 2.0 naturally.
7683 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7684 * config/aarch64/predicates.md
7685 (aarch64_sve_float_negated_arith_immediate): New predicate,
7686 renamed from aarch64_sve_float_arith_with_sub_immediate.
7687 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7688 positive and negative constants.
7689 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7690 or an aarch64_sve_float_arith_with_sub_immediate.
7691 * config/aarch64/constraints.md (vsN): Use
7692 aarch64_sve_float_negated_arith_immediate.
7693 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7694 iterator.
7695 (sve_pred_fp_rhs2_immediate): New int attribute.
7696 * config/aarch64/aarch64-sve.md
7697 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7698 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7699 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7700 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7701 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7702 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7703
7704 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7705 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7706
7707 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7708 (*aarch64_cond_abd<SVE_F:mode>_3)
7709 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7710
7711 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7712 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7713
7714 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7715 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7716
7717 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7718 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7719
7720 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7721 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7722 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7723 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7724 optabs.
7725 * optabs.h (create_convert_operand_from): Expand comment.
7726 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7727 when mapping scalar rtxes to vector operands.
7728 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7729 ashiftrt and lshiftrt.
7730 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7731 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7732 (*cond_<optab><mode>_any_const): New patterns.
7733
7734 2019-08-15 Martin Liska <mliska@suse.cz>
7735
7736 PR ipa/91438
7737 * cgraph.c (cgraph_node::remove): When setting
7738 n->origin = NULL for all nested functions, reset
7739 also next_nested.
7740
7741 2019-08-15 Martin Liska <mliska@suse.cz>
7742
7743 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7744 and next_nested.
7745
7746 2019-08-15 Martin Liska <mliska@suse.cz>
7747
7748 PR ipa/91404
7749 * passes.c (order): Remove.
7750 (uid_hash_t): Likewise).
7751 (remove_cgraph_node_from_order): Remove from set
7752 of pointers (cgraph_node *).
7753 (insert_cgraph_node_to_order): New.
7754 (duplicate_cgraph_node_to_order): New.
7755 (do_per_function_toporder): Register all 3 cgraph hooks.
7756 Skip removed_nodes now as we know about all of them.
7757
7758 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7759
7760 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7761 <case E_V8QImode>: Use vector_set path for
7762 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7763 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7764 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7765
7766 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7767
7768 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7769
7770 2019-08-14 Martin Sebor <msebor@redhat.com>
7771
7772 PR tree-optimization/91294
7773 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7774 source length as exact.
7775
7776 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7777
7778 * doc/extend.texi: Add "noinit" attribute documentation.
7779 * doc/sourcebuild.texi: Add noinit effective target documentation.
7780 * varasm.c (default_section_type_flags): Add support for "noinit"
7781 section.
7782 (default_elf_select_section): Add support for "noinit" attribute.
7783 * config/msp430/msp430.c (msp430_attribute_table): Remove
7784 "noinit" entry.
7785
7786 2019-08-14 Richard Biener <rguenther@suse.de>
7787 Uroš Bizjak <ubizjak@gmail.com>
7788
7789 PR target/91154
7790 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7791 mode arguments.
7792 (scalar_chain::smode): New member.
7793 (scalar_chain::vmode): Likewise.
7794 (dimode_scalar_chain): Rename to...
7795 (general_scalar_chain): ... this.
7796 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7797 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7798 base with TImode and V1TImode.
7799 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7800 (general_scalar_chain::vector_const_cost): Adjust for SImode
7801 chains.
7802 (general_scalar_chain::compute_convert_gain): Likewise. Add
7803 {S,U}{MIN,MAX} support.
7804 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7805 (general_scalar_chain::make_vector_copies): Likewise. Handle
7806 non-DImode chains appropriately.
7807 (general_scalar_chain::convert_reg): Likewise.
7808 (general_scalar_chain::convert_op): Likewise.
7809 (general_scalar_chain::convert_insn): Likewise. Add
7810 fatal_insn_not_found if the result is not recognized.
7811 (convertible_comparison_p): Pass in the scalar mode and use that.
7812 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7813 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7814 (scalar_to_vector_candidate_p): Remove by inlining into single
7815 caller.
7816 (general_remove_non_convertible_regs): Rename from
7817 dimode_remove_non_convertible_regs.
7818 (remove_non_convertible_regs): Remove by inlining into single caller.
7819 (convert_scalars_to_vector): Handle SImode and DImode chains
7820 in addition to TImode chains.
7821 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7822 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7823 (*<maxmin>di3_doubleword): Likewise.
7824
7825 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7826 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7827
7828 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7829 (*cond_bic<mode>_any): New patterns.
7830
7831 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7832
7833 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7834 take the equivalent mask, as well as a bit count.
7835 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7836 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7837 (aarch64_sve_pred_and_operand): New predicates.
7838 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7839 code attribute.
7840 * config/aarch64/aarch64-sve.md
7841 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7842 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7843
7844 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7845
7846 * config/aarch64/aarch64-sve.md
7847 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7848 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7849 New patterns.
7850
7851 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7852 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7853
7854 * config/aarch64/aarch64-sve.md
7855 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7856 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7857
7858 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7859 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7860
7861 * config/aarch64/aarch64-sve.md
7862 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7863 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7864
7865 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7866
7867 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7868 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7869 New pattern.
7870
7871 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7872 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7873
7874 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7875
7876 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7877 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7878
7879 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7880 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7881 (aarch64_print_operand): Add support for %I.
7882 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7883 Bitcast floating-point constants to the corresponding integer constant.
7884 (aarch64_float_const_representable_p): Handle vectors as well
7885 as scalars.
7886 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7887 for the new vcond_mask_<mode><vpred> expander.
7888 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7889 test aarch64_float_const_representable_p.
7890 (aarch64_sve_reg_or_dup_imm): New predicate.
7891 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7892 gen_vcond_mask_<mode><vpred> instead of
7893 gen_aarch64_sve_dup<mode>_const.
7894 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7895 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7896 for operands 1 and 2 respectively. Force operand 2 into a
7897 register if operand 1 is a register. Fold old define_insn...
7898 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7899 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7900 floating-point constants that can be moved as integers. Add
7901 alternatives for MOV /M and FMOV /M.
7902 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7903 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7904 1 and 2 respectively.
7905 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7906 as scalars.
7907 (vss): New constraint.
7908
7909 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7910
7911 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7912 (aarch64_sve_float_maxmin_operand): New predicates.
7913 * config/aarch64/constraints.md (vsB): New constraint.
7914 (vsM): Fix typo.
7915 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7916 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7917 UNSPEC_COND_FMINNM.
7918 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7919 Use aarch64_sve_float_maxmin_operand for operand 2.
7920 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7921 Add alternatives for the constant forms.
7922
7923 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7924
7925 * config/aarch64/constraints.md (vsb): New constraint.
7926 (vsm): Generalize description.
7927 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7928 iterator.
7929 (sve_imm_con): Handle smax, smin, umax and umin.
7930 (sve_imm_prefix): New code attribute.
7931 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7932 (aarch64_sve_vsb_operand): New predicates.
7933 (aarch64_sve_mul_immediate): Rename to...
7934 (aarch64_sve_vsm_immediate): ...this.
7935 (aarch64_sve_mul_operand): Rename to...
7936 (aarch64_sve_vsm_operand): ...this.
7937 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7938 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7939 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7940 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7941 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7942 add movprfx support for the immediate alternatives.
7943 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7944 of the above.
7945 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7946 for operand 3.
7947
7948 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7949
7950 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7951 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7952 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7953
7954 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7955
7956 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7957 (optab, sve_int_op): Handle them.
7958 * config/aarch64/aarch64-sve.md: Expand comment.
7959
7960 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7961
7962 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7963 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7964 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7965
7966 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7967
7968 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7969 (aarch64_expand_sve_const_pred_trn): New functions.
7970 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7971 use the above functions when the parameter is true.
7972 (aarch64_expand_sve_const_pred): Update call accordingly.
7973 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7974 Rename to...
7975 (@aarch64_sve_<perm_insn><mode>): ...this.
7976
7977 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7978
7979 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7980 Declare.
7981 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7982 (aarch64_sve_emit_int_cmp): New functions.
7983 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7984 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7985 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7986 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7987 (UNSPEC_PRED_Z): New unspec.
7988 (set_clobber_cc_nzc): Delete.
7989 * config/aarch64/aarch64-sve.md: Add a block comment about
7990 UNSPEC_PRED_Z.
7991 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7992 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7993 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7994 UNSPEC_MERGE_PTRUE.
7995 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7996 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7997 check for compatible predicates.
7998 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7999 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
8000 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
8001 comparisons above.
8002
8003 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8004
8005 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
8006 * config/aarch64/aarch64-sve.md: Add a section describing it.
8007 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
8008 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
8009 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
8010 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
8011 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
8012 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
8013 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
8014 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
8015 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
8016 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
8017 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
8018 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
8019 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
8020 (aarch64_evpc_rev_local): Update accordingly.
8021
8022 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8023
8024 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
8025 iterators.
8026 (SVE_BHSI, SVE_SDI): Tweak comment.
8027 (SVE_HSDI): Likewise. Fix definition.
8028 (SVE_SDF): New mode iterator.
8029 (elem_bits): New mode attribute.
8030 (SVE_COND_FCVT): New int iterator.
8031 * config/aarch64/aarch64-sve.md
8032 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
8033 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
8034 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
8035 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8036 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8037 ...these new patterns.
8038 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
8039 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
8040 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
8041 Merge into...
8042 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
8043 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
8044 ...these new patterns.
8045 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
8046 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
8047 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
8048 ...this new pattern.
8049 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
8050 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
8051 ...this new pattern.
8052 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
8053
8054 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8055
8056 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
8057 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
8058 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
8059 unspecs.
8060 (optab, su): Handle them.
8061 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
8062 * config/aarch64/aarch64-sve.md
8063 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8064 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8065 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8066 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8067 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8068 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8069 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8070 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8071 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8072 FIXUORS.
8073 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8074 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8075 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8076 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8077 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8078 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8079 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8080 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8081 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8082 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8083 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8084 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8085 of UNSPEC_FLOAT_CONVERT.
8086 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8087 aarch64_sve_extend<mode><Vwide>2.
8088
8089 2019-08-14 Richard Biener <rguenther@suse.de>
8090
8091 PR target/91154
8092 * config/i386/i386-features.c
8093 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8094 individual instruction gain. Fix reg-reg copy GRP cost. Use
8095 ix86_cost->sse_op for vector instruction costs.
8096
8097 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8098
8099 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8100 (cmp_op): Handle it.
8101 (SVE_COND_FP_CMP): Rename to...
8102 (SVE_COND_FP_CMP_I0): ...this.
8103 (SVE_FP_CMP): Remove.
8104 * config/aarch64/aarch64-sve.md
8105 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8106 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8107 using unspecs to represent the comparison.
8108 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8109 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8110 accordingly.
8111 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8112 (aarch64_unspec_cond_code): Move after integer code. Handle
8113 UNORDERED.
8114 (aarch64_emit_sve_predicated_cond): Replace with...
8115 (aarch64_emit_sve_fp_cond): ...this new function.
8116 (aarch64_emit_sve_or_conds): Replace with...
8117 (aarch64_emit_sve_or_fp_conds): ...this new function.
8118 (aarch64_emit_sve_inverted_cond): Replace with...
8119 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8120 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8121
8122 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8123
8124 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8125 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8126 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8127 SVE_HSD instead of SVE_SD.
8128
8129 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8130 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8131
8132 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8133 iterator.
8134 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8135 attributes.
8136 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8137 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8138 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8139 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8140 (*div<SVE_F:mode>3): Generalize to...
8141 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8142
8143 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8144 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8145
8146 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8147 constants.
8148 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8149 predicate.
8150 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8151 Declare.
8152 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8153 function.
8154 * config/aarch64/aarch64-sve.md: Add a block comment about the
8155 handling of predicated FP operations.
8156 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8157 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8158 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8159 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8160 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8161 operand.
8162 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8163 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8164 operand.
8165 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8166 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8167 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8168 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8169 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8170 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8171 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8172 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8173 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8174 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8175 strictness operands. Use aarch64_sve_pred_dominates_p to check
8176 whether the predicate on the conditional operation is suitable
8177 for merging. Split patterns into the canonical equal-predicate form.
8178 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8179 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8180
8181 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8182 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8183
8184 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8185 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8186 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8187 rtx codes.
8188 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8189 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8190 unspecs.
8191
8192 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8193 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8194
8195 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8196 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8197 actually has, rather than relying on REG_EQUAL notes.
8198 Make the insn operand order match the SVE operand order.
8199 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8200 the SVE operand order.
8201
8202 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8203
8204 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8205 (aarch64_emit_set_immediate): Likewise.
8206 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8207 (aarch64_pfalse_reg): Likewise.
8208 (aarch64_convert_sve_data_to_pred): New function.
8209 (aarch64_sve_move_pred_via_while): Take an optional target register
8210 and the required register mode.
8211 (aarch64_expand_sve_const_pred_1): New function.
8212 (aarch64_expand_sve_const_pred): Likewise.
8213 (aarch64_expand_mov_immediate): Build an all-true predicate
8214 if the significant bits of the immediate are all true. Use
8215 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8216 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8217 before register allocation.
8218 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8219 a VNx16BI PTRUE when splitting the memory alternative.
8220 (vec_duplicate<mode>): Update accordingly.
8221 (*pred_cmp<cmp_op><mode>): Rename to...
8222 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8223
8224 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8225
8226 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8227 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8228 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8229 (UNSPEC_PTEST): New unspec.
8230 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8231 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8232 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8233 * config/aarch64/aarch64-sve.md: Add a new section describing the
8234 handling of UNSPEC_PTEST.
8235 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8236 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8237 (ptest_ptrue<mode>): Replace with...
8238 (aarch64_ptest<mode>): ...this new pattern.
8239 (cbranch<mode>4): Update after above changes.
8240 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8241 UNSPEC_PTEST_PTRUE.
8242 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8243 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8244 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8245
8246 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8247
8248 PR lto/91287
8249 * builtins.c (builtin_with_linkage_p): New function.
8250 * builtins.h (builtin_with_linkage_p): New function.
8251 * symtab.c (write_symbol): Remove redundant assert.
8252 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8253 Remove FIXME and use builtin_with_linkage_p.
8254
8255 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8256
8257 PR middle-end/91421
8258 * tree-core.h (function_decl::function_code): Change type to
8259 unsigned int.
8260 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8261 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8262 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8263 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8264 is BUILT_IN_NORMAL.
8265 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8266 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8267 (fndecl_built_in_p): Change the type of the "name" argument to
8268 unsigned int.
8269 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8270 after check for DECL_BUILT_IN_CLASS.
8271 * cgraphclones.c (build_function_decl_skip_args): Use
8272 set_decl_built_in_function.
8273 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8274 * ipa-split.c (split_function): Likewise.
8275 * langhooks.c (add_builtin_function_common): Likewise.
8276 * omp-simd-clone.c (simd_clone_create): Likewise.
8277 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8278 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8279 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8280 DECL_FUNCTION_CODE.
8281 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8282 instead of DECL_FUNCTION_CODE.
8283 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8284 instead of DECL_FUNCTION_CODE.
8285 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8286 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8287 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8288 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8289 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8290 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8291 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8292 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8293 (alpha_gimple_fold_builtin): Likewise.
8294 * config/arc/arc.c (arc_expand_builtin): Likewise.
8295 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8296 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8297 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8298 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8299 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8300 * config/frv/frv.c (frv_expand_builtin): Likewise.
8301 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8302 (gcn_expand_builtin): Likewise.
8303 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8304 (fold_builtin_cpu): Likewise.
8305 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8306 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8307 (ix86_gimple_fold_builtin): Likewise.
8308 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8309 (ia64_expand_builtin): Likewise.
8310 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8311 * config/mips/mips.c (mips_expand_builtin): Likewise.
8312 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8313 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8314 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8315 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8316 * config/pa/pa.c (pa_expand_builtin): Likewise.
8317 * config/pru/pru.c (pru_expand_builtin): Likewise.
8318 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8319 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8320 Likewise.
8321 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8322 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8323 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8324 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8325 (rs6000_builtin_reciprocal): Likewise.
8326 * config/rx/rx.c (rx_expand_builtin): Likewise.
8327 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8328 * config/s390/s390.c (s390_expand_builtin): Likewise.
8329 * config/sh/sh.c (sh_expand_builtin): Likewise.
8330 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8331 (sparc_fold_builtin): Likewise.
8332 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8333 * config/spu/spu.c (spu_expand_builtin): Likewise.
8334 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8335 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8336 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8337 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8338 (xtensa_expand_builtin): Likewise.
8339
8340 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8341
8342 PR middle-end/91421
8343 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8344 before the DECL_FUNCTION_CODE.
8345 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8346 to check for a BUILT_IN_ALLOCA call.
8347 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8348 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8349 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8350 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8351 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8352 for BUILT_IN_NORMAL functions.
8353 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8354 test for BUILT_IN_TM_ABORT.
8355 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8356 to check for a BUILT_IN_STACK_RESTORE call.
8357 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8358 * tree-ssa-threadedge.c
8359 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8360 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8361 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8362 test for a BUILT_IN_NORMAL call instead of a negative test for
8363 an internal function call.
8364
8365 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8366
8367 * tree.h (build_vector_a_then_b): Declare.
8368 * tree.c (build_vector_a_then_b): New function.
8369 * fold-const-call.c (fold_while_ult): Likewise.
8370 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8371 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8372 (aarch64_svpattern): New enum.
8373 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8374 constants through aarch64_expand_mov_immediate.
8375 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8376 than general_operand as the predicate for operand 1.
8377 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8378 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8379 insn_type.
8380 (simd_immediate_info::simd_immediate_info): New overload that
8381 takes a scalar_int_mode and an svpattern.
8382 (simd_immediate_info::u): Add a "pattern" field.
8383 (svpattern_token): New function.
8384 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8385 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8386 (aarch64_sve_move_pred_via_while): New functions.
8387 (aarch64_expand_mov_immediate): Try using
8388 aarch64_sve_move_pred_via_while for predicates that contain N ones
8389 followed by M zeros but that do not correspond to a VLnnn pattern.
8390 (aarch64_sve_pred_valid_immediate): New function.
8391 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8392 with PTRUE and PFALSE.
8393 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8394 forms.
8395
8396 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8397
8398 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8399 flag.
8400 (darwin_override_options): Likewise.
8401 * config/darwin.h: Likewise.
8402 * config/darwin.opt: Likewise.
8403 * config/i386/i386.c (output_pic_addr_const): Likewise.
8404 * config/rs6000/darwin.h: Likewise.
8405 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8406 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8407 ... this TARGET_MACHO_SYMBOL_STUBS.
8408 (FUNCTION_PROFILER):Likewise.
8409 * config/i386/i386.h: Likewise.
8410
8411 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8412
8413 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8414 <case E_V2SImode>: Use vec_extr path for
8415 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8416 <case E_V8QImode>: Ditto.
8417 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8418 Use SWI48 mode iterator. Use %k to output operand 0.
8419 (*mmx_pextrw): New insn pattern.
8420 (*mmx_pextrb): Ditto.
8421 (*mmx_pextrb_zext): Ditto.
8422
8423 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8424
8425 * target.def (libc_has_function, libc_has_fast_function): Improve
8426 documentation strings.
8427 * doc/tm.texi: Regenerate.
8428
8429 2019-08-13 Caroline Tice <cmtice@google.com>
8430
8431 PR other/91396
8432 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8433 vtv_end.o or vtv_end_preinit.o files if !static.
8434
8435 2019-08-13 Olivier Hainque <hainque@adacore.com>
8436
8437 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8438
8439 2019-08-13 Olivier Hainque <hainque@adacore.com>
8440
8441 * rtlanal.c (tablejump_casesi_pattern): New function, to
8442 determine if a tablejump insn is a casesi dispatcher. Extracted
8443 from patch_jump_insn.
8444 * rtl.h (tablejump_casesi_pattern): Declare.
8445 * cfgrtl.c (patch_jump_insn): Use it.
8446 * dwarf2cfi.c (create_trace_edges): Use it.
8447
8448 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8449
8450 PR target/81800
8451 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8452 operand is larger than a long int.
8453
8454 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8455
8456 * machmode.h (opt_mode::else_mode): New function.
8457 (opt_mode::else_blk): Use it.
8458 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8459 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8460 (aarch64_gen_stepped_int_parallel): Likewise.
8461 (aarch64_stepped_int_parallel_p): Likewise.
8462 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8463 argument.
8464 * config/aarch64/aarch64.c
8465 (aarch64_expand_sve_widened_duplicate): Delete.
8466 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8467 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8468 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8469 argument. Use early returns in the !CONST_INT_P handling.
8470 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8471 than handling some inline.
8472 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8473 from...
8474 (aarch64_simd_container_mode): ...here.
8475 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8476 (aarch64_sve_ld1rq_operand_p): New functions.
8477 * config/aarch64/predicates.md (descending_int_parallel)
8478 (aarch64_sve_ld1rq_operand): New predicates.
8479 * config/aarch64/constraints.md (UtQ): New constraint.
8480 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8481 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8482 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8483 (@aarch64_sve_reinterpret<mode>): New expander.
8484 (*aarch64_sve_reinterpret<mode>): New pattern.
8485 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8486 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8487 (*sve_ld1rq<Vesize>): Replace with...
8488 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8489
8490 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8491
8492 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8493 16:12.
8494
8495 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8496
8497 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8498 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8499 (msp430_check_path_for_devices): New.
8500 (parse_devices_csv_1): New.
8501 (parse_devices_csv): New.
8502 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8503 MCU data in devices.csv before using the hard-coded data.
8504 Warn if devices.csv isn't found and the MCU wasn't found in the
8505 hard-coded data either.
8506 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8507 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8508 Search for devices.csv on -I and -L paths.
8509 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8510 msp430_set_driver_var.
8511 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8512 -mdevices-csv-loc=.
8513 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8514 searched for devices.csv.
8515 (mwarn-devices-csv): Document option.
8516
8517 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8518
8519 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8520 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8521 Use a single Dn alternative instead of separate Dz and Dm
8522 alternatives. Use aarch64_output_sve_move_immediate.
8523 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8524 function.
8525 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8526 for predicates too.
8527 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8528 (aarch64_output_ptrue): Delete.
8529
8530 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8531
8532 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8533 INDEX.
8534 (simd_immediate_info::value, simd_immediate_info::step)
8535 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8536 with...
8537 (simd_immediate_info::u): ...this new union.
8538 (simd_immediate_info::simd_immediate_info): Update accordingly.
8539 (aarch64_output_simd_mov_immediate): Likewise.
8540 (aarch64_output_sve_mov_immediate): Likewise.
8541
8542 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8543
8544 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8545 extra_gcc_objs.
8546 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8547 (msp430_select_cpu): New spec function.
8548 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8549 MCU data.
8550 * config/msp430/msp430-devices.c: New file.
8551 * config/msp430/msp430-devices.h: New file.
8552 * config/msp430/msp430.c: Remove msp430_mcu_data.
8553 (msp430_option_override): Use msp430_extract_mcu_data to extract
8554 MCU data.
8555 (msp430_use_f5_series_hwmult): Likewise.
8556 (use_32bit_hwmult): Likewise.
8557 (msp430_no_hwmult): Likewise.
8558 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8559 assembler.
8560 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8561 and -mcpu option.
8562 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8563 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8564 Remove hard-coded MCU multilib data.
8565
8566 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8567
8568 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8569 based on the mode instead of testing properties of it.
8570
8571 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8572
8573 * doc/md.texi: Document the x and y constraints for AArch64.
8574 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8575 (FP_LO8_REGS): New reg_class.
8576 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8577 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8578 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8579 * config/aarch64/predicates.md (aarch64_simd_register): Use
8580 FP_REGNUM_P instead of checking the classes manually.
8581 * config/aarch64/constraints.md (y): New constraint.
8582
8583 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8584
8585 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8586 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8587 * config/aarch64/aarch64-simd.md
8588 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8589 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8590 from the asm template.
8591 * config/aarch64/aarch64-sve.md
8592 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8593 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8594 from the asm template.
8595 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8596 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8597 from the asm template.
8598 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8599
8600 2019-08-13 Martin Liska <mliska@suse.cz>
8601
8602 * value-prof.c (gimple_ic_transform): Add new line.
8603 Print details with MSG_NOTE.
8604
8605 2019-08-13 Martin Liska <mliska@suse.cz>
8606
8607 * doc/invoke.texi: Document automatic detection of jobserver.
8608 * lto-wrapper.c (run_gcc): Detect jobserver always.
8609
8610 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8611
8612 * config/i386/i386-expand.c (ix86_expand_vector_set)
8613 <case E_V2SImode>: Use vec_merge path for
8614 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8615 <case E_V8QImode>: Ditto.
8616 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8617 (*mmx_pinsrb): Ditto.
8618
8619 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8620
8621 PR target/83250
8622 PR target/91340
8623 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8624 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8625 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8626 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8627 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8628
8629 2019-08-12 Richard Biener <rguenther@suse.de>
8630
8631 PR lto/91375
8632 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8633 flag_devirtualize.
8634
8635 2019-08-12 Richard Biener <rguenther@suse.de>
8636
8637 PR driver/91130
8638 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8639 lang_mask option, always use CL_DRIVER.
8640 (get_options_from_collect_gcc_options): Adjust.
8641 (find_and_merge_options): Likewise.
8642 (run_gcc): Likewise.
8643
8644 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8645
8646 * ipa-predicate.c (add_condition): Restore inverted test.
8647
8648 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8649
8650 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8651 (enum omp_clause_device_type_kind): New enum.
8652 (struct tree_omp_clause): Add subcode.device_type_kind.
8653 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8654 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8655 for device_type clause.
8656 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8657 * tree-pretty-print.c (dump_omp_clause): Likewise.
8658
8659 PR target/91408
8660 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8661 vector_operand.
8662
8663 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8664
8665 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8666 handling spilled pseudos.
8667
8668 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8669
8670 PR target/91386
8671 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8672 to preserve the contents of the original insns.
8673
8674 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8675
8676 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8677 (addsi3_compare_op2): Likewise.
8678
8679 2019-08-09 Martin Liska <mliska@suse.cz>
8680
8681 * alias.c (alias_ptr_types_compatible_p): Strengten
8682 type comparison in LTO mode.
8683
8684 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8685
8686 PR middle-end/90313
8687 * tree-tailcall.c (find_tail_calls): Reject calls that might
8688 read from an escaped RESULT_DECL.
8689
8690 2019-08-09 Martin Liska <mliska@suse.cz>
8691
8692 * doc/invoke.texi: Document the option value.
8693 * lto-wrapper.c (run_gcc): Set auto_parallel
8694 only with -flto=auto.
8695
8696 2019-08-09 Martin Liska <mliska@suse.cz>
8697
8698 * opts.c (common_handle_option): Error for an invalid argument
8699 to -flto=.
8700
8701 2019-08-09 Martin Liska <mliska@suse.cz>
8702
8703 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8704 use dump_printf to report optimization.
8705 (sem_variable::merge): Likwise.
8706 (sem_item_optimizer::merge_classes): Use dump_printf to report
8707 ICF hits.
8708
8709 2019-08-09 Martin Liska <mliska@suse.cz>
8710
8711 * value-prof.c (gimple_divmod_fixed_value_transform):
8712 Use dump_printf_loc.
8713 (gimple_mod_pow2_value_transform): Likewise.
8714 (gimple_mod_subtract_transform): Likewise.
8715 (init_node_map): Likewise.
8716 (gimple_ic_transform): Likewise.
8717 (gimple_stringops_transform): Likewise.
8718
8719 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8720
8721 * doc/extend.texi: Add const qualifier to ld intrinsics.
8722
8723 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8724
8725 * config/rs6000/dfp.md (D64_D128): Rename to ...
8726 (DDTD): ... this, throughout.
8727 (dfp_suffix): Rename to ...
8728 (q): ... this, throughout.
8729
8730 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8731
8732 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8733 (dfp_suffix): Ditto.
8734 (adddd3, addtd3): Merge to ...
8735 (add<mode>3 for D64_D128): ... this.
8736 (subdd3, subtd3): Merge to ...
8737 (sub<mode>3 for D64_D128): ... this.
8738 (muldd3, multd3): Merge to ...
8739 (mul<mode>3 for D64_D128): ... this.
8740 (divdd3, divtd3): Merge to ...
8741 (div<mode>3 for D64_D128): ... this.
8742 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8743 (*cmp<mode>_internal1 for D64_D128): ... this.
8744 (ftruncdd2, ftrunctd2): Merge to ...
8745 (ftrunc<mode>2 for D64_D128): ... this.
8746 (fixdddi2, fixtddi2): Merge to ...
8747 (fix<mode>di2 for D64_D128): ... this.
8748
8749 2019-08-08 Jim Wilson <jimw@sifive.com>
8750
8751 PR target/91229
8752 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8753 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8754 Pass into recursive call.
8755 (riscv_flatten_aggregate_argument): New arg. Pass to
8756 riscv_flatten_aggregate_field.
8757 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8758 riscv_flatten_aggregate_argument twice, with false and true as last
8759 arg. Process result twice. Compare results and warn if different.
8760 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8761
8762 2019-08-08 Martin Liska <mliska@suse.cz>
8763
8764 PR bootstrap/91352
8765 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8766 * lto-wrapper.c (jobserver_active_p): Likewise.
8767
8768 2019-08-08 Martin Liska <mliska@suse.cz>
8769
8770 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8771 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8772 (create_version_clone_with_body): Likewise.
8773
8774 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8775
8776 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8777 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8778 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8779 GOVD_EXPLICIT flags.
8780 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8781 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8782 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8783 call install_var_field with mask 11 instead of 3.
8784 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8785 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8786
8787 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8788
8789 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8790 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8791
8792 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8793
8794 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8795 MOVPRFX alternatives. Make the GPR alternatives more expensive
8796 than the FPR ones.
8797
8798 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8799
8800 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8801 Disparage the GPR alternative relative to the FPR one.
8802 Fix handling of 8-bit and 16-bit FPR values.
8803
8804 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8805
8806 * config/aarch64/iterators.md (BITWISEV): Delete.
8807 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8808 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8809 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8810 UNSPEC_FMINNMV, UNSPEC_FMINV.
8811 (bit_reduc_op): Delete.
8812 (sve_int_op): New int attribute.
8813 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8814 UNSPEC_FMINNMV, UNSPEC_FMINV.
8815 * config/aarch64/aarch64-sve.md
8816 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8817 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8818 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8819 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8820 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8821 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8822 new patterns.
8823 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8824 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8825 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8826 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8827 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8828 new patterns.
8829
8830 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8831
8832 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8833 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8834 (fms<mode>4, *fms<mode>4): Replace with...
8835 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8836 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8837 Use unspecs instead of rtx codes.
8838 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8839 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8840
8841 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8842
8843 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8844 int iterator.
8845 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8846 * config/aarch64/aarch64-sve.md
8847 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8848 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8849 use a single unspec for the rhs.
8850 (*<su><maxmin><mode>3): Delete.
8851 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8852
8853 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8854
8855 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8856 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8857 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8858 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8859 (optab, sve_fp_op): Handle them.
8860 (SVE_FP_UNARY): Delete.
8861 (optab): Remove sqrt entry.
8862 (sve_fp_op): Remove neg, abs and sqrt entries.
8863 (SVE_COND_FP_UNARY): New int iterator.
8864 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8865 (*<frint_pattern><mode>2): Delete.
8866 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8867 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8868 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8869 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8870
8871 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8872
8873 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8874
8875 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8876
8877 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8878 (UNSPEC_COND_FADD): ...this.
8879 (UNSPEC_COND_SUB): Rename to...
8880 (UNSPEC_COND_FSUB): ...this.
8881 (UNSPEC_COND_MUL): Rename to...
8882 (UNSPEC_COND_FMUL): ...this.
8883 (UNSPEC_COND_DIV): Rename to...
8884 (UNSPEC_COND_FDIV): ...this.
8885 (UNSPEC_COND_MAX): Rename to...
8886 (UNSPEC_COND_FMAXNM): ...this.
8887 (UNSPEC_COND_MIN): Rename to...
8888 (UNSPEC_COND_FMINNM): ...this.
8889 (UNSPEC_COND_LT): Rename to...
8890 (UNSPEC_COND_FCMLT): ...this.
8891 (UNSPEC_COND_LE): Rename to...
8892 (UNSPEC_COND_FCMLE): ...this.
8893 (UNSPEC_COND_EQ): Rename to...
8894 (UNSPEC_COND_FCMEQ): ...this.
8895 (UNSPEC_COND_NE): Rename to...
8896 (UNSPEC_COND_FCMNE): ...this.
8897 (UNSPEC_COND_GE): Rename to...
8898 (UNSPEC_COND_FCMGE): ...this.
8899 (UNSPEC_COND_GT): Rename to...
8900 (UNSPEC_COND_FCMGT): ...this.
8901 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8902 (sve_fp_op_rev): Update accordingly.
8903 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8904
8905 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8906
8907 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8908 banner comments.
8909 * config/aarch64/check-sve-md.awk: New file.
8910 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8911 (insn-conditions.md): Depend on it.
8912
8913 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8914
8915 PR target/91385
8916 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8917 (*negsi2_cmpz_zext): Ditto.
8918
8919 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8920
8921 * config/aarch64/iterators.md (commutative): Remove.
8922
8923 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8924
8925 PR driver/91130
8926 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8927 processing COLLECT_GCC_OPTIONS.
8928 (run_gcc): Likewise.
8929
8930 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8931
8932 PR tree-optimization/91109
8933 * lra-remat.c (update_scratch_ops): Remove assignment of the
8934 hard register.
8935
8936 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8937
8938 * data-streamer.h (streamer_write_poly_uint64): Declare.
8939 (streamer_read_poly_uint64): Likewise.
8940 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8941 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8942 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8943 (add_condition): Take a poly_int64 size.
8944 * ipa-predicate.c (add_condition): Likewise.
8945 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8946 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8947 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8948 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8949 condition::size as a poly_int64.
8950 (unmodified_parm_1): Take a poly_int64 size pointer.
8951 (unmodified_parm): Likewise.
8952 (unmodified_parm_or_parm_agg_item): Likewise.
8953 (set_cond_stmt_execution_predicate): Update accordingly.
8954 (set_switch_stmt_execution_predicate): Likewise.
8955 (will_be_nonconstant_expr_predicate): Likewise.
8956 (will_be_nonconstant_predicate): Likewise.
8957 (inline_read_section): Stream condition::size as a poly_int.
8958 (ipa_fn_summary_write): Likewise.
8959
8960 2019-08-07 Martin Liska <mliska@suse.cz>
8961
8962 * fold-const.c (twoval_comparison_p): Replace int
8963 with bool as a return type.
8964 (simple_operand_p): Likewise.
8965 (operand_equal_p): Replace int with bool as a return type.
8966 * fold-const.h (operand_equal_p): Likewise.
8967
8968 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8969
8970 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8971 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8972 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8973 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8974 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8975 * tree-pretty-print.c (dump_omp_clause): Likewise.
8976 * tree-nested.c (convert_nonlocal_omp_clauses,
8977 convert_local_omp_clauses): Likewise.
8978 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8979 Likewise.
8980 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8981 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8982 clause with array or reference to array types, no matter what type
8983 except for reference it has.
8984
8985 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8986
8987 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8988
8989 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8990
8991 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8992 (arch_canonicalize): Support rv32g and rv64g and fix error
8993 handling.
8994
8995 2019-08-06 Martin Liska <mliska@suse.cz>
8996
8997 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8998 and DECL_IS_OPERATOR_DELETE_P.
8999
9000 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9001
9002 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
9003 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
9004 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
9005 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
9006 (gimplify_omp_for): Don't do C++ random access iterator clause
9007 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
9008 don't predetermine the artificial iterator in case of C++ random
9009 access iterators as lastprivate, but private. For OMP_LOOP, force
9010 bind expr around simd body and force for_pre_body before the
9011 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
9012 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
9013 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
9014 diff var of C++ random access iterators. Handle
9015 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
9016 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
9017 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
9018 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
9019 * omp-low.c (lower_rec_input_clauses): For
9020 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
9021 variables instead of default constructing them.
9022 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
9023 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
9024 is_taskloop_ctx check from the assert to the guarding condition.
9025
9026 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
9027
9028 * config/riscv/multilib-generator: (canonical_order): New.
9029 (arch_canonicalize): Dito.
9030 Apply arch_canonicalize for alts.
9031
9032 2019-08-05 Martin Sebor <msebor@redhat.com>
9033
9034 * doc/extend.texi (Common Variable Attributes): Document alias
9035 attribute.
9036
9037 2019-08-05 Marek Polacek <polacek@redhat.com>
9038
9039 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
9040 * doc/invoke.texi: Document -Wcomma-subscript.
9041
9042 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9043
9044 * tree-core.h (tree_function_decl): Make function_code an
9045 independent field. Group the remaining bitfields into bytes
9046 and move decl_type so that it contines to be at a byte boundary.
9047 Leave 12 bits for future expansion.
9048
9049 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9050
9051 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
9052 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
9053 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
9054 IFN_MASK_STORE.
9055
9056 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9057
9058 * gimple.h (gimple_move_vops): Declare.
9059 * gimple.c (gimple_move_vops): New function
9060 * gimple-fold.c (replace_call_with_call_and_fold)
9061 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
9062 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9063 (gimple_fold_call): Use it.
9064 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9065 * tree-call-cdce.c (use_internal_fn): Likewise.
9066 * tree-if-conv.c (predicate_load_or_store): Likewise.
9067 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9068 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9069 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9070 (update_call_from_tree): Likewise.
9071 * tree-vect-stmts.c (vectorizable_load): Likewise.
9072 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9073
9074 2019-08-05 Martin Liska <mliska@suse.cz>
9075
9076 PR c++/91334
9077 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9078 with not arguments.
9079 (eliminate_unnecessary_stmts): Likewise.
9080
9081 2019-08-05 Richard Biener <rguenther@suse.de>
9082
9083 PR middle-end/91169
9084 * fold-const.c (get_array_ctor_element_at_index): Create
9085 offset_ints according to the sign of the index type and treat
9086 that as signed if it is obviously so.
9087
9088 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9089
9090 PR target/91341
9091 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9092 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9093 _mm256_storeu2_m128i): New function.
9094
9095 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9096
9097 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9098 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9099
9100 2019-08-05 Alan Modra <amodra@gmail.com>
9101
9102 PR target/91349
9103 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9104 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9105
9106 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9107
9108 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9109 bug that was fixed in Tcl 8.6.1.
9110
9111 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9112
9113 * config/rs6000/future.md: New file.
9114 * config/rs6000/rs6000.md: Include future.md.
9115 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9116
9117 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9118
9119 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9120 check to use targetm.slow_unaligned_access instead.
9121
9122 * function.c (assign_param_data_one): Remove unused data members.
9123
9124 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9125
9126 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9127 build_distinct_type_copy.
9128 (simd_clone_adjust_argument_types): Ditto.
9129 (simd_clone_adjust): Call build_distinct_type_copy here.
9130 (expand_simd_clones): Ditto.
9131
9132 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9133
9134 PR target/91201
9135 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9136
9137 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9138
9139 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9140 from 'const void *'.
9141 (sort_locs_in_loop_postorder_cmp): Likewise.
9142
9143 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9144
9145 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9146 (hot-bb-count-ws-permille): Likewise.
9147 (hot-bb-frequency-fraction): Likewise.
9148 (unlikely-bb-count-fraction): Likewise.
9149 * params.def (hot-bb-count-fraction): Rework description.
9150 (hot-bb-count-ws-permille): Likewise.
9151 (hot-bb-frequency-fraction): Likewise.
9152 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9153 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9154
9155 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9156
9157 PR target/91323
9158 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9159 Return false.
9160
9161 2019-08-02 Richard Biener <rguenther@suse.de>
9162
9163 * vec.h (vec::sort): Add gcc_qsort_r support.
9164 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9165 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9166 to gcc_qsort_r style callback.
9167 (sort_locs_in_loop_postorder_cmp): Likewise.
9168 (analyze_memory_references): Use gcc_sort_r interfaces.
9169 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9170
9171 2019-08-02 Martin Liska <mliska@suse.cz>
9172
9173 PR lto/91313
9174 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9175 to detect working job server.
9176 (driver::detect_jobserver): Test whether jobserver
9177 is active from GCC driver. That will prevent situation where
9178 GCC is invoked from a LD plugin and the linker already uses
9179 file descriptors suggested by make. That leads to a wrong
9180 detection.
9181 * gcc.h (driver): Add detect_jobserver.
9182 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9183 not scanning for --jobserver-auth prefix.
9184
9185 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9186
9187 PR tree-optimization/91201
9188 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9189 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9190 extraction.
9191
9192 2019-08-01 Martin Sebor <msebor@redhat.com>
9193
9194 PR c++/90947
9195 * tree.c (type_initializer_zero_p): Define.
9196 * tree.h (type_initializer_zero_p): New function.
9197
9198 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9199
9200 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9201
9202 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9203
9204 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9205 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9206 * predict.c (maybe_hot_count_p): Likewise.
9207 (maybe_hot_bb_p): Tweak comment.
9208 (maybe_hot_edge_p): Likewise.
9209 (probably_never_executed): Likewise. Minor tweak.
9210 (probably_never_executed_bb_p): Likewise.
9211 (unlikely_executed_edge_p): Likewise.
9212 (probably_never_executed_edge_p): Likewise.
9213 (optimize_function_for_size_p): Likewise.
9214 (optimize_function_for_speed_p): Likewise.
9215 (function_optimization_type): Likewise.
9216 (optimize_bb_for_size_p): Likewise.
9217 (optimize_bb_for_speed_p): Likewise.
9218 (bb_optimization_type): Likewise.
9219 (optimize_edge_for_size_p): Likewise.
9220 (optimize_edge_for_speed_p): Likewise.
9221 (optimize_insn_for_size_p): Likewise.
9222 (optimize_insn_for_speed_p): Likewise.
9223 (optimize_loop_for_size_p): Likewise.
9224 (optimize_loop_for_speed_p): Likewise.
9225 (optimize_loop_nest_for_speed_p): Likewise.
9226 (optimize_loop_nest_for_size_p): Likewise.
9227 (predictable_edge_p): Likewise.
9228 (handle_missing_profiles): Minor tweak.
9229
9230 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9231
9232 * config/rs6000/predicates.md (pcrel_external_address): Update
9233 comment.
9234
9235 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9236
9237 PR target/85693
9238 * config/i386/mmx.md (usadv8qi): New expander.
9239
9240 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9241
9242 PR c++/90590
9243 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9244 with reserved names that are in a system header.
9245
9246 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9247
9248 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9249 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9250 (*vec_extractv2si_0_zext): Ditto.
9251 (*vec_extractv2si_1): Add (rm,x) alternative.
9252 (*vec_extractv2si_1_zext): New insn pattern.
9253 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9254 insn constraint.
9255
9256 2019-08-01 Richard Biener <rguenther@suse.de>
9257
9258 * domwalk.c (bb_postorder): Remove static variable.
9259 (cmp_bb_postorder): Adjust.
9260 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9261 (dom_walker::walk): Adjust.
9262
9263 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9264
9265 * sort.cc (sort_r_ctx): New struct.
9266 (reorder23): Make templated on context type.
9267 (reorder45): Ditto.
9268 (cmp1): Ditto. Adjust signature.
9269 (netsort): Ditto.
9270 (mergesort): Ditto.
9271 [CHECKING_P] (cmp2to3): New static function. Use it...
9272 (gcc_qsort) [CHECKING_P]: ...here.
9273 (gcc_sort_r): New function.
9274 * system.h (sort_r_cmp_fn): New function typedef.
9275 (qsort_chk): Adjust signature.
9276 (gcc_sort_r): Declare.
9277 * vec.c (qsort_chk_error): Adjust.
9278 (qsort_chk): Adjust.
9279
9280 2019-08-01 Richard Biener <rguenther@suse.de>
9281
9282 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9283 (compute_antic): Localize it here.
9284
9285 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9286
9287 * common/config/riscv/riscv-common.c: Check -march string ends
9288 with null.
9289
9290 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9291
9292 * ipa-devirt.c (type_warning_cmp): Make static.
9293 (decl_warning_cmp): Ditto.
9294
9295 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9296
9297 PR target/91050
9298 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9299 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9300 use of deleted rs6000_dejagnu_cpu_index variable.
9301 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9302 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9303 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9304 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9305 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9306 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9307
9308 2019-07-31 Richard Biener <rguenther@suse.de>
9309
9310 PR tree-optimization/91280
9311 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9312 Decompose MEM_REF manually for offset handling.
9313
9314 2019-07-31 Richard Biener <rguenther@suse.de>
9315
9316 PR tree-optimization/91293
9317 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9318 of reduction stmts.
9319
9320 2019-07-31 Matt Thomas <matt@3am-software.com>
9321 Nick Hudson <nick@nthcliff.demon.co.uk>
9322 Matthew Green <mrg@eterna.com.au>
9323 Maya Rashish <coypu@sdf.org>
9324
9325 * config.gcc (hppa*-*-netbsd*): New target.
9326 * config/pa/pa-netbsd.h: New file.
9327 * config/pa/pa32-netbsd.h: New file.
9328
9329 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9330
9331 PR tree-optimization/91201
9332 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9333
9334 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9335
9336 * config/gcn/gcn-valu.md
9337 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9338 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9339 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9340 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9341 struct ilist. Add nops for delayeduse insns.
9342 * config/gcn/gcn.md (delayeduse): New attribute.
9343 (*movbi): Remove s_waitcnt from stores.
9344 (*mov<mode>_insn): Likewise.
9345 (*movti_insn): Likewise. Add delayeduse attribute.
9346 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9347 (atomic_store<mode>): Remove or adjust s_waitcnt.
9348
9349 2019-07-31 Richard Biener <rguenther@suse.de>
9350
9351 * vr-values.h (vr_values::swap_vr_value): New.
9352 (vr_values::free_value_range): likewise.
9353 * vr-values.c (vr_values::swap_vr_value): Implement.
9354 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9355 Do not return a range or take a var.
9356 (evrp_range_analyzer::stack): Change back to recording a non-const
9357 value_range *.
9358 * gimple-ssa-evrp-analyze.c
9359 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9360 value-range.
9361 (evrp_range_analyzer::pop_to_marker): Adjust.
9362 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9363 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9364 no longer needed value-range.
9365
9366 2019-07-31 Martin Liska <mliska@suse.cz>
9367
9368 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9369 have size and (or) alignment as 2nd and later arguments.
9370 Mark all of them as necessary.
9371
9372 2019-07-31 Richard Biener <rguenther@suse.de>
9373
9374 PR tree-optimization/91178
9375 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9376 Use tail-recursion.
9377
9378 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9379
9380 PR tree-optimization/91201
9381 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9382 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9383 TARGET_AVX512F.
9384 (reduc_plus_scal_<mode>): Improve formatting by introducing
9385 a temporary.
9386
9387 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9388
9389 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9390 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9391 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9392 (aarch64_init_tme_builtins): New.
9393 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9394 (aarch64_expand_builtin_tme): New.
9395 (aarch64_expand_builtin): Handle TME builtins.
9396 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9397 __ARM_FEATURE_TME when enabled.
9398 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9399 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9400 (TARGET_TME): New.
9401 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9402 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9403 UNSPECV_TCANCEL.
9404 (tstart, ttest, tcommit, tcancel): New instructions.
9405 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9406 (__tcancel, __ttest): New.
9407 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9408 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9409 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9410 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9411 * config/arm/types.md: Add new tme type attr.
9412 * doc/invoke.texi: Document "tme".
9413
9414 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9415
9416 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9417 warn_unused_result attribute.
9418 (cmse_check_address_range): Add warn_unused_result attribute.
9419
9420 2019-07-31 Richard Biener <rguenther@suse.de>
9421
9422 PR tree-optimization/91257
9423 * tree-vrp.c (union_ranges): Unify equality and less tests
9424 by using compare_values. Re-order cheap tests first.
9425
9426 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9427
9428 PR middle-end/91301
9429 * gimplify.c (gimplify_omp_for): If for class iterator on
9430 distribute parallel for there is no data sharing clause
9431 on inner_for_stmt, look for private clause on combined
9432 parallel too and if found, move it to inner_for_stmt.
9433
9434 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9435
9436 * lra-int.h (lra_operand_data): Remove early_clobber field.
9437 (lra_insn_reg): Likewise.
9438 * lra.c (debug_operand_data): Update accordingly.
9439 (setup_operand_alternative): Likewise.
9440 (new_insn_reg): Likewise. Remove early_clobber parameter.
9441 (collect_non_operand_hard_regs): Update call accordingly.
9442 Don't assign to lra_insn_reg::early_clobber.
9443 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9444 and update calls to new_insn_reg.
9445 (lra_update_insn_regno_info): Update calls accordingly.
9446 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9447 alternative number as a parameter and test whether the operand
9448 is earlyclobbered in that particular alternative.
9449 (process_alt_operands): Update call accordingly. Use per-alternative
9450 checks for earyclobber here too.
9451 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9452 against zero for IRA_UNKNOWN_ALT.
9453
9454 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9455
9456 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9457
9458 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9459
9460 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9461 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9462
9463 2019-07-30 Martin Liska <mliska@suse.cz>
9464
9465 PR ipa/89330
9466 * cgraph.c (cgraph_edge::make_direct): Use
9467 edge->indirect_unknown_callee as edge->resolve_speculation can
9468 deallocate edge which is this pointer.
9469
9470 2019-07-30 Richard Biener <rguenther@suse.de>
9471
9472 PR tree-optimization/91257
9473 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9474
9475 2019-07-30 Martin Liska <mliska@suse.cz>
9476
9477 * doc/invoke.texi: Document new behavior.
9478 * lto-wrapper.c (cpuset_popcount): New function
9479 is a copy of libgomp/config/linux/proc.c.
9480 (init_num_threads): Likewise.
9481 (run_gcc): Automatically detect core count for -flto.
9482 (jobserver_active_p): New function.
9483
9484 2019-07-30 Richard Biener <rguenther@suse.de>
9485
9486 PR tree-optimization/91257
9487 * bitmap.h (bitmap_ior_into_and_free): Declare.
9488 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9489 whether to add the unliked element to the freelist.
9490 (bitmap_list_insert_element_after): Add defaulted param for
9491 an already allocated element.
9492 (bitmap_ior_into_and_free): New function.
9493 * tree-ssa-structalias.c (condense_visit): Reduce the
9494 ponts-to and edge bitmaps of the SCC members in a
9495 logarithmic fashion rather than all to one.
9496
9497 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9498
9499 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9500 parameter. When nonnull, make sure that the addition or subtraction
9501 has the same condition.
9502 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9503 for CFN_COND_MUL too.
9504
9505 2019-07-30 Richard Biener <rguenther@suse.de>
9506
9507 PR tree-optimization/91291
9508 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9509 constant values.
9510
9511 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9512
9513 PR middle-end/91216
9514 * omp-low.c (global_nonaddressable_vars): New variable.
9515 (use_pointer_for_field): For global decls, if they are non-addressable,
9516 remember it in the global_nonaddressable_vars bitmap, if they are
9517 addressable and in the global_nonaddressable_vars bitmap, ignore their
9518 TREE_ADDRESSABLE bit.
9519 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9520 vars in global_nonaddressable_vars bitmap.
9521 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9522
9523 PR target/91150
9524 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9525 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9526 comparison to unsigned HOST_WIDE_INT before shifting it left.
9527
9528 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9529
9530 * config/i386/i386.md (movstrict<mode>): Use register_operand
9531 predicate for operand 0. Add expander condition. Assert that
9532 operand 0 is a SUBREG RTX.
9533 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9534 Update operand constraints and insn condition.
9535 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9536 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9537 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9538 Update operand 0 constraints.
9539 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9540
9541 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9542
9543 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9544 when -m{code,data}-region are used without -mlarge.
9545 * config/msp430/msp430.c (msp430_option_override): Error when a
9546 non-default code or data region is used without -mlarge.
9547 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9548 attributes when they are used without -mlarge.
9549
9550 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9551
9552 PR target/70320
9553 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9554
9555 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9556
9557 PR middle-end/91242
9558 * wide-int.h (generic_wide_int::sext_elt): New function.
9559 * inchash.h (hash::add_wide_int): Use it instead of elt.
9560
9561 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9562
9563 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9564 CODE_FOR_arm_##.
9565 * config/arm/arm.md (<crc_variant>): Rename to...
9566 (arm_<crc_variant>): ... This.
9567 (<cdp>): Rename to...
9568 (arm_<cdp>): ... This.
9569 (<ldc>): Rename to...
9570 (arm_<ldc>): ... This.
9571 (<stc>): Rename to...
9572 (arm_<stc>): ... This.
9573 (<mcr>): Rename to...
9574 (arm_<mcr>): ... This.
9575 (<mrc>): Rename to...
9576 (arm_<mrc>): ... This.
9577 (<mcrr>): Rename to...
9578 (arm_<mcrr>): ... This.
9579 (<mrrc>): Rename to...
9580 (arm_<mrrc>): ... This.
9581
9582 2019-07-29 Richard Biener <rguenther@suse.de>
9583
9584 PR tree-optimization/91257
9585 * tree-ssa-sccvn.h (struct vn_avail): New.
9586 (struct vn_ssa_aux): Add avail member.
9587 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9588 member, add m_avail_freelist one.
9589 (rpo_elim::~rpo_elim): Remove.
9590 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9591 data structure.
9592 (rpo_elim::eliminate_push_avail): Likewise.
9593 (do_unwind): Likewise.
9594 (do_rpo_vn): Likewise.
9595
9596 2019-07-29 Richard Biener <rguenther@suse.de>
9597
9598 PR tree-optimization/91257
9599 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9600 most cases, instead call compare_values which handles the
9601 symbolic ranges we handle specially.
9602 (compare_values_warnv): Do not call operand_less_p but open-code
9603 the effective fold calls. Avoid converting so much.
9604
9605 2019-07-29 Martin Liska <mliska@suse.cz>
9606
9607 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9608 remove LHS of operator new call. It's handled latter.
9609
9610 2019-07-29 Richard Biener <rguenther@suse.de>
9611
9612 PR tree-optimization/91267
9613 * vr-values.c (vr_values::update_value_range): Add early return
9614 for effectively VARYING lattice entry.
9615
9616 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9617
9618 PR debug/86638
9619 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9620 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9621 necessary if keep_all_vdefs_p is true.
9622 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9623 that keep_all_vdefs_p is false.
9624 (mark_all_reaching_defs_necessary): Likewise.
9625 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9626
9627 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9628
9629 * common.opt (Og): Change the initial value of flag_dse to 0.
9630 * opts.c (default_options_table): Move OPT_ftree_dse from
9631 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9632 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9633 entry before the OPT_ftree_sra entry.
9634 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9635 of flags disabled by Og.
9636
9637 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9638
9639 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9640 variables for -Og.
9641
9642 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9643
9644 * doc/sourcebuild.texi (check-function-bodies): Document.
9645
9646 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9647
9648 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9649 VEC_DUPLICATE of a fixed-length vector even if the result
9650 is variable-length. Likewise fold a duplicate of a
9651 variable-length vector if the variable-length vector is
9652 itself a duplicate of a fixed-length sequence.
9653 (test_vector_ops_duplicate): Test more cases.
9654
9655 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9656
9657 * vector-builder.h (vector_builder): Add a shape template parameter.
9658 (vector_builder::new_unary_operation): New function, generalizing
9659 the old tree_vector_builder function.
9660 (vector_builder::new_binary_operation): Likewise.
9661 (vector_builder::binary_encoded_nelts): Likewise.
9662 * int-vector-builder.h (int_vector_builder): Update template
9663 parameters to vector_builder.
9664 (int_vector_builder::shape_nelts): New function.
9665 * rtx-vector-builder.h (rtx_vector_builder): Update template
9666 parameters to vector_builder.
9667 (rtx_vector_builder::shape_nelts): New function.
9668 (rtx_vector_builder::nelts_of): Likewise.
9669 (rtx_vector_builder::npatterns_of): Likewise.
9670 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9671 * tree-vector-builder.h (tree_vector_builder): Update template
9672 parameters to vector_builder.
9673 (tree_vector_builder::shape_nelts): New function.
9674 (tree_vector_builder::nelts_of): Likewise.
9675 (tree_vector_builder::npatterns_of): Likewise.
9676 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9677 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9678 (tree_vector_builder::new_binary_operation): Delete.
9679 (tree_vector_builder::binary_encoded_nelts): Likewise.
9680 * simplify-rtx.c: Include rtx-vector-builder.h.
9681 (distributes_over_addition_p): New function.
9682 (simplify_const_unary_operation)
9683 (simplify_const_binary_operation): Generalize handling of vector
9684 constants to include variable-length vectors.
9685 (test_vector_ops_series): Add more tests.
9686
9687 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9688
9689 PR lto/91222
9690 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9691 than INDENTIFIER_POINTER.
9692
9693 2019-07-28 Martin Liska <mliska@suse.cz>
9694
9695 PR ipa/89330
9696 * cgraph.c (symbol_table::create_edge): Always allocate
9697 a cgraph_edge.
9698 (symbol_table::free_edge): Store summary_id to
9699 edge_released_summary_ids if != -1;
9700 * cgraph.h (NEXT_FREE_NODE): Remove.
9701 (SET_NEXT_FREE_NODE): Likewise.
9702 (NEXT_FREE_EDGE): Likewise.
9703 (symbol_table::release_symbol): Store summary_id to
9704 cgraph_released_summary_ids if != -1;
9705 (symbol_table::allocate_cgraph_symbol): Always allocate
9706 a cgraph_node.
9707
9708 2019-07-28 Alan Modra <amodra@gmail.com>
9709
9710 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9711 gen_sibcall.
9712
9713 2019-07-28 Alan Modra <amodra@gmail.com>
9714
9715 PR target/91135
9716 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9717 define.
9718 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9719 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9720 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9721
9722 2019-07-28 Alan Modra <amodra@gmail.com>
9723
9724 PR target/91050
9725 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9726 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9727 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9728 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9729 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9730 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9731 in asm_default spec.
9732 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9733 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9734
9735 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9736
9737 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9738
9739 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9740
9741 PR target/89517
9742 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9743 * config/aarch64/aarch64-option-extensions.def: Add new comments
9744 and restore easier to read options.
9745
9746 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9747
9748 * convert.c (convert_to_real_1): Move part of conversion code...
9749 * match.pd: ...To here.
9750
9751 2019-07-26 Martin Jambor <mjambor@suse.cz>
9752
9753 PR ipa/89330
9754 * ipa-inline-transform.c (check_speculations_1): New function.
9755 (push_all_edges_in_set_to_vec): Likewise.
9756 (check_speculations): Use check_speculations_1, new parameter
9757 new_edges.
9758 (inline_call): Pass new_edges to check_speculations.
9759 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9760 NULL.
9761 (speculation_useful_p): Early return true if edge is inlined, remove
9762 later checks for inline_failed.
9763
9764 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9765
9766 PR rtl-optimization/91223
9767 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9768 matching with INOUT operand.
9769
9770 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9771
9772 * stmt.c (expand_case): Try to narrow the index type if it's larger
9773 than a word. Tidy up.
9774
9775 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9776
9777 * cif-code.def (NEVER_CALL): New code.
9778 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9779 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9780
9781 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9782
9783 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9784 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9785
9786 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9787
9788 * ipa-devirt.c (add_type_duplicate): Fix return value.
9789
9790 2019-07-25 Richard Biener <rguenther@suse.de>
9791
9792 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9793 type parameter and use it instead of guessing expression
9794 type from the first operand.
9795 (extract_range_from_binary_expr): Pass expr_type down.
9796
9797 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9798
9799 * config/arm/arm.md (SATrev): Change to code attribute.
9800 (*satsi_<SAT:code>): Adjust for the above.
9801 (*satsi_<SAT:code>_shift): Likewise.
9802
9803 2019-07-25 Richard Biener <rguenther@suse.de>
9804
9805 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9806 Make value_range * temporary const.
9807 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9808 Likewise.
9809 (evrp_range_analyzer::record_ranges_from_): Likewise.
9810 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9811 deal with having recorded a const one.
9812 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9813 Return a const value_range *.
9814 (evrp_range_analyzer::pop_value_range): Likewise.
9815 (evrp_range_analyzer::stack): Record const value_range *s.
9816 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9817 Adjust.
9818 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9819 (format_integer): Likewise.
9820 (sprintf_dom_walker::handle_gimple_call): Likewise.
9821 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9822 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9823 (vrp_prop::get_value_range): Adjust.
9824 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9825 modifying the lattice in-place.
9826 (vrp_prop::visit_stmt): Likewise.
9827 * vr-values.c (vr_values::get_lattice_entry): New private method.
9828 (vr_values::get_value_range): Wrap it and return a const
9829 value_range *.
9830 (vr_values::set_def_to_varying): New.
9831 (vr_values::set_defs_to_varying): Use it.
9832 (vr_values::update_value_range): Likewise.
9833 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9834 (values::op_with_constant_singleton_va): Likewise.
9835 (vr_values::extract_range_for_var_from_co): Likewise.
9836 (vr_values::extract_range_from_ssa_name): Likewise.
9837 (vr_values::extract_range_from_cond_expr): Likewise.
9838 (vr_values::extract_range_basic): Likewise.
9839 (compare_ranges): Take const value_range *, adjust.
9840 (compare_range_with_value): Likewise.
9841 (vrp_valueize): Adjust.
9842 (vrp_valueize_1): Likewise.
9843 (vr_values::get_vr_for_comparison): Return a const value_range *.
9844 (vr_values::compare_name_with_value): Adjust.
9845 (vr_values::compare_names): Likewise.
9846 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9847 Likewise.
9848 (vr_values::vrp_evaluate_conditional): Likewise.
9849 (find_case_label_ranges): Take a const value_range *.
9850 (vr_values::vrp_visit_switch_stmt): Adjust.
9851 (vr_values::extract_range_from_phi_node): Likewise.
9852 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9853 (vr_values::simplify_abs_using_ranges): Likewise.
9854 (test_for_singularity): Take a const value_range *.
9855 (range_fits_type_p): Likewise.
9856 (vr_values::simplify_cond_using_ranges_1): Adjust.
9857 (vr_values::simplify_cond_using_ranges_2): Likewise.
9858 (vr_values::simplify_switch_using_ranges): Likewise.
9859 (vr_values::simplify_float_conversion_usi): Likewise.
9860 (vr_values::two_valued_val_range_p): Likewise.
9861 * vr-values.h (vr_values::get_value_range): Return a const
9862 value_range *.
9863 (vr_values::set_def_to_varying): New.
9864 (vr_values::get_lattice_entry): New private method.
9865 (vr_values::get_vr_for_comparison): Return a const value_range *.
9866
9867 2019-07-25 Martin Liska <mliska@suse.cz>
9868 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9869
9870 PR c++/23383
9871 * common.opt: Add -fallocation-dce
9872 * gimple.c (gimple_call_operator_delete_p): New.
9873 * gimple.h (gimple_call_operator_delete_p): Likewise.
9874 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9875 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9876 DECL_IS_OPERATOR_DELETE_P.
9877 (mark_all_reaching_defs_necessary_1): Likewise.
9878 (propagate_necessity): Likewise.
9879 (eliminate_unnecessary_stmts): Handle
9880 gimple_call_operator_delete_p.
9881 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9882 Add packing of OPERATOR_DELETE.
9883 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9884 Similarly here.
9885 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9886 (DECL_SET_IS_OPERATOR_DELETE): New.
9887 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9888
9889 2019-07-25 Martin Liska <mliska@suse.cz>
9890
9891 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9892 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9893 * coverage.c (coverage_begin_function): Likewise.
9894 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9895 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9896 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9897 (sem_item::hash_referenced_symbol_properties): Likewise.
9898 * lto-streamer-out.c (hash_tree): Likewise.
9899 * predict.c (expr_expected_value_1): Likewise.
9900 * tree-inline.c (expand_call_inline): Likewise.
9901 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9902 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9903 * tree-core.h (enum function_decl_type): New enum.
9904 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9905 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9906 (set_function_decl_type): Likewise.
9907 (DECL_IS_OPERATOR_NEW_P): New.
9908 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9909 (DECL_LAMBDA_FUNCTION): Likewise.
9910 (DECL_LAMBDA_FUNCTION_P): Likewise.
9911 (DECL_IS_OPERATOR_NEW): Remove.
9912 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9913
9914 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9915
9916 * ipa-profile.c (get_most_common_single_value): Use
9917 get_nth_most_common_value.
9918 * profile.c (sort_hist_value): New function.
9919 (compute_value_histograms): Call sort_hist_value to sort the
9920 values after loading from disk.
9921 * value-prof.c (get_most_common_single_value): Rename to ...
9922 get_nth_most_common_value. Add input params n, return
9923 the n_th value and count.
9924 (gimple_divmod_fixed_value_transform): Use
9925 get_nth_most_common_value.
9926 (gimple_ic_transform): Likewise.
9927 (gimple_stringops_transform): Likewise.
9928 * value-prof.h (get_most_common_single_value): Add input params
9929 n, default to 0.
9930
9931 2019-07-25 Richard Biener <rguenther@suse.de>
9932
9933 PR tree-optimization/91236
9934 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9935 size of CONSTRUCTOR write. Fix buffer size we pass to
9936 native_encode_expr.
9937
9938 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9939
9940 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9941 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9942 r273773.
9943
9944 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9945
9946 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9947 explicitly disabled with --disable-initfini-array.
9948
9949 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9950
9951 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9952 if-exists.
9953
9954 2019-07-24 Martin Sebor <msebor@redhat.com>
9955
9956 PR tree-optimization/91183
9957 PR tree-optimization/86688
9958 * builtins.c (compute_objsize): Handle MEM_REF.
9959 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9960 (get_min_string_length): Remove.
9961 (count_nonzero_bytes): New function.
9962 (handle_char_store): Rename...
9963 (handle_store): to this. Handle multibyte stores via integer types.
9964 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9965 function name.
9966
9967 2019-07-24 Martin Sebor <msebor@redhat.com>
9968
9969 PR driver/80545
9970 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9971 (diagnostic_report_diagnostic): Same.
9972 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9973 (diagnostic_context::lang_mask): New data member.
9974 * ipa-pure-const.c (suggest_attribute): Use
9975 lang_hooks.option_lang_mask ().
9976 * opts-common.c (option_enabled): Handle new argument.
9977 (get_option_state): Pass an additional argument.
9978 * opts.c (print_filtered_help): Print supported languages for
9979 unsupported options. Adjust printing of current state.
9980 * opts.h (option_enabled): Add argument.
9981 * toplev.c (print_switch_values): Use lang_mask.
9982 (general_init): Set global_dc->lang_mask.
9983
9984 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9985
9986 PR bootstrap/87030
9987 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9988
9989 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9990
9991 * cgraphunit.c (symbol_table::compile): Start and stop
9992 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9993 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9994
9995 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9996
9997 * gimplify.c (flag_instrument_functions_exclude_p): Include
9998 namespace/class information in the printable name.
9999 * opts.c (add_comma_separated_to_vector): Add NUL terminator
10000 to tokens entered into the vector.
10001
10002 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
10003
10004 * tree-nested.c (build_simple_mem_ref_notrap): New function.
10005 (get_static_chain): Call it instead of build_simple_mem_ref.
10006 (get_frame_field): Likewise.
10007 (get_nonlocal_debug_decl): Likewise.
10008 (convert_nonlocal_reference_op): Likewise.
10009
10010 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
10011
10012 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
10013 declaration.
10014 (arc_compute_frame_size): Millicode is disabled when compiling
10015 ISR.
10016 (arc_return_address_register): Likewise.
10017 (arc_compute_function_type): Likewise.
10018 (arc_compute_frame_size): Likewise.
10019 (secondary_reload_info): Likewise.
10020 (arc_get_unalign): Likewise.
10021 (arc_can_use_return_insn): Declare.
10022 * config/arc/arc.c (AUX_LP_START): Define
10023 (AUX_LP_END): Likewise.
10024 (arc_frame_info): Update gmask member to 64-bit datum.
10025 (GMASK_LEN): Update.
10026 (arc_compute_function_type): Make it static, move it forward.
10027 (arc_must_save_register): Update, consider the extra regs.
10028 (arc_compute_millicode_save_restore_regs): Update to use the 64
10029 bit gmask.
10030 (arc_compute_frame_size): Likewise.
10031 (arc_enter_leave_p): Likewise.
10032 (arc_save_callee_saves): Likewise.
10033 (arc_restore_callee_saves): Likewise.
10034 (arc_save_callee_enter): Likewise.
10035 (arc_restore_callee_leave): Likewise.
10036 (arc_save_callee_milli): Likewise.
10037 (arc_restore_callee_milli): Likewise.
10038 (arc_expand_prologue): Add new interrupt handling.
10039 (arc_return_address_register): Make it static, move it forward.
10040 (arc_expand_epilogue): Add new interrupt handling.
10041 (arc_get_unalign): Delete.
10042 (arc_epilogue_uses): Make sure we do not remove the extra
10043 saved/restored registers when interrupt.
10044 (arc_can_use_return_insn): New function.
10045 (push_reg): Likewise.
10046 (pop_reg): Likewise.
10047 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
10048 procedures.
10049 (arc_restore_callee_saves): Likewise, but restoring.
10050 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
10051 (R33_REG): Likewise.
10052 (R34_REG): Likewise.
10053 (R35_REG): Likewise.
10054 (R36_REG): Likewise.
10055 (R37_REG): Likewise.
10056 (R38_REG): Likewise.
10057 (R39_REG): Likewise.
10058 (R45_REG): Likewise.
10059 (R46_REG): Likewise.
10060 (R47_REG): Likewise.
10061 (R48_REG): Likewise.
10062 (R49_REG): Likewise.
10063 (R50_REG): Likewise.
10064 (R51_REG): Likewise.
10065 (R52_REG): Likewise.
10066 (R53_REG): Likewise.
10067 (R54_REG): Likewise.
10068 (R55_REG): Likewise.
10069 (R56_REG): Likewise.
10070 (R58_REG): Likewise.
10071 (type): Add rtie attribute.
10072 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10073 (movsi_insn): Accept moves to lp_count.
10074 (rtie): Update pattern.
10075 (simple_return): Simplify it, don't use this pattern as a return
10076 from an interrupt.
10077 (arc600_rtie): New pattern.
10078 (p_return_i): Clean up.
10079 (return): Likewise.
10080 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10081 family CPUs.
10082 * config/arc/predicates.md (move_src_operand): Consider lp_count
10083 as a register.
10084
10085 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10086
10087 * config/s390/predicates.md (addv_const_operand): New predicate.
10088 * config/s390/s390-modes.def (CCO): New condition code mode.
10089 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10090 (s390_branch_condition_mask): Likewise.
10091 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10092 ("mulv<mode>4"): New expanders.
10093 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10094 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10095 pattern definitions.
10096
10097 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10098
10099 PR middle-end/91166
10100 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10101 (define_predicates): Add entry for uniform_vector_p.
10102 (vec_same_elem_p): New match pattern.
10103
10104 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10105
10106 PR bootstrap/87030
10107 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10108 * config/i386/darwin32-biarch.h .. to here.
10109 * config/i386/darwin64-biarch.h: Adjust comments.
10110 * config/rs6000/darwin32-biarch.h: Likewise.
10111 * config/rs6000/darwin64-biarch.h: Likewise.
10112 * config.gcc: Missed commit from r273746
10113 (*-*-darwin*): Don't include CPU t-darwin here.
10114 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10115 an error message if i686-darwin configuration is attempted for
10116 Darwin >= 18.
10117
10118 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10119
10120 PR bootstrap/87030
10121 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10122 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10123 an error message if i686-darwin configuration is attempted for
10124 Darwin >= 18.
10125 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10126 (powerpc-*-darwin*): Use biarch files where needed.
10127 (powerpc64-*-darwin*): Likewise.
10128 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10129 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10130 arch case.
10131 * config/i386/darwin32-biarch.h: New.
10132 * config/i386/darwin64.h: Rename.
10133 * config/i386/darwin64-biarch.h: To this.
10134 * config/i386/t-darwin: Rename.
10135 * config/i386/t-darwin32-biarch: To this.
10136 * config/i386/t-darwin64: Rename.
10137 * config/i386/t-darwin64-biarch: To this.
10138 * config/rs6000/darwin32-biarch.h: New.
10139 * config/rs6000/darwin64.h: Rename.
10140 * config/rs6000/darwin64-biarch.h: To this.
10141 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10142 arch case.
10143 * config/rs6000/t-darwin8: Rename.
10144 * config/rs6000/t-darwin32-biarch: To this.
10145 * config/rs6000/t-darwin64 Rename.
10146 * config/rs6000/t-darwin64-biarch: To this.
10147
10148 2019-07-23 Martin Sebor <msebor@redhat.com>
10149
10150 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10151
10152 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10153
10154 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10155 (rh): New alias for it.
10156
10157 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10158
10159 * gdbhooks.py: Pass replace=True to
10160 gdb.printing.register_pretty_printer.
10161
10162 2019-07-23 Richard Biener <rguenther@suse.de>
10163
10164 PR debug/91231
10165 * lto-streamer-in.c (input_function): Drop inline-entry markers
10166 that ended up with an unknown location block.
10167
10168 2019-07-23 Richard Biener <rguenther@suse.de>
10169
10170 PR tree-optimization/83518
10171 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10172 init from a constant even when partial defs are already recorded.
10173
10174 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10175
10176 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10177 * config/i386/znver1.md: Enable patterns for znver2 and add store
10178 variants which use extra AGU unit.
10179
10180 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10181
10182 * config/i386/i386-options.c (ix86_option_override_internal): Default
10183 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10184 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10185 for ZNVER2.
10186
10187 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10188
10189 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10190 (znver2_costs): Update 256 bit SSE costs and multiplication.
10191
10192 2019-07-23 Jan Beulich <jbeulich@suse.com>
10193
10194 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10195 Require only AVX512F.
10196 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10197 alternative expanding to vpternlog.
10198
10199 2019-07-23 Martin Liska <mliska@suse.cz>
10200
10201 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10202 to -flto in dwarf producer string.
10203
10204 2019-07-23 Richard Biener <rguenther@suse.de>
10205
10206 * tree-cfg.c (label_for_bb): Remove global var.
10207 (main_block_label): Take label_for_bb as argument.
10208 (cleanup_dead_labels_eh): Likewise, adjust.
10209 (cleanup_dead_labels): Adjust.
10210
10211 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10212
10213 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10214 Configurations): Add documentation for __builtin_mtfsf.
10215
10216 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10217
10218 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10219 * config/riscv/riscv.c (riscv_constant_alignment): Use
10220 riscv_align_data_type.
10221 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10222 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10223 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10224 * config/riscv/riscv.opt (malign-data): New.
10225 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10226
10227 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10228
10229 * cgraph.c (dump_graphviz): New function.
10230 * cgraph.h (dump_graphviz): New function.
10231 * symtab.c (dump_graphviz): New function.
10232
10233 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10234
10235 * config/aarch64/aarch64-simd.md
10236 (*aarch64_simd_sra<mode>): New.
10237 * config/aarch64/iterators.md
10238 (SHIFTRT): New iterator.
10239 (sra_op): New attribute.
10240
10241 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10242
10243 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10244 callee-saved regs R4->R10 in an interrupt function that calls another
10245 function.
10246
10247 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10248
10249 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10250 (_mm_blendv_epi8): New.
10251
10252 2019-07-22 Richard Biener <rguenther@suse.de>
10253
10254 PR tree-optimization/91221
10255 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10256 restrict partial-def handling of empty constructors and
10257 memset to refs with known offset.
10258
10259 2019-07-22 Jan Beulich <jbeulich@suse.com>
10260
10261 * config/i386/sse.md (ternlogsuffix): New.
10262 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10263 AVX512F is in use.
10264 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10265
10266 2019-07-22 Martin Liska <mliska@suse.cz>
10267
10268 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10269 comment.
10270 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10271
10272 2019-07-22 Martin Liska <mliska@suse.cz>
10273
10274 * lto-section-in.c (lto_get_section_data):
10275 Use new function get_compression.
10276 * lto-streamer-out.c (produce_lto_section): Use
10277 set_compression to encode compression algorithm.
10278 * lto-streamer.h (struct lto_section): Do not
10279 use bitfields in the format.
10280
10281 2019-07-22 Martin Liska <mliska@suse.cz>
10282
10283 PR driver/91172
10284 * opts-common.c (decode_cmdline_option): Decode
10285 argument of -Werror and check it for a wrong language.
10286 * opts-global.c (complain_wrong_lang): Remove such case.
10287
10288 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10289
10290 * config/arc/arc.c (prepare_move_operands): Always use an
10291 intermediate register when storing a TLS symbols.
10292
10293 2019-07-22 Stafford Horne <shorne@gmail.com>
10294
10295 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10296 force_reg.
10297
10298 2019-07-22 Stafford Horne <shorne@gmail.com>
10299
10300 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10301 and munordered-float validations.
10302 * config/or1k/constraints.md (d): New register constraint.
10303 * config/or1k/predicates.md (fp_comparison_operator): New.
10304 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10305 operands.
10306 (or1k_expand_compare): Normalize unordered comparisons.
10307 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10308 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10309 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10310 * config/or1k/or1k.md (type): Add fpu.
10311 (fpu): New instruction reservation.
10312 (F, f, fr, fi, FI, FOP, fop): New.
10313 (<fop><F:mode>3): New ALU instruction definition.
10314 (float<fi><F:mode>2): New conversion instruction definition.
10315 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10316 (fpcmpcc): New code iterator.
10317 (*sf_fp_insn): New instruction definition.
10318 (cstore<F:mode>4): New expand definition.
10319 (cbranch<F:mode>4): New expand definition.
10320 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10321 munordered-float): New options.
10322 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10323 munordered-float.
10324
10325 2019-07-22 Stafford Horne <shorne@gmail.com>
10326
10327 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10328 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10329 documenation to be more clear.
10330 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10331 more clear.
10332 * config/or1k/or1k.opt (mrori): New option.
10333 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10334 msfimm, mshftimm): Rewrite documentation to be more clear.
10335 * config/or1k/or1k.md (insn_support): Add ror and rori.
10336 (enabled): Add conditions for ror and rori.
10337 (rotrsi3): Replace condition for shftimm with ror and rori.
10338
10339 2019-07-22 Stafford Horne <shorne@gmail.com>
10340
10341 PR target/90363
10342 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10343 (extend<mode>si2): Update predicate.
10344 * config/or1k/predicates.md (volatile_mem_operand): New.
10345 (reg_or_mem_operand): New.
10346
10347 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10348
10349 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10350 * config/rs6000/rs6000-call.c: ... to here.
10351
10352 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10353
10354 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10355 memory.
10356
10357 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10358
10359 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10360
10361 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10362
10363 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10364
10365 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10366
10367 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10368 (any_memory_operand): New predicate.
10369 (reg_or_mem_operand): Use it.
10370
10371 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10372
10373 PR target/91204
10374 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10375
10376 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10377
10378 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10379 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10380
10381 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10382
10383 * tree.def (OMP_LOOP): New tree code.
10384 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10385 (enum omp_clause_bind_kind): New enum.
10386 (struct tree_omp_clause): Add subcode.bind_kind.
10387 * tree.h (OMP_LOOP_CHECK): Rename to ...
10388 (OMP_LOOPING_CHECK): ... this.
10389 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10390 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10391 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10392 (OMP_CLAUSE_BIND_KIND): Define.
10393 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10394 bind clause entries.
10395 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10396 * tree-pretty-print.c (dump_omp_clause): Likewise.
10397 (dump_generic_node): Handle OMP_LOOP.
10398 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10399 (in_omp_construct): New variable.
10400 (is_gimple_stmt): Handle OMP_LOOP.
10401 (gimplify_scan_omp_clauses): For lastprivate don't set
10402 check_non_private if code == OMP_LOOP. For reduction clause
10403 on OMP_LOOP combined with parallel or teams propagate as shared
10404 on the combined construct. Handle OMP_CLAUSE_BIND.
10405 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10406 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10407 for constructs from a loop construct to gimplify_scan_omp_clauses.
10408 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10409 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10410 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10411 to match the implicit ORT_TARGET construct around whole body.
10412 Temporarily clear in_omp_construct when processing body.
10413 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10414 etc. temporarily set in_omp_construct when processing body.
10415 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10416 * omp-low.c (struct omp_context): Add loop_p.
10417 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10418 in that the original var might be private.
10419 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10420 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10421 addition of loop construct.
10422 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10423
10424 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10425 lastprivate non-addressable iterator of a collapse(1) simd.
10426
10427 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10428
10429 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10430 as in rs6000.c.
10431
10432 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10433
10434 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10435 refer to default conditions. Warn for the 'y' spec which is ignored
10436 by current linkers.
10437
10438 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10439
10440 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10441 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10442 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10443 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10444 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10445 init_cumulative_args, rs6000_promote_function_mode,
10446 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10447 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10448 rs6000_function_arg_boundary, rs6000_parm_offset,
10449 rs6000_parm_start, rs6000_arg_size,
10450 rs6000_darwin64_record_arg_advance_flush,
10451 rs6000_darwin64_record_arg_advance_recurse,
10452 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10453 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10454 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10455 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10456 rs6000_finish_function_arg, rs6000_function_arg,
10457 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10458 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10459 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10460 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10461 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10462 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10463 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10464 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10465 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10466 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10467 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10468 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10469 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10470 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10471 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10472 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10473 get_element_number, altivec_expand_vec_set_builtin,
10474 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10475 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10476 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10477 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10478 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10479 rs6000_expand_builtin, rs6000_vector_type,
10480 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10481 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10482 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10483 to rs6000-call.c.
10484 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10485 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10486 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10487 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10488 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10489 init_cumulative_args, rs6000_promote_function_mode,
10490 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10491 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10492 rs6000_function_arg_boundary, rs6000_parm_offset,
10493 rs6000_parm_start, rs6000_arg_size,
10494 rs6000_darwin64_record_arg_advance_flush,
10495 rs6000_darwin64_record_arg_advance_recurse,
10496 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10497 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10498 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10499 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10500 rs6000_finish_function_arg, rs6000_function_arg,
10501 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10502 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10503 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10504 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10505 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10506 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10507 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10508 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10509 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10510 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10511 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10512 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10513 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10514 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10515 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10516 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10517 get_element_number, altivec_expand_vec_set_builtin,
10518 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10519 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10520 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10521 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10522 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10523 rs6000_expand_builtin, rs6000_vector_type,
10524 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10525 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10526 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10527 to here from rs6000.c.
10528 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10529 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10530 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10531 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10532 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10533 rs6000_return_in_memory, rs6000_return_in_msb,
10534 rs6000_pass_by_reference, setup_incoming_varargs,
10535 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10536 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10537 rs6000_function_arg_padding, rs6000_function_arg,
10538 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10539 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10540 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10541 rs6000_passes_long_double, rs6000_passes_vector,
10542 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10543 altivec_builtin_mask_for_load) Add declarations.
10544 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10545 * config/config.gcc: Add new source file rs6000-call.c to garbage
10546 collector and extra_objs.
10547
10548 2019-07-19 Jeff Law <law@redhat.com>
10549
10550 PR tree-optimization/86061
10551 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10552 strncpy. Drop some trivial dead code.
10553 (maybe_trim_memstar_call): Handle strncpy.
10554
10555 2019-07-19 Richard Biener <rguenther@suse.de>
10556
10557 PR tree-optimization/91211
10558 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10559 memset encoding size.
10560
10561 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10562
10563 PR target/91204
10564 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10565
10566 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10567
10568 PR ipa/91194
10569 * ipa-inline.c (recursive_inlining): Fix limits check.
10570
10571 2019-07-19 Richard Biener <rguenther@suse.de>
10572
10573 PR tree-optimization/91200
10574 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10575 no PHI nodes in middle-bb.
10576
10577 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10578
10579 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10580 to +sve-bitperm.
10581 * config/aarch64/aarch64-option-extensions.def: Likewise.
10582
10583 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10584
10585 PR middle-end/91190
10586 * function.c (insert_temp_slot_address): Store into the hash table
10587 a copy of address to avoid RTL sharing issues.
10588
10589 2019-07-19 Richard Biener <rguenther@suse.de>
10590
10591 PR tree-optimization/91207
10592 Revert
10593 2019-07-17 Richard Biener <rguenther@suse.de>
10594
10595 PR tree-optimization/91178
10596 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10597 loads with a gap larger than the vector size always use
10598 VMAT_STRIDED_SLP.
10599 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10600 avoid loading vectors that are only contained in the gap
10601 and thus are not needed.
10602
10603 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10604
10605 * config/i386/i386.md (*addqi_2_slp): Remove.
10606 (*<code>qi_2_slp): Ditto.
10607
10608 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10609
10610 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10611 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10612 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10613 Rename function from rs6000_prefixed_address.
10614 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10615 TARGET_HAS_TOC.
10616 (TARGET_TOC): Likewise.
10617 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10618 rs6000.h.
10619 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10620 TARGET_HAS_TOC.
10621 (TARGET_TOC): Likewise.
10622 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10623 rs6000.h.
10624 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10625 TARGET_HAS_TOC.
10626 (TARGET_TOC): Likewise.
10627 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10628 check to require -mcmodel=medium for pc-relative addressing.
10629 (create_TOC_reference): Add assertion for TARGET_TOC.
10630 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10631 TARGET_NO_TOC.
10632 (rs6000_emit_move): Likewise.
10633 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10634 to 'TOC_alias_set'.
10635 (get_TOC_alias_set): Likewise.
10636 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10637 TARGET_NO_TOC.
10638 (rs6000_can_eliminate): Likewise.
10639 (rs6000_prefixed_address_mode_p): Rename function from
10640 rs6000_prefixed_address.
10641 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10642 TARGET_HAS_TOC and not pc-relative.
10643 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10644 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10645 TARGET_HAS_TOC.
10646 (TARGET_TOC): Likewise.
10647 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10648 rs6000.h.
10649
10650 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10651
10652 PR target/91188
10653 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10654 for operand 0. Do not use (match_dup) to match operand 1 with
10655 operand 0. Add check in insn constraint that either input operand
10656 matches operand 0. Use SWI12 mode iterator to also handle
10657 HImode operands.
10658 (*and<mode>_1_slp): Ditto.
10659 (*<code>qi_1_slp): Ditto.
10660 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10661 Do not use (match_dup) to match operand 1 with operand 0. Add
10662 check in insn constraint that operand 1 matches operand 0.
10663 Use SWI12 mode iterator to also handle HImode operands.
10664 (*ashl<mode>3_1_slp): Ditto.
10665 (*<shift_insn><mode>3_1_slp): Ditto.
10666 (*<rotate_insn><mode>3_1_slp): Ditto.
10667
10668 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10669
10670 * config/arm/arm-builtins.c
10671 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10672 (arm_expand_unop_builtin): Likewise.
10673 * config/arm/crypto.md
10674 (crypto_sha1h): Convert from define_insn to define_expand.
10675 (crypto_<crypto_pattern>): Likewise.
10676 (crypto_sha1h_lb): New define_insn.
10677 (crypto_<crypto_pattern>_lb): Likewise.
10678
10679 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10680
10681 PR target/90317
10682 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10683 (vsha1cq_u32): Likewise.
10684 (vsha1pq_u32): Likewise.
10685 (vsha1mq_u32): Likewise.
10686 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10687 vec select.
10688 (crypto_sha1c): Correct vec select.
10689 (crypto_sha1m): Likewise.
10690 (crypto_sha1p): Likewise.
10691
10692 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10693
10694 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10695 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10696 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10697 (subdi_zesidi_zesidi): Likewise.
10698 (negdi2_compare, negdi2_insn): Likewise.
10699 (negdi_extensidi): Likewise.
10700 (negdi_zero_extendsidi): Likewise.
10701 (arm_cmpdi_insn): Likewise.
10702 (subsi3_carryin): Use arm_borrow_operation.
10703 (subsi3_carryin_const): Likewise.
10704 (subsi3_carryin_const0): Likewise.
10705 (subsi3_carryin_compare): Likewise.
10706 (subsi3_carryin_compare_const): Likewise.
10707 (subsi3_carryin_compare_const0): Likewise.
10708 (subsi3_carryin_shift): Likewise.
10709 (rsbsi3_carryin_shift): Likewise.
10710 (negsi2_carryin_compare): Likewise.
10711
10712 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10713
10714 PR tree-optimization/91137
10715 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10716 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10717 Init, use and fini the above new field.
10718 (determine_base_object_1): New function.
10719 (determine_base_object): Reimplement using walk_tree.
10720
10721 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10722
10723 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10724 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10725 CLEANUP_FORCE_FAST_DCE is set.
10726 * ifcvt.c (rest_of_handle_if_conversion): Pass
10727 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10728 if-conversion succeeded.
10729
10730 2019-07-18 Richard Biener <rguenther@suse.de>
10731
10732 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10733 branches to make code less indented.
10734
10735 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10736
10737 PR middle-end/81824
10738 * attribs.c (decls_mismatched_attributes): Simplify the logic
10739 that avoids duplicates and false positives.
10740
10741 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10742
10743 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10744 data into data section when generating PIC code.
10745 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10746 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10747 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10748 return 2 for SOM and 0 for other targets.
10749
10750 2019-07-17 Jeff Law <law@redhat.com>
10751
10752 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10753 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10754 avoid unexpected switch statement fallthru.
10755
10756 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10757
10758 * config/i386/i386.md (*add<dwi>3_doubleword):
10759 Remove redundant constraints.
10760 (*add<mode>_1): Ditto.
10761 (*addhi_1): Ditto.
10762 (*addqi_1): Ditto.
10763 (*addqi_1_slp): Ditto.
10764 (*add<mode>_2): Ditto.
10765 (*addv<mode>4): Ditto.
10766 (*sub<dwi>3_doubleword): Ditto.
10767 (*sub<mode>_1): Ditto.
10768 (*subqi_1_slp): Ditto.
10769 (*sub<mode>_2): Ditto.
10770 (*subv<mode>4): Ditto.
10771 (*sub<mode>_3): Ditto.
10772 (@add<mode>3_carry): Ditto.
10773 (@sub<mode>3_carry): Ditto.
10774 (*add<mode>3_cc_overflow_1): Ditto.
10775 (*add<mode>3_zext_cc_overflow_2): Ditto.
10776 (*anddi_1): Ditto.
10777 (*and<mode>_1): Ditto.
10778 (*andqi_1): Ditto.
10779 (*andqi_1_slp): Ditto.
10780 (*anddi_2): Ditto.
10781 (*andqi_2_maybe_si): Ditto.
10782 (*and<mode>_2): Ditto.
10783 (*andqi_2_slp): Ditto.
10784 (*<code><mode>_1): Ditto.
10785 (*<code>qi_1): Ditto.
10786 (*<code>qi_1_slp): Ditto.
10787 (*<code><mode>_2): Ditto.
10788 (*<code>qi_2_slp): Ditto.
10789
10790 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10791
10792 * alias.c (record_component_aliases): Do not simplify pointed-to
10793 types of ODR types.
10794
10795 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10796
10797 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10798 partial reg stall on alternative 2.
10799
10800 2019-07-17 Richard Biener <rguenther@suse.de>
10801
10802 PR tree-optimization/91178
10803 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10804 lower SSA names to avoid quadratic behavior in the common case.
10805 * tree-data-ref.c (split_constant_offset): Add limit argument
10806 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10807 (split_constant_offset_1): Add limit argument and use it to
10808 limit SSA def walking. Optimize the common plus/minus case.
10809
10810 2019-07-17 Richard Biener <rguenther@suse.de>
10811
10812 PR tree-optimization/91178
10813 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10814 loads with a gap larger than the vector size always use
10815 VMAT_STRIDED_SLP.
10816 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10817 avoid loading vectors that are only contained in the gap
10818 and thus are not needed.
10819
10820 2019-07-17 Richard Biener <rguenther@suse.de>
10821
10822 PR tree-optimization/91180
10823 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10824 computation for memset partial defs.
10825
10826 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10827
10828 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10829 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10830 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10831 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10832 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10833 * omp-grid.c (grid_process_grid_body,
10834 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10835 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10836 == GF_OMP_FOR_KIND_SIMD.
10837 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10838 check_omp_nesting_restrictions, scan_omp_1_stmt,
10839 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10840 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10841 omp_find_scan): Likewise.
10842 * omp-expand.c (expand_omp_for): Likewise.
10843 * omp-general.c (omp_extract_for_data): Likewise.
10844
10845 PR tree-optimization/91157
10846 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10847 a vector boolean with scalar mode.
10848 (expand_vector_condition): Handle first operand being a vector boolean
10849 with scalar mode.
10850 (expand_vector_operations_1): For comparisons, don't bail out early
10851 if the return type is vector boolean with scalar mode, but comparison
10852 operand type is not.
10853
10854 2019-07-17 Richard Biener <rguenther@suse.de>
10855
10856 PR tree-optimization/91181
10857 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10858 IFN_LOADs as calls.
10859
10860 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10861
10862 * config/i386/i386.md (*testdi_1): Match CCZmode for
10863 constants that might have the SImode sign bit set.
10864 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10865 Use correct constraints for pentium pairing.
10866 (*test<mode>_1): Ditto.
10867
10868 2019-07-16 Jeff Law <law@redhat.com>
10869
10870 PR rtl-optimization/91173
10871 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10872 SSA_NAME with a constant value, fold its value into the offset
10873 and clear the base before calling gen_addr_rtx.
10874
10875 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10876
10877 PR rtl-optimization/91164
10878 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10879 invalidate dominance info.
10880
10881 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10882
10883 * read-md.h (md_reader::record_potential_iterator_use): Add a
10884 file_location parameter.
10885 * read-rtl.c (attribute_use::loc): New field.
10886 (map_attr_string): Take a file_location parameter. Report cases
10887 in which attributes map to multiple distinct values.
10888 (apply_attribute_uses): Update call accordingly.
10889 (md_reader::handle_overloaded_name): Likewise.
10890 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10891 nonnull strings.
10892 (record_attribute_use): Take a file_location parameter.
10893 Initialize attribute_use::loc.
10894 (md_reader::record_potential_iterator_use): Take a file_location
10895 parameter. Update call to record_attribute_use.
10896 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10897 (rtx_reader::read_rtx_code): Likewise.
10898 (rtx_reader::read_rtx_operand): Likewise. Record a location
10899 for implicitly-expanded empty strings.
10900
10901 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10902
10903 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10904 Use file_location instead of separate fields.
10905 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10906 separate filename and line number.
10907 * read-md.c (ptr_loc): As above.
10908 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10909 (md_reader::fprint_md_ptr_loc): Likewise.
10910 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10911 instead of a separate filename and line number.
10912 (md_reader::read_string): Update call accordingly.
10913
10914 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10915
10916 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10917 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10918 leaving the choice between SFDF and P implicit.
10919 (*mov<mode>_update2): Likewise.
10920 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10921 rather than leaving the choice betweem IBM128 and GPR implicit.
10922 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10923 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10924 QHSI implicit.
10925 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10926 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10927 * config/rs6000/vsx.md
10928 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10929 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10930 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10931 and VSX_EXTRACT_I implicit.
10932
10933 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10934
10935 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10936 Explicitly use <MOVEP1:MODE> for the mode attribute.
10937
10938 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10939
10940 PR bootstrap/91176
10941 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10942
10943 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10944
10945 PR target/91050
10946 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10947 .machine directive.
10948
10949 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10950
10951 * config/i386/i386.md (@test<mode>_ccno_1):
10952 Rename from test<mode>_ccno_1.
10953 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10954 (*testqi_1_maybe_si): Remove modrm attribute.
10955 (*test<mode>_1): Ditto.
10956 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10957 gen_test_ccno_1 and gen_extend_insn.
10958
10959 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10960
10961 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10962 to 0.
10963
10964 2019-07-15 Richard Biener <rguenther@suse.de>
10965
10966 PR middle-end/91162
10967 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10968 node make sure to replace all uses with something valid.
10969
10970 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10971
10972 PR tree-optimization/88497
10973 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10974 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10975 function undistribute_bitref_for_vector.
10976 (undistribute_bitref_for_vector): New function.
10977 (cleanup_vinfo_map): Likewise.
10978 (sort_by_mach_mode): Likewise.
10979
10980 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10981
10982 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10983 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10984 and testdi_ccno_1 using SWI48 mode attribute.
10985 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10986 x86_64_szext_general_operand.
10987 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10988 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10989 instead of genera_operand mode attribute.
10990
10991 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10992
10993 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10994 fopen and fclose to their respective types.
10995 (DotFn.invoke): Ditto.
10996
10997 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10998
10999 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
11000 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
11001 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
11002 (array_index_predicate): Remove.
11003 (analyze_function_body): Account cost for variable ofsetted array
11004 indexing.
11005 (estimate_node_size_and_time): Do not compute array index hint.
11006 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
11007 (inline_read_section): Do not read array index hint.
11008 (ipa_fn_summary_write): Do not write array index hint.
11009 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
11010 * ipa-cp.c (hint_time_bonus): Remove.
11011 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
11012 (ipa_fnsummary): Remove array_index.
11013 * ipa-inline.c (want_inline_small_function_p): Do not use
11014 array_index.
11015 (edge_badness): Likewise.
11016 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
11017
11018 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
11019
11020 PR target/91148
11021 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
11022 superfluous "builtin function" phrasing.
11023
11024 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
11025
11026 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
11027 Break out from ...
11028 (aliasing_component_refs_walk): Break out from ...
11029 (aliasing_component_refs_p): ... here.
11030
11031 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
11032
11033 PR target/91148
11034 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
11035 "builtin function" phrasing.
11036
11037 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11038
11039 PR target/90723
11040 * recog.h (temporary_volatile_ok): New class.
11041 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
11042 volatile_ok temporarily to true using temporary_volatile_ok.
11043 * expr.c (emit_block_move_via_cpymem): Likewise.
11044 * optabs.c (maybe_legitimize_operand): Likewise.
11045
11046 2019-07-13 Jakub Jelinek <jakub@redhat.com>
11047
11048 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
11049 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
11050 uses inside of order(concurrent) constructs.
11051 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
11052 OMP_CLAUSE_ORDER is seen.
11053 * omp-low.c (struct omp_context): Add order_concurrent member.
11054 (scan_sharing_clauses): Set ctx->order_concurrent if
11055 OMP_CLAUSE_ORDER is seen.
11056 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
11057 of simd order(concurrent). Diagnose constructs not allowed inside of
11058 for order(concurrent).
11059 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
11060 complaining about static double setjmp (double); or class static
11061 methods or non-global namespace setjmps.
11062 (omp_runtime_api_call): New function.
11063 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11064 order(concurrent) loops.
11065
11066 2019-07-12 Martin Sebor <msebor@redhat.com>
11067
11068 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11069 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11070 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11071 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11072
11073 2019-07-12 Jan Hubicka <jh@suse.cz>
11074
11075 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11076 (indirect_refs_may_alias_p): ... here.
11077 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11078 mem refs in the access paths.
11079
11080 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11081
11082 PR tree-optimization/89430
11083 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11084 store elimination for local variable without address escape.
11085
11086 2019-07-12 Jeff Law <law@redhat.com>
11087
11088 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11089 for the ".far" section.
11090
11091 2019-07-12 Richard Biener <rguenther@suse.de>
11092
11093 PR tree-optimization/91145
11094 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11095 chain check.
11096
11097 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11098
11099 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11100 rather than this_state as the lowering context for the ELSE
11101 seq in a GIMPLE_EH_ELSE.
11102
11103 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11104
11105 * vector-builder.h (vector_builder::elt): Allow already-supplied
11106 elements to be read back before building is complete.
11107
11108 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11109
11110 PR rtl-optimization/91136
11111 * df-core.c (ACCESSING REFS): Fix typos in comment.
11112 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11113 the beginning of the block to the initial set of live registers.
11114
11115 2019-07-12 Richard Biener <rguenther@suse.de>
11116
11117 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11118 * fold-const.c (get_array_ctor_element_at_index): Add
11119 ctor_idx output parameter informing the caller where in
11120 the constructor the element was (not) found. Add early exit
11121 for when the ctor is sorted.
11122 * gimple-fold.c (fold_array_ctor_reference): Support constant
11123 folding across multiple array elements.
11124
11125 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11126
11127 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11128 doesn't have location, set the current location to the function's end.
11129
11130 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11131
11132 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11133 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11134 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11135 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11136 * config/aarch64/aarch64-simd.md
11137 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11138 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11139 * config/aarch64/aarch64-sve.md
11140 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11141 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11142
11143 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11144
11145 * doc/md.texi: Document that @ patterns can have different
11146 numbers of operands.
11147 * genemit.c (handle_overloaded_gen): Handle this case.
11148 * genopinit.c (handle_overloaded_gen): Likewise.
11149 * gensupport.c (replace_operands_with_dups): Iterate over
11150 the new rtx's format rather than the old one's.
11151
11152 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11153
11154 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11155 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11156 order clause entries.
11157 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11158 * tree-pretty-print.c (dump_omp_clause): Likewise.
11159 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11160 Likewise.
11161 * omp-low.c (scan_sharing_clauses): Likewise.
11162 * tree-nested.c (convert_nonlocal_omp_clauses,
11163 convert_local_omp_clauses): Likewise.
11164
11165 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11166
11167 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11168 fallthrough target of current basic block isn't the placed
11169 right next.
11170
11171 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11172
11173 PR target/90980
11174 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11175 (_mm512_storeu_epi64): Likewise.
11176 (_mm512_loadu_epi32): Likewise.
11177 (_mm512_storeu_epi32): Likewise.
11178 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11179 (_mm_storeu_epi64): Likewise.
11180 (_mm256_storeu_epi32): Likewise.
11181 (_mm_storeu_epi32): Likewise.
11182
11183 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11184
11185 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11186
11187 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11188
11189 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11190 Handle Modula-2.
11191
11192 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11193
11194 PR target/91124
11195 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11196 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11197 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11198 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11199 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11200 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11201 define_insns.
11202 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11203 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11204 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11205 define_insns.
11206 (sse2_cvttpd2dq<mask_name>): Change into ...
11207 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11208 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11209 (*sse2_cvtpd2dq<mask_name>): Change into ...
11210 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11211 Add "C" constraint to const0_operand.
11212 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11213 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11214 changes.
11215
11216 PR target/91124
11217 * config/i386/i386-builtin-types.def
11218 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11219 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11220 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11221 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11222 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11223 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11224 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11225 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11226 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11227 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11228 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11229 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11230 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11231 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11232 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11233 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11234 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11235 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11236 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11237 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11238 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11239 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11240 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11241 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11242 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11243 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11244 __builtin_ia32_vpdpbusd_v4si_maskz,
11245 __builtin_ia32_vpdpbusds_v16si_mask,
11246 __builtin_ia32_vpdpbusds_v16si_maskz,
11247 __builtin_ia32_vpdpbusds_v8si_mask,
11248 __builtin_ia32_vpdpbusds_v8si_maskz,
11249 __builtin_ia32_vpdpbusds_v4si_mask,
11250 __builtin_ia32_vpdpbusds_v4si_maskz,
11251 __builtin_ia32_vpdpwssd_v16si_mask,
11252 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11253 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11254 __builtin_ia32_vpdpwssd_v4si_maskz,
11255 __builtin_ia32_vpdpwssds_v16si_mask,
11256 __builtin_ia32_vpdpwssds_v16si_maskz,
11257 __builtin_ia32_vpdpwssds_v8si_mask,
11258 __builtin_ia32_vpdpwssds_v8si_maskz,
11259 __builtin_ia32_vpdpwssds_v4si_mask,
11260 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11261 suffixed types rather than *_INT.
11262 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11263 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11264 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11265 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11266 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11267 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11268
11269 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11270
11271 * tree-vrp.c (intersect_ranges): If we know the intersection is
11272 empty, there is no need to conservatively add anything else to
11273 the set.
11274
11275 2019-07-11 Richard Biener <rguenther@suse.de>
11276
11277 PR middle-end/91131
11278 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11279 when the object is volatile and we have not cleared it even though
11280 there are no nonzero elements.
11281
11282 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11283
11284 * config/rs6000/predicates.md (cint34_operand): Update
11285 SIGNED_34BIT_OFFSET_P call.
11286 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11287 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11288 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11289 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11290 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11291 argument.
11292 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11293 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11294 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11295 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11296 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11297
11298 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11299
11300 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11301 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11302 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11303 (DEF_MIN_OSX_VERSION): New.
11304
11305 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11306
11307 * fold-const.c (fold_relational_const): Fix folding of
11308 vector-to-scalar NE_EXPRs.
11309 (test_vector_folding): Add more tests.
11310
11311 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11312
11313 PR target/91060
11314 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11315 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11316 (vec_setv2di_internal): Reexpress as...
11317 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11318 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11319 rather than gen_neon_vset_lane<mode>.
11320
11321 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11322
11323 PR target/91102
11324 * lra-constraints.c (process_alt_operands): Don't match user
11325 defined regs only if they are early clobbers.
11326
11327 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11328
11329 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11330
11331 2019-07-10 Richard Biener <rguenther@suse.de>
11332
11333 PR tree-optimization/91126
11334 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11335 native encoding offset for BYTES_BIG_ENDIAN.
11336 (vn_reference_lookup_3): Likewise.
11337
11338 2019-07-10 Richard Biener <rguenther@suse.de>
11339
11340 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11341 LHS whenever possible.
11342
11343 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11344
11345 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11346 from ...; work also on duplicated types.
11347 (nonoverlapping_component_refs_since_match): ... here
11348 (ncr_type_uid): Break out from ...
11349 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11350 available.
11351 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11352 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11353
11354 2019-07-09 Martin Sebor <msebor@redhat.com>
11355
11356 PR tree-optimization/90989
11357 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11358 optimization to just single character stores.
11359
11360 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11361
11362 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11363 Swap operands only once.
11364
11365 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11366
11367 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11368 for both call instructions.
11369
11370 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11371
11372 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11373 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11374
11375 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11376
11377 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11378 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11379 function from rs6000-logue.c back to rs6000.c.
11380 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11381
11382 2019-07-09 Martin Sebor <msebor@redhat.com>
11383
11384 PR c++/61339
11385 * auto-profile.c: Change class-key of PODs to struct and others
11386 to class.
11387 * basic-block.h: Same.
11388 * bitmap.c (bitmap_alloc): Same.
11389 * bitmap.h: Same.
11390 * builtins.c (expand_builtin_prefetch): Same.
11391 (expand_builtin_interclass_mathfn): Same.
11392 (expand_builtin_strlen): Same.
11393 (expand_builtin_mempcpy_args): Same.
11394 (expand_cmpstr): Same.
11395 (expand_builtin___clear_cache): Same.
11396 (expand_ifn_atomic_bit_test_and): Same.
11397 (expand_builtin_thread_pointer): Same.
11398 (expand_builtin_set_thread_pointer): Same.
11399 * caller-save.c (setup_save_areas): Same.
11400 (replace_reg_with_saved_mem): Same.
11401 (insert_restore): Same.
11402 (insert_save): Same.
11403 (add_used_regs): Same.
11404 * cfg.c (get_bb_copy): Same.
11405 (set_loop_copy): Same.
11406 * cfg.h: Same.
11407 * cfganal.h: Same.
11408 * cfgexpand.c (alloc_stack_frame_space): Same.
11409 (add_stack_var): Same.
11410 (add_stack_var_conflict): Same.
11411 (add_scope_conflicts_1): Same.
11412 (update_alias_info_with_stack_vars): Same.
11413 (expand_used_vars): Same.
11414 * cfghooks.c (redirect_edge_and_branch_force): Same.
11415 (delete_basic_block): Same.
11416 (split_edge): Same.
11417 (make_forwarder_block): Same.
11418 (force_nonfallthru): Same.
11419 (duplicate_block): Same.
11420 (lv_flush_pending_stmts): Same.
11421 * cfghooks.h: Same.
11422 * cfgloop.c (flow_loops_cfg_dump): Same.
11423 (flow_loop_nested_p): Same.
11424 (superloop_at_depth): Same.
11425 (get_loop_latch_edges): Same.
11426 (flow_loop_dump): Same.
11427 (flow_loops_dump): Same.
11428 (flow_loops_free): Same.
11429 (flow_loop_nodes_find): Same.
11430 (establish_preds): Same.
11431 (flow_loop_tree_node_add): Same.
11432 (flow_loop_tree_node_remove): Same.
11433 (flow_loops_find): Same.
11434 (find_subloop_latch_edge_by_profile): Same.
11435 (find_subloop_latch_edge_by_ivs): Same.
11436 (mfb_redirect_edges_in_set): Same.
11437 (form_subloop): Same.
11438 (merge_latch_edges): Same.
11439 (disambiguate_multiple_latches): Same.
11440 (disambiguate_loops_with_multiple_latches): Same.
11441 (flow_bb_inside_loop_p): Same.
11442 (glb_enum_p): Same.
11443 (get_loop_body_with_size): Same.
11444 (get_loop_body): Same.
11445 (fill_sons_in_loop): Same.
11446 (get_loop_body_in_dom_order): Same.
11447 (get_loop_body_in_custom_order): Same.
11448 (release_recorded_exits): Same.
11449 (get_loop_exit_edges): Same.
11450 (num_loop_branches): Same.
11451 (remove_bb_from_loops): Same.
11452 (find_common_loop): Same.
11453 (delete_loop): Same.
11454 (cancel_loop): Same.
11455 (verify_loop_structure): Same.
11456 (loop_preheader_edge): Same.
11457 (loop_exit_edge_p): Same.
11458 (single_exit): Same.
11459 (loop_exits_to_bb_p): Same.
11460 (loop_exits_from_bb_p): Same.
11461 (get_loop_location): Same.
11462 (record_niter_bound): Same.
11463 (get_estimated_loop_iterations_int): Same.
11464 (max_stmt_executions_int): Same.
11465 (likely_max_stmt_executions_int): Same.
11466 (get_estimated_loop_iterations): Same.
11467 (get_max_loop_iterations): Same.
11468 (get_max_loop_iterations_int): Same.
11469 (get_likely_max_loop_iterations): Same.
11470 * cfgloop.h (simple_loop_desc): Same.
11471 (get_loop): Same.
11472 (loop_depth): Same.
11473 (loop_outer): Same.
11474 (loop_iterator::next): Same.
11475 (loop_outermost): Same.
11476 * cfgloopanal.c (mark_irreducible_loops): Same.
11477 (num_loop_insns): Same.
11478 (average_num_loop_insns): Same.
11479 (expected_loop_iterations_unbounded): Same.
11480 (expected_loop_iterations): Same.
11481 (mark_loop_exit_edges): Same.
11482 (single_likely_exit): Same.
11483 * cfgloopmanip.c (fix_bb_placement): Same.
11484 (fix_bb_placements): Same.
11485 (remove_path): Same.
11486 (place_new_loop): Same.
11487 (add_loop): Same.
11488 (scale_loop_frequencies): Same.
11489 (scale_loop_profile): Same.
11490 (create_empty_if_region_on_edge): Same.
11491 (create_empty_loop_on_edge): Same.
11492 (loopify): Same.
11493 (unloop): Same.
11494 (fix_loop_placements): Same.
11495 (copy_loop_info): Same.
11496 (duplicate_loop): Same.
11497 (duplicate_subloops): Same.
11498 (loop_redirect_edge): Same.
11499 (can_duplicate_loop_p): Same.
11500 (duplicate_loop_to_header_edge): Same.
11501 (mfb_keep_just): Same.
11502 (has_preds_from_loop): Same.
11503 (create_preheader): Same.
11504 (create_preheaders): Same.
11505 (lv_adjust_loop_entry_edge): Same.
11506 (loop_version): Same.
11507 * cfgloopmanip.h: Same.
11508 * cgraph.h: Same.
11509 * cgraphbuild.c: Same.
11510 * combine.c (make_extraction): Same.
11511 * config/i386/i386-features.c: Same.
11512 * config/i386/i386-features.h: Same.
11513 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11514 (ix86_emit_outlined_ms2sysv_restore): Same.
11515 (ix86_noce_conversion_profitable_p): Same.
11516 (ix86_init_cost): Same.
11517 (ix86_simd_clone_usable): Same.
11518 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11519 Wstruct-not-pod.
11520 * coretypes.h: Same.
11521 * data-streamer-in.c (string_for_index): Change class-key of PODs
11522 to struct and others to class.
11523 (streamer_read_indexed_string): Same.
11524 (streamer_read_string): Same.
11525 (bp_unpack_indexed_string): Same.
11526 (bp_unpack_string): Same.
11527 (streamer_read_uhwi): Same.
11528 (streamer_read_hwi): Same.
11529 (streamer_read_gcov_count): Same.
11530 (streamer_read_wide_int): Same.
11531 * data-streamer.h (streamer_write_bitpack): Same.
11532 (bp_unpack_value): Same.
11533 (streamer_write_char_stream): Same.
11534 (streamer_write_hwi_in_range): Same.
11535 (streamer_write_record_start): Same.
11536 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11537 (add_cross_iteration_register_deps): Same.
11538 (build_intra_loop_deps): Same.
11539 * df-core.c (df_analyze): Same.
11540 (loop_post_order_compute): Same.
11541 (loop_inverted_post_order_compute): Same.
11542 * df-problems.c (df_rd_alloc): Same.
11543 (df_rd_simulate_one_insn): Same.
11544 (df_rd_local_compute): Same.
11545 (df_rd_init_solution): Same.
11546 (df_rd_confluence_n): Same.
11547 (df_rd_transfer_function): Same.
11548 (df_rd_free): Same.
11549 (df_rd_dump_defs_set): Same.
11550 (df_rd_top_dump): Same.
11551 (df_lr_alloc): Same.
11552 (df_lr_reset): Same.
11553 (df_lr_local_compute): Same.
11554 (df_lr_init): Same.
11555 (df_lr_confluence_n): Same.
11556 (df_lr_free): Same.
11557 (df_lr_top_dump): Same.
11558 (df_lr_verify_transfer_functions): Same.
11559 (df_live_alloc): Same.
11560 (df_live_reset): Same.
11561 (df_live_init): Same.
11562 (df_live_confluence_n): Same.
11563 (df_live_finalize): Same.
11564 (df_live_free): Same.
11565 (df_live_top_dump): Same.
11566 (df_live_verify_transfer_functions): Same.
11567 (df_mir_alloc): Same.
11568 (df_mir_reset): Same.
11569 (df_mir_init): Same.
11570 (df_mir_confluence_n): Same.
11571 (df_mir_free): Same.
11572 (df_mir_top_dump): Same.
11573 (df_word_lr_alloc): Same.
11574 (df_word_lr_reset): Same.
11575 (df_word_lr_init): Same.
11576 (df_word_lr_confluence_n): Same.
11577 (df_word_lr_free): Same.
11578 (df_word_lr_top_dump): Same.
11579 (df_md_alloc): Same.
11580 (df_md_simulate_one_insn): Same.
11581 (df_md_reset): Same.
11582 (df_md_init): Same.
11583 (df_md_free): Same.
11584 (df_md_top_dump): Same.
11585 * df-scan.c (df_insn_delete): Same.
11586 (df_insn_rescan): Same.
11587 (df_notes_rescan): Same.
11588 (df_sort_and_compress_mws): Same.
11589 (df_install_mws): Same.
11590 (df_refs_add_to_chains): Same.
11591 (df_ref_create_structure): Same.
11592 (df_ref_record): Same.
11593 (df_def_record_1): Same.
11594 (df_find_hard_reg_defs): Same.
11595 (df_uses_record): Same.
11596 (df_get_conditional_uses): Same.
11597 (df_get_call_refs): Same.
11598 (df_recompute_luids): Same.
11599 (df_get_entry_block_def_set): Same.
11600 (df_entry_block_defs_collect): Same.
11601 (df_get_exit_block_use_set): Same.
11602 (df_exit_block_uses_collect): Same.
11603 (df_mws_verify): Same.
11604 (df_bb_verify): Same.
11605 * df.h (df_scan_get_bb_info): Same.
11606 * doc/tm.texi: Same.
11607 * dse.c (record_store): Same.
11608 * dumpfile.h: Same.
11609 * emit-rtl.c (const_fixed_hasher::equal): Same.
11610 (set_mem_attributes_minus_bitpos): Same.
11611 (change_address): Same.
11612 (adjust_address_1): Same.
11613 (offset_address): Same.
11614 * emit-rtl.h: Same.
11615 * except.c (dw2_build_landing_pads): Same.
11616 (sjlj_emit_dispatch_table): Same.
11617 * explow.c (allocate_dynamic_stack_space): Same.
11618 (emit_stack_probe): Same.
11619 (probe_stack_range): Same.
11620 * expmed.c (store_bit_field_using_insv): Same.
11621 (store_bit_field_1): Same.
11622 (store_integral_bit_field): Same.
11623 (extract_bit_field_using_extv): Same.
11624 (extract_bit_field_1): Same.
11625 (emit_cstore): Same.
11626 * expr.c (emit_block_move_via_cpymem): Same.
11627 (expand_cmpstrn_or_cmpmem): Same.
11628 (set_storage_via_setmem): Same.
11629 (emit_single_push_insn_1): Same.
11630 (expand_assignment): Same.
11631 (store_constructor): Same.
11632 (expand_expr_real_2): Same.
11633 (expand_expr_real_1): Same.
11634 (try_casesi): Same.
11635 * flags.h: Same.
11636 * function.c (try_fit_stack_local): Same.
11637 (assign_stack_local_1): Same.
11638 (assign_stack_local): Same.
11639 (cut_slot_from_list): Same.
11640 (insert_slot_to_list): Same.
11641 (max_slot_level): Same.
11642 (move_slot_to_level): Same.
11643 (temp_address_hasher::equal): Same.
11644 (remove_unused_temp_slot_addresses): Same.
11645 (assign_temp): Same.
11646 (combine_temp_slots): Same.
11647 (update_temp_slot_address): Same.
11648 (preserve_temp_slots): Same.
11649 * function.h: Same.
11650 * fwprop.c: Same.
11651 * gcc-rich-location.h: Same.
11652 * gcov.c: Same.
11653 * genattrtab.c (check_attr_test): Same.
11654 (check_attr_value): Same.
11655 (convert_set_attr_alternative): Same.
11656 (convert_set_attr): Same.
11657 (check_defs): Same.
11658 (copy_boolean): Same.
11659 (get_attr_value): Same.
11660 (expand_delays): Same.
11661 (make_length_attrs): Same.
11662 (min_fn): Same.
11663 (make_alternative_compare): Same.
11664 (simplify_test_exp): Same.
11665 (tests_attr_p): Same.
11666 (get_attr_order): Same.
11667 (clear_struct_flag): Same.
11668 (gen_attr): Same.
11669 (compares_alternatives_p): Same.
11670 (gen_insn): Same.
11671 (gen_delay): Same.
11672 (find_attrs_to_cache): Same.
11673 (write_test_expr): Same.
11674 (walk_attr_value): Same.
11675 (write_attr_get): Same.
11676 (eliminate_known_true): Same.
11677 (write_insn_cases): Same.
11678 (write_attr_case): Same.
11679 (write_attr_valueq): Same.
11680 (write_attr_value): Same.
11681 (write_dummy_eligible_delay): Same.
11682 (next_comma_elt): Same.
11683 (find_attr): Same.
11684 (make_internal_attr): Same.
11685 (copy_rtx_unchanging): Same.
11686 (gen_insn_reserv): Same.
11687 (check_tune_attr): Same.
11688 (make_automaton_attrs): Same.
11689 (handle_arg): Same.
11690 * genextract.c (gen_insn): Same.
11691 (VEC_char_to_string): Same.
11692 * genmatch.c (print_operand): Same.
11693 (lower): Same.
11694 (parser::parse_operation): Same.
11695 (parser::parse_capture): Same.
11696 (parser::parse_c_expr): Same.
11697 (parser::parse_simplify): Same.
11698 (main): Same.
11699 * genoutput.c (output_operand_data): Same.
11700 (output_get_insn_name): Same.
11701 (compare_operands): Same.
11702 (place_operands): Same.
11703 (process_template): Same.
11704 (validate_insn_alternatives): Same.
11705 (validate_insn_operands): Same.
11706 (gen_expand): Same.
11707 (note_constraint): Same.
11708 * genpreds.c (write_one_predicate_function): Same.
11709 (add_constraint): Same.
11710 (process_define_register_constraint): Same.
11711 (write_lookup_constraint_1): Same.
11712 (write_lookup_constraint_array): Same.
11713 (write_insn_constraint_len): Same.
11714 (write_reg_class_for_constraint_1): Same.
11715 (write_constraint_satisfied_p_array): Same.
11716 * genrecog.c (optimize_subroutine_group): Same.
11717 * gensupport.c (process_define_predicate): Same.
11718 (queue_pattern): Same.
11719 (remove_from_queue): Same.
11720 (process_rtx): Same.
11721 (is_predicable): Same.
11722 (change_subst_attribute): Same.
11723 (subst_pattern_match): Same.
11724 (alter_constraints): Same.
11725 (alter_attrs_for_insn): Same.
11726 (shift_output_template): Same.
11727 (alter_output_for_subst_insn): Same.
11728 (process_one_cond_exec): Same.
11729 (subst_dup): Same.
11730 (process_define_cond_exec): Same.
11731 (mnemonic_htab_callback): Same.
11732 (gen_mnemonic_attr): Same.
11733 (read_md_rtx): Same.
11734 * ggc-page.c: Same.
11735 * gimple-loop-interchange.cc (dump_reduction): Same.
11736 (dump_induction): Same.
11737 (loop_cand::~loop_cand): Same.
11738 (free_data_refs_with_aux): Same.
11739 (tree_loop_interchange::interchange_loops): Same.
11740 (tree_loop_interchange::map_inductions_to_loop): Same.
11741 (tree_loop_interchange::move_code_to_inner_loop): Same.
11742 (compute_access_stride): Same.
11743 (compute_access_strides): Same.
11744 (proper_loop_form_for_interchange): Same.
11745 (tree_loop_interchange_compute_ddrs): Same.
11746 (prune_datarefs_not_in_loop): Same.
11747 (prepare_data_references): Same.
11748 (pass_linterchange::execute): Same.
11749 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11750 (unroll_jam_possible_p): Same.
11751 (fuse_loops): Same.
11752 (adjust_unroll_factor): Same.
11753 (tree_loop_unroll_and_jam): Same.
11754 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11755 (loop_versioning::expensive_stmt_p): Same.
11756 (loop_versioning::version_for_unity): Same.
11757 (loop_versioning::dump_inner_likelihood): Same.
11758 (loop_versioning::find_per_loop_multiplication): Same.
11759 (loop_versioning::analyze_term_using_scevs): Same.
11760 (loop_versioning::record_address_fragment): Same.
11761 (loop_versioning::analyze_expr): Same.
11762 (loop_versioning::analyze_blocks): Same.
11763 (loop_versioning::prune_conditions): Same.
11764 (loop_versioning::merge_loop_info): Same.
11765 (loop_versioning::add_loop_to_queue): Same.
11766 (loop_versioning::decide_whether_loop_is_versionable): Same.
11767 (loop_versioning::make_versioning_decisions): Same.
11768 (loop_versioning::implement_versioning_decisions): Same.
11769 * gimple-ssa-evrp-analyze.c
11770 (evrp_range_analyzer::record_ranges_from_phis): Same.
11771 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11772 (count_multiple_uses): Same.
11773 (split_group): Same.
11774 (imm_store_chain_info::output_merged_store): Same.
11775 (pass_store_merging::process_store): Same.
11776 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11777 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11778 (is_max): Same.
11779 (alloca_call_type): Same.
11780 (pass_walloca::execute): Same.
11781 * gimple-streamer-in.c (input_phi): Same.
11782 (input_gimple_stmt): Same.
11783 * gimple-streamer.h: Same.
11784 * godump.c (go_force_record_alignment): Same.
11785 (go_format_type): Same.
11786 (go_output_type): Same.
11787 (go_output_fndecl): Same.
11788 (go_output_typedef): Same.
11789 (keyword_hash_init): Same.
11790 (find_dummy_types): Same.
11791 * graph.c (draw_cfg_nodes_no_loops): Same.
11792 (draw_cfg_nodes_for_loop): Same.
11793 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11794 * hsa-brig.c: Same.
11795 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11796 * hsa-dump.c (dump_hsa_cfun): Same.
11797 * hsa-gen.c (gen_function_def_parameters): Same.
11798 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11799 * input.c (dump_line_table_statistics): Same.
11800 (test_lexer): Same.
11801 * input.h: Same.
11802 * internal-fn.c (get_multi_vector_move): Same.
11803 (expand_load_lanes_optab_fn): Same.
11804 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11805 (expand_GOMP_SIMT_EXIT): Same.
11806 (expand_GOMP_SIMT_LAST_LANE): Same.
11807 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11808 (expand_GOMP_SIMT_VOTE_ANY): Same.
11809 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11810 (expand_GOMP_SIMT_XCHG_IDX): Same.
11811 (expand_addsub_overflow): Same.
11812 (expand_neg_overflow): Same.
11813 (expand_mul_overflow): Same.
11814 (expand_call_mem_ref): Same.
11815 (expand_mask_load_optab_fn): Same.
11816 (expand_scatter_store_optab_fn): Same.
11817 (expand_gather_load_optab_fn): Same.
11818 * ipa-cp.c (ipa_get_parm_lattices): Same.
11819 (print_all_lattices): Same.
11820 (ignore_edge_p): Same.
11821 (build_toporder_info): Same.
11822 (free_toporder_info): Same.
11823 (push_node_to_stack): Same.
11824 (ipcp_lattice<valtype>::set_contains_variable): Same.
11825 (set_agg_lats_to_bottom): Same.
11826 (ipcp_bits_lattice::meet_with): Same.
11827 (set_single_call_flag): Same.
11828 (initialize_node_lattices): Same.
11829 (ipa_get_jf_ancestor_result): Same.
11830 (ipcp_verify_propagated_values): Same.
11831 (propagate_scalar_across_jump_function): Same.
11832 (propagate_context_across_jump_function): Same.
11833 (propagate_bits_across_jump_function): Same.
11834 (ipa_vr_operation_and_type_effects): Same.
11835 (propagate_vr_across_jump_function): Same.
11836 (set_check_aggs_by_ref): Same.
11837 (set_chain_of_aglats_contains_variable): Same.
11838 (merge_aggregate_lattices): Same.
11839 (agg_pass_through_permissible_p): Same.
11840 (propagate_aggs_across_jump_function): Same.
11841 (call_passes_through_thunk_p): Same.
11842 (propagate_constants_across_call): Same.
11843 (devirtualization_time_bonus): Same.
11844 (good_cloning_opportunity_p): Same.
11845 (context_independent_aggregate_values): Same.
11846 (gather_context_independent_values): Same.
11847 (perform_estimation_of_a_value): Same.
11848 (estimate_local_effects): Same.
11849 (value_topo_info<valtype>::add_val): Same.
11850 (add_all_node_vals_to_toposort): Same.
11851 (value_topo_info<valtype>::propagate_effects): Same.
11852 (ipcp_propagate_stage): Same.
11853 (ipcp_discover_new_direct_edges): Same.
11854 (same_node_or_its_all_contexts_clone_p): Same.
11855 (cgraph_edge_brings_value_p): Same.
11856 (gather_edges_for_value): Same.
11857 (create_specialized_node): Same.
11858 (find_more_scalar_values_for_callers_subset): Same.
11859 (find_more_contexts_for_caller_subset): Same.
11860 (copy_plats_to_inter): Same.
11861 (intersect_aggregates_with_edge): Same.
11862 (find_aggregate_values_for_callers_subset): Same.
11863 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11864 (decide_about_value): Same.
11865 (decide_whether_version_node): Same.
11866 (spread_undeadness): Same.
11867 (identify_dead_nodes): Same.
11868 (ipcp_store_vr_results): Same.
11869 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11870 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11871 (redirect_to_unreachable): Same.
11872 (edge_set_predicate): Same.
11873 (evaluate_conditions_for_known_args): Same.
11874 (evaluate_properties_for_edge): Same.
11875 (ipa_fn_summary_t::duplicate): Same.
11876 (ipa_call_summary_t::duplicate): Same.
11877 (dump_ipa_call_summary): Same.
11878 (ipa_dump_fn_summary): Same.
11879 (eliminated_by_inlining_prob): Same.
11880 (set_cond_stmt_execution_predicate): Same.
11881 (set_switch_stmt_execution_predicate): Same.
11882 (compute_bb_predicates): Same.
11883 (will_be_nonconstant_expr_predicate): Same.
11884 (phi_result_unknown_predicate): Same.
11885 (analyze_function_body): Same.
11886 (compute_fn_summary): Same.
11887 (estimate_edge_devirt_benefit): Same.
11888 (estimate_edge_size_and_time): Same.
11889 (estimate_calls_size_and_time): Same.
11890 (estimate_node_size_and_time): Same.
11891 (remap_edge_change_prob): Same.
11892 (remap_edge_summaries): Same.
11893 (ipa_merge_fn_summary_after_inlining): Same.
11894 (ipa_fn_summary_generate): Same.
11895 (inline_read_section): Same.
11896 (ipa_fn_summary_read): Same.
11897 (ipa_fn_summary_write): Same.
11898 * ipa-fnsummary.h: Same.
11899 * ipa-hsa.c (ipa_hsa_read_section): Same.
11900 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11901 * ipa-icf.c (sem_function::param_used_p): Same.
11902 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11903 * ipa-inline.c (edge_badness): Same.
11904 (inline_small_functions): Same.
11905 * ipa-polymorphic-call.c
11906 (ipa_polymorphic_call_context::stream_out): Same.
11907 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11908 (predicate::remap_after_inlining): Same.
11909 (predicate::stream_out): Same.
11910 * ipa-predicate.h: Same.
11911 * ipa-profile.c (ipa_profile_read_summary): Same.
11912 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11913 (count_formal_params): Same.
11914 (ipa_dump_param): Same.
11915 (ipa_alloc_node_params): Same.
11916 (ipa_print_node_jump_functions_for_edge): Same.
11917 (ipa_print_node_jump_functions): Same.
11918 (ipa_load_from_parm_agg): Same.
11919 (get_ancestor_addr_info): Same.
11920 (ipa_compute_jump_functions_for_edge): Same.
11921 (ipa_analyze_virtual_call_uses): Same.
11922 (ipa_analyze_stmt_uses): Same.
11923 (ipa_analyze_params_uses_in_bb): Same.
11924 (update_jump_functions_after_inlining): Same.
11925 (try_decrement_rdesc_refcount): Same.
11926 (ipa_impossible_devirt_target): Same.
11927 (update_indirect_edges_after_inlining): Same.
11928 (combine_controlled_uses_counters): Same.
11929 (ipa_edge_args_sum_t::duplicate): Same.
11930 (ipa_write_jump_function): Same.
11931 (ipa_write_indirect_edge_info): Same.
11932 (ipa_write_node_info): Same.
11933 (ipa_read_edge_info): Same.
11934 (ipa_prop_read_section): Same.
11935 (read_replacements_section): Same.
11936 * ipa-prop.h (ipa_get_param_count): Same.
11937 (ipa_get_param): Same.
11938 (ipa_get_type): Same.
11939 (ipa_get_param_move_cost): Same.
11940 (ipa_set_param_used): Same.
11941 (ipa_get_controlled_uses): Same.
11942 (ipa_set_controlled_uses): Same.
11943 (ipa_get_cs_argument_count): Same.
11944 * ipa-pure-const.c (analyze_function): Same.
11945 (pure_const_read_summary): Same.
11946 * ipa-ref.h: Same.
11947 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11948 * ipa-split.c (test_nonssa_use): Same.
11949 (dump_split_point): Same.
11950 (dominated_by_forbidden): Same.
11951 (split_part_set_ssa_name_p): Same.
11952 (find_split_points): Same.
11953 * ira-build.c (finish_loop_tree_nodes): Same.
11954 (low_pressure_loop_node_p): Same.
11955 * ira-color.c (ira_reuse_stack_slot): Same.
11956 * ira-int.h: Same.
11957 * ira.c (setup_reg_equiv): Same.
11958 (print_insn_chain): Same.
11959 (ira): Same.
11960 * loop-doloop.c (doloop_condition_get): Same.
11961 (add_test): Same.
11962 (record_reg_sets): Same.
11963 (doloop_optimize): Same.
11964 * loop-init.c (loop_optimizer_init): Same.
11965 (fix_loop_structure): Same.
11966 * loop-invariant.c (merge_identical_invariants): Same.
11967 (compute_always_reached): Same.
11968 (find_exits): Same.
11969 (may_assign_reg_p): Same.
11970 (find_invariants_bb): Same.
11971 (find_invariants_body): Same.
11972 (replace_uses): Same.
11973 (can_move_invariant_reg): Same.
11974 (free_inv_motion_data): Same.
11975 (move_single_loop_invariants): Same.
11976 (change_pressure): Same.
11977 (mark_ref_regs): Same.
11978 (calculate_loop_reg_pressure): Same.
11979 * loop-iv.c (biv_entry_hasher::equal): Same.
11980 (iv_extend_to_rtx_code): Same.
11981 (check_iv_ref_table_size): Same.
11982 (clear_iv_info): Same.
11983 (latch_dominating_def): Same.
11984 (iv_get_reaching_def): Same.
11985 (iv_constant): Same.
11986 (iv_subreg): Same.
11987 (iv_extend): Same.
11988 (iv_neg): Same.
11989 (iv_add): Same.
11990 (iv_mult): Same.
11991 (get_biv_step): Same.
11992 (record_iv): Same.
11993 (analyzed_for_bivness_p): Same.
11994 (record_biv): Same.
11995 (iv_analyze_biv): Same.
11996 (iv_analyze_expr): Same.
11997 (iv_analyze_def): Same.
11998 (iv_analyze_op): Same.
11999 (iv_analyze): Same.
12000 (iv_analyze_result): Same.
12001 (biv_p): Same.
12002 (eliminate_implied_conditions): Same.
12003 (simplify_using_initial_values): Same.
12004 (shorten_into_mode): Same.
12005 (canonicalize_iv_subregs): Same.
12006 (determine_max_iter): Same.
12007 (check_simple_exit): Same.
12008 (find_simple_exit): Same.
12009 (get_simple_loop_desc): Same.
12010 * loop-unroll.c (report_unroll): Same.
12011 (decide_unrolling): Same.
12012 (unroll_loops): Same.
12013 (loop_exit_at_end_p): Same.
12014 (decide_unroll_constant_iterations): Same.
12015 (unroll_loop_constant_iterations): Same.
12016 (compare_and_jump_seq): Same.
12017 (unroll_loop_runtime_iterations): Same.
12018 (decide_unroll_stupid): Same.
12019 (unroll_loop_stupid): Same.
12020 (referenced_in_one_insn_in_loop_p): Same.
12021 (reset_debug_uses_in_loop): Same.
12022 (analyze_iv_to_split_insn): Same.
12023 * lra-eliminations.c (lra_debug_elim_table): Same.
12024 (setup_can_eliminate): Same.
12025 (form_sum): Same.
12026 (lra_get_elimination_hard_regno): Same.
12027 (lra_eliminate_regs_1): Same.
12028 (eliminate_regs_in_insn): Same.
12029 (update_reg_eliminate): Same.
12030 (init_elimination): Same.
12031 (lra_eliminate): Same.
12032 * lra-int.h: Same.
12033 * lra-lives.c (initiate_live_solver): Same.
12034 * lra-remat.c (create_remat_bb_data): Same.
12035 * lra-spills.c (lra_spill): Same.
12036 * lra.c (lra_set_insn_recog_data): Same.
12037 (lra_set_used_insn_alternative_by_uid): Same.
12038 (init_reg_info): Same.
12039 (expand_reg_info): Same.
12040 * lto-cgraph.c (output_symtab): Same.
12041 (read_identifier): Same.
12042 (get_alias_symbol): Same.
12043 (input_node): Same.
12044 (input_varpool_node): Same.
12045 (input_ref): Same.
12046 (input_edge): Same.
12047 (input_cgraph_1): Same.
12048 (input_refs): Same.
12049 (input_symtab): Same.
12050 (input_offload_tables): Same.
12051 (output_cgraph_opt_summary): Same.
12052 (input_edge_opt_summary): Same.
12053 (input_cgraph_opt_section): Same.
12054 * lto-section-in.c (lto_free_raw_section_data): Same.
12055 (lto_create_simple_input_block): Same.
12056 (lto_free_function_in_decl_state_for_node): Same.
12057 * lto-streamer-in.c (lto_tag_check_set): Same.
12058 (lto_location_cache::revert_location_cache): Same.
12059 (lto_location_cache::input_location): Same.
12060 (lto_input_location): Same.
12061 (stream_input_location_now): Same.
12062 (lto_input_tree_ref): Same.
12063 (lto_input_eh_catch_list): Same.
12064 (input_eh_region): Same.
12065 (lto_init_eh): Same.
12066 (make_new_block): Same.
12067 (input_cfg): Same.
12068 (fixup_call_stmt_edges): Same.
12069 (input_struct_function_base): Same.
12070 (input_function): Same.
12071 (lto_read_body_or_constructor): Same.
12072 (lto_read_tree_1): Same.
12073 (lto_read_tree): Same.
12074 (lto_input_scc): Same.
12075 (lto_input_tree_1): Same.
12076 (lto_input_toplevel_asms): Same.
12077 (lto_input_mode_table): Same.
12078 (lto_reader_init): Same.
12079 (lto_data_in_create): Same.
12080 * lto-streamer-out.c (output_cfg): Same.
12081 * lto-streamer.h: Same.
12082 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12083 (generate_prolog_epilog): Same.
12084 (mark_loop_unsched): Same.
12085 (dump_insn_location): Same.
12086 (loop_canon_p): Same.
12087 (sms_schedule): Same.
12088 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12089 (expand_omp_for_generic): Same.
12090 (expand_omp_for_static_nochunk): Same.
12091 (expand_omp_for_static_chunk): Same.
12092 (expand_omp_simd): Same.
12093 (expand_omp_taskloop_for_inner): Same.
12094 (expand_oacc_for): Same.
12095 (expand_omp_atomic_pipeline): Same.
12096 (mark_loops_in_oacc_kernels_region): Same.
12097 * omp-offload.c (oacc_xform_loop): Same.
12098 * omp-simd-clone.c (simd_clone_adjust): Same.
12099 * optabs-query.c (get_traditional_extraction_insn): Same.
12100 * optabs.c (expand_vector_broadcast): Same.
12101 (expand_binop_directly): Same.
12102 (expand_twoval_unop): Same.
12103 (expand_twoval_binop): Same.
12104 (expand_unop_direct): Same.
12105 (emit_indirect_jump): Same.
12106 (emit_conditional_move): Same.
12107 (emit_conditional_neg_or_complement): Same.
12108 (emit_conditional_add): Same.
12109 (vector_compare_rtx): Same.
12110 (expand_vec_perm_1): Same.
12111 (expand_vec_perm_const): Same.
12112 (expand_vec_cond_expr): Same.
12113 (expand_vec_series_expr): Same.
12114 (maybe_emit_atomic_exchange): Same.
12115 (maybe_emit_sync_lock_test_and_set): Same.
12116 (expand_atomic_compare_and_swap): Same.
12117 (expand_atomic_load): Same.
12118 (expand_atomic_store): Same.
12119 (maybe_emit_op): Same.
12120 (valid_multiword_target_p): Same.
12121 (create_integer_operand): Same.
12122 (maybe_legitimize_operand_same_code): Same.
12123 (maybe_legitimize_operand): Same.
12124 (create_convert_operand_from_type): Same.
12125 (can_reuse_operands_p): Same.
12126 (maybe_legitimize_operands): Same.
12127 (maybe_gen_insn): Same.
12128 (maybe_expand_insn): Same.
12129 (maybe_expand_jump_insn): Same.
12130 (expand_insn): Same.
12131 * optabs.h (create_expand_operand): Same.
12132 (create_fixed_operand): Same.
12133 (create_output_operand): Same.
12134 (create_input_operand): Same.
12135 (create_convert_operand_to): Same.
12136 (create_convert_operand_from): Same.
12137 * optinfo.h: Same.
12138 * poly-int.h: Same.
12139 * predict.c (optimize_insn_for_speed_p): Same.
12140 (optimize_loop_for_size_p): Same.
12141 (optimize_loop_for_speed_p): Same.
12142 (optimize_loop_nest_for_speed_p): Same.
12143 (get_base_value): Same.
12144 (predicted_by_loop_heuristics_p): Same.
12145 (predict_extra_loop_exits): Same.
12146 (predict_loops): Same.
12147 (predict_paths_for_bb): Same.
12148 (predict_paths_leading_to): Same.
12149 (propagate_freq): Same.
12150 (pass_profile::execute): Same.
12151 * predict.h: Same.
12152 * profile-count.c (profile_count::differs_from_p): Same.
12153 (profile_probability::differs_lot_from_p): Same.
12154 * profile-count.h: Same.
12155 * profile.c (branch_prob): Same.
12156 * regrename.c (free_chain_data): Same.
12157 (mark_conflict): Same.
12158 (create_new_chain): Same.
12159 (merge_overlapping_regs): Same.
12160 (init_rename_info): Same.
12161 (merge_chains): Same.
12162 (regrename_analyze): Same.
12163 (regrename_do_replace): Same.
12164 (scan_rtx_reg): Same.
12165 (record_out_operands): Same.
12166 (build_def_use): Same.
12167 * regrename.h: Same.
12168 * reload.h: Same.
12169 * reload1.c (init_reload): Same.
12170 (maybe_fix_stack_asms): Same.
12171 (copy_reloads): Same.
12172 (count_pseudo): Same.
12173 (count_spilled_pseudo): Same.
12174 (find_reg): Same.
12175 (find_reload_regs): Same.
12176 (select_reload_regs): Same.
12177 (spill_hard_reg): Same.
12178 (fixup_eh_region_note): Same.
12179 (set_reload_reg): Same.
12180 (allocate_reload_reg): Same.
12181 (compute_reload_subreg_offset): Same.
12182 (reload_adjust_reg_for_icode): Same.
12183 (emit_input_reload_insns): Same.
12184 (emit_output_reload_insns): Same.
12185 (do_input_reload): Same.
12186 (inherit_piecemeal_p): Same.
12187 * rtl.h: Same.
12188 * sanopt.c (maybe_get_dominating_check): Same.
12189 (maybe_optimize_ubsan_ptr_ifn): Same.
12190 (can_remove_asan_check): Same.
12191 (maybe_optimize_asan_check_ifn): Same.
12192 (sanopt_optimize_walker): Same.
12193 * sched-deps.c (add_dependence_list): Same.
12194 (chain_to_prev_insn): Same.
12195 (add_insn_mem_dependence): Same.
12196 (create_insn_reg_set): Same.
12197 (maybe_extend_reg_info_p): Same.
12198 (sched_analyze_reg): Same.
12199 (sched_analyze_1): Same.
12200 (get_implicit_reg_pending_clobbers): Same.
12201 (chain_to_prev_insn_p): Same.
12202 (deps_analyze_insn): Same.
12203 (deps_start_bb): Same.
12204 (sched_free_deps): Same.
12205 (init_deps): Same.
12206 (init_deps_reg_last): Same.
12207 (free_deps): Same.
12208 * sched-ebb.c: Same.
12209 * sched-int.h: Same.
12210 * sched-rgn.c (add_branch_dependences): Same.
12211 (concat_insn_mem_list): Same.
12212 (deps_join): Same.
12213 (sched_rgn_compute_dependencies): Same.
12214 * sel-sched-ir.c (reset_target_context): Same.
12215 (copy_deps_context): Same.
12216 (init_id_from_df): Same.
12217 (has_dependence_p): Same.
12218 (change_loops_latches): Same.
12219 (bb_top_order_comparator): Same.
12220 (make_region_from_loop_preheader): Same.
12221 (sel_init_pipelining): Same.
12222 (get_loop_nest_for_rgn): Same.
12223 (make_regions_from_the_rest): Same.
12224 (sel_is_loop_preheader_p): Same.
12225 * sel-sched-ir.h (inner_loop_header_p): Same.
12226 (get_all_loop_exits): Same.
12227 * selftest.h: Same.
12228 * sese.c (sese_build_liveouts): Same.
12229 (sese_insert_phis_for_liveouts): Same.
12230 * sese.h (defined_in_sese_p): Same.
12231 * sreal.c (sreal::stream_out): Same.
12232 * sreal.h: Same.
12233 * streamer-hooks.h: Same.
12234 * target-globals.c (save_target_globals): Same.
12235 * target-globals.h: Same.
12236 * target.def: Same.
12237 * target.h: Same.
12238 * targhooks.c (default_has_ifunc_p): Same.
12239 (default_empty_mask_is_expensive): Same.
12240 (default_init_cost): Same.
12241 * targhooks.h: Same.
12242 * toplev.c: Same.
12243 * tree-affine.c (aff_combination_mult): Same.
12244 (aff_combination_expand): Same.
12245 (aff_combination_constant_multiple_p): Same.
12246 * tree-affine.h: Same.
12247 * tree-cfg.c (build_gimple_cfg): Same.
12248 (replace_loop_annotate_in_block): Same.
12249 (replace_uses_by): Same.
12250 (remove_bb): Same.
12251 (dump_cfg_stats): Same.
12252 (gimple_duplicate_sese_region): Same.
12253 (gimple_duplicate_sese_tail): Same.
12254 (move_block_to_fn): Same.
12255 (replace_block_vars_by_duplicates): Same.
12256 (move_sese_region_to_fn): Same.
12257 (print_loops_bb): Same.
12258 (print_loop): Same.
12259 (print_loops): Same.
12260 (debug): Same.
12261 (debug_loops): Same.
12262 * tree-cfg.h: Same.
12263 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12264 (chrec_fold_multiply_poly_poly): Same.
12265 (chrec_evaluate): Same.
12266 (chrec_component_in_loop_num): Same.
12267 (reset_evolution_in_loop): Same.
12268 (is_multivariate_chrec): Same.
12269 (chrec_contains_symbols): Same.
12270 (nb_vars_in_chrec): Same.
12271 (chrec_convert_1): Same.
12272 (chrec_convert_aggressive): Same.
12273 * tree-chrec.h: Same.
12274 * tree-core.h: Same.
12275 * tree-data-ref.c (dump_data_dependence_relation): Same.
12276 (canonicalize_base_object_address): Same.
12277 (data_ref_compare_tree): Same.
12278 (prune_runtime_alias_test_list): Same.
12279 (get_segment_min_max): Same.
12280 (create_intersect_range_checks): Same.
12281 (conflict_fn_no_dependence): Same.
12282 (object_address_invariant_in_loop_p): Same.
12283 (analyze_ziv_subscript): Same.
12284 (analyze_siv_subscript_cst_affine): Same.
12285 (analyze_miv_subscript): Same.
12286 (analyze_overlapping_iterations): Same.
12287 (build_classic_dist_vector_1): Same.
12288 (add_other_self_distances): Same.
12289 (same_access_functions): Same.
12290 (build_classic_dir_vector): Same.
12291 (subscript_dependence_tester_1): Same.
12292 (subscript_dependence_tester): Same.
12293 (access_functions_are_affine_or_constant_p): Same.
12294 (get_references_in_stmt): Same.
12295 (loop_nest_has_data_refs): Same.
12296 (graphite_find_data_references_in_stmt): Same.
12297 (find_data_references_in_bb): Same.
12298 (get_base_for_alignment): Same.
12299 (find_loop_nest_1): Same.
12300 (find_loop_nest): Same.
12301 * tree-data-ref.h (dr_alignment): Same.
12302 (ddr_dependence_level): Same.
12303 * tree-if-conv.c (fold_build_cond_expr): Same.
12304 (add_to_predicate_list): Same.
12305 (add_to_dst_predicate_list): Same.
12306 (phi_convertible_by_degenerating_args): Same.
12307 (idx_within_array_bound): Same.
12308 (all_preds_critical_p): Same.
12309 (pred_blocks_visited_p): Same.
12310 (predicate_bbs): Same.
12311 (build_region): Same.
12312 (if_convertible_loop_p_1): Same.
12313 (is_cond_scalar_reduction): Same.
12314 (predicate_scalar_phi): Same.
12315 (remove_conditions_and_labels): Same.
12316 (combine_blocks): Same.
12317 (version_loop_for_if_conversion): Same.
12318 (versionable_outer_loop_p): Same.
12319 (ifcvt_local_dce): Same.
12320 (tree_if_conversion): Same.
12321 (pass_if_conversion::gate): Same.
12322 * tree-if-conv.h: Same.
12323 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12324 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12325 (free_rdg): Same.
12326 (stmt_has_scalar_dependences_outside_loop): Same.
12327 (copy_loop_before): Same.
12328 (create_bb_after_loop): Same.
12329 (const_with_all_bytes_same): Same.
12330 (generate_memset_builtin): Same.
12331 (generate_memcpy_builtin): Same.
12332 (destroy_loop): Same.
12333 (build_rdg_partition_for_vertex): Same.
12334 (compute_access_range): Same.
12335 (data_ref_segment_size): Same.
12336 (latch_dominated_by_data_ref): Same.
12337 (compute_alias_check_pairs): Same.
12338 (fuse_memset_builtins): Same.
12339 (finalize_partitions): Same.
12340 (find_seed_stmts_for_distribution): Same.
12341 (prepare_perfect_loop_nest): Same.
12342 * tree-parloops.c (lambda_transform_legal_p): Same.
12343 (loop_parallel_p): Same.
12344 (reduc_stmt_res): Same.
12345 (add_field_for_name): Same.
12346 (create_call_for_reduction_1): Same.
12347 (replace_uses_in_bb_by): Same.
12348 (transform_to_exit_first_loop_alt): Same.
12349 (try_transform_to_exit_first_loop_alt): Same.
12350 (transform_to_exit_first_loop): Same.
12351 (num_phis): Same.
12352 (gen_parallel_loop): Same.
12353 (gather_scalar_reductions): Same.
12354 (get_omp_data_i_param): Same.
12355 (try_create_reduction_list): Same.
12356 (oacc_entry_exit_single_gang): Same.
12357 (parallelize_loops): Same.
12358 * tree-pass.h: Same.
12359 * tree-predcom.c (determine_offset): Same.
12360 (last_always_executed_block): Same.
12361 (split_data_refs_to_components): Same.
12362 (suitable_component_p): Same.
12363 (valid_initializer_p): Same.
12364 (find_looparound_phi): Same.
12365 (insert_looparound_copy): Same.
12366 (add_looparound_copies): Same.
12367 (determine_roots_comp): Same.
12368 (predcom_tmp_var): Same.
12369 (initialize_root_vars): Same.
12370 (initialize_root_vars_store_elim_1): Same.
12371 (initialize_root_vars_store_elim_2): Same.
12372 (finalize_eliminated_stores): Same.
12373 (initialize_root_vars_lm): Same.
12374 (remove_stmt): Same.
12375 (determine_unroll_factor): Same.
12376 (execute_pred_commoning_cbck): Same.
12377 (base_names_in_chain_on): Same.
12378 (combine_chains): Same.
12379 (pcom_stmt_dominates_stmt_p): Same.
12380 (try_combine_chains): Same.
12381 (prepare_initializers_chain_store_elim): Same.
12382 (prepare_initializers_chain): Same.
12383 (prepare_initializers): Same.
12384 (prepare_finalizers_chain): Same.
12385 (prepare_finalizers): Same.
12386 (insert_init_seqs): Same.
12387 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12388 (compute_overall_effect_of_inner_loop): Same.
12389 (add_to_evolution_1): Same.
12390 (add_to_evolution): Same.
12391 (follow_ssa_edge_binary): Same.
12392 (follow_ssa_edge_expr): Same.
12393 (backedge_phi_arg_p): Same.
12394 (follow_ssa_edge_in_condition_phi_branch): Same.
12395 (follow_ssa_edge_in_condition_phi): Same.
12396 (follow_ssa_edge_inner_loop_phi): Same.
12397 (follow_ssa_edge): Same.
12398 (analyze_evolution_in_loop): Same.
12399 (analyze_initial_condition): Same.
12400 (interpret_loop_phi): Same.
12401 (interpret_condition_phi): Same.
12402 (interpret_rhs_expr): Same.
12403 (interpret_expr): Same.
12404 (interpret_gimple_assign): Same.
12405 (analyze_scalar_evolution_1): Same.
12406 (analyze_scalar_evolution): Same.
12407 (analyze_scalar_evolution_for_address_of): Same.
12408 (get_instantiated_value_entry): Same.
12409 (loop_closed_phi_def): Same.
12410 (instantiate_scev_name): Same.
12411 (instantiate_scev_poly): Same.
12412 (instantiate_scev_binary): Same.
12413 (instantiate_scev_convert): Same.
12414 (instantiate_scev_not): Same.
12415 (instantiate_scev_r): Same.
12416 (instantiate_scev): Same.
12417 (resolve_mixers): Same.
12418 (initialize_scalar_evolutions_analyzer): Same.
12419 (scev_reset_htab): Same.
12420 (scev_reset): Same.
12421 (derive_simple_iv_with_niters): Same.
12422 (simple_iv_with_niters): Same.
12423 (expression_expensive_p): Same.
12424 (final_value_replacement_loop): Same.
12425 * tree-scalar-evolution.h (block_before_loop): Same.
12426 * tree-ssa-address.h: Same.
12427 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12428 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12429 (record_edge_info): Same.
12430 * tree-ssa-live.c (var_map_base_fini): Same.
12431 (remove_unused_locals): Same.
12432 * tree-ssa-live.h: Same.
12433 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12434 (pass_ch_vect::execute): Same.
12435 (pass_ch::process_loop_p): Same.
12436 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12437 (movement_possibility): Same.
12438 (outermost_invariant_loop): Same.
12439 (stmt_cost): Same.
12440 (determine_max_movement): Same.
12441 (invariantness_dom_walker::before_dom_children): Same.
12442 (move_computations): Same.
12443 (may_move_till): Same.
12444 (force_move_till_op): Same.
12445 (force_move_till): Same.
12446 (memref_free): Same.
12447 (record_mem_ref_loc): Same.
12448 (set_ref_stored_in_loop): Same.
12449 (mark_ref_stored): Same.
12450 (sort_bbs_in_loop_postorder_cmp): Same.
12451 (sort_locs_in_loop_postorder_cmp): Same.
12452 (analyze_memory_references): Same.
12453 (mem_refs_may_alias_p): Same.
12454 (find_ref_loc_in_loop_cmp): Same.
12455 (rewrite_mem_ref_loc::operator): Same.
12456 (first_mem_ref_loc_1::operator): Same.
12457 (sm_set_flag_if_changed::operator): Same.
12458 (execute_sm_if_changed_flag_set): Same.
12459 (execute_sm): Same.
12460 (hoist_memory_references): Same.
12461 (ref_always_accessed::operator): Same.
12462 (refs_independent_p): Same.
12463 (record_dep_loop): Same.
12464 (ref_indep_loop_p_1): Same.
12465 (ref_indep_loop_p): Same.
12466 (can_sm_ref_p): Same.
12467 (find_refs_for_sm): Same.
12468 (loop_suitable_for_sm): Same.
12469 (store_motion_loop): Same.
12470 (store_motion): Same.
12471 (fill_always_executed_in): Same.
12472 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12473 (estimated_unrolled_size): Same.
12474 (loop_edge_to_cancel): Same.
12475 (remove_exits_and_undefined_stmts): Same.
12476 (remove_redundant_iv_tests): Same.
12477 (unloop_loops): Same.
12478 (estimated_peeled_sequence_size): Same.
12479 (try_peel_loop): Same.
12480 (canonicalize_loop_induction_variables): Same.
12481 (canonicalize_induction_variables): Same.
12482 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12483 (name_info): Same.
12484 (stmt_after_inc_pos): Same.
12485 (contains_abnormal_ssa_name_p): Same.
12486 (niter_for_exit): Same.
12487 (find_bivs): Same.
12488 (mark_bivs): Same.
12489 (find_givs_in_bb): Same.
12490 (find_induction_variables): Same.
12491 (find_interesting_uses_cond): Same.
12492 (outermost_invariant_loop_for_expr): Same.
12493 (idx_find_step): Same.
12494 (add_candidate_1): Same.
12495 (add_iv_candidate_derived_from_uses): Same.
12496 (alloc_use_cost_map): Same.
12497 (prepare_decl_rtl): Same.
12498 (generic_predict_doloop_p): Same.
12499 (computation_cost): Same.
12500 (determine_common_wider_type): Same.
12501 (get_computation_aff_1): Same.
12502 (get_use_type): Same.
12503 (determine_group_iv_cost_address): Same.
12504 (iv_period): Same.
12505 (difference_cannot_overflow_p): Same.
12506 (may_eliminate_iv): Same.
12507 (determine_set_costs): Same.
12508 (cheaper_cost_pair): Same.
12509 (compare_cost_pair): Same.
12510 (iv_ca_cand_for_group): Same.
12511 (iv_ca_recount_cost): Same.
12512 (iv_ca_set_remove_invs): Same.
12513 (iv_ca_set_no_cp): Same.
12514 (iv_ca_set_add_invs): Same.
12515 (iv_ca_set_cp): Same.
12516 (iv_ca_add_group): Same.
12517 (iv_ca_cost): Same.
12518 (iv_ca_compare_deps): Same.
12519 (iv_ca_delta_reverse): Same.
12520 (iv_ca_delta_commit): Same.
12521 (iv_ca_cand_used_p): Same.
12522 (iv_ca_delta_free): Same.
12523 (iv_ca_new): Same.
12524 (iv_ca_free): Same.
12525 (iv_ca_dump): Same.
12526 (iv_ca_extend): Same.
12527 (iv_ca_narrow): Same.
12528 (iv_ca_prune): Same.
12529 (cheaper_cost_with_cand): Same.
12530 (iv_ca_replace): Same.
12531 (try_add_cand_for): Same.
12532 (get_initial_solution): Same.
12533 (try_improve_iv_set): Same.
12534 (find_optimal_iv_set_1): Same.
12535 (create_new_iv): Same.
12536 (rewrite_use_compare): Same.
12537 (remove_unused_ivs): Same.
12538 (determine_scaling_factor): Same.
12539 * tree-ssa-loop-ivopts.h: Same.
12540 * tree-ssa-loop-manip.c (create_iv): Same.
12541 (compute_live_loop_exits): Same.
12542 (add_exit_phi): Same.
12543 (add_exit_phis): Same.
12544 (find_uses_to_rename_use): Same.
12545 (find_uses_to_rename_def): Same.
12546 (find_uses_to_rename_in_loop): Same.
12547 (rewrite_into_loop_closed_ssa): Same.
12548 (check_loop_closed_ssa_bb): Same.
12549 (split_loop_exit_edge): Same.
12550 (ip_end_pos): Same.
12551 (ip_normal_pos): Same.
12552 (copy_phi_node_args): Same.
12553 (gimple_duplicate_loop_to_header_edge): Same.
12554 (can_unroll_loop_p): Same.
12555 (determine_exit_conditions): Same.
12556 (scale_dominated_blocks_in_loop): Same.
12557 (niter_for_unrolled_loop): Same.
12558 (tree_transform_and_unroll_loop): Same.
12559 (rewrite_all_phi_nodes_with_iv): Same.
12560 * tree-ssa-loop-manip.h: Same.
12561 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12562 (number_of_iterations_ne): Same.
12563 (assert_no_overflow_lt): Same.
12564 (assert_loop_rolls_lt): Same.
12565 (number_of_iterations_lt): Same.
12566 (adjust_cond_for_loop_until_wrap): Same.
12567 (tree_simplify_using_condition): Same.
12568 (simplify_using_initial_conditions): Same.
12569 (simplify_using_outer_evolutions): Same.
12570 (loop_only_exit_p): Same.
12571 (ssa_defined_by_minus_one_stmt_p): Same.
12572 (number_of_iterations_popcount): Same.
12573 (number_of_iterations_exit): Same.
12574 (find_loop_niter): Same.
12575 (finite_loop_p): Same.
12576 (chain_of_csts_start): Same.
12577 (get_val_for): Same.
12578 (loop_niter_by_eval): Same.
12579 (derive_constant_upper_bound_ops): Same.
12580 (do_warn_aggressive_loop_optimizations): Same.
12581 (record_estimate): Same.
12582 (get_cst_init_from_scev): Same.
12583 (record_nonwrapping_iv): Same.
12584 (idx_infer_loop_bounds): Same.
12585 (infer_loop_bounds_from_ref): Same.
12586 (infer_loop_bounds_from_array): Same.
12587 (infer_loop_bounds_from_pointer_arith): Same.
12588 (infer_loop_bounds_from_signedness): Same.
12589 (bound_index): Same.
12590 (discover_iteration_bound_by_body_walk): Same.
12591 (maybe_lower_iteration_bound): Same.
12592 (estimate_numbers_of_iterations): Same.
12593 (estimated_loop_iterations): Same.
12594 (estimated_loop_iterations_int): Same.
12595 (max_loop_iterations): Same.
12596 (max_loop_iterations_int): Same.
12597 (likely_max_loop_iterations): Same.
12598 (likely_max_loop_iterations_int): Same.
12599 (estimated_stmt_executions_int): Same.
12600 (max_stmt_executions): Same.
12601 (likely_max_stmt_executions): Same.
12602 (estimated_stmt_executions): Same.
12603 (stmt_dominates_stmt_p): Same.
12604 (nowrap_type_p): Same.
12605 (loop_exits_before_overflow): Same.
12606 (scev_var_range_cant_overflow): Same.
12607 (scev_probably_wraps_p): Same.
12608 (free_numbers_of_iterations_estimates): Same.
12609 * tree-ssa-loop-niter.h: Same.
12610 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12611 (idx_analyze_ref): Same.
12612 (analyze_ref): Same.
12613 (gather_memory_references_ref): Same.
12614 (mark_nontemporal_store): Same.
12615 (emit_mfence_after_loop): Same.
12616 (may_use_storent_in_loop_p): Same.
12617 (mark_nontemporal_stores): Same.
12618 (should_unroll_loop_p): Same.
12619 (volume_of_dist_vector): Same.
12620 (add_subscript_strides): Same.
12621 (self_reuse_distance): Same.
12622 (insn_to_prefetch_ratio_too_small_p): Same.
12623 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12624 (patch_loop_exit): Same.
12625 (find_or_create_guard_phi): Same.
12626 (easy_exit_values): Same.
12627 (connect_loop_phis): Same.
12628 (connect_loops): Same.
12629 (compute_new_first_bound): Same.
12630 (split_loop): Same.
12631 (tree_ssa_split_loops): Same.
12632 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12633 (is_maybe_undefined): Same.
12634 (tree_may_unswitch_on): Same.
12635 (simplify_using_entry_checks): Same.
12636 (tree_unswitch_single_loop): Same.
12637 (tree_unswitch_loop): Same.
12638 (tree_unswitch_outer_loop): Same.
12639 (empty_bb_without_guard_p): Same.
12640 (used_outside_loop_p): Same.
12641 (get_vop_from_header): Same.
12642 (hoist_guard): Same.
12643 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12644 (get_lsm_tmp_name): Same.
12645 * tree-ssa-loop.h: Same.
12646 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12647 (build_and_add_sum): Same.
12648 (no_side_effect_bb): Same.
12649 (get_ops): Same.
12650 (linearize_expr): Same.
12651 (should_break_up_subtract): Same.
12652 (linearize_expr_tree): Same.
12653 * tree-ssa-scopedtables.c: Same.
12654 * tree-ssa-scopedtables.h: Same.
12655 * tree-ssa-structalias.c (condense_visit): Same.
12656 (label_visit): Same.
12657 (dump_pred_graph): Same.
12658 (perform_var_substitution): Same.
12659 (move_complex_constraints): Same.
12660 (remove_preds_and_fake_succs): Same.
12661 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12662 (determine_bb_domination_status): Same.
12663 (duplicate_thread_path): Same.
12664 (thread_through_all_blocks): Same.
12665 * tree-ssa-threadupdate.h: Same.
12666 * tree-streamer-in.c (streamer_read_string_cst): Same.
12667 (input_identifier): Same.
12668 (unpack_ts_type_common_value_fields): Same.
12669 (unpack_ts_block_value_fields): Same.
12670 (unpack_ts_translation_unit_decl_value_fields): Same.
12671 (unpack_ts_omp_clause_value_fields): Same.
12672 (streamer_read_tree_bitfields): Same.
12673 (streamer_alloc_tree): Same.
12674 (lto_input_ts_common_tree_pointers): Same.
12675 (lto_input_ts_vector_tree_pointers): Same.
12676 (lto_input_ts_poly_tree_pointers): Same.
12677 (lto_input_ts_complex_tree_pointers): Same.
12678 (lto_input_ts_decl_minimal_tree_pointers): Same.
12679 (lto_input_ts_decl_common_tree_pointers): Same.
12680 (lto_input_ts_decl_non_common_tree_pointers): Same.
12681 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12682 (lto_input_ts_field_decl_tree_pointers): Same.
12683 (lto_input_ts_function_decl_tree_pointers): Same.
12684 (lto_input_ts_type_common_tree_pointers): Same.
12685 (lto_input_ts_type_non_common_tree_pointers): Same.
12686 (lto_input_ts_list_tree_pointers): Same.
12687 (lto_input_ts_vec_tree_pointers): Same.
12688 (lto_input_ts_exp_tree_pointers): Same.
12689 (lto_input_ts_block_tree_pointers): Same.
12690 (lto_input_ts_binfo_tree_pointers): Same.
12691 (lto_input_ts_constructor_tree_pointers): Same.
12692 (lto_input_ts_omp_clause_tree_pointers): Same.
12693 (streamer_read_tree_body): Same.
12694 * tree-streamer.h: Same.
12695 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12696 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12697 (vect_analyze_possibly_independent_ddr): Same.
12698 (vect_analyze_data_ref_dependence): Same.
12699 (vect_compute_data_ref_alignment): Same.
12700 (vect_enhance_data_refs_alignment): Same.
12701 (vect_analyze_data_ref_access): Same.
12702 (vect_check_gather_scatter): Same.
12703 (vect_find_stmt_data_reference): Same.
12704 (vect_create_addr_base_for_vector_ref): Same.
12705 (vect_setup_realignment): Same.
12706 (vect_supportable_dr_alignment): Same.
12707 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12708 (adjust_phi_and_debug_stmts): Same.
12709 (vect_set_loop_mask): Same.
12710 (add_preheader_seq): Same.
12711 (vect_maybe_permute_loop_masks): Same.
12712 (vect_set_loop_masks_directly): Same.
12713 (vect_set_loop_condition_masked): Same.
12714 (vect_set_loop_condition_unmasked): Same.
12715 (slpeel_duplicate_current_defs_from_edges): Same.
12716 (slpeel_add_loop_guard): Same.
12717 (slpeel_can_duplicate_loop_p): Same.
12718 (create_lcssa_for_virtual_phi): Same.
12719 (iv_phi_p): Same.
12720 (vect_update_ivs_after_vectorizer): Same.
12721 (vect_gen_vector_loop_niters_mult_vf): Same.
12722 (slpeel_update_phi_nodes_for_loops): Same.
12723 (slpeel_update_phi_nodes_for_guard1): Same.
12724 (find_guard_arg): Same.
12725 (slpeel_update_phi_nodes_for_guard2): Same.
12726 (slpeel_update_phi_nodes_for_lcssa): Same.
12727 (vect_do_peeling): Same.
12728 (vect_create_cond_for_alias_checks): Same.
12729 (vect_loop_versioning): Same.
12730 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12731 (vect_inner_phi_in_double_reduction_p): Same.
12732 (vect_analyze_scalar_cycles_1): Same.
12733 (vect_fixup_scalar_cycles_with_patterns): Same.
12734 (vect_get_loop_niters): Same.
12735 (bb_in_loop_p): Same.
12736 (vect_get_max_nscalars_per_iter): Same.
12737 (vect_verify_full_masking): Same.
12738 (vect_compute_single_scalar_iteration_cost): Same.
12739 (vect_analyze_loop_form_1): Same.
12740 (vect_analyze_loop_form): Same.
12741 (vect_active_double_reduction_p): Same.
12742 (vect_analyze_loop_operations): Same.
12743 (neutral_op_for_slp_reduction): Same.
12744 (vect_is_simple_reduction): Same.
12745 (vect_model_reduction_cost): Same.
12746 (get_initial_def_for_reduction): Same.
12747 (get_initial_defs_for_reduction): Same.
12748 (vect_create_epilog_for_reduction): Same.
12749 (vectorize_fold_left_reduction): Same.
12750 (vectorizable_reduction): Same.
12751 (vectorizable_induction): Same.
12752 (vectorizable_live_operation): Same.
12753 (loop_niters_no_overflow): Same.
12754 (vect_get_loop_mask): Same.
12755 (vect_transform_loop_stmt): Same.
12756 (vect_transform_loop): Same.
12757 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12758 (vect_determine_precisions): Same.
12759 (vect_pattern_recog_1): Same.
12760 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12761 * tree-vect-stmts.c (stmt_vectype): Same.
12762 (process_use): Same.
12763 (vect_init_vector_1): Same.
12764 (vect_truncate_gather_scatter_offset): Same.
12765 (get_group_load_store_type): Same.
12766 (vect_build_gather_load_calls): Same.
12767 (vect_get_strided_load_store_ops): Same.
12768 (vectorizable_simd_clone_call): Same.
12769 (vectorizable_store): Same.
12770 (permute_vec_elements): Same.
12771 (vectorizable_load): Same.
12772 (vect_transform_stmt): Same.
12773 (supportable_widening_operation): Same.
12774 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12775 (vec_info::free_stmt_vec_info): Same.
12776 (vect_free_loop_info_assumptions): Same.
12777 (vect_loop_vectorized_call): Same.
12778 (set_uid_loop_bbs): Same.
12779 (vectorize_loops): Same.
12780 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12781 * tree.c (add_tree_to_fld_list): Same.
12782 (fld_type_variant_equal_p): Same.
12783 (fld_decl_context): Same.
12784 (fld_incomplete_type_of): Same.
12785 (free_lang_data_in_binfo): Same.
12786 (need_assembler_name_p): Same.
12787 (find_decls_types_r): Same.
12788 (get_eh_types_for_runtime): Same.
12789 (find_decls_types_in_eh_region): Same.
12790 (find_decls_types_in_node): Same.
12791 (assign_assembler_name_if_needed): Same.
12792 * value-prof.c (stream_out_histogram_value): Same.
12793 * value-prof.h: Same.
12794 * var-tracking.c (use_narrower_mode): Same.
12795 (prepare_call_arguments): Same.
12796 (vt_expand_loc_callback): Same.
12797 (resolve_expansions_pending_recursion): Same.
12798 (vt_expand_loc): Same.
12799 * varasm.c (const_hash_1): Same.
12800 (compare_constant): Same.
12801 (tree_output_constant_def): Same.
12802 (simplify_subtraction): Same.
12803 (get_pool_constant): Same.
12804 (output_constant_pool_2): Same.
12805 (output_constant_pool_1): Same.
12806 (mark_constants_in_pattern): Same.
12807 (mark_constant_pool): Same.
12808 (get_section_anchor): Same.
12809 * vr-values.c (compare_range_with_value): Same.
12810 (vr_values::extract_range_from_phi_node): Same.
12811 * vr-values.h: Same.
12812 * web.c (unionfind_union): Same.
12813 * wide-int.h: Same.
12814
12815 2019-07-09 Martin Sebor <msebor@redhat.com>
12816
12817 PR c++/61339
12818 * align.h: Change class-key from class to struct and vice versa
12819 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12820 * alloc-pool.h: Same.
12821 * asan.c (shadow_mem_size): Same.
12822 * auto-profile.c: Same.
12823 * basic-block.h: Same.
12824 * bitmap.h: Same.
12825 * cfgexpand.c (set_rtl): Same.
12826 (expand_one_stack_var_at): Same.
12827 * cfghooks.h: Same.
12828 * cfgloop.h: Same.
12829 * cgraph.h: Same.
12830 * config/i386/i386.h: Same.
12831 * df-problems.c (df_print_bb_index): Same.
12832 * df-scan.c: Same.
12833 * df.h (df_single_use): Same.
12834 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12835 (layout::annotation_line_showed_range_p): Same.
12836 (get_printed_columns): Same.
12837 (correction::ensure_terminated): Same.
12838 (line_corrections::~line_corrections): Same.
12839 * dojump.h: Same.
12840 * dse.c: Same.
12841 * dump-context.h: Same.
12842 * dumpfile.h: Same.
12843 * dwarf2out.c: Same.
12844 * edit-context.c: Same.
12845 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12846 * flags.h: Same.
12847 * function.c (assign_stack_local): Same.
12848 * function.h: Same.
12849 * gcc.c: Same.
12850 * gcov.c (block_info::block_info): Same.
12851 * genattrtab.c: Same.
12852 * genextract.c: Same.
12853 * genmatch.c (comparison_code_p): Same.
12854 (id_base::id_base): Same.
12855 (decision_tree::print): Same.
12856 * genoutput.c: Same.
12857 * genpreds.c (write_one_predicate_function): Same.
12858 * genrecog.c (validate_pattern): Same.
12859 (find_operand_positions): Same.
12860 (optimize_subroutine_group): Same.
12861 (merge_pattern_transition::merge_pattern_transition): Same.
12862 (merge_pattern_info::merge_pattern_info): Same.
12863 (merge_state_result::merge_state_result): Same.
12864 (merge_into_state): Same.
12865 * gensupport.c: Same.
12866 * gensupport.h: Same.
12867 * ggc-common.c (init_ggc_heuristics): Same.
12868 * ggc-tests.c (test_union): Same.
12869 * gimple-loop-interchange.cc (dump_induction): Same.
12870 * gimple-loop-versioning.cc: Same.
12871 * gimple-match.h (gimple_match_cond::any_else): Same.
12872 * gimple-ssa-backprop.c: Same.
12873 * gimple-ssa-sprintf.c: Same.
12874 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12875 Same.
12876 (store_immediate_info::store_immediate_info): Same.
12877 (merged_store_group::apply_stores): Same.
12878 (get_location_for_stmts): Same.
12879 * gimple-ssa-strength-reduction.c: Same.
12880 * gimple-ssa-warn-alloca.c: Same.
12881 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12882 * godump.c (go_type_decl): Same.
12883 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12884 * hash-map.h: Same.
12885 * hash-set-tests.c (test_set_of_strings): Same.
12886 * hsa-brig.c: Same.
12887 * hsa-common.h: Same.
12888 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12889 * input.c (assert_loceq): Same.
12890 * input.h: Same.
12891 * ipa-cp.c: Same.
12892 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12893 * ipa-fnsummary.h: Same.
12894 * ipa-inline.h: Same.
12895 * ipa-prop.h: Same.
12896 * ipa-split.c (visit_bb): Same.
12897 * ira-int.h (minmax_set_iter_next): Same.
12898 * loop-invariant.c: Same.
12899 * loop-iv.c: Same.
12900 * lra-eliminations.c: Same.
12901 * lra-int.h: Same.
12902 * lra-lives.c (mark_regno_dead): Same.
12903 * lra-remat.c: Same.
12904 * lra-spills.c: Same.
12905 * lto-streamer.h: Same.
12906 * mem-stats.h: Same.
12907 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12908 * omp-low.c (omp_clause_aligned_alignment): Same.
12909 * optabs-query.h (get_vcond_eq_icode): Same.
12910 * optabs.h: Same.
12911 * opts.c (wrap_help): Same.
12912 * poly-int.h: Same.
12913 * predict.c (predict_paths_leading_to_edge): Same.
12914 * pretty-print.h: Same.
12915 * profile-count.h: Same.
12916 * read-md.h: Same.
12917 * read-rtl-function.c: Same.
12918 * ree.c: Same.
12919 * reginfo.c: Same.
12920 * regrename.c: Same.
12921 * regrename.h: Same.
12922 * reload.h: Same.
12923 * rtl-iter.h: Same.
12924 * rtl.h (costs_add_n_insns): Same.
12925 * sanopt.c: Same.
12926 * sched-int.h: Same.
12927 * sel-sched-ir.h: Same.
12928 * selftest.h: Same.
12929 * sese.h (vec_find): Same.
12930 * stmt.c: Same.
12931 * target-globals.h: Same.
12932 * tree-affine.c (aff_combination_find_elt): Same.
12933 * tree-affine.h: Same.
12934 * tree-data-ref.h: Same.
12935 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12936 * tree-predcom.c: Same.
12937 * tree-scalar-evolution.c (find_var_scev_info): Same.
12938 * tree-ssa-alias.h: Same.
12939 * tree-ssa-ccp.c: Same.
12940 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12941 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12942 (rewrite_mem_refs): Same.
12943 (execute_sm_if_changed): Same.
12944 (hoist_memory_references): Same.
12945 * tree-ssa-loop-ivopts.c (operator<=): Same.
12946 * tree-ssa-loop.h: Same.
12947 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12948 * tree-ssa-structalias.c: Same.
12949 * tree-switch-conversion.h (cluster::cluster): Same.
12950 (simple_cluster::simple_cluster): Same.
12951 * tree-vect-patterns.c (type_conversion_p): Same.
12952 * tree-vectorizer.c (dump_stmt_cost): Same.
12953 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12954 * tree.c (protected_set_expr_location): Same.
12955 * tree.h (desired_pro_or_demotion_p): Same.
12956 (fndecl_built_in_p): Same.
12957 * unique-ptr-tests.cc: Same.
12958 * var-tracking.c (delete_variable_part): Same.
12959 * varasm.c (assemble_real): Same.
12960 (tree_output_constant_def): Same.
12961 * vec.c: Same.
12962 * wide-int-bitmask.h: Same.
12963 * wide-int.h (decompose): Same.
12964
12965 2019-07-09 Richard Biener <rguenther@suse.de>
12966
12967 PR tree-optimization/91114
12968 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12969 find a vector type isn't fatal.
12970
12971 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12972
12973 * config/aarch64/aarch64-simd.md
12974 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12975 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12976 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12977 (*aarch64_crypto_aese_fused,
12978 *aarch64_crypto_aesd_fused): Update to new definition.
12979 * config/aarch64/aarch64.c
12980 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12981
12982 2019-07-09 Richard Biener <rguenther@suse.de>
12983
12984 * gimple-match.h (gimple_match_op::resimplify): New.
12985 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12986 gimple_resimplify4, gimple_resimplify5): Remove.
12987 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12988 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12989 Make static.
12990 (gimple_match_op::resimplify): New.
12991 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12992 according to availability. Use gimple_match_op::resimplify.
12993
12994 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12995
12996 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12997
12998 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12999
13000 * config/arm/crypto.md:
13001 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
13002 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
13003 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
13004 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
13005 * config/arm/arm.c
13006 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
13007 * config/arm/aarch-common-protos.h
13008 (aarch_crypto_can_dual_issue): Remove.
13009 * config/arm/aarch-common.c
13010 (aarch_crypto_can_dual_issue): Likewise.
13011 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
13012 * config/arm/cortex-a53.md: Likewise.
13013 * config/arm/cortex-a57.md: Likewise.
13014 * config/arm/iterators.md:
13015 (CRYPTO_BINARY): Redefine.
13016 (CRYPTO_UNARY): Removed.
13017 (CRYPTO_AES, CRYPTO_AESMC): New.
13018
13019 2019-07-09 Richard Biener <rguenther@suse.de>
13020
13021 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
13022 (vn_reference_lookup_3): If the main ref has no access path recorded
13023 but orig_ref has use it to do access-path based disambiguation.
13024 (vn_reference_lookup_pieces): Adjust.
13025 (vn_reference_lookup): Pass down original ref if we valueized.
13026
13027 2019-07-09 Martin Liska <mliska@suse.cz>
13028
13029 * doc/extend.texi: Document influence on loop
13030 optimizers.
13031
13032 2019-07-09 Martin Liska <mliska@suse.cz>
13033
13034 * lto-compress.c (lto_normalized_zstd_level): Do not use
13035 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
13036 of libzstd. One can use 0 as a default compression level.
13037
13038 2019-07-09 Martin Liska <mliska@suse.cz>
13039
13040 * doc/invoke.texi: Add link from -fprofile-dir option.
13041 Use better wording for 'gcno filename'.
13042
13043 2019-07-08 Martin Sebor <msebor@redhat.com>
13044
13045 PR middle-end/71924
13046 PR middle-end/90549
13047 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
13048 comment.
13049 (args_loc_t): New type.
13050 (args_loc_t, locmap_t): same.
13051 (diag_returned_locals): New function.
13052 (is_addr_local): Same.
13053 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
13054 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
13055 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
13056
13057 2019-07-08 Jakub Jelinek <jakub@redhat.com>
13058
13059 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
13060 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
13061 and casts in offset when different, both through gimple stmts
13062 and through trees. Rewritten using loops to minimize code duplication
13063 for each operand.
13064
13065 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13066
13067 * emit-rtl.c (set_insn_locations): New function moved from...
13068 * function.c (set_insn_locations): ...here.
13069 * ira-emit.c (emit_moves): Propagate location of the first instruction
13070 to the inserted move instructions.
13071 * reg-stack.c (compensate_edge): Set the location if the sequence is
13072 inserted on the edge.
13073 * rtl.h (set_insn_locations): Declare.
13074
13075 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13076
13077 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13078 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13079 .machine string.
13080
13081 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13082
13083 PR rtl-optimization/88233
13084 * common.opt (fsplit-wide-types-early): New option.
13085 * common/config/rs6000/rs6000-common.c
13086 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13087 OPT_LEVELS_ALL.
13088 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13089 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13090 flag_split_wide_types_early.
13091 (pass_data_lower_subreg3): New.
13092 (pass_lower_subreg3): New.
13093 (make_pass_lower_subreg3): New.
13094 * passes.def (pass_lower_subreg2): Move after the loop passes.
13095 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13096 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13097 the pass pipeline; its previous place is taken by ...
13098 (make_pass_lower_subreg3): ... this.
13099
13100 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13101
13102 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13103 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13104
13105 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13106
13107 * config/s390/constraints.md: Add new jsc constraint.
13108 * config/s390/predicates.md: New predicates.
13109 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13110 * config/s390/s390.c (s390_valid_shift_count): New function.
13111 (print_shift_count_operand): Use s390_valid_shift_count.
13112 (print_operand): Likewise.
13113 * config/s390/s390.md: Use new predicate.
13114 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13115 * config/s390/vector.md: Use new predicate.
13116
13117 2019-07-08 Andrew Waterman <andrew@sifive.com>
13118 Jim Wilson <jimw@sifive.com>
13119
13120 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13121 bitsize instead of BITS_PER_WORD.
13122
13123 2019-07-08 Martin Liska <mliska@suse.cz>
13124
13125 * collect2.c (defined): Revert to before r254460.
13126 (scan_prog_file): Revert to before r254460.
13127
13128 2019-07-08 Richard Biener <rguenther@suse.de>
13129
13130 PR tree-optimization/83518
13131 * tree-ssa-sccvn.c: Include splay-tree.h.
13132 (struct pd_range, struct pd_data): New.
13133 (struct vn_walk_cb_data): Add data to track partial definitions.
13134 (vn_walk_cb_data::~vn_walk_cb_data): New.
13135 (vn_walk_cb_data::push_partial_def): New.
13136 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13137 (vn_reference_lookup_2): When partial defs are registered give up.
13138 (vn_reference_lookup_3): Track partial defs for memset and
13139 constructor zeroing and for defs from constants.
13140
13141 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13142
13143 * doc/install.texi (bootstrap-Og): Document.
13144
13145 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13146
13147 * config/riscv/pic.md (*local_pic_load_s<mode>)
13148 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13149 referenced by <mode>, giving...
13150 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13151 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13152 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13153 use <X:MODE> for the mode attribute.
13154
13155 2019-07-07 Jeff Law <law@redhat.com>
13156
13157 PR tree-optimization/91090
13158 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13159 in handling of ranges to simplify switch statements.
13160
13161 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13162
13163 * config/darwin.c (darwin_override_options): Make a final check on PIC
13164 options.
13165
13166 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13167
13168 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13169 on for kernel code.
13170
13171 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13172
13173 PR target/91068
13174 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13175 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13176 instead of matching them to "l" output operands.
13177
13178 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13179
13180 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13181 and check whether addr.reg is nonnull before using it.
13182
13183 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13184
13185 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13186 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13187 variable(s). For conditional lastprivate look through outer
13188 GIMPLE_OMP_SCAN context.
13189 (lower_omp_1): For conditional lastprivate look through outer
13190 GIMPLE_OMP_SCAN context.
13191
13192 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13193 member to combined_into_simd_safelen1.
13194 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13195 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13196 clauses if ctx->combined_into_simd_safelen1 put statements after the
13197 predicate conditionalized block rather than into it.
13198
13199 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13200
13201 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13202 operand 1.
13203 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13204 Make the choice of <mode> explicit, giving...
13205 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13206
13207 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13208
13209 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13210 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13211 of .md attributes.
13212 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13213 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13214 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13215 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13216 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13217 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13218 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13219 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13220 (*avx512f_scatterdi<mode>): Likewise.
13221 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13222
13223 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13224
13225 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13226 specify the mode iterator referenced by <mode>, giving...
13227 (*push1_h8300hs_<QHI:mode>): ...this.
13228
13229 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13230
13231 * config/gcn/gcn-valu.md
13232 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13233 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13234 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13235 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13236 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13237 but using the _exec comparison patterns.
13238 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13239 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13240 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13241 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13242 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13243 but using the _exec comparison patterns.
13244
13245 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13246
13247 * config/arm/sync.md
13248 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13249 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13250 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13251 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13252 <SIDI:cas_cmp_str>.
13253
13254 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13255
13256 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13257 (maybe_lookup_ctx): Add forward declaration.
13258 (omp_find_scan): Likewise. Walk into body of simd if composited
13259 with worksharing loop.
13260 (scan_omp_simd_scan): New function.
13261 (scan_omp_1_stmt): Call it.
13262 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13263 ctx->for_simd_scan_phase.
13264 (lower_rec_input_clauses): Do much less work for inscan reductions
13265 in ctx->for_simd_scan_phase is_simd regions.
13266 (lower_omp_scan): Set is_simd also on simd constructs composited
13267 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13268 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13269 emit their body after in simd constructs composited with worksharing
13270 loop.
13271 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13272
13273 * omp-low.c (omp_find_scan): Make static.
13274 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13275 the second loop, var2 represents the first partial sum and so needs
13276 to go before rprivb[ivar].
13277
13278 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13279
13280 * config/rs6000/rs6000-logue.c: Remove unused code.
13281
13282 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13283
13284 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13285
13286 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13287
13288 PR target/90712
13289 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13290 check with a frame laid out check.
13291
13292 2019-07-05 Richard Biener <rguenther@suse.de>
13293
13294 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13295 when comparing against a store with possibly the same value.
13296
13297 2019-07-05 Richard Biener <rguenther@suse.de>
13298
13299 PR tree-optimization/91091
13300 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13301 (walk_non_aliased_vuses): Likewise.
13302 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13303 (get_continuation_for_phi): New tbaa_p parameter and pass
13304 it down.
13305 (walk_non_aliased_vuses): Likewise.
13306 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13307 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13308 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13309 Likewise.
13310 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13311 (adjust_offsets_for_equal_base_address): New function.
13312 (vn_reference_lookup_3): Use it to catch more base equivalences.
13313 Handle and pass down tbaa_p flag.
13314 (vn_reference_lookup_pieces): Adjust.
13315 (vn_reference_lookup): Remove alias-set altering, instead pass
13316 down false as tbaa_p.
13317
13318 2019-07-05 Richard Biener <rguenther@suse.de>
13319
13320 PR tree-optimization/91091
13321 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13322 accesses can happen with -fno-strict-aliasing.
13323
13324 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13325
13326 * tree-ssa-alias.c (alias_stats): Add
13327 nonoverlapping_component_refs_since_match_p_must_overlap.
13328 (dump_alias_stats): Print it.
13329 (nonoverlapping_component_refs_since_match_p): Add early exit.
13330 (nonoverlapping_component_refs_p): Do not account early exit.
13331
13332 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13333
13334 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13335 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13336 (emit_eh_dispatch): Delete.
13337 (lower_catch): Emit the eh_dispatch manually and set the location of
13338 the first catch statement onto it.
13339 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13340 (lower_eh_dispatch): Propagate location.
13341 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13342 (eliminate_build): Likewise.
13343
13344 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13345
13346 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13347 phi nodes if possible.
13348 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13349 location info on the newly created statement.
13350 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13351 newly created increment if needed.
13352
13353 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13354
13355 PR middle-end/78884
13356 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13357 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13358 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13359 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13360 ctx->add_safelen1 is set.
13361
13362 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13363 GOMP_loop_start at the start of second worksharing loop in a scan.
13364 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13365 worksharing loop in a scan even if there are conditional lastprivates,
13366 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13367
13368 2019-07-04 Jan Hubicka <jh@suse.cz>
13369
13370 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13371 Fix check for match in the ref walk.
13372
13373 2019-07-04 Martin Liska <mliska@suse.cz>
13374
13375 * tree-ssa-loop-niter.c
13376 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13377 (estimate_numbers_of_iterations):
13378 Support __builtin_expect_with_probability for analysis
13379 of # of loop iterations.
13380
13381 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13382
13383 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13384 * except.c: Likewise.
13385 * expr.c (expand_expr_real_1): Reject it.
13386 * gimplify.c (gimplify_expr): Gimplify it, within
13387 TRY_FINALLY_EXPR.
13388 * tree-dump.c (dequeue_and_dump): Dump it.
13389 * tree-pretty-print.c (dump_generic_node): Likewise.
13390 * tree.c (block_may_fallthru): Handle it.
13391 * tree.def (EH_ELSE_EXPR): Introduce it.
13392 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13393 with GIMPLE_EH_ELSE as try/finally/else.
13394
13395 2019-07-04 Richard Biener <rguenther@suse.de>
13396
13397 PR ipa/91062
13398 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13399 parameter whether to disable GC collection.
13400 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13401 honor it.
13402 (execute_all_ipa_transforms): Likewise and pass it down.
13403 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13404 collection from applying IPA transforms.
13405 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13406 from applying IPA transforms.
13407
13408 2019-07-04 Richard Biener <rguenther@suse.de>
13409
13410 PR tree-optimization/90911
13411 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13412 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13413 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13414 scalar_loop_scaling.
13415 (vect_transform_loop): Scale scalar loop profile if needed.
13416 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13417 the loop copy from if-conversion adjust edge probabilities
13418 and scale the vectorized loop body profile, queue the scalar
13419 profile for updating after peeling.
13420
13421 2019-07-04 Jan Hubicka <jh@suse.cz>
13422
13423 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13424 parameters; return early for must-alias.
13425 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13426 outer types match, try nonoverlapping_component_refs
13427 if must-alias is not obvious.
13428 (indirect_refs_may_alias_p): Likewise.
13429 (refs_may_alias_p_2): Likewise.
13430
13431 2019-07-04 Richard Biener <rguenther@suse.de>
13432
13433 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13434 argument.
13435 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13436 globals into...
13437 (struct vn_walk_cb_data): New callback data struct.
13438 (vn_reference_lookup_2): Adjust.
13439 (vn_reference_lookup_3): Likewise.
13440 (vn_reference_lookup_pieces): Likewise.
13441 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13442 (visit_reference_op_load): Adjust.
13443
13444 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13445
13446 PR tree-optimization/91063
13447 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13448 stmt from stmts sequence before calling vect_init_vector_1.
13449 Formatting fix.
13450
13451 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13452
13453 PR target/88833
13454 * fwprop.c (reg_single_def_p): New function.
13455 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13456 (forward_propagate_into): New parameter reg_prop_only
13457 with default value false.
13458 Propagate def's src into loop only if SET_SRC and SET_DEST
13459 of def_set have single definitions.
13460 Likewise if reg_prop_only is set to true.
13461 (fwprop): New param fwprop_addr_p.
13462 Integrate fwprop_addr into fwprop.
13463 (fwprop_addr): Remove.
13464 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13465 to true.
13466 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13467 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13468 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13469
13470 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13471
13472 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13473 in worksharing loop scans.
13474
13475 PR tree-optimization/91074
13476 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13477 temporary.
13478
13479 PR rtl-optimization/90756
13480 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13481 for VECTOR_TYPE_P.
13482
13483 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13484
13485 * config/aarch64/aarch64.md: Remove redundant constraints from
13486 define_expand but keep some patterns untouched if they are
13487 specially selected by TARGET_SECONDARY_RELOAD hook.
13488 * config/aarch64/aarch64-sve.md: Likewise.
13489 * config/aarch64/atomics.md: Remove redundant constraints from
13490 define_expand.
13491 * config/aarch64/aarch64-simd.md: Likewise.
13492
13493 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13494
13495 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13496 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13497 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13498 clauses.
13499 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13500 DARWIN_NOPIE_SPEC.
13501
13502 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13503
13504 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13505 (STARTFILE_SPEC): Split crt3 into a separate spec.
13506 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13507 (DARWIN_CRT2_SPEC): New.
13508 (DARWIN_CRT3_SPEC): New.
13509 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13510 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13511 (DARWIN_CRT3_SPEC): New.
13512
13513 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13514
13515 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13516 Change the RTL attribute "length" from "4" to "*" to allow the
13517 length attribute to be adjusted automatically for prefixed load,
13518 store, and add immediate instructions.
13519 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13520 Likewise.
13521 (extendsi<mode>2, EXTSI iterator): Likewise.
13522 (movsi_internal1): Likewise.
13523 (movsi_from_sf): Likewise.
13524 (movdi_from_sf_zero_ext): Likewise.
13525 (mov<mode>_internal): Likewise.
13526 (movcc_internal1, QHI iterator): Likewise.
13527 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13528 (movsf_from_si): Likewise.
13529 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13530 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13531 (mov<mode>, FMOVE128 iterator): Likewise.
13532 (movdi_internal64): Likewise.
13533 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13534 Likewise.
13535 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13536 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13537 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13538 (vsx_splat_v4sf): Likewise.
13539
13540 2019-07-03 Mark Wielaard <mark@klomp.org>
13541
13542 PR debug/90981
13543 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13544 DW_AT_addr_base if there is actually a .debug_addr section with
13545 addresses.
13546 (output_addr_table): Add DWARF5 table header generation here after
13547 checking there are actually any addresses from...
13548 (dwarf2out_finish): ...here.
13549
13550 2019-07-03 Richard Biener <rguenther@suse.de>
13551
13552 PR middle-end/91069
13553 * match.pd (vec_perm -> bit_insert): Fix element read from
13554 first vector.
13555
13556 2019-07-03 Martin Liska <mliska@suse.cz>
13557
13558 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13559 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13560 condition.
13561 * generic-match-head.c: Include dbgcnt.h.
13562 * gimple-match-head.c: Likewise.
13563
13564 2019-07-03 Martin Liska <mliska@suse.cz>
13565
13566 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13567 (GCOV_COUNTER_V_TOPN): New.
13568 (GCOV_COUNTER_V_INDIR): Use _topn.
13569 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13570 (GCOV_TOPN_VALUES): New.
13571 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13572 (GCOV_TOPN_VALUES_COUNTERS): New.
13573 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13574 * tree-profile.c:
13575 (gimple_init_gcov_profiler): Rename variables from one_value
13576 to topn_values.
13577 (gimple_gen_one_value_profiler): Remove.
13578 (gimple_gen_topn_values_profiler): New function.
13579 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13580 names instead of SINGLE_VALUE.
13581 (stream_out_histogram_value): Likewise.
13582 (stream_in_histogram_value): Likewise.
13583 (get_most_common_single_value): Likewise.
13584 (gimple_divmod_fixed_value_transform): Likewise.
13585 (gimple_stringops_transform): Likewise.
13586 (gimple_divmod_values_to_profile): Likewise.
13587 (gimple_stringops_values_to_profile): Likewise.
13588 (gimple_find_values_to_profile): Likewise.
13589 * value-prof.h (enum hist_type): Rename to TOPN.
13590 (gimple_gen_one_value_profiler): Remove.
13591 (gimple_gen_topn_values_profiler): New.
13592
13593 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13594
13595 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13596 if it has the DW_AT_data_member_location attribute.
13597
13598 2019-07-03 Richard Biener <rguenther@suse.de>
13599
13600 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13601 dumping.
13602
13603 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13604
13605 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13606 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13607 (tlsdesc_small_sve_<mode>): Likewise.
13608
13609 2019-07-03 Martin Liska <mliska@suse.cz>
13610
13611 * Makefile.in: Define ZSTD_LIB.
13612 * common.opt: Adjust compression level
13613 to support also zstd levels.
13614 * config.in: Regenerate.
13615 * configure: Likewise.
13616 * configure.ac: Add --with-zstd and --with-zstd-include options
13617 and detect ZSTD.
13618 * doc/install.texi: Mention zstd dependency.
13619 * gcc.c: Print supported LTO compression algorithms.
13620 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13621 (lto_compression_zstd): Likewise.
13622 (lto_uncompression_zstd): Likewise.
13623 (lto_end_compression): Dispatch in between zlib and zstd.
13624 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13625 (lto_uncompression_zlib): Make it static.
13626 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13627 * lto-section-in.c (lto_get_section_data): Pass info
13628 about used compression.
13629 * lto-streamer-out.c: By default use zstd when possible.
13630 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13631 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13632
13633 2019-07-03 Martin Liska <mliska@suse.cz>
13634
13635 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13636 * lto-section-out.c (lto_destroy_simple_output_block): Never
13637 compress LTO_section_lto section.
13638 * lto-streamer-out.c (produce_asm): Do not set major_version
13639 and minor_version.
13640 (lto_output_toplevel_asms): Likewise.
13641 (produce_lto_section): New function.
13642 (lto_output): Call produce_lto_section.
13643 (lto_write_mode_table): Do not set major_version and
13644 minor_version.
13645 (produce_asm_for_decls): Likewise.
13646 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13647 type.
13648 (struct lto_header): Remove.
13649 (struct lto_section): New struct.
13650 (struct lto_simple_header): Do not inherit from lto_header.
13651 (struct lto_file_decl_data): Add lto_section_header field.
13652
13653 2019-07-03 Martin Liska <mliska@suse.cz>
13654
13655 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13656 dead assignemts.
13657 * reg-stack.c (check_asm_stack_operands): Likewise.
13658 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13659 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13660 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13661 force_expand_binop.
13662
13663 2019-07-03 Martin Liska <mliska@suse.cz>
13664
13665 PR tree-optimization/90892
13666 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13667 in string constants.
13668
13669 2019-07-03 Martin Liska <mliska@suse.cz>
13670
13671 PR middle-end/90899
13672 * multiple_target.c (create_dispatcher_calls): Add to comdat
13673 group only if set for ifunc.
13674
13675 2019-07-03 Martin Liska <mliska@suse.cz>
13676
13677 PR target/88056
13678 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13679 Define local_object_name in outer scope in order to handle
13680 use-after-scope issue.
13681
13682 2019-07-03 Martin Liska <mliska@suse.cz>
13683
13684 * common.opt: Add fprofile-note.
13685 * coverage.c (coverage_init): Append the option
13686 to bbg_file_name.
13687 * doc/invoke.texi: Document -fprofile-note.
13688
13689 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13690
13691 PR tree-optimization/91033
13692 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13693 vect_analyze_data_refs): Add bool * arguments.
13694 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13695 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13696 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13697 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13698 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13699 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13700 vect_analyze_data_refs caller.
13701
13702 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13703 clause.
13704 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13705 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13706 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13707 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13708 OMP_CLAUSE__SCANTEMP_ entry.
13709 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13710 * tree-pretty-print.c (dump_omp_clause): Likewise.
13711 * tree-nested.c (convert_nonlocal_omp_clauses,
13712 convert_local_omp_clauses): Likewise.
13713 * omp-general.h (struct omp_for_data): Add have_scantemp and
13714 have_nonctrl_scantemp members.
13715 * omp-general.c (omp_extract_for_data): Initialize them.
13716 * omp-low.c (struct omp_context): Add scan_exclusive member.
13717 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13718 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13719 ctx->scan_exclusive.
13720 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13721 of !ctx->scan_inclusive.
13722 (lower_rec_input_clauses): Simplify gimplification of dtors using
13723 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13724 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13725 loops. Don't add barrier for reduction_omp_orig_ref if
13726 ctx->scan_??xclusive.
13727 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13728 (lower_omp_scan): Use ctx->scan_exclusive instead
13729 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13730 reductions. Use new_vard != new_var instead of repeated
13731 omp_is_reference calls.
13732 (omp_find_scan, lower_omp_for_scan): New functions.
13733 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13734 inscan reductions.
13735 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13736 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13737 and fd->have_scantemp.
13738
13739 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13740 on worksharing loop propagate it as shared clause to containing
13741 combined parallel.
13742
13743 * omp-expand.c (expand_omp_for_static_nochunk,
13744 expand_omp_for_static_chunk): For nowait worksharing loop with
13745 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13746 at the end.
13747
13748 2019-07-02 qing zhao <qing.zhao@oracle.com>
13749
13750 PR preprocessor/90581
13751 * doc/cppopts.texi: Add document for -fmax-include-depth.
13752 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13753
13754 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13755
13756 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13757 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13758 (mmx_packssdw): Ditto.
13759 (mmx_punpckhbw): Ditto.
13760 (mmx_punpcklbw): Ditto.
13761 (mmx_punpckhwd): Ditto.
13762 (mmx_punpcklwd): Ditto.
13763 (mmx_punpckhdq): Ditto.
13764 (mmx_punpckldq): Ditto.
13765 (*vec_dupv4hi): Ditto.
13766 (*vec_dupv2si): Ditto.
13767 (mmx_pmovmskb): Ditto.
13768 * config/i386/sse.md (sse_cvtpi2ps): Use
13769 TARGET_SSE2 && SSE_REG_P in split condition.
13770 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13771 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13772 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13773 (ssse3_pshufbv8qi3): Ditto.
13774 (ssse3_palignrdi): Ditto.
13775
13776 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13777
13778 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13779 with inlined save and restore.
13780
13781 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13782
13783 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13784 to be inserted on single successor edge of the entry block. Then call
13785 commit_edge_insertions instead of inserting the instructions manually.
13786 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13787 RTL expansion and rebuild jump labels chain.
13788
13789 2019-07-02 Richard Biener <rguenther@suse.de>
13790
13791 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13792 TI_CHREC_KNOWN.
13793 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13794 Define here.
13795 * tree.c (build_common_tree_nodes): Initialize them.
13796 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13797 Make declarations comments.
13798 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13799 chrec_known): Remove definitions.
13800 (initialize_scalar_evolutions_analyzer): Remove.
13801 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13802 * tree-streamer.c (preload_common_nodes): Do not preload
13803 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13804
13805 2019-07-02 Jan Hubicka <jh@suse.cz>
13806
13807 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13808 sanity check.
13809
13810 2019-07-02 Jan Hubicka <jh@suse.cz>
13811
13812 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13813 to ..
13814 (nonoverlapping_component_refs_since_match_p): ... this one;
13815 handle also non-decl bases; return -1 if search gave up.
13816 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13817 nonoverlapping_component_refs_of_decl_p_no_alias to
13818 nonoverlapping_component_refs_since_match_p_may_alias,
13819 nonoverlapping_component_refs_since_match_p_no_alias.
13820 (dump_alias_stats): Update dumping.
13821 (aliasing_matching_component_refs_p): Break out from ...;
13822 dispatch to nonoverlapping_component_refs_for_decl_p
13823 and nonoverlapping_component_refs_since_match_p.
13824 (aliasing_component_refs_p): ... here; call
13825 nonoverlapping_component_refs_p in scenarios where we can not
13826 precisely determine base match.
13827 (decl_refs_may_alias_p): Use
13828 nonoverlapping_component_refs_since_match_p.
13829 (indirect_ref_may_alias_decl_p): Do not call
13830 nonoverlapping_component_refs_p.
13831 (indirect_refs_may_alias_p): Likewise.
13832
13833 2019-07-02 Jan Hubicka <jh@suse.cz>
13834
13835 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13836 to clobber of return value.
13837
13838 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13839
13840 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13841 for is_neon_type instructions that have not already been categorized.
13842
13843 2019-07-02 Richard Biener <rguenther@suse.de>
13844
13845 PR tree-optimization/58483
13846 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13847 for MEM_REF base hashing.
13848 (equal_mem_array_ref_p): Likewise for base comparison.
13849
13850 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13851
13852 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13853 parameterized name.
13854 (signbit<mode>2): Use that name. Simplify.
13855
13856 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13857
13858 PR middle-end/66726
13859 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13860 Tune heuristic from PR71016 to allow MIN / MAX.
13861
13862 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13863
13864 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13865 parameterized name.
13866 (abs<mode>2): Use that name. Simplify.
13867
13868 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13869
13870 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13871 parameterized name.
13872 (neg<mode>2): Use that name. Simplify.
13873
13874 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13875
13876 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13877 name.
13878 (abs<mode>2): Use that name. Simplify.
13879
13880 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13881
13882 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13883 name.
13884 (neg<mode>2): Use that name. Simplify.
13885
13886 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13887
13888 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13889 ("enabled" attribute): Handle sse_noavx isa attribute.
13890 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13891 Use TARGET_SSE && SSE_REGNO_P in split condition.
13892 (*vec_dupv2sf): Ditto.
13893
13894 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13895
13896 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13897 name.
13898 (floatsi<mode>2): Use that name. Simplify.
13899
13900 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13901
13902 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13903 parameterized name.
13904 (extenddf<mode>2_vsx): Make this a parameterized name.
13905 (extenddf<mode>2): Use those names. Simplify.
13906
13907 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13908
13909 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13910 name.
13911 (eh_return): Use that name. Simplify.
13912
13913 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13914
13915 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13916 (doloop_end): Use that name. Simplify.
13917
13918 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13919
13920 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13921 parameterized name.
13922 (indirect_jump): Use that name. Simplify.
13923
13924 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13925
13926 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13927 parameterized name.
13928 (abs<mode>2): Use that name. Simplify.
13929
13930 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13931
13932 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13933 parameterized name.
13934 (fix_trunc<mode>si2): Use that name. Simplify.
13935
13936 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13937
13938 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13939 (allocate_stack): Use that name. Simplify.
13940
13941 2019-07-01 Martin Sebor <msebor@redhat.com>
13942
13943 PR middle-end/90923
13944 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13945 (hash_map::get_or_insert): Same. Reformat comment.
13946 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13947 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13948 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13949 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13950 (hash_table::hash_table (const hash_table&)): Use copy ctor
13951 instead of assignment to copy elements.
13952
13953 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13954 John David Anglin <danglin@gcc.gnu.org>
13955
13956 PR target/90963
13957 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13958 using saved frame pointer.
13959
13960 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13961
13962 PR middle-end/64242
13963 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13964 Add frame clobber and schedule blockage.
13965
13966 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13967
13968 * doc/invoke.texi (Link Options): Further editorial changes to
13969 -flinker-output docs.
13970
13971 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13972
13973 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13974 Load both operands of a PLUS into registers separately.
13975
13976 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13977
13978 * config/s390/vector.md: Fix shift count operand printing.
13979
13980 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13981
13982 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13983
13984 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13985
13986 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13987 Use recog_data to test for an output operand.
13988
13989 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13990
13991 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13992 exclude any others that are disparaged or that are bound to need
13993 a reload or spill.
13994 (ira_get_dup_out_num): Expand comment.
13995
13996 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13997
13998 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13999 constraint string for each operand/alternative combo. Only handle
14000 '%' at the start of constraint strings, and look for it outside
14001 the main loop.
14002
14003 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14004
14005 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
14006 alternative_mask instead of HARD_REG_SET to represent a
14007 bitmask of alternatives.
14008 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14009 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
14010
14011 2019-07-01 Martin Liska <mliska@suse.cz>
14012
14013 * edit-context.c (test_applying_fixits_unreadable_file): Do not
14014 use () for a constructor call.
14015 (test_applying_fixits_line_out_of_range): Likewise.
14016 * ggc-page.c (alloc_page): Use (void *) for %p printf format
14017 argument.
14018 (free_page): Likewise.
14019
14020 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
14021
14022 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
14023 parameter names to match usage (no functional change).
14024 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
14025
14026 2019-07-01 Richard Biener <rguenther@suse.de>
14027
14028 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
14029 pass parameter.
14030 (pass_fre::execute): Honor it.
14031 * passes.def: Adjust pass_fre invocations to allow iterating,
14032 add non-iterating pass_fre before late threading/dom.
14033
14034 2019-07-01 Richard Biener <rguenther@suse.de>
14035
14036 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
14037 TARGET_MEM_REF handling to also handle address-taken ones.
14038
14039 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
14040
14041 * doc/sourcebuild.texi (Effective-Target Keywords, Other
14042 hardware attributes): Document avx512vp2intersect.
14043
14044 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14045
14046 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
14047 (abs<mode>2): New expander.
14048 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
14049 Use CODE_FOR_ssse3_absv8qi2.
14050 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
14051 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
14052
14053 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14054
14055 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
14056 to sse, sse_noavx and avx. Update all uses.
14057
14058 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14059
14060 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
14061 (*mmx_<plusminus_insn><mode>3): Ditto.
14062 (*mmx_mulv4hi3"): Ditto.
14063 (*mmx_smulv4hi3_highpart): Ditto.
14064 (*mmx_umulv4hi3_highpart): Ditto.
14065 (*mmx_pmaddwd): Ditto.
14066 (*sse2_umulv1siv1di3): Ditto.
14067 (*mmx_<code>v4hi3): Ditto.
14068 (*mmx_<code>v8qi3): Ditto.
14069 (mmx_ashr<mode>3): Ditto.
14070 ("mmx_<shift_insn><mode>3): Ditto.
14071 (*mmx_eq<mode>3): Ditto.
14072 (mmx_gt<mode>3): Ditto.
14073 (mmx_andnot<mode>3): Ditto.
14074 (*mmx_<code><mode>3): Ditto.
14075 (*mmx_pinsrw): Ditto.
14076 (*mmx_pextrw): Ditto.
14077 (mmx_pshufw_1): Ditto.
14078 (*mmx_uavgv8qi3): Ditto.
14079 (*mmx_uavgv4hi3): Ditto.
14080 ("mmx_psadbw): Ditto.
14081 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14082 (sse_cvttps2pi): Ditto.
14083 (ssse3_pmaddubsw): Ditto.
14084 (*ssse3_pmulhrswv4hi3): Ditto.
14085 (ssse3_psign<mode>3): Ditto.
14086
14087 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14088
14089 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14090 adjustment for bit-fields to all aggregate types.
14091
14092 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14093
14094 * config/rs6000/predicates.md (pcrel_address): Use
14095 SYMBOL_REF_LOCAL_P to determine if a label is local.
14096 (pcrel_external_address): New predicate.
14097 (non_prefixed_mem_operand): Delete, predicate not used.
14098 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14099 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14100 addressing.
14101 (SYMBOL_REF_PCREL_P): Likewise.
14102
14103 PR target/91009
14104 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14105 alternative.
14106 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14107 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14108 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14109
14110 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14111
14112 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14113 override on extra_headers.
14114
14115 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14116
14117 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14118 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14119 from warning.
14120 (darwin_driver_init): Likewise.
14121
14122 2019-06-28 Jan Beulich <jbeulich@suse.com>
14123
14124 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14125 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14126 Eliminate redundant alternative.
14127
14128 2019-06-28 Jan Beulich <jbeulich@suse.com>
14129
14130 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14131 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14132 Use vector_operand.
14133
14134 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14135
14136 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14137 having a lower cost regardless of the speed option.
14138
14139 2019-06-28 Jan Beulich <jbeulich@suse.com>
14140
14141 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14142 vector_operand plus, on both alternatives, "Bm" constraint.
14143
14144 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14145
14146 * config/arm/arm.md: Remove redundant constraints from
14147 define_expand but leave reload_inm and reload_outm patterns
14148 untouched since they need special constraints to work.
14149 * config/arm/arm-fixed.md: Remove redundant constraints from
14150 define_expand.
14151 * config/arm/iwmmxt.md: Likewise.
14152 * config/arm/neon.md: Likewise.
14153 * config/arm/sync.md: Likewise.
14154 * config/arm/thumb1.md: Likewise.
14155 * config/arm/vec-common.md: Likewise.
14156
14157 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14158
14159 * doc/install.texi: Document --disable-tm-clone-registry.
14160
14161 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14162
14163 PR c++/91024
14164 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14165 statements.
14166
14167 PR tree-optimization/91010
14168 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14169 return true. Otherwise, don't call operand_equal_p if offset1 or
14170 offset2 is NULL and just return false.
14171
14172 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14173
14174 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14175 user-specified float mode choice for kernel mode code.
14176
14177 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14178
14179 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14180 spec.
14181
14182 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14183
14184 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14185 use longcall for 64b code.
14186
14187 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14188
14189 * builtins.c (get_memory_rtx): Fix comment.
14190 * optabs.def (movmem_optab): Change to cpymem_optab.
14191 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14192 (emit_block_move_hints): Change movmem to cpymem.
14193 * defaults.h: Change movmem to cpymem.
14194 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14195 (default_use_by_pieces_infrastructure_p): Ditto.
14196 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14197 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14198 to cpymem.
14199 * config/aarch64/aarch64.h: Change movmem to cpymem.
14200 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14201 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14202 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14203 movmem to cpymem.
14204 * config/arc/arc-protos.h: Change movmem to cpymem.
14205 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14206 * config/arc/arc.h: Change movmem to cpymem in comment.
14207 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14208 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14209 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14210 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14211 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14212 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14213 * config/avr/avr-protos.h: Change movmem to cpymem.
14214 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14215 avr_out_movmem): Change movmem to cpymem.
14216 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14217 Change movmem to cpymem.
14218 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14219 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14220 Change movmem to cpymem.
14221 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14222 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14223 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14224 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14225 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14226 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14227 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14228 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14229 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14230 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14231 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14232 expand_small_cpymem_or_setmem,
14233 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14234 expand_set_or_cpymem_constant_prologue,
14235 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14236 * config/i386/i386-protos.h: Change movmem to cpymem.
14237 * config/i386/i386.h: Change movmem to cpymem in comment.
14238 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14239 (setmem<mode>): Change expansion function name.
14240 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14241 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14242 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14243 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14244 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14245 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14246 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14247 to cpymem.
14248 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14249 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14250 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14251 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14252 Change movmem to cpymem.
14253 * config/mips/mips.h: Change movmem to cpymem.
14254 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14255 * config/nds32/nds32-memory-manipulation.c
14256 (nds32_expand_movmemsi_loop_unknown_size,
14257 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14258 nds32_expand_movmemsi_unroll,
14259 nds32_expand_movmemsi): Change movmem to cpymem.
14260 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14261 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14262 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14263 (pa_adjust_insn_length): Change call to compute_movmem_length.
14264 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14265 movmemdi, movmemdi_prereload,
14266 movmemdi_postreload): Change movmem to cpymem.
14267 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14268 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14269 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14270 * config/riscv/riscv.h: Change movmem to cpymem.
14271 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14272 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14273 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14274 movmem to cpymem.
14275 * config/s390/s390-protos.h: Change movmem to cpymem.
14276 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14277 s390_expand_insv): Change movmem to cpymem.
14278 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14279 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14280 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14281 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14282 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14283 for nonexistent function.
14284 * config/vax/vax.h: Change movmem to cpymem in comment.
14285 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14286 * config/visium/visium.h: Change movmem to cpymem in comment.
14287 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14288 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14289 * doc/md.texi: Change movmem to cpymem and update description to match.
14290 * doc/rtl.texi: Change movmem to cpymem.
14291 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14292 * doc/tm.texi: Regenerate.
14293
14294 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14295
14296 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14297 -fvariable-expansion-in-unroller by default.
14298 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14299 default for Power.
14300
14301 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14302
14303 Revert
14304 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14305 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14306
14307 * config.gcc(rs6000-*-*): Define target_gtfiles.
14308
14309 2019-06-27 Jan Hubicka <jh@suse.cz>
14310
14311 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14312 (add_type_duplicate): When odr hash is not allocated, to nothing.
14313 (odr_based_tbaa_p): New function.
14314 (set_type_canonical_for_odr_type): New function.
14315 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14316 set_type_canonical_for_odr_type): New.
14317 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14318 ODR based TBAA are not equivalent to non-ODR types.
14319
14320 2019-06-27 Martin Liska <mliska@suse.cz>
14321
14322 PR tree-optimization/90974
14323 PR rtl-optimization/90975
14324 PR rtl-optimization/90976
14325 PR target/91016
14326 PR tree-optimization/91017
14327 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14328 unused tmp.
14329 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14330 initial commit of IRA.
14331 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14332 of op0 and op1.
14333 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14334 Remove unused mode1.
14335 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14336 to new_stmt_info.
14337
14338 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14339
14340 PR target/90991
14341 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14342 instead of register_operand for operands[1], add m to its constraints
14343 if operands[2] uses "C" constraint. Ensure in condition that if
14344 operands[2] is not 0, then operands[1] is not a MEM. For last two
14345 alternatives, use unaligned loads instead of aligned if operands[1] is
14346 misaligned_operand.
14347
14348 2019-06-27 Martin Liska <mliska@suse.cz>
14349
14350 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14351 dead assignments.
14352 * bt-load.c (move_btr_def): Likewise.
14353 * builtins.c (expand_builtin_apply_args_1): Likewise.
14354 (expand_builtin_apply): Likewise.
14355 * cfgexpand.c (expand_asm_stmt): Likewise.
14356 (construct_init_block): Likewise.
14357 * cfghooks.c (verify_flow_info): Likewise.
14358 * cfgloopmanip.c (remove_path): Likewise.
14359 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14360 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14361 * combine.c (simplify_if_then_else): Likewise.
14362 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14363 (choose_basereg): Likewise.
14364 (ix86_expand_prologue): Likewise.
14365 (ix86_preferred_output_reload_class): Likewise.
14366 * cselib.c (cselib_record_sets): Likewise.
14367 * df-scan.c (df_scan_alloc): Likewise.
14368 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14369 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14370 * emit-rtl.c (try_split): Likewise.
14371 * graphite-scop-detection.c (assign_parameter_index_in_region):
14372 Likewise.
14373 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14374 * ira-color.c (setup_profitable_hard_regs): Likewise.
14375 * ira.c (rtx_moveable_p): Likewise.
14376 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14377 * read-rtl.c (read_subst_mapping): Likewise.
14378 * regrename.c (scan_rtx): Likewise.
14379 * reorg.c (fill_slots_from_thread): Likewise.
14380 * tree-inline.c (tree_function_versioning): Likewise.
14381 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14382 * tree-ssa-sink.c (statement_sink_location): Likewise.
14383 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14384 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14385 (vect_create_epilog_for_reduction): Likewise.
14386 * tree.c (build_nonstandard_integer_type): Likewise.
14387
14388 2019-06-27 Richard Biener <rguenther@suse.de>
14389
14390 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14391
14392 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14393
14394 PR tree-optimization/89772
14395 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14396 out-of-bound accesses checking.
14397
14398 2019-06-27 Martin Liska <mliska@suse.cz>
14399
14400 PR tree-optimization/91014
14401 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14402 when LHS is NULL_TREE.
14403
14404 2019-06-27 Martin Liska <mliska@suse.cz>
14405
14406 * symbol-summary.h (traverse): Pass
14407 argument a to the call of callback.
14408 (gt_ggc_mx): Mark arguments as unused.
14409 (gt_pch_nx): Likewise.
14410
14411 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14412
14413 PR target/62147
14414 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14415 finiteness.
14416
14417 2019-06-26 Jeff Law <law@redhat.com>
14418
14419 PR tree-optimization/90883
14420 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14421 (delete_dead_or_redundant_assignment): Likewise.
14422
14423 PR tree-optimization/90883
14424 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14425 * tree-ssa-dse.c: Update various comments to distinguish between
14426 dead and redundant stores.
14427 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14428 (dse_optimize_redundant_stores): New function.
14429 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14430 Distinguish between dead and redundant calls in dump output. All
14431 callers updated.
14432 (delete_dead_or_redundant_assignment): Similarly for assignments.
14433 (dse_optimize_stmt): Handle _CHK variants. For statements which
14434 store 0 into multiple memory locations, try to prove a subsequent
14435 store is redundant.
14436
14437 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14438
14439 PR target/89021
14440 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14441 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14442
14443 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14444
14445 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14446 (branch_islands): New extern.
14447 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14448 * config/rs6000/rs6000.c: .. here.
14449
14450 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14451
14452 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14453 (powerpc*-*-*) ... to here.
14454
14455 2019-06-26 Jeff Law <law@redhat.com>
14456
14457 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14458 memcpy, memmove and memset builtins.
14459 (maybe_trim_memstar_call): Likewise.
14460
14461 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14462
14463 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14464
14465 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14466
14467 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14468
14469 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14470
14471 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14472 declaration.
14473 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14474 "static".
14475 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14476 declaration.
14477
14478 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14479
14480 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14481
14482 2019-06-26 Richard Biener <rguenther@suse.de>
14483
14484 PR ipa/90982
14485 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14486
14487 2019-06-26 Richard Biener <rguenther@suse.de>
14488
14489 * lto-streamer.h (lto_bitmap_alloc): Remove.
14490 (lto_bitmap_free): Likewise.
14491 * lto-streamer.c (lto_bitmap_alloc): Remove.
14492 (lto_bitmap_free): Likewise.
14493 (lto_obstack): Likewise.
14494 (lto_obstack_initialized): Likewise.
14495 * lto-streamer-out.c (lto_output): Use own obstack for local
14496 bitmap, free it consistently.
14497
14498 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14499
14500 PR target/90991
14501 * config/i386/sse.md
14502 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14503 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14504 insns if operands[2] is misaligned_operand.
14505
14506 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14507
14508 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14509 TARGET_POWERPC64.
14510 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14511 to GPR.
14512
14513 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14514
14515 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14516
14517 2019-06-26 Martin Liska <mliska@suse.cz>
14518
14519 PR tree-optimization/90973
14520 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14521 epilogue_cost_vec instead of prologue_cost_vec for
14522 a epilogue cost.
14523
14524 2019-06-26 Martin Liska <mliska@suse.cz>
14525
14526 * bb-reorder.c (connect_better_edge_p): Add missing else
14527 statement in the middle of if-else statements.
14528
14529 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14530 H.J. Lu <hongjiu.lu@intel.com>
14531 Olga Makhotina <olga.makhotina@intel.com>
14532
14533 * common/config/i386/i386-common.c
14534 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14535 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14536 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14537 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14538 (ix86_handle_option): Handle -mavx512vp2intersect.
14539 * config/i386/avx512vp2intersectintrin.h: New.
14540 * config/i386/avx512vp2intersectvlintrin.h: New.
14541 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14542 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14543 AVX512VP2INTERSECT.
14544 * config/i386/i386-builtin-types.def: Add new types.
14545 * config/i386/i386-builtin.def: Add new builtins.
14546 * config/i386/i386-builtins.c: (enum processor_features): Add
14547 F_AVX512VP2INTERSECT.
14548 (static const _isa_names_table isa_names_table): Ditto.
14549 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14550 __AVX512VP2INTERSECT__.
14551 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14552 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14553 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14554 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14555 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14556 * config/i386/i386-options.c (ix86_target_string): Add
14557 -mavx512vp2intersect.
14558 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14559 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14560 P2HImode and P2QImode.
14561 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14562 number for P2QImode and P2HImode.
14563 (ix86_regmode_natural_size): New function.
14564 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14565 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14566 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14567 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14568 * config/i386/i386.opt: Add -mavx512vp2intersect.
14569 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14570 avx512vp2intersectvlintrin.h.
14571 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14572 (define_mode_iterator VI48_AVX512VP2VL): New.
14573 (avx512vp2intersect_2intersect<mode>,
14574 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14575 * config.gcc: Add avx512vp2intersectvlintrin.h and
14576 avx512vp2intersectintrin.h to extra_headers.
14577 * doc/invoke.texi: Document -mavx512vp2intersect.
14578
14579 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14580
14581 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14582
14583 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14584
14585 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14586 savres_routine_syms, savres_routine_name, morestack_ref,
14587 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14588 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14589 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14590 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14591 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14592 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14593 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14594 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14595 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14596 get_stack_clash_protection_probe_interval,
14597 get_stack_clash_protection_guard_size,
14598 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14599 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14600 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14601 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14602 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14603 gen_frame_mem_offset, rs6000_savres_routine_name,
14604 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14605 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14606 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14607 rs6000_global_entry_point_prologue_needed_p,
14608 rs6000_get_separate_components, rs6000_components_for_bb,
14609 rs6000_disqualify_components, rs6000_emit_prologue_components,
14610 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14611 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14612 rs6000_output_savres_externs, rs6000_output_function_prologue,
14613 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14614 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14615 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14616 rs6000_output_function_epilogue, gen_add3_const,
14617 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14618 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14619 to rs6000-logue.c.
14620 (machine_function): Moved to rs6000.h.
14621 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14622 rs6000-internal.h.
14623 * config/rs6000/rs6000-logue.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 here from rs6000.c.
14658 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14659 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14660 quad_address_offset_p) Moved to here from rs6000.c.
14661 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14662 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14663 collector.
14664
14665 2019-06-25 Martin Liska <mliska@suse.cz>
14666
14667 * hash-table.c (hashtab_chk_error): Move here from ...
14668 * hash-table.h (hashtab_chk_error): ... here.
14669
14670 2019-06-25 Martin Liska <mliska@suse.cz>
14671
14672 PR tree-optimization/90978
14673 * df-scan.c (df_update_entry_block_defs): Remove dead else
14674 branch.
14675 (df_update_exit_block_uses): Likewise.
14676
14677 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14678 Andrew Stubbs <ams@codesourcery.com>
14679
14680 * config.gcc (thread_file): Set to gcn for AMD GCN.
14681 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14682 (TARGET_EMUTLS_VAR_INIT): New hook.
14683
14684 2019-06-25 Martin Jambor <mjambor@suse.cz>
14685
14686 PR ipa/90939
14687 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14688
14689 2019-06-25 Richard Biener <rguenther@suse.de>
14690
14691 PR tree-optimization/90930
14692 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14693 into parallel form in the last pass instance.
14694
14695 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14696
14697 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14698 (arc_legitimize_pic_address): Simplify and cleanup the function.
14699 (SYMBOLIC_CONST): Remove.
14700 (prepare_pic_move): Likewise.
14701 (prepare_move_operands): Handle complex mov cases here.
14702 (arc_legitimize_address_0): Remove call to
14703 arc_legitimize_pic_address.
14704 (arc_legitimize_address): Remove call to
14705 arc_legitimize_tls_address.
14706 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14707 (movhi_insn): Likewise.
14708
14709 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14710
14711 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14712 PTRDIFF_TYPE.
14713 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14714 format of "__intN" types for UINTMAX_TYPE.
14715 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14716 format of "__intN" types for SIZETYPE.
14717 * tree.c (build_common_tree_nodes): Accept "__intN__"
14718 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14719 * doc/invoke.texi: Document that __intN__ disables pedantic
14720 warnings.
14721
14722 2019-06-25 Jan Hubicka <jh@suse.cz>
14723
14724 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14725 base2_alias_set is non-zero before doing TBAA based disambiguation.
14726
14727 2019-06-25 Martin Liska <mliska@suse.cz>
14728
14729 PR tree-optimization/90973
14730 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14731 of prologue and epilogue.
14732
14733 2019-06-24 Jan Hubicka <jh@suse.cz>
14734
14735 * ipa-utils.h (type_with_linkage_p): Verify that type is
14736 CXX_ODR_P.
14737 (odr_type_p): Remove extra return.
14738 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14739 hash STRING_FLAG only for arrays and integers.
14740 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14741 Update analogously.
14742 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14743 Likewise.
14744 * print-tree.c (print_node): Print cxx-odr-p
14745 and string-flag.
14746 * tree.c (need_assembler_name_p): Also check that type
14747 is CXX_ODR_TYPE_P
14748 (verify_type_variant): Update verification of SRING_FLAG;
14749 also check CXX_ODR_P.
14750 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14751 (TYPE_STRING_FLAG): Use it.
14752 (TYPE_CXX_ODR_P): New macro.
14753 * dwarf2out.c (gen_array_type_die): First check that type
14754 is an array and then test string flag.
14755
14756 2019-06-24 Richard Biener <rguenther@suse.de>
14757
14758 PR tree-optimization/90972
14759 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14760 in common code, dealing with STRING_CST properly.
14761
14762 2019-06-24 Richard Biener <rguenther@suse.de>
14763
14764 PR tree-optimization/90930
14765 PR tree-optimization/90316
14766 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14767 decrement of limit.
14768
14769 2019-06-24 Martin Sebor <msebor@redhat.com>
14770
14771 * tree-pretty-print.h: Remove unnecessary punctuation characters
14772 from a diagnostic.
14773 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14774
14775 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14776
14777 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14778 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14779 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14780
14781 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14782
14783 * config/rs6000/darwin.h: Handle GCC target pragma.
14784
14785 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14786
14787 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14788
14789 2019-06-22 Jeff Law <law@redhat.com>
14790
14791 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14792
14793 2019-06-22 Jan Hubicka <jh@suse.cz>
14794
14795 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14796 give up on bitfields; continue searching for different refs
14797 appearing later.
14798
14799 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14800
14801 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14802 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14803 containing the offset as possible simd lane access. Look through
14804 widening conversion. Move the
14805 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14806
14807 2019-06-21 Richard Biener <rguenther@suse.de>
14808
14809 PR tree-optimization/90930
14810 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14811 flag on new stmts to avoid re-processing them.
14812
14813 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14814
14815 PR c++/90875 - added -Wswitch-outside-range option
14816 * doc/invoke.texi (Wswitch-outside-range): Document.
14817
14818 2019-06-21 Jeff Law <law@redhat.com>
14819
14820 PR tree-optimization/90949
14821 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14822 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14823
14824 2019-06-21 Richard Biener <rguenther@suse.de>
14825
14826 PR debug/90914
14827 * dwarf2out.c (prune_unused_types_walk): Always consider
14828 function-local extern declarations as used.
14829
14830 2019-06-21 Richard Biener <rguenther@suse.de>
14831
14832 PR tree-optimization/90913
14833 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14834 the scalar variant of if-conversion versioning.
14835
14836 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14837
14838 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14839 create another "omp scan inscan exclusive" array if
14840 !ctx->scan_inclusive.
14841 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14842 (lower_omp_scan): Likewise.
14843 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14844 2-bit bitfield for simd_lane_access_p member.
14845 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14846 aux == (void *)-4 as simd lane access.
14847 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14848 comment with permutations to show the canonical permutation order.
14849 (vectorizable_scan_store): Handle exclusive scan.
14850 (vectorizable_store): Call vectorizable_scan_store even for
14851 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14852
14853 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14854 "omp simd array" arrays with one byte elements.
14855
14856 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14857
14858 * config/alpha/alpha.md (@unaligned_store<mode>):
14859 Rename from unaligned_store<mode>.
14860 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14861 * config/alpha/sync.md (@load_locked_<mode>): Rename
14862 from load_locked_<mode>.
14863 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14864 (@atomic_compare_and_swap<mode>_1): Rename
14865 from atomic_compare_and_swap<mode>_1.
14866 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14867 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14868 Use gen_reload_in_aligned and gen_unaligned_store.
14869 (emit_load_locked): Remove.
14870 (emit_store_conditional): Ditto.
14871 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14872 (alpha_split_compare_and_swap): Ditto.
14873 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14874 (alpha_split_compare_and_swap_12): Use gen_load_locked
14875 and gen_store_conditional.
14876 (alpha_split_atomic_exchange): Ditto.
14877 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14878 (alpha_split_atomic_exchange_12): Use gen_load_locked
14879 and gen_store_conditional.
14880
14881 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14882
14883 * config/aarch64/aarch64-errata.h: New file.
14884 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14885 (CA53_ERR_843419_SPEC): Delete.
14886 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14887 * config/aarch64/aarch64-linux.h: Likewise.
14888 * config/aarch64/aarch64-netbsd.h: Likewise.
14889 * config/aarch64/aarch64-freebsd.h: Likewise.
14890
14891 2019-06-20 Marek Polacek <polacek@redhat.com>
14892
14893 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14894
14895 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14896
14897 * config/rs6000/rs6000.md (isa attribute): Add support for
14898 for a future processor.
14899
14900 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14901
14902 PR target/54855
14903 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14904 standard scalar operation pattern for V2DF.
14905 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14906 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14907 (*ieee_<ieee_maxmin><mode>3): Likewise.
14908 (vec_setv2df_0): Likewise.
14909
14910 2019-06-20 Jan Hubicka <jh@suse.cz>
14911
14912 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14913 parameter; it has no use in gimple memory model.
14914 (indirect_ref_may_alias_decl_p): Update.
14915
14916 2019-06-20 Martin Liska <mliska@suse.cz>
14917
14918 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14919 to 10.
14920
14921 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14922
14923 * tree-vect-stmts.c (enum scan_store_kind): New type.
14924 (scan_store_can_perm_p): Change last argument from int * to
14925 vec<enum scan_store_kind> *, record precisely which permutations
14926 need whole vector left shift or that plus VEC_COND_EXPR.
14927 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14928 and additional VEC_COND_EXPR only for those iterations that need it.
14929
14930 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14931
14932 * config.gcc: Fix ARM --with-fpu checking and error message.
14933
14934 2019-06-19 Marek Polacek <polacek@redhat.com>
14935
14936 PR c++/60364 - noreturn after first decl not diagnosed.
14937 * attribs.c (get_attribute_namespace): No longer static.
14938 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14939 attributes.
14940 (attr_noreturn_exclusions): Make it extern.
14941 * attribs.h (get_attribute_namespace): Declare.
14942 * tree-inline.c (function_attribute_inlinable_p): Use
14943 get_attribute_name.
14944
14945 2019-06-19 Martin Sebor <msebor@redhat.com>
14946
14947 PR tree-optimization/90626
14948 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14949
14950 PR tree-optimization/90626
14951 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14952 (handle_builtin_string_cmp): Call it.
14953
14954 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14955
14956 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14957 and DARWIN_NOPIE_SPEC.
14958 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14959 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14960 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14961 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14962 (DARWIN_EXPORT_DYNAMIC): Delete.
14963 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14964 and pie options processing to darwin.h.
14965 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14966
14967 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14968
14969 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14970 in computing the number of options to be moved.
14971
14972 2019-06-19 Maya Rashish <coypu@sdf.org>
14973
14974 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14975 (CLEAR_INSN_CACHE) Use it.
14976
14977 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14978
14979 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14980
14981 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14982
14983 PR middle-end/84521
14984 * builtins.c (expand_builtin_setjmp_setup): Save
14985 hard_frame_pointer_rtx.
14986 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14987 restore fp.
14988 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14989 non-local goto.
14990 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14991 elimination code.
14992 (remove_reg_equal_offset_note): Remove unused function.
14993 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14994 code.
14995 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14996 (arc_builtin_setjmp_frame_value): Remove function.
14997 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14998 (avr_builtin_setjmp_frame_value): Remove function.
14999 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15000 (ix86_builtin_setjmp_frame_value): Remove function.
15001 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
15002 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15003 (sparc_builtin_setjmp_frame_value): Remove function.
15004 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15005 (vax_builtin_setjmp_frame_value): Remove function.
15006 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
15007 pointer if has_nonlocal_label.
15008
15009 2019-06-19 Jakub Jelinek <jakub@redhat.com>
15010
15011 * doc/md.texi: Document vec_shl_<mode> pattern.
15012 * optabs.def (vec_shl_optab): New optab.
15013 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
15014 argument, if == vec_shl_optab, check for left whole vector shift
15015 pattern rather than right shift.
15016 (expand_vec_perm_const): Add vec_shl_optab support.
15017 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
15018 in the comment.
15019 * tree-vect-generic.c (lower_vec_perm): Support permutations which
15020 can be handled by vec_shl_optab.
15021 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
15022 (check_scan_store): Use it.
15023 (vectorizable_scan_store): If target can't do normal permutations,
15024 try to use whole vector left shifts and if needed a VEC_COND_EXPR
15025 after it.
15026 * config/i386/sse.md (vec_shl_<mode>): New expander.
15027
15028 * omp-low.c (lower_rec_input_clauses): Handle references properly
15029 in inscan clauses.
15030 (lower_omp_scan): Likewise.
15031
15032 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15033
15034 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
15035 mem_mode is BLKmode.
15036
15037 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
15038
15039 PR target/90922
15040 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
15041 pointer adjustment for the case of no callee-saved registers and
15042 stack frame bigger than 128 bytes.
15043
15044 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
15045
15046 PR middle-end/90862
15047 * omp-low.c (check_omp_nesting_restrictions): Handle
15048 GF_OMP_TARGET_KIND_OACC_DECLARE.
15049
15050 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
15051
15052 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
15053 (@add<mode>3_carry): Rename from add<mode>3_carry.
15054 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
15055 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
15056 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
15057 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
15058 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
15059 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
15060 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
15061 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
15062 (cmpstrnsi): Use gen_cmp_1.
15063 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15064 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15065 (@umonitor_<mode>): Rename from umonitor_<mode>.
15066 * config/i386/i386-expand.c (ix86_expand_copysign):
15067 Use gen_copysign3_const and gen_copysign3_var.
15068 (ix86_expand_xorsign): Use gen_xorsign3_1.
15069 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15070 gen_sub3_carry_ccgz and gen_cmp1.
15071 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15072 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15073 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15074 (ix86_split_lshr): Ditto.
15075 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15076
15077 2019-06-18 Jason Merrill <jason@redhat.com>
15078
15079 * tree.c (build_constructor): Add MEM_STAT_DECL.
15080
15081 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15082
15083 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15084 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15085 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15086 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15087 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15088 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15089 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15090 Use CC_NZC instead of CC.
15091 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15092 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15093 (aarch64_print_operand): Handle E_CC_NZCmode.
15094 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15095 of gen_set_clobber_cc.
15096
15097 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15098
15099 * config/aarch64/aarch64-sve.md: Tabify file.
15100
15101 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15102
15103 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15104 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15105 * config/aarch64/aarch64-sve.md: Use it.
15106
15107 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15108
15109 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15110 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15111 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15112 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15113 (aarch64_expand_sve_vec_cmp_int): Use it.
15114 (aarch64_expand_sve_vec_cmp_float): Likewise.
15115 * config/aarch64/aarch64-sve.md: Likewise throughout.
15116
15117 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15118 Kugan Vivekanandarajah <kuganv@linaro.org>
15119
15120 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15121 (*cond_<optab><mode>_z): Fold into...
15122 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15123 operand 4 can be tied to operand 0 (either inherently or via RA).
15124
15125 2019-06-18 Richard Biener <rguenther@suse.de>
15126
15127 PR debug/90900
15128 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15129 as if optimized away.
15130
15131 2019-06-18 Tom de Vries <tdevries@suse.de>
15132
15133 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15134 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15135 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15136 Rename to ...
15137 (define_insn "@set_softstack_<mode>"): ... this.
15138 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15139 (define_insn "@omp_simt_enter_<mode>"): ... this.
15140 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15141 (define_insn "@omp_simt_exit_<mode>"): ... this.
15142
15143 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15144
15145 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15146 vf parameter. Restore the previous iv step of nscalars_step,
15147 but give it iv_type rather than compare_type. Tweak code order
15148 to match the comments.
15149 (vect_set_loop_condition_masked): Update accordingly.
15150 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15151 for iv_precision. Tweak comment formatting.
15152
15153 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15154
15155 * config/darwin.c: Strip trailing whitespace.
15156
15157 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15158
15159 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15160 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15161
15162 2019-06-18 Martin Jambor <mjambor@suse.cz>
15163
15164 PR ipa/90889
15165 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15166 caller does not have flag_ipa_cp set.
15167
15168 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15169
15170 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15171 from "*fold_left_plus_<mode>", updated operands order.
15172 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15173 * internal-fn.c (mask_fold_left_direct): New define.
15174 (expand_mask_fold_left_optab_fn): Likewise.
15175 (direct_mask_fold_left_optab_supported_p): Likewise.
15176 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15177 * optabs.def (mask_fold_left_plus_optab): New optab.
15178 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15179 masked internal_fn for a reduction ifn.
15180 (vectorize_fold_left_reduction): Add support for masking reductions.
15181
15182 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15183
15184 PR middle-end/80791
15185 * target.def (predict_doloop_p): New hook.
15186 * targhooks.h (default_predict_doloop_p): New declaration.
15187 * targhooks.c (default_predict_doloop_p): New function.
15188 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15189 * doc/tm.texi: Regenerate.
15190 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15191 (TARGET_PREDICT_DOLOOP_P): New macro.
15192 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15193
15194 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15195
15196 * omp-low.c (struct omp_context): Add scan_inclusive field.
15197 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15198 if inclusive scan.
15199 (struct omplow_simd_context): Add lastlane member.
15200 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15201 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15202 1 or 2 argument.
15203 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15204 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15205 (lower_omp_scan): New function.
15206 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15207 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15208 check 3rd argument if present rather than 2nd.
15209 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15210 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15211 2-bit bitfield.
15212 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15213 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15214 than 2nd.
15215 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15216 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15217 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15218 init.
15219 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15220 IFN_GOMP_SIMD_LANE argument.
15221 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15222 encoded ->aux value.
15223 * tree-vect-stmts.c: Include attribs.h.
15224 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15225 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15226 functions.
15227 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15228 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15229
15230 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15231
15232 PR target/62055
15233 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15234 (*nabs<mode>2_1): Ditto.
15235 (nabs sse-reg splitter): New splitter.
15236 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15237
15238 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15239
15240 PR bootstrap/90873.
15241 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15242 TMR index check.
15243
15244 2019-06-17 Tom de Vries <tdevries@suse.de>
15245
15246 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15247 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15248 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15249 ...
15250 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15251 match_operand 0.
15252 (define_insn "omp_simt_enter_insn"): Rename to ...
15253 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15254 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15255 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15256 gen_omp_simt_enter_si.
15257 (define_expand "omp_simt_exit"): New.
15258 (define_insn "omp_simt_exit"): Rename to ...
15259 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15260 match_operand 0.
15261
15262 2019-06-17 Matthew Green <mrg@eterna.com.au>
15263 Maya Rashish <coypu@sdf.org>
15264
15265 * config.gcc (aarch64*-*-netbsd*): New target.
15266 * config/aarch64/aarch64-netbsd.h: New file.
15267 * config/aarch64/t-aarch64-netbsd: Likewise.
15268
15269 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15270
15271 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15272 the access path from base to first VIEW_CONVERT_EXPR or
15273 BIT_FIELD_REF.
15274
15275 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15276
15277 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15278 access path on BIT_FIELD_REFs.
15279
15280 2019-06-17 Martin Liska <mliska@suse.cz>
15281
15282 PR ipa/90874
15283 * ipa-utils.h (odr_type_p): Remove dead code.
15284
15285 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15286
15287 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15288 alternative Solaris 11.4 format.
15289 * configure: Regenerate.
15290
15291 2019-06-17 Tom de Vries <tdevries@suse.de>
15292
15293 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15294 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15295 match_operand 0.
15296 (define_insn "call_value_insn"): Rename to ...
15297 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15298 match_operand 0.
15299 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15300 DI.
15301
15302 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15303
15304 PR middle-end/64242
15305 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15306 frame clobbers and schedule block.
15307 (builtin_longjmp): Likewise.
15308
15309 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15310
15311 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15312 describe how to perform MSPABI compliant 64-bit shift.
15313 * config/msp430/msp430.md (ashldi3): New define_expand.
15314 (ashrdi3): New define_expand.
15315 (lshrdi3): New define_expand.
15316
15317 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15318
15319 * doc/sourcebuild.texi: Document new effective target keyword
15320 longlong64.
15321
15322 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15323
15324 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15325 indirect_refs_may_alias_p): Revert accidental commits.
15326
15327 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15328 at the end of structures.
15329
15330 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15331
15332 * config/darwin.c (machopic_indirect_call_target): Use renamed
15333 darwin_picsymbol_stubs to decide on output.
15334 (darwin_override_options): Handle darwin_picsymbol_stubs.
15335 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15336 (LD64_VERSION): Revise default.
15337 * config/darwin.opt: (mpic-symbol-stubs): New option.
15338 (darwin_picsymbol_stubs): New variable.
15339 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15340 rename to TARGET_MACHO_PICSYM_STUBS.
15341 * config/i386/i386.c (output_pic_addr_const): Likewise.
15342 * config/i386/i386.h Likewise.
15343 * config/rs6000/darwin.h: Likewise.
15344 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15345 darwin_picsymbol_stubs.
15346
15347 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15348
15349 * config/darwin.opt (prebind, noprebind, seglinkedit,
15350 noseglinkedit): Add RejectNegative.
15351
15352 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15353
15354 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15355 in my previous patch.
15356
15357 2019-06-16 Tom de Vries <tdevries@suse.de>
15358
15359 PR tree-optimization/89376
15360 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15361
15362 2019-06-15 Maya Rashish <coypu@sdf.org>
15363
15364 * doc/invoke.texi (Spec Files): Update location of the
15365 Fortran spec file.
15366
15367 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15368
15369 * doc/extend.texi (Common Function Attributes): Clarify
15370 no_sanitize. Fix grammar.
15371
15372 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15373
15374 * tree-ssa-alias.c (alias_stats): Add
15375 nonoverlapping_component_refs_p_may_alias,
15376 nonoverlapping_component_refs_p_no_alias,
15377 nonoverlapping_component_refs_of_decl_p_may_alias,
15378 nonoverlapping_component_refs_of_decl_p_no_alias.
15379 (dump_alias_stats): Dump them.
15380 (nonoverlapping_component_refs_of_decl_p): Add stats.
15381 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15382 ARRAY_REF.
15383
15384 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15385
15386 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15387 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15388 only.
15389 (*anddi3_doubleword): Split before reload. Merge with
15390 anddi->zext pre-reload splitter.
15391 (*andndi3_doubleword): Split before reload.
15392 (*<code>di3_doubleword): Ditto.
15393 (*one_cmpldi2_doubleword): Ditto.
15394
15395 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15396
15397 PR middle-end/90779
15398 * gimplify.c: Include omp-offload.h and context.h.
15399 (gimplify_bind_expr): Add "omp declare target" attributes
15400 to static block scope variables inside of target region or target
15401 functions.
15402
15403 2019-06-15 Tom de Vries <tdevries@suse.de>
15404
15405 PR tree-optimization/90009
15406 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15407 Return NULL if bb contains IFN_UNIQUE.
15408
15409 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15410
15411 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15412 (un): New define_mode_attr.
15413 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15414 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15415 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15416 merge into ...
15417 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15418
15419 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15420
15421 * config/darwin.opt: Add RejectNegative where needed, reorder
15422 and add minimal functional descriptions.
15423
15424 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15425
15426 PR rtl-optimization/90765
15427 * calls.c (update_stack_alignment_for_call): New function.
15428 (expand_call): Call update_stack_alignment_for_call when
15429 outgoing parameter is passed in the stack.
15430 (emit_library_call_value_1): Likewise.
15431 * function.c (locate_and_pad_parm): Don't update
15432 stack_alignment_needed and preferred_stack_boundary.
15433
15434 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15435
15436 PR target/90877
15437 * config/i386/i386-features.c
15438 (dimode_scalar_chain::compute_convert_gain): Replace
15439 mmxsse_to_integer with sse_to_integer.
15440 * config/i386/i386.c (ix86_register_move_cost): Verify that
15441 moves between MMX and non-MMX units require secondary memory.
15442 Correct costs of moves between SSE and integer units.
15443 * config/i386/i386.h (processor_costs): Rename cost of moving
15444 SSE register to integer to sse_to_integer. Rename cost of
15445
15446 2019-06-14 Matt Thomas <matt@3am-software.com>
15447 Matthew Green <mrg@eterna.com.au>
15448 Nick Hudson <skrll@netbsd.org>
15449 Maya Rashish <coypu@sdf.org>
15450 Richard Earnshaw <rearnsha@arm.com>
15451
15452 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15453 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15454 * config/arm/netbsd-eabi.h: New file.
15455 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15456 redefining.
15457 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15458 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15459 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15460 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15461
15462 2019-06-14 Richard Biener <rguenther@suse.de>
15463
15464 * tree-loop-distribution.c (classify_partition): Return
15465 whether a reduction appeared in all partitions and do not
15466 stop builtin detection because of this.
15467 (distribute_loop): Sort a non-builtin partition last if
15468 there's a reduction in all partitions and make sure the
15469 partition prevailing as last is not a builtin.
15470
15471 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15472
15473 PR ipa/90401
15474 * ipa-prop.c (add_to_agg_contents_list): New function.
15475 (clobber_by_agg_contents_list_p): Likewise.
15476 (extract_mem_content): Likewise.
15477 (get_place_in_agg_contents_list): Delete.
15478 (determine_known_aggregate_parts): Renamed from
15479 determine_locally_known_aggregate_parts. New parameter
15480 aa_walk_budget_p.
15481
15482 2019-06-13 Martin Sebor <msebor@redhat.com>
15483
15484 PR tree-optimization/90662
15485 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15486 to the same type.
15487
15488 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15489
15490 PR bootstrap/90873
15491 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15492 dbase is not TARGET_MEM_REF.
15493
15494 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15495
15496 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15497 Update all uses.
15498 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15499 Do not generate DImode extends for 32bit targets.
15500 (and->zext post-reload splitter): Use gen_extend_insn
15501 instead of indirect functions.
15502 (anddi->zext pre-reload splitter): New.
15503 (*zext<mode>_doubleword_and): Remove.
15504 (*zext<mode>_doubleword): Ditto.
15505 (*zextsi_doubleword): Dittto.
15506
15507 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15508
15509 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15510 Use gen_sub3_insn instead of indirect function.
15511 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15512 indirect function.
15513 (ix86_adjust_counter): Ditto.
15514
15515 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15516 Lijia He <helijia@linux.ibm.com>
15517
15518 PR tree-optimization/77820
15519 * tree-ssa-threadedge.c
15520 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15521 function.
15522 (thread_across_edge): Add call to
15523 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15524
15525 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15526
15527 * config/darwin-driver.c (validate_macosx_version_min): New.
15528 (darwin_default_min_version): Cleanup and validate supplied version.
15529 (darwin_driver_init): Likewise and push cleaned version into opts.
15530
15531 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15532
15533 PR tree-optimization/90869
15534 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15535 converts in MEM_REF referencing decl rather than view converts
15536 from decl type to MEM_REF type.
15537
15538 2019-06-13 Richard Biener <rguenther@suse.de>
15539
15540 PR tree-optimization/90856
15541 * tree-sra.c (build_ref_for_model): Only use
15542 build_reconstructed_reference when address-spaces are the same.
15543
15544 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15545
15546 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15547 wrap ei variable name in the declaration in ()s.
15548 (nvptx_single): Actually use mode_label variable. Formatting fix.
15549
15550 2019-06-13 Richard Biener <rguenther@suse.de>
15551
15552 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15553 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15554 also return the condition stmt.
15555 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15556 loop we can version and version that, reusing the loop version
15557 created by if-conversion instead of versioning again.
15558
15559 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15560
15561 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15562 may_contain_p.
15563 * tree-vrp (value_range_base::may_contain_p): Call into
15564 value_inside_range.
15565 (value_inside_range): Make private inside value_range_base class.
15566 Take min/max from *this.
15567 (range_includes_p): Remove.
15568 * tree-vrp.h (value_range_base): Add value_inside_range.
15569 (range_includes_p): Remove.
15570 (range_includes_zero_p): Call may_contain_p.
15571 * vr-values.c (compare_range_with_value): Same.
15572
15573 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15574
15575 * doc/extend.texi (ARC Function Attributes): Update info.
15576
15577 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15578
15579 PR tree-optimization/89713
15580 * doc/invoke.texi (-ffinite-loops): Document new option.
15581 * common.opt (-ffinite-loops): New option.
15582 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15583 IFN_GOACC_LOOP calls as necessary.
15584 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15585 is finite.
15586 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15587 IFN_GOACC_LOOP call is not used.
15588 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15589
15590 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15591
15592 PR target/88838
15593 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15594 compare_type is not with Pmode size, we will create an IV with
15595 Pmode size with truncated use (i.e. converted to the correct type).
15596 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15597 (vect_iv_limit_for_full_masking): New. Factored out of
15598 vect_set_loop_condition_masked.
15599 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15600 (vect_iv_limit_for_full_masking): Declare.
15601
15602 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15603
15604 PR target/88834
15605 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15606 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15607 (get_alias_ptr_type_for_ptr_address): Likewise.
15608 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15609 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15610 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15611 allow_reg_index_p.
15612
15613 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15614
15615 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15616
15617 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15618
15619 * common/config/pru/pru-common.c: New file.
15620 * config.gcc: Add PRU target.
15621 * config/pru/alu-zext.md: New file.
15622 * config/pru/constraints.md: New file.
15623 * config/pru/predicates.md: New file.
15624 * config/pru/pru-opts.h: New file.
15625 * config/pru/pru-passes.c: New file.
15626 * config/pru/pru-pragma.c: New file.
15627 * config/pru/pru-protos.h: New file.
15628 * config/pru/pru.c: New file.
15629 * config/pru/pru.h: New file.
15630 * config/pru/pru.md: New file.
15631 * config/pru/pru.opt: New file.
15632 * config/pru/t-pru: New file.
15633 * doc/extend.texi: Document PRU pragmas.
15634 * doc/invoke.texi: Document PRU-specific options.
15635 * doc/md.texi: Document PRU asm constraints.
15636
15637 2019-06-12 Martin Sebor <msebor@redhat.com>
15638
15639 PR middle-end/90676
15640 * tree-pretty-print.c (dump_mem_ref): New function. Include
15641 MEM_REF type in output when different size than operand.
15642 (dump_generic_node): Move code to dump_mem_ref and call it.
15643
15644 2019-06-12 Martin Sebor <msebor@redhat.com>
15645
15646 PR tree-optimization/90662
15647 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15648 to arrays.
15649
15650 2019-06-12 Tom de Vries <tdevries@suse.de>
15651
15652 PR tree-optimization/90009
15653 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15654
15655 2019-06-12 Martin Liska <mliska@suse.cz>
15656
15657 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15658 the created map.
15659 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15660 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15661 Do not sanitize created maps.
15662
15663 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15664
15665 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15666 value_range::singleton_p.
15667 * tree-vrp.c (value_range_constant_singleton): Remove.
15668 * tree-vrp.h (value_range_constant_singleton): Remove.
15669 * vr-values.c (vr_values::singleton): Use
15670 value_range::singleton_p.
15671
15672 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15673
15674 PR target/90811
15675 * cfgexpand.c (align_local_variable): Add really_expand argument,
15676 don't SET_DECL_ALIGN if it is false.
15677 (add_stack_var): Add really_expand argument, pass it through to
15678 align_local_variable.
15679 (expand_one_stack_var_1): Pass true as really_expand to
15680 align_local_variable.
15681 (expand_one_ssa_partition): Pass true as really_expand to
15682 add_stack_var.
15683 (expand_one_var): Pass really_expand through to add_stack_var.
15684
15685 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15686
15687 * config/arm/iterators.md (VABAL): New int iterator.
15688 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15689 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15690 UNSPEC_VABAL_U values.
15691
15692 2019-06-12 Martin Liska <mliska@suse.cz>
15693
15694 * value-prof.c (stream_out_histogram_value): Only first value
15695 can't be negative.
15696
15697 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15698
15699 PR c/90760
15700 * symtab.c (symtab_node::set_section): Allow being called on aliases
15701 as long as they aren't analyzed yet.
15702
15703 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15704
15705 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15706 to `mips_set_text_contents_type' to indicate whether a
15707 non-debug insn follows.
15708
15709 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15710
15711 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15712 enabling -mpcrel by default.
15713 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15714 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15715 that the test against -mcpu=future is done first. Then test if
15716 -mprefixed-addr is on for -mpcrel.
15717 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15718
15719 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15720
15721 PR target/90811
15722 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15723 instead of and.u%d.
15724
15725 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15726
15727 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15728
15729 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15730
15731 PR c++/90449 - add -Winaccessible-base option.
15732 * doc/invoke.texi (Winaccessible-base): Document.
15733
15734 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15735
15736 PR tree-optimization/62041
15737 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15738
15739 2019-06-11 Jason Merrill <jason@redhat.com>
15740
15741 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15742 * tree.c (get_tree_code_name): Likewise.
15743 * print-tree.c (print_node): Only briefly print a node with an
15744 invalid code.
15745
15746 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15747
15748 PR bootstrap/90819
15749 * trans-mem.c (tm_memopt_compute_available): Add assertion
15750 that blocks is not empty. Formatting fix.
15751
15752 2019-06-11 Martin Liska <mliska@suse.cz>
15753
15754 PR c++/87847
15755 * hash-table.h: Extend create_gcc, add one parameter
15756 that is passed into hash_table::hash_table.
15757
15758 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15759
15760 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15761 New prototype.
15762 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15763 Emit clobber also for non-sse operations.
15764 (ix86_split_fp_absneg_operator): New function.
15765 * config/i386/i386.md (SSEMODEF): New mode iterator.
15766 (ssevecmodef): New mode attribute.
15767 (<code>tf2): Use absneg code iterator.
15768 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15769 Add three-operand AVX alternatives.
15770 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15771 Use absneg code iterator and X87MODEF mode iterator.
15772 (absneg fp_reg non-sse splitter): Call absneg code iterator
15773 and X87MODEF mode iterator.
15774 (absneg general_reg non-sse splitter): Use absneg code iterator
15775 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15776 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15777 code iterator. Add three-operand AVX alternative.
15778 (absneg sse_reg splitter): Use absneg code iterator
15779 and SSEMODEF mode iterator. Handle AVX operands.
15780 (absneg fp_reg splitter): Use absneg code iterator
15781 and MODEF mode iterator.
15782 (absneg general_reg splitter): Merge splitters using MODEF mode
15783 iterator. Use absneg code iterator. Call
15784 ix86_split_fp_absneg_operator.
15785 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15786 Do not enable for non-sse modes before reload.
15787 (CSGNMODE): Remove.
15788 (CSGNVMODE): Ditto.
15789 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15790 ssevecmodef mode attribute instaed of CSGNVMODE.
15791 (copysign<mode>3_const): Ditto.
15792 (copysign<mode>3_var): Ditto.
15793 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15794 Use absneg code iterator. Simplify code using std::swap.
15795 * config/i386/predicates.md (absneg_operator): Remove.
15796
15797 2019-06-10 Martin Sebor <msebor@redhat.com>
15798
15799 * gimple-fold.c (get_range_strlen): Update comment that didn't
15800 make it into r267503 or related commits.
15801
15802 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15803
15804 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15805 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15806
15807 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15808
15809 * tree.def (OMP_SCAN): New tree code.
15810 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15811 OMP_CLAUSE_EXCLUSIVE.
15812 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15813 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15814 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15815 OMP_CLAUSE_{IN,EX}CLUSIVE.
15816 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15817 * tree-nested.c (convert_nonlocal_reference_stmt,
15818 convert_local_reference_stmt, convert_gimple_call): Handle
15819 GIMPLE_OMP_SCAN.
15820 * tree-pretty-print.c (dump_omp_clause): Handle
15821 OMP_CLAUSE_{IN,EX}CLUSIVE.
15822 (dump_generic_node): Handle OMP_SCAN.
15823 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15824 * gimple.h (gomp_scan): New type.
15825 (is_a_helper <gomp_scan *>::test,
15826 is_a_helper <const gomp_scan *>::test): New templates.
15827 (gimple_build_omp_scan): Declare.
15828 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15829 gimple_omp_scan_set_clauses): New inline functions.
15830 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15831 * gimple.c (gimple_build_omp_scan): New function.
15832 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15833 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15834 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15835 GIMPLE_OMP_TASKGROUP.
15836 (dump_gimple_omp_scan): New function.
15837 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15838 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15839 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15840 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15841 (is_gimple_stmt): Handle OMP_SCAN.
15842 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15843 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15844 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15845 mentioned in nested #pragma omp scan. Handle
15846 OMP_CLAUSE_{IN,EX}CLUSIVE.
15847 (gimplify_expr): Handle OMP_SCAN.
15848 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15849 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15850 simd constructs.
15851 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15852 GIMPLE_OMP_SCAN.
15853
15854 2019-06-10 Martin Liska <mliska@suse.cz>
15855
15856 * ipa-cp.c (ignore_edge_p): New function.
15857 (build_toporder_info): Use it.
15858 * ipa-inline.c (ignore_edge_p): New function.
15859 (inline_small_functions): Use it.
15860 * ipa-pure-const.c (ignore_edge_for_nothrow):
15861 Verify opt_for_fn for caller and callee.
15862 (ignore_edge_for_pure_const): Likewise.
15863 * ipa-reference.c (ignore_edge_p): Extend to check
15864 for opt_for_fn.
15865 * ipa-utils.c (searchc): Refactor.
15866 * ipa-utils.h: Fix coding style.
15867
15868 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15869
15870 * config/arc/arc.c (arc_rtx_costs): Update costs.
15871
15872 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15873
15874 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15875 (arc_split_ior): Likewise.
15876 (arc_check_mov_const): Likewise.
15877 (arc_split_mov_const): Likewise.
15878 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15879 (arc_rtx_costs): Replace check Crr with Cax constraint.
15880 (prepare_move_operands): Cleanup, remove unused code.
15881 (arc_split_ior): New function.
15882 (arc_check_ior_const): Likewise.
15883 (arc_split_mov_const): Likewise.
15884 (arc_check_mov_const): Likewise.
15885 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15886 in define_insn_and_split pattern.
15887 (iorsi3): Likewise.
15888 (mulsi3_v2): Add new matching variant.
15889 (andsi3_i): Cleanup pattern.
15890 (rotrsi3_cnt1): Update pattern.
15891 (rotrsi3_cnt8): New pattern.
15892 (ashlsi2_cnt8): Likewise.
15893 (ashlsi2_cnt16): Likewise.
15894 * config/arc/constraints.md (C0p): Update constraint.
15895 (Crr): Remove it.
15896 (C0x): New pattern.
15897 (Cax): New pattern.
15898
15899 2019-06-10 Martin Liska <mliska@suse.cz>
15900
15901 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15902 Update coding style.
15903 (sem_item_optimizer::dump_cong_classes):
15904 Print how many items are in a non-singular class. Improve
15905 coding style.
15906
15907 2019-06-10 Martin Liska <mliska@suse.cz>
15908
15909 * value-prof.c (dump_histogram_value): Change dump format.
15910 (gimple_mod_subtract_transform): Remove legacy comment.
15911
15912 2019-06-10 Martin Liska <mliska@suse.cz>
15913
15914 * value-prof.c (dump_histogram_value): Print histogram values
15915 only if present.
15916
15917 2019-06-10 Martin Liska <mliska@suse.cz>
15918
15919 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15920 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15921 * ipa-profile.c (ipa_profile_generate_summary):
15922 Use get_most_common_single_value.
15923 * tree-profile.c (gimple_init_gcov_profiler):
15924 Instrument with __gcov_one_value_profiler_v2
15925 and __gcov_indirect_call_profiler_v4.
15926 * value-prof.c (dump_histogram_value):
15927 Print all values for HIST_TYPE_SINGLE_VALUE.
15928 (stream_out_histogram_value): Update assert for
15929 N values.
15930 (stream_in_histogram_value): Set number of
15931 counters for HIST_TYPE_SINGLE_VALUE.
15932 (get_most_common_single_value): New.
15933 (gimple_divmod_fixed_value_transform):
15934 Use get_most_common_single_value.
15935 (gimple_ic_transform): Likewise.
15936 (gimple_stringops_transform): Likewise.
15937 (gimple_find_values_to_profile): Set number
15938 of counters for HIST_TYPE_SINGLE_VALUE.
15939 * value-prof.h (get_most_common_single_value): New.
15940
15941 2019-06-10 Martin Liska <mliska@suse.cz>
15942
15943 * hash-map.h: Pass default value to hash_table ctor.
15944 * hash-table.h: Add default value to call of a ctor.
15945
15946 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15947
15948 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15949 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15950
15951 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15952
15953 PR target/90751
15954 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15955 Call pa_output_function_label.
15956 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15957 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15958 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15959 to declaration.
15960 (pa_linux_output_function_prologue): Declare.
15961 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15962 (pa_output_function_label): New.
15963 (pa_output_function_prologue): Revise to use pa_output_function_label.
15964 (pa_linux_output_function_prologue): New.
15965 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15966
15967 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15968
15969 * tree-vrp.h (value_range_base::intersect): New.
15970 (value_range::intersect_helper): Move from here...
15971 (value_range_base::intersect_helper): ...to here.
15972 * tree-vrp.c (value_range::intersect_helper): Rename to...
15973 (value_range_base::intersect_helper): ...this, and rewrite to
15974 return a value instead of modifying THIS in place.
15975 Also, move equivalence handling...
15976 (value_range::intersect): ...here, while calling intersect_helper.
15977 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15978 calling intersect.
15979 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15980 Same.
15981 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15982
15983 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15984
15985 * Makefile.in (genprogerr): Add condmd.
15986 (genprog): Remove it here.
15987
15988 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15989
15990 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15991
15992 2019-06-07 Richard Biener <rguenther@suse.de>
15993
15994 PR debug/90574
15995 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15996 that appear after user labels.
15997
15998 2019-06-07 Martin Liska <mliska@suse.cz>
15999
16000 * cselib.c (cselib_init): Disable hash table
16001 sanitization.
16002 * hash-set.h: Pass new default argument to m_table.
16003 * hash-table.c: Add global variable with hash table
16004 sanitization limit.
16005 * hash-table.h (Allocator>::hash_table): Add new argument
16006 to ctor.
16007 (hashtab_chk_error): New.
16008 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
16009 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
16010 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
16011
16012 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16013
16014 * common.opt (flto-odr-type-merging): Ignore.
16015 * invoke.texi (-flto-odr-type-merging): Remove.
16016 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
16017 (can_be_vtable_hashed_p): Remove.
16018 (hash_odr_vtable): Remove.
16019 (odr_vtable_hasher::hash): Remove.
16020 (types_same_for_odr): Remove.
16021 (types_odr_comparable): Remove.
16022 (odr_vtable_hasher::equal): Remove.
16023 (odr_vtable_hash_type, odr_vtable_hash): Remove.
16024 (add_type_duplicate): Do not synchronize vtable and name hashtables.
16025 (get_odr_type): Do not use vtable hash.
16026 (dump_odr_type): Remove commented out code.
16027 (build_type_inheritance_graph): Do not allocate vtable hash.
16028 (rebuild_type_inheritance_graph): Do not delete vtable hash.
16029 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
16030 (odr_type_p): Likewise.
16031 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
16032 test.
16033
16034 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16035
16036 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
16037 immediately after same_types_for_tbaa_p returns -1 and continue
16038 looking for possible exact match; if matching types are arrays
16039 watch for partial overlaps.
16040 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
16041 (indirect_refs_may_alias_p): Do type based disambiguation first;
16042 update comment.
16043
16044 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
16045
16046 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
16047
16048 2019-06-07 Martin Liska <mliska@suse.cz>
16049
16050 * doc/invoke.texi: Remove param.
16051 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
16052 Remove.
16053 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
16054 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
16055 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
16056 * profile.c (instrument_values): Remove
16057 HIST_TYPE_INDIR_CALL_TOPN.
16058 * tree-profile.c (init_ic_make_global_vars):
16059 Always build __gcov_indirect_call only.
16060 (gimple_init_gcov_profiler): Remove usage
16061 of PARAM_INDIR_CALL_TOPN_PROFILE.
16062 (gimple_gen_ic_profiler): Likewise.
16063 * value-prof.c (dump_histogram_value): Likewise.
16064 (stream_in_histogram_value): Likewise.
16065 (gimple_indirect_call_to_profile): Likewise.
16066 (gimple_find_values_to_profile): Likewise.
16067 * value-prof.h (enum hist_type): Likewise.
16068
16069 2019-06-07 Martin Liska <mliska@suse.cz>
16070
16071 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16072 function.
16073
16074 2019-06-07 Martin Liska <mliska@suse.cz>
16075
16076 PR tree-optimization/78902
16077 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16078 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16079 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16080 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16081 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16082 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16083 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16084 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16085 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16086 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16087 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16088 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16089 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16090 New.
16091 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16092 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16093 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16094 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16095 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16096 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16097 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16098 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16099 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16100 warn_unused_result attribute.
16101 (BUILT_IN_STRDUP): Likewise.
16102 (BUILT_IN_STRNDUP): Likewise.
16103 (BUILT_IN_ALLOCA): Likewise.
16104 (BUILT_IN_CALLOC): Likewise.
16105 (BUILT_IN_MALLOC): Likewise.
16106 (BUILT_IN_REALLOC): Likewise.
16107
16108 2019-06-06 Jim Wilson <jimw@sifive.com>
16109
16110 PR target/89955
16111 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16112 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16113 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16114
16115 2019-06-06 Martin Sebor <msebor@redhat.com>
16116
16117 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16118 (handle_builtin_malloc): Remove trailing spaces.
16119 (handle_builtin_memset): Same.
16120 (handle_builtin_memcmp): Same.
16121 (compute_string_length): Same.
16122 (determine_min_objsize): Same.
16123 (handle_builtin_string_cmp): Same.
16124 (handle_char_store): Same. Break up excessively long line.
16125
16126 2019-06-06 Martin Jambor <mjambor@suse.cz>
16127
16128 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16129 check.
16130
16131 2019-06-06 Martin Jambor <mjambor@suse.cz>
16132
16133 * tree-sra.c (struct access): New field grp_same_access_path.
16134 (dump_access): Dump it.
16135 (build_reconstructed_reference): New function.
16136 (build_ref_for_model): Use it if possible.
16137 (path_comparable_for_same_access): New function.
16138 (same_access_path_p): Likewise.
16139 (sort_and_splice_var_accesses): Set the new flag.
16140 (analyze_access_subtree): Likewise.
16141 (propagate_subaccesses_across_link): Propagate zero value of the new
16142 flag down the access tree.
16143
16144 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16145
16146 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16147 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16148 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16149 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16150 Add gfx906.
16151
16152 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16153
16154 PR tree-optimization/90332
16155 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16156 Handle VALS containing two vectors.
16157 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16158 to...
16159 (@aarch64_combinez<mode>): ... This.
16160 (*aarch64_combinez_be<mode>): Rename to...
16161 (@aarch64_combinez_be<mode>): ... This.
16162 (vec_init<mode><Vhalf>): New define_expand.
16163 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16164
16165 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16166
16167 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16168 library functions only when not optimizing for size.
16169 (ashlsi3): Likewise.
16170 (ashrhi3): Likewise.
16171 (ashrsi3): Likewise.
16172 (lshrhi3): Likewise.
16173 (lshrsi3): Likewise.
16174
16175 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16176
16177 PR rtl-optimization/88751
16178 * ira.c (ira): Use the number of the actually referenced registers
16179 when calculating the threshold.
16180
16181 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16182
16183 * configure: Regenerate.
16184
16185 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16186
16187 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16188 register if it is in memory, so the shift can be emulated with a rotate
16189 instruction.
16190 (ashrhi3): Likewise.
16191 (lshrhi3): Likewise.
16192
16193 2019-06-06 Martin Liska <mliska@suse.cz>
16194
16195 PR tree-optimization/87954
16196 * match.pd: Simplify mult where both arguments are 0 or 1.
16197
16198 2019-06-06 Richard Biener <rguenther@suse.de>
16199
16200 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16201 put equivalences on UNDEFINED ranges.
16202 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16203 Make sure to drop defs of stmts added during simplification
16204 to VARYING.
16205
16206 2019-06-06 Richard Biener <rguenther@suse.de>
16207
16208 * tree-ssa-structalias.c: Include tree-cfg.h.
16209 (make_heapvar): Do not make heap vars artificial.
16210 (find_func_aliases_for_builtin_call): Handle stack allocation
16211 functions.
16212 (find_func_aliases): Delay processing of simple enough returns
16213 in non-IPA mode.
16214 (set_uids_in_ptset): Adjust.
16215 (find_what_var_points_to): Likewise.
16216 (solve_constraints): Do not dump points-to sets here.
16217 (compute_points_to_sets): Post-process return statements,
16218 amending the escaped solution. Dump points-to sets afterwards.
16219 (ipa_pta_execute): Dump points-to sets.
16220
16221 2019-06-06 Martin Liska <mliska@suse.cz>
16222
16223 PR web/87933
16224 * doc/install.texi: Fix HTML headers and
16225 titles for 'Installing GCC' pages.
16226
16227 2019-06-06 Martin Liska <mliska@suse.cz>
16228
16229 * ipa-icf-gimple.h (dump_message_1): Remove.
16230 (dump_message): Likewise.
16231 (return_false_with_message_1): Print also file.
16232 (return_false_with_msg): Likewise.
16233 (return_with_result): Likewise.
16234 (return_with_debug): Likewise.
16235 * ipa-icf.c (sem_function::equals_private): Remove call
16236 to dump_message.
16237
16238 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16239
16240 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16241 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16242 memory operand for it.
16243 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16244
16245 2019-06-05 Martin Sebor <msebor@redhat.com>
16246
16247 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16248 Adjust quoting and hyphenation.
16249 * convert.c (convert_to_real_1): Same.
16250 * gcc.c (driver_wrong_lang_callback): Same.
16251 (driver::handle_unrecognized_options): Same.
16252 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16253 * opts-common.c (cmdline_handle_error): Same.
16254 (read_cmdline_option): Same.
16255 * opts-global.c (complain_wrong_lang): Same.
16256 (print_ignored_options): Same.
16257 (handle_common_deferred_options): Same.
16258 * pretty-print.h: Same.
16259 * print-rtl.c (debug_bb_n_slim): Same.
16260 * sched-rgn.c (make_pass_sched_fusion): Same.
16261 * tree-cfg.c (verify_gimple_assign_unary): Same.
16262 (verify_gimple_label): Same.
16263 * tree-ssa-operands.c (verify_ssa_operands): Same.
16264 * varasm.c (do_assemble_alias): Same.
16265 (assemble_alias): Same.
16266
16267 2019-06-05 Richard Henderson <rth@twiddle.net>
16268
16269 * config/alpha/alpha.c (direct_return): Move down after
16270 struct machine_function definition; use saved frame_size;
16271 return bool.
16272 (struct machine_function): Add sa_mask, sa_size, frame_size.
16273 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16274 (alpha_compute_frame_layout): ... new function.
16275 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16276 (alpha_initial_elimination_offset): Use saved sa_size.
16277 (alpha_vms_initial_elimination_offset): Likewise.
16278 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16279 (alpha_expand_prologue): Use saved frame data. Merge integer
16280 and fp register save loops.
16281 (alpha_expand_epilogue): Likewise.
16282 (alpha_start_function): Use saved frame data.
16283 * config/alpha/alpha-protos.h (direct_return): Update.
16284 (alpha_sa_size): Remove.
16285
16286 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16287
16288 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16289 multiplication by a power-of-two value.
16290 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16291 and turn the modulo operation into a masking operation.
16292
16293 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16294
16295 PR debug/90733
16296 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16297 with VOIDmode inner operands.
16298
16299 2019-06-05 Richard Biener <rguenther@suse.de>
16300
16301 PR middle-end/90726
16302 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16303 turn an expression graph into a tree.
16304
16305 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16306
16307 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16308 member.
16309 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16310 treat it like explicit monotonic schedule modifier.
16311 (expand_omp_for): Initialize has_lastprivate_conditional.
16312 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16313 schedule modifier.
16314
16315 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16316 references, lookup in in hash map MEM_REF operand instead of the
16317 MEM_REF itself.
16318 (lower_omp_1): When looking for lastprivate conditional assignments,
16319 handle MEM_REFs with REFERENCE_TYPE operands.
16320
16321 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16322 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16323 and references a VLA. Handle references to non-VLAs if is_simd
16324 all privatization clauses like reductions.
16325 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16326 If omp_is_reference, use always omp simd arrays and set
16327 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16328 fails, emit reference initialization.
16329
16330 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16331
16332 PR target/89803
16333 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16334 _mm_mask_fpclass_sd_mask): New intrinsics.
16335 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16336 * config/i386/i386-builtin.def
16337 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16338 New builtins.
16339 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16340 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16341 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16342 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16343 case QI_FTYPE_V2SF_INT): Ditto.
16344 * config/i386/sse.md
16345 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16346 Extended to insnstructions with mask operands.
16347
16348 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16349
16350 * config/rs6000/constraints.md (define_register_constraint "wp"):
16351 Delete.
16352 (define_register_constraint "wq"): Delete.
16353 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16354 (rs6000_init_hard_regno_mode_ok): Adjust.
16355 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16356 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16357 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16358 (define_mode_attr VSa): Delete.
16359 (define_mode_attr VSisa): New.
16360 (rest of file): Adjust.
16361 * doc/md.texi (Machine Constraints): Adjust.
16362
16363 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16364
16365 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16366 (define_attr "enabled"): Handle those new isa values.
16367
16368 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16369
16370 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16371 (define_mode_attr VSr5): Delete.
16372 (define_mode_attr VStype_sqrt): Delete.
16373 (define_mode_iterator VSX_SPDP): Delete.
16374 (define_mode_attr VS_spdp_res): Delete.
16375 (define_mode_attr VS_spdp_insn): Delete.
16376 (define_mode_attr VS_spdp_type): Delete.
16377 (*vsx_sqrt<mode>2): Adjust.
16378 (vsx_<VS_spdp_insn>): Delete, split to...
16379 (vsx_xscvdpsp): ... this. New. And...
16380 (vsx_xvcvspdp): ... this. New. And...
16381 (vsx_xvcvdpsp): ... this. New.
16382
16383 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16384
16385 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16386 and V2DF.
16387 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16388 (rest of file): Adjust.
16389
16390 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16391
16392 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16393 (vsx_extract_<mode>_var): Ditto.
16394
16395 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16396
16397 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16398 with just "wa".
16399
16400 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16401
16402 * config/rs6000/constraints.md (define_register_constraint "ww"):
16403 Delete.
16404 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16405 (rs6000_init_hard_regno_mode_ok): Adjust.
16406 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16407 RS6000_CONSTRAINT_ww.
16408 * config/rs6000/rs6000.md: Adjust.
16409 * config/rs6000/vsx.md: Adjust.
16410 * doc/md.texi (Machine Constraints): Adjust.
16411
16412 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16413
16414 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16415 (define_mode_attr sd): New.
16416 (define_mode_attr s): New.
16417 (define_mode_attr Ftrad): Delete.
16418 (define_mode_attr Fvsx): Delete.
16419 (define_mode_attr Fs): Delete.
16420 (rest of file): Use the new mode attributes.
16421 * config.rs6000/vsx.md: Use the new mode attributes.
16422
16423 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16424
16425 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16426 with just "wa".
16427
16428 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16429
16430 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16431 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16432 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16433
16434 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16435
16436 PR target/78263
16437 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16438 C++ with strict ANSI requirements.
16439
16440 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16441
16442 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16443 computations when step is 1.
16444
16445 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16446
16447 * config/rs6000/constraints.md (define_register_constraint "wf"):
16448 Delete.
16449 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16450 (rs6000_init_hard_regno_mode_ok): Adjust.
16451 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16452 RS6000_CONSTRAINT_wf.
16453 * config/rs6000/rs6000.md: Adjust.
16454 * config/rs6000/vsx.md: Adjust.
16455 * doc/md.texi (Machine Constraints): Adjust.
16456
16457 2019-06-04 Andrew Pinski <apinski@marvell.com>
16458
16459 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16460 Fix ILP32 value.
16461
16462 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16463
16464 * config/rs6000/constraints.md (define_register_constraint "wd"):
16465 Delete.
16466 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16467 (rs6000_init_hard_regno_mode_ok): Adjust.
16468 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16469 RS6000_CONSTRAINT_wd.
16470 * config/rs6000/rs6000.md: Adjust.
16471 * config/rs6000/vsx.md: Adjust.
16472 * doc/md.texi (Machine Constraints): Adjust.
16473
16474 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16475
16476 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16477 (rest of file): Adjust.
16478
16479 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16480
16481 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16482 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16483 (vsx_splat_<mode>_reg): Adjust.
16484
16485 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16486
16487 * config/rs6000/constraints.md (define_register_constraint "ws"):
16488 Delete.
16489 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16490 (rs6000_init_hard_regno_mode_ok): Adjust.
16491 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16492 RS6000_CONSTRAINT_ws.
16493 * config/rs6000/rs6000.md: Adjust.
16494 * config/rs6000/vsx.md: Adjust.
16495 * doc/md.texi (Machine Constraints): Adjust.
16496
16497 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16498
16499 * config/rs6000/constraints.md (define_register_constraint "wv"):
16500 Delete.
16501 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16502 (rs6000_init_hard_regno_mode_ok): Adjust.
16503 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16504 RS6000_CONSTRAINT_wv.
16505 * config/rs6000/rs6000.md: Adjust.
16506 * config/rs6000/vsx.md: Adjust.
16507 * doc/md.texi (Machine Constraints): Adjust.
16508
16509 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16510
16511 * config/rs6000/constraints.md (define_register_constraint "wi"):
16512 Delete.
16513 (define_register_constraint "wt"): Delete.
16514 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16515 (rs6000_init_hard_regno_mode_ok): Adjust.
16516 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16517 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16518 * config/rs6000/rs6000.md: Adjust.
16519 * config/rs6000/vsx.md: Adjust.
16520 * doc/md.texi (Machine Constraints): Adjust.
16521
16522 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16523
16524 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16525 const.
16526 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16527 default_elf_asm_output_external.
16528
16529 2019-06-04 Martin Liska <mliska@suse.cz>
16530
16531 * ipa-icf.c (INCLUDE_LIST): Remove.
16532 (sem_item_optimizer::execute): Remove call to init_wpa.
16533 * ipa-icf.h (init_wpa): Remove.
16534
16535 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16536
16537 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16538 conditional on combined for simd.
16539 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16540 member.
16541 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16542 constructs, don't remove lastprivate_conditional_map, but instead set
16543 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16544 to parent construct temporaries.
16545 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16546 like !ctx->lastprivate_conditional_map.
16547 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16548 use up->outer context instead of up.
16549 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16550 gimple_omp_for_combined_p.
16551 (expand_omp_for_static_nochunk): Likewise.
16552 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16553 probably moved over into expand_omp_for_generic rather than being copied
16554 there.
16555
16556 2019-06-04 Martin Liska <mliska@suse.cz>
16557
16558 * value-prof.c (dump_histogram_value): Fix typo.
16559 (gimple_mod_subtract_transform): Likewise.
16560
16561 2019-06-04 Richard Biener <rguenther@suse.de>
16562
16563 PR middle-end/90726
16564 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16565 (tree_contains_chrecs): Likewise.
16566 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16567 exponential behaivor from ...
16568 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16569 ... here.
16570 (expression_expensive_p): Avoid exponential behavior and compute
16571 expanded size, rejecting any expansion.
16572 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16573 (idx_contains_abnormal_ssa_name_p): Likewise.
16574 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16575 (contains_abnormal_ssa_name_p): Simplify and use
16576 walk_tree_without_duplicates.
16577
16578 2019-06-04 Richard Biener <rguenther@suse.de>
16579
16580 PR tree-optimization/90738
16581 Revert
16582 2019-06-03 Richard Biener <rguenther@suse.de>
16583
16584 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16585 full reference tree and record in ref->ref.
16586 (vn_reference_lookup_3): Pass in original ref to
16587 ao_ref_init_from_vn_reference.
16588 (vn_reference_lookup): Likewise.
16589 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16590 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16591 Handle non-decl bases in the original reference.
16592
16593 2019-06-04 Martin Liska <mliska@suse.cz>
16594
16595 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16596 number of references.
16597 (sem_item_optimizer::do_congruence_step):
16598 (sem_item_optimizer::worklist_push): Dump how references
16599 a class has.
16600 (sem_item_optimizer::worklist_pop): Use heap.
16601 (sem_item_optimizer::process_cong_reduction): Likewise.
16602 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16603
16604 2019-06-04 Martin Liska <mliska@suse.cz>
16605
16606 * ipa-icf.h (struct sem_usage_pair_hash): New.
16607 (sem_usage_pair_hash::hash): Likewise.
16608 (sem_usage_pair_hash::equal): Likewise.
16609 (struct sem_usage_hash): Likewise.
16610 * ipa-icf.c (sem_item::sem_item): Initialize
16611 referenced_by_count.
16612 (sem_item::add_reference): Register a reference
16613 in ref_map and not in target->usages.
16614 (sem_item::setup): Remove initialization of
16615 dead vectors.
16616 (sem_item::~sem_item): Remove usage of dead vectors.
16617 (sem_item::dump): Remove dump of references.
16618 (sem_item_optimizer::sem_item_optimizer): Initialize
16619 m_references.
16620 (sem_item_optimizer::read_section): Remove useless
16621 dump.
16622 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16623 (sem_item_optimizer::build_graph): Pass m_references
16624 to ::add_reference.
16625 (sem_item_optimizer::verify_classes): Remove usage of dead
16626 vectors.
16627 (sem_item_optimizer::traverse_congruence_split): Return true
16628 when a class is split.
16629 (sem_item_optimizer::do_congruence_step_for_index): Use
16630 hash_map for look up of (sem_item *, index). That brings
16631 significant speed up.
16632 (sem_item_optimizer::do_congruence_step): Return true
16633 when a split is done.
16634 (congruence_class::is_class_used): Use referenced_by_count.
16635
16636 2019-06-04 Alan Modra <amodra@gmail.com>
16637
16638 PR target/90689
16639 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16640 error.
16641
16642 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16643
16644 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16645 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16646 (rs6000_secondary_reload_simple_move): Adjust.
16647 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16648 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16649 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16650 comment.
16651 (power6x): Adjust.
16652 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16653 (floatunssi<mode>2_lfiwzx): Adjust.
16654 (fix_trunc<mode>si2_stfiwx): Adjust.
16655 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16656 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16657 (mfpgpr): Mark as deprecated.
16658 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16659 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16660 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16661
16662 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16663
16664 * config/rs6000/constraints.md (define_register_constraint "wg"):
16665 Delete.
16666 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16667 RS6000_CONSTRAINT_wg.
16668 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16669 (rs6000_init_hard_regno_mode_ok): Adjust.
16670 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16671 Delete "wg" alternatives.
16672 * doc/md.texi (Machine Constraints): Adjust.
16673
16674 2019-06-03 Alan Modra <amodra@gmail.com>
16675
16676 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16677 (get_uncond_jump_length): Assert length less than INT_MAX and
16678 non-negative.
16679
16680 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16681
16682 PR middle-end/64242
16683 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16684 block.
16685 (expand_builtin_nonlocal_goto): Likewise.
16686
16687 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16688
16689 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16690 (aarch64_asm_output_external): Declare.
16691 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16692 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16693 (aarch64_asm_output_alias): New.
16694 (aarch64_asm_output_external): New.
16695 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16696 (ASM_OUTPUT_EXTERNAL): Define.
16697
16698 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16699 * tree-vrp.h (value_range_base::nonzero_p): New.
16700 (value_range_base::set_nonnull): Rename to...
16701 (value_range_base::set_nonzero): ...this.
16702 (value_range_base::set_null): Rename to...
16703 (value_range_base::set_zero): ...this.
16704 (value_range::set_nonnull): Remove.
16705 (value_range::set_null): Remove.
16706 * tree-vrp.c (range_is_null): Remove.
16707 (range_is_nonnull): Remove.
16708 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16709 instead of range_is_*null.
16710 (extract_range_from_unary_expr): Same.
16711 (value_range_base::set_nonnull): Rename to...
16712 (value_range_base::set_nonzero): ...this.
16713 (value_range::set_nonnull): Remove.
16714 (value_range_base::set_null): Rename to...
16715 (value_range_base::set_zero): ...this.
16716 (value_range::set_null): Remove.
16717 (extract_range_from_binary_expr): Rename set_*null uses to
16718 set_*zero.
16719 (extract_range_from_unary_expr): Same.
16720 (union_helper): Same.
16721 * vr-values.c (get_value_range): Use set_*zero instead of
16722 set_*null.
16723 (vr_values::extract_range_from_binary_expr): Same.
16724 (vr_values::extract_range_basic): Same.
16725
16726 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16727
16728 PR driver/90684
16729 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16730
16731 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16732
16733 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16734 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16735 Rename to...
16736 (aarch64_<su>abd<mode>_3): ... This.
16737 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16738
16739 2019-06-03 Richard Biener <rguenther@suse.de>
16740
16741 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16742 full reference tree and record in ref->ref.
16743 (vn_reference_lookup_3): Pass in original ref to
16744 ao_ref_init_from_vn_reference.
16745 (vn_reference_lookup): Likewise.
16746 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16747 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16748 Handle non-decl bases in the original reference.
16749
16750 2019-06-03 Martin Liska <mliska@suse.cz>
16751
16752 * doc/generic.texi: Remove Java Trees.
16753
16754 2019-06-03 Martin Liska <mliska@suse.cz>
16755
16756 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16757 returns 0 when operands are equal.
16758
16759 2019-06-03 Richard Biener <rguenther@suse.de>
16760
16761 PR tree-optimization/90716
16762 * tree-loop-distribution.c (destroy_loop): Process blocks in
16763 correct order.
16764
16765 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16766
16767 PR target/88837
16768 * vector-builder.h (vector_builder::count_dups): New method.
16769 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16770 Declare prototype.
16771 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16772 (vec_init<mode><Vel>): New pattern.
16773 * config/aarch64/aarch64.c (emit_insr): New function.
16774 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16775 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16776 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16777 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16778
16779 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16780
16781 PR tree-optimization/90681
16782 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16783 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16784 special case for SLP, but fail on non-groupped loads.
16785
16786 2019-06-03 Martin Liska <mliska@suse.cz>
16787
16788 * cfg.c (debug): Use TDF_DETAILS for debug and
16789 print edge info only once.
16790
16791 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16792
16793 PR fortran/90539
16794 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16795
16796 2019-06-01 Martin Sebor <msebor@redhat.com>
16797
16798 PR middle-end/90694
16799 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16800
16801 2019-05-31 Jan Hubicka <jh@suse.cz>
16802
16803 * alias.c: Include ipa-utils.h.
16804 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16805 * ipa-devirt.c (prevailing_odr_type): New.
16806 * ipa-utils.h (previaling_odr_type): Declare.
16807
16808 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16809 Hongtao Liu <hongtao.liu@intel.com>
16810
16811 PR target/89355
16812 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16813 NOTE_INSN_DELETED_LABEL check.
16814
16815 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16816 Robert Suchanek <robert.suchanek@mips.com>
16817
16818 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16819 and 3rd operands of the fmadd/fmsub/maddv builtin.
16820
16821 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16822
16823 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16824 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16825 on OMP_SIMD if not nested inside of worksharing loop that also has
16826 lastprivate conditional clause for the same decl.
16827 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16828 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16829 on simd.
16830 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16831 on simd construct.
16832 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16833 on simd construct.
16834 (lower_lastprivate_clauses): Likewise.
16835 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16836 calling lower_rec_input_clauses.
16837 (lower_omp_for): Likewise.
16838 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16839 clause on simd construct.
16840 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16841 OMP_CLAUSE__CONDTEMP_ clause is present.
16842
16843 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16844 ivar and lvar.
16845
16846 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16847
16848 PR c/43673
16849 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16850 TEX_D32, TEX_D64 or TEX_D128.
16851
16852 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16853
16854 * match.pd (~(vec?cst1:cst2)): New transformation.
16855
16856 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16857
16858 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16859 ((size_t)(A /[ex] B) CMP C): New transformation.
16860
16861 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16862
16863 * doc/md.texi: Document define_insn_and_rewrite.
16864 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16865 * gensupport.c (queue_elem): Update comment.
16866 (replace_operands_with_dups): New function.
16867 (gen_rewrite_sequence): Likewise.
16868 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16869 * read-rtl.c (apply_subst_iterator): Likewise.
16870 (add_condition_to_rtx, named_rtx_p): Likewise.
16871 (rtx_reader::read_rtx_operand): Likewise.
16872 * config/aarch64/aarch64-sve.md
16873 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16874 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16875 define_insn_and_rewrite.
16876 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16877 Remove separate define_split.
16878
16879 2019-05-31 Jan Hubicka <jh@suse.cz>
16880
16881 * tree-ssa-alias.c (type_has_components_p): New function.
16882 (aliasing_component_refs_p): Use it.
16883
16884 2019-05-31 Martin Liska <mliska@suse.cz>
16885
16886 * gdbhooks.py: Add const_tree to TreePrinter.
16887
16888 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16889
16890 PR debug/86964
16891 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16892 * doc/invoke.texi (Debugging Options): Document new default of
16893 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16894
16895 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16896
16897 PR tree-optimization/90671
16898 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16899 template_block used to be empty on the first call, don't use
16900 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16901 seq with bb_seq and set it with set_bb_seq.
16902
16903 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16904
16905 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16906
16907 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16908 Michael Meissner <meissner@linux.ibm.com>
16909
16910 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16911 (prefixed_mem_operand): Likewise.
16912 (non_prefixed_mem_operand): Likewise.
16913 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16914 prototype.
16915 * config/rs6000/rs6000.c (print_operand_address): Handle
16916 PC-relative addresses.
16917 (mode_supports_prefixed_address_p): New function.
16918 (rs6000_prefixed_address): New function.
16919 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16920 (SYMBOL_REF_PCREL_P): Likewise.
16921
16922 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16923
16924 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16925 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16926 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16927 is nested inside of parallel region, add _condtemp_ clause to both.
16928 * tree-nested.c (convert_nonlocal_omp_clauses,
16929 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16930 assertion failure.
16931 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16932 member.
16933 * omp-general.c (omp_extract_for_data): Compute it.
16934 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16935 (lower_rec_input_clauses): Likewise.
16936 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16937 clause is already present, just add one further one after it.
16938 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16939 (lower_send_shared_vars): Clear _condtemp_ vars.
16940 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16941 or section or taskgroup.
16942 * omp-expand.c (determine_parallel_type): Disallow combining only if
16943 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16944 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16945 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16946 expand_omp_for_static_chunk, expand_omp_for): Use
16947 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16948 determine if a special set of API routines are needed and if condtemp
16949 needs to be initialized, while always initialize cond_var if
16950 fd->lastprivate_conditional is non-zero.
16951
16952 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16953 Michael Meissner <meissner@linux.ibm.com>
16954
16955 * config/rs6000/constraints.md (eI): New constraint.
16956 * config/rs6000/predicates.md (cint34_operand): New predicate.
16957 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16958 (SIGNED_34BIT_OFFSET_P): Likewise.
16959 * doc/md.texi (eI): Document constraint.
16960
16961 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16962
16963 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16964
16965 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16966 Michael Meissner <meissner@linux.ibm.com>
16967
16968 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16969 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16970 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16971 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16972 (OTHER_FUTURE_MASKS): Likewise.
16973 (POWERPC_MASKS): Likewise.
16974 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16975 specified without -mprefixed-addr or -mcpu=future. Error if
16976 -mprefixed-addr is specified without -mcpu=future.
16977 (rs6000_opt_masks): Add entry for prefixed-addr.
16978 * rs6000.opt (mprefixed-addr): New option.
16979
16980 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16981
16982 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16983 cfun->is_thunk check.
16984
16985 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16986
16987 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16988 to length.
16989
16990 2019-05-30 Martin Liska <mliska@suse.cz>
16991
16992 * gdbinit.in: Fix 'ptc' command. Add trt
16993 that prints TREE_TYPE($).
16994
16995 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16996 Alan Modra <amodra@gmail.com>
16997
16998 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16999 calls here...
17000 (rs6000_indirect_call_template_1): ...and here.
17001 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
17002 plt16_ha, plt16_lo, mtctr indirect calls. Use
17003 rs6000_pltseq_enum.
17004 (rs6000_decl_ok_for_sibcall): New function.
17005 (rs6000_function_ok_for_sibcall): Refactor.
17006 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
17007 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
17008 when pcrel. Reorganize.
17009 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
17010 * rs6000.h (rs6000_pltseq_enum): New enum.
17011 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
17012 (*pltseq_tocsave): Use rs6000_pltseq_enum.
17013 (*pltseq_plt16_ha): Likewise.
17014 (*pltseq_plt16_lo): Likewise.
17015 (*pltseq_mtctr): Likewise.
17016 (*pltseq_plt_pcrel): New insn.
17017 (*call_local_aix): Handle @notoc calls.
17018 (*call_value_local_aix): Likewise.
17019 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
17020 (*call_value_nonlocal_aix): Likewise.
17021 (*call_indirect_pcrel): New insn.
17022 (*call_value_indirect_pcrel): Likewise.
17023
17024 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
17025
17026 * config/i386/sse.md (*save_multiple<mode>): Rename from
17027 save_multiple<mode>.
17028 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
17029 (*restore_multiple_and_return<mode>): Rename from
17030 restore_multiple_and_return<mode>.
17031 (*restore_multiple_leave_return<mode>): Rename from
17032 restore_multiple_leave_return<mode>.
17033
17034 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
17035
17036 * config.gcc (rx-*-linux*): New target.
17037 * config/rx/elf.opt: New file.
17038 * config/rx/linux.h: Likewise.
17039 * config/rx/t-linux: Likewise.
17040 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
17041 make it zero.
17042 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
17043 (ASM_APP_OFF): Likewise.
17044 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
17045 moved elsewhere.
17046
17047 2019-05-29 Jan Hubicka <jh@suse.cz>
17048
17049 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
17050 variants are pointer equivalent.
17051
17052 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17053
17054 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
17055 * config/aarch64/aarch64-sve2.md: New file.
17056 (<u>avg<mode>3_floor): New pattern.
17057 (<u>avg<mode>3_ceil): Likewise.
17058 (*<sur>h<addsub><mode>): Likewise.
17059 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
17060 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
17061
17062 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17063
17064 PR bootstrap/90543
17065 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17066 for var_opt_string printing. In cl_optimization_print_diff, print
17067 (null) instead of invoking undefined behavior if one of the
17068 var_opt_string pointers is NULL and use && instead of first || in the
17069 guarding condition. For var_target_other options, handle const char *
17070 target variables similarly to const char * optimize node variables.
17071
17072 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17073
17074 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17075 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17076 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17077 Add autib1716 and pacib1716 initialisation.
17078 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17079 for autib1716 and pacib1716.
17080 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17081 aarch64_post_cfi_startproc): Define.
17082 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17083 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17084 aarch64_handle_pac_ret_protection): Set default sign key to A.
17085 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17086 aarch64_expand_prologue): Add check for b-key.
17087 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17088 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17089 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17090 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17091 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17092 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17093 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17094 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17095 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17096 pauth_hint_num_a with pauth_hint_num.
17097 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17098 pauth_hint_num_a with pauth_hint_num.
17099 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17100 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17101 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17102 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17103 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17104 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17105 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17106 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17107 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17108 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17109 UNSPEC_AUTIA1716 respectively.
17110 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17111 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17112 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17113 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17114 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17115 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17116
17117 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17118
17119 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17120 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17121 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17122 explicit clause on combined parallel into implicit shared clause.
17123 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17124 and firstprivate if the decl has one too from combined parallel to
17125 the worksharing construct.
17126
17127 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17128 Michael Meissner <meissner@linux.ibm.com>
17129
17130 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17131
17132 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17133
17134 * rtl.h (LABEL_REF_P): New #define.
17135
17136 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17137
17138 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17139
17140 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17141
17142 * internal-fn.c: Marked mask_load_direct as vectorizable.
17143 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17144 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17145 combined even if masks different with allow_slp_p param.
17146 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17147 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17148 dissolve SLP-only vectorizable groups when SLP has been discarded.
17149 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17150 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17151 masks.
17152 (vect_build_slp_tree_1): Fixed comment typo.
17153 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17154 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17155 loads for SLP only.
17156 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17157 vectorizable.
17158 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17159
17160 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17161
17162 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17163 Remove obsolete use_thunk reference.
17164 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17165 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17166 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17167 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17168 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17169 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17170 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17171 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17172 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17173
17174 2019-05-28 Nathan Sidwell <nathan@acm.org>
17175
17176 * tree.h (IDENTIFIER_ANON_P): New.
17177 (anon_aggrname_format, anon_aggname_p): Don't declare.
17178 (make_anon_name): Declare.
17179 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17180 (hash_tree): Likewise.
17181 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17182 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17183 (anon_cnt, make_anon_name): New.
17184
17185 2019-05-28 Martin Liska <mliska@suse.cz>
17186
17187 PR other/90315
17188 * opts-global.c (decode_options): Print help for all
17189 help_option_arguments.
17190 * opts.c (print_help): Add new argument.
17191 (common_handle_option): Remember all values into
17192 help_option_arguments.
17193 * opts.h (print_help): Add new argument.
17194
17195 2019-05-28 Martin Liska <mliska@suse.cz>
17196
17197 PR ipa/90555
17198 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17199 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17200 (func_checker::compare_bb): Call compare_loops.
17201
17202 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17203
17204 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17205 on sections construct.
17206 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17207 construct.
17208 (lower_omp_sections): Handle lastprivate conditional.
17209 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17210 lastprivate_conditional_map.
17211 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17212
17213 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17214 critical, taskgroup and section regions when looking for a region
17215 with non-NULL lastprivate_conditional_map.
17216
17217 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17218
17219 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17220 (*ix86_gen_sub3): Ditto.
17221 (*ix86_gen_sub3_carry): Ditto.
17222 (*ix86_gen_one_cmpl2): Ditto.
17223 (*ix86_gen_andsp): Ditto.
17224 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17225 (gen_and2_insn): New static function.
17226 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17227 Use gen_add3_insn instead of ix86_gen_add3.
17228 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17229 instead of ix86_gen_add3.
17230 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17231 Use gen_sub3_insn instead of ix86_gen_sub3.
17232 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17233 instead of ix86_gen_add3.
17234 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17235 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17236 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17237 * config/i386/i386-options.c (ix86_option_override_internal):
17238 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17239 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17240
17241 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17242
17243 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17244 and DW_OP_GNU_const_index opcodes.
17245
17246 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17247
17248 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17249
17250 2019-05-27 Richard Biener <rguenther@suse.de>
17251
17252 PR tree-optimization/90637
17253 * tree-ssa-sink.c (statement_sink_location): Honor the
17254 computed sink location for single-uses.
17255
17256 2019-05-27 Richard Biener <rguenther@suse.de>
17257
17258 PR middle-end/90610
17259 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17260 a bit-insert.
17261
17262 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17263
17264 * config/i386/i386.md (@sub<mode>3_carry): Rename
17265 from sub<mode>3_carry.
17266 (@leave_<mode>): New expander.
17267 (*leave): Rename from leave.
17268 (*leave_rex64): Rename from leave_rex64.
17269 (@monitorx_<mode>): Rename from monitorx_<mode>.
17270 (@clzero_<mode>): Rename from clzero_<mode>.
17271 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17272 from sse3_monitor_<mode>.
17273 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17274 (*ix86_gen_leave): Ditto.
17275 (*ix86_gen_monitor): Ditto.
17276 (*ix86_gen_monitorx): Ditto.
17277 (*ix86_gen_clzero): Ditto.
17278 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17279 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17280 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17281 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17282 Use gen_sse3_monitor instead of ix86_gen_monitor.
17283 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17284 instead of ix86_gen_monitorx.
17285 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17286 instead of ix86_gen_clzero.
17287 * config/i386/i386-options.c (ix86_option_override_internal):
17288 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17289 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17290
17291 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17292
17293 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17294 Rename from tls_global_dynamic_64_<mode>.
17295 (@tls_local_dynamic_base_64_<mode>): Rename from
17296 tls_local_dynamic_base_64_<mode>.
17297 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17298 Remove indirect function.
17299 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17300 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17301 instead of ix86_gen_tls_global_dynamic_64.
17302 Use gen_tls_local_dynamic_base_64 instead of
17303 ix86_gen_tls_local_dynamic_base_64.
17304 * config/i386/i386-options.c (ix86_option_override_internal):
17305 Do not initialize ix86_gen_tls_global_dynamic_64 and
17306 ix86_gen_tls_local_dynamic_base_64.
17307
17308 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17309
17310 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17311 Rename from pro_epilogue_adjust_stack_<mode>_add.
17312 (@pro_epilogue_adjust_stack_sub_<mode>)
17313 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17314 (@allocate_stack_worker_probe_<mode>):
17315 Rename from allocate_stack_worker_probe_<mode>.
17316 (allocate_stack): Use gen_allocate_stack_worker_probe.
17317 (probe_stack): Use gen_probe_stack_1.
17318 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17319 (@adjust_stack_and_probe_<mode>): Rename from
17320 adjust_stack_and_probe<mode>.
17321 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17322 (stack_protect_set): Use gen_stack_protect_set_1.
17323 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17324 (stack_protect_test): Use gen_stack_protect_test_1.
17325 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17326 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17327 Remove indirect function.
17328 (*ix86_gen_adjust_stack_and_probe): Ditto.
17329 (*ix86_gen_probe_stack_range): Ditto.
17330 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17331 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17332 (ix86_adjust_stack_and_probe_stack_clash): Use
17333 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17334 (ix86_adjust_stack_and_probe): Ditto.
17335 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17336 of ix86_gen_probe_stack_range.
17337 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17338 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17339 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17340 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17341 CODE_FOR_stack_protect_test_{si,di}.
17342 * config/i386/i386-options.c (ix86_option_override_internal):
17343 Do not initialize ix86_gen_allocate_stack_worker,
17344 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17345
17346 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17347
17348 * doc/invoke.texi (Link Options): Many editorial changes around
17349 -flinker-output.
17350
17351 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17352
17353 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17354 pre-Solaris 11 referene and most Studio compiler details.
17355
17356 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17357
17358 PR target/90530
17359 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17360 DImode to SImode in floating-point registers on 64-bit target.
17361 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17362 register_operand in xmpyu patterns.
17363
17364 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17365
17366 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17367 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17368 OMP_CLAUSE__REDUCTEMP_.
17369 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17370 OMP_CLAUSE__CONDTEMP_.
17371 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17372 * tree-pretty-print.c (dump_omp_clause): Likewise.
17373 * tree-nested.c (convert_nonlocal_omp_clauses,
17374 convert_local_omp_clauses): Likewise.
17375 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17376 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17377 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17378 on OMP_FOR.
17379 (gimplify_omp_for): Warn and disable conditional modifier from
17380 lastprivate on loop iterators.
17381 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17382 member.
17383 * omp-general.c (omp_extract_for_data): Initialize it.
17384 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17385 member.
17386 (delete_omp_context): Delete it.
17387 (lower_lastprivate_conditional_clauses): New function.
17388 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17389 handle lastprivate conditional clauses.
17390 (lower_reduction_clauses): Add CLIST argument, emit it into
17391 the critical section if any.
17392 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17393 lower_reduction_clauses callers.
17394 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17395 to lower_lastprivate_clauses.
17396 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17397 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17398 clist into a critical section if not emitted there already by
17399 lower_reduction_clauses.
17400 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17401 callers.
17402 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17403 conditional variables.
17404 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17405 clause is present.
17406 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17407 expand_omp_for_static_chunk): Handle lastprivate conditional.
17408 (expand_omp_for): Handle fd.lastprivate_conditional like
17409 fd.have_reductemp.
17410
17411 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17412
17413 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17414 kernel does not exit cleanly.
17415 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17416
17417 2019-05-24 Jason Merrill <jason@redhat.com>
17418
17419 Revert:
17420 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17421
17422 2019-05-24 Richard Biener <rguenther@suse.de>
17423
17424 PR testsuite/90607
17425 * tree-loop-distribution.c (struct partition): Add location
17426 member.
17427 (partition_alloc): Initialize all fields.
17428 (generate_memset_builtin): Use the location recorded in the
17429 partition for the generated call.
17430 (generate_memcpy_builtin): Likewise.
17431 (classify_partition): Record the location of a single store
17432 as location for the partition.
17433
17434 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17435
17436 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17437 for lo-part.
17438
17439 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17440
17441 PR target/90588
17442 * common/config/aarch64/aarch64-common.c
17443 (aarch64_rewrite_selected_cpu): Change local temporary variable
17444 type from unsigned long to uint64_t.
17445 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17446 aarch64_get_extension_string_for_isa_flags): Change declaration to
17447 match new definition by replacing unsigned long with uint64_t.
17448
17449 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17450
17451 PR target/90568
17452 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17453 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17454 Handle stack_protect_test_<mode> codegen similarly to corresponding
17455 sub instruction.
17456
17457 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17458
17459 * config/i386/darwin.h: Reject -mfentry*.
17460 * doc/sourcebuild.texi: Document mfentry target support.
17461
17462 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17463
17464 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17465 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17466 false for PC-relative functions.
17467 (rs6000_output_function_prologue): Change called function name to
17468 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17469 name,1" for PC-relative functions.
17470 (rs6000_elf_declare_function_name): Change called function name to
17471 rs6000_global_entry_point_prologue_needed_p.
17472
17473 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17474
17475 PR target/90552
17476 * config/i386/i386.c (gen_rtx_cost):
17477 Use ix86_tune_cost instead of ix86_cost.
17478
17479 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17480 Michael Meissner <meissner@linux.ibm.com>
17481 Segher Boessenkool <segher@kernel.crashing.org>
17482
17483 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17484 OPTION_MASK_PCREL.
17485 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17486 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17487 (rs6000_fndecl_pcrel_p): Likewise.
17488 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17489 error if -mpcrel is requested without -mcpu=future.
17490 (rs6000_opt_masks): Add entry for pcrel.
17491 (rs6000_fndecl_pcrel_p): New function.
17492 (rs6000_pcrel_p): Likewise.
17493 * config/rs6000/rs6000.opt (mpcrel): New option.
17494 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17495
17496 2019-05-23 Jan Hubicka <jh@suse.cz>
17497 Martin Liska <mliska@suse.cz>
17498
17499 PR tree-optimization/90576
17500 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17501 poly_int_tree_p.
17502 (aliasing_component_refs_p): Fix three way size compare conditional;
17503 give up earlier in case we can not decide on equivalence.
17504
17505 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17506 Michael Meissner <meissner@linux.ibm.com>
17507 Segher Boessenkool <segher@kernel.crashing.org>
17508
17509 * config.gcc: Add future cpu.
17510 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17511 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17512 #define.
17513 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17514 (RS6000_CPU): New instantiation for future cpu.
17515 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17516 PROCESSOR_FUTURE.
17517 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17518 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17519 * config/rs6000/rs6000-tables.opt: Regenerate.
17520 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17521 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17522 (rs6000_machine_from_flags): Handle future cpu.
17523 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17524 PROCESSOR_POWER9 for now.
17525 (rs6000_adjust_cost): Likewise.
17526 (rs6000_issue_rate): Likewise.
17527 (rs6000_register_move_cost): Likewise.
17528 (rs6000_opt_masks): Add entry for future.
17529 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17530 (MASK_FUTURE): New #define.
17531 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17532 * config/rs6000/rs6000.opt (mfuture): New target option.
17533 * doc/invoke.texi (mcpu): Add future cpu.
17534
17535 2019-05-23 Martin Liska <mliska@suse.cz>
17536
17537 PR c++/90587
17538 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17539 operation points to a temporary (pointed via tree_to_wide_ref)
17540 that is out of scope after the &.
17541
17542 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17543
17544 PR c++/90592
17545 * doc/extend.texi (Function Names): Add missing word.
17546
17547 2019-05-23 Richard Biener <rguenther@suse.de>
17548
17549 PR tree-optimization/88440
17550 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17551 at -O[2s]+.
17552 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17553 generated call.
17554 (generate_memcpy_builtin): Likewise.
17555 (distribute_loop): Pass in whether to only distribute patterns.
17556 (prepare_perfect_loop_nest): Also allow size optimization.
17557 (pass_loop_distribution::execute): When optimizing a loop
17558 nest for size allow pattern replacement.
17559
17560 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17561
17562 PR target/90568
17563 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17564 of xor.
17565
17566 2019-05-23 Martin Liska <mliska@suse.cz>
17567
17568 PR sanitizer/90570
17569 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17570 expression similarly to gimplify_decl_expr.
17571
17572 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17573
17574 * cse.c (cse_dump_path): s/dump_file/f.
17575
17576 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17577
17578 PR c++/90462
17579 * diagnostic-format-json.cc: Include "selftest.h".
17580 (json_from_expanded_location): Only add "file" key for non-NULL
17581 file strings.
17582 (json_from_location_range): Don't add "start" and "finish"
17583 children if they are UNKNOWN_LOCATION.
17584 (selftest::test_unknown_location): New selftest.
17585 (selftest::test_bad_endpoints): New selftest.
17586 (selftest::diagnostic_format_json_cc_tests): New function.
17587 * json.cc (json::object::get): New function.
17588 (selftest::test_object_get): New selftest.
17589 (selftest::json_cc_tests): Call it.
17590 * json.h (json::object::get): New decl.
17591 * selftest-run-tests.c (selftest::run_tests): Call
17592 selftest::diagnostic_format_json_cc_tests.
17593 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17594 decl.
17595
17596 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17597 Andrew Stubbs <amd@codesourcery.com>
17598
17599 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17600 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17601 (kernel): Rename to...
17602 (main_kernel): ... this.
17603 (load_image): Load _init_array and _fini_array kernels.
17604 (run): Add argument for kernel to run.
17605 (main): Run init_array_kernel before main_kernel, and
17606 fini_array_kernel after.
17607 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17608 amdgpu_hsa_kernel attribute on functions.
17609 (gcn_disable_constructors): Delete.
17610 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17611 * config/gcn/crt0.c (size_t): Define.
17612 (_init_array, _fini_array): New.
17613 (__preinit_array_start, __preinit_array_end,
17614 __init_array_start, __init_array_end,
17615 __fini_array_start, __fini_array_end): Declare weak references.
17616
17617 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17618
17619 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17620
17621 2019-05-22 Jason Merrill <jason@redhat.com>
17622
17623 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17624
17625 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17626
17627 PR target/88483
17628 * config/i386/i386-options.c (ix86_init_machine_status): Set
17629 stack_frame_required to true.
17630 * config/i386/i386.c (ix86_get_frame_size): New function.
17631 (ix86_frame_pointer_required): Replace get_frame_size with
17632 ix86_get_frame_size.
17633 (ix86_compute_frame_layout): Likewise.
17634 (ix86_find_max_used_stack_alignment): Changed to void. Set
17635 stack_frame_required.
17636 (ix86_finalize_stack_frame_flags): Always call
17637 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17638 ix86_get_frame_size.
17639 * config/i386/i386.h (machine_function): Add stack_frame_required.
17640
17641 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17642
17643 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17644
17645 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17646
17647 * common/config/aarch64/aarch64-common.c
17648 (struct aarch64_option_extension, struct processor_name_to_arch,
17649 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17650 aarch64_contains_opt,
17651 aarch64_get_extension_string_for_isa_flags): Change type of
17652 variables storing flags to uint64_t.
17653 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17654 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17655 * config/aarch64/aarch64.c (struct processor,
17656 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17657 aarch64_validate_march, aarch64_override_options,
17658 aarch64_option_print, aarch64_handle_attr_isa_flags,
17659 aarch64_declare_function_name, aarch64_start_file): Make flag
17660 variables uint64_t.
17661 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17662 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17663 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17664 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17665 * config/aarch64/driver-aarch64.c
17666 (struct aarch64_arch_extension, struct aarch64_core_data,
17667 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17668 flag variables uint64_t.
17669 * doc/invoke.texi: Add documentation for new arguments.
17670
17671 2019-05-22 Richard Biener <rguenther@suse.de>
17672
17673 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17674 rewrite ...
17675 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17676
17677 2019-05-22 Martin Liska <mliska@suse.cz>
17678
17679 PR lto/90500
17680 * doc/extend.texi: Document the change.
17681
17682 2019-05-22 Richard Biener <rguenther@suse.de>
17683
17684 PR tree-optimization/90450
17685 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17686 (mem_ref_hasher::equal): Check it.
17687 (mem_ref_alloc): Initialize it.
17688 (gather_mem_refs_stmt): Set it.
17689
17690 2019-05-22 Richard Biener <rguenther@suse.de>
17691
17692 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17693 Add ABS_EXPR.
17694 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17695 as ABSU_EXPR.
17696
17697 2019-05-22 Alan Modra <amodra@gmail.com>
17698
17699 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17700 (ASM_CPU_SPEC): Conditionally add -many.
17701 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17702 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17703 (rs6000_file_start): ..extracted from here, and modified to
17704 test all ISA bits.
17705 (rs6000_output_function_prologue): Emit .machine as necessary.
17706
17707 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17708
17709 PR middle-end/90553
17710 * ira-lives.c (process_bb_node_lives): Consider defs
17711 for a call insn to be die before the call, not after.
17712
17713 * function.c (assign_parm_setup_block): Raise alignment of
17714 stacked parameter only for STRICT_ALIGNMENT targets.
17715
17716 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17717
17718 * config/rs6000/constraints.md (define_register_constraint "wz"):
17719 Delete.
17720 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17721 RS6000_CONSTRAINT_wz.
17722 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17723 (rs6000_init_hard_regno_mode_ok): Adjust.
17724 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17725 * doc/md.texi (Machine Constraints): Adjust.
17726
17727 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17728
17729 * config/rs6000/constraints.md (define_register_constraint "wl"):
17730 Delete.
17731 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17732 RS6000_CONSTRAINT_wl.
17733 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17734 (rs6000_init_hard_regno_mode_ok): Adjust.
17735 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17736 * doc/md.texi (Machine Constraints): Adjust.
17737
17738 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17739
17740 * config/rs6000/constraints.md (define_register_constraint "wm"):
17741 Delete.
17742 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17743 RS6000_CONSTRAINT_wm.
17744 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17745 (rs6000_init_hard_regno_mode_ok): Adjust.
17746 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17747 * doc/md.texi (Machine Constraints): Adjust.
17748
17749 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17750
17751 * config/rs6000/constraints.md (define_register_constraint "wk"):
17752 Delete.
17753 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17754 RS6000_CONSTRAINT_wk.
17755 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17756 (rs6000_init_hard_regno_mode_ok): Adjust.
17757 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17758 * doc/md.texi (Machine Constraints): Adjust.
17759
17760 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17761
17762 * config/rs6000/constraints.md (define_register_constraint "wj"):
17763 Delete.
17764 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17765 RS6000_CONSTRAINT_wj.
17766 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17767 (rs6000_init_hard_regno_mode_ok): Adjust.
17768 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17769 (VS_64dm): Delete.
17770 * config/rs6000/vsx.md: Ditto.
17771 * doc/md.texi (Machine Constraints): Adjust.
17772
17773 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17774
17775 * config/rs6000/constraints.md (define_register_constraint "wh"):
17776 Delete.
17777 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17778 RS6000_CONSTRAINT_wh.
17779 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17780 (rs6000_init_hard_regno_mode_ok): Adjust.
17781 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17782 * doc/md.texi (Machine Constraints): Adjust.
17783
17784 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17785
17786 PR target/90547
17787 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17788 Avoid calling gen_lowpart with CONST operand.
17789
17790 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17791
17792 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17793 field template_last_to_copy.
17794 (ssa_create_duplicates): Set it, and use it. Attempt to
17795 preserve more debug stmts.
17796
17797 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17798
17799 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17800 (signbit<mode>2): New expander
17801
17802 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17803
17804 PR bootstrap/87338
17805 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17806 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17807
17808 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17809
17810 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17811 %ebx and %ecx bafore calling cpuid with leaf 1 or
17812 non-constant leaf argument.
17813
17814 2019-05-21 Alan Modra <amodra@gmail.com>
17815
17816 PR target/90545
17817 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17818 power9 direct move cost.
17819
17820 2019-05-21 Richard Biener <rguenther@suse.de>
17821
17822 PR middle-end/90510
17823 * fold-const.c (fold_read_from_vector): New function.
17824 * fold-const.h (fold_read_from_vector): Declare.
17825 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17826 single-element insert permutations. Canonicalize selector
17827 further and fix issue with last commit.
17828
17829 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17830
17831 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17832 parameter with default value false to declaration.
17833 (split_edges_for_insertion): New inline function. Wrapper for
17834 split_critical_edges with for_edge_insertion_p = true.
17835 * tree-cfg.c (split_critical_edges): Don't split non-critical
17836 edges if for_edge_insertion_p is false. Fix whitespace.
17837 * tree-ssa-pre.c (pass_pre::execute): Call
17838 split_edges_for_insertion instead of split_critical_edges.
17839 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17840 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17841 (pass_data_sink_code): Update function name in the comment.
17842
17843 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17844
17845 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17846 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17847 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17848 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17849 positives.
17850
17851 2019-05-21 Martin Liska <mliska@suse.cz>
17852
17853 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17854 an extra newline.
17855 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17856 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17857 vec_lvsr.
17858 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17859 Quote a C type.
17860 (rs6000_function_arg): Likewise.
17861 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17862 (rs6000_expand_ternop_builtin): Use interval syntax.
17863 (get_element_number): Likewise.
17864 (altivec_expand_builtin): Likewise.
17865 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17866
17867 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17868
17869 PR c++/59813
17870 PR target/90418
17871 * function.h (struct function): Add calls_eh_return member.
17872 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17873 gimplifying __builtin_eh_return call.
17874 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17875 to cfun.
17876 (expand_call_inline): Or in src_cfun->calls_eh_return into
17877 dst_cfun->calls_eh_return.
17878 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17879 cfun->calls_eh_return.
17880 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17881 * lto-streamer-out.c (output_struct_function_base): Write
17882 calls_eh_return.
17883
17884 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17885
17886 PR rtl-optimization/43147
17887 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17888 IX86_BUILTIN_SHUFPD.
17889
17890 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17891
17892 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17893 (refs_may_alias_p_1): ... here; update stats.
17894 (refs_may_alias_p): Do not update stats here.
17895
17896 2019-05-20 Richard Biener <rguenther@suse.de>
17897
17898 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17899 doesn't produce pointers.
17900 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17901 the first operand points to.
17902
17903 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17904
17905 * tree-ssa-alias.c (compare_sizes): New function.
17906 (sompare_type_sizes): New function
17907 (aliasing_component_refs_p): Use it.
17908 (indirect_ref_may_alias_decl_p): Likewise.
17909
17910 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17911
17912 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17913
17914 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17915
17916 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17917 (LIBLSAN_EARLY_SPEC): Likewise.
17918 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17919
17920 2019-05-20 Martin Liska <mliska@suse.cz>
17921
17922 * config/i386/i386.c (ix86_libc_has_fast_function):
17923 Add ATTRIBUTE_UNUSED for the argument.
17924
17925 2019-05-20 Richard Biener <rguenther@suse.de>
17926
17927 * gimple-match-head.c: Include vec-perm-indices.h.
17928 * generic-match-head.c: Likewise.
17929 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17930 is included.
17931 * fold-const.c (fold_vec_perm): Export.
17932 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17933 (match.pd): ...here.
17934
17935 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17936
17937 * cfgloop.h (struct loop): Add simdlen member.
17938 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17939 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17940 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17941 as new argument to autovectorize_vector_sizes target hook. If
17942 loop->simdlen, pick up vector size where the vectorization factor
17943 is equal to loop->simd, and if there is none, fall back to the first
17944 successful one.
17945 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17946 caller.
17947 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17948 * omp-general.c (omp_max_vf): Likewise.
17949 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17950 * tree-vect-slp.c (vect_slp_bb): Likewise.
17951 * target.def (autovectorize_vector_sizes): Add ALL argument and
17952 document it.
17953 * doc/tm.texi: Adjust documentation.
17954 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17955 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17956 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17957 bool argument.
17958 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17959 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17960 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17961 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17962 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17963 preferred vector size is not 512-bit or 256-bit, just put those
17964 unpreferred ones last.
17965
17966 2019-05-20 Martin Liska <mliska@suse.cz>
17967
17968 * targhooks.c (default_libc_has_fast_function): New function.
17969 * targhooks.h (default_libc_has_fast_function): Likewise.
17970
17971 2019-05-20 Martin Liska <mliska@suse.cz>
17972
17973 PR middle-end/90263
17974 * builtins.c (expand_builtin_memory_copy_args): When having a
17975 target with fast mempcpy implementation do now use memcpy.
17976 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17977 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17978 * doc/tm.texi: Likewise.
17979 * doc/tm.texi.in: Likewise.
17980 * target.def:
17981 * expr.c (emit_block_move_hints): Add 2 new arguments.
17982 * expr.h (emit_block_move_hints): Bail out when libcall
17983 to memcpy would be used.
17984
17985 2019-05-20 Martin Liska <mliska@suse.cz>
17986
17987 * profile-count.c: Add vertical spacing in order
17988 to separate functions.
17989 * profile-count.h: Likewise.
17990
17991 2019-05-20 Martin Liska <mliska@suse.cz>
17992
17993 * profile-count.h: Do not use full qualified
17994 names if possible.
17995 * profile-count.c (profile_count::to_frequency): Likewise.
17996
17997 2019-05-20 Martin Liska <mliska@suse.cz>
17998
17999 * profile-count.h (enum profile_quality): Use capital letters
18000 for enum value names. Use the adjusted names.
18001 * profile-count.c: Use the adjusted names.
18002
18003 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18004
18005 * config/rs6000/constraints.md (define_register_constraint "wH"):
18006 Delete.
18007 (define_register_constraint "wI"): Delete.
18008 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18009 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
18010 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18011 (rs6000_init_hard_regno_mode_ok): Adjust.
18012 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
18013 resp. "d", or with "wa" as appropriate, all with "p8v".
18014 * config/rs6000/vsx.md: Ditto.
18015 * doc/md.texi (Machine Constraints): Adjust.
18016
18017 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18018
18019 * config/rs6000/constraints.md (define_register_constraint "wy"):
18020 Delete.
18021 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18022 RS6000_CONSTRAINT_wy.
18023 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18024 (rs6000_init_hard_regno_mode_ok): Adjust.
18025 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
18026 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
18027 (define_mode_attr Fisa): New.
18028 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
18029 * doc/md.texi (Machine Constraints): Adjust.
18030
18031 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18032
18033 * config/rs6000/constraints.md (define_register_constraint "wu"):
18034 Delete.
18035 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18036 RS6000_CONSTRAINT_wu.
18037 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18038 (rs6000_init_hard_regno_mode_ok): Adjust.
18039 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
18040 both with "p8v".
18041 (define_mode_attr Fa): Delete.
18042 * config/rs6000/vsx.md: Ditto.
18043 * doc/md.texi (Machine Constraints): Adjust.
18044
18045 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18046
18047 * config/rs6000/constraints.md (define_register_constraint "wJ"):
18048 Delete.
18049 (define_register_constraint "wK"): Delete.
18050 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18051 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
18052 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18053 (rs6000_init_hard_regno_mode_ok): Adjust.
18054 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
18055 Replace "wK" constraint by "wH" with "p9v".
18056 * config/rs6000/vsx.md: Ditto.
18057 * doc/md.texi (Machine Constraints): Adjust.
18058
18059 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18060
18061 * config/rs6000/constraints.md (define_register_constraint "wb"):
18062 Delete.
18063 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18064 RS6000_CONSTRAINT_wb.
18065 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18066 (rs6000_init_hard_regno_mode_ok): Adjust.
18067 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18068 * config/rs6000/vsx.md: Ditto.
18069 * doc/md.texi (Machine Constraints): Adjust.
18070
18071 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18072
18073 * config/rs6000/constraints.md (define_register_constraint "wo"):
18074 Delete.
18075 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18076 RS6000_CONSTRAINT_wo.
18077 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18078 (rs6000_init_hard_regno_mode_ok): Adjust.
18079 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18080 * config/rs6000/altivec.md: Ditto.
18081 * doc/md.texi (Machine Constraints): Adjust.
18082
18083 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18084
18085 * config/darwin-c.c (darwin_register_objc_includes): Do not
18086 prepend the sysroot when building gnu-runtime header search
18087 paths.
18088
18089 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18090
18091 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18092 instead of direct output of the asm.
18093
18094 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18095
18096 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18097 argument to be type bool (was int before).
18098 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18099 at first use. Use type bool for some variables. Fix a theoretical
18100 eh_return bug for svr4.
18101
18102 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18103
18104 * config/rs6000/rs6000.md (isa): New attribute.
18105 (enabled): New attribute.
18106
18107 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18108
18109 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18110 assemble_start_function and assemble_end_function.
18111
18112 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18113
18114 PR middle-end/89433
18115 * omp-general.c (oacc_verify_routine_clauses): Change formal
18116 parameters. Add checking if already marked with an OpenACC
18117 'routine' directive. Adjust all users.
18118
18119 PR middle-end/89433
18120 * omp-general.c (oacc_build_routine_dims): Move some of its
18121 processing into...
18122 (oacc_verify_routine_clauses): ... this new function.
18123 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18124
18125 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18126
18127 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18128 formating of picbase labels to match other ports.
18129
18130 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18131
18132 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18133 in the generated code.
18134
18135 2019-05-16 Martin Sebor <msebor@redhat.com>
18136
18137 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18138 identifiers, keywords, operators, and types in diagnostics. Correct
18139 quoting, spelling, and sentence capitalization issues.
18140 (expand_builtin_atomic_is_lock_free): Same.
18141 (fold_builtin_next_arg): Same.
18142 * cfgexpand.c (expand_one_var): Same.
18143 (tree_conflicts_with_clobbers_p): Same.
18144 (expand_asm_stmt): Same.
18145 (verify_loop_structure): Same.
18146 * cgraphunit.c (process_function_and_variable_attributes): Same.
18147 * collect-utils.c (collect_execute): Same.
18148 * collect2.c (maybe_run_lto_and_relink): Same.
18149 (is_lto_object_file): Same.
18150 (scan_prog_file): Same.
18151 * convert.c (convert_to_real_1): Same.
18152 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18153 * except.c (verify_eh_tree): Same.
18154 * gcc.c (execute): Same.
18155 (eval_spec_function): Same.
18156 (run_attempt): Same.
18157 (driver::set_up_specs): Same.
18158 (compare_debug_auxbase_opt_spec_function): Same.
18159 * gcov-tool.c (unlink_gcda_file): Same.
18160 (do_merge): Same.
18161 (do_rewrite): Same.
18162 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18163 * gimplify.c (gimplify_asm_expr): Same.
18164 (gimplify_adjust_omp_clauses): Same.
18165 * hsa-gen.c (gen_hsa_addr_insns): Same.
18166 (gen_hsa_insns_for_load): Same.
18167 (gen_hsa_cmp_insn_from_gimple): Same.
18168 (gen_hsa_insns_for_operation_assignment): Same.
18169 (gen_get_level): Same.
18170 (gen_hsa_alloca): Same.
18171 (omp_simple_builtin::generate): Same.
18172 (gen_hsa_atomic_for_builtin): Same.
18173 (gen_hsa_insns_for_call): Same.
18174 * input.c (dump_location_info): Same.
18175 * ipa-devirt.c (compare_virtual_tables): Same.
18176 * ira.c (ira_setup_eliminable_regset): Same.
18177 * lra-assigns.c (lra_assign): Same.
18178 * lra-constraints.c (lra_constraints): Same.
18179 * lto-streamer-in.c (lto_input_mode_table): Same.
18180 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18181 (merge_and_complain): Same.
18182 (compile_offload_image): Same.
18183 (compile_images_for_offload_targets): Same.
18184 (debug_objcopy): Same.
18185 (run_gcc): Same.
18186 (main): Same.
18187 * opts.c (print_specific_help): Same.
18188 (parse_no_sanitize_attribute): Same.
18189 (print_help): Same.
18190 (handle_param): Same.
18191 * plugin.c (add_new_plugin): Same.
18192 (parse_plugin_arg_opt): Same.
18193 (try_init_one_plugin): Same.
18194 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18195 operators, and types in diagnostics. Correct quoting and spelling
18196 issues.
18197 * read-rtl-function.c (parse_edge_flag_token): Same.
18198 (function_reader::parse_enum_value): Same.
18199 * reg-stack.c (check_asm_stack_operands): Same.
18200 * regcprop.c (validate_value_data): Same.
18201 * sched-rgn.c (make_pass_sched_fusion): Same.
18202 * stmt.c (check_unique_operand_names): Same.
18203 * targhooks.c (default_target_option_pragma_parse): Same.
18204 * tlink.c (recompile_files): Same.
18205 * toplev.c (process_options): Same.
18206 (do_compile): Same.
18207 * trans-mem.c (diagnose_tm_1): Same.
18208 (ipa_tm_scan_irr_block): Same.
18209 (ipa_tm_diagnose_transaction): Same.
18210 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18211 format a tree code name in a diagnostic.
18212 (verify_types_in_gimple_min_lval): Same.
18213 (verify_types_in_gimple_reference): Same.
18214 (verify_gimple_call): Same.
18215 (verify_gimple_assign_unary): Same.
18216 (verify_gimple_assign_binary): Same.
18217 (verify_gimple_assign_ternary): Same.
18218 (verify_gimple_assign_single): Same.
18219 (verify_gimple_switch): Same.
18220 (verify_gimple_label): Same.
18221 (verify_gimple_phi): Same.
18222 (verify_gimple_in_seq): Same.
18223 (verify_eh_throw_stmt_node): Same.
18224 (collect_subblocks): Same.
18225 (gimple_verify_flow_info): Same.
18226 (do_warn_unused_result): Same.
18227 * tree-inline.c (expand_call_inline): Same.
18228 * tree-into-ssa.c (update_ssa): Same.
18229 * tree.c (tree_int_cst_elt_check_failed): Same.
18230 (tree_vec_elt_check_failed): Same.
18231 (omp_clause_operand_check_failed): Same.
18232 (verify_type_variant): Same.
18233 (verify_type): Same.
18234 * value-prof.c (verify_histograms): Same.
18235 * varasm.c (assemble_start_function): Same.
18236
18237 2019-05-16 Martin Sebor <msebor@redhat.com>
18238
18239 * config/i386/i386-expand.c (get_element_number): Quote keywords
18240 and other internal names in diagnostics. Adjust other diagnostic
18241 formatting issues noted by -Wformat-diag.
18242 * config/i386/i386-features.c
18243 (ix86_mangle_function_version_assembler_name): Same.
18244 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18245 * config/i386/i386.c (ix86_function_type_abi): Same.
18246 (ix86_function_ms_hook_prologue): Same.
18247 (classify_argument): Same.
18248 (ix86_expand_prologue): Same.
18249 (ix86_md_asm_adjust): Same.
18250 (ix86_memmodel_check): Same.
18251
18252 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18253
18254 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18255 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18256 and fpxx modes.
18257
18258 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18259
18260 PR target/90497
18261 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18262 intrinsics without SSE/SSE2/SSSE3.
18263 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18264 check.
18265 (*mmx_uavgv8qi3): Likewise.
18266
18267 2019-05-17 Richard Biener <rguenther@suse.de>
18268
18269 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18270 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18271
18272 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18273
18274 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18275 vec_sldw insn pattern.
18276
18277 2019-05-17 Richard Biener <rguenther@suse.de>
18278
18279 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18280
18281 2019-05-17 Martin Liska <mliska@suse.cz>
18282
18283 PR driver/90496
18284 * toplev.c (output_stack_usage): With LTO and sanitizer it
18285 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18286 has no file location.
18287
18288 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18289
18290 PR c++/90484
18291 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18292 sz0 is equal to sz1, instead return false in that case.
18293
18294 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18295 has non-constant expression, force sctx.lane and use two
18296 argument IFN_GOMP_SIMD_LANE instead of single argument.
18297 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18298 two argument IFN_GOMP_SIMD_LANE without lhs.
18299 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18300 member.
18301 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18302 Define.
18303 (LOOP_REQUIRES_VERSIONING): Or in
18304 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18305 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18306 simd_if_cond.
18307 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18308 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18309 from simd if clause if needed.
18310
18311 2019-05-16 Richard Biener <rguenther@suse.de>
18312
18313 * tree-affine.c (expr_to_aff_combination): New function split
18314 out from...
18315 (tree_to_aff_combination): ... here.
18316 (aff_combination_expand): Avoid building a GENERIC tree.
18317
18318 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18319
18320 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18321 assemble_start_function and assemble_end_function calls.
18322 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18323 assemble_start_function and assemble_end_function.
18324 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18325 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18326 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18327 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18328 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18329 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18330 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18331 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18332 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18333 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18334 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18335 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18336 Likewise.
18337 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18338 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18339 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18340 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18341 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18342 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18343 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18344 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18345 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18346 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18347 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18348 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18349 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18350 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18351 Likewise.
18352 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18353 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18354 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18355
18356 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18357
18358 * tree-ssa-alias.c (alias_stats): Add
18359 aliasing_component_refs_p_may_alias and
18360 aliasing_component_refs_p_no_alias.
18361 (dump_alias_stats): Print aliasing_component_refs_p stats.
18362 (aliasing_component_refs_p): Update stats.
18363
18364 2019-05-16 Martin Liska <mliska@suse.cz>
18365
18366 PR lto/90500
18367 * multiple_target.c (expand_target_clones): Do not allow
18368 target_clones being used with a symbol that is an alias.
18369
18370 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18371
18372 PR tree-optimization/90394
18373 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18374 positives rather than ICE for cases where (code2 == NE_EXPR
18375 && code1 == BIT_AND_EXPR).
18376
18377 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18378
18379 PR fortran/90329
18380 * tree-core.h (struct tree_decl_common): Document
18381 decl_nonshareable_flag for PARM_DECLs.
18382 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18383 * calls.c (expand_call): Don't try tail call if caller
18384 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18385 passed on the stack and callee needs to pass any arguments on the
18386 stack.
18387 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18388 else if instead of series of mutually exclusive ifs. Handle
18389 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18390 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18391
18392 * lto-streamer.h (LTO_major_version): Bump to 9.
18393
18394 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18395
18396 PR tree-optimization/90106
18397 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18398 new parameter as new internal function call, also move it to new
18399 basic block.
18400 (use_internal_fn): Pass internal function call to
18401 shrink_wrap_one_built_in_call_with_conds.
18402
18403 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18404
18405 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18406 max_vf to 1.
18407 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18408 safelen_int and set loop->dont_vectorize.
18409
18410 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18411
18412 PR target/89021
18413 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18414 SSE/SSE2/SSSE3.
18415 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18416 Likewise.
18417 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18418 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18419 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18420 is defined.
18421
18422 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18423
18424 PR target/89021
18425 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18426 define_insn_and_split to support SSE emulation.
18427 (*vec_extractv2sf_0): Likewise.
18428 (*vec_extractv2sf_1): Likewise.
18429 (*vec_extractv2si_0): Likewise.
18430 (*vec_extractv2si_1): Likewise.
18431 (*vec_extractv2si_zext_mem): Likewise.
18432 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18433 (vec_extractv2sf_1 splitter): Likewise.
18434 (vec_extractv2sfsf): Likewise.
18435 (vec_setv2si): Likewise.
18436 (vec_extractv2si_1 splitter): Likewise.
18437 (vec_extractv2sisi): Likewise.
18438 (vec_setv4hi): Likewise.
18439 (vec_extractv4hihi): Likewise.
18440 (vec_setv8qi): Likewise.
18441 (vec_extractv8qiqi): Likewise.
18442 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18443 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18444 (vec_extractv2sisi): Likewise.
18445 (vec_extractv4hihi): Likewise.
18446 (vec_extractv8qiqi): Likewise.
18447 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18448 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18449 (vec_initv2sisi): Likewise.
18450 (vec_initv4hihi): Likewise.
18451 (vec_initv8qiqi): Likewise.
18452 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18453 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18454 (vec_setv4hi): Likewise.
18455 (vec_setv8qi): Likewise.
18456
18457 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18458
18459 PR target/89021
18460 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18461 TARGET_MMX_WITH_SSE.
18462 (MMXMODE:*mov<mode>_internal): Likewise.
18463 (MMXMODE:movmisalign<mode>): Likewise.
18464
18465 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18466
18467 PR target/89021
18468 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18469 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18470 (sse2_cvtpd2pi): Ditto.
18471 (sse2_cvttpd2pi): Ditto.
18472 (*vec_concatv2sf_sse4_1): Ditto.
18473 (*vec_concatv2sf_sse): Ditto.
18474 (*vec_concatv2si_sse4_1): Ditto.
18475 (*vec_concatv2si): Ditto.
18476 (*vec_concatv4si_0): Ditto.
18477 (*vec_concatv2di_0): Ditto.
18478
18479 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18480
18481 PR target/89021
18482 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18483
18484 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18485
18486 PR target/89021
18487 * config/i386/sse.md (ssse3_palignrdi): Changed to
18488 define_insn_and_split to support SSE emulation.
18489
18490 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18491
18492 PR target/89021
18493 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18494
18495 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18496
18497 PR target/89021
18498 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18499 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18500 SSE emulation.
18501
18502 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18503
18504 PR target/89021
18505 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18506 or TARGET_MMX_WITH_SSE.
18507 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18508
18509 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18510
18511 PR target/89021
18512 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18513
18514 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18515
18516 PR target/89021
18517 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18518 Changed to define_insn_and_split to support SSE emulation.
18519
18520 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18521
18522 PR target/89021
18523 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18524 Changed to define_insn_and_split to support SSE emulation.
18525
18526 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18527
18528 PR target/89021
18529 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18530 (*mmx_<emms>): This.
18531 (mmx_<emms>): New expander.
18532
18533 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18534
18535 PR target/89021
18536 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18537 support.
18538 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18539
18540 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18541
18542 PR target/89021
18543 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18544
18545 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18546
18547 PR target/89021
18548 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18549
18550 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18551
18552 PR target/89021
18553 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18554 TARGET_MMX_WITH_SSE.
18555 (*mmx_uavgv4hi3): Add SSE emulation.
18556
18557 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18558
18559 PR target/89021
18560 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18561 and TARGET_MMX_WITH_SSE.
18562 (*mmx_uavgv8qi3): Add SSE emulation.
18563
18564 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18565
18566 PR target/89021
18567 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18568 maskmovdqu for __MMX_WITH_SSE__.
18569
18570 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18571
18572 PR target/89021
18573 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18574 TARGET_MMX and TARGET_MMX_WITH_SSE.
18575 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18576
18577 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18578
18579 PR target/89021
18580 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18581 define_insn_and_split to support SSE emulation.
18582
18583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18584
18585 PR target/89021
18586 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18587 and TARGET_MMX_WITH_SSE.
18588 (mmx_<code>v8qi3): Likewise.
18589 (smaxmin:<code>v4hi3): New.
18590 (umaxmin:<code>v8qi3): Likewise.
18591 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18592 (umaxmin:*mmx_<code>v8qi3): Likewise.
18593
18594 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18595
18596 PR target/89021
18597 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18598 TARGET_MMX_WITH_SSE.
18599 (*mmx_pinsrw): Add SSE emulation.
18600
18601 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18602
18603 PR target/89021
18604 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18605
18606 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18607
18608 PR target/89021
18609 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18610 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18611 SSE emulation.
18612
18613 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18614
18615 PR target/89021
18616 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18617 (sse_cvttps2pi): Likewise.
18618
18619 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18620
18621 PR target/89021
18622 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18623 TARGET_MMX_WITH_SSE.
18624 (mmx_pshufw_1): Add SSE emulation.
18625 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18626 TARGET_MMX_WITH_SSE to support SSE emulation.
18627
18628 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18629
18630 PR target/89021
18631 * config/i386/constraints.md (Yw): New constraint.
18632 * config/i386/mmx.md (*vec_dupv2si): Changed to
18633 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18634 support SSE emulation.
18635
18636 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18637
18638 PR target/89021
18639 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18640 TARGET_MMX_WITH_SSE.
18641 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18642 support.
18643 (mmx_gt<mode>3): Likewise.
18644
18645 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18646
18647 PR target/89021
18648 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18649 TARGET_MMX_WITH_SSE. Add SSE support.
18650
18651 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18652
18653 PR target/89021
18654 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18655 TARGET_MMX_WITH_SSE.
18656 (any_logic:<code><mode>3): New.
18657 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18658 Add SSE support.
18659
18660 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18661
18662 PR target/89021
18663 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18664 TARGET_MMX_WITH_SSE. Add SSE emulation.
18665 (mmx_<shift_insn><mode>3): Likewise.
18666 (ashr<mode>3): New.
18667 (<shift_insn><mode>3): Likewise.
18668
18669 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18670
18671 PR target/89021
18672 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18673 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18674
18675 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18676
18677 PR target/89021
18678 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18679 TARGET_MMX_WITH_SSE.
18680 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18681 SSE support.
18682
18683 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18684
18685 PR target/89021
18686 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18687 TARGET_MMX_WITH_SSE.
18688 (mulv4hi3): New.
18689 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18690 support.
18691
18692 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18693
18694 PR target/89021
18695 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18696 (plusminus:mmx_<plusminus_insn><mode>3): Check
18697 TARGET_MMX_WITH_SSE.
18698 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18699 (<plusminus_insn><mode>3): New.
18700 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18701 (*mmx_<plusminus_insn><mode>3): Likewise.
18702
18703 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18704
18705 PR target/89021
18706 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18707 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18708 prototype.
18709 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18710 define_insn_and_split to support SSE emulation.
18711 (mmx_punpcklbw): Likewise.
18712 (mmx_punpckhwd): Likewise.
18713 (mmx_punpcklwd): Likewise.
18714 (mmx_punpckhdq): Likewise.
18715 (mmx_punpckldq): Likewise.
18716
18717 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18718 Uros Bizjak <ubizjak@gmail.com>
18719
18720 PR target/89021
18721 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18722 New function.
18723 (ix86_split_mmx_pack): Likewise.
18724 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18725 New prototype.
18726 (ix86_split_mmx_pack): Likewise.
18727 * config/i386/i386.md (mmx_isa): New.
18728 (enabled): Also check mmx_isa.
18729 * config/i386/mmx.md (any_s_truncate): New code iterator.
18730 (s_trunsuffix): New code attr.
18731 (mmx_packsswb): Removed.
18732 (mmx_packssdw): Likewise.
18733 (mmx_packuswb): Likewise.
18734 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18735 MMX packsswb/packuswb with SSE2.
18736 (mmx_packssdw): Likewise.
18737 * config/i386/predicates.md (register_mmxmem_operand): New.
18738
18739 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18740
18741 PR target/89021
18742 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18743 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18744 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18745 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18746 (ix86_vector_mode_supported_p): Likewise.
18747 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18748
18749 2019-05-15 Martin Liska <mliska@suse.cz>
18750
18751 PR middle-end/90478
18752 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18753 Check for overflow.
18754
18755 2019-05-15 Richard Biener <rguenther@suse.de>
18756
18757 * tree-into-ssa.c (pass_build_ssa::execute): Run
18758 update_address_taken before going into SSA.
18759
18760 2019-05-15 Richard Biener <rguenther@suse.de>
18761
18762 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18763 as __BIT_FIELD_REF with type with -gimple.
18764
18765 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18766
18767 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18768 semantically equivalent branches (left over after prior refactorings).
18769
18770 2019-05-15 Richard Biener <rguenther@suse.de>
18771
18772 PR tree-optimization/88828
18773 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18774 bogus check.
18775
18776 2019-05-14 Richard Biener <rguenther@suse.de>
18777
18778 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18779 as __VIEW_CONVERT with -gimple.
18780
18781 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18782
18783 PR target/82920
18784 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18785 Darwin.
18786
18787 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18788
18789 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18790 define_split to become a define_insn_and_split.
18791
18792 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18793
18794 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18795 arguments.
18796 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18797 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18798 (sibcall_epilogue): Adjust.
18799 (epilogue): Adjust.
18800
18801 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18802
18803 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18804 to unsupported ones.
18805 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18806 * config.host: Likewise.
18807 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18808 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18809 __svr4__]: Remove "brand" fallback.
18810 [!KSTAT_DATA_STRING]: Remove.
18811 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18812 to *-*-solaris2*.
18813 (comdat_group): Likewise.
18814 (set_have_as_tls): Likewise.
18815 (gcc_cv_target_dl_iterate_phdr): Likewise.
18816 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18817 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18818 * configure: Regenerate.
18819 * doc/install.texi: Simplify Solaris target triplets.
18820 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18821 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18822 Remove Solaris 10 references.
18823 Remove obsolete Solaris bug reference.
18824 (Specific, sparc-sun-solaris2.10): Remove.
18825
18826 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18827
18828 * config/i386/i386.md (any_div): New code iterator.
18829 (paired_mod): New code attribute.
18830 (sgnprefix): Handle DIV and UDIV RTXes.
18831 (u): Ditto.
18832 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18833 and udivmod<mode>4 patterns using any_div code iterator.
18834 (divmod splitters): Macroize splitters using any_div code iterator.
18835 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18836 (*udivmodsi4_pow2_zext_2): Ditto.
18837 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18838 and *udivmod<mode>4_noext patterns using any_div code iterator.
18839 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18840 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18841 patterns using any_div code iterator.
18842 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18843 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18844 patterns using any_div code iterator.
18845 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18846 udivmodhiqi3 patterns using any_extend code iterator.
18847
18848 2019-05-14 Richard Biener <rguenther@suse.de>
18849 H.J. Lu <hongjiu.lu@intel.com>
18850
18851 PR tree-optimization/88828
18852 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18853 permuting in a single non-constant element not extracted
18854 from a vector.
18855
18856 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18857
18858 * internal-fn.def (SIGNBIT): New.
18859 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18860 defined.
18861 (signbitv4sf2): Likewise.
18862
18863 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18864
18865 PR target/90357
18866 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18867 next insn when the SRC reg is dead.
18868
18869 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18870
18871 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18872 (alloc_cand_and_find_basis): Ditto.
18873 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18874 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18875 (create_add_imm_cand, slsr_process_cast): Ditto.
18876 (slsr_process_copy, replace_mult_candidate): Ditto.
18877 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18878 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18879 (pass_strength_reduction::execute): Init the first NULL element.
18880
18881 2019-05-13 Nathan Sidwell <nathan@acm.org>
18882
18883 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18884 (run_attempt): Reformat line break.
18885
18886 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18887
18888 PR target/90418
18889 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18890 data registers in sibcall epilogues.
18891 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18892
18893 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18894
18895 PR target/89221
18896 * configure.ac (--enable-frame-pointer):
18897 Disable by default for cygwin and mingw.
18898 * configure: Regenerate.
18899
18900 2019-05-13 Nathan Sidwell <nathan@acm.org>
18901
18902 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18903 piece of code.
18904 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18905 (gen_member_die): Move abstract origin check earlier. Only VARs
18906 can be static_inline_p. Simplify splicing control flow.
18907
18908 2019-05-13 Richard Biener <rguenther@suse.de>
18909
18910 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18911 VIEW_CONVERT_EXPR.
18912 (vect_build_slp_tree_1): Likewise.
18913
18914 2019-05-13 Richard Biener <rguenther@suse.de>
18915
18916 PR tree-optimization/90402
18917 * tree-if-conv.c (tree_if_conversion): Value number only
18918 the loop body by making the latch an exit of the region
18919 as well.
18920 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18921 processing PHIs.
18922 (do_rpo_vn): Deal with multiple edges into the entry block
18923 that are not backedges inside the region by skipping PHIs
18924 of the entry block.
18925
18926 2019-05-13 Richard Biener <rguenther@suse.de>
18927
18928 PR tree-optimization/90316
18929 * tree-ssa-pre.c (insert_aux): Fold into ...
18930 (insert): ... this function. Use a RPO walk to reduce the
18931 number of required iterations.
18932
18933 2019-05-13 Martin Liska <mliska@suse.cz>
18934
18935 PR tree-optimization/90416
18936 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18937 string instead of passing the second part as va_arg argument.
18938
18939 2019-05-13 Martin Liska <mliska@suse.cz>
18940
18941 PR gcov-profile/90380
18942 * gcov.c (handle_cycle): Do not support zero cycle count,
18943 it should not be possible.
18944 (path_contains_zero_cycle_arc): New function.
18945 (circuit): Ignore zero cycle arc counts.
18946
18947 2019-05-13 Martin Liska <mliska@suse.cz>
18948
18949 PR gcov-profile/90380
18950 * gcov.c (enum loop_type): Remove the enum and
18951 the operator.
18952 (handle_cycle): Assert that we should not reach
18953 a negative count.
18954 (circuit): Use loop_found instead of a tri-state loop_type.
18955 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18956 happen.
18957
18958 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18959
18960 PR target/82920
18961 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18962 (ix86_output_indirect_branch_via_reg): Use output mechanism
18963 accounting for __USER_LABEL_PREFIX__.
18964 (ix86_output_indirect_branch_via_push): Likewise.
18965 (ix86_output_function_return): Likewise.
18966 (ix86_output_indirect_function_return): Likewise.
18967
18968 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18969
18970 * doc/md.texi: Document use of code attributes in rtx patterns.
18971 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18972 * read-rtl.c (find_code): Split out search loops into...
18973 (maybe_find_code): ...this new function.
18974 (check_code_iterator): Make the error message more informative.
18975 (check_code_attribute): New function.
18976 (rtx_reader::rtx_alloc_for_name): Likewise.
18977 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18978 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18979 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18980 <max_opp> directly as an rtx code instead of via a match_operator.
18981 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18982 (<su>abd<mode>_3): Update accordingly.
18983
18984 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18985
18986 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18987 is given, print the state of the EH "save world" computation for
18988 Darwin.
18989
18990 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18991
18992 PR c++/59813
18993 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18994 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18995
18996 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18997
18998 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18999 Use pinsrd for TARGET_SSE4_1.
19000 * config/i386/sse.md (movdi_to_sse): Ditto.
19001
19002 2019-05-10 Richard Biener <rguenther@suse.de>
19003
19004 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
19005 (do_rpo_vn): Initialize next_value_id.
19006
19007 2019-05-10 Martin Liska <mliska@suse.cz>
19008
19009 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19010 Fix plural form.
19011
19012 2019-05-10 Jakub Jelinek <jakub@redhat.com>
19013
19014 PR tree-optimization/90385
19015 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
19016 arguments of the exit phis.
19017
19018 PR c++/90383
19019 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
19020 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
19021 id->do_not_fold.
19022 (copy_tree_body_r): Likewise.
19023 (copy_fn): Set id.do_not_fold to true.
19024
19025 2019-05-10 Martin Liska <mliska@suse.cz>
19026
19027 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
19028 Reapply changes from r269790.
19029
19030 2019-05-10 Martin Liska <mliska@suse.cz>
19031
19032 PR middle-end/90340
19033 * doc/invoke.texi: New params.
19034 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
19035 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
19036 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19037 Use it.
19038 * tree-switch-conversion.h (struct jump_table_cluster):
19039 Likewise.
19040
19041 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
19042
19043 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
19044
19045 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
19046
19047 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
19048
19049 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
19050
19051 PR rtl-optimization/88879
19052 * sel-sched.c (sel_target_adjust_priority): Remove assert.
19053
19054 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
19055
19056 PR target/90405
19057 * config/arm/arm.c (callee_saved_reg_p): Move before
19058 thumb_find_work_register.
19059 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
19060 thumb_find_work_register. Only call df_get_live_out once.
19061 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
19062 (thumb_find_work_register): Use
19063 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19064 algorithms to locate a spare call clobbered reg.
19065
19066 2019-05-09 Martin Liska <mliska@suse.cz>
19067
19068 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19069 and MAX_EXPR in GIMPLE FE format.
19070
19071 2019-05-09 Martin Liska <mliska@suse.cz>
19072
19073 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19074 * gimple-pretty-print.c (dump_gimple_bb_header):
19075 Dump BB count.
19076 (pp_cfg_jump): Dump edge probability.
19077 * profile-count.c (profile_quality_as_string): Simplify
19078 with a static array.
19079 (parse_profile_quality): New function.
19080 (profile_count::dump): Simplify with a static array.
19081 (profile_count::from_gcov_type): Add new argument.
19082 * profile-count.h (parse_profile_quality): Likewise.
19083 * predict.h (set_hot_bb_threshold): New.
19084 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19085 New param.
19086 * predict.c (get_hot_bb_threshold): Set from the new param.
19087 (set_hot_bb_threshold): New.
19088
19089 2019-05-09 Richard Biener <rguenther@suse.de>
19090
19091 PR tree-optimization/90395
19092 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19093 rewrite vector stores that throw internally.
19094
19095 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19096
19097 * cif-code.def (CHKP): Remove.
19098
19099 PR target/89221
19100 * configure.ac (--enable-frame-pointer): Disable by default for
19101 GNU systems.
19102 * configure: Regenerate.
19103
19104 2019-05-09 Alan Modra <amodra@gmail.com>
19105
19106 PR target/89271
19107 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19108 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19109 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19110 cost for general <-> vsx when direct moves are available.
19111 Cost union classes at minimal cost for any reg in the class.
19112 Correct calculation for moves between vsx, float, and altivec.
19113 Don't return a low cost for moves between special regs. Don't
19114 use hard coded register numbers.
19115 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19116 (rs6000_ira_change_pseudo_allocno_class): New function.
19117 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19118 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19119 alternatives.
19120 (movsi_internal1): Don't disparage vector alternatives.
19121 (mov<mode>_internal): Likewise, excepting alternative that
19122 will be split.
19123 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19124 we <- b alternative.
19125
19126 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19127
19128 PR c++/59813
19129 PR tree-optimization/89060
19130 * tree-ssa-live.h (live_vars_map): New typedef.
19131 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19132 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19133 (struct compute_live_vars_data): New type.
19134 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19135 live_vars_at_stmt, destroy_live_vars): New functions.
19136 * tree-tailcall.c: Include tree-ssa-live.h.
19137 (live_vars, live_vars_vec): New global variables.
19138 (find_tail_calls): Perform variable life analysis before punting.
19139 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19140 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19141 member.
19142 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19143 Perform variable life analysis to select variables that really need
19144 clobbers added.
19145 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19146 instead set id->eh_landing_pad_dest and assert it is the same.
19147 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19148
19149 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19150 Richard Earnshaw <rearnsha@arm.com>
19151
19152 PR target/88167
19153 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19154 function.
19155 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19156 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19157 register if both the epilogue and prologue can use call-clobbered
19158 regs.
19159 (thumb1_unexpanded_epilogue): Use
19160 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19161 picking temporaries for restoring high regs to match that of the
19162 prologue where possible.
19163 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19164 the list of work registers. Detect if the return address is still live
19165 at the end of the prologue and avoid using it for a work register if so.
19166 If the return address is not live, add LR to the list of pushable regs
19167 after the first pass.
19168
19169 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19170
19171 PR tree-optimization/90078
19172 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19173 (INFTY): Increase the value for infinite cost.
19174 (struct comp_cost): Promote type of members to int64_t.
19175 (infinite_cost): Don't set complexity in initialization.
19176 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19177 overflows to infinite_cost.
19178 (adjust_setup_cost): Promote type of parameter and cost computation
19179 to int64_t.
19180 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19181 int64_t.
19182 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19183 cost computation to int64_t.
19184 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19185 int64_t's format specifier in dump.
19186
19187 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19188
19189 PR tree-optimization/90240
19190 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19191 with respect to scaling factor pre-computed for each basic block.
19192 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19193 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19194 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19195 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19196 live range for array of loop's basic blocks. Cleanup aux field of
19197 loop's basic blocks.
19198
19199 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19200
19201 PR tree-optimization/90356
19202 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19203
19204 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19205
19206 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19207 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19208 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19209 (ix86_handle_option): Handle -mavx512bf16.
19210 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19211 to extra_headers.
19212 * config/i386/avx512bf16vlintrin.h: New.
19213 * config/i386/avx512bf16intrin.h: New.
19214 * config/i386/cpuid.h (bit_AVX512BF16): New.
19215 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19216 * config/i386/i386-builtin-types.def: Add new types.
19217 * config/i386/i386-builtin.def: Add new builtins.
19218 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19219 __AVX512BF16__.
19220 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19221 (ix86_option_override_internal): Handle BF16.
19222 (ix86_valid_target_attribute_inner_p): Ditto.
19223 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19224 * config/i386/i386-builtin.c (enum processor_features): Add
19225 F_AVX512BF16.
19226 (static const _isa_names_table isa_names_table): Ditto.
19227 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19228 (PTA_AVX512BF16): Ditto.
19229 * config/i386/i386.opt: Add -mavx512bf16.
19230 * config/i386/immintrin.h: Include avx512bf16intrin.h
19231 and avx512bf16vlintrin.h.
19232 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19233 avx512f_cvtneps2bf16_<mode><mask_name>,
19234 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19235 * config/i386/subst.md (mask_half): Add new subst.
19236 * doc/invoke.texi: Document -mavx512bf16.
19237
19238 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19239
19240 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19241 Delete declaration.
19242 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19243 (rs6000_debug_legitimize_reload_address): Delete.
19244 (rs6000_legitimize_reload_address_ptr): Delete.
19245 (rs6000_option_override_internal): Adjust.
19246 (mem_operand_gpr): Adjust comment.
19247 (legitimate_lo_sum_address_p): Ditto.
19248 (rs6000_legitimize_reload_address): Delete.
19249 (rs6000_debug_legitimize_reload_address): Delete.
19250 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19251
19252 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19253
19254 PR target/89765
19255 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19256 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19257 to compute vector element selector for both constant and variable
19258 operands.
19259
19260 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19261
19262 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19263 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19264 ashrdi3_cvt using SWI48 mode iterator.
19265
19266 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19267
19268 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19269 (aarch64_<su>abd<mode>_3): Likewise.
19270 (*aarch64_<su>abd<mode>_3): New define_insn.
19271 (<sur>sad<vsi2qi>): New define_expand.
19272 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19273 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19274 (build_vect_cond_expr): Likewise.
19275
19276 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19277
19278 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19279 clobbers outside of accessible_reg_set.
19280 * config/i386/i386.c (ix86_conditional_register_usage):
19281 Disable register sets by clearing corresponding bits in
19282 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19283 call_used_regs and don't clear corresponding reg_names array members.
19284
19285 2019-05-07 Richard Biener <rguenther@suse.de>
19286
19287 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19288 not specified still compute a comp_vectype for invariant
19289 compares.
19290
19291 2019-05-07 Richard Biener <rguenther@suse.de>
19292
19293 PR tree-optimization/90316
19294 * tree-ssa-pre.c (translate_vuse_through_block): When
19295 same_valid is NULL do not bother to search for a virtual
19296 PHI continuation.
19297 (phi_translate_1): When operands changed we cannot keep
19298 the same value-number so do not bother to ask whether
19299 that's possible from translate_vuse_through_block.
19300
19301 2019-05-07 Martin Liska <mliska@suse.cz>
19302
19303 * bitmap.c (bitmap_register): Come up with
19304 alloc_descriptor_max_uid and assign it for
19305 a new bitmap.
19306 (register_overhead): Use get_descriptor as
19307 a descriptor.
19308 (release_overhead): New.
19309 (bitmap_elem_to_freelist): Call it.
19310 (bitmap_elt_clear_from): Likewise.
19311 (bitmap_obstack_free): Likewise.
19312 (bitmap_move): Sensitively release memory.
19313 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19314 (bitmap_initialize): Initialize alloc_descriptor to zero.
19315 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19316
19317 2019-05-07 Richard Biener <rguenther@suse.de>
19318
19319 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19320 we build a SLP node. Remove max_size and limiting.
19321 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19322
19323 2019-05-07 Richard Biener <rguenther@suse.de>
19324
19325 PR tree-optimization/90316
19326 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19327 limit by reference.
19328 (walk_non_aliased_vuses): Take walking limit argument.
19329 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19330 walking if it is reached instead of just counting.
19331 (get_continuation_for_phi): Likewise.
19332 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19333 limiting to the callback.
19334 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19335 (vn_reference_lookup_3): Likewise.
19336 (vn_reference_lookup_pieces): Likewise.
19337 (vn_reference_lookup): Likewise.
19338 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19339 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19340 (avail_exprs_stack::lookup_avail_expr): Likewise.
19341
19342 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19343
19344 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19345 for comparaible types in the second direction even if first one
19346 hits incomparable type.
19347
19348 2019-05-07 Richard Biener <rguenther@suse.de>
19349
19350 PR lto/90369
19351 * lto-wrapper.c (debug_objcopy): Use the original filename
19352 including archive offset for the filename used for -save-temps.
19353
19354 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19355
19356 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19357 detection.
19358
19359 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19360 Hongtao Liu <hongtao.liu@intel.com>
19361
19362 PR target/89750
19363 PR target/86444
19364 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19365 Modified, original implementation isn't correct.
19366
19367 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19368
19369 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19370 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19371 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19372 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19373 (FRAME_POINTER_REGNUM): Change numbering.
19374 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19375 (alt_reg_names): Adjust.
19376 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19377 fixed.
19378 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19379 (DWARF_FRAME_REGISTERS): Delete.
19380 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19381 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19382 Adjust.
19383 (REG_ALLOC_ORDER): Adjust.
19384 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19385 (REG_CLASS_CONTENTS): Adjust.
19386 (RETURN_ADDR_RTX): Change comment.
19387 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19388 instead of 67.
19389 (REGISTER_NAMES): Adjust.
19390 (ADDITIONAL_REGISTER_NAMES): Adjust.
19391 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19392
19393 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19394
19395 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19396 Delete.
19397 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19398 (DWARF_FRAME_REGISTERS): Adjust.
19399 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19400 Adjust.
19401 (REG_ALLOC_ORDER): Adjust.
19402 (enum reg_class): Delete SPR_REGS.
19403 (REG_CLASS_NAMES): Delete SPR_REGS.
19404 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19405 (REGISTER_NAMES): Adjust.
19406 (ADDITIONAL_REGISTER_NAMES): Adjust.
19407 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19408 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19409 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19410 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19411 (htm_spr_regno): Delete.
19412 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19413 argument.
19414 (rs6000_dbx_register_number): Adjust.
19415
19416 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19417
19418 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19419
19420 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19421
19422 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19423 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19424
19425 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19426
19427 PR tree-optimization/88709
19428 PR tree-optimization/90271
19429 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19430 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19431 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19432 variable.
19433 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19434 of the store merging group is larger than
19435 PARAM_STORE_MERGING_MAX_SIZE parameter.
19436 (split_group): Add bzero_first argument. If set, always emit first
19437 the first store which must be = {} of the whole area and then for the
19438 rest of the stores consider all zero bytes as paddings.
19439 (imm_store_chain_info::output_merged_store): Check if first store
19440 is = {} of the whole area and if yes, determine which setting of
19441 bzero_first for split_group gives smaller number of stores. Adjust
19442 split_group callers.
19443 (lhs_valid_for_store_merging_p): Allow decls.
19444 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19445 no elts.
19446 (pass_store_merging::process_store): Likewise.
19447
19448 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19449
19450 PR target/89424
19451 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19452 handling of V1TImode.
19453
19454 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19455
19456 PR target/89221
19457 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19458 and enable_frame_pointer ...
19459 * configure.ac: ... here. Update help strings for
19460 --enable-frame-pointer.
19461 * configure: Regenerate.
19462 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19463 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19464 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19465 (USE_X86_64_FRAME_POINTER): Ditto.
19466
19467 2019-05-06 Martin Liska <mliska@suse.cz>
19468
19469 * config.gcc: Append to target_gtfiles and fix indentation.
19470
19471 2019-05-06 Richard Biener <rguenther@suse.de>
19472
19473 PR tree-optimization/90358
19474 * tree-vect-stmts.c (get_group_load_store_type): Properly
19475 detect unused upper half of load.
19476 (vectorizable_load): Likewise.
19477
19478 2019-05-06 Richard Biener <rguenther@suse.de>
19479
19480 PR tree-optimization/88828
19481 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19482 (simplify_vector_constructor): ...here. Handle constants in
19483 the constructor.
19484
19485 2019-05-06 Richard Biener <rguenther@suse.de>
19486
19487 PR tree-optimization/90328
19488 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19489 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19490 is valid in the loop nest before using it.
19491 (initialize_data_dependence_relation): Adjust.
19492 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19493 loop as loop-nest to dr_may_alias_p.
19494
19495 2019-05-06 Richard Biener <rguenther@suse.de>
19496
19497 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19498
19499 2019-05-06 Richard Biener <rguenther@suse.de>
19500
19501 PR tree-optimization/90316
19502 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19503 compute target on demand.
19504 (get_continuation_for_phi): Remove code walking stmts to
19505 get to a target virtual operand which could end up being
19506 quadratic.
19507
19508 2019-05-06 Martin Liska <mliska@suse.cz>
19509
19510 PR sanitizer/90312
19511 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19512 when -mabi is selected to a non-default version.
19513
19514 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19515 Martin Liska <mliska@suse.cz>
19516
19517 * Makefile.in: Add lto-dump.texi.
19518 * cgraph.h: Add new functions get_visibility_string and
19519 get_symtab_type_string.
19520 * doc/gcc.texi: Include lto-dump section.
19521 * doc/lto-dump.texi: New file.
19522 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19523 (parse_dump_option): Factor out this function.
19524 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19525 (parse_dump_option): Export the function.
19526 * symtab.c (symtab_node::get_visibility_string): New function.
19527 (symtab_node::get_symtab_type_string): Likewise.
19528
19529 2019-05-06 Martin Liska <mliska@suse.cz>
19530
19531 * config/i386/i386-builtins.c: New file.
19532 * config/i386/i386-builtins.h: New file.
19533 * config/i386/i386-expand.c: New file.
19534 * config/i386/i386-expand.h: New file.
19535 * config/i386/i386-features.c: New file.
19536 * config/i386/i386-features.h: New file.
19537 * config/i386/i386-options.c: New file.
19538 * config/i386/i386-options.h: New file.
19539 * config.gcc: Add new files into extra_objs and
19540 target_gtfiles.
19541 * config/i386/i386.c: Split content of the file
19542 into newly introduced files.
19543 * config/i386/i386.h: Declare common variables
19544 and macros.
19545 * config/i386/t-i386: Define dependencies for new files.
19546
19547 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19548
19549 PR target/89400
19550 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19551 Restrict 'all' variant to 32-bit configurations.
19552 (unaligned_loadhiu): Likewise.
19553 (unaligned_storehi): Likewise.
19554 (unaligned_storesi): Likewise.
19555 (unaligned_loadhis): Disable when compiling for thumb1.
19556
19557 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19558
19559 PR tree-optimization/90269
19560 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19561 Ignore clobbers.
19562
19563 2019-05-03 Martin Liska <mliska@suse.cz>
19564
19565 * hash-map.h: Add is_empty function.
19566 * hash-set.h: Likewise.
19567 * hash-table.h: Likewise.
19568 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19569 elements () == 0 (and similar usages).
19570 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19571 * gimplify.c (gimplify_bind_expr): Likewise.
19572 (gimplify_switch_expr): Likewise.
19573 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19574 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19575 * postreload-gcse.c (dump_hash_table): Likewise.
19576 (gcse_after_reload_main): Likewise.
19577 * predict.c (combine_predictions_for_bb): Likewise.
19578 * tree-parloops.c (reduction_phi): Likewise.
19579 (separate_decls_in_region): Likewise.
19580 (transform_to_exit_first_loop): Likewise.
19581 (gen_parallel_loop): Likewise.
19582 (gather_scalar_reductions): Likewise.
19583 (try_create_reduction_list): Likewise.
19584 * var-tracking.c (dump_vars): Likewise.
19585 (emit_notes_for_changes): Likewise.
19586 (vt_emit_notes): Likewise.
19587
19588 2019-05-03 Richard Biener <rguenther@suse.de>
19589
19590 PR tree-optimization/90316
19591 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19592 before running VN.
19593
19594 2019-05-03 Richard Biener <rguenther@suse.de>
19595
19596 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19597 peeling for gaps by loading only lower halves of vectors
19598 if possible.
19599 (vectorizable_load): Likewise.
19600
19601 2019-05-03 Richard Biener <rguenther@suse.de>
19602
19603 PR middle-end/89518
19604 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19605
19606 2019-05-03 Richard Biener <rguenther@suse.de>
19607
19608 PR middle-end/87314
19609 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19610 Handle STRING_CST vs DECL or STRING_CST.
19611
19612 2019-05-03 Richard Biener <rguenther@suse.de>
19613
19614 PR tree-optimization/88963
19615 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19616 vector loads feeding only BIT_FIELD_REFs to component
19617 loads. Rewrite stores fed by CONSTRUCTORs to component
19618 stores.
19619
19620 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19621
19622 * opts.h (finish_options): Remove lang_mask argument.
19623 (print_help, help_option_argument): Declare.
19624 * opts.c (print_help): Remove forward declaration, no longer static.
19625 (finish_options): Remove lang_mask argument, don't call print_help
19626 here.
19627 * opts-global.c (decode_options): Adjust finish_option caller, call
19628 print_help here.
19629
19630 PR tree-optimization/90303
19631 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19632 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19633
19634 2019-05-03 Richard Biener <rguenther@suse.de>
19635
19636 PR tree-optimization/89698
19637 * gimple-fold.c (canonicalize_constructor_val): Early out
19638 for constants, handle unfolded INTEGER_CSTs as they appear in
19639 C++ virtual table ctors.
19640
19641 2019-05-03 Richard Biener <rguenther@suse.de>
19642
19643 * passes.c (execute_function_todo): Remove dead code.
19644
19645 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19646
19647 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19648 the internal register number, for any "real" register.
19649
19650 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19651
19652 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19653 correct numbers for TFHAR, TFIAR, TEXASR.
19654
19655 2019-05-02 Richard Biener <rguenther@suse.de>
19656
19657 PR tree-optimization/89653
19658 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19659 update-address-taken before the pass.
19660 * passes.def (pass_tree_loop_init): Put comment before it.
19661
19662 2019-05-02 Richard Biener <rguenther@suse.de>
19663
19664 PR tree-optimization/89509
19665 * tree-ssa-structalias.c (compute_dependence_clique): Look
19666 at the first subvar when determining whether it is restrict.
19667
19668 2019-05-02 Richard Biener <rguenther@suse.de>
19669
19670 PR tree-optimization/90273
19671 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19672 useless debug stmts.
19673
19674 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19675
19676 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19677 ACLE branch.
19678 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19679 SVE ACLE branch.
19680 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19681 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19682 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19683 (vectorizable_reduction): Use the functions above to vectorize in a
19684 fully masked loop codes that don't have a conditional internal
19685 function.
19686
19687 2019-05-02 Martin Liska <mliska@suse.cz>
19688
19689 * cgraphclones.c: Call valid_attribute_p with 1 for
19690 target_clone.
19691 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19692 it's for target attribute.
19693 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19694 Add new boolean argument.
19695 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19696 Likewise.
19697 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19698 to ix86_valid_target_attribute_inner_p.
19699 (ix86_valid_target_attribute_p): Pass flags argument to
19700 ix86_valid_target_attribute_inner_p.
19701 (get_builtin_code_for_version): Use 0 as it's target attribute.
19702
19703 2019-05-02 Martin Liska <mliska@suse.cz>
19704
19705 * gcc.c (process_command): Add dummy file only
19706 if n_infiles == 0.
19707 * opts-global.c (decode_options): Pass lang_mask.
19708 * opts.c (print_help): New function.
19709 (finish_options): Print --help if help_option_argument
19710 is set.
19711 (common_handle_option): Factor out content of OPT__help_
19712 into print_help.
19713 * opts.h (finish_options): Add new argument.
19714
19715 2019-05-02 Martin Liska <mliska@suse.cz>
19716
19717 PR target/88809
19718 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19719 With -minline-all-stringops use inline expansion using 4B loop.
19720 * doc/invoke.texi: Document the change of
19721 -minline-all-stringops.
19722
19723 2019-05-01 Jeff Law <law@redhat.com>
19724
19725 PR tree-optimization/88797
19726 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19727 PHI feeds a conditional on the RHS of an assignment.
19728
19729 2019-04-30 Andrew Waterman <andrew@sifive.com>
19730 Jim Wilson <jimw@sifive.com>
19731
19732 * config/riscv/constraints.md (L): New.
19733 * config/riscv/predicates.md (lui_operand): New.
19734 (sfb_alu_operand): New.
19735 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19736 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19737 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19738 * config/riscv/risc.md (type): Add sfb_alu.
19739 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19740 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19741 (branch_zero<mode>): Delete.
19742 (mov<mode>cc): New.
19743 (mov<GPR:mode><X:mode>cc): Likewise.
19744 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19745
19746 2019-04-30 Nathan Sidwell <nathan@acm.org>
19747
19748 * tree.h (MARK_TS_EXP): New.
19749
19750 2019-04-30 Martin Liska <mliska@suse.cz>
19751
19752 * opts.c (enable_warning_as_error): Provide hints
19753 for unknown options.
19754
19755 2019-04-30 Martin Liska <mliska@suse.cz>
19756
19757 PR debug/90288
19758 * doc/invoke.texi: Add missing dash for gas-locview-support
19759 and gno-as-locview-support.
19760
19761 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19762
19763 PR target/89093
19764 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19765 whitespace at the start of target attribute string.
19766
19767 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19768
19769 PR target/86538
19770 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19771 Define __ARM_FEATURE_ATOMICS.
19772
19773 2019-04-30 Martin Liska <mliska@suse.cz>
19774
19775 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19776 into built_in_function enum. Remove code for endp == 2 and
19777 use BUILT_IN_* constants.
19778 (gimple_fold_builtin): Call the function with fcode.
19779
19780 2019-04-30 Martin Liska <mliska@suse.cz>
19781
19782 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19783 DECL_FUNCTION_CODE into ix86_builtins enum before
19784 the switch statement.
19785
19786 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19787
19788 PR tree-optimization/89475
19789 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19790 calls.
19791
19792 2019-04-30 Martin Liska <mliska@suse.cz>
19793
19794 PR translation/90274
19795 * opts.c (print_filtered_help): Wrap string in _(...).
19796
19797 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19798
19799 PR tree-optimization/90240
19800 Revert:
19801 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19802
19803 PR tree-optimization/90078
19804 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19805 checks for infinite_cost overflow.
19806
19807 2019-04-29 Jeff Law <law@redhat.com>
19808
19809 * passes.def: Move -Wrestrict pass after copy propagation.
19810
19811 2019-04-29 Maya Rashish <coypu@sdf.org>
19812
19813 * config.gcc (default_gnu_indirect_function): Default to yes
19814 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19815 sparc*-*-netbsd*, x86_64-*-netbsd*.
19816
19817 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19818
19819 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19820 where cond2 is NE_EXPR.
19821 (is_value_included_in): Update comment.
19822
19823 2019-04-29 Richard Biener <rguenther@suse.de>
19824
19825 PR tree-optimization/90278
19826 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19827 EH on comparison simplification.
19828
19829 2019-04-29 Jason Merrill <jason@redhat.com>
19830
19831 PR c++/82081 - tail call optimization breaks noexcept
19832 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19833 nothrow function to a might-throw function into a tail call.
19834
19835 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19836
19837 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19838 (DDR_INNER_LOOP): Likewise.
19839 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19840 (initialize_data_dependence_relation): Likewise.
19841 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19842
19843 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19844
19845 PR rtl-optimization/90257
19846 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19847 return value.
19848
19849 Revert the revert:
19850 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19851
19852 PR target/90178
19853 Revert:
19854 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19855
19856 Revert the revert:
19857 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19858
19859 Revert:
19860 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19861
19862 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19863
19864 2019-04-29 Richard Biener <rguenther@suse.de>
19865
19866 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19867 rhs issue a reset.
19868
19869 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19870
19871 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19872 varasm.h, and netbsd-protos.h.
19873
19874 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19875
19876 PR target/89261
19877 * config/i386/i386-protos.h (ix86_data_alignment): Change
19878 the second argument type to unsigned int.
19879 * config/i386/i386.c (ix86_data_alignment): Change "align"
19880 argument type to unsigned int.
19881
19882 2019-04-27 Martin Liska <mliska@suse.cz>
19883
19884 PR middle-end/90258
19885 * opt-suggestions.c (option_proposer::build_option_suggestions):
19886 When get_valid_option_values returns empty values, add the
19887 misspelling candidate.
19888
19889 2019-04-26 Jim Wilson <jimw@sifive.com>
19890
19891 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19892 parameter.
19893 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19894 Pass orig_mode to riscv_build_integer.
19895 (riscv_split_integer): Pass mode to riscv_move_integer.
19896 (riscv_legitimize_const_move): Likewise.
19897 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19898 promoted_mode. Replace force_reg call with code to load constant into
19899 promoted reg and then subreg it for the store.
19900 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19901 riscv_move_integer.
19902
19903 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19904
19905 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19906 corrupt codes.
19907
19908 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19909
19910 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19911 commentary about the encoding of precision.
19912
19913 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19914
19915 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19916 * config/i386/t-freebsd64: New file.
19917 * config.gcc: Add the t-freebsd64 for multilib support.
19918
19919 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19920
19921 * doc/extend.texi (vector_size): Add missing comma after @xref.
19922
19923 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19924
19925 * BASE-VER: Set to 10.0.0.
19926
19927 2019-04-25 Richard Biener <rguenther@suse.de>
19928
19929 PR middle-end/89765
19930 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19931 VIEW_CONVERT_EXPR into one operating on an rvalue.
19932
19933 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19934
19935 PR target/89929
19936 * config/i386/i386.c (feature_priority): Moved to file scope.
19937 (processor_features): Likewise.
19938 (processor_model): Likewise.
19939 (_arch_names_table): Likewise.
19940 (arch_names_table): Likewise.
19941 (_feature_list): Removed.
19942 (feature_list): Likewise.
19943 (_isa_names_table): Moved to file scope. Add priority.
19944 (isa_names_table): Likewise.
19945 (get_builtin_code_for_version): Replace feature_list with
19946 isa_names_table. Update error message for P_ZERO priority.
19947
19948 2019-04-25 Richard Biener <rguenther@suse.de>
19949
19950 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19951 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19952
19953 2019-04-24 Jeff Law <law@redhat.com>
19954
19955 PR tree-optimization/90037
19956 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19957 * passes.def: Replace all instance of phi-only cprop with the
19958 lattice propagator. Move propagation pass from after erroneous
19959 path isolation to before erroneous path isolation.
19960 * tree-ssa-phionlycprop.c: Remove.
19961
19962 2019-04-24 Richard Biener <rguenther@suse.de>
19963
19964 PR middle-end/90213
19965 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19966 by size and BITS_PER_UNIT on poly-wide-ints.
19967
19968 2019-04-25 Richard Biener <rguenther@suse.de>
19969
19970 PR middle-end/90194
19971 * match.pd: Add pattern to simplify view-conversion of an
19972 empty constructor.
19973
19974 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19975
19976 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19977 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19978 for Go on 32 bit AIX.
19979 * config/rs6000/aix72.h: Likewise.
19980
19981 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19982
19983 PR target/90193
19984 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19985 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19986
19987 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19988
19989 PR target/89952
19990 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19991 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19992 for restored hard frame pointer.
19993 (s390_sched_dependencies_evaluation): Implement new target hook.
19994 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19995
19996 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19997
19998 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19999 * config/arc/arc.c (arc_init): Cleanup warning message.
20000 (arc_override_options): Likewise.
20001
20002 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20003
20004 PR target/90187
20005 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
20006 a register if both if_true and if_false are MEMs.
20007
20008 PR tree-optimization/90208
20009 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
20010 after labels of new_bb, not before them.
20011
20012 PR tree-optimization/90211
20013 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
20014 which are not SSA_NAMEs.
20015
20016 2018-04-23 Sudakshina Das <sudi.das@arm.com>
20017
20018 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
20019 AArch64.
20020 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
20021
20022 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20023
20024 PR rtl-optimization/87979
20025 * modulo-sched.c (sms_schedule): Start ii value "mii" should
20026 not equal zero.
20027
20028 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20029
20030 PR rtl-optimization/84032
20031 * modulo-sched.c (ps_insn_find_column): Change condition so that
20032 branch will always be the last insn in a row inside partial
20033 schedule.
20034
20035 2019-04-23 Richard Biener <rguenther@suse.de>
20036
20037 PR debug/90131
20038 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
20039 dest_single_pred_p argument.
20040 (remove_forwarder_block): Adjust.
20041 (remove_forwarder_block_with_phi): Likewise.
20042
20043 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20044 Bernd Edlinger <bernd.edlinger@hotmail.de>
20045 Jakub Jelinek <jakub@redhat.com>
20046
20047 PR target/89093
20048 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
20049 if used with general-regs-only.
20050 (arm_conditional_register_usage): Don't add non-general regs if
20051 general-regs-only.
20052 (arm_valid_target_attribute_rec): Handle general-regs-only.
20053 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
20054 general-regs-only.
20055 (TARGET_HARD_FLOAT_SUB): Define.
20056 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
20057 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
20058 (TARGET_REALLY_IWMMXT2): Likewise.
20059 * config/arm/arm.opt: Add -mgeneral-regs-only.
20060 * doc/extend.texi: Document ARM general-regs-only target.
20061 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
20062
20063 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20064
20065 PR tree-optimization/90078
20066 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20067 checks for infinite_cost overflow.
20068
20069 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20070
20071 PR tree-optimization/90021
20072 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20073 and check univariate against it.
20074 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20075 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20076
20077 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20078
20079 PR target/90178
20080 Revert:
20081 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20082
20083 Revert the revert:
20084 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20085
20086 Revert:
20087 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20088
20089 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20090
20091 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20092
20093 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20094 names using operand format, rather than hard-wired.
20095 (speculation_barrier): Likewise.
20096
20097 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20098
20099 PR tree-optimization/88055
20100 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20101 (gen_one_condition): Use it if !HONOR_NANS.
20102
20103 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20104
20105 PR middle-end/90139
20106 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20107 assign_temp instead of gen_reg_rtx.
20108
20109 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20110
20111 PR translation/90118
20112 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20113 Add missing space before %<.
20114
20115 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20116
20117 PR rtl-optimization/87871
20118 * ira-lives.c (make_object_dead): Don't add conflicts to
20119 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20120
20121 2019-04-18 Martin Sebor <msebor@redhat.com>
20122
20123 PR middle-end/89797
20124 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20125 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20126 assuming type size fits in SHWI.
20127
20128 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20129
20130 PR ipa/85051
20131 * ipa-inline.c (flatten_function): New parameter UPDATE.
20132 (ipa_inline, early_inliner): Use it.
20133
20134 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20135
20136 * fold-const.c (int_const_binop): Return early on failure.
20137
20138 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20139
20140 PR middle-end/85164
20141 * combine.c (force_int_to_mode): Cast the argument rather than
20142 the result of known_alignment.
20143 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20144
20145 2019-04-18 Richard Biener <rguenther@suse.de>
20146
20147 PR debug/90131
20148 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20149 out from ...
20150 (remove_forwarder_block): ... here.
20151 (remove_forwarder_block_with_phi): Also move debug stmts here.
20152
20153 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20154
20155 PR translation/79183
20156 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20157 inform where appropriate.
20158
20159 2019-04-18 Richard Biener <rguenther@suse.de>
20160
20161 * tree.c (get_qualified_type): Put found type variants at the
20162 head of the variant list.
20163
20164 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20165
20166 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20167
20168 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20169
20170 PR target/90125
20171 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20172 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20173 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20174 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20175 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20176
20177 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20178
20179 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20180 even for allocno's with no conflicts.
20181 (print_conflicts): Print an extra newline.
20182
20183 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20184
20185 * auto-inc-dec.c (attempt_change): Set the alignment of the
20186 temporary memory to that of the original.
20187
20188 2019-04-17 Joao Moreira <jmoreira@suse.de>
20189
20190 * targhooks.c (default_print_patchable_function_entry): Emit
20191 __patchable_function_entries section with writable flags to allow
20192 relocation resolution.
20193
20194 2019-04-17 Jonny Grant <jg@jguk.org>
20195
20196 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20197
20198 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20199
20200 PR middle-end/90095
20201 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20202 on lowpart SUBREGs.
20203
20204 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20205
20206 * config/arc/arc.c (arc_init): Format diagnostic string.
20207 (arc_override_options): Likewise.
20208 (check_if_valid_regno_const): Likewise.
20209 (arc_reorg): Likewise.
20210
20211 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20212
20213 PR target/17108
20214 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20215 name.
20216 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20217 name.
20218 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20219 (*movdi_update1): Use Pmode.
20220 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20221 (movdi_<mode>_update_stack): Rename to ...
20222 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20223 use Pmode.
20224 (*movsi_update1): Use Pmode.
20225 (*movsi_update2): Use Pmode.
20226 (movsi_update): Rename to ...
20227 (movsi_<mode>_update): ... this. Use Pmode.
20228 (movsi_update_stack): Fix condition.
20229 (*movhi_update1): Use Pmode. Fix argument to
20230 avoiding_indexed_address_p.
20231 (*movhi_update2): Ditto.
20232 (*movhi_update3): Ditto.
20233 (*movhi_update4): Ditto.
20234 (*movqi_update1): Ditto.
20235 (*movqi_update2): Ditto.
20236 (*movqi_update3): Ditto.
20237 (*movsf_update1, *movdf_update1): Merge, rename to...
20238 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20239 avoiding_indexed_address_p. Add "size" attribute.
20240 (*movsf_update2, *movdf_update2): Merge, rename to...
20241 (*mov<mode>_update2): This. Ditto.
20242 (*movsf_update3): Use Pmode. Fix argument to
20243 avoiding_indexed_address_p.
20244 (*movsf_update4): Ditto.
20245 (allocate_stack): Simplify condition. Adjust pattern names.
20246
20247 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20248
20249 PR target/89093
20250 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20251 whitespace at the start of target attribute string.
20252
20253 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20254
20255 PR target/84369
20256 * config/rs6000/power9.md: Add store forwarding bypass.
20257
20258 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20259
20260 PR debug/89528
20261 * valtrack.c (dead_debug_insert_temp): Reset debug references
20262 to the return value of a call being removed.
20263
20264 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20265
20266 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20267 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20268 implement target hook.
20269 (arc_memory_move_cost): New function.
20270 (TARGET_REGISTER_MOVE_COST): Define.
20271 (TARGET_MEMORY_MOVE_COST): Likewise.
20272 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20273 (MEMORY_MOVE_COST): Likewise.
20274
20275 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20276
20277 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20278 (sibcall_value_insn): Likewise.
20279 * config/arc/constraints.md (Rs5): Remove.
20280
20281 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20282
20283 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20284 for last two fake registers.
20285 (arc_conditional_register_usage): Make sure fake frame and arg
20286 pointer regs are in general regs class.
20287 (FRAME_POINTER_MASK): Remove.
20288 (RETURN_ADDR_MASK): Remove.
20289 (arc_must_save_register): Use hard frame regnum.
20290 (frame_restore_reg): Use hard_frame_pointer_rtx.
20291 (arc_save_callee_saves): Likewise.
20292 (arc_restore_callee_saves): Likewise.
20293 (arc_save_callee_enter): Likewise.
20294 (arc_restore_callee_leave): Likewise.
20295 (arc_save_callee_milli): Likewise.
20296 (arc_eh_return_address_location): Likewise.
20297 (arc_check_multi): Use hard frame regnum.
20298 (arc_can_eliminate): Likewise.
20299 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20300 for register allocator.
20301 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20302 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20303 (FRAME_POINTER_REGNUM): Change it to a fake register.
20304 (HARD_FRAME_POINTER_REGNUM): Defined.
20305 (ARG_POINTER_REGNUM): Change it to a new fake register.
20306 (ELIMINABLE_REGS): Update.
20307 (REGISTER_NAMES): Update names.
20308 * config/arc/arc.md (LP_START): Remove.
20309 (LP_END): Likewise.
20310 (shift_si3_loop): Update pattern.
20311
20312 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20313
20314 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20315 to avoid delay slot scheduling.
20316 (arc_must_save_register): Don't save SP.
20317 * config/arc/arc.md (stack_tie): Remove.
20318 (UNSPEC_ARC_STKTIE): Likewise.
20319
20320 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20321 Shiva Chen <shiva0217@gmail.com>
20322
20323 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20324 code gen with large shift amount.
20325
20326 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20327
20328 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20329 subreg.
20330
20331 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20332
20333 PR target/90096
20334 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20335 print -m64/-mx32/-m32 if it is true.
20336 (ix86_debug_options, ix86_function_specific_print): Pass true as
20337 ADD_ABI_P to ix86_target_string.
20338 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20339 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20340 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20341
20342 PR rtl-optimization/90082
20343 * dce.c (can_delete_call): New function.
20344 (deletable_insn_p, mark_insn): Use it.
20345
20346 PR tree-optimization/90090
20347 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20348 throw internally.
20349 (is_division_by_square): Likewise. Formatting fix.
20350
20351 2019-04-16 Richard Biener <rguenther@suse.de>
20352
20353 PR tree-optimization/56049
20354 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20355 equality check if alias-set zero will prevail.
20356
20357 2019-04-15 Jeff Law <law@redhat.com>
20358
20359 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20360 size and alignment as unsigned.
20361
20362 2019-04-15 Richard Biener <rguenther@suse.de>
20363
20364 PR debug/90074
20365 * tree-loop-distribution.c (destroy_loop): Preserve correct
20366 debug info.
20367
20368 2019-04-15 Richard Biener <rguenther@suse.de>
20369
20370 PR tree-optimization/90071
20371 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20372 abnormal operands from def stmts.
20373
20374 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20375
20376 PR rtl-optimization/89794
20377 * combine.c (count_auto_inc): New function.
20378 (try_combine): Count how many auto_inc expressions there were in the
20379 original instructions. Ensure we have the same number in the new
20380 instructions. Remove the code that tried to ensure auto_inc side
20381 effects on i1 and i0 are not lost.
20382
20383 2019-04-15 Richard Biener <rguenther@suse.de>
20384
20385 PR ipa/88936
20386 * tree.h (auto_var_p): Declare.
20387 * tree.c (auto_var_p): New function, split out from ...
20388 (auto_var_in_fn_p): ... here.
20389 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20390 member.
20391 (new_var_info): Initialize it.
20392 (set_uids_in_ptset): Also set the shadow variable uid if required.
20393 (ipa_pta_execute): Postprocess points-to solutions assigning
20394 shadow variable uids for locals that may reach their containing
20395 function recursively.
20396 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20397 assert but instead check whether the points-to solution is
20398 a singleton.
20399
20400 2019-04-15 Martin Jambor <mjambor@suse.cz>
20401
20402 PR ipa/pr89693
20403 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20404 the thunk chain.
20405
20406 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20407
20408 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20409
20410 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20411 Kito Cheng <kito.cheng@gmail.com>
20412 Shiva Chen <shiva0217@gmail.com>
20413
20414 * config/nds32/nds32-md-auxiliary.c
20415 (nds32_legitimize_pic_address): Use new PIC pattern.
20416 (nds32_legitimize_tls_address): Use new TLS pattern.
20417 (nds32_output_symrel): New.
20418 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20419 (nds32_alloc_relax_group_id): Ditto.
20420 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20421 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20422 relax_group_id.
20423 (nds32_group_tls_insn): Ditto.
20424 (nds32_group_float_insns): Ditto.
20425 * config/nds32/nds32.md (tls_le): New.
20426 (sym_got): Ditto.
20427
20428 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20429
20430 * configure: Add nds32 target for dwarf2 debug_line checking.
20431 * configure.ac: Regenerated.
20432
20433 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20434
20435 PR lto/89358
20436 * ipa-devirt.c (skip_in_fields_list_p): New.
20437 (odr_types_equivalent_p): Use it.
20438
20439 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20440
20441 PR target/89093
20442 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20443 instead of strncmp when checking for thumb and arm. Formatting fixes.
20444
20445 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20446
20447 * doc/install.texi: Document --with-target-system-zlib.
20448
20449 2019-04-12 Martin Sebor <msebor@redhat.com>
20450
20451 PR c/88383
20452 PR c/89288
20453 PR c/89798
20454 PR c/89797
20455 * targhooks.c (default_vector_alignment): Avoid assuming
20456 argument fits in SHWI.
20457 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20458 a shift expression.
20459 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20460
20461 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20462
20463 PR rtl-optimization/89965
20464 * dce.c: Include rtl-iter.h.
20465 (struct check_argument_load_data): New type.
20466 (check_argument_load): New function.
20467 (find_call_stack_args): Check for loads from stack slots still tracked
20468 in sp_bytes and punt if any is found.
20469
20470 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20471
20472 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20473
20474 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20475 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20476
20477 2019-04-12 Martin Liska <mliska@suse.cz>
20478
20479 PR middle-end/89970
20480 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20481 in error message.
20482 (separate_attrs): Handle multiple 'default's.
20483 (expand_target_clones): Rework error handling code.
20484
20485 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20486
20487 PR target/87532
20488 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20489 mode of vector rather than mode of destination for move instruction.
20490 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20491 Use QI inner mode with V16QI vector mode.
20492
20493 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20494
20495 PR target/52726
20496 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20497 "invalid %%t operand" in output_operand_lossage message.
20498
20499 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20500
20501 * config/s390/predicates.md (permute_pattern_operand): New
20502 predicate.
20503 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20504 operand for the permute pattern.
20505 ("*vec_perm<mode>"): New insn definition.
20506 ("bswap<mode>"): Generate the permute pattern operand in the
20507 expander and perform the operand reloads for pre arch13 level
20508 already.
20509 ("*bswap<mode>_emu"): Rename to ...
20510 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20511 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20512 Add the USE operand for the permute pattern.
20513 ("*vec_set_bswap_vec<mode>"): Likewise.
20514
20515 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20516
20517 PR c/89946
20518 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20519 and gcc_unreachable if it fails, just call tree_to_uhwi which
20520 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20521 Start warning message with a lower-case letter. Formatting fixes.
20522
20523 PR rtl-optimization/90026
20524 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20525 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20526 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20527 in cfglayout mode, use emit_barrier_after_bb.
20528
20529 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20530
20531 PR rtl-optimization/87763
20532 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20533 New Instruction.
20534
20535 2019-04-11 Tom de Vries <tdevries@suse.de>
20536
20537 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20538 max macro using statement expression.
20539
20540 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20541
20542 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20543 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20544 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20545 read_only_private_data_section using xcoff_private_rodata_section_name.
20546 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20547
20548 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20549
20550 PR target/90016
20551 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20552
20553 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20554
20555 PR rtl-optimization/89965
20556 * dce.c (sp_based_mem_offset): New function.
20557 (find_call_stack_args): Use sp_based_mem_offset.
20558
20559 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20560
20561 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20562
20563 2019-04-11 Richard Biener <rguenther@suse.de>
20564
20565 PR tree-optimization/90020
20566 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20567 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20568 * tree-ssa-pre.c (compute_avail): Use it to not put
20569 possibly trapping references after a call that might not
20570 return into EXP_GEN.
20571 * gcse.c (compute_hash_table_work): Do not elide
20572 marking a block containing a call if the call might not
20573 return.
20574
20575 2019-04-11 Richard Biener <rguenther@suse.de>
20576
20577 PR tree-optimization/90018
20578 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20579 Test both SLP and interleaving variants.
20580
20581 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20582
20583 * config/s390/8561.md: New file.
20584 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20585 Add arch13 cpu model.
20586 * config/s390/s390-opts.h (enum processor_type): Likewise.
20587 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20588 (s390_get_unit_mask): Likewise.
20589 (s390_is_fpd): Likewise.
20590 (s390_is_fxd): Likewise.
20591 * config/s390/s390.h (s390_tune_attr): Likewise.
20592 * config/s390/s390.md: Include arch13 pipeline description.
20593 * config/s390/s390.opt: Add arch13.
20594
20595 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20596
20597 PR rtl-optimization/87763
20598 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20599 New prototype.
20600 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20601 New function.
20602 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20603 New instruction.
20604 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20605 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20606 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20607 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20608
20609 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20610
20611 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20612 "Although" in -fipa-icf documentation.
20613
20614 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20615 of using multiple -g options.
20616
20617 2019-04-10 Martin Liska <mliska@suse.cz>
20618
20619 PR gcov-profile/89959
20620 * doc/gcov.texi: Make documentation of -x option
20621 more precise.
20622
20623 2019-04-10 Richard Biener <rguenther@suse.de>
20624
20625 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20626 member.
20627 (DR_GROUP_SAME_DR_STMT): Remove.
20628 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20629 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20630 replace with assert.
20631 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20632 (vect_record_grouped_load_vectors): Remove unreachable code.
20633
20634 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20635
20636 PR target/90016
20637 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20638 obsolete reference to N.
20639
20640 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20641
20642 PR middle-end/90025
20643 * expr.c (store_expr): Set properly size on the MEM passed to
20644 clear_storage.
20645
20646 PR c++/90010
20647 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20648 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20649 translation is needed, and when translation is needed, only append
20650 ... if the string length is hostsz or more bytes long. Avoid using
20651 strncpy or strcat.
20652
20653 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20654
20655 PR target/90024
20656 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20657 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20658 into three.
20659 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20660 differences directly.
20661 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20662
20663 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20664
20665 PR translation/90011
20666 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20667 from diagnostics.
20668 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20669 diagnostics.
20670 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20671 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20672 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20673 trailing space from -gsplit-dwarf diagnostics.
20674
20675 PR tree-optimization/89998
20676 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20677 instead of integer_type_node if possible, don't add ranges if return
20678 type is not compatible with int.
20679 * gimple-fold.c (gimple_fold_builtin_sprintf,
20680 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20681 integer_type_node.
20682
20683 2019-04-09 Martin Liska <mliska@suse.cz>
20684
20685 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20686 * doc/install.texi: Document the new config.
20687
20688 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20689
20690 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20691 use gimple_expr_type for load and store calls. Skip over the
20692 condition argument in a conditional internal function.
20693 Protect use of TREE_INT_CST_LOW.
20694
20695 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20696
20697 PR target/90015
20698 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20699 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20700 trailing period from it too.
20701
20702 2019-04-08 wu yuan <wuyuan5@huawei.com>
20703
20704 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20705 * config/aarch64/aarch64.md : Add "tsv110.md"
20706 * config/aarch64/tsv110.md: New file.
20707
20708 2019-04-08 Richard Biener <rguenther@suse.de>
20709
20710 PR tree-optimization/90006
20711 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20712 calls like lrint.
20713
20714 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20715
20716 PR target/83033
20717 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20718 construction.
20719 (fma_root_node): Likewise.
20720 (func_fma_steering): Likewise.
20721
20722 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20723
20724 PR rtl-optimization/89865
20725 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20726
20727 PR rtl-optimization/89865
20728 * config/i386/i386.md
20729 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20730 numbers not to clash with the additional operands[4].
20731 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20732 with extra register copy in the middle.
20733
20734 2019-04-08 Martin Liska <mliska@suse.cz>
20735
20736 PR gcov-profile/89961
20737 * doc/gcov.texi: Document data_file.
20738 * gcov.c (generate_results): Add data_info into JSON output.
20739
20740 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20741
20742 PR tree-optimization/89725
20743 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20744 loop's chrec as invariant symbol.
20745 * tree-chrec.h (chrec_contains_symbols): New parameter.
20746 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20747 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20748 function of loops not in DDR's loop_nest.
20749 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20750
20751 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20752
20753 PR target/89623
20754 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20755 Mask.
20756
20757 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20758
20759 PR target/89945
20760 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20761 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20762
20763 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20764
20765 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20766 targetm.fixed_condition_code_regs.
20767
20768 2019-04-05 Richard Biener <rguenther@suse.de>
20769
20770 PR debug/89892
20771 PR debug/89905
20772 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20773 debug bind stmts but reset them if they are not valid at the
20774 destination.
20775
20776 2019-04-05 Martin Liska <mliska@suse.cz>
20777
20778 PR translation/89936
20779 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20780 order to wrap keywords or arguments.
20781 * collect2.c (main): Likewise.
20782 (scan_prog_file): Likewise.
20783 (scan_libraries): Likewise.
20784 * common/config/riscv/riscv-common.c
20785 (riscv_subset_list::parsing_subset_version): Likewise.
20786 (riscv_subset_list::parse_std_ext): Likewise.
20787 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20788 Likewise.
20789 * config/arm/arm.c (arm_option_override): Likewise.
20790 * config/cris/cris.c (cris_print_operand): Likewise.
20791 * config/darwin-c.c (darwin_pragma_options): Likewise.
20792 (darwin_pragma_unused): Likewise.
20793 (darwin_pragma_ms_struct): Likewise.
20794 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20795 * config/i386/i386.c (print_reg): Likewise.
20796 (ix86_print_operand): Likewise.
20797 * config/i386/xm-djgpp.h: Likewise.
20798 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20799 * config/m32c/m32c.c (m32c_option_override): Likewise.
20800 * config/msp430/msp430.c (msp430_option_override): Likewise.
20801 * config/nds32/nds32.c (nds32_option_override): Likewise.
20802 * config/nvptx/mkoffload.c (main): Likewise.
20803 * config/rx/rx.c (rx_print_operand): Likewise.
20804 (valid_psw_flag): Likewise.
20805 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20806 (vms_pragma_nomember_alignment): Likewise.
20807 (vms_pragma_extern_model): Likewise.
20808 * lto-wrapper.c (compile_offload_image): Likewise.
20809 * omp-offload.c (oacc_parse_default_dims): Likewise.
20810 * symtab.c (symtab_node::verify_base): Likewise.
20811 * tlink.c (recompile_files): Likewise.
20812 (start_tweaking): Likewise.
20813 * tree-profile.c (parse_profile_filter): Likewise.
20814
20815 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20816
20817 PR tree-optimization/89956
20818 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20819 multiple negates of the same value.
20820
20821 2019-04-04 Martin Sebor <msebor@redhat.com>
20822
20823 PR middle-end/89957
20824 PR middle-end/89911
20825 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20826 have the same precision since the function crashes otherwise.
20827 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20828 has non-zero arguments.
20829
20830 2019-04-04 Martin Sebor <msebor@redhat.com>
20831
20832 PR middle-end/89934
20833 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20834 out if the number of arguments is less than expected.
20835
20836 2019-04-04 Jeff Law <law@redhat.com>
20837
20838 PR rtl-optimization/89399
20839 * ree.c (combine_set_extension): Use single_set rather than
20840 digging into PATTERN for items on the candidate list.
20841 (combine_reaching_defs): Likewise.
20842
20843 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20844
20845 PR rtl-optimization/46590
20846 * loop-invariant.c (find_defs): Move df_remove_problem and
20847 df_process_deferred_rescans to move_invariants.
20848 Move df_live_add_problem and df_live_set_all_dirty calls
20849 to move_invariants.
20850 (move_invariants): Likewise.
20851 (move_loop_invariants): Likewise, making the df_live calls
20852 conditional on -O. Remove the problem again if we added it
20853 locally.
20854
20855 2019-04-03 qing zhao <qing.zhao@oracle.com>
20856
20857 PR tree-optimization/89730
20858 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20859 -flive-patching=inline-only-static.
20860 (can_inline_edge_by_limits_p): Add the checking for
20861 -flive-patching=inline-only-static and grant always_inline
20862 even when -flive-patching=inline-only-static is specified.
20863
20864 2019-04-03 Jeff Law <law@redhat.com>
20865
20866 PR rtl-optimization/81025
20867 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20868
20869 2019-04-03 Richard Biener <rguenther@suse.de>
20870
20871 PR tree-optimization/84101
20872 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20873 regs.h for hard_regno_nregs.
20874 (cfun_returns): New helper.
20875 (vect_model_store_cost): When vectorizing a store to a decl
20876 we return and the function ABI returns in a multi-reg location
20877 account for the possible spilling that will happen.
20878
20879 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20880
20881 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20882 displacement addresses for vector mode operands.
20883
20884 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20885
20886 * config/arc/arc.c (GMASK_LEN): Define.
20887 (arc_restore_callee_saves): Restore first blink when
20888 !optimize_size.
20889
20890 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20891
20892 * doc/extend.texi: Add deprecated comment on sign-return-address
20893 function attribute and add mbranch-protection.
20894 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20895
20896 2019-04-03 Richard Biener <rguenther@suse.de>
20897
20898 PR lto/89896
20899 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20900 the all target phony.
20901
20902 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20903
20904 PR target/89902
20905 PR target/89903
20906 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20907 Return false for variable DImode shifts.
20908 (dimode_scalar_chain::compute_convert_gain): Do not handle
20909 register count operand in variable DImode shifts.
20910 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20911 count argument of a variable shift instruction to a vector register.
20912 (dimode_scalar_chain::convert_reg): Remove support to convert
20913 count argument of a variable shift instruction.
20914
20915 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20916
20917 PR rtl-optimization/84206
20918 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20919 iterating over loop headers.
20920
20921 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20922
20923 PR rtl-optimization/85876
20924 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20925 beyond the original fence.
20926
20927 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20928
20929 * config.gcc: Mark spu* targets as deprecated/obsolete.
20930
20931 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20932
20933 * config/s390/s390-builtin-types.def: New builtin function type
20934 definitions. Remove unused types.
20935 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20936 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20937 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20938 overloaded builtins.
20939 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20940 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20941 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20942 (vec_double, vec_signed, vec_unsigned): Define to use the new
20943 overloaded builtins.
20944 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20945 Remove expanders.
20946
20947 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20948
20949 * config/s390/s390-builtin-types.def: New builtin function type
20950 definitions.
20951 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20952 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20953 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20954 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20955 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20956 constant definitions.
20957 * config/s390/vecintrin.h (vec_search_string_cc)
20958 (vec_search_string_until_zero_cc): New builtin name definitions.
20959 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20960 expanders.
20961 ("vec_vstrs<mode>"): New insn definition.
20962
20963 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20964
20965 * config/s390/s390-builtin-types.def: Add new builtin function
20966 types.
20967 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20968 New overloaded builtins.
20969 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20970 s390_vsrd.
20971 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20972 (UNSPEC_VEC_SLDBYTE): ... this.
20973 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20974 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20975 definitions.
20976 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20977 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20978 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20979
20980 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20981
20982 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20983 New insn definition.
20984 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20985 * config/s390/vector.md (V_HW_HSD): ... here.
20986
20987 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20988
20989 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20990 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20991 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20992 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20993 New insn definitions.
20994
20995 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20996
20997 * config/s390/s390-builtin-types.def: Add new builtin function type.
20998 * config/s390/s390-builtins.def: Add overloaded builtin
20999 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
21000 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
21001 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
21002 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
21003 ("eltswap<mode>"): New expander.
21004 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
21005 insn definitions.
21006
21007 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21008
21009 * config/s390/s390-builtin-types.def: Add new builtin function types.
21010 * config/s390/s390-builtins.def: Add overloaded builtin
21011 s390_vec_revb. Add low-level builtins for vlbr and vstbr
21012 instructions.
21013 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
21014 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
21015 ("bswap<mode>"): New expander.
21016 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
21017
21018 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21019
21020 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
21021 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
21022 vector builtin version number in __VEC__.
21023
21024 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21025
21026 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
21027 iterators.
21028 (SFSI): New mode attribute.
21029 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
21030 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
21031 rename to ...
21032 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
21033 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
21034 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
21035 ("floatsi<mode>2"): Add wcefb instruction.
21036
21037 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21038
21039 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
21040 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
21041 mode iterators.
21042 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
21043 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
21044 support 32 bit fp-int conversions. Rename to ...
21045 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21046 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21047 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
21048 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
21049 ... to these.
21050
21051 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21052
21053 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
21054 if-then-else constructs if we can use the select instruction.
21055 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
21056
21057 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21058
21059 * config/s390/s390.md ("*popcountdi_arch13_cc")
21060 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
21061 definition.
21062 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21063 Append _z196 to make it ...
21064 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21065 ("popcounthi2_z196"): ... this.
21066 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21067 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21068
21069 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21070
21071 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21072 certain compares for arch13 in order to make use of the condition
21073 code result produced by the new instructions.
21074 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21075 nxrk, and nxgrk instruction patterns.
21076 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21077 (inv_no): Add new code iterator together with some attributes.
21078 ("*andc_split_<mode>"): Disable splitter for arch13.
21079 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21080 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21081 ("*<ANDOR:bitops_name>c<GPR:mode>")
21082 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21083 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21084 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21085 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21086
21087 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21088
21089 * common/config/s390/s390-common.c (processor_flags_table): New
21090 entry for arch13.
21091 * config.gcc: Support arch13 with the --with-arch= configure flag.
21092 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21093 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21094 * config/s390/s390.c (s390_get_sched_attrmask)
21095 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21096 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21097 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21098 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21099 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21100 definitions.
21101 * config/s390/s390.opt: Support arch13 as processor type in
21102 command line options.
21103
21104 2019-04-02 Martin Liska <mliska@suse.cz>
21105
21106 PR translation/89912
21107 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21108 Fix param description of graphite-max-arrays-per-scop.
21109
21110 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21111
21112 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21113 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21114 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21115
21116 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21117
21118 PR rtl-optimization/85412
21119 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21120 sel_sched_region_1, not after.
21121
21122 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21123
21124 PR rtl-optimization/86928
21125 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21126 compute_live if necessary.
21127 (sel_redirect_edge_and_branch): Likewise.
21128
21129 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21130
21131 PR rtl-optimization/89865
21132 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21133 register if it is a part of small class.
21134
21135 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21136
21137 PR rtl-optimization/87273
21138 * sel-sched-ir.c (merge_fences): Remove assert.
21139
21140 2019-04-01 Richard Biener <rguenther@suse.de>
21141
21142 PR tree-optimization/46590
21143 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21144 (dom_walker::m_reachability): Add in place of...
21145 (dom_walker::m_skip_unreachable_blocks): ...this.
21146 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21147 Move complex initialization ...
21148 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21149 lazily and initialize edge flags on each invocation.
21150 (dom_walker::bb_reachable): Use m_reachability.
21151
21152 2019-04-01 Martin Liska <mliska@suse.cz>
21153
21154 PR driver/89861
21155 * opt-suggestions.c (option_proposer::build_option_suggestions):
21156 Add variant without any argument in order to provide better
21157 hints.
21158
21159 2019-04-01 Richard Biener <rguenther@suse.de>
21160
21161 PR c/71598
21162 * gimple.c: Include langhooks.h.
21163 (gimple_get_alias_set): Treat enumeral types as the underlying
21164 integer type.
21165
21166 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21167 Eric Botcazou <ebotcazou@adacore.com>
21168
21169 PR rtl-optimization/89862
21170 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21171 that operates on the full registers for WORD_REGISTER_OPERATIONS
21172 architectures.
21173
21174 2019-03-29 Jim Wilson <jimw@sifive.com>
21175
21176 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21177 Clear MASK_RVC and then set if C subset supported.
21178
21179 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21180
21181 PR c/89872
21182 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21183 non-addressable complit into its initializer if it is volatile.
21184
21185 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21186
21187 * opts-common.c (integral_argument): Set errno properly in one case.
21188
21189 2019-03-29 Martin Liska <mliska@suse.cz>
21190
21191 * doc/invoke.texi: Remove -Wchkp from documentation.
21192
21193 2019-03-29 Martin Liska <mliska@suse.cz>
21194
21195 * dbgcnt.c (print_limit_reach): New function.
21196 (dbg_cnt): Use it.
21197
21198 2019-03-29 Martin Liska <mliska@suse.cz>
21199
21200 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21201 (dbg_cnt_process_opt): Parse first tokens aas
21202 dbg_cnt_process_single_pair is also using strtok.
21203
21204 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21205
21206 PR rtl-optimization/87485
21207 * function.c (expand_function_end): Move stack_protect_epilogue
21208 before loading of return value into hard register(s).
21209
21210 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21211
21212 PR middle-end/89621
21213 * tree-inline.h (struct copy_body_data): Add
21214 dont_remap_vla_if_no_change flag.
21215 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21216 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21217 and remap_type_2 returns false.
21218 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21219 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21220 only from where it is copied to nested contexts.
21221
21222 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21223
21224 PR target/89865
21225 * config/i386/i386.md (RMW operation with LEA peephole):
21226 Use LEAMODE mode attribute instead of SWI mode iterator for
21227 LEA pattern.
21228
21229 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21230
21231 PR target/89848
21232 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21233 Also process XEXP (src, 0) of a shift insn.
21234
21235 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21236
21237 PR middle-end/89725
21238 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21239 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21240
21241 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21242
21243 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21244 test.
21245 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21246 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21247 immediately after first one with df_analyze in between, but rather
21248 process all bbs, queueing ones that need second pass in a worklist,
21249 df_analyze, process queued debug insn changes and if second pass is
21250 needed, process bbs from worklist, df_analyze, process queued debug
21251 insns again.
21252
21253 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21254 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21255 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21256
21257 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21258
21259 PR c/79022
21260 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21261 definition.
21262
21263 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21264
21265 PR target/85667
21266 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21267 function for 32-bit MS_ABI.
21268 (function_value_ms_32): New function.
21269
21270 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21271
21272 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21273 (movdi): Call gen_movdi_symbol_save_scc.
21274 (gen_movdi_symbol_save_scc): New insn and split.
21275
21276 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21277
21278 PR rtl-optimization/89313
21279 * function.c (matching_constraint_num): New static function.
21280 (match_asm_constraints_1): Use it. Fixup white space and comment.
21281 Don't replace inputs with non-matching constraints which conflict
21282 with early clobber outputs.
21283
21284 2019-03-27 Jeff Law <law@redhat.com>
21285
21286 PR rtl-optimization/87761
21287 PR rtl-optimization/89826
21288 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21289 slightly later.
21290 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21291 note problem to get REG_DEAD/REG_UNUSED notes updated.
21292
21293 2019-03-27 Richard Biener <rguenther@suse.de>
21294
21295 PR tree-optimization/89463
21296 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21297 queue edges to remove.
21298 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21299 dead stmts. Delay edge removal until PHIs are removed to
21300 make debug-stmt creation not confused by seemingly degenerate
21301 PHIs.
21302
21303 2019-03-27 Alan Modra <amodra@gmail.com>
21304
21305 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21306 throughout file.
21307 * config/rs6000/darwin.h: Likewise.
21308 * config/rs6000/rs6000.c: Likewise.
21309
21310 2019-03-27 Alan Modra <amodra@gmail.com>
21311
21312 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21313 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21314
21315 2019-03-26 Andrew Waterman <andrew@sifive.com>
21316 Jim Wilson <jimw@sifive.com>
21317
21318 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21319 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21320 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21321 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21322 (generic_alu): Add auipc to type list.
21323 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21324 (riscv_microarchitecture): Declare.
21325 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21326 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21327 field.
21328 (riscv_microarchitecture): New.
21329 (sifive_7_tune_info): New.
21330 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21331 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21332 entries.
21333 (riscv_store_data_bypass_p): New.
21334 (riscv_option_override): Set riscv_microarchitecture from
21335 cpu->microarchitecture.
21336 * config/riscv/riscv.md: Include sifive-7.md.
21337 (type): Add auipc.
21338 (tune): New.
21339 (auipc<mode>): Change type to auipc.
21340 (restore_stack_nonlocal): New.
21341 * config/riscv/sifive-7.md: New.
21342 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21343
21344 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21345
21346 PR target/89827
21347 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21348 Also process XEXP (src, 0) of a shift insn.
21349
21350 2019-03-26 Richard Biener <rguenther@suse.de>
21351
21352 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21353 (copy_debug_stmt): Likewise.
21354 (expand_call_inline): Likewise.
21355 (copy_bb): Avoid redundant lookup & set of gimple_block.
21356 * gimple-low.c (lower_gimple_return): Likewise.
21357 (lower_builtin_setjmp): Likewise.
21358
21359 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21360
21361 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21362 is constant 0, turn into static const data member initialized to false.
21363 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21364 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21365
21366 2019-03-26 Jason Merrill <jason@redhat.com>
21367 Jakub Jelinek <jakub@redhat.com>
21368
21369 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21370 method.
21371 (mem_alloc_description::release_object_overhead): Fix comment typos.
21372 * hash-table.h (hash_table::~hash_table): Call
21373 release_instance_overhead only if m_entries is non-NULL, otherwise
21374 call unregister_descriptor.
21375
21376 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21377
21378 PR tree-optimization/81740
21379 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21380 In case of outer loop vectorization, check for backward dependence
21381 at the inner loop if outer loop dependence is reversed.
21382
21383 2019-03-26 Alan Modra <amodra@gmail.com>
21384
21385 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21386 rs6000_vector_mem init. Correct wI and wJ comment.
21387
21388 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21389
21390 PR rtl-optimization/88347
21391 PR rtl-optimization/88423
21392 * sched-deps.c (sched_analyze_insn): Take into account that for
21393 tablejumps the barrier appears after a label and a jump_table_data.
21394
21395 2019-03-25 Martin Sebor <msebor@redhat.com>
21396
21397 PR c/89812
21398 * c-common.c (check_user_alignment): Rename local. Correct maximum
21399 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21400 convert it to UHWI when it fits.
21401
21402 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21403
21404 PR debug/86964
21405 * dwarf2out.c (premark_used_variables): New function.
21406 (prune_unused_types_walk): Do not mark not premarked external
21407 variables.
21408 (prune_unused_types): Call premark_used_variables.
21409
21410 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21411
21412 PR rtl-optimization/89676
21413 * lra-constraints.c (curr_insn_transform): Do match reload for
21414 early clobbers when the match was successful only for different
21415 registers.
21416
21417 2019-03-25 Martin Sebor <msebor@redhat.com>
21418
21419 * doc/extend.texi (Common Type Attributes): Document vector_size.
21420 (Common Variable Attributes): Mention size constraint. Correct
21421 quoting and typos.
21422 (Vector Extensions): Use @dfn when defining bas type. Clarify
21423 base type and size constraints.
21424
21425 2019-03-25 Richard Biener <rguenther@suse.de>
21426
21427 PR tree-optimization/89789
21428 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21429 changes from non-undefined back to undefined.
21430
21431 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21432
21433 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21434 heap string and a gc string, but since this variable is unknown to
21435 ggc the gc string might get reused and corrupted. Fixed by always
21436 using a heap string.
21437
21438 2019-03-25 Richard Biener <rguenther@suse.de>
21439
21440 PR tree-optimization/89779
21441 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21442 to remove IV defs, delay actual removal.
21443 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21444 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21445 very end, properly also reset loop control IV information.
21446
21447 2019-03-25 Richard Biener <rguenther@suse.de>
21448
21449 PR tree-optimization/89802
21450 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21451 move EH data to folded stmt.
21452
21453 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21454
21455 * config/s390/s390-builtin-types.def: Remove few unused types and
21456 fix sort order for others.
21457
21458 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21459
21460 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21461 expected and found types with -mdebug during builtin matching.
21462
21463 2019-03-25 Richard Biener <rguenther@suse.de>
21464
21465 PR middle-end/89790
21466 * fold-const.c (operand_equal_p): Revert last change with
21467 updated comment.
21468
21469 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21470
21471 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21472 notes for the result of the __tls_get_addr calls.
21473 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21474
21475 2019-03-24 Jeff Law <law@redhat.com>
21476
21477 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21478
21479 PR rtl-optimization/87761
21480 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21481 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21482 as needed.
21483 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21484 rescans. Reprocess blocks as needed, calling df_analyze before
21485 reprocessing. Always call df_analyze before fixing up debug bind
21486 insns.
21487
21488 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21489
21490 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21491 big endian.
21492
21493 2019-03-22 Andrew Pinski <apinski@marvell.com>
21494
21495 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21496 attrribute for uxtw.
21497
21498 2019-03-26 Jeff Law <law@redhat.com>
21499
21500 PR rtl-optimization/87761
21501 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21502 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21503 (mips_split_move): Accept new INSN argument. Try to forward SRC
21504 into the next instruction.
21505 (mips_split_move_insn): Pass INSN through to mips_split_move.
21506
21507 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21508
21509 PR rtl-optimization/89676
21510 * lra-constraints.c (curr_insn_transform): Do match reload for
21511 early clobbers even if the match was successful.
21512
21513 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21514
21515 PR c++/87481
21516 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21517
21518 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21519
21520 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21521
21522 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21523
21524 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21525 <avx512>_fmsub_<mode>_mask3<round_name>,
21526 <avx512>_fnmadd_<mode>_mask3<round_name>,
21527 <avx512>_fnmsub_<mode>_mask3<round_name>,
21528 avx512f_vmfmadd_<mode>_mask3<round_name>,
21529 avx512f_vmfmsub_<mode>_mask3<round_name>,
21530 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21531 instead of register_operand and %v instead of v for match_operand 1.
21532 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21533 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21534 <round_nimm_predicate> instead of register_operand and %v instead of v
21535 for match_operand 1.
21536
21537 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21538 <avx512>_fmadd_<mode>_mask3<round_name>,
21539 <avx512>_fmsub_<mode>_mask<round_name>,
21540 <avx512>_fmsub_<mode>_mask3<round_name>,
21541 <avx512>_fnmadd_<mode>_mask<round_name>,
21542 <avx512>_fnmadd_<mode>_mask3<round_name>,
21543 <avx512>_fnmsub_<mode>_mask<round_name>,
21544 <avx512>_fnmsub_<mode>_mask3<round_name>,
21545 <avx512>_fmaddsub_<mode>_mask<round_name>,
21546 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21547 <avx512>_fmsubadd_<mode>_mask<round_name>,
21548 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21549 <round_nimm_predicate> instead of nonimmediate_operand.
21550 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21551 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21552 Use register_operand instead of <round_nimm_predicate> for the
21553 operand that needs to match output.
21554 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21555 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21556 Likewise. Formatting fixes.
21557
21558 PR target/89784
21559 * config/i386/i386.c (enum ix86_builtins): Remove
21560 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21561 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21562 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21563 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21564 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21565 __builtin_ia32_vfmsubss3_mask3): New builtins.
21566 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21567 avx512f_vmfmadd_<mode>_mask3<round_name>,
21568 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21569 *avx512f_vmfmsub_<mode>_mask<round_name>,
21570 avx512f_vmfmsub_<mode>_mask3<round_name>,
21571 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21572 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21573 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21574 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21575 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21576 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21577 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21578 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21579 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21580 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21581 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21582 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21583 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21584 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21585 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21586 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21587 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21588 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21589 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21590 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21591 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21592 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21593 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21594 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21595 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21596 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21597 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21598 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21599
21600 2019-03-21 Martin Sebor <msebor@redhat.com>
21601
21602 PR tree-optimization/89350
21603 * builtins.c (compute_objsize): Also ignore offsets whose upper
21604 bound is negative.
21605 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21606 (builtin_memref::builtin_memref): Initialize new member.
21607 Allow EXPR to be null.
21608 (builtin_memref::extend_offset_range): Replace local with a member.
21609 Avoid assuming pointer offsets are unsigned.
21610 (builtin_memref::set_base_and_offset): Determine base object
21611 before computing offset range.
21612 (builtin_access::builtin_access): Handle memset.
21613 (builtin_access::generic_overlap): Replace local with a member.
21614 (builtin_access::strcat_overlap): Same.
21615 (builtin_access::overlap): Same.
21616 (maybe_diag_overlap): Same.
21617 (maybe_diag_access_bounds): Same.
21618 (wrestrict_dom_walker::check_call): Handle memset.
21619 (check_bounds_or_overlap): Same.
21620
21621 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21622 Jakub Jelinek <jakub@redhat.com>
21623
21624 PR lto/89692
21625 * tree.c (fld_type_variant, fld_incomplete_type_of,
21626 fld_process_array_type): Call fld->pset.add and don't call
21627 add_tree_to_fld_list if it returns true.
21628 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21629 non-marked types from TYPE_NEXT_VARIANT list.
21630 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21631
21632 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21633
21634 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21635 to false, if true, don't alloc_entries during construction, but defer
21636 it to the first method that needs m_entries allocated.
21637 (hash_table::hash_table, hash_table::~hash_table,
21638 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21639 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21640 hash_table::clear_slot, hash_table::traverse_noresize,
21641 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21642 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21643 false.
21644 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21645 NO_INSERT instead of find_with_hash.
21646 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21647 hash_set::m_table): Add Lazy to template params of hash_table.
21648 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21649 * attribs.c (test_attribute_exclusions): Likewise.
21650 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21651 hash_set. Add tests for hash_set with Lazy = true.
21652
21653 2019-03-21 Richard Biener <rguenther@suse.de>
21654
21655 PR tree-optimization/89779
21656 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21657 checks with respect to released SSA names now having error_mark_node
21658 type.
21659 * fold-const.c (operand_equal_p): Likewise.
21660
21661 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21662
21663 PR target/89775
21664 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21665 available to ...
21666 (s390_optimize_register_info): Use global_not_special_regno_p to
21667 check for global regs.
21668
21669 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21670
21671 PR target/89752
21672 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21673 update this_alternative nor this_alternative_set.
21674
21675 2019-03-19 Jim Wilson <jimw@sifive.com>
21676
21677 PR target/89411
21678 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21679 align, size, offset. Use them to handle a BLKmode reference. Update
21680 comment.
21681 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21682
21683 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21684
21685 PR rtl-optimization/89768
21686 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21687 instead of GEN_INT.
21688 (unroll_loop_runtime_iterations): Likewise.
21689
21690 2019-03-19 Martin Sebor <msebor@redhat.com>
21691
21692 PR tree-optimization/89644
21693 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21694 rather than endptr as an indicator of nul-termination.
21695
21696 PR tree-optimization/89644
21697 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21698 arrays in determining sequence sizes in strncpy and stpncpy.
21699
21700 2019-03-19 Martin Liska <mliska@suse.cz>
21701
21702 PR middle-end/89737
21703 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21704 unlikely_edges if there's an edge that belongs to both these sets.
21705
21706 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21707
21708 PR target/89746
21709 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21710 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21711 go via a stack temporary.
21712
21713 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21714
21715 PR target/89378
21716 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21717 instead of gen_rtx_SUBREG.
21718 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21719
21720 2019-03-19 Richard Biener <rguenther@suse.de>
21721
21722 PR debug/88389
21723 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21724
21725 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21726
21727 PR lto/87809
21728 PR lto/89335
21729 * tree.c (free_lang_data_in_decl): Do not free context of C++
21730 destrutors.
21731
21732 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21733
21734 PR target/89506
21735 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21736 subs for the first alternative except when operands[3] is 1.
21737
21738 PR target/89752
21739 * gimplify.c (gimplify_asm_expr): For output argument with
21740 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21741 diagnose error.
21742
21743 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21744
21745 PR rtl-optimization/89753
21746 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21747 explicit unrolling factor even more robust.
21748
21749 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21750
21751 PR target/89726
21752 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21753 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21754 signed zeros, do another copysign after the compensation.
21755
21756 2019-03-18 Martin Sebor <msebor@redhat.com>
21757
21758 PR tree-optimization/89720
21759 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21760 more conservatively, the same as anti-range.
21761
21762 2019-03-18 Richard Biener <rguenther@suse.de>
21763
21764 PR middle-end/88945
21765 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21766 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21767 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21768 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21769
21770 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21771
21772 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21773 Extend queue to 1024 entries.
21774 Add "consumed" field.
21775 (gomp_print_output): Remove print_index parameter.
21776 Add final parameter.
21777 Change limit to unsigned.
21778 Use consumed field to implement circular buffer.
21779 Detect interrupted print in final pass.
21780 Flush output at the end.
21781 (run): Update gomp_print_output usage.
21782 (main): Initialize kernargs->output_data.consumed.
21783
21784 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21785
21786 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21787 calculation of the minimum number of scalar iterations for
21788 fully-predicated loops.
21789
21790 2019-03-18 Martin Jambor <mjambor@suse.cz>
21791
21792 PR tree-optimization/89546
21793 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21794 any propagation to its children took place.
21795
21796 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21797
21798 PR target/89627
21799 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21800 parameter, and make use of it.
21801 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21802
21803 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21804
21805 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21806 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21807 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21808 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21809 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21810 match what the ops is doing.
21811 (push_multi_fp_blink): Likewise.
21812 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21813 compiling for size and elf target.
21814 (arc_save_callee_enter): Adjust note to match what enter/leave
21815 operation does.
21816
21817 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21818
21819 * config/arc/arc.md (tst_movb): Fix constraint.
21820
21821 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21822
21823 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21824
21825 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21826
21827 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21828 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21829 reg_alloc_order references.
21830 (size_alloc_order): Define.
21831 (arc_adjust_reg_alloc_order): New function.
21832 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21833 order.
21834 (ADJUST_REG_ALLOC_ORDER): Define.
21835 (HONOR_REG_ALLOC_ORDER): Likewise.
21836
21837 2019-03-18 Richard Biener <rguenther@suse.de>
21838
21839 PR target/87561
21840 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21841 loads and stores a bit more.
21842
21843 2019-03-18 Richard Biener <rguenther@suse.de>
21844
21845 PR target/87561
21846 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21847 load pessimization to stores as well.
21848
21849 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21850
21851 PR middle-end/86979
21852 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21853 successor, use NULL as its av set.
21854
21855 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21856
21857 PR rtl-optimization/89721
21858 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21859
21860 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21861
21862 PR target/87532
21863 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21864 When handling vec_extract, use modular arithmetic to allow
21865 constant selectors greater than vector length.
21866 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21867 V1TImode vectors to have constant selector values greater than 0.
21868 Use modular arithmetic to compute vector index.
21869 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21870 index for in-memory vectors. Correct code generation for
21871 in-register vectors.
21872 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21873 compute index.
21874
21875 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21876
21877 PR c++/88534
21878 PR c++/88537
21879 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21880 VAR_DECL args.
21881
21882 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21883
21884 PR c++/89709
21885 * tree.c (inchash::add_expr): Strip any location wrappers.
21886 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21887 after hash verification.
21888
21889 PR debug/89704
21890 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21891 SIGN_EXTEND and ZERO_EXTEND.
21892
21893 2019-03-14 Jason Merrill <jason@redhat.com>
21894 Jakub Jelinek <jakub@redhat.com>
21895
21896 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21897 than if is_empty (*slot).
21898 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21899 existing elt and for elt removal.
21900 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21901 of already removed elt.
21902
21903 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21904
21905 PR target/89650
21906 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21907 REG_EH_REGION note.
21908
21909 2019-03-14 Martin Liska <mliska@suse.cz>
21910
21911 PR other/89712
21912 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21913
21914 2019-03-14 Richard Biener <rguenther@suse.de>
21915
21916 PR target/89711
21917 * config/i386/i386.c (make_resolver_func): Properly set
21918 DECL_CONTEXT on the RESULT_DECL.
21919 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21920
21921 2019-03-14 Richard Biener <rguenther@suse.de>
21922
21923 * gimple-pretty-print.c: Include cfgloop.h.
21924 (dump_gimple_phi): Adjust.
21925 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21926 (pp_cfg_jump): Adjust.
21927 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21928 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21929 (lower_phi_internal_fn): Remove.
21930 (verify_gimple_call): Remove IFN_PHI special-casing.
21931 (dump_function_to_file): Dump IL state.
21932 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21933 done to deal with PHI nodes being present in non-SSA state.
21934
21935 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21936
21937 PR ipa/89684
21938 * multiple_target.c (create_dispatcher_calls): Change
21939 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21940 In the node->iterate_referring loop, push *ref rather than ref, call
21941 ref->remove_reference () and always pass 0 to iterate_referring.
21942
21943 PR rtl-optimization/89679
21944 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21945 would contain a paradoxical SUBREG.
21946
21947 2019-03-14 Richard Biener <rguenther@suse.de>
21948
21949 PR tree-optimization/89710
21950 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21951 safe_dyn_cast.
21952
21953 2019-03-14 Martin Liska <mliska@suse.cz>
21954
21955 * coverage.c (coverage_begin_function): Stream also
21956 end_column.
21957 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21958 documentation about function declaration location.
21959 * gcov-dump.c (tag_function): Print whole range
21960 of function declaration.
21961 * gcov.c (struct function_info): Add end_column field.
21962 (function_info::function_info): Initialize it.
21963 (output_json_intermediate_file): Output {start,end}_column
21964 fields.
21965 (read_graph_file): Read end_column.
21966
21967 2019-03-14 Richard Biener <rguenther@suse.de>
21968
21969 PR middle-end/89698
21970 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21971 that the access types are similar.
21972
21973 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21974
21975 PR tree-optimization/89703
21976 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21977 aren't compatible also with builtin_decl_explicit. Check pure
21978 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21979 and BUILT_IN_STPNCPY{,_CHK}.
21980
21981 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21982
21983 PR target/89523
21984 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21985 addr32 prefix to VSIB address for X32.
21986 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21987 "%M2" to opcode.
21988 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21989 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21990 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21991 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21992 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21993 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21994 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21995 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21996 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21997 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21998 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21999 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
22000 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
22001 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
22002 (*avx512f_scatterdi<mode>): Likewise.
22003
22004 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
22005
22006 PR target/85860
22007 * lra-constraints.c (inherit_in_ebb): Update
22008 potential_reload_hard_regs along with live_hard_regs.
22009
22010 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22011
22012 PR debug/89498
22013 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
22014 DWARF_OFFSET_SIZE.
22015 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
22016
22017 2019-03-13 Martin Sebor <msebor@redhat.com>
22018
22019 PR tree-optimization/89662
22020 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
22021 has a size.
22022
22023 2019-03-13 Richard Biener <rguenther@suse.de>
22024
22025 PR middle-end/89677
22026 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
22027 throw FP expressions at tree-affine.
22028
22029 2019-03-14 Richard Biener <rguenther@suse.de>
22030
22031 * tree-pretty-print.c (dump_generic_node): For -gimple properly
22032 dump negative integer constants using _Literal (type) -num.
22033
22034 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22035
22036 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
22037 nonlocal_value member.
22038
22039 PR middle-end/88588
22040 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
22041 (ipa_simd_modify_function_body): Handle PHIs.
22042
22043 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22044
22045 * config/s390/s390.c (s390_option_override_internal): Use more
22046 aggressive inlining parameters.
22047
22048 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22049
22050 * config/s390/3906.md: New file.
22051 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22052 (LONGRUNNING_THRESHOLD): Remove.
22053 (MAX_SCHED_MIX_SCORE): Decrease.
22054 (MAX_SCHED_MIX_DISTANCE): Decrease.
22055 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
22056 (struct s390_sched_state): New struct to hold scheduling state.
22057 (S390_SCHED_STATE_NORMAL): Remove.
22058 (S390_SCHED_STATE_CRACKED): Remove.
22059 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
22060 (s390_get_sched_attrmask): Use new attribute.
22061 (s390_get_unit_mask): Use new units.
22062 (s390_is_fpd): New function.
22063 (s390_is_fxd): New function.
22064 (s390_is_longrunning): New function.
22065 (s390_sched_score): Use new functions.
22066 (s390_sched_reorder): Likewise.
22067 (s390_sched_variable_issue): Rework and use new functions.
22068 (s390_sched_init): Use new functions.
22069 * config/s390/s390.h (s390_tune_attr): Add z14.
22070 * config/s390/s390.md: Add z14.
22071
22072 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22073
22074 * config/s390/2964.md: Update pipeline description.
22075 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22076 (LONGRUNNING_THRESHOLD): Remove.
22077 (LATENCY_FACTOR): Remove.
22078 (s390_get_unit_mask): Add unit.
22079 (s390_sched_score): Use fxd/fpd.
22080 (s390_sched_variable_issue): Use fxd/fpd.
22081
22082 2019-03-12 Martin Liska <mliska@suse.cz>
22083
22084 * config/i386/i386.c: Reword an error message.
22085
22086 2019-03-12 Martin Jambor <mjambor@suse.cz>
22087
22088 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22089 terminate with newline.
22090
22091 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22092
22093 PR target/52726
22094 * config/s390/s390.md (tabort): Use %wd instead of
22095 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22096 letters and periods.
22097 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22098 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22099 's with %< and %>.
22100
22101 PR middle-end/89663
22102 * builtins.c (expand_builtin_int_roundingfn,
22103 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22104 gcc_unreachable if validate_arglist fails.
22105
22106 2019-03-12 Richard Biener <rguenther@suse.de>
22107
22108 PR tree-optimization/89664
22109 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22110 free the occurance tree after the early out.
22111
22112 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22113
22114 PR middle-end/89655
22115 PR bootstrap/89656
22116 * vr-values.c (vr_values::update_value_range): If
22117 old_vr->varying_p (), don't update it, make new_vr also VARYING
22118 and return false.
22119
22120 2019-03-11 Martin Liska <mliska@suse.cz>
22121
22122 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22123 Fix double string quoting.
22124
22125 2019-03-11 Martin Liska <mliska@suse.cz>
22126
22127 * collect-utils.c (collect_wait): Wrap apostrophes
22128 in gcc internal format with %'.
22129 * collect2.c (main): Likewise.
22130 (scan_prog_file): Likewise.
22131 (scan_libraries): Likewise.
22132 * config/i386/i386.c (ix86_expand_call): Likewise.
22133 (ix86_handle_interrupt_attribute): Likewise.
22134 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22135 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22136 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22137 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22138 * symtab.c (symtab_node::verify_base): Likewise.
22139 * tree-cfg.c (verify_gimple_label): Likewise.
22140 * tree.c (verify_type_variant): Likewise.
22141
22142 2019-03-11 Martin Liska <mliska@suse.cz>
22143
22144 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22145 in a string format message and fix GNU coding style.
22146 (expand_builtin_set_thread_pointer): Likewise.
22147 * common/config/aarch64/aarch64-common.c
22148 (aarch64_rewrite_selected_cpu): Likewise.
22149 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22150 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22151 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22152 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22153 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22154 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22155 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22156 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22157 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22158 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22159 Likewise.
22160 * common/config/riscv/riscv-common.c
22161 (riscv_subset_list::parsing_subset_version): Likewise.
22162 (riscv_subset_list::parse_std_ext): Likewise.
22163 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22164 (riscv_subset_list::parse): Likewise.
22165 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22166 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22167 (aarch64_override_options_internal): Likewise.
22168 (aarch64_validate_mcpu): Likewise.
22169 (aarch64_validate_march): Likewise.
22170 (aarch64_validate_mtune): Likewise.
22171 (aarch64_override_options): Likewise.
22172 * config/alpha/alpha.c (alpha_option_override): Likewise.
22173 * config/arc/arc.c (arc_init): Likewise.
22174 (parse_mrgf_banked_regs_option): Likewise.
22175 (arc_override_options): Likewise.
22176 (arc_expand_builtin_aligned): Likewise.
22177 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22178 (arm_expand_builtin): Likewise.
22179 * config/arm/arm.c (arm_option_check_internal): Likewise.
22180 (arm_configure_build_target): Likewise.
22181 (arm_option_override): Likewise.
22182 (arm_options_perform_arch_sanity_checks): Likewise.
22183 (arm_handle_cmse_nonsecure_entry): Likewise.
22184 (arm_handle_cmse_nonsecure_call): Likewise.
22185 (arm_tls_referenced_p): Likewise.
22186 (thumb1_expand_prologue): Likewise.
22187 * config/avr/avr.c (avr_option_override): Likewise.
22188 * config/bfin/bfin.c (bfin_option_override): Likewise.
22189 * config/c6x/c6x.c (c6x_option_override): Likewise.
22190 * config/cr16/cr16.c (cr16_override_options): Likewise.
22191 * config/cris/cris.c (cris_option_override): Likewise.
22192 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22193 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22194 * config/darwin.c (darwin_override_options): Likewise.
22195 * config/frv/frv.c (frv_expand_builtin): Likewise.
22196 * config/h8300/h8300.c (h8300_option_override): Likewise.
22197 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22198 (ix86_option_override_internal): Likewise.
22199 (warn_once_call_ms2sysv_xlogues): Likewise.
22200 (ix86_expand_prologue): Likewise.
22201 (split_stack_prologue_scratch_regno): Likewise.
22202 (ix86_warn_parameter_passing_abi): Likewise.
22203 * config/ia64/ia64.c (fix_range): Likewise.
22204 * config/m68k/m68k.c (m68k_option_override): Likewise.
22205 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22206 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22207 (mips_set_compression_mode): Likewise.
22208 * config/mmix/mmix.c (mmix_option_override): Likewise.
22209 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22210 * config/msp430/msp430.c (msp430_option_override): Likewise.
22211 * config/nds32/nds32.c (nds32_option_override): Likewise.
22212 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22213 (nios2_option_override): Likewise.
22214 (nios2_expand_custom_builtin): Likewise.
22215 * config/nvptx/mkoffload.c (main): Likewise.
22216 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22217 * config/pa/pa.c (fix_range): Likewise.
22218 (pa_option_override): Likewise.
22219 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22220 (riscv_option_override): Likewise.
22221 * config/rl78/rl78.c (rl78_option_override): Likewise.
22222 * config/rs6000/aix61.h: Likewise.
22223 * config/rs6000/aix71.h: Likewise.
22224 * config/rs6000/aix72.h: Likewise.
22225 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22226 * config/rs6000/freebsd64.h: Likewise.
22227 * config/rs6000/linux64.h: Likewise.
22228 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22229 (rs6000_expand_zeroop_builtin): Likewise.
22230 (rs6000_expand_mtfsb_builtin): Likewise.
22231 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22232 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22233 (rs6000_invalid_builtin): Likewise.
22234 (rs6000_expand_split_stack_prologue): Likewise.
22235 * config/rs6000/rtems.h: Likewise.
22236 * config/rx/rx.c (valid_psw_flag): Likewise.
22237 (rx_expand_builtin): Likewise.
22238 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22239 * config/s390/s390.c (s390_expand_builtin): Likewise.
22240 (s390_function_profiler): Likewise.
22241 (s390_option_override_internal): Likewise.
22242 (s390_option_override): Likewise.
22243 * config/sh/sh.c (sh_option_override): Likewise.
22244 (sh_builtin_saveregs): Likewise.
22245 (sh_fix_range): Likewise.
22246 * config/sh/vxworks.h: Likewise.
22247 * config/sparc/sparc.c (sparc_option_override): Likewise.
22248 * config/spu/spu.c (spu_option_override): Likewise.
22249 (fix_range): Likewise.
22250 * config/visium/visium.c (visium_option_override): Likewise.
22251 (visium_handle_interrupt_attr): Likewise.
22252 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22253 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22254 (dbg_cnt_process_opt): Likewise.
22255 * dwarf2out.c (output_dwarf_version): Likewise.
22256 * except.c (expand_eh_return): Likewise.
22257 * gcc.c (defined): Likewise.
22258 (driver_handle_option): Likewise.
22259 (process_command): Likewise.
22260 (compare_files): Likewise.
22261 (driver::prepare_infiles): Likewise.
22262 (driver::do_spec_on_infiles): Likewise.
22263 (driver::maybe_run_linker): Likewise.
22264 * omp-offload.c (oacc_parse_default_dims): Likewise.
22265 * opts-global.c (handle_common_deferred_options): Likewise.
22266 * opts.c (parse_sanitizer_options): Likewise.
22267 (common_handle_option): Likewise.
22268 (enable_warning_as_error): Likewise.
22269 * passes.c (enable_disable_pass): Likewise.
22270 * plugin.c (parse_plugin_arg_opt): Likewise.
22271 (default_plugin_dir_name): Likewise.
22272 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22273 (default_pch_valid_p): Likewise.
22274 * toplev.c (init_asm_output): Likewise.
22275 (process_options): Likewise.
22276 (toplev::run_self_tests): Likewise.
22277 * tree-cfg.c (verify_gimple_call): Likewise.
22278 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22279 (tree_inlinable_function_p): Likewise.
22280 * var-tracking.c (vt_find_locations): Likewise.
22281
22282 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22283
22284 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22285 only on the else branch.
22286
22287 2019-03-11 Martin Liska <mliska@suse.cz>
22288
22289 * gcov.c (output_intermediate_json_line): Print function
22290 name of each line.
22291 (output_json_intermediate_file): Add new argument.
22292 * doc/gcov.texi: Document the change.
22293
22294 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22295
22296 PR rtl-optimization/89588
22297 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22298 explicit unrolling factor more robust.
22299
22300 2019-03-11 Richard Biener <rguenther@suse.de>
22301
22302 PR tree-optimization/89649
22303 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22304 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22305 on the prolog and epilog loops.
22306 (vect_loop_versioning): Return copy of loop.
22307 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22308 on the non-vectorized version of the loop.
22309
22310 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22311
22312 PR target/68924
22313 * config/i386/sse.md (*vec_extractv2di_0_sse):
22314 Add (=r,x) alternative and corresponding splitter.
22315
22316 2019-03-10 Martin Jambor <mjambor@suse.cz>
22317
22318 PR tree-optimization/85762
22319 PR tree-optimization/87008
22320 PR tree-optimization/85459
22321 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22322 it points to if there is a type changing MEM_REF. Adjust all callers.
22323 (build_accesses_from_assign): Disable total scalarization if
22324 contains_vce_or_bfcref_p returns true through the new parameter, for
22325 both rhs and lhs.
22326
22327 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22328
22329 PR c/88568
22330 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22331 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22332
22333 PR target/79645
22334 * common.opt (fdiagnostics-show-labels,
22335 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22336 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22337 gas-locview-support, ginline-points, ginternal-reset-location-views):
22338 Terminate description text with a dot.
22339 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22340 * config/mcore/mcore.opt (m210, m340): Likewise.
22341 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22342 mnops=): Start description text with a capital letter.
22343 * config/arc/arc.opt (msize-level=): Likewise.
22344 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22345 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22346 mnewlib): Likewise.
22347 * config/ft32/ft32.opt (msim): Likewise.
22348 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22349 (mnodiv, mnopm): Terminate description text with a dot.
22350 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22351 a colon.
22352 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22353 Likewise.
22354 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22355 text.
22356
22357 PR rtl-optimization/89634
22358 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22359 are modified in BB_END (e->src) instruction.
22360
22361 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22362
22363 PR target/79926
22364 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22365 messages more amenable to translation, and improve wording.
22366
22367 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22368
22369 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22370 ud- and du-chains between phases.
22371
22372 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22373
22374 PR debug/89631
22375 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22376 instead of POLY_INT_CST.
22377
22378 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22379
22380 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22381 requirement.
22382
22383 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22384
22385 PR target/68924
22386 PR target/78782
22387 PR target/87558
22388 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22389 (_mm_storeu_si64): Ditto.
22390
22391 2019-03-08 Martin Liska <mliska@suse.cz>
22392
22393 PR target/86952
22394 * config/i386/i386.c (ix86_option_override_internal): Disable
22395 jump tables when retpolines are used.
22396
22397 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22398
22399 PR go/63560
22400 * ipa-split.c (execute_split_functions): Do not split
22401 'noinline' or 'section' function.
22402
22403 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22404
22405 PR target/79846
22406 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22407 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22408 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22409
22410 PR ipa/80000
22411 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22412 from diagnostics. Formatting fixes.
22413
22414 PR target/85665
22415 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22416 warn_odr diagnostics.
22417
22418 PR other/80058
22419 * lra-constraints.c (process_alt_operands): Avoid one space before
22420 " at the end of line and another after " on another line in a string
22421 literal.
22422 * attribs.c (handle_dll_attribute): Likewise.
22423 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22424
22425 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22426 warning_at or inform messages in G_() if there is no ?:.
22427
22428 PR tree-optimization/89550
22429 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22430 returned true. Formatting fixes.
22431 (expand_builtin_strnlen): Formatting fixes.
22432 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22433 if warning_at returned true.
22434 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22435
22436 2019-03-08 Richard Biener <rguenther@suse.de>
22437
22438 PR middle-end/89578
22439 * cfgloop.h (struct loop): Add owned_clique field.
22440 * cfgloopmanip.c (copy_loop_info): Copy it.
22441 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22442 cliques.
22443 * tree-inline.c (copy_loops): Remap owned_clique.
22444 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22445 * lto-streamer-out.c (output_cfg): Likewise.
22446
22447 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22448
22449 PR target/80190
22450 * config/darwin.c: Include intl.h.
22451 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22452 composing the message out of two separate parts.
22453
22454 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22455
22456 PR target/80003
22457 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22458 doesn't start with a capital letter and doesn't end with a dot.
22459 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22460 with a capital letter.
22461 (ix86_mangle_function_version_assembler_name): Likewise.
22462 (ix86_generate_version_dispatcher_body): Likewise.
22463 (fold_builtin_cpu): Likewise.
22464 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22465 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22466 translators, wrap full type name in %qs.
22467
22468 PR translation/79999
22469 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22470 depend clause with source (or sink) modifier.
22471 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22472
22473 PR target/89602
22474 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22475 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22476 (avx512f_load<mode>_mask): New define_expand.
22477 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22478 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22479 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22480 __builtin_ia32_movess_mask): New builtins.
22481 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22482 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22483 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22484 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22485
22486 2019-03-07 Martin Jambor <mjambor@suse.cz>
22487
22488 PR lto/87525
22489 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22490 for extern inline functions.
22491
22492 2019-03-07 Martin Jambor <mjambor@suse.cz>
22493
22494 PR ipa/88235
22495 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22496 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22497 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22498 have multiple callees. At the end check if declarations match as
22499 opposed to cgraph_nodes.
22500
22501 2019-03-07 Martin Liska <mliska@suse.cz>
22502
22503 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22504 which is equivalent to searching for this in clones chain.
22505 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22506 names with a neighbour and special case first node in a chain.
22507
22508 2019-01-25 Jason Merrill <jason@redhat.com>
22509
22510 PR c++/80916 - spurious "static but not defined" warning.
22511 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22512 for an internal symbol with DECL_EXTERNAL.
22513
22514 2019-04-07 Richard Biener <rguenther@suse.de>
22515
22516 PR middle-end/89618
22517 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22518 * tree-inline.c (copy_loops): Simplify.
22519
22520 2019-03-07 Martin Liska <mliska@suse.cz>
22521
22522 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22523
22524 2019-03-07 Richard Biener <rguenther@suse.de>
22525
22526 PR tree-optimization/89595
22527 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22528 stmt iterator as reference, take boolean output parameter to
22529 indicate whether the stmt was removed and thus the iterator
22530 already advanced.
22531 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22532 stmts created by folding.
22533
22534 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22535
22536 PR c++/89585
22537 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22538 at toplevel.
22539
22540 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22541
22542 PR rtl-optimization/88845
22543 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22544 LRA.
22545 * lra.c (remove_scratches_1): New function.
22546 (remove_scratches): Use it.
22547 (lra_emit_move): Likewise.
22548
22549 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22550
22551 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22552 unaligned_access variable.
22553 * config/arc/arc.c (arc_override_options): Set unaligned access
22554 default on for HS CPUs.
22555 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22556
22557 2019-03-06 Martin Liska <mliska@suse.cz>
22558
22559 PR gcov-profile/89577
22560 * doc/gcov.texi: Prefer to use --coverage.
22561 * doc/sourcebuild.texi: Likewise.
22562
22563 2019-03-02 Jason Merrill <jason@redhat.com>
22564
22565 PR c++/86485 - -Wmaybe-unused with empty class ?:
22566 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22567
22568 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22569
22570 PR target/89587
22571 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22572 if_multiarch.
22573
22574 PR middle-end/89590
22575 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22576 exactly one argument.
22577
22578 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22579 Richard Sandiford <richard.sandiford@arm.com>
22580
22581 PR tree-optimization/89570
22582 * match.pd (vec_cond into cond_op simplification): Don't use
22583 get_conditional_internal_fn, use as_internal_fn (cond_op).
22584
22585 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22586
22587 PR target/89222
22588 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22589 to decide when to split off a non-zero offset from a symbol.
22590 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22591 in function symbols.
22592
22593 2019-03-05 Richard Biener <rguenther@suse.de>
22594
22595 PR tree-optimization/89594
22596 * tree-if-conv.c (pass_if_conversion::execute): Handle
22597 case where .LOOP_VECTORIZED_FUNCTION was removed.
22598
22599 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22600
22601 PR bootstrap/89560
22602 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22603 instead alloca it only when needed with the needed size.
22604
22605 PR tree-optimization/89570
22606 * match.pd (vec_cond into cond_op simplification): Guard with
22607 vectorized_internal_fn_supported_p test and #if GIMPLE.
22608
22609 PR tree-optimization/89566
22610 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22611 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22612 Punt if get_user_idx_format succeeds, but idx_format argument is
22613 not provided or doesn't have pointer type, or if idx_args is above
22614 number of provided arguments.
22615
22616 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22617
22618 PR tree-optimization/89437
22619 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22620
22621 2019-03-04 Richard Biener <rguenther@suse.de>
22622
22623 PR middle-end/89572
22624 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22625 safe_dyn_cast.
22626
22627 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22628
22629 PR tree-optimization/89487
22630 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22631 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22632 (distribute_loop): Don't do runtime alias check if there is non-
22633 addressable data reference.
22634 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22635 is a register variable.
22636
22637 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22638
22639 PR target/89506
22640 * config/arm/arm.md (cmpsi2_addneg): Use
22641 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22642 If operands[2] is 0 or INT_MIN, force use of subs.
22643 (*compare_scc splitter): Use gen_int_mode.
22644 (*negscc): Likewise.
22645 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22646
22647 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22648 Monk Chiang <sh.chiang04@gmail.com>
22649
22650 * common/config/riscv/riscv-common.c: Include sstream.
22651 (riscv_subset_list::to_string): New.
22652 (riscv_arch_str): Likewise.
22653 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22654 * config.in: Regen.
22655 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22656 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22657 (riscv_emit_attribute): New.
22658 (riscv_file_start): Emit attribute if needed.
22659 (riscv_option_override): Init riscv_emit_attribute_p.
22660 * config/riscv/riscv.opt (mriscv-attribute): New option.
22661 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22662 * configure: Regen.
22663 * doc/install.texi: Document --with-riscv-attribute.
22664 * doc/invoke.texi: Document -mriscv-attribute.
22665
22666 * common/config/riscv/riscv-common.c:
22667 Include config/riscv/riscv-protos.h.
22668 (INCLUDE_STRING): Defined.
22669 (RISCV_DONT_CARE_VERSION): Defined.
22670 (riscv_subset_t): Declare.
22671 (riscv_subset_t::riscv_subset_t): New.
22672 (riscv_subset_list): Declare.
22673 (riscv_subset_list::riscv_subset_list): New.
22674 (riscv_subset_list::~riscv_subset_list): Likewise.
22675 (riscv_subset_list::parsing_subset_version): Likewise.
22676 (riscv_subset_list::parse_std_ext): Likewise.
22677 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22678 (riscv_subset_list::add): Likewise.
22679 (riscv_subset_list::lookup): Likewise.
22680 (riscv_subset_list::xlen): Likewise.
22681 (riscv_subset_list::parse): Likewise.
22682 (riscv_supported_std_ext): Likewise.
22683 (current_subset_list): Likewise.
22684 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22685 parse.
22686
22687 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22688
22689 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22690 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22691 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22692
22693 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22694
22695 PR rtl-optimization/85899
22696 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22697 fallthru edges leading to the exit block.
22698
22699 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22700
22701 PR target/89517
22702 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22703 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22704
22705 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22706
22707 PR tree-optimization/89535
22708 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22709 for each operand. Calculate the fallback choice for mask operands
22710 and pass it to vect_get_vec_def_for_operand.
22711
22712 2019-03-01 Richard Biener <rguenther@suse.de>
22713
22714 PR middle-end/89541
22715 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22716 get virtual operands.
22717 (get_expr_operands): Handle CONST_DECL like other decls.
22718
22719 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22720
22721 PR middle-end/89503
22722 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22723 on DECL_P and EXPR_P.
22724
22725 2019-03-01 Richard Biener <rguenther@suse.de>
22726
22727 PR middle-end/89497
22728 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22729 argument, defaulted to zero.
22730 * passes.c (execute_function_todo): Pass down SSA update flags
22731 to cleanup_tree_cfg.
22732 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22733 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22734 form if requested.
22735 (cleanup_tree_cfg): Get and pass down SSA update flags.
22736
22737 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22738
22739 PR bootstrap/89539
22740 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22741 early_lto_debug argument.
22742
22743 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22744
22745 PR tree-optimization/89536
22746 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22747 only whether bit #0 of the value is 0 instead of the entire value.
22748
22749 2019-02-28 Marek Polacek <polacek@redhat.com>
22750
22751 PR c++/87068 - missing diagnostic with fallthrough statement.
22752 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22753 at the end of a seq, save its location to walk_stmt_info.
22754 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22755 a switch.
22756
22757 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22758
22759 PR lto/88585
22760 * tree.c (find_atomic_core_type): Move ahead in file.
22761 (check_base_type): Correctly compare alignments of atomic types.
22762
22763 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22764
22765 PR target/89455
22766 * config/i386/i386.c (get_builtin_code_for_version): Identify
22767 Westmere from PCLMUL, instead of AES.
22768
22769 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22770
22771 PR target/89434
22772 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22773 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22774 -UINTVAL (...).
22775
22776 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22777
22778 PR target/88530
22779 * config/aarch64/aarch64-option-extensions.def: Document it.
22780 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22781 if empty hwcaps.
22782
22783 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22784
22785 PR c/89520
22786 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22787 builtins if they don't have a single scalar floating point argument.
22788 Formatting fixes.
22789
22790 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22791
22792 PR rtl-optimization/89490
22793 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22794 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22795 block section is not mergeable.
22796
22797 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22798
22799 PR target/70341
22800 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22801 old define_insn to ...
22802 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22803 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22804 Rename old define_insn to ...
22805 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22806 (thumb2_casesi_internal_pic): New define_expand. Rename old
22807 define_insn to ...
22808 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22809 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22810 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22811
22812 2019-02-27 Richard Biener <rguenther@suse.de>
22813
22814 PR debug/88878
22815 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22816
22817 2019-02-27 Richard Biener <rguenther@suse.de>
22818
22819 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22820 building.
22821
22822 2019-02-27 Richard Biener <rguenther@suse.de>
22823
22824 PR debug/88878
22825 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22826 parameter, prefix section name with .gnu.debuglto_ if true.
22827 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22828 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22829
22830 2019-02-27 Richard Biener <rguenther@suse.de>
22831
22832 PR debug/89514
22833 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22834 rather than on use_debug_types, doing what output_die does.
22835 (value_format): Likewise.
22836
22837 2019-02-27 Martin Jambor <mjambor@suse.cz>
22838 Martin Sebor <msebor@redhat.com>
22839
22840 * doc/invoke.texi (Warning Options): Reword description of
22841 -Wno-absolute-value.
22842
22843 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22844
22845 PR tree-optimization/89280
22846 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22847 builtin_setjmp_setup_bb): New functions.
22848 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22849 When visiting __builtin_setjmp_setup block, queue in special
22850 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22851 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22852 from visited after the loop if they don't have any visited successor
22853 blocks.
22854
22855 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22856
22857 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22858 New function.
22859 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22860
22861 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22862
22863 PR c++/89507
22864 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22865 with types other than sizetype/ssizetype.
22866
22867 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22868
22869 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22870 (enum sparc_processor_type): ...this.
22871 (enum sparc_code_model_type): New enumeration type.
22872 (enum sparc_memory_model_type): Tweak comments.
22873 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22874 (mtune): Likewise.
22875 (mcmodel): Use sparc_code_model enumeration and variable.
22876 (sparc_code_model): New enumeration.
22877 (mdebug): Add Undocumented marker.
22878 * config/sparc/sparc.h (enum cmodel): Delete.
22879 (sparc_cmodel): Likewise.
22880 (TARGET_CM_MEDLOW): Adjust to above renaming.
22881 (TARGET_CM_MEDMID): Likewise.
22882 (TARGET_CM_MEDANY): Likewise.
22883 (TARGET_CM_EMBMEDANY): Likewise.
22884 * config/sparc/sparc.c (sparc_cmodel): Delete.
22885 (sparc_option_override): Remove string/value mapping support for the
22886 code model. Move code and memory model support to after the handling
22887 of target flags. Do private machine setup last.
22888 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22889 (sparc_legitimize_reload_address): Likewise.
22890 (sparc_output_mi_thunk): Likewise.
22891 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22892
22893 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22894
22895 PR tree-optimization/89500
22896 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22897 (handle_builtin_strlen): Remove noncst_bound variable. Always
22898 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22899 cst if the first cst bytes starting at x are known to be non-zero,
22900 even if the string is not zero terminated. Don't try to modify
22901 *si for strnlen. Update strlen_to_stridx only for strlen or if
22902 we can prove strnlen returns the same value as strlen would.
22903
22904 2019-02-26 Martin Liska <mliska@suse.cz>
22905
22906 * alloc-pool.h (struct pool_usage): Remove extra
22907 print_dash_line.
22908 * bitmap.h (struct bitmap_usage): Likewise.
22909 * ggc-common.c (struct ggc_usage): Likewise.
22910 * mem-stats.h (struct mem_usage): Likewise.
22911 (mem_alloc_description::dump): Print dash lines
22912 here and repeat header at the end of a table report.
22913 It's then more readable.
22914 * tree-phinodes.c (phinodes_print_statistics): Make
22915 horizontal alignment.
22916 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22917 * vec.c (struct vec_usage): Remove extra print_dash_line.
22918 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22919
22920 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22921
22922 * doc/extend.texi (__builtin_object_size):
22923 Use @pxref instead of @xref inside parenthesis.
22924 (__builtin_has_attribute): Add missing comma after @xref.
22925 (__builtin_object_size): Ditto.
22926 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22927
22928 2019-02-26 Jeff Law <law@redhat.com>
22929
22930 PR rtl-optimization/87761
22931 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22932 detect obviously dead insns and delete them.
22933
22934 2019-02-26 Richard Biener <rguenther@suse.de>
22935
22936 PR tree-optimization/89505
22937 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22938 to handle restrict pointed-to vars with multiple subvars
22939 correctly.
22940
22941 2019-02-26 Richard Biener <rguenther@suse.de>
22942
22943 PR tree-optimization/89489
22944 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22945
22946 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22947
22948 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22949 and move around comment.
22950 <BIT_AND_EXPR>: Likewise.
22951 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22952
22953 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22954
22955 PR target/89474
22956 * config/i386/i386.c (remove_partial_avx_dependency): Call
22957 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22958 after changing possibly many instructions to use that pseudo. Fix up
22959 insertion of v4sf_const0 setter at the start of bb.
22960
22961 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22962
22963 PR c/80409
22964 * doc/extend.texi (Variadic Pointer Args): New section.
22965
22966 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22967 Martin Sebor <msebor@gmail.com>
22968
22969 * common.opt (Wattribute-alias): Likewise.
22970 * doc/invoke.texi (Option Summary): List general form of
22971 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22972 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22973 Add cross-references.
22974 (-Wattribute-alias): Rewrite and correct default. Mention
22975 considered attributes (same as for -Wmissing-attributes).
22976
22977 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22978
22979 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22980 (_mm_cvtpd_ps): Likewise.
22981 (_mm_cvttpd_epi32): Likewise.
22982
22983 PR target/89338
22984 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22985 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22986
22987 PR target/89339
22988 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22989
22990 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22991
22992 PR target/88530
22993 * common/config/aarch64/aarch64-common.c
22994 (struct aarch64_option_extension): Add is_synthetic.
22995 (all_extensions): Use it.
22996 (TARGET_OPTION_INIT_STRUCT): Define hook.
22997 (struct gcc_targetm_common): Moved to end.
22998 (all_extensions_by_on): New.
22999 (opt_ext_cmp, typedef opt_ext): New.
23000 (aarch64_option_init_struct): New.
23001 (aarch64_contains_opt): New.
23002 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
23003 * config/aarch64/aarch64-option-extensions.def
23004 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
23005 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
23006 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
23007 Set is_synthetic to false.
23008 (crypto): Set is_synthetic to true.
23009 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
23010 SYNTHETIC.
23011
23012 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23013
23014 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23015 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
23016 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23017 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
23018 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
23019 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
23020 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
23021 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
23022 Rename ...
23023 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
23024 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23025 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
23026 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
23027 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
23028 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
23029 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
23030 vfmlsl_laneq_high_f16): ... To this.
23031 * config/arm/neon.md: Update comments.
23032
23033 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23034
23035 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23036 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
23037 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23038 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
23039 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
23040 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
23041 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
23042 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
23043 Rename ...
23044 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
23045 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23046 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
23047 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
23048 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
23049 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
23050 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
23051 vfmlslq_laneq_high_f16): ... To this.
23052
23053 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
23054
23055 PR rtl-optimization/86096
23056 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
23057 comparing mw_order values.
23058
23059 2019-02-25 Jakub Jelinek <jakub@redhat.com>
23060
23061 PR target/89434
23062 * config/arm/arm.md (*subsi3_carryin_const): Use
23063 arm_neg_immediate_operand predicate instead of
23064 arm_not_immediate_operand, "L" constraint instead of "K" and
23065 print it using %n2 instead of %B2.
23066 (*subsi3_carryin_const0): New define_insn.
23067 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23068 instead of arm_not_operand and "I" constraint instead of "K" and
23069 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23070 another match_operand and in the condition check that it is negation
23071 of operands[2].
23072 (*subsi3_carryin_compare_const0): New define_ins.
23073 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23074 *subsi3_carryin_const.
23075 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23076 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23077
23078 PR target/89438
23079 * config/arm.vfp.md (*negdf2_vfp): Use
23080 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23081 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23082
23083 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23084
23085 PR rtl-optimization/89445
23086 * simplify-rtx.c (simplify_ternary_operation): Don't use
23087 simplify_merge_mask on operands that may trap.
23088 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23089 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23090 second operand is CONST_VECTOR, check if any element could be zero.
23091 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23092 their operands can trap.
23093
23094 2019-02-23 Martin Sebor <msebor@redhat.com>
23095
23096 * gimple-ssa-sprintf.c (target_strtol): Rename...
23097 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23098 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23099 check for range error.
23100
23101 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23102
23103 PR driver/69471
23104 * opts-common.c (prune_options): Also prune joined switches
23105 with Negative and RejectNegative.
23106 * config/i386/i386.opt (march=): Add Negative(march=).
23107 (mtune=): Add Negative(mtune=).
23108 * doc/options.texi: Document Negative used together with Joined
23109 and RejectNegative.
23110
23111 2019-02-22 Martin Sebor <msebor@redhat.com>
23112
23113 * doc/extend.texi (Other Builtins): Add
23114 __builtin_is_constant_evaluated.
23115
23116 2019-02-22 Richard Biener <rguenther@suse.de>
23117
23118 PR tree-optimization/87609
23119 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23120
23121 2019-02-22 Jeff Law <law@redhat.com>
23122
23123 PR rtl-optimization/87761
23124 * config/mips/mips.md: Add new combiner pattern to recognize
23125 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23126
23127 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23128
23129 PR target/89324
23130 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23131 destination register in peepholes generating patterns for ADDS/SUBS.
23132 (add<mode>3_compare0,
23133 *addsi3_compare0_uxtw, add<mode>3_compareC,
23134 add<mode>3_compareV_imm, add<mode>3_compareV,
23135 *adds_<optab><ALLX:mode>_<GPI:mode>,
23136 *subs_<optab><ALLX:mode>_<GPI:mode>,
23137 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23138 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23139 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23140 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23141 sub<mode>3_compare1): Allow stack pointer for source register.
23142 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23143
23144 2019-02-22 Martin Sebor <msebor@redhat.com>
23145
23146 PR tree-optimization/88993
23147 PR tree-optimization/88853
23148 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23149 New helper.
23150 (sprintf_dom_walker::call_info::is_string_func): New helper.
23151 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23152 for formatted string functions.
23153 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23154
23155 2019-02-22 Martin Sebor <msebor@redhat.com>
23156
23157 PR c/89425
23158 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23159 unreachable subexpressions.
23160
23161 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23162 Hongtao Liu <hongtao.liu@intel.com>
23163 Sunil K Pandey <sunil.k.pandey@intel.com>
23164
23165 PR target/87007
23166 * config/i386/i386-passes.def: Add
23167 pass_remove_partial_avx_dependency.
23168 * config/i386/i386-protos.h
23169 (make_pass_remove_partial_avx_dependency): New.
23170 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23171 New function.
23172 (pass_data_remove_partial_avx_dependency): New.
23173 (pass_remove_partial_avx_dependency): Likewise.
23174 (make_pass_remove_partial_avx_dependency): Likewise.
23175 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23176 (*extendsfdf2): Add avx_partial_xmm_update.
23177 (truncdfsf2): Likewise.
23178 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23179 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23180
23181 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23182
23183 PR middle-end/85598
23184 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23185 analysis for pass.
23186
23187 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23188
23189 PR target/89444
23190 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23191 (PTA_SKYLAKE): Add PTA_AES.
23192 (PTA_GOLDMONT): Likewise.
23193
23194 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23195
23196 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23197 instruction if enabled.
23198 (aarch64_override_options): Remove reference to return address key.
23199
23200 2019-02-22 Richard Biener <rguenther@suse.de>
23201
23202 PR tree-optimization/89440
23203 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23204 not necessary assert.
23205
23206 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23207
23208 PR fortran/72741
23209 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23210 (oacc_replace_fn_attrib_attr): ... this new function.
23211 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23212 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23213
23214 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23215
23216 * config/arm/arm-cpus.in (ares): Rename to...
23217 (neoverse-n1): ... This. Add ares as alias.
23218 * config/arm/arm-tables.opt: Regenerate.
23219 * config/arm/arm-tune.md: Likewise.
23220 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23221
23222 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23223
23224 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23225 * config/aarch64/aarch64-tune.md: Regenerate.
23226 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23227
23228 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23229
23230 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23231 (neoversen1_tunings): ... This.
23232 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23233 (neoverse-n1): New CPU.
23234 * config/aarch64/aarch64-tune.md: Regenerate.
23235 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23236
23237 2019-02-22 Richard Biener <rguenther@suse.de>
23238
23239 PR middle-end/87609
23240 * cfghooks.h (dependence_hash): New typedef.
23241 (struct copy_bb_data): New type.
23242 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23243 (duplicate_block): Likewise.
23244 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23245 (copy_bbs): Create and pass down copy_bb_data.
23246 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23247 (rtl_duplicate_bb): Likewise.
23248 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23249 remap dependence info.
23250
23251 2019-02-22 Richard Biener <rguenther@suse.de>
23252
23253 PR tree-optimization/87609
23254 * tree-core.h (tree_base): Document special clique values.
23255 * tree-inline.c (remap_dependence_clique): Do not use the
23256 special clique value of one.
23257 (maybe_set_dependence_info): Use clique one.
23258 (clear_dependence_clique): New callback.
23259 (compute_dependence_clique): Clear clique one from all refs
23260 before assigning it (again).
23261
23262 2019-02-21 Martin Sebor <msebor@redhat.com>
23263
23264 * doc/extend.texi (__clear_cache): Correct signature.
23265
23266 2019-02-21 Ian Lance Taylor <iant@golang.org>
23267
23268 PR go/89170
23269 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23270 than output_constant_def.
23271 (add_constant_to_table): New static function.
23272 (output_constant_def): Call add_constant_to_table.
23273 (tree_output_constant_def): Likewise.
23274
23275 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23276
23277 PR c++/89285
23278 * builtins.c (fold_builtin_arith_overflow): If first two args are
23279 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23280 to ifn.
23281
23282 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23283
23284 PR target/87412
23285 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23286 error for -mindirect-branch/-mfunction-return with incompatible
23287 -fcf-protection.
23288
23289 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23290
23291 PR bootstrap/88714
23292 * constraints.md (q): Remove.
23293 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23294 instead of q.
23295
23296 2019-02-21 Martin Jambor <mjambor@suse.cz>
23297
23298 PR hsa/89302
23299 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23300 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23301 (omp_adjust_for_condition): ...here. Added necessary parameters.
23302 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23303 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23304 proper values to new parameters of omp_adjust_for_condition.
23305
23306 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23307
23308 PR middle-end/89412
23309 * expr.c (expand_assignment): If result is a MEM, use change_address
23310 instead of simplify_gen_subreg.
23311
23312 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23313 David Malcolm <dmalcolm@redhat.com>
23314
23315 PR middle-end/89091
23316 * fold-const.c (decode_field_reference): Return NULL_TREE if
23317 lang_hooks.types.type_for_size returns NULL. Check it before
23318 overwriting *exp_. Use return NULL_TREE instead of return 0.
23319
23320 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23321
23322 PR middle-end/88074
23323 PR middle-end/89415
23324 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23325 buggy mpc_norm.
23326
23327 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23328
23329 PR target/89397
23330 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23331 TARGET_SSE in addition to TARGET_SSE_MATH.
23332
23333 (ix86_excess_precision): Ditto.
23334 (ix86_float_exceptions_rounding_supported_p): Ditto.
23335 (use_rsqrt_p): Ditto.
23336 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23337
23338 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23339
23340 PR c/89410
23341 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23342 linenum_arith_t when determining if two adjacent line spans are
23343 close enough to merge.
23344 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23345 lines within each line_span.
23346
23347 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23348
23349 PR target/86487
23350 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23351 paradoxical SUBREGS.
23352
23353 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23354
23355 PR target/88100
23356 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23357 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23358 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23359 range checking it.
23360
23361 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23362
23363 * config/gcn/gcn.c (print_operand): Fix typo.
23364
23365 2019-02-19 Richard Biener <rguenther@suse.de>
23366
23367 PR middle-end/88074
23368 * toplev.c (do_compile): Initialize mpfr's exponent range
23369 based on available float modes.
23370
23371 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23372
23373 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23374 as long as the epilogue isn't completed.
23375
23376 2019-02-18 Martin Sebor <msebor@redhat.com>
23377
23378 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23379 __has_cpp_attribute, and __has_include.
23380
23381 2019-02-18 Martin Sebor <msebor@redhat.com>
23382
23383 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23384
23385 2019-02-18 Martin Sebor <msebor@redhat.com>
23386
23387 PR middle-end/89294
23388 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23389 expression.
23390 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23391
23392 2019-02-18 Richard Biener <rguenther@suse.de>
23393
23394 PR tree-optimization/89296
23395 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23396 of no-warning flag to cases that might emit the bogus warning.
23397
23398 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23399
23400 PR bootstrap/88714
23401 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23402 "q" constraint.
23403 * config/arm/vfp.md (*movdi_vfp): Likewise.
23404 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23405 "q" constraint for operands[0].
23406
23407 PR target/89369
23408 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23409 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23410 pattern in a temporary buffer.
23411 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23412 than 64-operands[2].
23413
23414 PR target/89361
23415 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23416 s390_indirect_branch_settings): Define unconditionally.
23417 (s390_set_current_function): Likewise, but guard the whole body except
23418 the s390_indirect_branch_settings call with
23419 #if S390_USE_TARGET_ATTRIBUTE.
23420 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23421
23422 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23423 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23424 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23425 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23426 HOST_WIDE_INT_1U instead of 1ULL.
23427 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23428 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23429 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23430 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23431 instead of 1UL.
23432 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23433 instead of 1ul.
23434
23435 2019-02-18 Martin Jambor <mjambor@suse.cz>
23436
23437 PR tree-optimization/89209
23438 * tree-sra.c (create_access_replacement): New optional parameter
23439 reg_tree. Use it as a type if non-NULL and access type is not of
23440 a register type.
23441 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23442 to create_access_replacement.
23443 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23444 Check lacc is non-NULL before attempting to re-create it on the RHS.
23445
23446 2019-02-18 Martin Liska <mliska@suse.cz>
23447
23448 PR ipa/89306
23449 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23450 by default.
23451 (symbol_table::free_edge): Recycle m_summary_id.
23452 * cgraph.h (get_summary_id): New.
23453 (symbol_table::release_symbol): Set m_summary_id to -1
23454 by default.
23455 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23456 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23457 function_summary to fast_function_summary.
23458 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23459 * ipa-pure-const.c (class funct_state_summary_t):
23460 Switch from function_summary to fast_function_summary.
23461 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23462 (class ipa_ref_opt_summary_t): Switch from function_summary
23463 to fast_function_summary.
23464 * symbol-summary.h (class function_summary_base): New class
23465 that is created from base of former function_summary.
23466 (function_summary_base::unregister_hooks): New.
23467 (class function_summary): Inherit from function_summary_base.
23468 (class call_summary_base): New class
23469 that is created from base of former call_summary.
23470 (class call_summary): Inherit from call_summary_base.
23471 (struct is_same): New.
23472 (class fast_function_summary): New summary class.
23473 (class fast_call_summary): New summary class.
23474 * vec.h (vec_safe_grow_cleared): New function.
23475
23476 2019-02-18 Martin Liska <mliska@suse.cz>
23477
23478 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23479 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23480 * doc/tm.texi: Document new target hook.
23481 * doc/tm.texi.in: Likewise.
23482 * target.def: Add new target macro.
23483 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23484 suffixes.
23485
23486 2019-02-17 Alan Modra <amodra@gmail.com>
23487
23488 PR target/89271
23489 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23490 output reg on add insn.
23491 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23492
23493 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23494
23495 PR target/89372
23496 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23497 (PMULHRSW): Likewise.
23498 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23499 TARGET_AVX2.
23500 (ssse3_pmulhrswv4hi3): New expander.
23501
23502 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23503
23504 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23505 MMX. Add isa attribute.
23506
23507 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23508
23509 PR rtl-optimization/66152
23510 * builtins.h (c_readstr): Declare.
23511 * builtins.c (c_readstr): Remove forward declaration. Add
23512 null_terminated_p argument, if false, read all bytes from the
23513 string instead of stopping after '\0'.
23514 * expr.c (string_cst_read_str): New function.
23515 (store_expr): Use string_cst_read_str instead of
23516 builtin_strncpy_read_str. Try to store by pieces the whole
23517 exp_len first, and only if that fails, split it up into
23518 store by pieces followed by clear_storage. Formatting fix.
23519
23520 * config/i386/i386.md (*movqi_internal): Remove static from
23521 buf variable. Use output_asm_insn (buf, operands); return "";
23522 instead of return buf;.
23523 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23524 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23525 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23526
23527 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23528
23529 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23530 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23531 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23532 (CC1_SPEC): Likewise.
23533 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23534
23535 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23536
23537 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23538 the base address on 64-bit strict-alignment platforms.
23539
23540 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23541
23542 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23543
23544 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23545
23546 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23547
23548 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23549
23550 PR rtl-optimization/88308
23551 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23552 on copied instruction.
23553
23554 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23555
23556 * final.c (insn_current_reference_address): Replace test on JUMP_P
23557 with test on jump_to_label_p.
23558 * config/visium/visium-passes.def: New file.
23559 * config/visium/t-visium (PASSES_EXTRA): Define.
23560 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23561 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23562 (TRAMPOLINE_ALIGNMENT): Define.
23563 * config/visium/visium.c (visium_option_override): Do not register
23564 the machine-specific reorg pass here.
23565 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23566 for the GR6.
23567 (output_branch): Adjust threshold for long branch instruction.
23568 * config/visium/visium.md (cpu): Move around.
23569 (length): Adjust for the GR6.
23570
23571 2019-02-15 Richard Biener <rguenther@suse.de>
23572 Jakub Jelinek <jakub@redhat.com>
23573
23574 PR tree-optimization/89278
23575 * tree-loop-distribution.c: Include tree-eh.h.
23576 (generate_memset_builtin, generate_memcpy_builtin): Call
23577 rewrite_to_non_trapping_overflow on builtin->size before passing it
23578 to force_gimple_operand_gsi.
23579
23580 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23581
23582 PR other/89342
23583 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23584 optimize_debug.
23585 * opth-gen.awk: Likewise.
23586
23587 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23588
23589 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23590 Enable MMX, SSE and SSE2 by default.
23591 * config/i386/i386.c (ix86_option_override_internal): Do not
23592 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23593
23594 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23595
23596 PR rtl-optimization/89354
23597 * combine.c (make_extraction): Punt if extraction_mode is narrower
23598 than len bits.
23599
23600 2019-02-14 Maya Rashish <coypu@sdf.org>
23601
23602 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23603 * config/netbsd-d.c: New file.
23604 * config/t-netbsd: Add netbsd-d.o
23605
23606 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23607
23608 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23609 affects_type_identity to true for aarch64_vector_pcs.
23610 (aarch64_comp_type_attributes): New function.
23611 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23612
23613 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23614
23615 PR target/88850
23616 * config/arm/iterators.md (ANY64): Add V4HF.
23617
23618 2019-02-14 Martin Liska <mliska@suse.cz>
23619
23620 PR rtl-optimization/89242
23621 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23622 process a transformation.
23623
23624 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23625
23626 PR tree-optimization/89314
23627 * fold-const.c (fold_binary_loc): Cast strlen argument to
23628 const char * before dereferencing it. Formatting fixes.
23629
23630 PR middle-end/89284
23631 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23632
23633 2019-02-13 Ian Lance Taylor <iant@golang.org>
23634
23635 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23636 and set current index for other optimizations.
23637
23638 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23639
23640 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23641 nonimmediate_operand as operand 2 predicate.
23642 (vec_set<VF2_512_256:mode>_0): Ditto.
23643 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23644 (*vec_concatv2si): Remove alternative 2.
23645 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23646 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23647 (vec_concatv2di): Split alternatives 4,5,6 to ...
23648 (*vec_concatv2di_0) ... new pattern.
23649
23650 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23651
23652 PR target/89190
23653 * config/arm/arm.c (ldm_stm_operation_p) Set
23654 addr_reg_in_reglist correctly for first register.
23655 (load_multiple_sequence): Remove dead base check.
23656 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23657
23658 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23659
23660 PR target/88847
23661 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23662 Expose as @aarch64_pred_mov.
23663 * config/aarch64/aarch64.c (aarch64_classify_address):
23664 Use expand_insn which legitimizes operands.
23665
23666 2019-02-13 Martin Liska <mliska@suse.cz>
23667
23668 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23669 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23670 and pointer_offset fields.
23671 (initialize_argument_information): Remove usage of dead
23672 fields.
23673 * cgraph.h (struct cgraph_thunk_info): Remove
23674 add_pointer_bounds_args.
23675 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23676 fields.
23677 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23678 fields.
23679 * config/i386/i386.c (ix86_function_arg_advance): Remove
23680 unrelated comment.
23681 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23682 (def_builtin): Remove usage of dead fields.
23683 (ix86_add_new_builtins): Likewise.
23684 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23685 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23686 (sem_function::init): Likewise.
23687 (sem_variable::merge): Likewise.
23688 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23689 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23690 * lto-cgraph.c (lto_output_node): Likewise.
23691 (lto_output_varpool_node): Likewise.
23692 (input_node): Likewise.
23693 (input_varpool_node): Likewise.
23694 * lto-streamer-out.c (lto_output): Likewise.
23695 * tree-inline.c (expand_call_inline): Remove usage of
23696 assign_stmts.
23697 * tree-inline.h (struct copy_body_data): Likewise.
23698 * varpool.c (varpool_node::dump): Likewise.
23699
23700 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23701
23702 PR middle-end/89303
23703 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23704 into pt->vars_contains_escaped_heap instead of setting
23705 pt->vars_contains_escaped_heap to it.
23706
23707 PR middle-end/89281
23708 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23709 INTVAL (size), compare it to GET_MODE_MASK instead of
23710 1 << GET_MODE_BITSIZE.
23711
23712 PR target/89290
23713 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23714 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23715 -mcmodel=large.
23716
23717 2019-02-13 Martin Liska <mliska@suse.cz>
23718
23719 PR lto/88858
23720 * cfgrtl.c (remove_barriers_from_footer): New function.
23721 (try_redirect_by_replacing_jump): Use it.
23722 (cfg_layout_redirect_edge_and_branch): Likewise.
23723
23724 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23725
23726 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23727 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23728 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23729 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23730 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23731 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23732 New BU_CRYPTO_2.
23733 * config/rs6000/rs6000.c (builtin_function_type)
23734 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23735 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23736 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23737 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23738 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23739
23740 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23741
23742 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23743 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23744
23745 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23746
23747 PR target/89229
23748 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23749 268678 and revision 268657.
23750 (*movti_internal): Likewise.
23751
23752 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23753
23754 PR target/89233
23755 * config/s390/s390.c (s390_decompose_address): Update comment.
23756 (s390_check_qrst_address): Reject invalid address forms after
23757 LRA.
23758
23759 2019-02-12 Martin Liska <mliska@suse.cz>
23760
23761 PR lto/88876
23762 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23763 we need default values of funct_state for a function that
23764 is not optimized.
23765
23766 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23767
23768 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23769 the object to pick the size of stores on strict-alignment platforms.
23770
23771 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23772 (*movdi_insn_sp32): Likewise.
23773 (*movdi_insn_sp64): Likewise.
23774
23775 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23776
23777 PR lto/88677
23778 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23779 types that needs constructiong.
23780 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23781
23782 2019-02-12 Richard Biener <rguenther@suse.de>
23783
23784 PR tree-optimization/89253
23785 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23786 duplicate the loop.
23787
23788 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23789
23790 PR lto/88147
23791 * input.c (selftest::test_line_offset_overflow): New selftest.
23792 (selftest::input_c_tests): Call it.
23793
23794 2019-02-11 Martin Sebor <msebor@redhat.com>
23795
23796 PR tree-optimization/88771
23797 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23798 when -Wstringop-overflow is set.
23799 (builtin_memref::builtin_memref): Adjust excessive upper bound
23800 only when lower bound is not excessive.
23801 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23802 -Wstringop-ovefflow.
23803 (maybe_diag_offset_bounds): Rename...
23804 (maybe_diag_access_bounds): ...to this.
23805 (check_bounds_or_overlap): Adjust for name change above.
23806
23807 2019-02-11 Martin Sebor <msebor@redhat.com>
23808
23809 PR c++/87996
23810 * builtins.c (max_object_size): Move from here...
23811 * builtins.h (max_object_size): ...and here...
23812 * tree.c (max_object_size): ...to here...
23813 * tree.h (max_object_size): ...and here.
23814
23815 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23816
23817 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23818 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23819 for correct semantics.
23820
23821 2019-02-11 Alan Modra <amodra@gmail.com>
23822
23823 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23824 -mlongcall and -mpltseq.
23825 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23826 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23827 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23828 * config/rs6000/sysv4.opt (mpltseq): New option.
23829 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23830 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23831 support is lacking. Don't allow -mpltseq with -mbss-plt.
23832 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23833 -mpltseq given for ELFv1.
23834 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23835 Only use UNSPEC_PLTSEQ for inline PLT calls.
23836 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23837 use UNSPEC_PLTSEQ for inline PLT calls.
23838 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23839 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23840 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23841 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23842 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23843 (pltseq_mtctr_<mode>): Likewise.
23844
23845 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23846
23847 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23848 Solaris ld.
23849 * configure: Regenerate.
23850
23851 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23852
23853 PR bootstrap/88714
23854 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23855 instead of r.
23856
23857 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23858
23859 * function.c (assign_parm_setup_block): Use the stored
23860 size, not the passed size, when allocating stack-space,
23861 also for a parameter with alignment larger than
23862 MAX_SUPPORTED_STACK_ALIGNMENT.
23863
23864 2019-02-11 Martin Liska <mliska@suse.cz>
23865
23866 PR ipa/89009
23867 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23868 * ipa-inline.c (inline_small_functions): Likewise.
23869 * ipa-pure-const.c (propagate_pure_const): Likewise.
23870 (propagate_nothrow): Likewise.
23871 * ipa-reference.c (propagate): Likewise.
23872 * ipa-utils.c (struct searchc_env): Remove unused field.
23873 (searchc): Always search across AVAIL_INTERPOSABLE.
23874 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23875 the only called IPA pure const can properly not propagate
23876 across interposable boundary.
23877 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23878
23879 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23880
23881 * config/nds32/nds32.md (call_internal, call_value_internal,
23882 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23883
23884 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23885
23886 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23887 typo.
23888
23889 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23890
23891 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23892 in comments
23893
23894 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23895
23896 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23897
23898 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23899
23900 PR tree-optimization/89268
23901 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23902 if preds is non-NULL.
23903
23904 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23905
23906 PR lto/89272
23907 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23908 polymorphic types.
23909
23910 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23911
23912 * config/nds32/nds32.md (trap): New pattern.
23913
23914 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23915
23916 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23917 dwarf span.
23918
23919 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23920
23921 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23922 to split POST_INC.
23923
23924 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23925
23926 * ipa-visibility.c (localize_node): Also do not localize
23927 LDPR_PREVAILING_DEF_IRONLY_EXP.
23928
23929 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23930
23931 PR lto/87957
23932 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23933 instead of type_with_linkage.
23934
23935 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23936
23937 PR ipa/88755
23938 * params.def (uninlined-function-insns, uninlined-function-time,
23939 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23940 bound so we don't get overflows.
23941
23942 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23943
23944 * config/rs6000/rs6000-string.c (expand_compare_loop,
23945 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23946 memcmp/strncmp.
23947
23948 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23949
23950 PR middle-end/89246
23951 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23952 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23953 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23954
23955 2019-02-09 Alan Modra <amodra@gmail.com>
23956
23957 PR target/88343
23958 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23959 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23960 setup.
23961
23962 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23963
23964 PR middle-end/88560
23965 * lra-constraints.c (process_alt_operands): Don't increase reject
23966 for memory when offset memory is required.
23967
23968 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23969
23970 * config/s390/vector.md: Implement vector copysign.
23971
23972 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23973
23974 * expr.c (expand_constructor): Correct indentations.
23975
23976 2019-02-08 Richard Biener <rguenther@suse.de>
23977
23978 PR tree-optimization/89247
23979 * tree-if-conv.c: Include tree-cfgcleanup.h.
23980 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23981 (tree_if_conversion): Pass through predicate vector.
23982 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23983 inline, see if any if-converted loops we refrece in
23984 LOOP_VECTORIZED calls vanished and fixup.
23985 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23986
23987 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23988
23989 * config/s390/constraints.md (jdd): New constraint.
23990
23991 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23992
23993 PR target/89229
23994 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23995 upper 16 vector registers without TARGET_AVX512VL.
23996 (*movti_internal): Likewise.
23997
23998 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23999
24000 PR rtl-optimization/89234
24001 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
24002 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
24003 (copy_reg_eh_region_note_backward): Likewise.
24004
24005 2019-02-08 Richard Biener <rguenther@suse.de>
24006
24007 PR middle-end/89223
24008 * tree-data-ref.c (initialize_matrix_A): Fail if constant
24009 doesn't fit in HWI.
24010 (analyze_subscript_affine_affine): Handle failure from
24011 initialize_matrix_A.
24012
24013 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24014
24015 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
24016 cfun everywhere.
24017
24018 2019-02-07 David Malcolm <dmalcolm@redhat.com>
24019
24020 PR tree-optimization/86637
24021 PR tree-optimization/89235
24022 * tree-vect-loop.c (optimize_mask_stores): Add an
24023 auto_purge_vect_location sentinel to ensure that vect_location is
24024 purged on exit.
24025 * tree-vectorizer.c
24026 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
24027 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
24028 to ensure that vect_location is purged on exit.
24029 (pass_slp_vectorize::execute): Likewise, replacing the manual
24030 reset.
24031 * tree-vectorizer.h (class auto_purge_vect_location): New class.
24032
24033 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24034
24035 * config/aarch64/iterators.md (max_opp): New code_attr.
24036 (USMAX): New code iterator.
24037 * config/aarch64/predicates.md (aarch64_smin): New predicate.
24038 (aarch64_smax): Likewise.
24039 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
24040 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
24041 MINUS (MAX MIN).
24042
24043 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
24044
24045 PR target/89229
24046 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
24047 for TARGET_AVX512VL.
24048 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
24049
24050 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
24051
24052 * config/s390/s390-builtin-types.def: Add new types.
24053 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
24054 (s390_vec_xlw4): Make the memory operand into a const pointer.
24055 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
24056 float.
24057 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
24058 a new vector type with the alignment of the scalar memory operand.
24059
24060 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
24061 Jakub Jelinek <jakub@redhat.com>
24062
24063 PR bootstrap/88714
24064 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24065 arm_count_ldrdstrd_insns): New declarations.
24066 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24067 MINUS.
24068 (valid_operands_ldrd_strd): New function.
24069 (arm_count_ldrdstrd_insns): New function.
24070 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24071 sets instead of single DImode set and define new insns to match this.
24072
24073 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24074
24075 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24076 Make it a C initializer.
24077
24078 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24079
24080 PR/target 88850
24081 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24082
24083 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24084
24085 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24086 Use neon_dot<q> for type.
24087 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24088
24089 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24090
24091 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24092 Use neon_dot<q> for type.
24093 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24094 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24095
24096 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24097
24098 PR rtl-optimization/89225
24099 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24100 sizes check.
24101
24102 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24103
24104 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24105 after restoring registers saved to allocate the frame on Windows.
24106
24107 2019-02-06 Richard Biener <rguenther@suse.de>
24108
24109 PR tree-optimization/89182
24110 * graphite.h (cached_scalar_evolution_in_region): Declare.
24111 * graphite.c (struct seir_cache_key): New.
24112 (struct sese_scev_hash): Likewise.
24113 (seir_cache): New global.
24114 (cached_scalar_evolution_in_region): New function.
24115 (graphite_transform_loops): Allocate and release seir_cache.
24116 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24117 cached_scalar_evolution_in_region.
24118 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24119 Simplify.
24120 (scop_detection::graphite_can_represent_expr: Use
24121 cached_scalar_evolution_in_region.
24122 (scop_detection::stmt_simple_for_scop_p): Likewise.
24123 (find_params_in_bb): Likewise.
24124 (gather_bbs::before_dom_children): Likewise.
24125 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24126 (add_loop_constraints): Likewise.
24127
24128 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24129
24130 PR middle-end/89210
24131 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24132 operand to new_unary_operation only if both element types are integral
24133 and it isn't a widening conversion. Return NULL_TREE if
24134 new_unary_operation failed.
24135
24136 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24137
24138 PR target/88856
24139 * config/s390/s390.md: Remove load and test FP splitter.
24140
24141 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24142
24143 PR target/89112
24144 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24145 expand_compare_loop, expand_block_compare_gpr,
24146 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24147 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24148 #include "profile-count.h" and "predict.h" for types and functions
24149 needed to work with REG_BR_PROB notes.
24150
24151 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24152
24153 PR target/89112
24154 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24155 for the long branch case.
24156
24157 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24158
24159 PR target/89188
24160 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24161 can throw, non-call exceptions are enabled and we can't delete
24162 dead exceptions or alter cfg. Set must_clean if
24163 delete_insn_and_edges returns true, don't set it blindly for calls.
24164 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24165
24166 PR rtl-optimization/89195
24167 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24168 of the original MEM.
24169
24170 2019-02-05 Martin Liska <mliska@suse.cz>
24171
24172 PR gcov-profile/89000
24173 * gcov.c (function_summary): Remove argument.
24174 (file_summary): New function.
24175 (print_usage): Replace tabs with spaces.
24176 (generate_results): Use new function file_summary.
24177
24178 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24179
24180 PR target/89186
24181 * optabs.c (prepare_cmp_insn): Pass x and y to
24182 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24183
24184 2019-02-05 Richard Biener <rguenther@suse.de>
24185
24186 PR middle-end/89150
24187 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24188 (struct bitmap_element): Drop chain_prev so we properly recurse on
24189 the prev member, supporting tree views.
24190 (struct bitmap_head): GTY skip the obstack member.
24191
24192 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24193
24194 PR c/88698
24195 * doc/extend.texi (Vector Extensions): Add an example of using vector
24196 types together with x86 intrinsics.
24197
24198 2019-02-04 Alan Modra <amodra@gmail.com>
24199
24200 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24201 str[] size to 160, and comment.
24202
24203 2019-02-04 Alan Modra <amodra@gmail.com>
24204
24205 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24206 (rs6000_pltseq_template): Guard output of TLS markers with
24207 TARGET_TLS_MARKERS.
24208 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24209 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24210 to use inline PLT sequences.
24211 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24212 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24213 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24214
24215 2019-02-04 Martin Liska <mliska@suse.cz>
24216
24217 PR ipa/88985
24218 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24219 out when ipa_fn_summaries does not contain entry for callee.
24220
24221 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24222
24223 * config/sparc/sparc.h: Remove superfluous blank lines.
24224 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24225 (got_register_rtx): ...this.
24226 (sparc_got): Adjust to above renaming.
24227 (sparc_tls_got): Likewise.
24228 (sparc_delegitimize_address): Likewise.
24229 (sparc_output_mi_thunk): Likewise.
24230 (sparc_init_pic_reg): Likewise.
24231 (save_local_or_in_reg_p): Fix test on the GOT register.
24232 (USE_HIDDEN_LINKONCE): Move around.
24233 (get_pc_thunk_name): Likewise.
24234 (gen_load_pcrel_sym): Likewise.
24235 (load_got_register): Likewise.
24236
24237 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24238
24239 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24240 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24241
24242 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24243
24244 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24245 into consideration.
24246
24247 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24248
24249 * config.gcc (with_nds32_lib, glibc):
24250 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24251 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24252 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24253
24254 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24255
24256 PR target/89071
24257 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24258 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24259 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24260 (*rcpsf2_sse): Ditto.
24261 (*rsqrtsf2_sse): Ditto.
24262 (sse4_1_round<mode<2): Ditto.
24263
24264 2019-02-03 Richard Biener <rguenther@suse.de>
24265
24266 PR debug/87295
24267 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24268 orig.
24269
24270 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24271
24272 PR middle-end/87887
24273 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24274 Punt with warning on aggregate return or argument types. Ignore
24275 type/mode checking for uniform arguments.
24276
24277 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24278
24279 * combine.c (try_combine): Do not print "Can't combine" messages unless
24280 printing failed combination attempts.
24281
24282 2019-02-01 Martin Jambor <mjambor@suse.cz>
24283
24284 PR hsa/87863
24285 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24286 segment and global segment variables before making them static.
24287
24288 2019-02-01 Martin Jambor <mjambor@suse.cz>
24289
24290 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24291 missed optimization dump with dump_enabled_p.
24292
24293 2019-02-01 Richard Biener <rguenther@suse.de>
24294
24295 PR middle-end/88597
24296 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24297 the instantiate cache.
24298 (instantiate_scev_binary): Elide second operand procesing
24299 if equal to the first.
24300 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24301 (chrec_contains_undetermined): Likewise.
24302 (tree_contains_chrecs): Likewise.
24303
24304 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24305
24306 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24307
24308 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24309
24310 PR tree-optimization/89143
24311 * wide-int-range.h (wide_int_range_absu): Declare.
24312 * wide-int-range.cc (wide_int_range_absu): New function.
24313 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24314
24315 PR tree-optimization/88107
24316 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24317 instead of assertion that eh_region_outermost is non-NULL, if it
24318 is NULL, set *ALL to true and return NULL.
24319 (move_sese_region_to_fn): Adjust caller, if all is set, call
24320 duplicate_eh_regions with NULL region.
24321
24322 2019-02-01 Richard Biener <rguenth@suse.de>
24323
24324 PR rtl-optimization/88593
24325 * mode-switching.c (optimize_mode_switching): Free dominators before
24326 calling cleanup_cfg.
24327
24328 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24329
24330 PR tree-optimization/88932
24331 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24332
24333 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24334
24335 PR middle-end/89137
24336 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24337 bogus clang warning.
24338
24339 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24340
24341 PR target/89071
24342 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24343 alternative to avoid partial SSE register stall for TARGET_AVX.
24344 (truncdfsf2): Ditto.
24345 (sse4_1_round<mode>2): Ditto.
24346
24347 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24348
24349 PR tree-optimization/89008
24350 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24351 process anything of the form X * 0.
24352
24353 2019-01-31 Richard Biener <rguenther@suse.de>
24354
24355 PR tree-optimization/89135
24356 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24357 with abnormal preds.
24358
24359 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24360
24361 PR sanitizer/89124
24362 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24363 always_inline callees into no_sanitize_address callers.
24364
24365 2019-01-31 Richard Biener <rguenther@suse.de>
24366
24367 PR rtl-optimization/89115
24368 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24369
24370 2019-01-30 Martin Sebor <msebor@redhat.com>
24371
24372 PR other/89106
24373 * doc/extend.texi (cast to a union): Correct and expand.
24374
24375 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24376
24377 PR rtl-optimization/87246
24378 * lra-constraints.c (simplify_operand_subreg): Reload memory
24379 in subreg if the address became invalid.
24380
24381 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24382
24383 PR target/87064
24384 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24385 Disable for little-endian.
24386
24387 2019-01-30 Richard Biener <rguenther@suse.de>
24388
24389 PR rtl-optimization/89115
24390 * opts.c (default_options_optimization): Reduce
24391 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24392 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24393 to the default.
24394
24395 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24396
24397 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24398 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24399 type of vector element when vec_extract is implemented by direct
24400 move.
24401
24402 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24403
24404 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24405
24406 2019-01-30 Richard Biener <rguenther@suse.de>
24407
24408 PR tree-optimization/89111
24409 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24410 canonicalization to appropriately sized access types.
24411
24412 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24413
24414 PR c++/89105
24415 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24416 for arguments to functions that are TU-local and shouldn't be
24417 referenced by assembly.
24418
24419 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24420
24421 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24422 after '='.
24423
24424 2019-01-29 Martin Sebor <msebor@redhat.com>
24425
24426 PR c/88956
24427 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24428
24429 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24430
24431 PR c++/66676
24432 PR ipa/89104
24433 * omp-simd-clone.c (simd_clone_clauses_extract)
24434 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24435 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24436
24437 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24438
24439 * config.gcc: Force .init_array for ARC.
24440
24441 2019-01-29 Richard Biener <rguenther@suse.de>
24442
24443 PR debug/87295
24444 * dwarf2out.c (collect_skeleton_dies): New helper.
24445 (copy_decls_for_unworthy_types): Call it.
24446 (build_abbrev_table): Assert we do not try to replace
24447 DW_AT_signature refs with local refs.
24448
24449 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24450
24451 PR middle-end/89002
24452 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24453 for lastprivate/linear IV, push gimplify context around gimplify_assign
24454 and, if it needed any temporaries, pop it into a gimple bind around the
24455 sequence.
24456
24457 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24458
24459 * common.opt (-Wattribute-alias): Remove "no-" from name.
24460 Make -Wattribute-alias command line option and
24461 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24462
24463 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24464
24465 PR target/89073
24466 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24467 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24468 x86 ISA options.
24469 (bmi2): Add missing @opindex.
24470 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24471 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24472 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24473 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24474 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24475 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24476 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24477 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24478 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24479 xsavec, xsaveopt and xsaves options.
24480
24481 2019-01-28 Richard Biener <rguenther@suse.de>
24482
24483 PR debug/89076
24484 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24485 support removal.
24486
24487 2019-01-28 Richard Biener <rguenther@suse.de>
24488
24489 PR tree-optimization/88739
24490 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24491 BIT_FIELD_REFs only are applied to mode-precision operands
24492 when they are integral.
24493 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24494 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24495 BIT_FIELD_REFs of non-mode-precision integral operands.
24496
24497 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24498
24499 PR target/87214
24500 * config/i386/sse.md
24501 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24502 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24503 first constants in pairs are multiples of 2. Formatting fixes.
24504 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24505 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24506 first constants in each quadruple are multiples of 4. Formatting fixes.
24507
24508 2019-01-26 Martin Jambor <mjambor@suse.cz>
24509
24510 PR ipa/88933
24511 * tree-inline.c: Include tree-cfgcleanup.h.
24512 (delete_unreachable_blocks_update_callgraph): Move...
24513 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24514 ...here, make externally visible, make second argument bool, adjust
24515 all callers.
24516 * tree-cfgcleanup.c: Include cgraph.h.
24517 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24518 Declare.
24519 * ipa-prop.c: Include tree-cfgcleanup.h.
24520 (ipcp_transform_function): Call
24521 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24522
24523 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24524
24525 PR rtl-optimization/88846
24526 * ira.c (process_set_for_memref_referenced_p): New.
24527 (memref_referenced_p): Add new param. Use
24528 process_set_for_memref_referenced_p. Add new switch cases.
24529 (memref_used_between_p): Pass new arg to memref_referenced_p.
24530
24531 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24532
24533 PR target/88469
24534 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24535 argument ABI_BREAK. Set to true if the calculated alignment has
24536 changed in gcc-9. Check bit-fields for their base type alignment.
24537 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24538 (aarch64_function_arg_boundary): Likewise.
24539 (aarch64_gimplify_va_arg_expr): Likewise.
24540
24541 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24542
24543 PR middle-end/89037
24544 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24545 instead of accessing TREE_INT_CST_ELT directly.
24546
24547 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24548
24549 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24550 fenv_exceptions description.
24551
24552 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24553
24554 PR rtl-optimization/87763
24555 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24556 Allow SUBREG when matching CC_NZmode compare.
24557
24558 2019-01-25 Richard Biener <rguenther@suse.de>
24559
24560 PR tree-optimization/89049
24561 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24562 Look at the pattern stmt to determine if the stmt is vectorized.
24563
24564 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24565
24566 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24567 (pred_mov<mode>): Handle all-register forms using both a new
24568 alternative and a split.
24569
24570 2019-01-25 Richard Biener <rguenther@suse.de>
24571
24572 PR tree-optimization/86865
24573 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24574 Reject non-do-while loops.
24575
24576 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24577
24578 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24579 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24580 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24581 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24582 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24583 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24584 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24585 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24586 vlogical_operand, gpc_reg_operand, int_reg_operand,
24587 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24588 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24589 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24590 (save_world_operation, restore_world_operation, lmw_operation,
24591 stmw_operation): Use MEM_P and REG_P.
24592 (tie_operand): Use MEM_P.
24593 (vrsave_operation, crsave_operation): Use REG_P.
24594 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24595 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24596 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24597 (call_operand): Use HARD_REGISTER_P.
24598 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24599 Use CONST_INT_P.
24600 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24601 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24602 quad_aligned_load_p, replace_swapped_aligned_store,
24603 recombine_lvx_pattern, replace_swapped_aligned_load,
24604 recombine_stvx_pattern): Use MEM_P.
24605 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24606 Use MEM_P and SYMBOL_REF_P.
24607 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24608 (insn_is_swappable_p): Use REG_P and MEM_P.
24609 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24610 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24611 Use CONST_INT_P.
24612 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24613 Use CONST_DOUBLE_P.
24614 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24615 CONST_WIDE_INT_P.
24616 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24617 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24618 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24619 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24620 reg_or_subregno:
24621 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24622 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24623 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24624 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24625 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24626 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24627 rs6000_split_logical_di): Use CONST_INT_P.
24628 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24629 REG_P and SYMBOL_REF_P.
24630 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24631 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24632 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24633 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24634 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24635 (small_data_operand, print_operand_address): Use CONST_INT_P and
24636 SYMBOL_REF_P.
24637 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24638 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24639 Use HARD_REGISTER_NUM_P.
24640 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24641 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24642 SUBREG_P and SYMBOL_REF_P.
24643 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24644 and HARD_REGISTER_NUM_P.
24645 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24646 reg_or_subregno.
24647 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24648 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24649 MEM_P and REG_P.
24650 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24651 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24652 find_addr_reg): Use REG_P.
24653 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24654 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24655 (offsettable_ok_by_alignment, constant_pool_expr_p,
24656 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24657 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24658 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24659 rs6000_assemble_integer, create_TOC_reference,
24660 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24661 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24662 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24663 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24664 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24665 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24666 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24667 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24668 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24669 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24670 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24671 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24672 and cbranch<mode>4): Use CONST_INT_P.
24673 (multiple define_splits): Use REG_P and SUBREG_P.
24674 (define_expands call, call_value): Use MEM_P.
24675 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24676 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24677 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24678 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24679 and HARD_REGISTER_NUM_P.
24680 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24681
24682 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24683
24684 PR rtl-optimization/88948
24685 * rtl.h (prepare_copy_insn): New prototype.
24686 * gcse.c (prepare_copy_insn): New function, split out from
24687 process_insert_insn.
24688 (process_insert_insn): Use prepare_copy_insn.
24689 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24690 instead of gen_move_insn.
24691
24692 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24693
24694 PR debug/89006
24695 * config/i386/i386.c (ix86_pic_register_p): Return true for
24696 UNSPEC_SET_GOT too.
24697
24698 PR tree-optimization/88964
24699 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24700 punt if HONOR_SNANS (chrec).
24701
24702 PR middle-end/89015
24703 * tree-nested.c (convert_nonlocal_reference_stmt,
24704 convert_local_reference_stmt, convert_tramp_reference_stmt,
24705 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24706 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24707 or GIMPLE_OMP_TASK.
24708
24709 PR tree-optimization/89027
24710 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24711 for "omp simd array" variables.
24712
24713 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24714
24715 PR target/88469
24716 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24717 force the alignment of m_val.
24718
24719 2019-01-24 Richard Biener <rguenther@suse.de>
24720
24721 PR lto/87187
24722 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24723 When in "legacy" debug mode make sure to reset self-origins.
24724
24725 2019-01-24 Martin Liska <mliska@suse.cz>
24726
24727 PR gcov-profile/88994
24728 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24729 result will be always smaller or equal to the original.
24730 * gcov.c (mangle_name): Fix else branch where we should
24731 also copy to PTR and shift the pointer.
24732
24733 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24734
24735 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24736 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24737
24738 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24739
24740 * common/config/i386/i386-common.c
24741 (OPTION_MASK_ISA_ENQCMD_SET,
24742 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24743 (ix86_handle_option): Handle -menqcmd.
24744 * config.gcc (enqcmdintrin.h): New header file.
24745 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24746 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24747 -menqcmd.
24748 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24749 function type.
24750 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24751 __builtin_ia32_enqcmds): New builtins.
24752 * config/i386/i386-c.c (__ENQCMD__): New macro.
24753 * config/i386/i386-option.c (ix86_target_string): Add
24754 -menqcmd.
24755 (ix86_valid_target_attribute_inner_p): Likewise.
24756 * config/i386/i386-expand.c
24757 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24758 IX86_BUILTIN_ENQCMDS.
24759 * config/i386/i386.h (TARGET_ENQCMD): New.
24760 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24761 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24762 (movdir64b_<mode>): Parameterize to enable share expansion code
24763 with ENQCMD in function ix86_expand_builtin.
24764 * config/i386/i386.opt: Add -menqcmd.
24765 * config/i386/immintrin.h: Include enqcmdintrin.h.
24766 * config/i386/enqcmdintrin.h: New intrinsic file.
24767 * doc/invoke.texi: Add -menqcmd.
24768
24769 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24770 Steve Ellcey <sellcey@marvell.com>
24771
24772 PR target/85711
24773 * recog.c (address_operand): Return false on wrong mode for address.
24774 (constrain_operands): Check for mode with 'p' constraint.
24775
24776 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24777
24778 PR target/88998
24779 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24780 Disparage MMX alternative.
24781 (sse2_cvtpd2pi): Ditto.
24782 (sse2_cvttpd2pi): Ditto.
24783
24784 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24785
24786 PR driver/89014
24787 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24788 use-after-free of the result of
24789 aarch64_get_extension_string_for_isa_flags.
24790
24791 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24792
24793 PR c/44715
24794 * doc/extend.texi: Document break and continue behavior in
24795 statement expressions.
24796
24797 2019-01-23 Richard Biener <rguenther@suse.de>
24798
24799 PR tree-optimization/89008
24800 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24801 not leave another stray operand.
24802
24803 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24804
24805 * BASE-VER: Bump to 9.0.1.
24806
24807 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24808
24809 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24810 thunk that returns by reference, use the type of the return object
24811 of the thunk instead of that of the alias to build the dereference.
24812
24813 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24814
24815 * config/arc/atomic.md: Add operand to DMB instruction.
24816
24817 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24818
24819 PR tree-optimization/88964
24820 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24821 build_zero_cst instead of build_int_cst. Return false for loop
24822 invariants which honor signed zeros.
24823
24824 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24825
24826 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24827
24828 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24829
24830 PR target/88965
24831 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24832 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24833 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24834
24835 PR middle-end/88968
24836 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24837 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24838
24839 PR target/87064
24840 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24841 Disable for little endian.
24842
24843 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24844
24845 PR target/88469
24846 * config/arm/arm.c (arm_needs_double_word_align): Check
24847 DECL_BIT_FIELD_TYPE.
24848
24849 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24850 H.J. Lu <hongjiu.lu@intel.com>
24851
24852 PR target/88909
24853 * config/i386/i386-builtin.def: Add mask2 to all builtin
24854 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24855 SPECIAL_ARGS.
24856 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24857 (BDESC_FIRST): Likewise.
24858 (define_builtin): Add an argument for mask2. Updated to handle
24859 both ix86_isa_flags and ix86_isa_flags2.
24860 (define_builtin_const): Likewise.
24861 (define_builtin_pure): Likewise.
24862 (define_builtin2): Deleted.
24863 (define_builtin_const2): Likewise.
24864 (builtin_description): Add a member, mask2.
24865 (bdesc_*): Add mask2 to builtin initializations.
24866 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24867 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24868 support.
24869 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24870
24871 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24872
24873 PR target/88954
24874 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24875 noplt attribute.
24876
24877 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24878
24879 PR target/88469
24880 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24881 alignment is dominated by a bitfield with 64-bit aligned base type.
24882 (arm_function_arg): Emit a warning if the alignment has changed since
24883 earlier GCC releases.
24884 (arm_function_arg_boundary): Likewise.
24885 (arm_setup_incoming_varargs): Likewise.
24886
24887 2019-01-22 Richard Biener <rguenther@suse.de>
24888
24889 PR tree-optimization/88862
24890 * graphite-scop-detection.c
24891 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24892
24893 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24894
24895 * doc/extend.tex (AMD GCN Function Attributes): New section.
24896 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24897 * doc/invoke.texi (AMD GCN Options): New section.
24898 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24899
24900 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24901
24902 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24903 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24904
24905 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24906
24907 PR tree-optimization/88044
24908 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24909 is false in the first iteration, but !every_iteration, return false
24910 instead of true with niter->niter zero.
24911
24912 PR rtl-optimization/88904
24913 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24914 any nonequal registers before processing BB_END (b).
24915
24916 PR target/88905
24917 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24918 GET_MODE (op0).
24919 (expand_binop_directly, expand_doubleword_clz,
24920 expand_doubleword_popcount, expand_ctz, expand_ffs,
24921 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24922
24923 PR rtl-optimization/49429
24924 PR target/49454
24925 PR rtl-optimization/86334
24926 PR target/88906
24927 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24928 addressable from here...
24929 (emit_block_op_via_libcall): ... to here.
24930
24931 2019-01-22 Richard Biener <rguenther@suse.de>
24932
24933 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24934 auto_vec for cost vector to fix memleak.
24935 (vectorize_fold_left_reduction): Properly gather SLP defs.
24936 (vectorizable_comparison): Do not swap operands to properly
24937 gather SLP defs.
24938
24939 2019-01-22 Alan Modra <amodra@gmail.com>
24940
24941 PR target/88614
24942 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24943 stays a reg. Allow a const_int.
24944 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24945 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24946 (IS_NOMARK_TLSGETADDR): Define.
24947 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24948 (rs6000_output_tlsargs): New function.
24949 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24950 __tls_get_addr call takes an arg.
24951 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24952 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24953 delete split..
24954 (call_value_nonlocal_sysv): ..or here, delete split.
24955 (tls_gdld_nomark): Delete.
24956 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24957 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24958 (call_value_nonlocal_sysv): Likewise.
24959 (call_value_nonlocal_sysv_secure): Likewise.
24960 (call_value_nonlocal_aix): Likewise.
24961 (call_value_indirect_aix): Likewise.
24962 (call_value_indirect_elfv2): Likewise.
24963 (call_value_local32, call_value_local64): Disable for no-mark tls.
24964 (call_value_local_aix): Likewise.
24965
24966 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24967
24968 PR target/88938
24969 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24970 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24971
24972 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24973
24974 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24975 string contents as hash_map keys.
24976
24977 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24978
24979 PR c/88928
24980 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24981 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24982 instead of TYPE_ALIGN.
24983 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24984 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24985 pointer from TYPE_STUB_DECL.
24986
24987 2019-01-21 Richard Biener <rguenther@suse.de>
24988
24989 PR tree-optimization/88934
24990 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24991 at the possibly non-constant operand.
24992 (vect_get_constant_vectors): Adjust.
24993
24994 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24995
24996 PR target/71659
24997 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24998 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24999 instead of _X86INTRIN_H_INCLUDED.
25000 * onfig/i386/clwbintrin.h: Likewise.
25001 * config/i386/pkuintrin.h: Likewise.
25002 * config/i386/prfchwintrin.h: Likewise.
25003 * config/i386/rdseedintrin.h: Likewise.
25004 * config/i386/wbnoinvdintrin.h: Likewise.
25005 * config/i386/xsavecintrin.h: Likewise.
25006 * config/i386/xsavesintrin.h: Likewise.
25007 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
25008 * config/i386/xsaveintrin.h: Likewise.
25009 * config/i386/xsaveoptintrin.h: Likewise.
25010 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
25011 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
25012 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
25013 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
25014 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
25015 * config/i386/immintrin.h: Here.
25016
25017 2019-01-20 Martin Jambor <mjambor@suse.cz>
25018
25019 PR ipa/87615
25020 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
25021 with aa_walk_budget.
25022 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
25023 aa_walk_budget_p parameter.
25024 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
25025 walk. Updated all callers.
25026 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
25027 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
25028 unmodified_parm.
25029 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
25030 parameter info. Extract info from fbi. Pass fbi to recursive calls
25031 and to unmodified_parm.
25032 (phi_result_unknown_predicate): New parameter fbi, removed parameter
25033 info, updated call to will_be_nonconstant_expr_predicate.
25034 (param_change_prob): New parameter fbi, limit AA walking.
25035 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
25036 calls to various above functions.
25037 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
25038 parameter. Use it to limit AA walking.
25039 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
25040 fbi, limit AA walk.
25041 (detect_type_change): New parameter fbi, pass it on to
25042 detect_type_change_from_memory_writes.
25043 (detect_type_change_ssa): Likewise.
25044 (aa_overwalked): Removed.
25045 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
25046 accordingly, adjust to the neew AA limiting scheme.
25047 (parm_ref_data_preserved_p): Likewise.
25048 (ipa_compute_jump_functions_for_edge): Adjust call to
25049 get_dynamic_type.
25050 (ipa_analyze_call_uses): Likewise.
25051 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
25052 (ipa_analyze_node): Initialize aa_walk_budget.
25053 (ipcp_transform_function): Likewise.
25054 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
25055 to get_dynamic_type.
25056
25057 2019-01-19 Jakub Jelinek <jakub@redhat.com>
25058
25059 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
25060 outside of #if CHECKING_P code.
25061
25062 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25063
25064 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25065 New function, split out from...
25066 (loop_versioning::analyze_stride): ...here.
25067 (loop_versioning::find_per_loop_multiplication): Use gassign.
25068 (loop_versioning::analyze_term_using_scevs): Return a success code.
25069 (loop_versioning::analyze_arbitrary_term): New function.
25070 (loop_versioning::analyze_address_fragment): Use
25071 analyze_arbitrary_term if all else fails.
25072
25073 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25074
25075 PR target/88892
25076 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25077 operands.
25078
25079 2019-01-18 Richard Biener <rguenther@suse.de>
25080
25081 PR tree-optimization/88903
25082 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25083 scalar stmts a SLP shift amount is composed of when detecting
25084 shifts by scalars.
25085
25086 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25087
25088 PR target/88799
25089 * config/arm/arm-cpus.in (mp): New feature.
25090 (sec): New feature.
25091 (fgroup ARMv7ve): Add mp and sec features.
25092 (arch armv7-a): Add options to allow mp and sec extensions.
25093 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25094 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25095 extenstions to the base architecture.
25096 (cpu cortex-a8): Add sec extension to the base architecture.
25097 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25098 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25099 variants down to the base v7-a varaint.
25100 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25101 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25102 of permitted extensions for -march=armv7-a and for
25103 -mcpu=generic-armv7-a.
25104
25105 2019-01-18 Martin Liska <mliska@suse.cz>
25106
25107 * params.def: Fix comment.
25108 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25109 name.
25110 (gimple_gen_ic_func_profiler): Likewise.
25111
25112 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25113
25114 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25115 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25116 and put in error checks for stack protector guard options.
25117 (aarch64_stack_protect_guard): New.
25118 (TARGET_STACK_PROTECT_GUARD): Define.
25119 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25120 (reg_stack_protect_address<mode>): New.
25121 (stack_protect_set): Adjust for SSP_GLOBAL.
25122 (stack_protect_test): Likewise.
25123 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25124 (-mstack-protector-guard): Likewise.
25125 (-mstack-protector-guard-offset): Likewise.
25126
25127 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25128
25129 PR tree-optimization/86214
25130 * tree-inline.h (struct copy_body_data): Add
25131 add_clobbers_to_eh_landing_pads member.
25132 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25133 (copy_edges_for_bb): Call it if EH edge destination is <
25134 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25135 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25136 if flag_stack_reuse != SR_NONE and clear it afterwards.
25137
25138 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25139
25140 PR target/85596
25141 * doc/install.texi (with-multilib-list): Document for aarch64.
25142
25143 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25144
25145 PR target/88734
25146 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25147 (("..."))) with ("...").
25148
25149 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25150
25151 * doc/extend.texi (Built-in Functions for Memory Model Aware
25152 Atomic Operations): Document atomic fetch and nand.
25153
25154 2019-01-18 Martin Liska <mliska@suse.cz>
25155 Richard Biener <rguenther@suse.de>
25156
25157 PR middle-end/88587
25158 * cgraph.h (create_version_clone_with_body): Add new argument
25159 with attributes.
25160 * cgraphclones.c (cgraph_node::create_version_clone): Add
25161 DECL_ATTRIBUTES to a newly created decl. And call
25162 valid_attribute_p so that proper cl_target_optimization_node
25163 is set for the newly created declaration.
25164 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25165 for declaration.
25166 (expand_target_clones): Do not call valid_attribute_p, it must
25167 be already done.
25168 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25169 vector types.
25170
25171 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25172
25173 PR target/88734
25174 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25175 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25176 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25177
25178 2019-01-17 Martin Sebor <msebor@redhat.com>
25179
25180 PR middle-end/88273
25181 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25182 Handle anti-ranges the same as no range at all.
25183
25184 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25185
25186 * config/aarch64/aarch64.c (cgraph.h): New include.
25187 (intl.h): New include.
25188 (supported_simd_type): New function.
25189 (currently_supported_simd_type): Ditto.
25190 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25191 (aarch64_simd_clone_adjust): Ditto.
25192 (aarch64_simd_clone_usable): Ditto.
25193 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25194 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25195 (TARGET_SIMD_CLONE_USABLE): Ditto.
25196 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25197 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25198 call.
25199
25200 2019-01-17 Martin Sebor <msebor@redhat.com>
25201
25202 PR tree-optimization/88800
25203 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25204 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25205 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25206 redundant argument. Add new argument and issue diagnostics under
25207 its control. Detect out-of-bounds access even with warnings
25208 disabled.
25209 (check_bounds_or_overlap): Change return type. Add argument.
25210 (wrestrict_dom_walker::check_call): Adjust.
25211 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25212 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25213 check_bounds_or_overlap's return value.
25214 (handle_builtin_stxncpy): Same.
25215 (handle_builtin_strcat): Same.
25216
25217 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25218 Kwok Cheung Yeung <kcy@codesourcery.com>
25219 Julian Brown <julian@codesourcery.com>
25220 Tom de Vries <tom@codesourcery.com>
25221
25222 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25223
25224 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25225
25226 * doc/sourcebuild.texi: Document dg-require-effective-target
25227 llvm_binutils and offload_gcn.
25228
25229 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25230 Kwok Cheung Yeung <kcy@codesourcery.com>
25231 Julian Brown <julian@codesourcery.com>
25232 Tom de Vries <tom@codesourcery.com>
25233
25234 * doc/sourcebuild.texi: Document dg-required-effective-target
25235 exceptions.
25236
25237 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25238 Kwok Cheung Yeung <kcy@codesourcery.com>
25239 Julian Brown <julian@codesourcery.com>
25240 Tom de Vries <tom@codesourcery.com>
25241 Jan Hubicka <hubicka@ucw.cz>
25242 Martin Jambor <mjambor@suse.cz>
25243
25244 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25245 * configure.ac: Check for dlopen.
25246 * configure: Regenerate.
25247
25248 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25249 Kwok Cheung Yeung <kcy@codesourcery.com>
25250 Julian Brown <julian@codesourcery.com>
25251 Tom de Vries <tom@codesourcery.com>
25252 Jan Hubicka <hubicka@ucw.cz>
25253 Martin Jambor <mjambor@suse.cz>
25254
25255 * common/config/gcn/gcn-common.c: New file.
25256 * config/gcn/driver-gcn.c: New file.
25257 * config/gcn/gcn-builtins.def: New file.
25258 * config/gcn/gcn-hsa.h: New file.
25259 * config/gcn/gcn-modes.def: New file.
25260 * config/gcn/gcn-opts.h: New file.
25261 * config/gcn/gcn-passes.def: New file.
25262 * config/gcn/gcn-protos.h: New file.
25263 * config/gcn/gcn-run.c: New file.
25264 * config/gcn/gcn-tree.c: New file.
25265 * config/gcn/gcn.c: New file.
25266 * config/gcn/gcn.h: New file.
25267 * config/gcn/gcn.opt: New file.
25268 * config/gcn/t-gcn-hsa: New file.
25269
25270 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25271 Kwok Cheung Yeung <kcy@codesourcery.com>
25272 Julian Brown <julian@codesourcery.com>
25273 Tom de Vries <tom@codesourcery.com>
25274 Jan Hubicka <hubicka@ucw.cz>
25275 Martin Jambor <mjambor@suse.cz>
25276
25277 * config/gcn/constraints.md: New file.
25278 * config/gcn/gcn-valu.md: New file.
25279 * config/gcn/gcn.md: New file.
25280 * config/gcn/predicates.md: New file.
25281
25282 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25283
25284 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25285 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25286 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25287 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25288
25289 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25290
25291 PR target/88851
25292 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25293 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25294 it and document registers.
25295
25296 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25297
25298 * config/aarch64/aarch64.c (ares_tunings): Define.
25299 * config/aarch64/aarch64-cores.def (ares): Use the above.
25300
25301 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25302
25303 PR target/88794
25304 Revert:
25305 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25306
25307 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25308 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25309 (_mm512_maskz_fixupimm_round_pd): Ditto.
25310 (_mm512_fixupimm_round_ps): Ditto.
25311 (_mm512_maskz_fixupimm_round_ps): Ditto.
25312 (_mm_fixupimm_round_sd): Ditto.
25313 (_mm_maskz_fixupimm_round_sd): Ditto.
25314 (_mm_fixupimm_round_ss): Ditto.
25315 (_mm_maskz_fixupimm_round_ss): Ditto.
25316 (_mm512_fixupimm_pd): Ditto.
25317 (_mm512_maskz_fixupimm_pd): Ditto.
25318 (_mm512_fixupimm_ps): Ditto.
25319 (_mm512_maskz_fixupimm_ps): Ditto.
25320 (_mm_fixupimm_sd): Ditto.
25321 (_mm_maskz_fixupimm_sd): Ditto.
25322 (_mm_fixupimm_ss): Ditto.
25323 (_mm_maskz_fixupimm_ss): Ditto.
25324 (_mm512_mask_fixupimm_round_pd): Update builtin.
25325 (_mm512_mask_fixupimm_round_ps): Ditto.
25326 (_mm_mask_fixupimm_round_sd): Ditto.
25327 (_mm_mask_fixupimm_round_ss): Ditto.
25328 (_mm512_mask_fixupimm_pd): Ditto.
25329 (_mm512_mask_fixupimm_ps): Ditto.
25330 (_mm_mask_fixupimm_sd): Ditto.
25331 (_mm_mask_fixupimm_ss): Ditto.
25332 * config/i386/avx512vlintrin.h:
25333 (_mm256_fixupimm_pd): Update parameters and builtin.
25334 (_mm256_maskz_fixupimm_pd): Ditto.
25335 (_mm256_fixupimm_ps): Ditto.
25336 (_mm256_maskz_fixupimm_ps): Ditto.
25337 (_mm_fixupimm_pd): Ditto.
25338 (_mm_maskz_fixupimm_pd): Ditto.
25339 (_mm_fixupimm_ps): Ditto.
25340 (_mm_maskz_fixupimm_ps): Ditto.
25341 (_mm256_mask_fixupimm_pd): Update builtin.
25342 (_mm256_mask_fixupimm_ps): Ditto.
25343 (_mm_mask_fixupimm_pd): Ditto.
25344 (_mm_mask_fixupimm_ps): Ditto.
25345 * config/i386/i386-builtin-types.def: Add new types and remove
25346 useless ones.
25347 * config/i386/i386-builtin.def: Update builtin definitions.
25348 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25349 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25350 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25351 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25352 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25353 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25354 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25355 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25356 * config/i386/subst.md:
25357 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25358 (round_saeonly_sd_mask_op4): Ditto.
25359 (round_saeonly_expand_operand5): Ditto.
25360 (round_saeonly_expand): Update.
25361
25362 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25363
25364 PR target/88794
25365 Revert:
25366 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25367
25368 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25369 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25370 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25371 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25372 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25373 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25374 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25375
25376 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25377
25378 PR target/88794
25379 Revert:
25380 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25381
25382 PR target/88489
25383 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25384 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25385 instead of UNSPEC_FIXUPIMM.
25386
25387 2019-01-17 Richard Biener <rguenther@suse.de>
25388
25389 PR lto/86736
25390 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25391 and friends for the LTO part of debug info.
25392
25393 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25394
25395 PR tree-optimization/86214
25396 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25397 if x == y.
25398
25399 PR rtl-optimization/88870
25400 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25401 throw if we can't alter the cfg or delete dead exceptions.
25402 (mark_insn): Don't call find_call_stack_args for such calls.
25403
25404 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25405
25406 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25407 prototypes for vec_st.
25408 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25409 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25410 mainly on signed/unsigned long long and double.
25411
25412 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25413
25414 PR target/88861
25415 * combine.c (delete_noop_moves): Convert to "bool" return,
25416 returning true if any edges are eliminated.
25417 (combine_instructions): Also return true if delete_noop_moves
25418 returns true.
25419
25420 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25421
25422 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25423 correct max nunits for endian swap.
25424 (aarch64_expand_fcmla_builtin): Correct subreg code.
25425 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25426 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25427 lane endianness.
25428
25429 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25430
25431 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25432 Handle split indirect COMPLEX_TYPE arguments.
25433
25434 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25435
25436 PR target/86891
25437 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25438 bit is set by add and compare.
25439 (CC_ADC): New CC_MODE.
25440 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25441 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25442 comparison. Add detection for CC_ADCmode.
25443 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25444 CC_ADCmode.
25445 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25446 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25447 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25448 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25449 to eliminate the need for zero-extending the operands.
25450 (add<mode>3_compareC_imm): Delete. Merge into ...
25451 (add<mode>3_compareC): ... this. Restructure the comparison to
25452 eliminate the need for zero-extending the operands.
25453 (add<mode>3_carryin): Use LTU for the overflow detection.
25454 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25455 Reexpress comparison for overflow.
25456 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25457 (add<mode>3_carryinC): Likewise.
25458 (add<mode>3_carryinV): Use LTU for carry between partials.
25459 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25460 handling of CC_Cmode and add CC_ADCmode.
25461 (aarch64_borrow_operation): Likewise.
25462
25463 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25464
25465 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25466 Remove patternmode.
25467 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25468 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25469 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25470 Remove endianness conversion.
25471
25472 2019-01-16 Martin Liska <mliska@suse.cz>
25473
25474 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25475 for GCC driver.
25476 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25477 a new argument.
25478 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25479 (path_prefix_reset): Move up in the source file.
25480 (find_fortran_preinclude_file): Make complex search for the
25481 fortran header files.
25482
25483 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25484
25485 * godump.c (go_output_typedef): When outputting a typedef, refer
25486 to the underlying type by its name and not its structure.
25487
25488 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25489
25490 PR c++/88795
25491 * tree.c (build_function_type): Assert that arg_types is not
25492 error_mark_node.
25493
25494 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25495
25496 PR inline-asm/52813
25497 * doc/extend.texi: Document that listing the stack pointer in the
25498 clobber list of an asm is a deprecated feature.
25499 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25500 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25501 warning instead of an error for clobbers of the stack pointer.
25502 Add a note explaining why.
25503
25504 2019-01-15 Richard Biener <rguenther@suse.de>
25505
25506 PR debug/88046
25507 * dwarf2out.c (gen_member_die): Do not generate inheritance
25508 DIEs late.
25509
25510 2019-01-15 Richard Biener <rguenther@suse.de>
25511
25512 PR tree-optimization/88855
25513 * tree-if-conv.c (combine_blocks): Collect
25514 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25515
25516 2019-01-15 Tom de Vries <tdevries@suse.de>
25517
25518 PR target/80547
25519 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25520 lhs == NULL_TREE for gang-level reduction.
25521
25522 2019-01-15 Richard Biener <rguenther@suse.de>
25523 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25524
25525 PR ipa/88788
25526 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25527 return true if SSA_NAME is already marked in visited bitmap.
25528 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25529
25530 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25531
25532 PR tree-optimization/88775
25533 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25534 equal == 0 equality pointer comparisons some more if compared in
25535 integral types and either one points to an automatic var and the
25536 other to a global, or we can prove at least one points to the middle
25537 or both point to start or both point to end.
25538
25539 2019-01-14 Andi Kleen <ak@linux.intel.com>
25540
25541 * Makefile.in: Lower autofdo sampling rate by 10x.
25542 * Makefile.tpl: Dito.
25543
25544 2019-01-14 Tom Honermann <tom@honermann.net>
25545
25546 * defaults.h: Define CHAR8_TYPE.
25547
25548 2019-01-14 Martin Sebor <msebor@redhat.com>
25549
25550 PR target/88638
25551 * doc/extend.texi (Darwin Format Checks): Clarify.
25552
25553 2019-01-14 Richard Biener <rguenther@suse.de>
25554
25555 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25556 whether we are in (simplify ...) or (match ...) context.
25557
25558 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25559
25560 PR rtl-optimization/88796
25561 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25562 * cfgexpand.c (stack_protect_prologue): Initialize
25563 crtl->stack_protect_guard_decl.
25564 * function.c (stack_protect_epilogue): Use it instead of calling
25565 targetm.stack_protect_guard again.
25566 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25567 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25568 crtl->stack_protect_guard_decl.
25569 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25570 on the returned MEM_EXPR.
25571
25572 2019-01-12 Tom de Vries <tdevries@suse.de>
25573
25574 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25575 vector length using -fopenacc-dim.
25576
25577 2019-01-12 Tom de Vries <tdevries@suse.de>
25578
25579 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25580 lengths into account.
25581
25582 2019-01-12 Svante Signell <svante.signell@gmail.com>
25583
25584 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25585 (TARGET_CAN_SPLIT_STACK): Define.
25586 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25587
25588 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25589
25590 * params.def (inline-unit-growth): Set to 40.
25591
25592 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25593
25594 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25595
25596 2019-01-12 Tom de Vries <tdevries@suse.de>
25597
25598 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25599 region calling vector-partitionable routine, set default_vector_length
25600 to WARP_SIZE.
25601
25602 2019-01-12 Tom de Vries <tdevries@suse.de>
25603
25604 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25605 variable default_vector_length.
25606
25607 2019-01-12 Tom de Vries <tdevries@suse.de>
25608
25609 PR middle-end/88703
25610 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25611 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25612 dimensions limits.
25613
25614 2019-01-12 Tom de Vries <tdevries@suse.de>
25615
25616 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25617 (nvptx_goacc_validate_dims): Add used parameter.
25618 * doc/tm.texi: Regenerate.
25619 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25620 argument to call to targetm.goacc.validate_dims.
25621 (default_goacc_validate_dims): Add used
25622 parameter.
25623 * target.def (validate_dims): Add used parameter in DEFHOOK.
25624 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25625
25626 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25627
25628 PR middle-end/85956
25629 PR lto/88733
25630 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25631 field.
25632 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25633 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25634 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25635 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25636
25637 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25638
25639 PR rtl-optimization/87305
25640 * lra-assigns.c
25641 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25642 for little endian pseudos used as paradoxical subreg.
25643
25644 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25645
25646 PR tree-optimization/88693
25647 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25648 for STRING_CSTs that don't contain any NUL characters in the first
25649 TREE_STRING_LENGTH bytes.
25650
25651 2019-01-11 Alan Modra <amodra@gmail.com>
25652
25653 PR 88777
25654 PR 88614
25655 * genattrtab.c (min_fn): Don't translate values.
25656 (min_attr_value): Return INT_MAX when the value can't be calculated.
25657 Return minimum among any values that can be calculated.
25658 (max_attr_value): Adjust.
25659
25660 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25661
25662 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25663
25664 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25665
25666 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25667 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25668 (aarch64_return_call_with_max_clobbers): New function.
25669 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25670 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25671 argument.
25672 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25673 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25674 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25675 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25676 * cselib.c (cselib_process_insn): Add argument to
25677 targetm.hard_regno_call_part_clobbered call.
25678 * ira-conflicts.c (ira_build_conflicts): Ditto.
25679 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25680 * lra-constraints.c (inherit_reload_reg): Ditto.
25681 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25682 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25683 argument. Call targetm.return_call_with_max_clobbers.
25684 Add argument to targetm.hard_regno_call_part_clobbered call.
25685 (calls_have_same_clobbers_p): New function.
25686 (process_bb_lives): Add call_insn and last_call_insn variables.
25687 Pass call_insn to check_pseudos_live_through_calls.
25688 Modify if stmt to check targetm.return_call_with_max_clobbers.
25689 Update setting of flush variable.
25690 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25691 to false.
25692 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25693 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25694 targetm.hard_regno_call_part_clobbered call.
25695 * reginfo.c (choose_hard_reg_mode): Ditto.
25696 * regrename.c (check_new_reg_p): Ditto.
25697 * reload.c (find_equiv_reg): Ditto.
25698 * reload1.c (emit_reload_insns): Ditto.
25699 * sched-deps.c (deps_analyze_insn): Ditto.
25700 * sel-sched.c (init_regs_for_mode): Ditto.
25701 (mark_unavailable_hard_regs): Ditto.
25702 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25703 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25704 (return_call_with_max_clobbers): New target function.
25705 * doc/tm.texi: Regenerate.
25706 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25707 * hooks.c (hook_bool_uint_mode_false): Change to
25708 hook_bool_insn_uint_mode_false.
25709 * hooks.h (hook_bool_uint_mode_false): Ditto.
25710
25711 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25712
25713 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25714 (aarch64_remove_extra_call_preserved_regs): New function.
25715 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25716 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25717 * doc/tm.texi: Regenerate.
25718 * final.c (get_call_reg_set_usage): Call new hook.
25719 * target.def (remove_extra_call_preserved_regs): New hook.
25720 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25721 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25722
25723 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25724
25725 PR bootstrap/88714
25726 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25727 inside of pass_combine_1 dump rather than pass_profile_1.
25728
25729 2019-01-11 Tom de Vries <tdevries@suse.de>
25730
25731 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25732 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25733 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25734 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25735 num_workers 16.
25736
25737 2019-01-11 Tom de Vries <tdevries@suse.de>
25738
25739 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25740
25741 2019-01-11 Jan Beulich <jbeulich@suse.com>
25742
25743 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25744 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25745 sse2_cvtsi2sd): Add {l}.
25746 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25747 syntax.
25748
25749 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25750
25751 PR target/88785
25752 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25753 define_expand.
25754 (*float<floatunssuffix>v2div2sf2): New define_insn.
25755 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25756 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25757 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25758 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25759 match_operands with "const0_operand" "C".
25760
25761 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25762
25763 * config/aarch64/aarch64-builtins.c
25764 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25765 (aarch64_init_simd_builtins): ...Here
25766
25767 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25768
25769 PR rtl-optimization/87305
25770 * lra-assigns.c
25771 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25772 allocation for big endian pseudos used as paradoxical subregs and
25773 spill them if it is wrong.
25774 * lra-constraints.c (lra_constraints): Add a comment.
25775
25776 2019-01-10 Richard Biener <rguenther@suse.de>
25777
25778 PR tree-optimization/88792
25779 * tree-ssa-pre.c (get_representative_for): Do not return a
25780 value-number here.
25781
25782 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25783
25784 PR middle-end/84877
25785 PR bootstrap/88450
25786 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25787 (assign_parm_setup_block): Do the argument slot realignment here
25788 instead.
25789
25790 2019-01-10 Stefan Agner <stefan@agner.ch>
25791
25792 PR target/88648
25793 * config/arm/arm.c (arm_option_override_internal): Force
25794 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25795
25796 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25797
25798 PR c/88568
25799 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25800 DECL_EXTERNAL.
25801
25802 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25803
25804 * config/arm/arm-builtins.c
25805 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25806 (MAC_LANE_PAIR_QUALIFIERS): New.
25807 (arm_expand_builtin_args): Use it.
25808 (arm_expand_builtin_1): Likewise.
25809 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25810 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25811 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25812 * config/arm/arm_neon.h:
25813 (vcadd_rot90_f16): New.
25814 (vcaddq_rot90_f16): New.
25815 (vcadd_rot270_f16): New.
25816 (vcaddq_rot270_f16): New.
25817 (vcmla_f16): New.
25818 (vcmlaq_f16): New.
25819 (vcmla_lane_f16): New.
25820 (vcmla_laneq_f16): New.
25821 (vcmlaq_lane_f16): New.
25822 (vcmlaq_laneq_f16): New.
25823 (vcmla_rot90_f16): New.
25824 (vcmlaq_rot90_f16): New.
25825 (vcmla_rot90_lane_f16): New.
25826 (vcmla_rot90_laneq_f16): New.
25827 (vcmlaq_rot90_lane_f16): New.
25828 (vcmlaq_rot90_laneq_f16): New.
25829 (vcmla_rot180_f16): New.
25830 (vcmlaq_rot180_f16): New.
25831 (vcmla_rot180_lane_f16): New.
25832 (vcmla_rot180_laneq_f16): New.
25833 (vcmlaq_rot180_lane_f16): New.
25834 (vcmlaq_rot180_laneq_f16): New.
25835 (vcmla_rot270_f16): New.
25836 (vcmlaq_rot270_f16): New.
25837 (vcmla_rot270_lane_f16): New.
25838 (vcmla_rot270_laneq_f16): New.
25839 (vcmlaq_rot270_lane_f16): New.
25840 (vcmlaq_rot270_laneq_f16): New.
25841 (vcadd_rot90_f32): New.
25842 (vcaddq_rot90_f32): New.
25843 (vcadd_rot270_f32): New.
25844 (vcaddq_rot270_f32): New.
25845 (vcmla_f32): New.
25846 (vcmlaq_f32): New.
25847 (vcmla_lane_f32): New.
25848 (vcmla_laneq_f32): New.
25849 (vcmlaq_lane_f32): New.
25850 (vcmlaq_laneq_f32): New.
25851 (vcmla_rot90_f32): New.
25852 (vcmlaq_rot90_f32): New.
25853 (vcmla_rot90_lane_f32): New.
25854 (vcmla_rot90_laneq_f32): New.
25855 (vcmlaq_rot90_lane_f32): New.
25856 (vcmlaq_rot90_laneq_f32): New.
25857 (vcmla_rot180_f32): New.
25858 (vcmlaq_rot180_f32): New.
25859 (vcmla_rot180_lane_f32): New.
25860 (vcmla_rot180_laneq_f32): New.
25861 (vcmlaq_rot180_lane_f32): New.
25862 (vcmlaq_rot180_laneq_f32): New.
25863 (vcmla_rot270_f32): New.
25864 (vcmlaq_rot270_f32): New.
25865 (vcmla_rot270_lane_f32): New.
25866 (vcmla_rot270_laneq_f32): New.
25867 (vcmlaq_rot270_lane_f32): New.
25868 (vcmlaq_rot270_laneq_f32): New.
25869 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25870 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25871 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25872 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25873 vcmlaq_lane270): New.
25874 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25875 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25876 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25877 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25878 (arm_option_reconfigure_globals): Use them.
25879 * config/arm/iterators.md (VDF, VQ_HSF): New.
25880 (VCADD, VCMLA): New.
25881 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25882 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25883 New.
25884 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25885 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25886
25887 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25888
25889 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25890 Add qualifier_lane_pair_index.
25891 (emit-rtl.h): Include.
25892 (TYPES_QUADOP_LANE_PAIR): New.
25893 (aarch64_simd_expand_args): Use it.
25894 (aarch64_simd_expand_builtin): Likewise.
25895 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25896 New.
25897 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25898 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25899 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25900 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25901 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25902 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25903 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25904 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25905 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25906 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25907 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25908 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25909 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25910 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25911 Add __ARM_FEATURE_COMPLEX.
25912 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25913 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25914 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25915 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25916 fcmlaq_lane270): New.
25917 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25918 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25919 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25920 * config/aarch64/arm_neon.h:
25921 (vcadd_rot90_f16): New.
25922 (vcaddq_rot90_f16): New.
25923 (vcadd_rot270_f16): New.
25924 (vcaddq_rot270_f16): New.
25925 (vcmla_f16): New.
25926 (vcmlaq_f16): New.
25927 (vcmla_lane_f16): New.
25928 (vcmla_laneq_f16): New.
25929 (vcmlaq_lane_f16): New.
25930 (vcmlaq_rot90_lane_f16): New.
25931 (vcmla_rot90_laneq_f16): New.
25932 (vcmla_rot90_lane_f16): New.
25933 (vcmlaq_rot90_f16): New.
25934 (vcmla_rot90_f16): New.
25935 (vcmlaq_laneq_f16): New.
25936 (vcmla_rot180_laneq_f16): New.
25937 (vcmla_rot180_lane_f16): New.
25938 (vcmlaq_rot180_f16): New.
25939 (vcmla_rot180_f16): New.
25940 (vcmlaq_rot90_laneq_f16): New.
25941 (vcmlaq_rot270_laneq_f16): New.
25942 (vcmlaq_rot270_lane_f16): New.
25943 (vcmla_rot270_laneq_f16): New.
25944 (vcmlaq_rot270_f16): New.
25945 (vcmla_rot270_f16): New.
25946 (vcmlaq_rot180_laneq_f16): New.
25947 (vcmlaq_rot180_lane_f16): New.
25948 (vcmla_rot270_lane_f16): New.
25949 (vcadd_rot90_f32): New.
25950 (vcaddq_rot90_f32): New.
25951 (vcaddq_rot90_f64): New.
25952 (vcadd_rot270_f32): New.
25953 (vcaddq_rot270_f32): New.
25954 (vcaddq_rot270_f64): New.
25955 (vcmla_f32): New.
25956 (vcmlaq_f32): New.
25957 (vcmlaq_f64): New.
25958 (vcmla_lane_f32): New.
25959 (vcmla_laneq_f32): New.
25960 (vcmlaq_lane_f32): New.
25961 (vcmlaq_laneq_f32): New.
25962 (vcmla_rot90_f32): New.
25963 (vcmlaq_rot90_f32): New.
25964 (vcmlaq_rot90_f64): New.
25965 (vcmla_rot90_lane_f32): New.
25966 (vcmla_rot90_laneq_f32): New.
25967 (vcmlaq_rot90_lane_f32): New.
25968 (vcmlaq_rot90_laneq_f32): New.
25969 (vcmla_rot180_f32): New.
25970 (vcmlaq_rot180_f32): New.
25971 (vcmlaq_rot180_f64): New.
25972 (vcmla_rot180_lane_f32): New.
25973 (vcmla_rot180_laneq_f32): New.
25974 (vcmlaq_rot180_lane_f32): New.
25975 (vcmlaq_rot180_laneq_f32): New.
25976 (vcmla_rot270_f32): New.
25977 (vcmlaq_rot270_f32): New.
25978 (vcmlaq_rot270_f64): New.
25979 (vcmla_rot270_lane_f32): New.
25980 (vcmla_rot270_laneq_f32): New.
25981 (vcmlaq_rot270_lane_f32): New.
25982 (vcmlaq_rot270_laneq_f32): New.
25983 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25984 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25985 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25986 (FCADD, FCMLA): New.
25987 (rot): New.
25988 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25989
25990 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25991
25992 PR other/16615
25993
25994 * config/pa/pa.c: Change "can not" to "cannot".
25995 * gimple-ssa-evrp-analyze.c: Likewise.
25996 * ipa-icf.c: Likewise.
25997 * ipa-polymorphic-call.c: Likewise.
25998 * ipa-pure-const.c: Likewise.
25999 * lra-constraints.c: Likewise.
26000 * lra-remat.c: Likewise.
26001 * reload1.c: Likewise.
26002 * reorg.c: Likewise.
26003 * tree-ssa-uninit.c: Likewise.
26004
26005 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26006
26007 PR other/16615
26008
26009 * Makefile.in: Mechanically replace "can not" with "cannot".
26010 * alias.c: Likewise.
26011 * builtins.c: Likewise.
26012 * calls.c: Likewise.
26013 * cgraph.c: Likewise.
26014 * cgraph.h: Likewise.
26015 * cgraphclones.c: Likewise.
26016 * cgraphunit.c: Likewise.
26017 * combine-stack-adj.c: Likewise.
26018 * combine.c: Likewise.
26019 * common/config/i386/i386-common.c: Likewise.
26020 * config/aarch64/aarch64.c: Likewise.
26021 * config/alpha/sync.md: Likewise.
26022 * config/arc/arc.c: Likewise.
26023 * config/arc/predicates.md: Likewise.
26024 * config/arm/arm-c.c: Likewise.
26025 * config/arm/arm.c: Likewise.
26026 * config/arm/arm.h: Likewise.
26027 * config/arm/arm.md: Likewise.
26028 * config/arm/cortex-r4f.md: Likewise.
26029 * config/csky/csky.c: Likewise.
26030 * config/csky/csky.h: Likewise.
26031 * config/darwin-f.c: Likewise.
26032 * config/epiphany/epiphany.md: Likewise.
26033 * config/i386/i386.c: Likewise.
26034 * config/i386/sol2.h: Likewise.
26035 * config/m68k/m68k.c: Likewise.
26036 * config/mcore/mcore.h: Likewise.
26037 * config/microblaze/microblaze.md: Likewise.
26038 * config/mips/20kc.md: Likewise.
26039 * config/mips/sb1.md: Likewise.
26040 * config/nds32/nds32.c: Likewise.
26041 * config/nds32/predicates.md: Likewise.
26042 * config/pa/pa.c: Likewise.
26043 * config/rs6000/e300c2c3.md: Likewise.
26044 * config/rs6000/rs6000.c: Likewise.
26045 * config/s390/s390.h: Likewise.
26046 * config/sh/sh.c: Likewise.
26047 * config/sh/sh.md: Likewise.
26048 * config/spu/vmx2spu.h: Likewise.
26049 * cprop.c: Likewise.
26050 * dbxout.c: Likewise.
26051 * df-scan.c: Likewise.
26052 * doc/cfg.texi: Likewise.
26053 * doc/extend.texi: Likewise.
26054 * doc/fragments.texi: Likewise.
26055 * doc/gty.texi: Likewise.
26056 * doc/invoke.texi: Likewise.
26057 * doc/lto.texi: Likewise.
26058 * doc/md.texi: Likewise.
26059 * doc/objc.texi: Likewise.
26060 * doc/rtl.texi: Likewise.
26061 * doc/tm.texi: Likewise.
26062 * dse.c: Likewise.
26063 * emit-rtl.c: Likewise.
26064 * emit-rtl.h: Likewise.
26065 * except.c: Likewise.
26066 * expmed.c: Likewise.
26067 * expr.c: Likewise.
26068 * fold-const.c: Likewise.
26069 * genautomata.c: Likewise.
26070 * gimple-fold.c: Likewise.
26071 * hard-reg-set.h: Likewise.
26072 * ifcvt.c: Likewise.
26073 * ipa-comdats.c: Likewise.
26074 * ipa-cp.c: Likewise.
26075 * ipa-devirt.c: Likewise.
26076 * ipa-fnsummary.c: Likewise.
26077 * ipa-icf.c: Likewise.
26078 * ipa-inline-transform.c: Likewise.
26079 * ipa-inline.c: Likewise.
26080 * ipa-polymorphic-call.c: Likewise.
26081 * ipa-profile.c: Likewise.
26082 * ipa-prop.c: Likewise.
26083 * ipa-pure-const.c: Likewise.
26084 * ipa-reference.c: Likewise.
26085 * ipa-split.c: Likewise.
26086 * ipa-visibility.c: Likewise.
26087 * ipa.c: Likewise.
26088 * ira-build.c: Likewise.
26089 * ira-color.c: Likewise.
26090 * ira-conflicts.c: Likewise.
26091 * ira-costs.c: Likewise.
26092 * ira-int.h: Likewise.
26093 * ira-lives.c: Likewise.
26094 * ira.c: Likewise.
26095 * ira.h: Likewise.
26096 * loop-invariant.c: Likewise.
26097 * loop-unroll.c: Likewise.
26098 * lower-subreg.c: Likewise.
26099 * lra-assigns.c: Likewise.
26100 * lra-constraints.c: Likewise.
26101 * lra-eliminations.c: Likewise.
26102 * lra-lives.c: Likewise.
26103 * lra-remat.c: Likewise.
26104 * lra-spills.c: Likewise.
26105 * lra.c: Likewise.
26106 * lto-cgraph.c: Likewise.
26107 * lto-streamer-out.c: Likewise.
26108 * postreload-gcse.c: Likewise.
26109 * predict.c: Likewise.
26110 * profile-count.h: Likewise.
26111 * profile.c: Likewise.
26112 * recog.c: Likewise.
26113 * ree.c: Likewise.
26114 * reload.c: Likewise.
26115 * reload1.c: Likewise.
26116 * reorg.c: Likewise.
26117 * resource.c: Likewise.
26118 * rtl.def: Likewise.
26119 * rtl.h: Likewise.
26120 * rtlanal.c: Likewise.
26121 * sched-deps.c: Likewise.
26122 * sched-ebb.c: Likewise.
26123 * sched-rgn.c: Likewise.
26124 * sel-sched-ir.c: Likewise.
26125 * sel-sched.c: Likewise.
26126 * shrink-wrap.c: Likewise.
26127 * simplify-rtx.c: Likewise.
26128 * symtab.c: Likewise.
26129 * target.def: Likewise.
26130 * toplev.c: Likewise.
26131 * tree-call-cdce.c: Likewise.
26132 * tree-cfg.c: Likewise.
26133 * tree-complex.c: Likewise.
26134 * tree-core.h: Likewise.
26135 * tree-eh.c: Likewise.
26136 * tree-inline.c: Likewise.
26137 * tree-loop-distribution.c: Likewise.
26138 * tree-nrv.c: Likewise.
26139 * tree-profile.c: Likewise.
26140 * tree-sra.c: Likewise.
26141 * tree-ssa-alias.c: Likewise.
26142 * tree-ssa-dce.c: Likewise.
26143 * tree-ssa-dom.c: Likewise.
26144 * tree-ssa-forwprop.c: Likewise.
26145 * tree-ssa-loop-im.c: Likewise.
26146 * tree-ssa-loop-ivcanon.c: Likewise.
26147 * tree-ssa-loop-ivopts.c: Likewise.
26148 * tree-ssa-loop-niter.c: Likewise.
26149 * tree-ssa-phionlycprop.c: Likewise.
26150 * tree-ssa-phiopt.c: Likewise.
26151 * tree-ssa-propagate.c: Likewise.
26152 * tree-ssa-threadedge.c: Likewise.
26153 * tree-ssa-threadupdate.c: Likewise.
26154 * tree-ssa-uninit.c: Likewise.
26155 * tree-ssanames.c: Likewise.
26156 * tree-streamer-out.c: Likewise.
26157 * tree.c: Likewise.
26158 * tree.h: Likewise.
26159 * vr-values.c: Likewise.
26160
26161 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26162
26163 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26164 (ix86_split_xorsign): Ditto.
26165 * config/i386/i386.c (ix86_expand_xorsign): New function.
26166 (ix86_split_xorsign): Ditto.
26167 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26168 (xorsign<mode>3): New expander.
26169 (xorsign<mode>3_1): New insn_and_split pattern.
26170 * config/i386/sse.md (xorsign<mode>3): New expander.
26171
26172 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26173
26174 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26175 (*tablejump_sp64): Likewise.
26176 (*tablejump<P:mode>): ...this.
26177 (*call_address_sp32): Merge into...
26178 (*call_address_sp64): Likewise.
26179 (*call_address<P:mode>): ...this.
26180 (*call_symbolic_sp32): Merge into...
26181 (*call_symbolic_sp64): Likewise.
26182 (*call_symbolic<P:mode>): ...this.
26183 (call_value): Remove constraint and add predicate.
26184 (*call_value_address_sp32): Merge into...
26185 (*call_value_address_sp64): Likewise.
26186 (*call_value_address<P:mode>): ...this.
26187 (*call_value_symbolic_sp32): Merge into...
26188 (*call_value_symbolic_sp64): Likewise.
26189 (*call_value_symbolic<P:mode>): ...this.
26190 (*sibcall_symbolic_sp32): Merge into...
26191 (*sibcall_symbolic_sp64): Likewise.
26192 (*sibcall_symbolic<P:mode>): ...this.
26193 (sibcall_value): Remove constraint and add predicate.
26194 (*sibcall_value_symbolic_sp32): Merge into...
26195 (*sibcall_value_symbolic_sp64): Likewise.
26196 (*sibcall_value_symbolic<P:mode>): ...this.
26197 (window_save): Minor tweak.
26198 (*branch_sp32): Merge into...
26199 (*branch_sp64): Likewise.
26200 (*branch<P:mode>): ...this.
26201
26202 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26203 James Clarke <jrtc27@jrtc27.com>
26204
26205 PR target/84010
26206 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26207 consistently in TLS address generation and adjust code to the renaming
26208 of patterns. Mark calls to __tls_get_addr as const.
26209 * config/sparc/sparc.md (tgd_hi22): Turn into...
26210 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26211 (tgd_lo10): Turn into...
26212 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26213 (tgd_add32): Merge into...
26214 (tgd_add64): Likewise.
26215 (tgd_add<P:mode>): ...this and use Pmode throughout.
26216 (tldm_hi22): Turn into...
26217 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26218 (tldm_lo10): Turn into...
26219 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26220 (tldm_add32): Merge into...
26221 (tldm_add64): Likewise.
26222 (tldm_add<P:mode>): ...this and use Pmode throughout.
26223 (tldm_call32): Merge into...
26224 (tldm_call64): Likewise.
26225 (tldm_call<P:mode>): ...this and use Pmode throughout.
26226 (tldo_hix22): Turn into...
26227 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26228 (tldo_lox10): Turn into...
26229 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26230 (tldo_add32): Merge into...
26231 (tldo_add64): Likewise.
26232 (tldo_add<P:mode>): ...this and use Pmode throughout.
26233 (tie_hi22): Turn into...
26234 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26235 (tie_lo10): Turn into...
26236 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26237 (tie_ld64): Use DImode throughout.
26238 (tie_add32): Merge into...
26239 (tie_add64): Likewise.
26240 (tie_add<P:mode>): ...this and use Pmode throughout.
26241 (tle_hix22_sp32): Merge into...
26242 (tle_hix22_sp64): Likewise.
26243 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26244 (tle_lox22_sp32): Merge into...
26245 (tle_lox22_sp64): Likewise.
26246 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26247 (*tldo_ldub_sp32): Merge into...
26248 (*tldo_ldub_sp64): Likewise.
26249 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26250 (*tldo_ldub1_sp32): Merge into...
26251 (*tldo_ldub1_sp64): Likewise.
26252 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26253 (*tldo_ldub2_sp32): Merge into...
26254 (*tldo_ldub2_sp64): Likewise.
26255 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26256 (*tldo_ldsb1_sp32): Merge into...
26257 (*tldo_ldsb1_sp64): Likewise.
26258 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26259 (*tldo_ldsb2_sp32): Merge into...
26260 (*tldo_ldsb2_sp64): Likewise.
26261 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26262 (*tldo_ldub3_sp64): Use DImode throughout.
26263 (*tldo_ldsb3_sp64): Likewise.
26264 (*tldo_lduh_sp32): Merge into...
26265 (*tldo_lduh_sp64): Likewise.
26266 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26267 (*tldo_lduh1_sp32): Merge into...
26268 (*tldo_lduh1_sp64): Likewise.
26269 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26270 (*tldo_ldsh1_sp32): Merge into...
26271 (*tldo_ldsh1_sp64): Likewise.
26272 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26273 (*tldo_lduh2_sp64): Use DImode throughout.
26274 (*tldo_ldsh2_sp64): Likewise.
26275 (*tldo_lduw_sp32): Merge into...
26276 (*tldo_lduw_sp64): Likewise.
26277 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26278 (*tldo_lduw1_sp64): Use DImode throughout.
26279 (*tldo_ldsw1_sp64): Likewise.
26280 (*tldo_ldx_sp64): Likewise.
26281 (*tldo_stb_sp32): Merge into...
26282 (*tldo_stb_sp64): Likewise.
26283 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26284 (*tldo_sth_sp32): Merge into...
26285 (*tldo_sth_sp64): Likewise.
26286 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26287 (*tldo_stw_sp32): Merge into...
26288 (*tldo_stw_sp64): Likewise.
26289 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26290 (*tldo_stx_sp64): Use DImode throughout.
26291
26292 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26293
26294 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26295 check configure option to set BTI and Return Address Signing.
26296 * configure.ac: Add --enable-standard-branch-protection and
26297 --disable-standard-branch-protection.
26298 * configure: Regenerated.
26299 * doc/install.texi: Document the same.
26300
26301 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26302 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26303
26304 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26305 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26306 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26307 if bti is enabled.
26308 * config/aarch64/aarch64-bti-insert.c: New file.
26309 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26310 pass.
26311 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26312 new bti pass.
26313 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26314 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26315 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26316 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26317
26318 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26319
26320 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26321 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26322 Disable bti for -mbranch-protection=none.
26323 (aarch64_handle_standard_branch_protection): Enable bti for
26324 -mbranch-protection=standard.
26325 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26326 -mbranch-protection.
26327 (aarch64_bti_enabled): Check if bti is enabled.
26328 * config/aarch64/aarch64.opt: Declare target variable.
26329 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26330
26331 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26332
26333 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26334 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26335 (aarch64_expand_epilogue): Likewise.
26336 (aarch64_output_mi_thunk): Likewise.
26337 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26338 TAILCALL_ADDR_REGS to x16 and x17.
26339 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26340
26341 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26342
26343 * config/aarch64/aarch64-option-extensions.def: Define
26344 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26345 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26346 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26347 (AARCH64_FL_PREDRES): New.
26348 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26349 AARCH64_FL_PREDRES by default.
26350 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26351
26352 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26353
26354 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26355 ARMv8.5-A.
26356 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26357 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26358 * doc/invoke.texi: Document ARMv8.5-A.
26359
26360 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26361
26362 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26363 (xorsign<mode>3): Likewise.
26364
26365 2019-01-09 Jelinek <jakub@redhat.com>
26366
26367 PR middle-end/88758
26368 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26369 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26370
26371 PR rtl-optimization/88331
26372 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26373 not currently_expanding_to_rtl.
26374
26375 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26376
26377 * doc/invoke.texi (-Os): Remove trailing spaces.
26378 (-finline-functions): Remove reference to -O2.
26379
26380 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26381
26382 PR rtl-optimization/79593
26383 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26384
26385 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26386 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26387
26388 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26389
26390 PR bootstrap/88721
26391 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26392 to -1 on entry.
26393
26394 PR debug/88723
26395 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26396 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26397
26398 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26399
26400 PR target/88717
26401 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26402 ix86_avx_u128_mode_entry.
26403
26404 2019-01-08 Martin Liska <mliska@suse.cz>
26405
26406 PR tree-optimization/88753
26407 * tree-switch-conversion.c (switch_conversion::build_one_array):
26408 Come up with local variable constructor. Convert first to
26409 type of constructor values.
26410
26411 2019-01-08 Richard Biener <rguenther@suse.de>
26412
26413 PR tree-optimization/86554
26414 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26415 rpo_avail): Move earlier.
26416 (visit_nary_op): When value-numbering to expressions
26417 with different overflow behavior make sure there's an
26418 available expression on the path.
26419
26420 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26421
26422 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26423 aarch64_parse_branch_protection,
26424 struct aarch64_branch_protect_type,
26425 aarch64_handle_no_branch_protection,
26426 aarch64_handle_standard_branch_protection,
26427 aarch64_validate_mbranch_protection,
26428 aarch64_handle_pac_ret_protection,
26429 aarch64_handle_attr_branch_protection,
26430 accepted_branch_protection_string,
26431 aarch64_pac_ret_subtypes,
26432 aarch64_branch_protect_types,
26433 aarch64_handle_pac_ret_leaf): Define.
26434 (aarch64_override_options_after_change_1, aarch64_override_options):
26435 Add check for accepted_branch_protection_string.
26436 (aarch64_option_save): Save accepted_branch_protection_string.
26437 (aarch64_option_restore): Save accepted_branch_protection_string.
26438 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26439 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26440 msign-return-address.
26441 * doc/invoke.texi: Add mbranch-protection.
26442
26443 2019-01-08 Alan Modra <amodra@gmail.com>
26444
26445 PR target/88614
26446 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26447 Delete "unknownp" parameter. Adjust callers. Handle
26448 CONST_INT, PLUS, MINUS, and MULT.
26449 (attr_value_aligned): Renamed from or_attr_value.
26450 (min_attr_value): Return INT_MIN for unhandled rtl case..
26451 (min_fn): ..and translate to INT_MAX here.
26452 (write_length_unit_log): Modify to cope without "unknown".
26453 (write_attr_value): Handle IF_THEN_ELSE.
26454
26455 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26456
26457 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26458 optimization for masked stores.
26459
26460 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26461
26462 PR middle-end/88567
26463 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26464 output vector directly to duplicate_and_interleave instead of
26465 going through a temporary. Postpone insertion of ctor_seq to
26466 the end of the loop.
26467
26468 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26469
26470 PR target/86891
26471 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26472 unsigned_p. Handle signed and unsigned overflow correction as
26473 required.
26474 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26475 prototype.
26476 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26477 for operand 2.
26478 (add<mode>3_compareV_imm): Make this callable for expanding.
26479 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26480 aarch64_plus_operand for operand 2.
26481 (subv<GPI:mode>_insn): New insn pattern.
26482 (subv<GPI:mode>_imm): Likewise.
26483 (negv<GPI:mode>3): New expand pattern.
26484 (negv<GPI:mode>_insn): New insn pattern.
26485 (negv<GPI:mode>_cmp_only): Likewise.
26486 (cmpv<GPI:mode>_insn): Likewise.
26487 (subvti4): Use register_operand for operand 1. Update call to
26488 aarch64_expand_subvti.
26489 (usubvti4): Likewise.
26490 (negvti3): New expand pattern.
26491 (negdi_carryout): New insn pattern.
26492 (negvdi_carryinV): New insn pattern.
26493 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26494 version the named version.
26495 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26496 operands.
26497 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26498 patterns.
26499 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26500 patterns.
26501 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26502 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26503 (sub<mode>3_carryinCV): Delete.
26504 (sub<GPI:mode>3_carryinV): New expand pattern.
26505 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26506
26507 2019-01-07 Richard Biener <rguenther@suse.de>
26508
26509 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26510 of tree_operand_hash.
26511
26512 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26513
26514 PR tree-optimization/88598
26515 * tree.h (single_nonzero_element): Declare.
26516 * tree.c (single_nonzero_element): New function.
26517 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26518 if I is the only nonzero element of CST.
26519
26520 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26521
26522 PR tree-optimization/88598
26523 * tree.h (initializer_each_zero_or_onep): Declare.
26524 * tree.c (initializer_each_zero_or_onep): New function.
26525 (signed_or_unsigned_type_for): Handle float types too.
26526 (unsigned_type_for, signed_type_for): Update comments accordingly.
26527 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26528 x & { 0 or -1, 0 or -1, ... }.
26529
26530 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26531
26532 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26533 with x86_64-pc-linux-gnu.
26534
26535 2019-01-07 Tom de Vries <tdevries@suse.de>
26536
26537 PR target/85486
26538 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26539 function.
26540 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26541 routines.
26542
26543 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26544
26545 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26546 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26547 TARGET_AVX512F as condition.
26548
26549 PR debug/88723
26550 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26551 const_not_ok_for_debug_p target hook.
26552 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26553 on UNSPEC and subexpressions thereof if all subexpressions of the
26554 UNSPEC are CONSTANT_P.
26555
26556 PR tree-optimization/88676
26557 * tree-ssa-phiopt.c (two_value_replacement): New function.
26558 (tree_ssa_phiopt_worker): Call it.
26559
26560 PR sanitizer/88619
26561 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26562 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26563
26564 PR c++/85052
26565 * tree-vect-generic.c: Include insn-config.h and recog.h.
26566 (expand_vector_piecewise): Add defaulted ret_type argument,
26567 if non-NULL, use that in preference to type for the result type.
26568 (expand_vector_parallel): Formatting fix.
26569 (do_vec_conversion, do_vec_narrowing_conversion,
26570 expand_vector_conversion): New functions.
26571 (expand_vector_operations_1): Call expand_vector_conversion
26572 for VEC_CONVERT ifn calls.
26573 * internal-fn.def (VEC_CONVERT): New internal function.
26574 * internal-fn.c (expand_VEC_CONVERT): New function.
26575 * fold-const-call.c (fold_const_vec_convert): New function.
26576 (fold_const_call): Use it for CFN_VEC_CONVERT.
26577 * doc/extend.texi (__builtin_convertvector): Document.
26578
26579 2019-01-07 Tom de Vries <tdevries@suse.de>
26580
26581 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26582 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26583 vector_red_partition, vector_red_sym): New global variables.
26584 (nvptx_option_override): Initialize vector_red_sym.
26585 (nvptx_declare_function_name): Restore red_partition register.
26586 (nvptx_file_end): Emit code to declare the vector reduction variables.
26587 (nvptx_output_red_partition): New function.
26588 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26589 large vector reductions.
26590 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26591 (nvptx_init_builtins): Add VECTOR_ADDR.
26592 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26593 Handle nvptx_expand_shared_addr.
26594 (nvptx_get_shared_red_addr): Add vector argument and handle large
26595 vectors.
26596 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26597 large vectors.
26598 (nvptx_goacc_reduction_init): Likewise.
26599 (nvptx_goacc_reduction_fini): Likewise.
26600 (nvptx_goacc_reduction_teardown): Likewise.
26601 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26602 init,fini,teardown}.
26603 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26604 (nvptx_set_current_function): Init vector_red_partition.
26605 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26606 (nvptx_red_partition): New insn.
26607 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26608
26609 2019-01-07 Tom de Vries <tdevries@suse.de>
26610
26611 PR target/85381
26612 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26613 empty loops.
26614
26615 2019-01-07 Tom de Vries <tdevries@suse.de>
26616
26617 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26618 (nvptx_option_override): Init oacc_bcast_partition.
26619 (nvptx_init_oacc_workers): New function.
26620 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26621 (nvptx_needs_shared_bcast): New function.
26622 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26623 to propagate state.
26624 (nvptx_shared_propagate): Initialize vector bcast partition and
26625 synchronization state.
26626 (nvptx_single): Generalize to enable vectors to use shared-memory
26627 to propagate state.
26628 (nvptx_process_pars): Likewise.
26629 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26630 * config/nvptx/nvptx.h (struct machine_function): Add
26631 bcast_partition and sync_bar members.
26632
26633 2019-01-07 Tom de Vries <tdevries@suse.de>
26634
26635 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26636 (nvptx_apply_dim_limits): New function.
26637 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26638 PTX_WARP_SIZE.
26639
26640 2019-01-07 Tom de Vries <tdevries@suse.de>
26641
26642 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26643 as late as possible.
26644
26645 2019-01-07 Tom de Vries <tdevries@suse.de>
26646
26647 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26648 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26649 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26650 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26651 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26652
26653 2019-01-07 Tom de Vries <tdevries@suse.de>
26654
26655 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26656
26657 2019-01-07 Tom de Vries <tdevries@suse.de>
26658
26659 * omp-offload.c (oacc_get_min_dim): New function.
26660 * omp-offload.h (oacc_get_min_dim): Declare.
26661
26662 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26663
26664 PR target/88521
26665 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26666 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26667
26668 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26669
26670 PR tree-opt/86020
26671 Revert:
26672 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26673
26674 * ipa-inline.c (edge_badness): Use inlined_time instead of
26675 inline_summaries->get.
26676
26677 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26678
26679 * opts.c (enable_fdo_optimizations): Enable
26680 version-loops-for-strides, loop-interchange, unrol-and-jam
26681 and tree-loop-distribution.
26682 * invoke.texi: Document newly enabled options.
26683
26684 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26685
26686 * doc/invoke.texi (max-inline-insns-small): New parameters.
26687 * ipa-inline.c (want_early_inline_function_p): simplify.
26688 (want_inline_small_function_p): Fix pasto from previous patch;
26689 use max-inline-insns-small bound.
26690 * params.def (max-inline-insns-small): New param.
26691 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26692 variables correctly.
26693
26694 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26695
26696 * doc/invoke.texi: Document max-inline-insns-size,
26697 uninlined-function-insns, uninlined-function-time,
26698 uninlined-thunk-insns and uninlined-thunk-time.
26699 * params.def: Add max-inline-insns-size,
26700 uninlined-function-insns, uninlined-function-time,
26701 uninlined-thunk-insns and uninlined-thunk-time.
26702 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26703 new parameters.
26704 * ipa-inline.c (can_inline_edge_by_limits_p,
26705 want_inline_small_function_p): Use new parameters.
26706
26707 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26708
26709 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26710
26711 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26712
26713 PR middle-end/82564
26714 PR target/88620
26715 * expr.c (expand_assignment): For calls returning VLA structures
26716 if to_rtx is not a MEM, force it into a stack temporary.
26717
26718 PR debug/88635
26719 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26720 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26721 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26722 subexpressions of both operands.
26723 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26724 subrtxes are CONSTANT_P.
26725 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26726 2018-11-09 changes.
26727
26728 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26729
26730 * params.def (hot-bb-count-ws-permille): Set to 990.
26731
26732 2019-01-04 Martin Sebor <msebor@redhat.com>
26733
26734 PR c/88546
26735 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26736 leaf.
26737
26738 2019-01-04 Martin Sebor <msebor@redhat.com>
26739
26740 PR c/88363
26741 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26742
26743 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26744
26745 * gdbinit.in: Turn off pagination for the skip commands, restore
26746 it to previous state afterwards.
26747
26748 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26749
26750 PR target/88594
26751 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26752 of GET_MODE (opN) as modes of the libcall arguments.
26753
26754 2019-01-04 Jan Beulich <jbeulich@suse.com>
26755
26756 * config/i386/sse.md
26757 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26758 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26759 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26760 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26761 avx512f_vmcmp<mode>3<round_saeonly_name>,
26762 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26763 avx512f_maskcmp<mode>3,
26764 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26765 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26766 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26767 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26768 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26769 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26770 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26771 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26772 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26773 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26774 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26775 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26776 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26777 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26778 avx512cd_maskb_vec_dup<mode>,
26779 avx512cd_maskw_vec_dup<mode>,
26780 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26781 avx512dq_vmfpclass<mode>,
26782 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26783 instead of =Yk.
26784
26785 2019-01-03 Martin Sebor <msebor@redhat.com>
26786
26787 PR tree-optimization/88659
26788 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26789
26790 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26791
26792 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26793 unaligned vsx and avoid lxvd2x/stxvd2x.
26794 (gen_lvx_v4si_move): New function.
26795
26796 2019-01-03 Tom de Vries <tdevries@suse.de>
26797
26798 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26799 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26800 function.
26801 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26802
26803 2019-01-03 Tom de Vries <tdevries@suse.de>
26804
26805 * config/nvptx/nvptx.c (struct offload_attrs): New.
26806 (populate_offload_attrs): New function. Factor mask extraction out of
26807 nvptx_reorg. Add extraction of dimensions.
26808 (nvptx_reorg): Use populate_offload_attrs.
26809
26810 2019-01-03 Tom de Vries <tdevries@suse.de>
26811
26812 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26813 cases for oacc_min_dims_p and routine_p. Add asserts for
26814 oacc_default_dims_p and offload_region_p.
26815
26816 2019-01-03 Tom de Vries <tdevries@suse.de>
26817
26818 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26819 factored out of ...
26820 (nvptx_goacc_validate_dims): ... here.
26821
26822 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26823
26824 PR tree-optimization/85574
26825 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26826 structure.
26827 (struct ssa_equip_hash_traits): Declare.
26828 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26829
26830 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26831
26832 PR debug/88644
26833 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26834 change it to qualified_type.
26835
26836 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26837
26838 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26839 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26840
26841 2019-01-02 Martin Sebor <msebor@redhat.com>
26842 Jeff Law <law@redhat.com>
26843
26844 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26845 (get_range_strlen_tree): Update appropriately.
26846 (get_range_strlen)
26847 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26848
26849 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26850 rather than set_range_info.
26851 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26852 maybe_set_strlen_range. Handle potentially boundary crossing
26853 cases more conservatively.
26854 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26855 Call set_strlen_range.
26856 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26857
26858 PR middle-end/88663
26859 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26860 need the flexp argument.
26861 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26862 from calls to get_range_strlen. Update comments. Just update
26863 VAL for an unterminated const char array and let the reset of the
26864 code handle it normally. No longer try to set *flexp. Adjust
26865 return value.
26866 (get_range_strlen): Update for the new get_range_strlen API.
26867 (get_maxval_strlen): Similarly.
26868 (gimple_fold_builtin_strlen): Handle update meaning of return value
26869 from get_range_strlen.
26870 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26871 get_range_strlen API.
26872
26873 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26874
26875 PR lto/88130
26876 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26877 false at WPA time when body was removed.
26878
26879 2019-01-02 Martin Liska <mliska@suse.cz>
26880
26881 PR tree-optimization/88650
26882 * predict.c (set_even_probabilities): Calculate probability
26883 remainer only when really used.
26884
26885 2019-01-02 Richard Biener <rguenther@suse.de>
26886
26887 PR middle-end/88651
26888 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26889 widest_ints when mangling max_stmt_execution results.
26890
26891 2019-01-02 Richard Biener <rguenther@suse.de>
26892
26893 PR tree-optimization/88621
26894 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26895 bitfields when canoncalizing.
26896
26897 2019-01-02 Richard Biener <rguenther@suse.de>
26898
26899 PR target/87545
26900 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26901 cost of cheap SSE instruction.
26902
26903 2019-01-02 Richard Biener <rguenther@suse.de>
26904
26905 PR ipa/85574
26906 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26907 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26908 function.
26909 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26910 set after UIDs before splitting them.
26911
26912 2019-01-01 Martin Sebor <msebor@redhat.com>
26913 Jeff Law <law@redhat.com>
26914
26915 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26916 length is optimistic. If it is, then arrange to compute the
26917 conservative length as well.
26918
26919 * gimple-fold.h (get_range_strlen): Update prototype.
26920 * builtins.c (check_access): Update call to get_range_strlen to use
26921 c_strlen_data pointer. Change various variable accesses to instead
26922 pull data from the c_strlen_data structure.
26923 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26924 * calls.c (maybe_warn_nonstring_arg): Likewise.
26925 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26926 minimum length if maximum lengh is unknown.
26927 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26928 that used c_strlen, it's no longer needed. Restructure slightly.
26929 (format_string): Set unlikely range appropriately.
26930 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26931 formatting issues.
26932 (get_range_strlen): Accept c_strlen_data pointer for external
26933 call sites as well. Pass through to call to internal get_range_strlen.
26934 Adjust minlen, maxlen and maxbound as needed.
26935 (get_maxval_strlen): Update comments.
26936 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26937 to use c_strlen_data pointer. Change variable accesses to instead
26938 use c_strlen_data data members.
26939
26940 * gimple-fold.c (get_range_strlen): Update prototype.
26941 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26942 local variables. Use pdata to return information to caller.
26943 Update calls to get_range_strlen. Update pdata->maxbound.
26944 (get_range_strlen -- static version): Similarly.
26945 (get_range_strlen -- extern version): Update for internal
26946 get_range_strlen API change. Convert to external data format.
26947 (get_maxval_strlen): Similarly.
26948
26949 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26950
26951 * coverage.c (get_coverage_counts): Use current_function_decl.
26952 * profile.c (read_thunk_profile): New function.
26953 (branch_prob): Add THUNK parameter.
26954 * tree-profile.c (tree_profiling): Handle thunks.
26955 * value-prof.c (init_node_map): Handle thunks.
26956 * value-prof.h (branch_prob): Upate prototype.
26957 (read_thunk_profile): Declare.
26958
26959 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26960
26961 Update copyright years.
26962
26963 * gcc.c (process_command): Update copyright notice dates.
26964 * gcov-dump.c (print_version): Ditto.
26965 * gcov.c (print_version): Ditto.
26966 * gcov-tool.c (print_version): Ditto.
26967 * gengtype.c (create_file): Ditto.
26968 * doc/cpp.texi: Bump @copying's copyright year.
26969 * doc/cppinternals.texi: Ditto.
26970 * doc/gcc.texi: Ditto.
26971 * doc/gccint.texi: Ditto.
26972 * doc/gcov.texi: Ditto.
26973 * doc/install.texi: Ditto.
26974 * doc/invoke.texi: Ditto.
26975 \f
26976 Copyright (C) 2019 Free Software Foundation, Inc.
26977
26978 Copying and distribution of this file, with or without modification,
26979 are permitted in any medium without royalty provided the copyright
26980 notice and this notice are preserved.