1 2019-10-16 Richard Biener <rguenther@suse.de>
3 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
4 (vect_is_simple_reduction): Delay checking to
5 vectorizable_reduction and relax the checking.
6 (vectorizable_reduction): Check we have a simple use. Check
7 for bogus condition reductions.
8 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9 are looking at the last stmt in a pattern sequence when
10 filling in backedge PHI values.
12 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
13 Jiufu Guo <guojiufu@linux.ibm.com>
16 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
17 the callee explicitly disables some isa_flags the caller is using.
19 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
21 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
23 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
25 * genmodes.c (mode_data::order): New field.
26 (blank_mode): Update accordingly.
27 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
28 (make_vector_modes): Likewise.
29 (VECTOR_MODES): Update use accordingly.
30 (cmp_modes): Sort by the new order field ahead of sorting by size.
31 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
32 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
33 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
34 (aarch64_classify_vector_mode): Handle the new partial modes.
35 (aarch64_vl_bytes): New function.
36 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
37 when counting the number of registers in an SVE mode.
38 (aarch64_class_max_nregs): Likewise.
39 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
41 (aarch64_classify_address): Treat partial vectors analogously
43 (aarch64_print_address_internal): Consolidate the printing of
44 MUL VL addresses, using aarch64_vl_bytes as the number of
45 bytes represented by "VL".
46 (aarch64_vector_mode_supported_p): Reject partial vector modes.
48 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
50 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
51 rather than known_lt when choosing frame layouts.
53 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
55 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
56 that all the adjustments add up to the full frame size.
57 Use crtl->outgoing_args_size directly as the final adjustment
60 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
62 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
63 "frame" reference instead of always referring directly to
64 "cfun->machine->frame".
66 2019-10-16 Richard Biener <rguenther@suse.de>
68 PR tree-optimization/92119
69 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
70 against missing bswap lhs.
72 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
75 * poly-int.h (constant_lower_bound_with_limit): New function.
76 (constant_upper_bound_with_limit): Likewise.
77 * doc/poly-int.texi: Document them.
78 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
79 into the worst-case INTEGER_CST bounds.
81 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
84 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
85 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
86 * ipa-predicat.h (struct expr_eval_op): New struct.
87 (expr_eval_ops): New typedef.
88 (struct condition): Add type and param_ops fields, remove size field.
89 (add_condition): Replace size parameter with type parameter, add
91 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
92 (predicate::add_clause): Add comparisons on type and param_ops.
93 (dump_condition): Add debug dump for param_ops.
94 (remap_after_inlining): Adjust call arguments to add_condition.
95 (add_condition): Replace size parameter with type parameter, add
96 param_ops parameter. Unshare constant value used in conditions.
97 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
98 parameter expressions using param_ops.
99 (decompose_param_expr): New function.
100 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
101 to replace call to unmodified_parm_or_parm_agg_item.
102 (set_switch_stmt_execution_predicate): Likewise.
103 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
105 (inline_read_section): Read param_ops from summary stream.
106 (ipa_fn_summary_write): Write param_ops to summary stream.
108 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
110 PR rtl-optimization/92107
111 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
114 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
116 * config/darwin.c: Update description of fix and continue.
118 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
120 * config/darwin.c (darwin_binds_local_p): Update to call
121 default_binds_local_p_3 () directly. amend comments.
123 2019-10-15 Richard Biener <rguenther@suse.de>
125 * lto-streamer-out.c (lto_variably_modified_type_p): New.
126 (tree_is_indexable): Use it.
127 * tree-streamer-out.c (pack_ts_type_common_value_fields):
128 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
129 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
131 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
133 * config/msp430/msp430.md (zero_extendqipsi2): New.
134 (zero_extendqisi2): Optimize case where src register and base dst
135 register are the same.
136 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
137 (zero_extendpsisi2): Optimize r->m case.
138 Add unnamed insn patterns to catch insns combine searches for when
139 optimizing pointer manipulation.
141 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
143 * config/msp430/msp430.md: Group zero_extend* insns together.
145 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
147 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
149 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
151 (msp430_subreg): Likewise.
152 (msp430_split_addsi): Likewise.
153 (msp430_print_operand_addr): Likewise.
154 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
155 (USE_STORE_POST_INCREMENT): Define.
156 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
157 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
158 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
159 (msp430_general_dst_operand): New.
160 (msp430_general_dst_nonv_operand): New.
161 (msp430_nonsubreg_operand): Remove.
162 (msp430_nonsubreg_dst_operand): New.
163 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
164 of defunct msp430_nonsubreg_operand.
165 (msp430_nonsubregnonpostinc_or_imm_operand): New.
167 2019-10-15 Richard Biener <rguenther@suse.de>
169 PR tree-optimization/91929
170 * tree-ssa-pre.c (pre_expr_d::loc): New member.
171 (get_or_alloc_expr_for_name): Initialize it.
172 (get_or_alloc_expr_for_constant): Likewise.
173 (phi_translate_1): Copy it.
174 (create_expression_by_pieces): Use the original location
175 of the expression for the inserted stmt.
176 (compute_avail): Record the location of the stmt for the
179 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
181 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
182 before using tree_to_uhwi.
184 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
186 * config/s390/s390.md: Run %a0:DI splitters only after reload.
188 2019-10-15 Richard Biener <rguenther@suse.de>
190 PR tree-optimization/92094
191 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
192 do not adjust the reduction definition def type.
193 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
194 defines the latch argument of the PHI.
196 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
199 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
200 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
201 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
202 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
203 _mm_maskz_roundscale_round_sd): New intrinsics.
204 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
205 __builtin_ia32_rndscales?_mask_round builtins instead of
206 __builtin_ia32_rndscales?_round.
207 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
208 __builtin_ia32_rndscalesd_round): Remove.
209 (__builtin_ia32_rndscaless_mask_round,
210 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
212 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
213 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
214 ... this, adjust and add subst atrributes to make it maskable.
216 2019-10-15 Richard Biener <rguenther@suse.de>
219 * common.opt (fallow-store-data-races): New.
220 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
221 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
222 * doc/invoke.texi (fallow-store-data-races): Document.
223 (--param allow-store-data-races): Remove docs.
224 * opts.c (default_options_table): Enable -fallow-store-data-races
226 (default_options_optimization): Do not enable --param
227 allow-store-data-races at -Ofast.
228 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
229 instead of PARAM_ALLOW_STORE_DATA_RACES.
230 * tree-ssa-loop-im.c (execute_sm): Likewise.
232 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
234 PR tree-optimization/92085
235 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
236 instead of calling it unconditionally after
237 delete_dead_or_redundant_assignment and fix indentation.
239 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
241 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
243 (*fmsub<SDF:mode>4): Likewise.
244 *fnmsub<SDF:mode>4): Likewise.
245 (*fnmadd<SDF:mode>4): Likewise.
247 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
249 * doc/tree-ssa.texi: Update renamed macro name.
251 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
253 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
256 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
258 * config/darwin.c: Use unsigned ints for the picbase label
259 counters, initialise the vars explicitly.
260 (update_pic_label_number_if_needed): Move a variable declaration
261 to where it's needed.
262 (machopic_output_function_base_name): Use a more strict checking
263 assert, and and unsigned int for the picbase label counter.
264 (machopic_get_function_picbase): Likewise.
266 2019-10-14 Richard Biener <rguenther@suse.de>
269 * dse.c (scan_insn): Use param max_active_local_stores.
270 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
271 based on optimization level.
272 * loop-invariant.c (move_loop_invariants): Adjust
273 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
274 * opts.c (default_options_optimization): Do not adjust
275 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
276 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
278 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
280 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
282 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
284 * config/arm/arm.c (arm_option_override): Don't override sched
287 2019-10-14 Richard Biener <rguenther@suse.de>
289 PR tree-optimization/92069
290 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
291 cycles do not set vect_nested_cycle on the latch definition.
293 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
295 * function-abi.h (expr_callee_abi): Declare.
296 * function-abi.cc (expr_callee_abi): New function.
298 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
300 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
302 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
303 non-zero being represented as [1,MAX].
305 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
307 * tree-sra.c (dump_access): Add missing braces.
309 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
311 * config/darwin.c (machopic_indirection_name): Rework the
312 function to emit linker-visible symbols only for indirections
313 in the data section. Clean up the code and update comments.
315 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
317 * config/darwin.c (machopic_indirect_data_reference): Remove
320 2019-10-13 Nathan Sidwell <nathan@acm.org>
322 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
324 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
326 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
329 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
331 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
332 so non-virutal are before virutals.
333 (output_function): Avoid body modifications.
335 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
337 * config/pa/pa.c (pa_output_call): Load descriptor address to register
338 %r22. Load function address before global pointer.
339 (pa_attr_length_indirect_call): Adjust length of inline versions of
341 (pa_output_indirect_call): Remove fast inline version of $$dyncall
342 before normal cases. Update inline $$dyncall sequences to preserve
343 function descriptor address in register %r22.
344 (TRAMPOLINE_CODE_SIZE): Adjust.
345 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
346 register %r22 contains trampoline address.
347 (pa_trampoline_init): Adjust offsets.
348 (pa_trampoline_adjust_address): Likewise.
349 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
351 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
354 * config/darwin.c (machopic_indirection): New field to flag
355 non-lazy-symbol-pointers in the data section.
356 (machopic_indirection_name): Compute if an indirection should
357 appear in the data section.
358 (machopic_output_data_section_indirection): New callback split
359 from machopic_output_indirection.
360 (machopic_output_stub_indirection): Likewise.
361 (machopic_output_indirection): Retain the code for non-lazy
362 symbol pointers in their regular section.
363 (machopic_finish): Use the new callbacks to order the indirection
366 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
368 * config/darwin-protos.h (machopic_finish): Delete.
369 * config/darwin.c (machopic_finish): Make static.
371 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
373 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
374 sections when building kernel extension code.
376 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
378 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
381 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
383 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
386 2019-10-12 Jakub Jelinek <jakub@redhat.com>
389 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
390 <case VEC_COND_EXPR>: Return false with *handled = false.
391 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
392 recursing on the first operand.
393 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
394 instead of tree_could_trap_p.
395 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
397 2019-10-11 Jim Wilson <jimw@sifive.com>
399 PR rtl-optimization/91860
400 * combine.c (subst): If new_rtx is a constant, also check for
401 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
403 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
405 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
406 INTVAL when calling store_bit_field.
408 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
410 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
413 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
415 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
416 vectorizable_live_operation.
417 (vectorizable_live_operation): Adjust parameters.
418 * tree-vect-stmts.c (vect_init_vector,
419 vect_gen_widened_results_half): Fix typo in function comment.
420 (can_vectorize_live_stmts): Adjust function comment.
421 Adjust parameters. Adjust call to vectorizable_live_operation.
422 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
423 (vect_transform_stmt): Adjust function comment. Adjust call to
424 can_vectorize_live_stmts.
425 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
427 2019-10-11 Richard Biener <rguenther@suse.de>
429 PR tree-optimization/90883
430 PR tree-optimization/91091
431 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
432 alias-sets both for recording VN table entries and continuing
433 walking after translating through copies. Handle same-sized
434 reads from SSA names by returning the plain SSA name.
435 (eliminate_dom_walker::eliminate_stmt): Properly handle
436 non-size precision stores in redundant store elimination.
438 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
440 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
441 (ggc_collect): Dump later to not interfere with release_page dump.
442 (ggc_trim): New function.
443 * ggc-none.c (ggc_trim): New.
444 * ggc.h (ggc_trim): Declare.
446 2019-10-11 Richard Biener <rguenther@suse.de>
448 PR tree-optimization/92066
449 PR tree-optimization/92046
450 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
451 Fix bogus cost model check.
453 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
455 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
456 (LANG_HOOKS_DECLS): Add it.
457 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
458 update comment for omp_is_optional_argument.
459 * omp-general.c (omp_is_allocatable_or_ptr): New.
460 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
461 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
462 Fortran's optional arguments and allocatable/pointer scalars
463 with use_device_addr.
465 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
468 * config/s390/2827.md: Add new opcodes.
469 * config/s390/2964.md: Likewise.
470 * config/s390/3906.md: Likewise.
471 * config/s390/8561.md: Likewise.
472 * config/s390/s390-builtins.def (s390_vfchesb): Use
473 the new vec_cmpgev4sf_quiet_nocc.
474 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
475 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
476 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
477 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
478 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
479 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
480 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
481 * config/s390/s390-modes.def (CCSFPS): New mode.
482 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
483 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
484 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
485 (s390_expand_vec_compare): Use non-signaling patterns where
487 (s390_reverse_condition): Support CCSFPS.
488 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
489 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
490 (asm_fcmp_op): Likewise.
491 (*smaxv2df3_vx): Use pattern for quiet comparison.
492 (*sminv2df3_vx): Likewise.
493 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
494 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
495 (vec_cmpgt<mode>_quiet_nocc): Likewise.
496 (vec_cmplt<mode>_quiet_nocc): New expander.
497 (vec_cmpge<mode>_quiet_nocc): New pattern.
498 (vec_cmple<mode>_quiet_nocc): New expander.
499 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
500 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
501 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
502 (*vec_cmpge<mode>_signaling_nocc): Likewise.
503 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
504 (vec_cmpungt<mode>): New expander.
505 (vec_cmpunge<mode>): Likewise.
506 (vec_cmpuneq<mode>): Use quiet patterns.
507 (vec_cmpltgt<mode>): Allow only on z14+.
508 (vec_cmpordered<mode>): Use quiet patterns.
509 (vec_cmpunordered<mode>): Likewise.
510 (VEC_CMP_EXPAND): Add ungt and unge.
512 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
514 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
516 * lto-streamer-out.c: Include tree-dfa.h.
517 (output_cfg): Do not use cfun.
518 (lto_prepare_function_for_streaming): New.
519 (output_function): Do not push cfun; do not initialize loop optimizer.
520 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
521 * passes.c (ipa_write_summaries): Use it.
522 (ipa_write_optimization_summaries): Do not modify bodies.
523 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
524 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
525 * tree-ssa-dse.c (pass_dse::execute): Update use of
526 renumber_gimple_stmt_uids.
527 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
529 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
531 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
532 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
534 2019-10-10 Joseph Myers <joseph@codesourcery.com>
536 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
538 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
539 Also define DFP macros for these conditions.
540 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
541 DEC128_SUBNORMAL_MIN): Do not define.
542 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
543 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
545 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
546 Sandra Loosemore <sandra@codesourcery.com>
549 * doc/lto.texi (IPA): Reference to the IPA passes.
550 * doc/passes.texi (Pass manager): Add node IPA passes and
551 description for each IPA pass.
553 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
555 * ipa-reference.c: Do not include splay-tree.h
556 (reference_vars_to_consider): Turn to hash map.
557 (get_static_name, ipa_init, analyze_function, propagate,
558 stream_out_bitmap, ipa_reference_write_optimization_summary,
559 ipa_reference_write_optimization_summary): Update.
561 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
563 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
565 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
567 * config/darwin.c: Lookup Objective C metadata and force indirection
570 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
572 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
574 (mem_operand_gpr): Add check for prefixed addresses.
575 (mem_operand_ds_form): Add check for prefixed addresses.
576 (rs6000_legitimate_offset_address_p): If we support prefixed
577 addresses, check for a 34-bit offset instead of 16-bit.
578 (rs6000_legitimate_address_p): Add check for prefixed addresses.
579 Do not allow load/store with update if the address is prefixed.
580 (rs6000_mode_dependent_address): If we support prefixed
581 addresses, check for a 34-bit offset instead of 16-bit.
583 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
586 * config/s390/vector.md (vcond_comparison_operator): New
588 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
590 2019-10-10 David Malcolm <dmalcolm@redhat.com>
593 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
595 * configure.ac (--with-documentation-root-url): New option.
596 * configure: Regenerate.
597 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
598 option URL, add it as a new string field of the diagnostic option.
599 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
600 (print_option_information): If get_option_url is non-NULL, call
601 it, and if the result is non-NULL, potentially emit an escape
602 sequence to markup the option text with the resulting URL.
603 * diagnostic.h (diagnostic_context::get_option_url): New callback.
604 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
605 example of JSON output.
606 * opts-diagnostic.h (get_option_url): New decl.
607 * opts.c (get_option_url): New function.
608 * toplev.c (general_init): Initialize the get_option_url callback.
610 2019-10-10 David Malcolm <dmalcolm@redhat.com>
613 * common.opt (fdiagnostics-urls=): New option.
614 (diagnostic-url.h): Add SourceInclude.
615 (diagnostic_url_rule): New enum.
616 * diagnostic-color.c: Include "diagnostic-url.h".
617 (diagnostic_urls_enabled_p): New function.
618 * diagnostic-url.h: New file.
619 * diagnostic.c: Include "diagnostic-url.h".
620 (diagnostic_urls_init): New function.
621 * diagnostic.h (diagnostic_urls_init): New decl.
622 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
623 -fdiagnostics-urls to the list.
624 (-fdiagnostics-urls): New option.
625 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
626 (driver::global_initializations): Call diagnostic_urls_init.
627 * opts-global.c (init_options_once): Likewise.
628 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
629 * pretty-print.c (pretty_printer::pretty_printer): Initialize
631 (pp_begin_url): New function.
632 (pp_end_url): New function.
633 (selftest::test_urls): New selftest.
634 (selftest::pretty_print_c_tests): Call it.
635 * pretty-print.h (pretty_printer::show_urls): New field.
636 (pp_begin_url): New decl.
637 (pp_end_url): New decl.
639 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
642 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
644 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
647 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
648 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
649 also for TARGET_FPU_SH4_300.
650 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
652 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
653 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
654 (*negsf2_i): Split into ...
655 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
656 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
657 (**abssf2_i): Split into ...
658 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
659 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
660 (*negdf2_i): Split into ...
661 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
662 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
663 (**abssf2_i): Split into ...
664 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
666 2019-10-10 Richard Biener <rguenther@suse.de>
669 * opts.c (finish_options): Do not influence global --params
670 from options that are adjustable per function.
671 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
672 Apply --param adjustment based on active cost-model.
673 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
674 further store-sinking when vectorization or if-conversion
677 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
680 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
681 rather than ggc_alloc_cleared to alloc symbol table.
682 * toplev.c (general_init): Likewise.
683 * cgraph.h (symbol_table): Explicitly construct every field.
685 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
687 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
689 * config.gcc: Add z15 as option for --with-arch and --with-tune
691 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
692 error reporting for unsupported builtins.
693 * config/s390/s390-opts.h (enum processor_type): Rename
694 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
695 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
696 * config/s390/driver-native.c (s390_host_detect_local_cpu):
698 * config/s390/s390-builtins.def: Likewise.
699 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
700 (s390_expand_builtin): Add missing check for unsupported builtins.
701 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
702 (s390_rtx_costs): Likewise.
703 (s390_get_sched_attrmask): Rename arch13 to z15.
704 (s390_get_unit_mask): Likewise.
705 (s390_is_fpd): Likewise.
706 (s390_is_fxd): Likewise.
707 * config/s390/s390.h (enum processor_flags): Likewise.
708 * config/s390/s390.md: Likewise.
709 * config/s390/vector.md: Likewise.
710 * config/s390/vx-builtins.md: Likewise.
711 * config/s390/s390.opt: Add z15 to processor_type value.
713 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
716 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
718 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
719 ("split_stack_data", "split_stack_call")
720 ("split_stack_call_<mode>", "split_stack_cond_call")
721 ("split_stack_cond_call_<mode>"): Remove.
722 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
724 * config/s390/s390.c (s390_output_split_stack_data): New function.
725 (s390_expand_split_stack_prologue): Use the merged expander.
727 2019-10-09 Martin Sebor <msebor@redhat.com>
729 PR tree-optimization/90879
730 * builtins.c (check_access): Avoid using maxbound when null.
731 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
732 * doc/invoke.texi (-Wstring-compare): Document new warning option.
733 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
735 (get_range_strlen): Overwrite initial maxbound when non-null.
736 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
738 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
739 (used_only_for_zero_equality): New function.
740 (handle_builtin_memcmp): Call it.
741 (determine_min_objsize): Return an integer instead of tree.
742 (get_len_or_size, strxcmp_eqz_result): New functions.
743 (maybe_warn_pointless_strcmp): New function.
744 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
745 between a longer string and a smaller array.
746 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
748 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
750 * config/darwin.c (darwin_override_options): Make the check for
751 Objective-C ABI version more specific for 64bit code.
753 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
755 * config/darwin.c (machopic_indirect_data_reference): Set flag to
756 indicate that the new symbol is an indirection.
757 (machopic_indirect_call_target): Likewise.
758 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
759 (MACHO_SYMBOL_INDIRECTION_P): New.
760 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
762 2019-10-08 Jason Merrill <jason@redhat.com>
764 * doc/invoke.texi: Document -fconcepts-ts.
766 2019-10-09 Richard Biener <rguenther@suse.de>
768 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
769 allow stmts other than GIMPLE_ASSIGN in nested cycles.
771 2019-10-08 Richard Biener <rguenther@suse.de>
773 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
774 (_stmt_vec_info::force_single_cycle): Likewise.
775 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
776 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
777 * tree-vect-loop.c (vectorizable_reduction): Set
778 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
779 (vect_transform_reduction): Use them to remove redundant code.
780 (vect_transform_cycle_phi): Likewise.
782 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
784 PR tree-optimization/90836
785 * gcc/match.pd (popcount): New pattern.
787 2019-10-08 Martin Sebor <msebor@redhat.com>
791 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
792 again once nbytes has been set. Set the access size when not yet set.
794 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
796 * config/darwin.c (machopic_select_section): Remove dead code for
797 old Objective-C section selection method, replace with unreachable.
799 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
801 * config/darwin.c (machopic_indirect_data_reference): Check for
802 required indirections before making direct access to defined
804 (machopic_output_indirection): Place the indirected pointes for
805 required indirections into the non-lazy symbol pointers section.
806 (darwin_encode_section_info):
807 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
808 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
810 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
813 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
814 instead of ALL_SSE_REG to check if function call preserves some
815 256-bit SSE registers.
817 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
819 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
820 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
821 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
823 2019-10-08 Richard Biener <rguenther@suse.de>
825 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
826 (_stmt_vec_info::is_reduc_info): Add.
827 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
828 (vectorizable_condition): Remove.
829 (vectorizable_shift): Likewise.
830 (vectorizable_reduction): Adjust.
831 (info_for_reduction): New.
832 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
833 (vect_analyze_scalar_cycles_1): ... here.
834 (vect_analyze_loop_operations): Adjust.
835 (needs_fold_left_reduction_p): Simplify for single caller.
836 (vect_is_simple_reduction): Likewise. Remove stmt restriction
837 for nested cycles not part of double reductions.
838 (vect_model_reduction_cost): Pass in the reduction type.
839 (info_for_reduction): New function.
840 (vect_create_epilog_for_reduction): Use it, access reduction
841 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
842 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
843 (vectorize_fold_left_reduction): Remove pointless assert.
844 (vectorizable_reduction): Analyze the full reduction when
845 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
846 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
847 stmt code-generation to vectorizable_* in most cases. Verify
848 code-generation only for cases handled by
849 vect_transform_reductuon.
850 (vect_transform_reduction): Use info_for_reduction to get at
851 reduction meta. Simplify.
852 (vect_transform_cycle_phi): Likewise.
853 (vectorizable_live_operation): Likewise.
854 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
855 at the PHI node for STMT_VINFO_REDUC_TYPE.
856 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
857 longer necessary code.
858 * tree-vect-stmts.c (vectorizable_shift): Make static again.
859 (vectorizable_condition): Likewise. Get at reduction related
860 info via info_for_reduction.
861 (vect_analyze_stmt): Adjust.
862 (vect_transform_stmt): Likewise.
863 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
864 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
866 2019-10-08 Joseph Myers <joseph@codesourcery.com>
868 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
869 -fno-fp-int-builtin-inexact default for C2X.
871 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
872 Richard Biener <rguenther@suse.de>
874 PR tree-optimization/91532
875 * tree-if-conv.c: Include tree-ssa-dse.h.
876 (ifcvt_local_dce): Change param from bb to loop,
877 and call dse_classify_store.
878 (tree_if_conversion): Pass loop instead of loop->header as arg
880 * tree-ssa-dse.c: Include tree-ssa-dse.h.
881 (delete_dead_or_redundant_assignment): Remove static qualifier from
882 declaration, and add prototype in tree-ssa-dse.h.
883 (dse_store_status): Move to tree-ssa-dse.h.
884 (dse_classify_store): Remove static qualifier and add new tree param
885 stop_at_vuse, and add prototype in tree-ssa-dse.h.
886 * tree-ssa-dse.h: New header.
888 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
890 * config/darwin.c (machopic_output_indirection): Don't put
891 hidden symbol indirections into the .data section, use the
892 non-lazy symbol pointers section as normal.
893 (darwin_encode_section_info): Record if a symbol is hidden.
894 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
895 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
897 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
899 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
900 predicates instead of accessing bits directly.
901 (machopic_indirect_call_target): Likewise.
902 (machopic_output_indirection): Likewise.
903 (darwin_encode_section_info): Improve description. Use renamed
904 symbol flags. Use predicate macros for variables and functions.
906 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
907 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
908 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
909 (MACHO_SYMBOL_VARIABLE_P): New.
910 (MACHO_SYMBOL_DEFINED_P):New.
911 (MACHO_SYMBOL_STATIC_P): New.
912 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
913 (SYMBOL_FLAG_SUBT_DEP): New.
914 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
916 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
918 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
919 (msp430_expand_epilogue): Likewise.
920 * config/msp430/predicates.md: Likewise.
921 * config/msp430/msp430.md: Likewise.
922 Replace blocks of 8 spaces with tabs.
924 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
926 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
927 * config/msp430/msp430.c (msp430_split_addsi): New.
928 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
929 a block of C code for splitting addsi.
931 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
933 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
934 ix86_expand_rounddf_32): Reorder functions.
935 * config/i386/i386-protos.h: Update.
937 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
939 * config.in: Regenerate.
940 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
941 Add new "Yx" constraint.
942 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
944 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
946 * config/msp430/msp430.c (msp430_option_override): Allow the lower
947 code/data region to be selected in the small memory model.
948 (msp430_section_attr): Don't warn if the "section" and "lower"
949 attributes are used together.
950 (msp430_handle_generic_attribute): Likewise.
951 (msp430_var_in_low_mem): New function.
952 (TARGET_ENCODE_SECTION_INFO): Define.
953 (msp430_encode_section_info): New function.
954 (gen_prefix): Return early in the small memory model.
955 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
956 ".lower" prefix if -m{code,data}-region=lower have been passed.
957 (msp430_output_aligned_decl_common): Emit common symbols when
958 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
960 (TARGET_ASM_FILE_END): Define.
961 (msp430_file_end): New function.
962 (msp430_do_not_relax_short_jumps): Allow relaxation when
963 function will be in the lower region.
964 (msp430_op_not_in_high_mem): New function.
965 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
966 the 'X' operand selector.
967 Clarify comment for 'x' operand selector.
968 * config/msp430/msp430.h (LINK_SPEC): Propagate
969 -m{code,data}-region to the linker via spec function
970 msp430_propagate_region_opt.
971 (msp430_propagate_region_opt): New prototype.
972 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
973 (SYMBOL_FLAG_LOW_MEM): Define.
974 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
976 (zero_extendqihi2): Fix operand number used by "%X" selector.
977 (zero_extendqisi2): Likewise.
978 (zero_extendhisi2): Likewise.
979 (movqi): Use "Yx" constraint in place of "%X" operand selector.
984 (addhi3_cy): Likewise.
985 (addchi4_cy): Likewise.
989 (bic<mode>3): Likewise.
990 (and<mode>3): Likewise.
991 (ior<mode>3): Likewise.
992 (xor<mode>3): Likewise.
993 (slli_1): Add missing "%X" operand selector.
1001 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1003 (cbranchhi4_real): Likewise.
1004 (cbranchqi4_reversed): Likewise.
1005 (cbranchhi4_reversed): Likewise.
1006 (*bitbranch<mode>4): Likewise.
1007 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1008 * config/msp430/msp430.opt (mcode-region=): Set default to
1009 MSP430_REGION_LOWER. Improve docstring.
1010 (mdata-region=): Likewise.
1011 (muse-lower-region-prefix): New option.
1012 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1013 mdata-region=none multilib.
1014 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1015 mdata-region=none multilib.
1016 MULTILIB_EXCEPTIONS: Remove.
1017 MULTILIB_REQUIRED: Define.
1018 * configure: Regenerate.
1019 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1020 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1021 * doc/extend.texi: Clarify comment for {upper,lower,either}
1022 function attributes.
1023 Add separate description for "lower" variable attribute.
1025 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1028 * optabs-tree.c (vcond_icode_p): New function.
1029 (vcond_eq_icode_p): Likewise.
1030 (expand_vec_cond_expr_p): Use vcond_icode_p and
1032 * optabs.c (can_vcond_compare_p): New function.
1033 * optabs.h (can_vcond_compare_p): Likewise.
1035 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1038 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1039 caller passes a non-trapping condition.
1040 (is_gimple_condexpr): Allow trapping conditions.
1041 (is_gimple_condexpr_1): New helper function.
1042 (is_gimple_condexpr_for_cond): New function, acts like old
1044 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1045 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1046 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1047 * gimplify.c (gimplify_cond_expr): Use
1048 is_gimple_condexpr_for_cond.
1049 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1050 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1052 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1053 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1054 is_gimple_condexpr_for_cond, remove pointless tmp check
1055 (forward_propagate_into_cond): Remove pointless tmp check.
1057 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1059 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1060 match that of other gsi_next_* functions. Adjust the comment.
1061 (gsi_start_nonvirtual_phis): New function.
1062 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1063 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1065 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1067 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1068 setjmp situation here. Fix a verb's ending: "the exact variables or
1069 elements for which there are warnings depends" -> "... depend".
1071 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1073 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1075 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1077 * ipa-prop.c (ipa_vr::nonzero_p): New.
1078 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1080 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1081 * tree-vrp.c (range_has_numeric_bounds_p): New.
1082 (range_int_cst_p): Use range_has_numeric_bounds_p.
1083 (get_range_op_handler): New.
1084 (supported_types_p): New.
1085 (defined_ranges_p): New.
1086 (drop_undefines_to_varying): New.
1087 (range_fold_binary_symbolics_p): New.
1088 (range_fold_unary_symbolics_p): New.
1089 (range_fold_unary_expr): Extract out into above functions.
1090 (range_fold_binary_expr): Same.
1091 (value_range_base::normalize_addresses): New.
1092 (value_range_base::normalize_symbolics): Normalize addresses.
1093 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1095 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1097 * tree-vrp.c (value_range_base::singleton_p): Use
1098 value_range_base::num_pairs instead of vrp_val_is* to check
1099 if a range has one sub-range.
1101 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1103 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1104 DEF is not a true earlyclobber but is tied to a specific input
1105 operand, and so is effectively earlyclobber wrt inputs that have
1107 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1109 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1111 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1112 (pod_mode): Mark operators likewise.
1113 (scalar_int_mode): Mark non-default constructors and
1114 operators with CONSTEXPR.
1115 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1116 (fixed_size_mode): Likewise.
1118 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1121 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1122 and wrap the unspec_volatile in a parallel.
1123 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1124 the unspec_volatile.
1125 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1126 unspec_volatile to be wrapped in a parallel.
1127 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1128 (ix86_add_reg_usage_to_vzerouppers): New functions.
1129 (rest_of_handle_insert_vzeroupper): Use them to add register
1130 usage information to the vzeroupper instructions.
1132 2019-10-07 Richard Biener <rguenther@suse.de>
1134 PR tree-optimization/91975
1135 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1138 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1140 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1141 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1143 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1145 * config/darwin.c (darwin_override_options): Adjust objective-c
1146 ABI version error messages to avoid punctuation and contracted
1149 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1151 * ipa-inline.c: Fix type; compute size rather than self_size
1152 for size of caller function.
1154 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1157 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1158 choose const_data section for constants with relocations.
1159 (machopic_select_section): Pass relocation flag to
1160 darwin_rodata_section ().
1162 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1164 PR tree-optimization/91734
1165 * generic-match-head.c: Include fold-const-call.h.
1166 * match.pd (sqrt(x) cmp c): Check the boundary value and
1167 in case inexact computation of c*c affects comparison of the boundary,
1168 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1169 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1170 for -frounding-math. For c2, try the next smaller or larger floating
1171 point constant depending on comparison code and if it has the same
1172 sqrt as c2, use it instead of c2.
1174 2019-10-04 Martin Sebor <msebor@redhat.com>
1177 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1178 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1179 uninitialized objects.
1181 2019-10-04 Martin Sebor <msebor@redhat.com>
1183 * builtins.c (compute_objsize): Add an argument.
1184 * tree-object-size.c (addr_object_size): Same.
1185 (compute_builtin_object_size): Same.
1186 * tree-object-size.h (compute_builtin_object): Same.
1188 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1190 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1192 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1194 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1196 2019-10-04 Martin Jambor <mjambor@suse.cz>
1198 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1199 fntype when switching to calling memcpy instead of memset.
1201 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1203 * hash-table.h (hash_table::empty_slow): Don't assign
1204 size_t values to int variables.
1206 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1208 * expr.c (convert_mode_scalar): Remove shadowing local var.
1209 (emit_block_move): Rename local vars.
1210 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1211 (emit_push_insn): Rename local vars.
1212 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1213 shadowing local vars.
1214 (store_constructor): Remove shadowing local vars. Rename local var.
1215 (store_field, expand_cond_expr_using_cmove,
1216 expand_expr_real_2): Remove shadowing local vars.
1217 (expand_expr_real_1,
1218 do_store_flag): Remove shadowing local vars. Rename local vars.
1220 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1222 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1224 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1226 * genmatch.c (commutate): Rename local var.
1227 (lower_cond): Reuse local var.
1228 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1229 dt_operand::gen, dt_operand::gen_gimple_expr,
1230 dt_simplify::gen): Add a param. Rename generated vars.
1231 (decision_tree::insert_operand,
1232 (capture_info::walk_match, capture_info::walk_result,
1233 capture_info::walk_c_expr): Rename local vars.
1234 (expr::gen_transform): Rename generated vars.
1235 Use snprintf. Rename local vars.
1236 (capture::gen_transform, dt_operand::get_name,
1237 dt_operand::gen_opname): Rename generated vars.
1238 (write_predicate): Adjust call to gen_kids.
1239 (parser::get_internal_capture_id): Rename generated vars.
1240 (parser::parse_expr): Rename local vars.
1241 (parser::parse_if): Remove local var.
1242 (parser::parse_pattern, add_operator): Rename local vars.
1244 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1246 * builtins.def (DEF_C2X_BUILTIN): New macro.
1247 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1248 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1249 (strndup): Use DEF_C2X_BUILTIN.
1250 * coretypes.h (enum function_class): Add function_c2x_misc.
1252 2019-10-04 Maya Rashish <coypu@sdf.org>
1254 * ira-color.c (update_costs_from_allocno): Call
1255 ira_init_register_move_cost_if_necessary.
1257 2019-10-04 Jeff Law <law@redhat.com>
1259 * config/h8300/h8300.md (cpymemsi): Disable.
1260 (movmd, movmd_internal_<mode>, movstr, movsd):
1261 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1262 (movmd splitter, movsd splitter): Likewise.
1264 * range-op.cc (range_tests): Avoid two tests when ints and
1265 shorts are the same size.
1267 2019-10-04 Richard Biener <rguenther@suse.de>
1270 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1273 2019-10-04 Richard Biener <rguenther@suse.de>
1275 PR tree-optimization/91982
1276 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1277 against EXTRACT_LAST_REDUCTION.
1278 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1280 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1282 * range-op.o (value_range_from_overflowed_bounds): Rename from
1283 adjust_overflow_bound.
1284 (value_range_with_overflow): Rename from
1285 create_range_with_overflow.
1286 (create_possibly_reversed_range): Adjusted for above renames.
1287 (operator_*::wi_fold): Same.
1288 (cross_product_operator::wi_cross_productor): Same.
1290 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1292 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1293 -Wshadow=compatible-local): Fix description.
1294 Add an example where -Wshadow=compatible-local does not
1297 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1299 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1301 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1302 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1304 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1306 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1307 can_move_by_pieces issue.
1309 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1312 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1313 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1314 is available and the user has not set one on the command line.
1316 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1319 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1320 instead of REGNO equality check on addr.reg.
1322 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1324 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1325 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1326 * doc/invoke.texi (inline-heuristics-hint-percent,
1327 inline-heuristics-hint-percent-O2): Document.
1328 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1330 (can_inline_edge_by_limits_p): Use it.
1332 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1334 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1335 to print CONST_DOUBLEs.
1337 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1339 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1340 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1341 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1343 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1345 * Makefile.in (OBJS): Add range.o and range-op.o.
1346 Remove wide-int-range.o.
1347 * function-tests.c (test_ranges): New.
1348 (function_tests_c_tests): Call test_ranges.
1349 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1350 range_fold_unary_expr instead of extract_range_from_unary_expr.
1351 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1352 * range-op.cc: New file.
1353 * range-op.h: New file.
1354 * range.cc: New file.
1355 * range.h: New file.
1356 * selftest.h (range_tests): New prototype.
1357 * ssa.h: Include range.h.
1358 * tree-vrp.c (value_range_base::value_range_base): New
1360 (value_range_base::singleton_p): Do not call
1361 ranges_from_anti_range until sure we will need to.
1362 (value_range_base::type): Rename gcc_assert to
1363 gcc_checking_assert.
1364 (vrp_val_is_max): New argument.
1365 (vrp_val_is_min): Same.
1366 (wide_int_range_set_zero_nonzero_bits): Move from
1368 (extract_range_into_wide_ints): Remove.
1369 (extract_range_from_multiplicative_op): Remove.
1370 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1371 from extract_range_from_binary_expr.
1372 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1373 from extract_range_from_binary_expr.
1374 (extract_range_from_binary_expr): Remove.
1375 (normalize_for_range_ops): New.
1376 (range_fold_binary_expr): New.
1377 (range_fold_unary_expr): New.
1378 (value_range_base::num_pairs): New.
1379 (value_range_base::lower_bound): New.
1380 (value_range_base::upper_bound): New.
1381 (value_range_base::upper_bound): New.
1382 (value_range_base::contains_p): New.
1383 (value_range_base::invert): New.
1384 (value_range_base::union_): New.
1385 (value_range_base::intersect): New.
1386 (range_compatible_p): New.
1387 (value_range_base::operator==): New.
1388 (determine_value_range_1): Call range_fold_*expr instead of
1389 extract_range_from_*expr.
1390 * tree-vrp.h (class value_range_base): Add new constructors.
1391 Add methods for union_, intersect, operator==, contains_p,
1392 num_pairs, lower_bound, upper_bound, invert.
1393 (vrp_val_is_min): Add handle_pointers argument.
1394 (vrp_val_is_max): Same.
1395 (extract_range_from_unary_expr): Remove.
1396 (extract_range_from_binary_expr): Remove.
1397 (range_fold_unary_expr): New.
1398 (range_fold_binary_expr): New.
1399 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1400 range_fold_binary_expr instead of extract_range_from_binary_expr.
1401 (vr_values::extract_range_basic): Same.
1402 (vr_values::extract_range_from_unary_expr): Call
1403 range_fold_unary_expr instead of extract_range_from_unary_expr.
1404 * wide-int-range.cc: Remove.
1405 * wide-int-range.h: Remove.
1407 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1409 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1410 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1411 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1412 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1415 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1417 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1418 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1419 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1420 * glimits.h: Likewise.
1422 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1424 PR rtl-optimization/91976
1425 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1426 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1427 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1429 2019-10-02 Martin Sebor <msebor@redhat.com>
1431 PR tree-optimization/80936
1432 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1434 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1436 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1437 instead of reg_class_contents[ALL_REGS].
1439 2019-09-30 Jason Merrill <jason@redhat.com>
1441 Add some hash_map_safe_* functions like vec_safe_*.
1442 * hash-map.h (default_hash_map_size): New variable.
1443 (create_ggc): Use it as default argument.
1444 (hash_map_maybe_create, hash_map_safe_get)
1445 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1447 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1449 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1450 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1451 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1452 (can_inline_edge_by_limits_p): Use it.
1453 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1454 (want_inline_small_function_p): Use O2 bounds.
1455 (edge_badness): LIkewise.
1456 * opts.c (default_options): Add OPT_finline_functions.
1457 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1458 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1460 * doc/invoke.texi (-finline-functions): Update documentation.
1461 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1462 inline-min-speedup-O2): Document.
1463 (early-inlining-insns-O2): Simplify docs.
1465 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1467 PR rtl-optimization/87047
1468 * ifcvt.c (average_cost): New static function. Use it...
1469 (noce_process_if_block): ... here.
1471 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1473 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1474 * config/rs6000/rs6000-string.c (expand_block_move): Add
1476 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1477 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1479 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1481 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1482 (expand_builtin_memcpy): Use might_overlap parm.
1483 (expand_builtin_mempcpy_args): Use might_overlap parm.
1484 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1485 (expand_builtin_memory_copy_args): Add might_overlap parm.
1486 * expr.c (emit_block_move_via_cpymem): Rename to
1487 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1488 or movmem optab as appropriate.
1489 (emit_block_move_hints): Add might_overlap parm, do the right
1490 thing for might_overlap==true.
1491 * expr.h (emit_block_move_hints): Update prototype.
1493 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1495 * tree-eh.h (unsplit_eh_edges): Declare.
1496 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1497 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1498 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1499 (struct store_immediate_info): Add lp_nr field.
1500 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1501 initialize lp_nr with it.
1502 (struct merged_store_group): Add lp_nr and only_constants fields.
1503 (merged_store_group::merged_store_group): Initialize them.
1504 (merged_store_group::can_be_merged_into): Deal with them.
1505 (pass_store_merging): Rename terminate_and_release_chain into
1506 terminate_and_process_chain.
1507 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1508 renaming and remove useless assertions.
1509 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1510 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1511 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1512 instead of always recomputing it and compare lp_nr.
1513 (imm_store_chain_info::output_merged_store): If the group is in an
1514 active EH region, register new stores if they can throw. Moreover,
1515 if the insertion has created new basic blocks, adjust the PHI nodes
1516 of the post landing pad.
1517 (imm_store_chain_info::output_merged_stores): If the original stores
1518 are in an active EH region, deregister them.
1519 (lhs_valid_for_store_merging_p): Prettify.
1520 (adjust_bit_pos): New function extracted from...
1521 (mem_valid_for_store_merging): ...here. Use it for the base address
1522 and also for the offset if it is the addition of a constant.
1523 (lp_nr_for_store): New function.
1524 (pass_store_merging::process_store): Change return type to bool.
1525 Call lp_nr_for_store to initialize the store info. Propagate the
1526 return status of various called functions to the return value.
1527 (store_valid_for_store_merging_p): New predicate.
1528 (enum basic_block_status): New enumeration.
1529 (get_status_for_store_merging): New function.
1530 (pass_store_merging::execute): If the function can throw and catch
1531 non-call exceptions, unsplit the EH edges on entry and clean up the
1532 CFG on exit if something changed. Call get_status_for_store_merging
1533 for every basic block and keep the chains open across basic blocks
1534 when possible. Terminate and process open chains at the end, if any.
1536 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1538 * reginfo.c (globalize_reg): Fix shadowed variable in
1541 2019-10-02 Martin Jambor <mjambor@suse.cz>
1543 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1544 do not compute some stuff when set.
1545 (cgraph_node::create_edge): Likewise.
1546 (cgraph_node::create_indirect_edge): Renamed last parameter to
1547 coning_p and flipped its meaning, don't even calculate
1548 inline_failed when set.
1549 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1550 (symbol_table::::create_edge): Likewise.
1551 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1553 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1554 call graph edge creating functions.
1556 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1559 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1562 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1564 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1566 2019-10-02 Richard Biener <rguenther@suse.de>
1568 * tree-vectorizer.h (vect_transform_reduction): Declare.
1569 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1570 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1571 stmt transform to ...
1572 (vect_transform_reduction): ... this.
1574 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1576 * omp-low.c (lower_omp_target): Dereference optional argument
1577 to work with the right pointer.
1579 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1581 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1583 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1584 * langhooks.h (omp_is_optional_argument): New hook.
1585 * omp-general.c (omp_is_optional_argument): New.
1586 * omp-general.h (omp_is_optional_argument): New declaration.
1587 * omp-low.c (lower_omp_target): Create temporary for received value
1588 and take the address for new_var if the original variable was a
1589 DECL_BY_REFERENCE. Use size of referenced object when a
1590 pass-by-reference optional argument used as argument to firstprivate.
1592 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1594 PR tree-optimization/91940
1595 * tree-vect-patterns.c: Include tree-vector-builder.h and
1597 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1598 unpromoting the argument back to uint16_t, or by converting into a
1599 rotate, or into shifts plus ior.
1601 2019-10-02 Richard Biener <rguenther@suse.de>
1603 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1605 (vect_transform_cycle_phi): Declare.
1606 * tree-vect-stmts.c (vect_transform_stmt): Call
1607 vect_transform_cycle_phi.
1608 * tree-vect-loop.c (vectorizable_reduction): Split out
1609 PHI transformation stage to ...
1610 (vect_transform_cycle_phi): ... here.
1612 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1615 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1616 eliminable registers.
1617 (make_hard_regno_live): Likewise, and don't make them live.
1619 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1621 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1622 Call pp_emit_prefix.
1623 (layout::print_source_line): Likewise.
1624 (layout::start_annotation_line): Likewise.
1625 (diagnostic_show_locus): Remove call to temporarily clear the
1627 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1628 interaction of pp_set_prefix with rulers and fix-it hints.
1629 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1630 prefix when calling diagnostic_show_locus, rather than destroying
1632 (print_parseable_fixits): Temporarily clear prefix.
1633 * pretty-print.c (pp_format): Save and restore line_length, rather
1634 than assuming it is zero.
1635 (pp_output_formatted_text): Remove assertion that line_length is
1638 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1640 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1642 (nonoverlapping_refs_since_match_p): ... this; handle also
1644 (alias_stats): Update stats.
1645 (dump_alias_stats): Likewise.
1646 (cheap_array_ref_low_bound): New function.
1647 (aliasing_matching_component_refs_p): Add partial_overlap
1649 pass it to nonoverlapping_refs_since_match_p.
1650 (aliasing_component_refs_walk): Update call of
1651 aliasing_matching_component_refs_p
1652 (nonoverlapping_array_refs_p): New function.
1653 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1654 indirect_refs_may_alias_p): Update calls of
1655 nonoverlapping_refs_since_match_p.
1657 2019-10-01 Maya Rashish <coypu@sdf.org>
1660 * ira-color.c (allocno_copy_cost_saving): Call
1661 ira_init_register_move_cost_if_necessary.
1663 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1665 * Makefile.in (gnat_install_lib): New variable.
1666 * configure.ac: Substitute it.
1667 * configure: Regenerate.
1669 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1672 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1673 is matched with non-C++ type
1675 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1677 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1680 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1682 * doc/invoke.texi (early-inlining-insns-O2): Document.
1683 (early-inlining-insns): Update.
1684 * params.def (early-inlining-insns-O2): New bound.
1685 (early-inlining-insns): Update docs.
1686 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1688 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1691 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1692 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1693 a memory access insn.
1695 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1697 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1700 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1703 * config/s390/s390.c (s390_expand_vec_compare): Use
1704 gen_vec_cmpordered and gen_vec_cmpunordered.
1705 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1706 vec_unordered): Delete.
1707 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1708 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1709 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1710 (vec_cmp<code>): Generic dispatcher.
1712 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1715 * config/s390/vector.md (V_HW): Add V1TI in order to make
1716 vcond$a$b generate vcondv1tiv1tf.
1718 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1720 PR rtl-optimization/91948
1721 * ira-build.c (ira_create_allocno): Initialize
1722 ALLOCNO_CROSSED_CALLS_ABIS.
1723 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1724 than regno to ira_need_caller_save_p.
1726 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1728 * config/i386/i386-options.c
1729 (ix86_recompute_optlev_based_flags): New, moved out of...
1730 (ix86_option_override_internal): ... this. Call it.
1731 (ix86_override_options_after_change): Call it here too.
1734 * dwarf2out.c (override_type_for_decl_p): New.
1735 (gen_variable_die): Use it.
1737 2019-10-01 Richard Biener <rguenther@suse.de>
1739 * tree-vect-loop.c (vectorizable_reduction): Move variables
1740 to where they are used.
1742 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1744 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1745 (build_def_use): Use PC instead of CC0 in a comment.
1747 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1749 * rtl.def (CLOBBER_HIGH): Delete.
1750 * doc/rtl.texi (clobber_high): Remove documentation.
1751 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1752 (reg_is_clobbered_by_clobber_high): Delete.
1753 (gen_hard_reg_clobber_high): Likewise.
1754 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1755 * cfgexpand.c (expand_gimple_stmt): Likewise.
1756 * combine-stack-adj.c (single_set_for_csa): Likewise.
1757 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1758 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1759 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1760 * cse.c (invalidate_reg): Remove clobber_high parameter.
1761 (invalidate): Update call accordingly.
1762 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1763 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1764 (count_reg_usage, insn_live_p): Likewise.
1765 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1766 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1767 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1768 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1769 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1770 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1771 (mark_nonreg_stores_2): Likewise.
1772 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1773 (df_get_call_refs): Likewise.
1774 * dwarf2out.c (mem_loc_descriptor): Likewise.
1775 * emit-rtl.c (verify_rtx_sharing): Likewise.
1776 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1777 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1778 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1779 * genemit.c (gen_exp, gen_insn): Likewise.
1780 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1781 * haifa-sched.c (haifa_classify_rtx): Likewise.
1782 * ira-build.c (create_insn_allocnos): Likewise.
1783 * ira-costs.c (scan_one_insn): Likewise.
1784 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1785 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1786 * jump.c (mark_jump_label_1): Likewise.
1787 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1788 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1790 (mark_not_eliminable): Likewise.
1791 * lra-lives.c (process_bb_lives): Likewise.
1792 * lra.c (new_insn_reg): Remove clobber_high parameter.
1793 (collect_non_operand_hard_regs): Likewise. Update call to new
1794 insn_reg. Remove CLOBBER_HIGH handling.
1795 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1796 to collect_non_operand_hard_regs.
1797 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1798 Update call to new_insn_reg.
1799 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1800 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1801 (move2add_note_store): Likewise.
1802 * print-rtl.c (print_pattern): Likewise.
1803 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1804 (if_test_bypass_p): Likewise.
1805 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1806 * reginfo.c (reg_scan_mark_refs): Likewise.
1807 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1808 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1809 (forget_old_reloads_1): Likewise.
1810 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1811 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1812 (dbr_schedule): Likewise.
1813 * resource.c (update_live_status, mark_referenced_resources)
1814 (mark_set_resources): Likewise.
1815 * rtl.c (copy_rtx): Likewise.
1816 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1817 (note_pattern_stores): Likewise.
1818 (reg_is_clobbered_by_clobber_high): Delete.
1819 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1820 CLOBBER_HIGH handling.
1822 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1825 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1826 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1827 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1828 Handle ARM_PCS_TLSDESC.
1829 (aarch64_tlsdesc_abi_id): New function.
1830 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1831 rtx instead of a list of clobbers and clobber_highs.
1832 (tlsdesc_small_<mode>): Update accordingly.
1834 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1836 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1837 extra callee_abi argument.
1838 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1839 Insert a CALLEE_ABI unspec into the call pattern as the second
1840 element in the PARALLEL.
1841 (aarch64_simd_call_p): Delete.
1842 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1843 the new CALLEE_ABI element of the PARALLEL.
1844 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1845 from the function type, if given.
1846 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1847 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1848 when passed the function_arg_info end marker.
1849 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1850 final argument of gen_sibcall.
1851 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1852 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1853 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1855 (call_value): Likewise operand 3.
1856 (sibcall): Likewise operand 2. Place the unspec before rather than
1858 (sibcall_value): Likewise operand 3.
1859 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1860 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1861 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1863 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1865 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1867 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1868 choose_hard_reg_mode.
1869 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1871 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1873 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1874 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1875 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1877 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1879 * diagnostic-show-locus.c (line_label::line_label): Initialize
1881 (line_label::comparator): Reverse the sort order by m_state_idx,
1882 so that when the list is walked backwards the labels appear in
1883 order of insertion into the rich_location.
1884 (line_label::m_has_vbar): New field.
1885 (layout::print_any_labels): When dealing with multiple labels at
1886 the same line and column, only print vertical bars for the one
1887 with the highest label_line.
1888 (selftest::test_one_liner_labels): Update test for multiple labels
1889 to expect the labels to be in the order of insertion into the
1890 rich_location. Add a test for many such labels, where the column
1891 numbers are out-of-order relative to the insertion order.
1893 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1895 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1896 (ix86_frame::expensive_count): Likewise.
1897 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1898 of use_fast_prologue_epilogue robust against incidental changes
1901 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1904 * config/s390/vector.md (vec_unordered<mode>): Call
1905 gen_vec_ordered<mode>.
1907 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1909 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1910 New pattern for ASRD.
1911 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1912 * internal-fn.def (IFN_DIV_POW2): New internal function.
1913 * optabs.def (sdiv_pow2_optab): New optab.
1914 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1915 Modify pattern to support new operation.
1916 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1917 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1918 Document new target selector.
1920 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1922 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1923 to test whether we're compiling a vector PCS function and to test
1924 whether the function needs to save a particular register.
1925 Remove the vector PCS handling of df_set_regs_ever_live.
1926 (aarch64_components_for_bb): Use crtl->abi to test whether
1927 the function needs to save a particular register.
1928 (aarch64_process_components): Use crtl->abi to test whether
1929 we're compiling a vector PCS function.
1930 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1931 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1933 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1935 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1937 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1938 whether the block calls a function that clobbers more registers
1939 than the current function is allowed to.
1940 (aarch64_use_simple_return_insn_p): Delete.
1941 * config/aarch64/aarch64.md (simple_return): Remove condition.
1943 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1945 * function-abi.h (function_abi_aggregator): New class.
1946 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1948 * ira.c (update_equiv_regs_prescan): New function. Call
1949 set_paradoxical_subreg here rather than...
1950 (update_equiv_regs): ...here.
1951 (ira): Call update_equiv_regs_prescan.
1953 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1955 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1957 (call_used_or_fixed_regs): Likewise.
1958 (call_used_or_fixed_reg_p): Likewise.
1959 * reginfo.c (regs_invalidated_by_call): New macro.
1961 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1963 * shrink-wrap.c: Include function-abi.h.
1964 (requires_stack_frame_p): Use crtl->abi to test whether the
1965 current function can use a register without saving it first.
1967 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1969 * sel-sched-ir.h (_def::crosses_call): Replace with...
1970 (_def::crossed_call_abis): ..this new field.
1971 (def_list_add): Take a mask of ABIs instead of a crosses_call
1973 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1974 of _def accordingly.
1975 * sel-sched.c: Include function-abi.h.
1976 (hard_regs_data::regs_for_call_clobbered): Delete.
1977 (reg_rename::crosses_call): Replace with...
1978 (reg_rename::crossed_call_abis): ...this new field.
1979 (fur_static_params::crosses_call): Replace with...
1980 (fur_static_params::crossed_call_abis): ...this new field.
1981 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1982 (init_hard_regs_data): Use crtl->abi to test which registers the
1983 current function would need to save before it uses them.
1984 (mark_unavailable_hard_regs): Update handling of call-clobbered
1985 registers, using call_clobbers_in_region to find out which registers
1986 might be call-clobbered (but without taking -fipa-ra into account
1987 for now). Remove separate handling of partially call-clobbered
1989 (verify_target_availability): Use crossed_call_abis instead of
1991 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1992 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1994 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1996 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1997 function to test whether a register is fully or partly clobbered.
1999 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2001 * rtlanal.c: Include function-abi.h.
2002 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2003 function and clobbers_reg_p to test whether the register
2005 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2006 to get the ABI of the called function and full_reg_clobbers to
2007 get the set of fully call-clobbered registers. Warn about the
2008 pitfalls of using this mode.
2010 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2012 * reload.c: Include function-abi.h.
2013 (find_equiv_reg): Use clobbers_reg_p to test whether either
2014 of the equivalent registers is clobbered by a call.
2015 * reload1.c: Include function-abi.h.
2016 (reg_reloaded_call_part_clobbered): Delete.
2017 (reload): Use crtl->abi to test which registers would need
2018 saving in the prologue before use.
2019 (find_reg): Likewise.
2020 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2021 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2022 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2024 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2026 * regrename.h (du_head::call_clobber_mask): New field.
2027 (du_head::need_caller_save_reg): Replace with...
2028 (du_head::call_abis): ...this new field.
2029 * regrename.c: Include function-abi.h.
2030 (call_clobbered_in_chain_p): New function.
2031 (check_new_reg_p): Use crtl->abi when deciding whether a register
2032 is free for use after RA. Use call_clobbered_in_chain_p to test
2033 whether a candidate register would be clobbered by a call.
2034 (find_rename_reg): Don't add call-clobber conflicts here.
2035 (rename_chains): Check call_abis instead of need_caller_save_reg.
2036 (merge_chains): Update for changes to du_head.
2037 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2038 target. Record the ABI identifier in call_abis and the set of
2039 fully or partially clobbered registers in call_clobber_mask.
2040 Add fully-clobbered registers to hard_conflicts here rather
2041 than in find_rename_reg.
2042 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2043 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2044 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2046 * config/c6x/c6x.c: Likewise.
2048 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2050 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2051 mode of the register when deciding whether it is no longer
2052 available after a call.
2054 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2056 * recog.c: Include function-abi.h.
2057 (peep2_find_free_register): Use crtl->abi when deciding whether
2058 a register is free for use after RA.
2060 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2062 * postreload-gcse.c: Include regs.h and function-abi.h.
2063 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2064 call insn target. Conservatively assume that partially-clobbered
2065 registers are altered.
2067 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2069 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2070 when deciding whether a register is free for use after RA.
2071 (reload_combine): Remove unnecessary use of fixed_reg_set.
2072 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2073 call insn target. Use reg_mode when testing whether a register
2074 is no longer available.
2076 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2078 * target.def (return_call_with_max_clobbers): Delete.
2079 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2080 * doc/tm.texi: Regenerate.
2081 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2082 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2083 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2084 (lra_reg::call_insn): Delete.
2085 * lra.c: Include function-abi.h.
2086 (initialize_lra_reg_info_element): Don't initialize the fields above.
2087 (lra): Use crtl->abi to test whether the current function needs to
2088 save a register in the prologue. Remove special pre-inheritance
2089 lra_create_live_ranges pass for flag_ipa_ra.
2090 * lra-assigns.c: Include function-abi.h
2091 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2092 function needs to save a register in the prologue.
2093 (lra_assign): Assert that registers aren't allocated to a
2094 conflicting register, rather than checking only for overlaps
2095 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2096 and for registers that are not live across a call.
2097 * lra-constraints.c (last_call_for_abi): New variable.
2098 (full_and_partial_call_clobbers): Likewise.
2099 (setup_next_usage_insn): Remove the register from
2100 full_and_partial_call_clobbers.
2101 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2102 whether the register needs a caller save.
2103 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2104 of call_used_or_fixed_regs.
2105 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2106 full_and_partial_call_clobbers.
2107 * lra-lives.c (check_pseudos_live_through_calls): Replace
2108 last_call_used_reg_set and call_insn arguments with an abi argument.
2109 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2110 as the set of conflicting registers.
2111 (calls_have_same_clobbers_p): Delete.
2112 (process_bb_lives): Track the ABI of the last call instead of an
2113 insn/HARD_REG_SET pair. Update calls to
2114 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2115 the set of registers that could be clobbered by an EH edge.
2116 Include partially-clobbered as well as fully-clobbered registers.
2117 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2118 * lra-remat.c: Include function-abi.h.
2119 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2120 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2121 registers and bitmap_view to combine them into dead_regs.
2122 (call_used_input_regno_present_p): Take a function_abi argument
2123 and use it to test whether a register is call-clobbered.
2124 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2125 call insn target. Update tje call to call_used_input_regno_present_p.
2126 (do_remat): Likewise.
2127 (lra_remat): Remove the initialization of call_used_regs_arr_len
2128 and call_used_regs_arr.
2130 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2132 * loop-iv.c: Include regs.h and function-abi.h.
2133 (simplify_using_initial_values): Use insn_callee_abi to get the
2134 ABI of the call insn target. Conservatively assume that
2135 partially-clobbered registers are altered.
2137 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2139 * function-abi.h (call_clobbers_in_region): Declare.
2140 (call_clobbered_in_region_p): New function.
2141 * function-abi.cc (call_clobbers_in_region): Likewise.
2142 * ira-int.h: Include function-abi.h.
2143 (ira_allocno::crossed_calls_abis): New field.
2144 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2145 (ira_need_caller_save_regs): New function.
2146 (ira_need_caller_save_p): Likewise.
2147 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2148 of call_used_or_fixed_regs.
2149 (do_reload): Use crtl->abi to test whether the current function
2150 needs to save a register in the prologue. Count registers that
2151 need to be saved rather than registers that don't.
2152 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2153 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2154 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2155 (propagate_some_info_from_allocno): Likewise.
2156 (copy_info_to_removed_store_destinations): Likewise.
2157 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2158 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2159 (ira_build): Use ira_need_caller_save_regs instead of
2160 call_used_or_fixed_regs.
2161 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2162 whether the current function would need to save a register
2164 (calculate_spill_cost): Likewise.
2165 (allocno_reload_assign): Use ira_need_caller_save_regs and
2166 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2167 * ira-conflicts.c (ira_build_conflicts): Use
2168 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2169 as the set of call-clobbered registers. Remove the
2170 call_used_or_fixed_regs mask from the calculation of
2171 temp_hard_reg_set and mask its use instead. Remove special
2172 handling of partially-clobbered registers.
2173 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2174 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2175 calculate the set of conflicting registers for calls that
2176 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2177 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2178 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2179 Use eh_edge_abi to calculate the set of registers that could
2180 be clobbered by an EH edge. Include partially-clobbered as
2181 well as fully-clobbered registers.
2183 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2185 * haifa-sched.c: Include function-abi.h.
2186 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2187 the function would need to save a register before using it.
2189 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2191 * gcse.c: Include function-abi.h.
2192 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2193 the call insn target. Invalidate partially call-clobbered
2194 registers as well as fully call-clobbered ones.
2196 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2198 * function.c (aggregate_value_p): Work out which ABI the
2199 function is using before testing which registers are at least
2200 partly preserved by a call.
2202 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2204 * early-remat.c: Include regs.h and function-abi.h.
2205 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2207 (early_remat::restrict_remat_for_unavail_regs): New function.
2208 (early_remat::restrict_remat_for_call): Likewise.
2209 (early_remat::process_block): Before calling emit_remat_insns
2210 for a previous call in the block, invalidate any candidates
2211 that would clobber call-preserved registers.
2212 (early_remat::emit_remat_insns_for_block): Likewise for the
2213 final call in a block. Do the same thing for live-in registers
2214 when calling emit_remat_insns at the head of a block.
2216 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2218 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2219 whether the current function needs to save at least part of a
2220 register before using it.
2221 (df_get_exit_block_use_set): Likewise for epilogue restores.
2223 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2225 * df-problems.c: Include regs.h and function-abi.h.
2226 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2227 sparse_invalidated_by_eh and dense_invalidated_by_call to
2228 dense_invalidated_by_eh.
2229 (df_print_bb_index): Update accordingly.
2230 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2231 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2232 that are clobbered by an EH edge. Clobber partially-clobbered
2233 registers as well as fully-clobbered ones.
2234 (df_md_confluence_n): Likewise.
2235 (df_rd_local_compute): Likewise. Update for changes to
2237 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2238 of registers that are clobbered by an EH edge. Includde partially-
2239 clobbered registers as well as fully-clobbered ones.
2241 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2243 * cselib.c (cselib_process_insn): If we know what mode a
2244 register was set in, check whether it is clobbered in that
2245 mode by a call. Only fall back to reg_raw_mode if that fails.
2247 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2249 * cse.c: Include regs.h and function-abi.h.
2250 (invalidate_for_call): Take the call insn as an argument.
2251 Use insn_callee_abi to get the ABI of the call and invalidate
2252 partially clobbered registers as well as fully clobbered ones.
2253 (cse_insn): Update call accordingly.
2255 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2257 * combine.c: Include function-abi.h.
2258 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2259 of the target of call insns. Invalidate partially-clobbered
2260 registers as well as fully-clobbered ones.
2262 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2264 * cfgloopanal.c: Include regs.h and function-abi.h.
2265 (init_set_costs): Use default_function_abi to test whether
2266 a general register is call-clobbered.
2268 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2270 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2271 instead of the call-clobbered sets.
2273 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2275 * caller-save.c (setup_save_areas): Remove redundant |s of
2277 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2278 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2281 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2283 * rtl.h (predefined_function_abi): Declare.
2284 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2285 instead of a boolean call_save flag.
2286 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2288 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2289 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2290 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2291 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2292 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2293 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2294 * reginfo.c (init_reg_modes_target): Likewise.
2295 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2296 instead of a boolean call_save flag.
2297 * targhooks.c: Include function-abi.h.
2298 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2299 using eh_edge_abi to choose the mode.
2301 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2303 * target.def (hard_regno_call_part_clobbered): Take an ABI
2304 identifier instead of an rtx_insn.
2305 * doc/tm.texi: Regenerate.
2306 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2307 (hook_bool_uint_uint_mode_false): New function.
2308 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2309 (hook_bool_uint_uint_mode_false): New function.
2310 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2311 Take an ABI identifier instead of an rtx_insn.
2312 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2313 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2314 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2315 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2316 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2318 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2319 * cselib.c: Include function-abi.h.
2320 (cselib_process_insn): Update call to
2321 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2322 to get the appropriate ABI identifier.
2323 * function-abi.cc (predefined_function_abi::initialize): Update call
2324 to targetm.hard_regno_call_part_clobbered.
2325 * ira-conflicts.c (ira_build_conflicts): Likewise.
2326 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2327 * lra-constraints.c: Include function-abi.h.
2328 (need_for_call_save_p): Update call to
2329 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2330 to get the appropriate ABI identifier.
2331 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2332 * regcprop.c (copyprop_hardreg_forward_1): Update call
2333 to targetm.hard_regno_call_part_clobbered.
2334 * reginfo.c (choose_hard_reg_mode): Likewise.
2335 * regrename.c (check_new_reg_p): Likewise.
2336 * reload.c (find_equiv_reg): Likewise.
2337 * reload1.c (emit_reload_insns): Likewise.
2338 * sched-deps.c: Include function-abi.h.
2339 (deps_analyze_insn): Update call to
2340 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2341 to get the appropriate ABI identifier.
2342 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2343 call to targetm.hard_regno_call_part_clobbered.
2344 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2346 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2348 * config/i386/i386.c: Include function-abi.h.
2349 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2350 if they preserve some 256-bit or 512-bit SSE registers.
2352 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2354 * target.def (insn_callee_abi): New hook.
2355 (remove_extra_call_preserved_regs): Delete.
2356 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2357 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2358 * doc/tm.texi: Regenerate.
2359 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2360 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2361 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2363 (aarch64_remove_extra_call_preserved_regs): Delete.
2364 (aarch64_insn_callee_abi): New function.
2365 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2366 (TARGET_INSN_CALLEE_ABI): New macro.
2367 * rtl.h (get_call_fndecl): Declare.
2368 (cgraph_rtl_info): Fix formatting. Tweak comment for
2369 function_used_regs. Remove function_used_regs_valid.
2370 * rtlanal.c (get_call_fndecl): Moved from final.c
2371 * function-abi.h (insn_callee_abi): Declare.
2372 (target_function_abi_info): Mention insn_callee_abi.
2373 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2374 way to get_call_reg_set_usage did.
2375 (insn_callee_abi): New function.
2376 * regs.h (get_call_reg_set_usage): Delete.
2377 * final.c: Include function-abi.h.
2378 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2379 function_used_regs before the main loop rather than afterwards.
2380 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2381 if function_used_regs ends up not being useful.
2382 (get_call_fndecl): Move to rtlanal.c
2383 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2384 * caller-save.c: Include function-abi.h.
2385 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2386 instead of get_call_reg_set_usage.
2387 * cfgcleanup.c: Include function-abi.h.
2388 (old_insns_match_p): Use insn_callee_abi instead of
2389 get_call_reg_set_usage.
2390 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2392 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2394 * df-scan.c: Include function-abi.h.
2395 (df_get_call_refs): Use insn_callee_abi instead of
2396 get_call_reg_set_usage.
2397 * ira-lives.c: Include function-abi.h.
2398 (process_bb_node_lives): Use insn_callee_abi instead of
2399 get_call_reg_set_usage.
2400 * lra-lives.c: Include function-abi.h.
2401 (process_bb_lives): Use insn_callee_abi instead of
2402 get_call_reg_set_usage.
2403 * postreload.c: Include function-abi.h.
2404 (reload_combine): Use insn_callee_abi instead of
2405 get_call_reg_set_usage.
2406 * regcprop.c: Include function-abi.h.
2407 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2408 get_call_reg_set_usage.
2409 * resource.c: Include function-abi.h.
2410 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2411 instead of get_call_reg_set_usage.
2412 * var-tracking.c: Include function-abi.h.
2413 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2414 get_call_reg_set_usage.
2416 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2418 * target.def (fntype_abi): New target hook.
2419 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2420 * doc/tm.texi: Regenerate.
2421 * target.h (predefined_function_abi): Declare.
2422 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2424 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2425 * config/aarch64/aarch64.c: Include function-abi.h.
2426 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2427 (TARGET_FNTYPE_ABI): Define.
2429 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2431 * Makefile.in (OBJS): Add function-abi.o.
2432 (GTFILES): Add function-abi.h.
2433 * function-abi.cc: New file.
2434 * function-abi.h: Likewise.
2435 * emit-rtl.h (rtl_data::abi): New field.
2436 * function.c: Include function-abi.h.
2437 (prepare_function_start): Initialize crtl->abi.
2438 * read-rtl-function.c: Include regs.h and function-abi.h.
2439 (read_rtl_function_body): Initialize crtl->abi.
2440 (read_rtl_function_body_from_file_range): Likewise.
2441 * reginfo.c: Include function-abi.h.
2442 (init_reg_sets_1): Initialize default_function_abi.
2443 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2444 when making a register global.
2445 * target-globals.h (this_target_function_abi_info): Declare.
2446 (target_globals::function_abi_info): New field.
2447 (restore_target_globals): Copy it.
2448 * target-globals.c: Include function-abi.h.
2449 (default_target_globals): Initialize the function_abi_info field.
2450 (target_globals): Allocate it.
2451 (save_target_globals): Free it.
2453 2019-09-30 Nick Clifton <nickc@redhat.com>
2456 * config/frv/frv.c (frv_register_move_cost): Add break statements
2457 to avoid falling through to the wrong cases. Tidy code.
2459 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2461 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2462 For multi-registers modes, test how big each register part is.
2464 2019-09-30 Nick Clifton <nickc@redhat.com>
2467 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2468 (TARGET_ASM_SELECT_SECTION): Remove definition.
2469 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2471 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2473 * emit-rtl.c (init_raw_REG): New function.
2474 (gen_raw_REG): Use init_raw_REG.
2475 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2477 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2478 * rtl.h (rtx_init): New function.
2479 (rtx_alloca): New function.
2480 (init_raw_REG): New function.
2481 (alloca_raw_REG): New macro.
2483 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2485 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2486 (pcrel_local_address): Replace pcrel_address predicate, use the
2487 new function address_to_insn_form.
2488 (pcrel_external_address): Replace with new implementation using
2489 address_to_insn_form..
2490 (prefixed_mem_operand): Delete predicate which is now unused.
2491 (pcrel_external_mem_operand): Delete predicate which is now
2493 * config/rs6000/rs6000-protos.h (enum insn_form): New
2495 (enum non_prefixed_form): New enumeration.
2496 (address_to_insn_form): New declaration.
2497 (prefixed_load_p): New declaration.
2498 (prefixed_store_p): New declaration.
2499 (prefixed_paddi_p): New declaration.
2500 (rs6000_asm_output_opcode): New declaration.
2501 (rs6000_final_prescan_insn): Move declaration and update calling
2503 (address_is_prefixed): New helper inline function.
2504 * config/rs6000/rs6000.c(print_operand_address): Check for either
2505 PC-relative local symbols or PC-relative external symbols.
2506 (rs6000_emit_move): Support loading PC-relative addresses.
2507 (mode_supports_prefixed_address_p): Delete, no longer used.
2508 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2509 (address_to_insn_form): New function to decode an address format.
2510 (reg_to_non_prefixed): New function to identify what the
2511 non-prefixed memory instruction format is for a register.
2512 (prefixed_load_p): New function to identify prefixed loads.
2513 (prefixed_store_p): New function to identify prefixed stores.
2514 (prefixed_paddi_p): New function to identify prefixed load
2516 (next_insn_prefixed_p): New static state variable.
2517 (rs6000_final_prescan_insn): New function to determine if an insn
2518 uses a prefixed instruction.
2519 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2520 prefixed instruction.
2521 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2522 (ASM_OUTPUT_OPCODE): New target hook.
2523 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2524 prefixed instructions.
2525 (prefixed_length): New insn attribute for the size of prefixed
2527 (non_prefixed_length): New insn attribute for the size of
2528 non-prefixed instructions.
2529 (pcrel_local_addr): New insn to load up a local PC-relative
2531 (pcrel_extern_addr): New insn to load up an external PC-relative
2533 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2534 GPR and loading a 128-bit floating point type to a GPR.
2536 2019-09-30 Richard Biener <rguenther@suse.de>
2538 * gimple.c (gimple_get_lhs): For PHIs return the result.
2539 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2540 SLP instance as argument.
2541 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2542 double-reduction PHIs with vectorizable_lc_phi.
2543 (vect_analyze_loop_operations): Adjust.
2544 (vect_create_epilog_for_reduction): Remove all code not dealing
2545 with reduction LC PHI or epilogue generation.
2546 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2547 for live stmts of reductions.
2548 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2549 do not handle defs that are not vect_internal_def.
2550 (can_vectorize_live_stmts): Adjust.
2551 (vect_analyze_stmt): When the vectorized stmt defined a value
2552 used on backedges adjust the backedge uses of vectorized PHIs.
2554 2019-09-30 Martin Jambor <mjambor@suse.cz>
2557 * tree-inline.c (force_value_to_type): New function.
2558 (setup_one_parameter): Use force_value_to_type to convert type.
2559 * tree-inline.c (force_value_to_type): Declare.
2560 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2561 with register type mismatches.
2563 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2565 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2567 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2568 * config/rs6000/t-freebsd64: Make use of the above define and build
2569 the 32-bit libraries with secure-plt.
2571 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2574 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2575 gen_int_mode instead of GEN_INT.
2577 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2579 * config/darwin.c (gen_macho_low): Amend to include the mode
2581 (machopic_indirect_data_reference): Amend gen_macho_low call
2582 to include mode argument
2583 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2584 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2585 the macho_high expander and two define_insn entries.
2587 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2590 * optc-save-gen.awk: Fix up printing string option differences.
2592 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2594 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2595 vec_perm cost to 1 for non-Power7 VSX architectures.
2597 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2599 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2600 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2601 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2603 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2605 * config/darwin.c (gen_macho_high): Amend to include the mode
2607 (machopic_indirect_data_reference): Amend gen_macho_high call
2608 to include mode argument.
2609 (machopic_legitimize_pic_address): Likewise.
2610 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2611 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2612 the macho_high expander and two define_insn entries.
2614 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2617 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2619 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2622 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2623 std::string::compare instead of std::string::find.
2625 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2627 * configure: Regenerate.
2629 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2632 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2633 variables as shared.
2635 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2637 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2638 replaces the expander and two define_insn entries.
2639 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2641 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2643 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2645 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2646 (fibonacci_heap::nodes): Likewise.
2647 (fibonacci_heap::min_key): Likewise.
2648 (fibonacci_heap::min): Likewise.
2650 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2652 * cgraph.c (cgraph_node::get_fun): Make const.
2653 * cgraph.h (cgraph_node::get_fun): Likewise.
2655 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2658 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2661 2019-09-27 Richard Biener <rguenther@suse.de>
2663 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2664 (STMT_VINFO_REDUC_FN): Likewise.
2665 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2666 STMT_VINFO_REDUC_FN.
2667 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2668 for condition reductions.
2669 (vect_create_epilog_for_reduction): Compute all required state
2670 from the stmt to be vectorized.
2671 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2672 invocation and remove then dead code. For single def-use chains
2673 record only a single vector stmt.
2675 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2677 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2678 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2679 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2680 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2681 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2682 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2683 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2684 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2685 (aarch64_general_builtin_rsqrt): Declare.
2686 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2688 (aarch64_mangle_builtin_type): Rename to...
2689 (aarch64_general_mangle_builtin_type): ...this.
2690 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2691 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2692 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2693 aarch64_general_add_builtin instead of add_builtin_function.
2694 (aarch64_init_builtins): Rename to...
2695 (aarch64_general_init_builtins): ...this. Use
2696 aarch64_general_add_builtin instead of add_builtin_function.
2697 (aarch64_builtin_decl): Rename to...
2698 (aarch64_general_builtin_decl): ...this and remove the unused
2700 (aarch64_expand_builtin): Rename to...
2701 (aarch64_general_expand_builtin): ...this and remove the unused
2703 (aarch64_builtin_rsqrt): Rename to...
2704 (aarch64_general_builtin_rsqrt): ...this.
2705 (aarch64_fold_builtin): Rename to...
2706 (aarch64_general_fold_builtin): ...this. Take the function subcode
2707 and return type as arguments. Remove the "ignored" argument.
2708 (aarch64_gimple_fold_builtin): Rename to...
2709 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2710 subcode and gcall as arguments, and return the new function call.
2711 * config/aarch64/aarch64.c (aarch64_init_builtins)
2712 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2713 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2714 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2715 instead of aarch64_builtin_rsqrt.
2716 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2717 instead of aarch64_mangle_builtin_type.
2719 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2721 * target.def (check_builtin_call): New target hook.
2722 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2723 * doc/tm.texi: Regenerate.
2725 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2727 PR tree-optimization/91909
2728 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2729 reduc_index parameter. When handling COND_REDUCTION, make sure
2730 that the reduction phi operand is in the correct arm of the
2732 (vectorizable_reduction): Pass reduc_index to the above.
2734 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2736 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2737 New combine pattern.
2739 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2741 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2742 loop instruction into new basic block before the loop when basic
2743 block that precedes the loop is empty.
2745 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2747 * function.c (gimplify_parameters): Use build_clobber function.
2748 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2749 * tree-inline.c (expand_call_inline): Likewise.
2750 * tree-sra.c (clobber_subtree): Likewise.
2751 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2752 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2753 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2754 lower_omp_target): Likewise.
2755 * omp-expand.c (expand_omp_for_generic): Likewise.
2756 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2758 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2760 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2761 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2762 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2763 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2764 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2765 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2766 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2767 LD_ELEMREV_V16QI): Use the PURE attribute.
2769 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2771 * config/rs6000/darwin.md: Replace the expanders for
2772 load_macho_picbase and reload_macho_picbase with use of '@'
2773 and <mode> in their respective define_insns.
2774 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2775 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2776 Pmode to gen_load_macho_picbase.
2777 * config/rs6000/rs6000.md: Likewise.
2779 2019-09-25 Richard Biener <rguenther@suse.de>
2781 PR tree-optimization/91896
2782 * tree-vect-loop.c (vectorizable_reduction): The single
2783 def-use cycle optimization cannot apply when there's more
2784 than one pattern stmt involved.
2786 2019-09-26 Richard Biener <rguenther@suse.de>
2788 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2789 loop-closed PHIs that are vect_internal_def.
2790 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2792 (vectorizable_lc_phi): New.
2793 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2794 (vect_transform_stmt): Likewise.
2795 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2796 (vectorizable_lc_phi): Declare.
2798 2019-09-26 Richard Biener <rguenther@suse.de>
2800 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2801 vectorizable_reduction for vect_double_reduction_def.
2802 (vect_transform_loop): Likewise.
2803 (vect_create_epilog_for_reduction): Move double-reduction
2804 PHI creation and preheader argument setting of PHIs ...
2805 (vectorizable_reduction): ... here. Also process
2806 vect_double_reduction_def PHIs, creating the vectorized
2807 PHI nodes, remembering the scalar adjustment computed for
2808 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2809 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2810 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2811 Initialize STMT_VINFO_REDUC_CODE.
2812 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2813 (_stmt_vec_info::reduc_code): Likewise.
2814 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2815 (STMT_VINFO_REDUC_CODE): Likewise.
2817 2019-09-26 Matt Turner <mattst88@gmail.com>
2820 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2821 (mtune=): Add Negative(mtune=).
2822 (mcpu=): Add Negative(mcpu=).
2823 * config/arm/arm.opt: Likewise.
2825 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2827 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2828 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2830 * config/arm/arm_acle.h: Define builtins for the above.
2831 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2832 (simd32_op): Handle the above.
2833 * config/arm/unspecs.md: Define unspecs for the above.
2835 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2837 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2838 (arm_<sup>xtb16): Likewise.
2839 (arm_usada8): Likewise.
2840 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2841 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2842 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2843 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2844 __sxtb16, __uxtab16, __uxtb16): Define.
2845 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2846 * config/arm/unspecs.md: Define unspecs for the above.
2847 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2848 (USXTB16): Likewise.
2849 (simd32_op): New int_attribute.
2850 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2851 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2853 2019-09-26 Martin Jambor <mjambor@suse.cz>
2855 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2858 2019-09-26 Martin Jambor <mjambor@suse.cz>
2860 * ipa-sra.c (process_scan_results): Fix continue condition.
2862 2019-09-26 Martin Liska <mliska@suse.cz>
2864 PR tree-optimization/91885
2865 * tree-vectorizer.c (try_vectorize_loop_1): Add
2866 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2868 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2870 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2871 aarch64_plus_immediate rather than aarch64_uimm12_shift
2872 to test for valid PLUS immediates.
2874 2019-09-25 Martin Jambor <mjambor@suse.cz>
2876 * tree-sra.c (no_accesses_p): Remove.
2877 (no_accesses_representant): Likewise.
2879 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2881 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2883 (vaba_s16): Likewise.
2884 (vaba_s32): Likewise.
2885 (vaba_u8): Likewise.
2886 (vaba_u16): Likewise.
2887 (vaba_u32): Likewise.
2888 (vabal_high_s8): Likewise.
2889 (vabal_high_s16): Likewise.
2890 (vabal_high_s32): Likewise.
2891 (vabal_high_u8): Likewise.
2892 (vabal_high_u16): Likewise.
2893 (vabal_high_u32): Likewise.
2894 (vabal_s8): Likewise.
2895 (vabal_s16): Likewise.
2896 (vabal_s32): Likewise.
2897 (vabal_u8): Likewise.
2898 (vabal_u16): Likewise.
2899 (vabal_u32): Likewise.
2900 (vabaq_s8): Likewise.
2901 (vabaq_s16): Likewise.
2902 (vabaq_s32): Likewise.
2903 (vabaq_u8): Likewise.
2904 (vabaq_u16): Likewise.
2905 (vabaq_u32): Likewise.
2906 (vabd_s8): Likewise.
2907 (vabd_s16): Likewise.
2908 (vabd_s32): Likewise.
2909 (vabd_u8): Likewise.
2910 (vabd_u16): Likewise.
2911 (vabd_u32): Likewise.
2912 (vabdl_high_s8): Likewise.
2913 (vabdl_high_s16): Likewise.
2914 (vabdl_high_s32): Likewise.
2915 (vabdl_high_u8): Likewise.
2916 (vabdl_high_u16): Likewise.
2917 (vabdl_high_u32): Likewise.
2918 (vabdl_s8): Likewise.
2919 (vabdl_s16): Likewise.
2920 (vabdl_s32): Likewise.
2921 (vabdl_u8): Likewise.
2922 (vabdl_u16): Likewise.
2923 (vabdl_u32): Likewise.
2924 (vabdq_s8): Likewise.
2925 (vabdq_s16): Likewise.
2926 (vabdq_s32): Likewise.
2927 (vabdq_u8): Likewise.
2928 (vabdq_u16): Likewise.
2929 (vabdq_u32): Likewise.
2930 (vaddlv_s8): Likewise.
2931 (vaddlv_s16): Likewise.
2932 (vaddlv_u8): Likewise.
2933 (vaddlv_u16): Likewise.
2934 (vaddlvq_s8): Likewise.
2935 (vaddlvq_s16): Likewise.
2936 (vaddlvq_s32): Likewise.
2937 (vaddlvq_u8): Likewise.
2938 (vaddlvq_u16): Likewise.
2939 (vaddlvq_u32): Likewise.
2940 (vcvtx_f32_f64): Likewise.
2941 (vcvtx_high_f32_f64): Likewise.
2942 (vcvtxd_f32_f64): Likewise.
2943 (vmla_n_f32): Likewise.
2944 (vmla_n_s16): Likewise.
2945 (vmla_n_s32): Likewise.
2946 (vmla_n_u16): Likewise.
2947 (vmla_n_u32): Likewise.
2948 (vmla_s8): Likewise.
2949 (vmla_s16): Likewise.
2950 (vmla_s32): Likewise.
2951 (vmla_u8): Likewise.
2952 (vmla_u16): Likewise.
2953 (vmla_u32): Likewise.
2954 (vmlal_high_n_s16): Likewise.
2955 (vmlal_high_n_s32): Likewise.
2956 (vmlal_high_n_u16): Likewise.
2957 (vmlal_high_n_u32): Likewise.
2958 (vmlal_high_s8): Likewise.
2959 (vmlal_high_s16): Likewise.
2960 (vmlal_high_s32): Likewise.
2961 (vmlal_high_u8): Likewise.
2962 (vmlal_high_u16): Likewise.
2963 (vmlal_high_u32): Likewise.
2964 (vmlal_n_s16): Likewise.
2965 (vmlal_n_s32): Likewise.
2966 (vmlal_n_u16): Likewise.
2967 (vmlal_n_u32): Likewise.
2968 (vmlal_s8): Likewise.
2969 (vmlal_s16): Likewise.
2970 (vmlal_s32): Likewise.
2971 (vmlal_u8): Likewise.
2972 (vmlal_u16): Likewise.
2973 (vmlal_u32): Likewise.
2974 (vmlaq_n_f32): Likewise.
2975 (vmlaq_n_s16): Likewise.
2976 (vmlaq_n_s32): Likewise.
2977 (vmlaq_n_u16): Likewise.
2978 (vmlaq_n_u32): Likewise.
2979 (vmlaq_s8): Likewise.
2980 (vmlaq_s16): Likewise.
2981 (vmlaq_s32): Likewise.
2982 (vmlaq_u8): Likewise.
2983 (vmlaq_u16): Likewise.
2984 (vmlaq_u32): Likewise.
2985 (vmls_n_f32): Likewise.
2986 (vmls_n_s16): Likewise.
2987 (vmls_n_s32): Likewise.
2988 (vmls_n_u16): Likewise.
2989 (vmls_n_u32): Likewise.
2990 (vmls_s8): Likewise.
2991 (vmls_s16): Likewise.
2992 (vmls_s32): Likewise.
2993 (vmls_u8): Likewise.
2994 (vmls_u16): Likewise.
2995 (vmls_u32): Likewise.
2996 (vmlsl_high_n_s16): Likewise.
2997 (vmlsl_high_n_s32): Likewise.
2998 (vmlsl_high_n_u16): Likewise.
2999 (vmlsl_high_n_u32): Likewise.
3000 (vmlsl_high_s8): Likewise.
3001 (vmlsl_high_s16): Likewise.
3002 (vmlsl_high_s32): Likewise.
3003 (vmlsl_high_u8): Likewise.
3004 (vmlsl_high_u16): Likewise.
3005 (vmlsl_high_u32): Likewise.
3006 (vmlsl_n_s16): Likewise.
3007 (vmlsl_n_s32): Likewise.
3008 (vmlsl_n_u16): Likewise.
3009 (vmlsl_n_u32): Likewise.
3010 (vmlsl_s8): Likewise.
3011 (vmlsl_s16): Likewise.
3012 (vmlsl_s32): Likewise.
3013 (vmlsl_u8): Likewise.
3014 (vmlsl_u16): Likewise.
3015 (vmlsl_u32): Likewise.
3016 (vmlsq_n_f32): Likewise.
3017 (vmlsq_n_s16): Likewise.
3018 (vmlsq_n_s32): Likewise.
3019 (vmlsq_n_u16): Likewise.
3020 (vmlsq_n_u32): Likewise.
3021 (vmlsq_s8): Likewise.
3022 (vmlsq_s16): Likewise.
3023 (vmlsq_s32): Likewise.
3024 (vmlsq_u8): Likewise.
3025 (vmlsq_u16): Likewise.
3026 (vmlsq_u32): Likewise.
3027 (vmovl_high_s8): Likewise.
3028 (vmovl_high_s16): Likewise.
3029 (vmovl_high_s32): Likewise.
3030 (vmovl_high_u8): Likewise.
3031 (vmovl_high_u16): Likewise.
3032 (vmovl_high_u32): Likewise.
3033 (vmovl_s8): Likewise.
3034 (vmovl_s16): Likewise.
3035 (vmovl_s32): Likewise.
3036 (vmovl_u8): Likewise.
3037 (vmovl_u16): Likewise.
3038 (vmovl_u32): Likewise.
3039 (vmovn_high_s16): Likewise.
3040 (vmovn_high_s32): Likewise.
3041 (vmovn_high_s64): Likewise.
3042 (vmovn_high_u16): Likewise.
3043 (vmovn_high_u32): Likewise.
3044 (vmovn_high_u64): Likewise.
3045 (vmovn_s16): Likewise.
3046 (vmovn_s32): Likewise.
3047 (vmovn_s64): Likewise.
3048 (vmovn_u16): Likewise.
3049 (vmovn_u32): Likewise.
3050 (vmovn_u64): Likewise.
3051 (vmull_high_n_s16): Likewise.
3052 (vmull_high_n_s32): Likewise.
3053 (vmull_high_n_u16): Likewise.
3054 (vmull_high_n_u32): Likewise.
3055 (vmull_high_p8): Likewise.
3056 (vmull_high_s8): Likewise.
3057 (vmull_high_s16): Likewise.
3058 (vmull_high_s32): Likewise.
3059 (vmull_high_u8): Likewise.
3060 (vmull_high_u16): Likewise.
3061 (vmull_high_u32): Likewise.
3062 (vmull_n_s16): Likewise.
3063 (vmull_n_s32): Likewise.
3064 (vmull_n_u16): Likewise.
3065 (vmull_n_u32): Likewise.
3066 (vmull_p8): Likewise.
3067 (vmull_s8): Likewise.
3068 (vmull_s16): Likewise.
3069 (vmull_s32): Likewise.
3070 (vmull_u8): Likewise.
3071 (vmull_u16): Likewise.
3072 (vmull_u32): Likewise.
3073 (vpadal_s8): Likewise.
3074 (vpadal_s16): Likewise.
3075 (vpadal_s32): Likewise.
3076 (vpadal_u8): Likewise.
3077 (vpadal_u16): Likewise.
3078 (vpadal_u32): Likewise.
3079 (vpadalq_s8): Likewise.
3080 (vpadalq_s16): Likewise.
3081 (vpadalq_s32): Likewise.
3082 (vpadalq_u8): Likewise.
3083 (vpadalq_u16): Likewise.
3084 (vpadalq_u32): Likewise.
3085 (vpaddl_s8): Likewise.
3086 (vpaddl_s16): Likewise.
3087 (vpaddl_s32): Likewise.
3088 (vpaddl_u8): Likewise.
3089 (vpaddl_u16): Likewise.
3090 (vpaddl_u32): Likewise.
3091 (vpaddlq_s8): Likewise.
3092 (vpaddlq_s16): Likewise.
3093 (vpaddlq_s32): Likewise.
3094 (vpaddlq_u8): Likewise.
3095 (vpaddlq_u16): Likewise.
3096 (vpaddlq_u32): Likewise.
3097 (vpaddq_s8): Likewise.
3098 (vpaddq_s16): Likewise.
3099 (vpaddq_s32): Likewise.
3100 (vpaddq_s64): Likewise.
3101 (vpaddq_u8): Likewise.
3102 (vpaddq_u16): Likewise.
3103 (vpaddq_u32): Likewise.
3104 (vpaddq_u64): Likewise.
3105 (vqdmulh_n_s16): Likewise.
3106 (vqdmulh_n_s32): Likewise.
3107 (vqdmulhq_n_s16): Likewise.
3108 (vqdmulhq_n_s32): Likewise.
3109 (vqmovn_high_s16): Likewise.
3110 (vqmovn_high_s32): Likewise.
3111 (vqmovn_high_s64): Likewise.
3112 (vqmovn_high_u16): Likewise.
3113 (vqmovn_high_u32): Likewise.
3114 (vqmovn_high_u64): Likewise.
3115 (vqmovun_high_s16): Likewise.
3116 (vqmovun_high_s32): Likewise.
3117 (vqmovun_high_s64): Likewise.
3118 (vqrdmulh_n_s16): Likewise.
3119 (vqrdmulh_n_s32): Likewise.
3120 (vqrdmulhq_n_s16): Likewise.
3121 (vqrdmulhq_n_s32): Likewise.
3122 (vrsqrte_u32): Likewise.
3123 (vrsqrteq_u32): Likewise.
3124 (vtst_p8): Likewise.
3125 (vtst_p16): Likewise.
3126 (vtst_p64): Likewise.
3127 (vtstq_p8): Likewise.
3128 (vtstq_p16): Likewise.
3129 (vtstq_p64): Likewise.
3130 (vaddlv_s32): Likewise.
3131 (vaddlv_u32): Likewise.
3132 (vqtbl1_p8): Likewise.
3133 (vqtbl1_s8): Likewise.
3134 (vqtbl1_u8): Likewise.
3135 (vqtbl1q_p8): Likewise.
3136 (vqtbl1q_s8): Likewise.
3137 (vqtbl1q_u8): Likewise.
3138 (vqtbx1_s8): Likewise.
3139 (vqtbx1_u8): Likewise.
3140 (vqtbx1_p8): Likewise.
3141 (vqtbx1q_s8): Likewise.
3142 (vqtbx1q_u8): Likewise.
3143 (vqtbx1q_p8): Likewise.
3144 (vtbl1_s8): Likewise.
3145 (vtbl1_u8): Likewise.
3146 (vtbl1_p8): Likewise.
3147 (vtbl2_s8): Likewise.
3148 (vtbl2_u8): Likewise.
3149 (vtbl2_p8): Likewise.
3150 (vtbl3_s8): Likewise.
3151 (vtbl3_u8): Likewise.
3152 (vtbl3_p8): Likewise.
3153 (vtbl4_s8): Likewise.
3154 (vtbl4_u8): Likewise.
3155 (vtbl4_p8): Likewise.
3156 (vtbx2_s8): Likewise.
3157 (vtbx2_u8): Likewise.
3158 (vtbx2_p8): Likewise.
3159 (vld1_f32): Likewise.
3160 (vld1_f64): Likewise.
3161 (vld1_p8): Likewise.
3162 (vld1_p16): Likewise.
3163 (vld1_p64): Likewise.
3164 (vld1_s8): Likewise.
3165 (vld1_s16): Likewise.
3166 (vld1_s32): Likewise.
3167 (vld1_s64): Likewise.
3168 (vld1_u8): Likewise.
3169 (vld1_u16): Likewise.
3170 (vld1_u32): Likewise.
3171 (vld1_u64): Likewise.
3172 (vld1q_f32): Likewise.
3173 (vld1q_f64): Likewise.
3174 (vld1q_p8): Likewise.
3175 (vld1q_p16): Likewise.
3176 (vld1q_p64): Likewise.
3177 (vld1q_s8): Likewise.
3178 (vld1q_s16): Likewise.
3179 (vld1q_s32): Likewise.
3180 (vld1q_s64): Likewise.
3181 (vld1q_u8): Likewise.
3182 (vld1q_u16): Likewise.
3183 (vld1q_u32): Likewise.
3184 (vld1q_u64): Likewise.
3185 (vpmax_s8): Likewise.
3186 (vpmax_s16): Likewise.
3187 (vpmax_s32): Likewise.
3188 (vpmax_u8): Likewise.
3189 (vpmax_u16): Likewise.
3190 (vpmax_u32): Likewise.
3191 (vpmaxq_s8): Likewise.
3192 (vpmaxq_s16): Likewise.
3193 (vpmaxq_s32): Likewise.
3194 (vpmaxq_u8): Likewise.
3195 (vpmaxq_u16): Likewise.
3196 (vpmaxq_u32): Likewise.
3197 (vpmax_f32): Likewise.
3198 (vpmaxq_f32): Likewise.
3199 (vpmaxq_f64): Likewise.
3200 (vpmaxqd_f64): Likewise.
3201 (vpmaxs_f32): Likewise.
3202 (vpmaxnm_f32): Likewise.
3203 (vpmaxnmq_f32): Likewise.
3204 (vpmaxnmq_f64): Likewise.
3205 (vpmaxnmqd_f64): Likewise.
3206 (vpmaxnms_f32): Likewise.
3207 (vpmin_s8): Likewise.
3208 (vpmin_s16): Likewise.
3209 (vpmin_s32): Likewise.
3210 (vpmin_u8): Likewise.
3211 (vpmin_u16): Likewise.
3212 (vpmin_u32): Likewise.
3213 (vpminq_s8): Likewise.
3214 (vpminq_s16): Likewise.
3215 (vpminq_s32): Likewise.
3216 (vpminq_u8): Likewise.
3217 (vpminq_u16): Likewise.
3218 (vpminq_u32): Likewise.
3219 (vpmin_f32): Likewise.
3220 (vpminq_f32): Likewise.
3221 (vpminq_f64): Likewise.
3222 (vpminqd_f64): Likewise.
3223 (vpmins_f32): Likewise.
3224 (vpminnm_f32): Likewise.
3225 (vpminnmq_f32): Likewise.
3226 (vpminnmq_f64): Likewise.
3227 (vpminnmqd_f64): Likewise.
3228 (vpminnms_f32): Likewise.
3229 (vmla_f32): Likewise.
3230 (vmlaq_f32): Likewise.
3231 (vmlaq_f64): Likewise.
3232 (vmls_f32): Likewise.
3233 (vmlsq_f32): Likewise.
3234 (vmlsq_f64): Likewise.
3235 (vqtbl2_s8): Likewise.
3236 (vqtbl2_u8): Likewise.
3237 (vqtbl2_p8): Likewise.
3238 (vqtbl2q_s8): Likewise.
3239 (vqtbl2q_u8): Likewise.
3240 (vqtbl2q_p8): Likewise.
3241 (vqtbl3_s8): Likewise.
3242 (vqtbl3_u8): Likewise.
3243 (vqtbl3_p8): Likewise.
3244 (vqtbl3q_s8): Likewise.
3245 (vqtbl3q_u8): Likewise.
3246 (vqtbl3q_p8): Likewise.
3247 (vqtbl4_s8): Likewise.
3248 (vqtbl4_u8): Likewise.
3249 (vqtbl4_p8): Likewise.
3250 (vqtbl4q_s8): Likewise.
3251 (vqtbl4q_u8): Likewise.
3252 (vqtbl4q_p8): Likewise.
3253 (vqtbx2_s8): Likewise.
3254 (vqtbx2_u8): Likewise.
3255 (vqtbx2_p8): Likewise.
3256 (vqtbx2q_s8): Likewise.
3257 (vqtbx2q_u8): Likewise.
3258 (vqtbx2q_p8): Likewise.
3259 (vqtbx3_s8): Likewise.
3260 (vqtbx3_u8): Likewise.
3261 (vqtbx3_p8): Likewise.
3262 (vqtbx3q_s8): Likewise.
3263 (vqtbx3q_u8): Likewise.
3264 (vqtbx3q_p8): Likewise.
3265 (vqtbx4_s8): Likewise.
3266 (vqtbx4_u8): Likewise.
3267 (vqtbx4_p8): Likewise.
3268 (vqtbx4q_s8): Likewise.
3269 (vqtbx4q_u8): Likewise.
3270 (vqtbx4q_p8): Likewise.
3271 (vrev16_p8): Likewise.
3272 (vrev16_s8): Likewise.
3273 (vrev16_u8): Likewise.
3274 (vrev16q_p8): Likewise.
3275 (vrev16q_s8): Likewise.
3276 (vrev16q_u8): Likewise.
3277 (vrev32_p8): Likewise.
3278 (vrev32_p16): Likewise.
3279 (vrev32_s8): Likewise.
3280 (vrev32_s16): Likewise.
3281 (vrev32_u8): Likewise.
3282 (vrev32_u16): Likewise.
3283 (vrev32q_p8): Likewise.
3284 (vrev32q_p16): Likewise.
3285 (vrev32q_s8): Likewise.
3286 (vrev32q_s16): Likewise.
3287 (vrev32q_u8): Likewise.
3288 (vrev32q_u16): Likewise.
3289 (vrev64_f32): Likewise.
3290 (vrev64_p8): Likewise.
3291 (vrev64_p16): Likewise.
3292 (vrev64_s8): Likewise.
3293 (vrev64_s16): Likewise.
3294 (vrev64_s32): Likewise.
3295 (vrev64_u8): Likewise.
3296 (vrev64_u16): Likewise.
3297 (vrev64_u32): Likewise.
3298 (vrev64q_f32): Likewise.
3299 (vrev64q_p8): Likewise.
3300 (vrev64q_p16): Likewise.
3301 (vrev64q_s8): Likewise.
3302 (vrev64q_s16): Likewise.
3303 (vrev64q_s32): Likewise.
3304 (vrev64q_u8): Likewise.
3305 (vrev64q_u16): Likewise.
3306 (vrev64q_u32): Likewise.
3307 (vsha1cq_u32): Likewise.
3308 (vsha1mq_u32): Likewise.
3309 (vsha1pq_u32): Likewise.
3310 (vsha1h_u32): Likewise.
3311 (vsha1su0q_u32): Likewise.
3312 (vsha1su1q_u32): Likewise.
3313 (vsha256hq_u32): Likewise.
3314 (vsha256h2q_u32): Likewise.
3315 (vsha256su0q_u32): Likewise.
3316 (vsha256su1q_u32): Likewise.
3317 (vmull_p64): Likewise.
3318 (vmull_high_p64): Likewise.
3319 (vsqrt_f32): Likewise.
3320 (vsqrtq_f32): Likewise.
3321 (vsqrt_f64): Likewise.
3322 (vsqrtq_f64): Likewise.
3323 (vst1_f32): Likewise.
3324 (vst1_f64): Likewise.
3325 (vst1_p8): Likewise.
3326 (vst1_p16): Likewise.
3327 (vst1_p64): Likewise.
3328 (vst1_s8): Likewise.
3329 (vst1_s16): Likewise.
3330 (vst1_s32): Likewise.
3331 (vst1_s64): Likewise.
3332 (vst1_u8): Likewise.
3333 (vst1_u16): Likewise.
3334 (vst1_u32): Likewise.
3335 (vst1_u64): Likewise.
3336 (vst1q_f32): Likewise.
3337 (vst1q_f64): Likewise.
3338 (vst1q_p8): Likewise.
3339 (vst1q_p16): Likewise.
3340 (vst1q_p64): Likewise.
3341 (vst1q_s8): Likewise.
3342 (vst1q_s16): Likewise.
3343 (vst1q_s32): Likewise.
3344 (vst1q_s64): Likewise.
3345 (vst1q_u8): Likewise.
3346 (vst1q_u16): Likewise.
3347 (vst1q_u32): Likewise.
3348 (vst1q_u64): Likewise.
3349 (vst1_s64_x2): Likewise.
3350 (vst1_u64_x2): Likewise.
3351 (vst1_f64_x2): Likewise.
3352 (vst1_s8_x2): Likewise.
3353 (vst1_p8_x2): Likewise.
3354 (vst1_s16_x2): Likewise.
3355 (vst1_p16_x2): Likewise.
3356 (vst1_s32_x2): Likewise.
3357 (vst1_u8_x2): Likewise.
3358 (vst1_u16_x2): Likewise.
3359 (vst1_u32_x2): Likewise.
3360 (vst1_f16_x2): Likewise.
3361 (vst1_f32_x2): Likewise.
3362 (vst1_p64_x2): Likewise.
3363 (vst1q_s8_x2): Likewise.
3364 (vst1q_p8_x2): Likewise.
3365 (vst1q_s16_x2): Likewise.
3366 (vst1q_p16_x2): Likewise.
3367 (vst1q_s32_x2): Likewise.
3368 (vst1q_s64_x2): Likewise.
3369 (vst1q_u8_x2): Likewise.
3370 (vst1q_u16_x2): Likewise.
3371 (vst1q_u32_x2): Likewise.
3372 (vst1q_u64_x2): Likewise.
3373 (vst1q_f16_x2): Likewise.
3374 (vst1q_f32_x2): Likewise.
3375 (vst1q_f64_x2): Likewise.
3376 (vst1q_p64_x2): Likewise.
3377 (vst1_s64_x3): Likewise.
3378 (vst1_u64_x3): Likewise.
3379 (vst1_f64_x3): Likewise.
3380 (vst1_s8_x3): Likewise.
3381 (vst1_p8_x3): Likewise.
3382 (vst1_s16_x3): Likewise.
3383 (vst1_p16_x3): Likewise.
3384 (vst1_s32_x3): Likewise.
3385 (vst1_u8_x3): Likewise.
3386 (vst1_u16_x3): Likewise.
3387 (vst1_u32_x3): Likewise.
3388 (vst1_f16_x3): Likewise.
3389 (vst1_f32_x3): Likewise.
3390 (vst1_p64_x3): Likewise.
3391 (vst1q_s8_x3): Likewise.
3392 (vst1q_p8_x3): Likewise.
3393 (vst1q_s16_x3): Likewise.
3394 (vst1q_p16_x3): Likewise.
3395 (vst1q_s32_x3): Likewise.
3396 (vst1q_s64_x3): Likewise.
3397 (vst1q_u8_x3): Likewise.
3398 (vst1q_u16_x3): Likewise.
3399 (vst1q_u32_x3): Likewise.
3400 (vst1q_u64_x3): Likewise.
3401 (vst1q_f16_x3): Likewise.
3402 (vst1q_f32_x3): Likewise.
3403 (vst1q_f64_x3): Likewise.
3404 (vst1q_p64_x3): Likewise.
3405 (vst2_s64): Likewise.
3406 (vst2_u64): Likewise.
3407 (vst2_f64): Likewise.
3408 (vst2_s8): Likewise.
3409 (vst2_p8): Likewise.
3410 (vst2_s16): Likewise.
3411 (vst2_p16): Likewise.
3412 (vst2_s32): Likewise.
3413 (vst2_u8): Likewise.
3414 (vst2_u16): Likewise.
3415 (vst2_u32): Likewise.
3416 (vst2_f16): Likewise.
3417 (vst2_f32): Likewise.
3418 (vst2_p64): Likewise.
3419 (vst2q_s8): Likewise.
3420 (vst2q_p8): Likewise.
3421 (vst2q_s16): Likewise.
3422 (vst2q_p16): Likewise.
3423 (vst2q_s32): Likewise.
3424 (vst2q_s64): Likewise.
3425 (vst2q_u8): Likewise.
3426 (vst2q_u16): Likewise.
3427 (vst2q_u32): Likewise.
3428 (vst2q_u64): Likewise.
3429 (vst2q_f16): Likewise.
3430 (vst2q_f32): Likewise.
3431 (vst2q_f64): Likewise.
3432 (vst2q_p64): Likewise.
3433 (vst3_s64): Likewise.
3434 (vst3_u64): Likewise.
3435 (vst3_f64): Likewise.
3436 (vst3_s8): Likewise.
3437 (vst3_p8): Likewise.
3438 (vst3_s16): Likewise.
3439 (vst3_p16): Likewise.
3440 (vst3_s32): Likewise.
3441 (vst3_u8): Likewise.
3442 (vst3_u16): Likewise.
3443 (vst3_u32): Likewise.
3444 (vst3_f16): Likewise.
3445 (vst3_f32): Likewise.
3446 (vst3_p64): Likewise.
3447 (vst3q_s8): Likewise.
3448 (vst3q_p8): Likewise.
3449 (vst3q_s16): Likewise.
3450 (vst3q_p16): Likewise.
3451 (vst3q_s32): Likewise.
3452 (vst3q_s64): Likewise.
3453 (vst3q_u8): Likewise.
3454 (vst3q_u16): Likewise.
3455 (vst3q_u32): Likewise.
3456 (vst3q_u64): Likewise.
3457 (vst3q_f16): Likewise.
3458 (vst3q_f32): Likewise.
3459 (vst3q_f64): Likewise.
3460 (vst3q_p64): Likewise.
3461 (vst4_s64): Likewise.
3462 (vst4_u64): Likewise.
3463 (vst4_f64): Likewise.
3464 (vst4_s8): Likewise.
3465 (vst4_p8): Likewise.
3466 (vst4_s16): Likewise.
3467 (vst4_p16): Likewise.
3468 (vst4_s32): Likewise.
3469 (vst4_u8): Likewise.
3470 (vst4_u16): Likewise.
3471 (vst4_u32): Likewise.
3472 (vst4_f16): Likewise.
3473 (vst4_f32): Likewise.
3474 (vst4_p64): Likewise.
3475 (vst4q_s8): Likewise.
3476 (vst4q_p8): Likewise.
3477 (vst4q_s16): Likewise.
3478 (vst4q_p16): Likewise.
3479 (vst4q_s32): Likewise.
3480 (vst4q_s64): Likewise.
3481 (vst4q_u8): Likewise.
3482 (vst4q_u16): Likewise.
3483 (vst4q_u32): Likewise.
3484 (vst4q_u64): Likewise.
3485 (vst4q_f16): Likewise.
3486 (vst4q_f32): Likewise.
3487 (vst4q_f64): Likewise.
3488 (vst4q_p64): Likewise.
3489 (vtbx4_s8): Likewise.
3490 (vtbx4_u8): Likewise.
3491 (vtbx4_p8): Likewise.
3492 (vtrn_f32): Likewise.
3493 (vtrn_p8): Likewise.
3494 (vtrn_p16): Likewise.
3495 (vtrn_s8): Likewise.
3496 (vtrn_s16): Likewise.
3497 (vtrn_s32): Likewise.
3498 (vtrn_u8): Likewise.
3499 (vtrn_u16): Likewise.
3500 (vtrn_u32): Likewise.
3501 (vtrnq_f32): Likewise.
3502 (vtrnq_p8): Likewise.
3503 (vtrnq_p16): Likewise.
3504 (vtrnq_s8): Likewise.
3505 (vtrnq_s16): Likewise.
3506 (vtrnq_s32): Likewise.
3507 (vtrnq_u8): Likewise.
3508 (vtrnq_u16): Likewise.
3509 (vtrnq_u32): Likewise.
3510 (vrsqrte_f16): Likewise.
3511 (vrsqrteq_f16): Likewise.
3512 (vsqrt_f16): Likewise.
3513 (vsqrtq_f16): Likewise.
3514 (vabd_f16): Likewise.
3515 (vabdq_f16): Likewise.
3516 (vpadd_f16): Likewise.
3517 (vpaddq_f16): Likewise.
3518 (vpmax_f16): Likewise.
3519 (vpmaxq_f16): Likewise.
3520 (vpmaxnm_f16): Likewise.
3521 (vpmaxnmq_f16): Likewise.
3522 (vpmin_f16): Likewise.
3523 (vpminq_f16): Likewise.
3524 (vpminnm_f16): Likewise.
3525 (vpminnmq_f16): Likewise.
3526 (vrsqrts_f16): Likewise.
3527 (vrsqrtsq_f16): Likewise.
3529 2019-09-25 Richard Biener <rguenther@suse.de>
3531 PR tree-optimization/91896
3532 * tree-vect-loop.c (vectorizable_reduction): The single
3533 def-use cycle optimization cannot apply when there's more
3534 than one pattern stmt involved.
3536 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3538 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3539 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3540 (reload_macho_picbase_<mode>): Likewise.
3542 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3544 * config/rs6000/rs6000.md: Move darwin.md include until
3545 after the definition of the mode iterators.
3547 2019-09-23 Martin Sebor <msebor@redhat.com>
3549 PR tree-optimization/91570
3550 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3551 non-constant minlen, maxlen and maxbound.
3553 2019-09-24 Richard Biener <rguenther@suse.de>
3555 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3557 (_stmt_vec_info::cond_reduc_code): ... this.
3558 (_stmt_vec_info::induc_cond_initial_val): Add.
3559 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3560 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3561 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3562 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3563 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3565 (vect_create_epilog_for_reduction): Drop special
3566 induction condition reduction params, pass in reduction code
3568 (vectorizable_reduction): Perform condition reduction kind
3569 selection only at analysis time. Adjust passing on state.
3571 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3573 * config/aarch64/aarch64.md (mov<mode>): Don't call
3574 aarch64_split_dimode_const_store on volatile MEM.
3576 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3578 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3579 Update hwcap string for fp16fml.
3581 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3584 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3585 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3587 2019-09-24 Martin Liska <mliska@suse.cz>
3589 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3590 instead of if-elseif-elseif-...
3591 * gimple-expr.c (extract_ops_from_tree): Likewise.
3592 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3593 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3595 2019-09-24 Martin Jambor <mjambor@suse.cz>
3598 * ipa-param-manipulation.c (carry_over_param): Make a method of
3599 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3600 in case of a context mismatch.
3601 (ipa_param_body_adjustments::common_initialization): Adjust call to
3603 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3604 private method carry_over_param.
3606 2019-09-24 Martin Jambor <mjambor@suse.cz>
3609 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3611 2019-09-24 Richard Biener <rguenther@suse.de>
3613 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3616 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3618 * config/arm/t-arm (arm-builtins.o): Add dependency on
3619 arm_acle_builtins.def.
3621 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3624 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3625 canonical CONST_INTs. Use gen_rtvec.
3627 2019-09-23 Richard Biener <rguenther@suse.de>
3629 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3630 avoid adjusting by + 0 or * 1.
3631 (vect_create_epilog_for_reduction): Get reduction code only
3632 when necessary. Deal with adjustment_def only when necessary.
3634 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3636 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3639 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3642 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3645 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3647 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3648 code. Merge code blocks with common conditionals. Use declared
3649 macro instead of a magic number for PIC level.
3651 2019-09-21 Martin Sebor <msebor@redhat.com>
3654 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3655 Simplify computation of the offset of the referenced subobject.
3657 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3659 * config/darwin.c (machopic_legitimize_pic_address): Check
3662 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3664 * ira-conflicts.c (can_use_same_reg_p): New function.
3665 (process_reg_shuffles): Take an insn parameter. Ignore cases
3666 in which input operand op_num could seemingly never be allocated
3667 to the same register as the destination.
3668 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3670 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3672 * simplify-rtx.c (neg_const_int): Replace with...
3673 (neg_poly_int_rtx): ...this new function.
3674 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3675 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3676 (simplify_plus_minus): Likewise for constant terms here.
3678 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3680 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3681 HOST_WIDE_PRINT_UNSIGNED.
3683 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3685 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3688 2019-09-20 Maya Rashish <coypu@sdf.org>
3691 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3692 Define to speculation_safe_value_not_needed.
3694 2019-09-20 Richard Biener <rguenther@suse.de>
3695 Uros Bizjak <ubizjak@gmail.com>
3698 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3700 (general_scalar_chain::convert_op): Force not suitable memory
3701 operands to a register.
3703 2019-09-20 Richard Biener <rguenther@suse.de>
3705 PR tree-optimization/91821
3706 * tree-vect-loop.c (check_reduction_path): Check we can compute
3708 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3709 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3710 operands in canonical order.
3711 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3712 STMT_VINFO_REDUC_IDX.
3713 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3714 (STMT_VINFO_REDUC_IDX): Likewise.
3716 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3719 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3721 2019-09-20 Richard Biener <rguenther@suse.de>
3723 PR tree-optimization/91822
3724 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3726 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3727 for reduc_index in nested cycles, adjust vectorizable_condition
3729 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3731 (vect_analyze_stmt): Adjust.
3732 (vect_transform_stmt): Likewise.
3734 2019-09-20 Richard Biener <rguenther@suse.de>
3737 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3738 Ensure there's a sequence point between allocating the new register
3739 and passing a reference to a reg via regno_reg_rtx.
3741 2019-09-20 Martin Jambor <mjambor@suse.cz>
3743 * coretypes.h (cgraph_edge): Declare.
3744 * ipa-param-manipulation.c: Rewrite.
3745 * ipa-param-manipulation.h: Likewise.
3746 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3747 (OBJS): Added ipa-sra.o.
3748 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3749 and ref_p, added fields param_adjustments and performed_splits.
3750 (struct cgraph_clone_info): Remove ags_to_skip and
3751 combined_args_to_skip, new field param_adjustments.
3752 (cgraph_node::create_clone): Changed parameters to use
3753 ipa_param_adjustments.
3754 (cgraph_node::create_virtual_clone): Likewise.
3755 (cgraph_node::create_virtual_clone_with_body): Likewise.
3756 (tree_function_versioning): Likewise.
3757 (cgraph_build_function_type_skip_args): Removed.
3758 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3759 using ipa_param_adjustments.
3760 (clone_of_p): Likewise.
3761 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3762 (build_function_decl_skip_args): Likewise.
3763 (duplicate_thunk_for_node): Adjust parameters using
3764 ipa_param_body_adjustments, copy param_adjustments instead of
3766 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3767 (cgraph_node::create_virtual_clone): Likewise.
3768 (cgraph_node::create_version_clone_with_body): Likewise.
3769 (cgraph_materialize_clone): Likewise.
3770 (symbol_table::materialize_all_clones): Likewise.
3771 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3772 ipa_replace_map check.
3773 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3774 (initialize_node_lattices): Make aware that some parameters might have
3775 already been removed.
3776 (want_remove_some_param_p): New function.
3777 (create_specialized_node): Convert to using ipa_param_adjustments and
3778 deal with possibly pre-existing adjustments.
3779 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3780 (output_node_opt_summary): Do not stream removed fields. Stream
3781 parameter adjustments instead of argumetns to skip.
3782 (input_node_opt_summary): Likewise.
3783 (input_node_opt_summary): Likewise.
3784 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3785 * lto-streamer.h (lto_section_type): Likewise.
3786 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3788 (copy_decl_to_var): Declare.
3789 * tree-inline.c (update_clone_info): Do not remap old_tree.
3790 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3791 statements, walk all extra generated statements and remap their
3793 (redirect_all_calls): Add killed SSA names to a hash set.
3794 (remap_ssa_name): Do not remap killed SSA names.
3795 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3796 half of functionality moved to ipa_param_body_adjustments.
3797 (copy_decl_to_var): Make exported.
3798 (copy_body): Destroy killed_new_ssa_names hash set.
3799 (expand_call_inline): Remap performed splits.
3800 (update_clone_info): Likewise.
3801 (tree_function_versioning): Simplify tree_map processing. Updated to
3802 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3803 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3804 for the new interface.
3805 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3806 (simd_clone_compute_base_data_type): Likewise.
3807 (simd_clone_init_simd_arrays): Adjust for the new interface.
3808 (simd_clone_adjust_argument_types): Likewise.
3809 (struct modify_stmt_info): Likewise.
3810 (ipa_simd_modify_stmt_ops): Likewise.
3811 (ipa_simd_modify_function_body): Likewise.
3812 (simd_clone_adjust): Likewise.
3813 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3814 (type_internals_preclude_sra_p): Make public.
3815 * tree-sra.h: New file.
3816 * ipa-inline-transform.c (save_inline_function_body): Update to
3817 refelct new tree_function_versioning signature.
3818 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3819 ipa_param_adjustments to get current parameter indices.
3820 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3821 (ipcp_update_bits): Likewise.
3822 (ipcp_update_vr): Likewise.
3823 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3824 * ipa-sra.c: New file.
3825 * multiple_target.c (create_target_clone): Update to reflet new type
3826 of create_version_clone_with_body.
3827 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3828 tree_function_versioning.
3829 (modify_function): Update to reflect new type of
3830 tree_function_versioning.
3831 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3832 * passes.def: Remove old IPA-SRA and add new one.
3833 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3834 (make_pass_ipa_sra): Declare.
3835 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3837 * doc/invoke.texi (ipa-sra-max-replacements): New.
3839 2019-09-19 Martin Sebor <msebor@redhat.com>
3842 * builtins.c (component_size): Correct trailing array computation,
3843 rename to component_ref_size and move...
3844 (compute_objsize): Adjust.
3845 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3846 (builtin_access::strict): Do not consider memmove.
3847 (builtin_access::write_off): New function.
3848 (builtin_memref::builtin_memref): Initialize refsize.
3849 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3851 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3853 (builtin_access::builtin_access): Initialize dstoff to destination
3854 refeence offset here instead of in maybe_diag_overlap. Adjust
3855 referencess even to unrelated objects. Adjust sizrange of bounded
3856 string functions to reflect bound. For strcat, adjust destination
3857 sizrange by that of source.
3858 (builtin_access::strcat_overlap): Adjust offsets and sizes
3859 to reflect the increase in destination sizrange above.
3860 (builtin_access::overlap): Do not set dstoff here but instead
3861 in builtin_access::builtin_access.
3862 (check_bounds_or_overlap): Use builtin_access::write_off.
3863 (maybe_diag_access_bounds): Add argument. Add informational notes.
3864 (dump_builtin_memref, dump_builtin_access): New functions.
3865 * tree.c (component_ref_size): ...to here.
3866 * tree.h (component_ref_size): Declare.
3867 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3868 nul in the size of the source string.
3870 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3873 * doc/cpp.texi: Document support for extended characters in
3875 * doc/cppopts.texi: Likewise.
3877 2019-09-19 Richard Biener <rguenther@suse.de>
3879 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3880 (check_reduction_path): New overload having the path as result.
3881 (vect_is_simple_reduction): From the detected reduction
3882 path build a SLP reduction chain if possible.
3884 2019-09-19 Richard Biener <rguenther@suse.de>
3887 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3888 Force operand to a register if it isn't nonimmediate_operand.
3890 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3892 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3893 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3894 (logical_op): Remove code attribute.
3895 (logical_OP): Likewise.
3897 2019-09-19 Martin Liska <mliska@suse.cz>
3899 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3902 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3904 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3907 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3908 for NE comparison of TImode values.
3909 (aarch64_emit_load_exclusive): Add support for TImode.
3910 (aarch64_emit_store_exclusive): Likewise.
3911 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3912 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3913 Change iterator from ALLI to ALLI_TI.
3914 (@atomic_compare_and_swap<JUST_TI>): New.
3915 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3916 (aarch64_load_exclusive_pair): New.
3917 (aarch64_store_exclusive_pair): New.
3918 * config/aarch64/iterators.md (JUST_TI): New.
3920 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3921 strong_zero_p for aarch64_track_speculation; unify some code paths;
3922 use aarch64_gen_compare_reg instead of open-coding.
3924 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3925 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3926 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3927 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3928 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3929 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3930 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3931 (atomic_<atomic_op><ALLI>): Likewise.
3932 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3933 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3934 * doc/invoke.texi: Document -moutline-atomics.
3936 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3938 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3939 trivial predicate for condition branch.
3940 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3942 (compute_bb_predicates): Update predicate based on post-dominating
3944 (analyze_function_body): Calculate post-dominating information.
3946 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3948 * tree-vectorizer.h (vectorizable_condition): Take an int
3949 reduction index instead of a boolean flag.
3950 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3951 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3952 reductions if the reduction accumulator is the "then" rather
3953 than the "else" value.
3954 (vect_analyze_stmt): Update call accordingly.
3955 (vect_transform_stmt): Likewise.
3956 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3957 asserting that the index is > 0.
3959 2019-09-19 Martin Liska <mliska@suse.cz>
3961 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3962 (sort_congruence_classes_by_decl_uid): Likewise.
3963 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3965 (sem_item_optimizer::merge_classes): Likewise.
3967 2019-09-19 Richard Biener <rguenther@suse.de>
3969 PR tree-optimization/91812
3970 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3973 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3975 * defaults.h (TARGET_UNIT): New macro.
3976 (target_unit): New type.
3977 * rtl.h (native_encode_rtx, native_decode_rtx)
3978 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3979 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3980 * rtlanal.c (subreg_lsb_1): Delete.
3981 (subreg_size_lsb): New function.
3982 * simplify-rtx.c: Include rtx-vector-builder.h
3983 (simplify_immed_subreg): Delete.
3984 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3985 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3987 (simplify_subreg): Use them.
3988 (test_vector_subregs_modes, test_vector_subregs_repeating)
3989 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3990 (test_vector_subregs): New functions.
3991 (test_vector_ops): Call test_vector_subregs for integer vector
3992 modes with at least 2 elements.
3994 2019-09-19 Richard Biener <rguenther@suse.de>
3996 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3997 LOOP_VINFO_OPERANDS_SWAPPED.
3998 (parloops_is_simple_reduction): Likewise.
3999 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4000 initialize operands_swapped.
4001 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4002 (vect_is_slp_reduction): Do not swap operands.
4003 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4004 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4006 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4009 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4010 Add avx_partial_xmm_update.
4012 2019-09-18 Jim Wilson <jimw@sifive.com>
4015 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4016 (riscv_move_integer): Likewise.
4017 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4018 riscv_move_integer arg.
4019 (riscv_legitimize_move): Likewise.
4020 (riscv_force_temporary): New parameter in_splitter. Don't call
4022 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4024 (riscv_add_offset): Likewise.
4025 (riscv_split_symbol): New parameter in_splitter. Pass to
4026 riscv_force_temporary.
4027 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4029 (riscv_move_integer): New parameter in_splitter. New local
4030 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4032 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4033 riscv_split_symbol, and riscv_force_temporary args.
4034 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4035 riscv_move_integer arg.
4036 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4038 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4041 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4042 hard register store cost to 6.
4044 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4047 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4048 pseudo register store cost from 3 to 6 to make it the same as
4051 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4054 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4055 (one_cmpldi2): Likewise.
4056 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4057 of the constant parts is simple.
4058 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4059 (logical_op): Add new code attribute.
4060 (logical_OP): Likewise.
4061 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4062 (arm_iordi_operand): Add predicate.
4063 (arm_xordi_operand): Add predicate.
4065 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4067 * config/arm/arm.md (maddsidi4): Remove expander.
4068 (mulsidi3adddi): Remove pattern.
4069 (mulsidi3adddi_v6): Likewise.
4070 (mulsidi3_nov6): Likewise.
4071 (mulsidi3_v6): Likewise.
4072 (umulsidi3): Remove expander.
4073 (umulsidi3_nov6): Remove pattern.
4074 (umulsidi3_v6): Likewise.
4075 (umulsidi3adddi): Likewise.
4076 (umulsidi3adddi_v6): Likewise.
4077 (<Us>mulsidi3): Add combined expander.
4078 (<Us>maddsidi4): Likewise.
4079 (<US>mull): Add combined umull and smull pattern.
4080 (<US>mlal): Likewise.
4081 * config/arm/iterators.md (Us): Add new iterator.
4083 2019-09-18 Richard Biener <rguenther@suse.de>
4085 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4087 (vectorize_fold_left_reduction): Remove assert.
4088 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4089 operand in position 2. Remove assert.
4091 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4093 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4094 (smulsi3_highpart_nov6): Remove pattern.
4095 (smulsi3_highpart_v6): Likewise.
4096 (umulsi3_highpart): Likewise.
4097 (umulsi3_highpart_nov6): Likewise.
4098 (umulsi3_highpart_v6): Likewise.
4099 (<US>mull_high): Add new combined multiply pattern.
4101 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4103 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4104 (arm_mulsi3_v6): Likewise.
4105 (mulsi3addsi_v6): Likewise.
4106 (mulsi3subsi): Likewise.
4107 (mul): Add new multiply pattern.
4111 2019-09-18 Richard Biener <rguenther@suse.de>
4113 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4114 (parloops_valid_reduction_input_p): Copy from
4115 valid_reduction_input_p.
4116 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4117 (parloops_needs_fold_left_reduction_p): Copy from
4118 needs_fold_left_reduction_p.
4119 (parloops_is_simple_reduction): Copy from
4120 vect_is_simple_reduction.
4121 (parloops_force_simple_reduction): Copy from
4122 vect_force_simple_reduction.
4123 (gather_scalar_reductions): Adjust.
4124 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4125 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4127 2019-09-18 Richard Biener <rguenther@suse.de>
4129 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4130 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4132 (vect_create_epilog_for_reduction): Remove dead code.
4134 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4136 * varasm.c (assemble_real): Generate canonical const_ints.
4138 2019-09-18 Richard Biener <rguenther@suse.de>
4141 * lto-streamer-in.c (input_eh_regions): Move EH init to
4142 lto_materialize_function.
4143 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4146 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4148 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4151 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4153 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4154 of checking specifically for INTEGER_CST.
4156 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4158 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4159 sizes instead of uhwi sizes.
4161 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4163 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4164 (add_const_value_attribute): Handle CONST_POLY_INT.
4166 2019-09-18 Martin Liska <mliska@suse.cz>
4168 * dbgcnt.def (store_merging): New counter.
4169 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4170 Use it in store merging.
4172 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4174 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4176 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4177 * config/arm/arm.c (arm_sched_variable_issue): New function.
4178 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4180 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4182 * config/arm/types.md (no_reservation): New reservation.
4183 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4185 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4186 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4187 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4188 * config/arm/arm1020e.md (1020alu_op): Likewise.
4189 * config/arm/arm1026ejs.md (alu_op): Likewise.
4190 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4191 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4192 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4193 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4194 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4195 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4196 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4197 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4198 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4199 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4200 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4201 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4202 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4203 * config/arm/fa526.md (526_alu_op): Likewise.
4204 * config/arm/fa606te.md (606te_alu_op): Likewise.
4205 * config/arm/fa626te.md (626te_alu_op): Likewise.
4206 * config/arm/fa726te.md (726te_alu_op): Likewise.
4207 * config/arm/xgene1.md (xgene1_nop): Likewise.
4209 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4211 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4212 "no_insn" to "branch".
4214 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4216 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4218 2019-09-17 Richard Biener <rguenther@suse.de>
4221 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4222 was missing generate locations only once.
4224 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4227 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4229 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4230 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4231 for switch default case using range analysis information.
4233 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4236 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4237 mode attributed is supported by FDPIC.
4239 2019-09-17 Richard Biener <rguenther@suse.de>
4241 PR tree-optimization/91790
4242 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4243 use the correct DR for setting up realignment.
4245 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4248 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4249 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4250 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4251 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4253 2019-09-16 Jason Merrill <jason@redhat.com>
4255 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4257 2019-09-16 Martin Liska <mliska@suse.cz>
4259 * gimple-fold.c (or_comparisons_1): Remove rules moved
4261 * match.pd: ... here.
4263 2019-09-16 Martin Liska <mliska@suse.cz>
4265 * gimple-fold.c (or_comparisons_1): Remove rules
4267 * match.pd: ... here.
4269 2019-09-16 Martin Liska <mliska@suse.cz>
4271 * genmatch.c (dt_node::append_simplify): Do not print
4272 warning when we have duplicate patterns belonging
4273 to a same simplify rule.
4274 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4275 (maybe_fold_comparisons_from_match_pd): Handle
4276 tcc_comparison as a results.
4277 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4279 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4280 Qi Feng <ffengqi@linux.ibm.com>
4283 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4284 (x > y && x == XXX_MIN): Optimize into 'false'.
4285 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4286 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4287 (x < y && x == XXX_MAX): Optimize into 'false'.
4288 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4289 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4290 (x <= y || x != XXX_MIN): Optimize into 'true'.
4291 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4292 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4293 (x >= y || x != XXX_MAX): Optimize into 'true'.
4294 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4296 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4297 Martin Liska <mliska@suse.cz>
4299 * gimple-fold.c (and_comparisons_1): Add type as first
4301 (and_var_with_comparison): Likewise.
4302 (and_var_with_comparison_1): Likewise.
4303 (or_comparisons_1): Likewise.
4304 (or_var_with_comparison): Likewise.
4305 (or_var_with_comparison_1): Likewise.
4306 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4307 (maybe_fold_or_comparisons): Likewise.
4308 (maybe_fold_comparisons_from_match_pd): New.
4309 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4310 (maybe_fold_or_comparisons): Likewise.
4311 * gimple.c (gimple_size): Make it public and add num_ops argument.
4312 (gimple_init): New function.
4313 (gimple_alloc): Call gimple_init.
4314 * gimple.h (gimple_size): New.
4315 (gimple_init): Likewise.
4316 * tree-if-conv.c (fold_or_predicates): Pass type.
4317 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4318 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4319 (optimize_vec_cond_expr): Likewise.
4320 (ovce_extract_ops): Return type of conditional expression.
4321 * tree-ssanames.c (init_ssa_name_imm_use): New.
4322 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4323 * tree-ssanames.h (init_ssa_name_imm_use): New.
4325 2019-09-16 Richard Biener <rguenther@suse.de>
4327 PR tree-optimization/91756
4328 PR tree-optimization/87132
4329 * tree-ssa-alias.h (enum translate_flags): New.
4330 (get_continuation_for_phi): Use it instead of simple bool flag.
4331 (walk_non_aliased_vuses): Likewise.
4332 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4333 (get_continuation_for_phi): When looking across backedges only
4334 disallow valueization.
4335 (walk_non_aliased_vuses): Adjust.
4336 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4339 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4342 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4343 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4344 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4345 * target.def (have_count_reg_decr_p): New hook.
4346 (doloop_cost_for_generic): Likewise.
4347 (doloop_cost_for_address): Likewise.
4348 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4349 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4350 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4351 * doc/tm.texi: Regenerate.
4352 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4354 (record_group): Init doloop_p.
4355 (add_candidate_1): Add optional argument doloop, change the handlings
4357 (add_candidate): Likewise.
4358 (generic_predict_doloop_p): Update attribute.
4359 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4360 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4361 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4363 (get_computation_cost): Update for doloop IV cand extra cost.
4364 (determine_group_iv_cost_cond): Update for doloop IV cand.
4365 (determine_iv_cost): Likewise.
4366 (ivopts_estimate_reg_pressure): Likewise.
4367 (may_eliminate_iv): Update handlings for doloop IV cand.
4368 (add_iv_candidate_for_doloop): New function.
4369 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4370 (iv_ca_set_no_cp): Update for doloop IV cand.
4371 (iv_ca_set_cp): Likewise.
4372 (iv_ca_dump): Dump register cost.
4373 (find_doloop_use): New function.
4374 (analyze_and_mark_doloop_use): Likewise.
4375 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4377 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4380 * cse.c (cse_insn): Do not replace anything with a
4383 2019-09-13 Ian Lance Taylor <iant@golang.org>
4385 * doc/invoke.texi (Optimize Options): Fix typo.
4387 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4389 PR tree-optimization/89386
4390 * config/i386/sse.md (smulhrs<mode>3): New expander.
4391 (smulhrsv4hi3): Ditto.
4393 2019-09-12 Richard Biener <rguenther@suse.de>
4395 PR tree-optimization/91750
4396 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4397 in the type of the evolution.
4399 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4401 PR tree-optimization/89386
4402 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4403 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4404 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4405 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4406 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4407 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4408 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4409 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4410 (su, r): Handle the unspecs above.
4411 (bt): New int attribute.
4412 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4413 * internal-fn.c (first_commutative_argument): Commutativity info for
4415 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4416 (umulhrs_optab): New optabs.
4417 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4418 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4419 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4421 (vect_vect_recog_func_ptrs): Add it.
4423 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4425 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4428 2019-09-11 Nathan Sidwell <nathan@acm.org>
4430 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4431 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4433 2019-09-11 Richard Biener <rguenther@suse.de>
4435 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4436 * lto-wrapper.c (merge_and_complain): Pick up -g.
4437 (append_compiler_options): Likewise.
4438 (run_gcc): Re-instantiate handling -g0 at link-time.
4439 * doc/invoke.texi (flto): Document debug info generation.
4441 2019-09-11 Richard Biener <rguenther@suse.de>
4443 PR tree-optimization/90387
4444 * vr-values.c (vr_values::extract_range_basic): After inlining
4445 simplify non-constant __builtin_constant_p to false.
4447 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4449 PR rtl-optimization/89795
4450 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4451 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4453 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4455 PR tree-optimization/91723
4456 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4457 instead of pointer equality when checking if argument vectypes are
4461 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4462 of get_nonzero_bits, only call it for integral types.
4464 2019-09-11 Richard Biener <rguenther@suse.de>
4467 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4469 * match.pd: Add flag_unsafe_math_optimizations check
4470 before deciding on the widest type in a binary math operation.
4472 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4474 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4475 and CALL_REALLY_USED_REGISTERS must be defined, and that
4476 CALL_REALLY_USED_REGISTERS is preferred.
4477 * doc/tm.texi: Regenerate.
4478 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4479 (call_really_used_regs): Likewise.
4480 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4481 CALL_REALLY_USED_REGISTERS are defined.
4482 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4483 initial value if defined.
4484 (initial_call_really_used_regs): Delete.
4485 (saved_call_really_used_regs): Likewise.
4486 (CALL_REALLY_USED_REGNO_P): Likewise.
4487 (init_reg_sets): Remove handling of call_really_used_regs.
4488 (save_register_info, restore_register_info, globalize_reg): Likewise.
4489 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4490 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4491 outside operand_reg_set.
4492 (fix_register): Don't change call_used_regs if
4493 CALL_REALLY_USED_REGISTERS is defined.
4494 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4495 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4496 instead of call_really_used_regs.
4497 (csky_conditional_register_usage): Remove the old handling of
4498 call_used_regs and change the handling of call_really_used_regs
4499 to use call_used_regs instead.
4500 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4501 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4502 making a register fixed.
4503 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4504 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4505 instead of call_really_used_regs.
4506 (m32r_conditional_register_usage): Don't set call_used_regs when
4507 making a register fixed.
4508 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4509 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4510 instead of call_really_used_regs.
4511 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4512 (mips_cfun_call_saved_reg_p): Likewise.
4513 (mips_swap_registers): Remove the old handling of call_used_regs
4514 and change the handling of call_really_used_regs to use call_used_regs
4516 (mips_conditional_register_usage): Likewise.
4517 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4518 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4519 instead of call_really_used_regs.
4520 (mn10300_get_live_callee_saved_regs): Likewise.
4521 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4522 (mn10300_conditional_register_usage): Don't set call_used_regs when
4523 making a register fixed.
4524 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4525 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4526 Remove the old handling of call_used_regs and change the handling
4527 of call_really_used_regs to use call_used_regs instead.
4528 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4529 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4530 instead of call_really_used_regs.
4531 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4532 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4533 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4534 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4535 (s390_conditional_register_usage): Remove the old handling of
4536 call_used_regs and change the handling of call_really_used_regs
4537 to use call_used_regs instead.
4538 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4539 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4540 (sh_fix_range, reg_unused_after): Likewise.
4541 (sh_conditional_register_usage): Remove the old handling of
4542 call_used_regs and change the handling of call_really_used_regs
4543 to use call_used_regs instead.
4544 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4545 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4546 call_used_regs when making a register fixed.
4547 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4548 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4549 call_used_regs when making a register fixed.
4550 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4551 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4552 set call_used_regs when making a register fixed.
4553 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4554 * config/visium/visium.c (visium_conditional_register_usage): Remove
4555 the old handling of call_used_regs and change the handling of
4556 call_really_used_regs to use call_used_regs instead.
4558 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4560 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4561 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4562 * reginfo.c (call_used_regs): New macro.
4564 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4566 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4568 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4569 (bpf_expand_epilogue): Likewise.
4570 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4571 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4572 (ft32_expand_epilogue): Likewise.
4573 * config/i386/i386.c (ix86_save_reg): Likewise.
4574 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4575 (moxie_expand_epilogue): Likewise.
4576 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4577 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4578 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4580 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4582 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4583 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4584 instead of testing call_used_regs directly.
4585 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4586 (aarch64_components_for_bb): Likewise.
4587 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4588 * config/arc/arc.c (arc_must_save_register): Likewise.
4589 (arc_epilogue_uses): Likewise.
4590 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4591 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4592 (arm_compute_save_reg0_reg12_mask): Likewise.
4593 (arm_compute_save_core_reg_mask): Likewise.
4594 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4595 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4596 (cmse_nonsecure_entry_clear_before_return): Likewise.
4597 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4598 (arm_expand_epilogue): Likewise.
4599 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4600 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4601 (_reg_unused_after): Likewise.
4602 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4603 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4604 (add_to_reg, hwloop_optimize): Likewise.
4605 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4606 (bpf_expand_epilogue): Likewise.
4607 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4608 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4609 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4610 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4611 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4612 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4613 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4614 * config/frv/frv.c (frv_stack_info): Likewise.
4615 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4616 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4617 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4618 (move_callee_saved_registers): Likewise.
4619 * config/h8300/h8300.c (byte_reg): Likewise.
4620 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4621 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4622 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4623 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4624 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4625 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4626 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4627 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4628 * config/m32c/m32c.c (need_to_save): Likewise.
4629 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4630 * config/mcore/mcore.c (calc_live_regs): Likewise.
4631 * config/microblaze/microblaze.c (microblaze_must_save_register):
4633 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4634 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4635 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4636 (mmix_expand_epilogue): Likewise.
4637 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4638 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4639 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4640 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4641 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4642 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4643 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4644 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4645 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4646 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4647 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4648 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4649 * config/rl78/rl78.c (need_to_save): Likewise.
4650 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4651 (rs6000_stack_info, generate_set_vrsave): Likewise.
4652 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4653 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4654 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4655 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4656 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4657 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4658 (save_local_or_in_reg_p): Likewise.
4659 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4660 (xstormy16_epilogue_uses): Likewise.
4661 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4662 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4663 * config/v850/v850.c (compute_register_save_size): Likewise.
4664 * config/vax/vax.c (vax_expand_prologue): Likewise.
4665 * config/visium/visium.c (visium_save_reg_p): Likewise.
4666 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4667 * cselib.c (cselib_process_insn): Likewise.
4668 * df-scan.c (df_get_entry_block_def_set): Likewise.
4669 * function.c (aggregate_value_p): Likewise.
4670 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4671 * ira-lives.c (process_bb_node_lives): Likewise.
4672 * ira.c (do_reload): Likewise.
4673 * lra-lives.c (process_bb_lives): Likewise.
4674 * lra-remat.c (lra_remat): Likewise.
4675 * lra.c (lra): Likewise.
4676 * postreload.c (reload_combine_recognize_pattern): Likewise.
4677 (reload_cse_move2add): Likewise.
4678 * recog.c (peep2_find_free_register): Likewise.
4679 * regrename.c (check_new_reg_p): Likewise.
4680 * reload.c (find_equiv_reg): Likewise.
4681 * reload1.c (reload, find_reg): Likewise.
4682 * sel-sched.c (init_hard_regs_data): Likewise.
4684 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4686 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4687 regs_invalidated_by_call & ~fixed_reg_set instead of
4688 call_used_or_fixed_regs & ~fixed_reg_set.
4689 * config/sh/sh.c (output_stack_adjust): Likewise.
4691 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4693 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4694 (call_used_reg_set): Delete.
4695 (call_used_or_fixed_regs): New macro.
4696 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4697 of call_used_reg_set.
4698 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4699 instead of call_used_regs.
4700 (save_call_clobbered_regs): Likewise.
4701 * cfgcleanup.c (old_insns_match_p): Likewise.
4702 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4703 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4705 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4706 * config/sh/sh.c (output_stack_adjust): Likewise.
4707 * final.c (collect_fn_hard_reg_usage): Likewise.
4708 * ira-build.c (ira_build): Likewise.
4709 * ira-color.c (calculate_saved_nregs): Likewise.
4710 (allocno_reload_assign, calculate_spill_cost): Likewise.
4711 * ira-conflicts.c (ira_build_conflicts): Likewise.
4712 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4713 * ira-lives.c (process_bb_node_lives): Likewise.
4714 * ira.c (setup_reg_renumber): Likewise.
4715 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4716 * lra-constraints.c (need_for_call_save_p): Likewise.
4717 (need_for_split_p, inherit_in_ebb): Likewise.
4718 * lra-lives.c (process_bb_lives): Likewise.
4719 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4720 * postreload.c (reload_combine): Likewise.
4721 * regrename.c (find_rename_reg): Likewise.
4722 * reload1.c (reload_as_needed): Likewise.
4723 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4724 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4725 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4727 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4729 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4730 (no_caller_save_reg_set): Delete.
4731 * caller-save.c (init_caller_save): Don't initialize it.
4732 * ira-conflicts.c (ira_build_conflicts): Calculate
4733 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4735 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4737 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4738 (target_hard_regs::x_savable_regs): New field.
4739 (call_fixed_reg_set): Delete.
4740 (savable_regs): New macro,
4741 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4742 (init_reg_sets_1): Likewise. Initialize savable_regs.
4743 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4744 for all registers. Set savable_regs instead of call_fixed_reg_set.
4745 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4746 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4747 * config/sh/sh.c (output_stack_adjust): Likewise.
4749 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4751 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4752 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4753 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4755 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4757 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4758 * rtlanal.c (get_call_rtx_from): Likewise.
4759 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4760 than the pattern to get_call_rtx_from.
4761 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4762 an rtx_insn * instead of an rtx.
4763 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4765 2019-09-10 Martin Liska <mliska@suse.cz>
4767 * common.opt: Use newly added WarnRemoved.
4768 * config/aarch64/aarch64.opt: Likewise.
4769 * config/arm/arm.opt: Likewise.
4770 * config/i386/i386.opt: Likewise.
4771 * config/ia64/ia64.opt: Likewise.
4772 * config/rs6000/rs6000.opt: Likewise.
4773 * doc/options.texi: Document WarnRemoved properly.
4774 * dwarf2out.c (gen_producer_string): Handle renamed
4775 OPT_SPECIAL_warn_removed.
4776 * lto-opts.c (lto_write_options): Likewise.
4777 * lto-wrapper.c (merge_and_complain): Likewise.
4778 * opts-common.c (decode_cmdline_option): Likewise.
4779 (prune_options): Likewise.
4780 (read_cmdline_option): Likewise.
4781 (control_warning_option): Likewise.
4782 * opts.c (print_filtered_help): Likewise.
4783 * optc-gen.awk: Parse for WarnRemoved and make usage
4784 of Deprecated an error.
4785 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4787 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4789 * doc/install.texi: Fix syntax for html generation.
4791 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4794 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4795 the shift type to type.
4797 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4799 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4801 (stack_protect_combined_test_insn): Likewise.
4803 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4804 Mickaël Guêné <mickael.guene@st.com>
4806 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4807 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4808 (load_tp_soft_fdpic): New pattern.
4809 (load_tp_soft): Disable in FDPIC mode.
4811 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4812 Mickaël Guêné <mickael.guene@st.com>
4814 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4815 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4816 (arm_call_tls_get_addr): Add FDPIC support.
4817 (legitimize_tls_address): Likewise.
4818 (arm_emit_tls_decoration): Likewise.
4820 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4821 Mickaël Guêné <mickael.guene@st.com>
4823 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4825 (arm_trampoline_init): Likewise.
4826 (arm_trampoline_adjust_address): Likewise.
4827 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4829 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4830 Mickaël Guêné <mickael.guene@st.com>
4832 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4833 (legitimize_pic_address): Enforce binding rules on function
4834 pointers in FDPIC mode.
4835 (arm_assemble_integer): Likewise.
4837 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4838 Mickaël Guêné <mickael.guene@st.com>
4840 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4841 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4844 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4845 Mickaël Guêné <mickael.guene@st.com>
4847 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4850 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4851 Mickaël Guêné <mickael.guene@st.com>
4853 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4855 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4857 * config/arm/arm.c (arm_option_override): Define pic register to
4859 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4860 have no decl or go through PLT.
4861 (calculate_pic_address_constant): New function.
4862 (legitimize_pic_address): Call calculate_pic_address_constant.
4863 (arm_load_pic_register): Handle TARGET_FDPIC.
4864 (arm_is_segment_info_known): New function.
4865 (arm_pic_static_addr): Add support for FDPIC.
4866 (arm_load_function_descriptor): New function.
4867 (arm_emit_call_insn): Add support for FDPIC.
4868 (arm_assemble_integer): Add support for FDPIC.
4869 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4870 Define. (FDPIC_REGNUM): New define.
4871 * config/arm/arm.md (call): Add support for FDPIC.
4872 (call_value): Likewise.
4873 (restore_pic_register_after_call): New pattern.
4874 (untyped_call): Disable if FDPIC.
4875 (untyped_return): Likewise.
4876 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4878 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4879 Mickaël Guêné <mickael.guene@st.com>
4881 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4882 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4883 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4884 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4885 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4886 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4887 * config/arm/uclinuxfdpiceabi.h: New file.
4889 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4891 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4893 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4894 Mickaël Guêné <mickael.guene@st.com>
4896 * config/arm/arm.opt: Add -mfdpic option.
4897 * doc/invoke.texi: Add documentation for -mfdpic.
4899 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4901 * expmed.c (extract_bit_field): Update function comment
4903 * expr.c (expand_expr_real): Update function comment
4905 (expand_misaligned_mem_ref): New helper function.
4906 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4907 Remove duplicate assignment to "base" at case MEM_REF.
4908 Remove a shadowed variable "unsignedp" at case VCE.
4910 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4912 * regset.h (regs_invalidated_by_call_regset): Delete.
4913 (fixed_reg_set_regset): Likewise.
4914 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4915 (fixed_reg_set_regset, persistent_obstack): Likewise.
4916 (init_reg_sets_1, globalize_reg): Update accordingly.
4917 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4918 instead of a bitmap.
4919 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4920 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4921 instead of regs_invalidated_by_call_regset.
4922 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4923 * df-scan.c (df_scan_start_dump): Likewise.
4924 * dse.c (copy_fixed_regs): Likewise.
4925 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4927 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4929 * array-traits.h: New file.
4930 * coretypes.h (array_traits, bitmap_view): New types.
4931 * bitmap.h: Include "array-traits.h"
4932 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4933 (base_bitmap_view, bitmap_view): New classes.
4934 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4935 * hard-reg-set.h: Include array-traits.h.
4936 (array_traits<HARD_REG_SET>): New struct.
4937 * regset.h (IOR_REG_SET_HRS): New macro.
4938 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4939 rather than iterating over each hard register.
4940 * sched-deps.c (sched_analyze_insn): Likewise.
4941 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4943 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4945 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4946 instead of a HARD_REG_SET *.
4947 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4948 (ira_build): Update call accordingly.
4949 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4951 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4953 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4954 (HARD_REG_SET::operator!=): Likewise.
4955 (hard_reg_set_equal_p): Delete.
4956 * cfgcleanup.c (old_insns_match_p): Use == instead of
4957 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4958 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4959 (add_allocno_hard_regs_to_forest): Likewise.
4960 (setup_allocno_available_regs_num): Likewise.
4961 * ira.c (setup_pressure_classes): Likewise.
4962 (setup_allocno_and_important_classes): Likewise.
4963 (setup_reg_class_relations): Likewise.
4964 * lra-lives.c (process_bb_lives): Likewise.
4965 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4967 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4969 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4970 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4971 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4972 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4974 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4975 * ira.c (setup_reg_renumber): Likewise.
4976 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4977 * regrename.c (regrename_find_superclass): Likewise.
4978 * reload1.c (find_reg): Likewise.
4980 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4982 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4983 * caller-save.c (setup_save_areas): Use "&~" instead of
4984 AND_COMPL_HARD_REG_SET.
4985 (save_call_clobbered_regs): Likewise.
4986 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4988 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4989 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4990 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4991 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4992 (mips_conditional_register_usage): Likewise.
4993 * config/sh/sh.c (output_stack_adjust): Likewise.
4994 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4995 (setup_profitable_hard_regs): Likewise.
4996 (get_conflict_and_start_profitable_regs): Likewise.
4997 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4998 (ira_build_conflicts): Likewise.
4999 * ira-costs.c (restrict_cost_classes): Likewise.
5000 (setup_regno_cost_classes_by_aclass): Likewise.
5001 * ira-lives.c (process_bb_node_lives): Likewise.
5002 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5003 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5004 (setup_allocno_and_important_classes, setup_class_translate_array)
5005 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5007 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5008 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5009 (process_alt_operands, inherit_in_ebb): Likewise.
5010 * lra-eliminations.c (update_reg_eliminate): Likewise.
5011 * lra-lives.c (process_bb_lives): Likewise.
5012 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5013 * resource.c (find_dead_or_set_registers): Likewise.
5014 (mark_target_live_regs): Likewise.
5015 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5016 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5017 (implicit_clobber_conflict_p): Likewise.
5018 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5019 (try_shrink_wrapping): Likewise.
5021 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5023 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5024 (HARD_REG_SET::operator|=): Likewise.
5025 (IOR_HARD_REG_SET): Delete.
5026 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5028 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5029 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5030 * final.c (collect_fn_hard_reg_usage): Likewise.
5031 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5032 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5033 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5034 (propagate_some_info_from_allocno): Likewise.
5035 (copy_info_to_removed_store_destinations): Likewise.
5036 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5037 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5038 (fast_allocation): Likewise.
5039 * ira-conflicts.c (ira_build_conflicts): Likewise.
5040 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5041 (process_bb_node_lives): Likewise.
5042 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5043 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5044 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5045 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5046 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5047 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5048 (process_bb_lives): Likewise.
5049 * lra-spills.c (assign_spill_hard_regs): Likewise.
5050 * postreload.c (reload_combine): Likewise.
5051 * reginfo.c (init_reg_sets_1): Likewise.
5052 * regrename.c (merge_overlapping_regs, find_rename_reg)
5053 (merge_chains): Likewise.
5054 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5055 (find_reload_regs, finish_spills, choose_reload_regs_init)
5056 (emit_reload_insns): Likewise.
5057 * reorg.c (redundant_insn): Likewise.
5058 * resource.c (find_dead_or_set_registers, mark_set_resources)
5059 (mark_target_live_regs): Likewise.
5060 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5061 * sched-deps.c (sched_analyze_insn): Likewise.
5062 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5063 (find_best_reg_for_expr): Likewise.
5064 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5066 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5068 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5069 (HARD_REG_SET::operator&): Likewise.
5070 (AND_HARD_REG_SET): Delete.
5071 * caller-save.c (setup_save_areas): Use "&" instead of
5073 (save_call_clobbered_regs): Likewise.
5074 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5075 * config/m32c/m32c.c (reduce_class): Likewise.
5076 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5077 * final.c (get_call_reg_set_usage): Likewise.
5078 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5079 (setup_left_conflict_sizes_p): Likewise.
5080 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5081 (ira_build_conflicts): Likewise.
5082 * ira-costs.c (restrict_cost_classes): Likewise.
5083 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5084 (setup_reg_class_relations): Likewise.
5085 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5086 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5087 * resource.c (find_dead_or_set_registers): Likewise.
5088 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5090 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5092 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5093 (COMPL_HARD_REG_SET): Delete.
5094 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5095 of COMPL_HARD_REG_SET.
5096 (try_rename_operands): Likewise.
5097 * config/sh/sh.c (push_regs): Likewise.
5098 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5099 * lra-constraints.c (contains_reg_p): Likewise.
5100 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5102 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5104 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5105 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5106 of COPY_HARD_REG_SET.
5107 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5108 (epiphany_conditional_register_usage): Likewise.
5109 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5110 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5111 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5112 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5113 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5114 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5115 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5116 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5117 * config/sh/sh.c (output_stack_adjust): Likewise.
5118 * final.c (collect_fn_hard_reg_usage): Likewise.
5119 (get_call_reg_set_usage): Likewise.
5120 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5121 (ira_flattening): Likewise.
5122 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5123 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5124 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5125 (ira_reassign_pseudos): Likewise.
5126 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5127 (ira_build_conflicts): Likewise.
5128 * ira-costs.c (restrict_cost_classes): Likewise.
5129 (setup_regno_cost_classes_by_aclass): Likewise.
5130 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5131 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5132 (setup_stack_reg_pressure_class, setup_pressure_classes)
5133 (setup_allocno_and_important_classes, setup_class_translate_array)
5134 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5135 (ira_setup_eliminable_regset): Likewise.
5136 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5137 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5138 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5139 (process_alt_operands, inherit_in_ebb): Likewise.
5140 * lra-lives.c (process_bb_lives): Likewise.
5141 * lra-spills.c (assign_spill_hard_regs): Likewise.
5142 * lra.c (lra): Likewise.
5143 * mode-switching.c (new_seginfo): Likewise.
5144 * postreload.c (reload_combine): Likewise.
5145 * reg-stack.c (straighten_stack): Likewise.
5146 * reginfo.c (save_register_info, restore_register_info): Likewise.
5147 (init_reg_sets_1, record_subregs_of_mode): Likewise
5148 * regrename.c (create_new_chain, rename_chains): Likewise.
5149 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5150 (find_reload_regs): Likewise.
5151 * resource.c (find_dead_or_set_registers): Likewise.
5152 (mark_target_live_regs): Likewise.
5153 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5155 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5157 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5158 (note_pattern_stores): Declare.
5159 (note_stores): Take an rtx_insn *.
5160 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5161 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5162 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5163 (note_stores): Take an rtx_insn * as argument and process
5164 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5165 (note_pattern_stores): ...this.
5166 (find_first_parameter_load): Pass the insn rather than
5167 its pattern to note_stores.
5168 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5169 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5170 (insert_one_insn): Likewise.
5171 * combine.c (combine_instructions): Likewise.
5172 (likely_spilled_retval_p): Likewise.
5173 (try_combine): Use note_pattern_stores instead of note_stores.
5174 (record_dead_and_set_regs): Pass the insn rather than its pattern
5176 (reg_dead_at_p): Likewise.
5177 * config/bfin/bfin.c (workaround_speculation): Likewise.
5178 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5180 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5181 instead of note_stores.
5182 (frv_optimize_membar_local): Pass the insn rather than its pattern
5184 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5185 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5186 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5187 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5188 (mips_reorg_process_insns): Likewise.
5189 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5190 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5192 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5193 its pattern to note_stores.
5194 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5196 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5197 the insn to note_stores.
5198 (prescan_insns_for_dce): Update call accordingly.
5199 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5201 * df-problems.c (can_move_insns_across): Likewise.
5202 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5203 * function.c (assign_parm_setup_reg): Likewise.
5204 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5205 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5206 (single_set_gcse): Likewise.
5207 * ira.c (validate_equiv_mem): Likewise.
5208 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5210 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5211 pattern to note_stores.
5212 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5213 * loop-iv.c (simplify_using_initial_values): Likewise.
5214 * mode-switching.c (optimize_mode_switching): Likewise.
5215 * optabs.c (emit_libcall_block_1): Likewise.
5216 (expand_atomic_compare_and_swap): Likewise.
5217 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5218 (record_opr_changes): Likewise. Remove explicit handling of
5219 CALL_INSN_FUNCTION_USAGE.
5220 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5221 * regcprop.c (kill_clobbered_values): Likewise.
5222 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5224 * regrename.c (build_def_use): Likewise.
5225 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5226 for mark_not_eliminable.
5227 (reload_as_needed): Pass the insn rather than its pattern
5229 (emit_output_reload_insns): Likewise.
5230 * resource.c (mark_target_live_regs): Likewise.
5231 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5232 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5233 instead of note_stores.
5234 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5235 its pattern to note_stores.
5236 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5237 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5239 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5241 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5242 than a #define. Use a structure rather than an array as the
5243 fallback definition. Remove special cases for low array sizes.
5244 (const_hard_reg_set): New typedef.
5245 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5246 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5247 (hard_reg_set_empty_p): Likewise.
5248 (SET_HARD_REG_BIT): Use a function rather than a macro to
5249 handle the case in which HARD_REG_SET is a structure.
5250 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5251 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5252 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5253 (IOR_COMPL_HARD_REG_SET): Likewise.
5254 (hard_reg_set_iterator::pset): Constify the pointer target.
5255 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5256 of a "const HARD_REG_SET". Update the handling of non-integer
5258 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5259 * reload.h: Likewise.
5260 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5261 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5262 of a "const HARD_REG_SET".
5263 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5264 (range_in_hard_reg_set_p): Likewise.
5265 * ira-costs.c (restrict_cost_classes): Likewise.
5266 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5267 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5268 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5269 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5270 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5271 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5272 take an unsigned int and open-code the HARD_REG_SET operations.
5274 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5276 * Makefile.in (OBJS): Remove bt-load.o.
5277 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5278 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5279 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5280 document that the option no longer does anything.
5281 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5282 * target.def (branch_target_register_class): Delete.
5283 (branch_target_register_callee_saved): Likewise.
5284 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5285 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5286 * doc/tm.texi: Regenerate.
5287 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5288 (make_pass_branch_target_load_optimize2): Likewise.
5289 * passes.def (pass_branch_target_load_optimize1): Likewise.
5290 (pass_branch_target_load_optimize2): Likewise.
5291 * targhooks.h (default_branch_target_register_class): Likewise.
5292 * targhooks.c (default_branch_target_register_class): Likewise.
5293 * opt-suggestions.c (test_completion_valid_options): Remove
5294 -fbtr-bb-exclusive from the list of test options.
5295 * bt-load.c: Remove.
5297 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5299 * match.pd: Add flag_unsafe_math_optimizations check
5300 before deciding on the widest type in a binary math operation.
5302 2019-09-09 Martin Liska <mliska@suse.cz>
5304 * config/i386/i386.opt: Update comment of removed
5305 options that are preserved only for backward
5308 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5311 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5315 * config/i386/avxintrin.h (__v32qs): New typedef.
5316 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5319 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5321 * doc/invoke.texi (Option Summary): Cover eBPF.
5322 (eBPF Options): New section.
5323 * doc/extend.texi (BPF Built-in Functions): Likewise.
5324 (BPF Kernel Helpers): Likewise.
5326 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5328 * config.gcc: Support for bpf-*-* targets.
5329 * common/config/bpf/bpf-common.c: New file.
5330 * config/bpf/t-bpf: Likewise.
5331 * config/bpf/predicates.md: Likewise.
5332 * config/bpf/constraints.md: Likewise.
5333 * config/bpf/bpf.opt: Likewise.
5334 * config/bpf/bpf.md: Likewise.
5335 * config/bpf/bpf.h: Likewise.
5336 * config/bpf/bpf.c: Likewise.
5337 * config/bpf/bpf-protos.h: Likewise.
5338 * config/bpf/bpf-opts.h: Likewise.
5339 * config/bpf/bpf-helpers.h: Likewise.
5340 * config/bpf/bpf-helpers.def: Likewise.
5342 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5344 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5347 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5349 * opt-functions.awk (integer_range_info): Make sure values are in
5350 numeric context before operating with them.
5352 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5354 * genemit.c (gen_split): Print the filename and line number where the
5355 splitter (or peephole2) was defined, to the dump file.
5357 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5359 PR tree-optimization/91665
5360 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5361 incompatible with the type of PHI result.
5363 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5366 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5367 gen_unaligned_storedi for 4-byte aligned addresses.
5369 2019-09-06 Jim Wilson <jimw@sifive.com>
5371 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5374 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5376 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5378 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5380 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5381 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5383 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5386 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5387 cost of SSE->integer and integer->SSE moves from 2 to 6.
5390 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5392 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5393 before testing TYPE_TRANSPARENT_AGGR.
5394 * calls.c (initialize_argument_information, load_register_parameters):
5397 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5399 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5401 (cmp_ior): Likewise.
5403 2019-09-06 Martin Liska <mliska@suse.cz>
5405 * doc/match-and-simplify.texi: Separate tuples with ;.
5407 2019-09-06 Martin Liska <mliska@suse.cz>
5410 * Makefile.in: Remove tlink.o.
5411 * collect2.c (do_link): New function isolated
5414 * collect2.h (do_tlink): Remove declaration of do_tlink.
5415 * doc/extend.texi: Remove documentation of -frepo.
5416 * doc/invoke.texi: Likewise.
5417 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5420 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5421 Jim Wilson <jimw@sifive.com>
5424 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5425 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5426 paradoxical_subreg_p (operands[0]).
5427 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5428 use as intermediate value.
5430 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5432 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5433 (sync_compare_and_swap<mode>_insn): Likewise.
5435 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5438 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5439 without movmisalign optab.
5441 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5446 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5447 types, use type of their first field instead of type of
5450 2019-09-05 Richard Biener <rguenther@suse.de>
5452 PR rtl-optimization/91656
5453 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5456 2019-09-05 Richard Biener <rguenther@suse.de>
5459 * tree-inline.c (declare_return_variable): Mark the return
5460 slot as addressable after building an address of it.
5462 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5464 * doc/install.texi: Update and clarify requirements to build GNAT.
5466 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5469 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5470 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5471 call to be in memory.
5472 (pass_expand::execute): Call discover_nonconstant_array_refs before
5473 setting currently_expanding_to_rtl.
5475 2019-09-04 Caroline Tice <cmtice@google.com>
5477 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5480 2019-09-04 Marek Polacek <polacek@redhat.com>
5482 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5484 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5487 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5488 for QI and HImode moves between SSE and general registers.
5490 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5493 * doc/invoke.texi: Document -Wenum-conversion.
5495 2019-09-04 Richard Biener <rguenther@suse.de>
5497 PR rtl-optimization/36262
5498 * postreload-gcse.c: Include intl.h and gcse.h.
5499 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5500 to avoid linear list walk.
5501 (record_last_mem_set_info): Gate off if not computing transparentness.
5502 (get_bb_avail_insn): If transparentness isn't computed give up
5504 (gcse_after_reload_main): Skip compute_transp and extended PRE
5505 if gcse_or_cprop_is_too_expensive says so.
5507 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5509 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5511 (msp430_select_section): Handle decls with the "noinit" attribute with
5512 default_elf_select_section.
5513 Handle SECCAT_RODATA_MERGE_* section types with
5514 default_elf_select_section.
5515 Add comments about handling of unsupported section types.
5516 (msp430_section_type_flags): Remove handling of the noinit section.
5518 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5520 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5521 conflicting msp430-specific attributes.
5522 (msp430_section_attr): Likewise.
5523 Add warnings about conflicts with generic "noinit" and "section"
5525 Fix grammar in -mlarge error message.
5526 (msp430_data_attr): Rename to msp430_persist_attr.
5527 Add warnings about conflicts with generic "noinit" and "section"
5529 Add warning for when variable is not initialized.
5530 Chain conditionals which prevent the attribute being added.
5531 (ATTR_EXCL): New helper.
5532 (attr_reent_exclusions): New exclusion table.
5533 (attr_naked_exclusions): Likewise.
5534 (attr_crit_exclusions): Likewise.
5535 (attr_lower_exclusions): Likewise.
5536 (attr_upper_exclusions): Likewise.
5537 (attr_either_exclusions): Likewise.
5538 (attr_persist_exclusions): Likewise.
5539 (msp430_attribute_table): Update with exclusion rules.
5540 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5543 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5545 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5546 (msp430_handle_generic_attribute): New function.
5547 * doc/tm.texi: Regenerate.
5548 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5549 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5550 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5551 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5553 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5555 PR tree-optimization/91504
5556 * match.pd: Add ((~a & b) ^a) --> (a | b).
5558 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5561 * config/i386/i386-expand.c (split_double_mode): If there is more than
5562 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5563 already split matching MEM operand instead of calling adjust_address
5566 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5568 * config.gcc: Obsolete spu target. Remove references to spu.
5569 * configure.ac: Remove references to spu.
5570 * configure: Regenerate.
5571 * config/spu/: Remove directory.
5572 * common/config/spu/: Remove directory.
5574 * doc/extend.texi: Remove references to spu.
5575 * doc/invoke.texi: Likewise.
5576 * doc/md.texi: Likewise.
5577 * doc/sourcebuild.texi: Likewise.
5579 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5584 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5585 and SSA_NAME referring to CONSTANT_P correctly.
5587 2019-09-03 Richard Biener <rguenther@suse.de>
5589 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5590 (vn_nary_op_insert): Likewise.
5591 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5592 (vn_nary_op_lookup): Likewise.
5593 (vn_nary_op_insert): Likewise.
5595 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5597 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5598 (*op0, 1) instead of XEXP (*op1, 0).
5600 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5602 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5603 (aarch64_fjcvtzs): New define_insn.
5604 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5605 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5607 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5608 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5609 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5610 __ARM_FEATURE_JCVT where appropriate.
5611 * config/aarch64/arm_acle.h (__jcvt): Define.
5613 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5615 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5616 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5617 (aarch64_<frintnzs_op><mode>): New define_insn.
5618 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5619 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5620 __ARM_FEATURE_FRINT when appropriate.
5621 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5622 frint32x, frint64z, frint64x.
5623 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5624 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5625 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5626 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5627 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5628 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5629 * config/aarch64/iterators.md (VSFDF): Define.
5630 (FRINTNZX): Likewise.
5631 (frintnzs_op): Likewise.
5633 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5635 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5636 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5638 * config/aarch64/aarch64-tune.md: Regenerated.
5639 * doc/invoke.texi: Document the new processors.
5641 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5643 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5647 (sve2-sm4): Likewise.
5649 (svesha3): Likewise.
5650 (svebitperm): Likewise.
5652 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5653 Richard Biener <rguenther@suse.de>
5655 PR tree-optimization/91597
5656 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5657 BIT_AND_EXPR optimization for pointers, even if both operand
5658 ranges don't include NULL, the result can be NULL.
5660 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5663 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5664 (non_mem_decl_p): ...this.
5665 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5666 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5667 unconditionally as before.
5669 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5672 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5673 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5674 * tree.def (LTGT_EXPR): Likewise.
5675 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5677 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5680 * fold-const.c (range_check_type): For enumeral and boolean
5681 type, pass 1 to type_for_size langhook instead of
5682 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5683 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5684 (build_range_check): Don't call unsigned_type_for for pointer types.
5685 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5686 range_check_type result.
5688 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5690 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5691 (replace_ref): Do not replace a chain of only two candidates which are
5692 valid memory references.
5694 2019-09-02 Martin Liska <mliska@suse.cz>
5696 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5697 Bail out when we'll end up with the same number of clusters as
5699 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5700 (jump_table_cluster::can_be_handled): Remove the guard
5701 as it's already handled in ::is_enabled. Allocate output
5702 after early bail out.
5704 2019-09-02 Martin Liska <mliska@suse.cz>
5706 PR gcov-profile/91601
5707 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5708 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5709 also negative edges.
5710 (circuit): Handle also negative edges as they can happen
5713 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5716 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5717 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5718 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5720 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5723 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5724 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5725 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5729 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5730 GIMPLE_ASM TREE_LIST operands.
5732 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5734 * doc/generic.texi (Unary and Binary Expressions): Mark up
5735 an instance of TYPE_MIN.
5737 2019-08-31 Stafford Horne <shorne@gmail.com>
5739 * config/or1k/constraints.md (t): New constraint.
5740 * config/or1k/or1k.h (GOT_REGS): New register class.
5741 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5743 2019-08-30 Jim Wilson <jimw@sifive.com>
5745 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5746 and -fpic and -mplt then disable -msave-restore and warn.
5748 2019-08-30 Martin Sebor <msebor@redhat.com>
5751 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5752 the statement doesn't have one.
5753 * gimple-pretty-print.c (percent_G_format): Same.
5756 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5757 before using them to validate MEM_REF offset.
5759 2019-08-30 Marek Polacek <polacek@redhat.com>
5761 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5763 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5765 * config/arm/arm.md (unaligned_loaddi,
5766 unaligned_storedi): New unspec insn patterns.
5767 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5768 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5769 and unaligned_storedi for 4-byte aligned memory.
5770 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5771 4-byte aligned memory.
5773 2019-08-30 Martin Jambor <mjambor@suse.cz>
5775 tree-optimization/91579
5776 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5777 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5779 (arg_needs_copy_p): Removed.
5780 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5782 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5784 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5786 * config/i386/i386-features.c
5787 (general_scalar_chain::compute_convert_gain):
5788 Correct cost for double-word shifts.
5789 (general_scalar_to_vector_candidate_p): Reject count operands
5790 greater or equal to mode bitsize.
5792 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5794 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5795 for moves between SSE and non-general registers and between
5796 mask and non-general registers.
5797 (ix86_register_move_cost): Remove stalled comment.
5799 2019-08-29 Richard Biener <rguenther@suse.de>
5801 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5802 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5804 2019-08-29 Richard Biener <rguenther@suse.de>
5807 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5808 Do not emit scalar copies for debug-insns, instead replace
5809 their uses with the reg copy used in the chain or reset them
5810 if there is a reaching definition outside of the chain as well.
5812 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5815 * config/i386/i386-expand.c (expand_vec_perm_movs,
5816 expand_vec_perm_blend, expand_vec_perm_vpermil,
5817 expand_vec_perm_pshufb, expand_vec_perm_1,
5818 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5819 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5820 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5821 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5822 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5823 comments - replace ix86_expand_vec_perm_builtin_1 with
5824 ix86_expand_vec_perm_const_1.
5825 (expand_vec_perm2_vperm2f128_vblend): New function.
5826 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5827 expand_vec_perm2_vperm2f128_vblend as last resort.
5828 (canonicalize_perm): Formatting fix.
5830 PR tree-optimization/91351
5831 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5833 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5834 range_check_type returns NULL.
5835 * tree-switch-conversion.c (switch_conversion::build_one_array):
5836 Use range_check_type instead of unsigned_type_for, don't perform
5837 linear opt if it returns NULL.
5838 (bit_test_cluster::find_bit_tests): Formatting fix.
5839 (bit_test_cluster::emit): Use range_check_type instead of
5841 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5844 2019-08-29 Richard Biener <rguenther@suse.de>
5846 PR tree-optimization/91568
5847 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5848 (vect_update_max_nunits): Add overload for poly_uint64.
5849 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5850 (vect_build_slp_tree): Record max_nunits into the subtree
5851 and merge it upwards.
5852 (vect_print_slp_tree): Print max_nunits.
5854 2019-08-28 Marek Polacek <polacek@redhat.com>
5856 Implement P1152R4: Deprecating some uses of volatile.
5858 * doc/invoke.texi: Document -Wvolatile.
5860 2019-08-28 Marek Polacek <polacek@redhat.com>
5862 PR c++/91360 - Implement C++20 P1143R2: constinit.
5863 * doc/invoke.texi: Document -Wc++20-compat.
5865 2019-08-28 Martin Sebor <msebor@redhat.com>
5867 PR tree-optimization/91457
5868 * builtins.c (component_size): New function.
5869 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5870 * builtins.h (compute_objsize): Add argument.
5871 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5872 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5873 (vrp_prop::check_mem_ref): Same.
5874 (vrp_prop::search_for_addr_array): Set no-warning bit.
5875 (check_array_bounds): Same.
5877 2019-08-28 Martin Sebor <msebor@redhat.com>
5880 * opts-common.c (option_enabled): Correct checking for language
5883 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5885 * config/i386/i386.c (ix86_register_move_cost): Do not
5886 limit the cost of moves to/from XMM register to minimum 8.
5888 2019-08-28 Martin Jambor <mjambor@suse.cz>
5891 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5892 checking assert a normal assert to test it really is redundant.
5893 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5895 (update_jump_functions_after_inlining): Removed combining unary
5896 arithmetic operations with an ancestor jump function.
5897 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5900 2019-08-28 Richard Biener <rguenther@suse.de>
5902 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5905 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5906 Richard Biener <rguenther@suse.de>
5908 * expr.c (expand_assignment): Handle misaligned DECLs.
5909 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5910 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5912 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5913 * varasm.c (build_constant_desc): Align constants of misaligned types.
5914 * config/arm/predicates.md (aligned_operand): New predicate.
5915 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5916 aligned_operand to check restrictions on memory addresses.
5917 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5918 * config/arm/vec-common.md (mov<VALL>): Likewise.
5920 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5923 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5924 V_128 iterator instead of VI_128.
5926 2019-08-28 Martin Liska <mliska@suse.cz>
5928 PR tree-optimization/90970
5929 * builtins.c (check_access): Remove assignment to maxread
5930 as it hasn't been used since when it was introduced in r255755.
5932 2019-08-27 Martin Sebor <msebor@redhat.com>
5934 PR tree-optimization/91567
5935 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5937 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5940 2019-08-27 Jeff Law <law@redhat.com>
5942 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5943 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5945 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5948 * config/i386/i386-features.c (convert_scalars_to_vector):
5949 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5950 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5951 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5952 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5954 2019-08-27 Richard Biener <rguenther@suse.de>
5956 * config/i386/i386-features.h
5957 (general_scalar_chain::~general_scalar_chain): Add.
5958 (general_scalar_chain::insns_conv): New bitmap.
5959 (general_scalar_chain::n_sse_to_integer): New.
5960 (general_scalar_chain::n_integer_to_sse): Likewise.
5961 (general_scalar_chain::make_vector_copies): Adjust signature.
5962 * config/i386/i386-features.c
5963 (general_scalar_chain::general_scalar_chain): Outline,
5964 initialize new members.
5965 (general_scalar_chain::~general_scalar_chain): New.
5966 (general_scalar_chain::mark_dual_mode_def): Record insns
5967 we need to insert conversions at and count them.
5968 (general_scalar_chain::compute_convert_gain): Account
5969 for conversion instructions at chain boundary.
5970 (general_scalar_chain::make_vector_copies): Generate a single
5971 copy for a def by a specific insn.
5972 (general_scalar_chain::convert_registers): First populate
5973 defs_map, then make copies at out-of chain insns.
5975 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5977 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5979 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5981 2019-08-27 Martin Liska <mliska@suse.cz>
5983 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5985 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5986 Enclose in anonymous namespace.
5987 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5988 hard_register initialization in braces.
5989 * tree-vrp.h (value_range_base::supports_type_p): Return false
5990 for function with boolean return type.
5992 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5994 * config/i386/i386.c (emit_i387_cw_initialization)
5995 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5997 2019-08-26 Martin Sebor <msebor@redhat.com>
6000 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6001 (sprintf_dom_walker): Remove class.
6002 (get_int_range): Make argument const.
6003 (directive::fmtfunc, directive::set_precision): Same.
6004 (format_none): Same.
6005 (build_intmax_type_nodes): Same.
6006 (adjust_range_for_overflow): Same.
6007 (format_floating): Same.
6008 (format_character): Same.
6009 (format_string): Same.
6010 (format_plain): Same.
6011 (get_int_range): Cast away constness.
6012 (format_integer): Same.
6013 (get_string_length): Call get_range_strlen_dynamic. Handle
6014 null lendata.maxbound.
6015 (should_warn_p): Adjust argument scope qualifier.
6017 (format_directive): Same.
6018 (parse_directive): Same.
6019 (is_call_safe): Same.
6020 (try_substitute_return_value): Same.
6021 (sprintf_dom_walker::handle_printf_call): Rename...
6022 (handle_printf_call): ...to this. Initialize target to host charmap
6023 here instead of in pass_sprintf_length::execute.
6024 (struct call_info): Make global.
6025 (sprintf_dom_walker::compute_format_length): Make global.
6026 (sprintf_dom_walker::handle_gimple_call): Same.
6027 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6028 * print-rtl.c (print_pattern): Reduce the number of spaces to
6029 avoid -Wformat-truncation.
6030 * tree-pass.h (make_pass_warn_printf): New function.
6031 * tree-ssa-strlen.c (strlen_optimize): New variable.
6032 (get_string_length): Add comments.
6033 (get_range_strlen_dynamic): New function.
6034 (check_and_optimize_call): New function.
6035 (handle_integral_assign): New function.
6036 (strlen_check_and_optimize_stmt): Factor code out into
6037 strlen_check_and_optimize_call and handle_integral_assign.
6038 (strlen_dom_walker::evrp): New member.
6039 (strlen_dom_walker::before_dom_children): Use evrp member.
6040 (strlen_dom_walker::after_dom_children): Use evrp member.
6041 (printf_strlen_execute): New function.
6042 (pass_strlen::gate): Update to handle printf calls.
6043 (dump_strlen_info): New function.
6044 (pass_data_warn_printf): New variable.
6045 (pass_warn_printf): New class.
6046 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6047 (handle_printf_call): Same.
6048 * tree-vrp.c (value_range_base::type): Adjust assertion.
6049 * vr-values.c (vr_values::update_value_range): Use type of the first
6050 argument rather than the second.
6052 2019-08-26 Richard Biener <rguenther@suse.de>
6054 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6056 (convert_scalars_to_vector): Do not call it.
6058 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6059 Uros Bizjak <ubizjak@gmail.com>
6061 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6062 CASE_MATHFN_FLOATN for roundeven.
6063 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6065 (ix86_mode_needed): Likewise.
6066 (ix86_mode_after): Likewise.
6067 (ix86_mode_entry): Likewise.
6068 (ix86_mode_exit): Likewise.
6069 (ix86_emit_mode_set): Likewise.
6070 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6071 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6072 (ix86_entity): Add I387_ROUNDEVEN.
6073 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6074 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6075 (define_int_iterator): Likewise.
6076 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6077 (define_constant): Define ROUND_ROUNDEVEN mode.
6078 (define_attr): Add roundeven mode for i387_cw.
6079 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6080 * internal-fn.def (ROUNDEVEN): New builtin function.
6081 * optabs.def (roundeven_optab): New optab.
6083 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6085 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6087 * builtins.def: Added function definitions for roundeven function
6089 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6090 function call. Adjust condition for floor, ceil, trunc and round.
6091 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6092 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6093 (integer_valued_real_call_p): Added case for roundeven function.
6094 * real.c (is_even): New function. Returns true if real number is even,
6095 otherwise returns false.
6096 (is_halfway_below): New function. Returns true if real number is
6097 halfway between two integers, else return false.
6098 (real_roundeven): New function. Round real number to nearest integer,
6099 rounding halfway cases towards even.
6100 * real.h (real_value): Added descriptive comments. Added function
6101 declaration for roundeven function.
6102 * doc/extend.texi (Other Builtins): List roundeven variants among
6103 functions which can be handled as builtins.
6105 2019-08-26 Richard Biener <rguenther@suse.de>
6109 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6111 (general_scalar_chain::replace_with_subreg): Remove.
6112 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6113 (general_scalar_chain::convert_reg): Adjust signature.
6114 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6115 iterate over all defs of a reg.
6116 (general_scalar_chain::replace_with_subreg): Remove.
6117 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6118 (general_scalar_chain::make_vector_copies): Populate defs_map,
6119 place copy only after defs that are used as vectors in the chain.
6120 (general_scalar_chain::convert_reg): Emit a copy for a specific
6121 def in a specific instruction.
6122 (general_scalar_chain::convert_op): All reg uses are converted here.
6123 (general_scalar_chain::convert_insn): Emit copies for scalar
6124 uses of defs here. Replace uses with the copies we created.
6125 Replace and convert the def. Adjust REG_DEAD notes, remove
6126 REG_EQUIV/EQUAL notes.
6127 (general_scalar_chain::convert_registers): Only handle copies
6128 into the chain here.
6130 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6132 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6134 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6136 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6137 Add nop_convert case.
6138 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6139 Fold all statements if requested.
6140 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6141 Allow to fold all statements.
6142 * tree-vrp.c (class vrp_folder):
6143 Let substitute_and_fold_engine fold all statements.
6145 2019-08-26 Richard Biener <rguenther@suse.de>
6147 PR tree-optimization/91526
6148 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6149 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6150 TODO_update_address_taken.
6152 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6154 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6157 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6159 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6160 machine mode for unspec_volatile operand.
6162 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6164 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6165 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6166 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6167 (prefer_neon_for_64bits): Remove.
6168 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6169 (tune_params): Remove PREF_NEON_64_FALSE uses.
6170 (arm_option_override): Remove prefer_neon selection code.
6171 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6172 * gcc/config/arm/arm-protos.h (tune_params): Remove
6173 prefer_neon_for_64bits.
6174 (prefer_neon_for_64bits): Remove.
6176 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6179 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6180 and issue any diagnostics needed before collecting the pre-PCH
6183 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6186 * common.opt (fexcess-precision=): Add Optimization flag. Use
6187 flag_excess_precision variable instead of
6188 flag_excess_precision_cmdline.
6189 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6191 (flag_excess_precision): Don't define.
6192 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6193 flag_excess_precision_cmdline. Remove comment.
6194 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6195 and x_flag_excess_precision instead of
6196 frontend_set_flag_excess_precision_cmdline and
6197 x_flag_excess_precision_cmdline.
6198 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6199 x_flag_excess_precision_cmdline.
6200 * toplev.c (init_excess_precision): Remove.
6201 (lang_dependent_init_target): Don't call it.
6203 2019-08-23 Martin Liska <mliska@suse.cz>
6205 * lto-wrapper.c (run_gcc): When setting jobserver
6206 set also parallel to 1. This was done so before r273908.
6208 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6210 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6211 (cortex-a76ae): Likewise.
6212 (cortex-a77): Likewise
6213 * config/arm/arm-tables.opt: Regenerate.
6214 * config/arm/arm-tune.md: Likewise.
6215 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6216 cortex-a77 CPU options.
6218 2019-08-23 Martin Liska <mliska@suse.cz>
6220 * profile.c (instrument_values): Do not set
6222 * tree-profile.c (gimple_gen_interval_profiler): Remove
6224 (gimple_gen_pow2_profiler): Likewise.
6225 (gimple_gen_topn_values_profiler): Likewise.
6226 (gimple_gen_ic_profiler): Likewise.
6227 (gimple_gen_time_profiler): Likewise.
6228 (gimple_gen_average_profiler): Likewise.
6229 (gimple_gen_ior_profiler): Likewise.
6230 * value-prof.c (dump_histogram_value): Use default
6231 in switch statement instead of HIST_TYPE_MAX.
6232 (stream_in_histogram_value): Likewise.
6233 (gimple_duplicate_stmt_histograms): Do not
6234 use NULL for implicitly set arguments.
6235 (gimple_divmod_values_to_profile): Do not use
6237 (gimple_indirect_call_to_profile): Likewise.
6238 (gimple_find_values_to_profile): Use implicit
6239 function call arguments.
6240 * value-prof.h (gimple_alloc_histogram_value):
6242 (gimple_gen_interval_profiler): Remove last argument.
6243 (gimple_gen_pow2_profiler): Likewise.
6244 (gimple_gen_topn_values_profiler): Likewise.
6245 (gimple_gen_ic_profiler): Likewise.
6246 (gimple_gen_time_profiler): Likewise.
6247 (gimple_gen_average_profiler): Likewise.
6248 (gimple_gen_ior_profiler): Likewise.
6250 2019-08-22 Martin Sebor <msebor@redhat.com>
6253 * builtins.c (c_strlen): Rename argument and introduce new local.
6254 Set no-warning bit on original argument.
6255 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6256 Fold empty and zero constructors into empty strings.
6257 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6258 for missing initializers.
6259 * tree.c (build_string_literal): Handle optional argument.
6260 * tree.h (build_string_literal): Add defaulted argument.
6261 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6262 no-warning bit on original expression.
6264 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6267 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6268 and UNSPEC_DARN_RAW.
6269 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6271 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6272 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6273 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6275 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6277 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6278 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6279 * config/rs6000/rs6000.md (unspec): ... here.
6280 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6281 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6282 cmpeqb, *cmpeqb_internal): Delete, move to...
6283 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6284 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6285 cmpeqb, *cmpeqb_internal): ... here.
6287 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6289 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6290 intrinsics if __ARM_FP.
6291 Use __ARM_FEATURE_CRC32 ifdef guard.
6293 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6295 * config/arm/arm.md (neon_for_64bits): Remove.
6296 (avoid_neon_for_64bits): Remove.
6297 (arm_adddi3): Always split early.
6298 (arm_subdi3): Always split early.
6299 (negdi2): Remove Neon expansion.
6300 (split zero_extend): Split before reload.
6301 (split sign_extend): Split before reload.
6303 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6305 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6306 (qhs_extenddi_cstr): Likewise.
6307 * config/arm/arm.md (ashldi3): Always expand early.
6308 (ashlsi3): Likewise.
6309 (ashrsi3): Likewise.
6310 (zero_extend<mode>di2): Remove Neon variants.
6311 (extend<mode>di2): Likewise.
6312 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6313 (signed_shift_di3_neon): Likewise.
6314 (unsigned_shift_di3_neon): Likewise.
6315 (ashrdi3_neon_imm_noclobber): Likewise.
6316 (lshrdi3_neon_imm_noclobber): Likewise.
6317 (<shift>di3_neon): Likewise.
6318 (split extend): Remove DI extend split patterns.
6320 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6322 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6323 (split not): Add DImode not splitter.
6324 (anddi3): Remove pattern.
6325 (anddi3_insn): Likewise.
6326 (anddi_zesidi_di): Likewise.
6327 (anddi_sesdi_di): Likewise.
6328 (anddi_notdi_di): Likewise.
6329 (anddi_notzesidi_di): Likewise.
6330 (anddi_notsesidi_di): Likewise.
6332 (iordi3_insn): Likewise.
6333 (iordi_zesidi_di): Likewise.
6334 (iordi_sesidi_di): Likewise.
6336 (xordi3_insn): Likewise.
6337 (xordi_sesidi_di): Likewise.
6338 (xordi_zesidi_di): Likewise.
6339 (one_cmpldi2): Likewise.
6340 (one_cmpldi2_insn): Likewise.
6341 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6342 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6344 (iwmmxt_xordi3): Likewise.
6345 (iwmmxt_anddi3): Likewise.
6346 * config/arm/neon.md (orndi3_neon): Remove pattern.
6347 (anddi_notdi_di): Likewise.
6348 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6349 (arm_iordi_operand_neon): Likewise.
6350 (arm_xordi_operand_neon): Likewise.
6351 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6352 (iordi_notzesidi_di): Likewise.
6353 (iordi_notdi_zesidi): Likewise.
6354 (iordi_notsesidi_di): Likewise.
6356 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6358 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6360 (iorsi3_compare0_scratch): Likewise.
6362 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6364 * config/aarch64/aarch64-simd-builtins.def:
6367 * config/aarch64/aarch64-simd.md:
6368 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6369 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6370 (aarch64_ld1_x4_<mode>): Likewise.
6371 (aarch64_st1_x4_<mode>): Likewise.
6372 * config/aarch64/arm_neon.h:
6373 (vld1_s8_x4): New function.
6374 (vld1q_s8_x4): Likewise.
6375 (vld1_s16_x4): Likewise.
6376 (vld1q_s16_x4): Likewise.
6377 (vld1_s32_x4): Likewise.
6378 (vld1q_s32_x4): Likewise.
6379 (vld1_u8_x4): Likewise.
6380 (vld1q_u8_x4): Likewise.
6381 (vld1_u16_x4): Likewise.
6382 (vld1q_u16_x4): Likewise.
6383 (vld1_u32_x4): Likewise.
6384 (vld1q_u32_x4): Likewise.
6385 (vld1_f16_x4): Likewise.
6386 (vld1q_f16_x4): Likewise.
6387 (vld1_f32_x4): Likewise.
6388 (vld1q_f32_x4): Likewise.
6389 (vld1_p8_x4): Likewise.
6390 (vld1q_p8_x4): Likewise.
6391 (vld1_p16_x4): Likewise.
6392 (vld1q_p16_x4): Likewise.
6393 (vld1_s64_x4): Likewise.
6394 (vld1_u64_x4): Likewise.
6395 (vld1_p64_x4): Likewise.
6396 (vld1q_s64_x4): Likewise.
6397 (vld1q_u64_x4): Likewise.
6398 (vld1q_p64_x4): Likewise.
6399 (vld1_f64_x4): Likewise.
6400 (vld1q_f64_x4): Likewise.
6401 (vst1_s8_x4): Likewise.
6402 (vst1q_s8_x4): Likewise.
6403 (vst1_s16_x4): Likewise.
6404 (vst1q_s16_x4): Likewise.
6405 (vst1_s32_x4): Likewise.
6406 (vst1q_s32_x4): Likewise.
6407 (vst1_u8_x4): Likewise.
6408 (vst1q_u8_x4): Likewise.
6409 (vst1_u16_x4): Likewise.
6410 (vst1q_u16_x4): Likewise.
6411 (vst1_u32_x4): Likewise.
6412 (vst1q_u32_x4): Likewise.
6413 (vst1_f16_x4): Likewise.
6414 (vst1q_f16_x4): Likewise.
6415 (vst1_f32_x4): Likewise.
6416 (vst1q_f32_x4): Likewise.
6417 (vst1_p8_x4): Likewise.
6418 (vst1q_p8_x4): Likewise.
6419 (vst1_p16_x4): Likewise.
6420 (vst1q_p16_x4): Likewise.
6421 (vst1_s64_x4): Likewise.
6422 (vst1_u64_x4): Likewise.
6423 (vst1_p64_x4): Likewise.
6424 (vst1q_s64_x4): Likewise.
6425 (vst1q_u64_x4): Likewise.
6426 (vst1q_p64_x4): Likewise.
6427 (vst1_f64_x4): Likewise.
6428 (vst1q_f64_x4): Likewise.
6430 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6432 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6434 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6435 Richard Sandiford <richard.sandiford@arm.com>
6438 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6439 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6441 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6444 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6445 in reg if it fails aarch64_plus_operand predicate.
6447 2019-08-21 Richard Biener <rguenther@suse.de>
6449 PR tree-optimization/91482
6450 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6451 BUILT_IN_ASSUME_ALIGNED calls.
6453 2019-08-21 Richard Biener <rguenther@suse.de>
6457 * config/i386/i386-features.c
6458 (general_scalar_chain::make_vector_copies): Copy stack temporary
6459 rtx when using it multiple times.
6460 (general_scalar_chain::convert_reg): Likewise.
6462 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6464 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6466 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6468 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6469 catch more redundant zero initialization cases.
6470 (dse_dom_walker::dse_optimize_stmt): Likewise.
6472 2019-08-20 Richard Biener <rguenther@suse.de>
6475 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6476 by collect2 when targetm.have_ctors_dtors which avoids dragging
6477 in temporary filenames from LTO input objects.
6479 2019-08-20 Richard Biener <rguenther@suse.de>
6481 PR tree-optimization/37242
6482 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6483 to (T)a + (T)b if we know that a + b does not overflow.
6485 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6487 PR rtl-optimization/91347
6488 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6489 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6491 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6493 * calls.h (function_arg_info): Add a pass_by_reference field,
6494 defaulting to false.
6495 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6496 when applying pass-by-reference semantics.
6497 (initialize_argument_information): Likewise.
6498 (emit_library_call_value_1): Likewise.
6499 * function.c (assign_parm_data_one): Remove passed_pointer field.
6500 (assign_parm_find_data_types): Don't set it.
6501 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6502 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6503 arg.pass_by_reference instead of passed_pointer.
6505 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6507 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6508 into a single function_arg_info, updating its fields when we
6509 apply pass-by-reference and promotion semantics. Use the
6510 function_arg_info to track the mode rather than keeping it in
6511 a separate local variable.
6512 (initialize_argument_information): Likewise. Base the final
6513 arg_to_skip on this new function_arg_info rather than creating
6514 a new one from scratch.
6516 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6518 * function.c (assign_parm_data_one): Replace passed_type,
6519 promoted_mode and named_arg with a function_arg_info field.
6520 (assign_parm_find_data_types): Remove local variables and
6521 assign directly to "data". Make data->passed_mode shadow
6522 data->arg.mode until promotion, then assign the promoted
6523 mode to data->arg.mode.
6524 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6525 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6526 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6527 (assign_parm_setup_block, assign_parm_setup_reg)
6528 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6529 arg.mode instead of promoted_mode, arg.type instead of passed_type
6530 and arg.named instead of named_arg. Use data->arg for
6531 function_arg_info structures that had the field values passed_type,
6532 promoted_mode and named_arg. Base other function_arg_infos on
6533 data->arg, changing the necessary properties.
6535 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6537 * calls.h (apply_pass_by_reference_rules): Declare.
6538 * calls.c (apply_pass_by_reference_rules): New function.
6539 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6540 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6541 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6542 * function.c (assign_parm_find_data_types): Likewise.
6543 * var-tracking.c (prepare_call_arguments): Likewise.
6545 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6547 * target.def (must_pass_in_stack): Take a function_arg_info instead
6548 of a mode and a type.
6549 * doc/tm.texi: Regenerate.
6550 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6551 instead of a mode and a type.
6552 (must_pass_in_stack_var_size_or_pad): Likewise.
6553 * calls.c (must_pass_in_stack_var_size): Likewise.
6554 (must_pass_in_stack_var_size_or_pad): Likewise.
6555 (initialize_argument_information): Update call to
6556 targetm.calls.must_pass_in_stack.
6557 (must_pass_va_arg_on_stack): Likewise.
6558 * function.c (assign_parm_find_entry_rtl): Likewise.
6559 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6560 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6561 (alpha_function_arg_advance): Likewise.
6562 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6563 (cr16_function_arg_advance): Likewise.
6564 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6565 (cris_arg_partial_bytes): Likewise.
6566 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6567 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6568 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6569 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6570 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6571 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6572 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6573 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6574 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6575 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6576 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6577 instead of a mode and a type.
6578 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6579 (fr30_num_arg_regs): Likewise.
6580 (fr30_setup_incoming_varargs): Update calls accordingly.
6581 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6582 (fr30_function_arg_advance): Likewise.
6583 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6584 instead of a mode and a type.
6585 * config/gcn/gcn.c (num_arg_regs): Likewise.
6586 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6587 num_arg_regs and targetm.calls.must_pass_in_stack.
6588 (gcn_arg_partial_bytes): Likewise.
6589 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6590 function_arg_info instead of a mode and a type.
6591 (classify_argument): Update call accordingly.
6592 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6593 function_arg_info instead of a mode and a type.
6594 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6596 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6597 (rs6000_parm_needs_stack): Update call accordingly.
6598 (setup_incoming_varargs): Likewise.
6600 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6602 * target.def (callee_copies): Take a function_arg_info instead
6603 of a mode, type and named flag.
6604 * doc/tm.texi: Regenerate.
6605 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6606 instead of a mode, type and named flag.
6607 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6608 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6609 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6610 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6611 instead of a mode, type and named flag.
6612 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6613 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6614 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6615 * calls.h (reference_callee_copied): Take a function_arg_info
6616 instead of a mode, type and named flag.
6617 * calls.c (reference_callee_copied): Likewise.
6618 (initialize_argument_information): Update call accordingly.
6619 (emit_library_call_value_1): Likewise.
6620 * function.c (gimplify_parameters): Likewise.
6621 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6622 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6623 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6624 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6625 (TARGET_CALLEE_COPIES): Define to
6626 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6627 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6628 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6629 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6630 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6631 instead of a mode, type and named flag.
6632 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6633 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6634 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6635 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6636 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6637 (TARGET_CALLEE_COPIES): Define to
6638 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6639 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6640 instead of a mode, type and named flag.
6641 * config/sh/sh.c (sh_callee_copies): Likewise.
6642 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6643 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6644 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6646 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6648 * target.def (function_arg_advance): Take a function_arg_info instead
6649 of a mode, type and named flag.
6650 * doc/tm.texi: Regenerate.
6651 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6652 instead of a mode, type and named flag.
6653 * targhooks.c (default_function_arg_advance): Likewise.
6654 * calls.c (initialize_argument_information): Update call to
6655 targetm.calls.function_arg_advance.
6656 (emit_library_call_value_1): Likewise.
6657 * dse.c (get_call_args): Likewise.
6658 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6659 * function.c (assign_parms, gimplify_parameters): Likewise.
6660 * var-tracking.c (prepare_call_arguments): Likewise.
6661 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6662 function_arg_info instead of a mode, type and named flag.
6663 (aarch64_setup_incoming_varargs): Update call accordingly.
6664 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6665 function_arg_info instead of a mode, type and named flag.
6666 (alpha_setup_incoming_varargs): Update call accordingly.
6667 * config/arc/arc.c (arc_function_arg_advance): Take a
6668 function_arg_info instead of a mode, type and named flag.
6669 (arc_setup_incoming_varargs): Update call accordingly.
6670 * config/arm/arm.c (arm_function_arg_advance): Take a
6671 function_arg_info instead of a mode, type and named flag.
6672 (cmse_func_args_or_return_in_stack): Update call accordingly.
6673 (arm_function_ok_for_sibcall): Likewise.
6674 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6675 * config/avr/avr.c (avr_function_arg_advance): Take a
6676 function_arg_info instead of a mode, type and named flag.
6677 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6678 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6679 (c6x_call_saved_register_used): Update call accordingly.
6680 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6681 function_arg_info instead of a mode, type and named flag.
6682 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6683 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6684 (csky_setup_incoming_varargs): Update call accordingly.
6685 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6686 function_arg_info instead of a mode, type and named flag.
6687 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6688 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6689 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6690 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6691 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6692 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6693 (ix86_setup_incoming_varargs): Update call accordingly.
6694 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6695 function_arg_info instead of a mode, type and named flag.
6696 (ia64_setup_incoming_varargs): Update call accordingly.
6697 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6698 function_arg_info instead of a mode, type and named flag.
6699 (iq2000_expand_prologue): Update call accordingly.
6700 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6701 function_arg_info instead of a mode, type and named flag.
6702 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6703 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6704 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6705 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6706 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6708 (microblaze_expand_prologue): Update call accordingly.
6709 * config/mips/mips.c (mips_function_arg_advance): Take a
6710 function_arg_info instead of a mode, type and named flag.
6711 (mips_setup_incoming_varargs): Update call accordingly.
6712 (mips_output_args_xfer): Likewise.
6713 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6714 function_arg_info instead of a mode, type and named flag.
6715 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6716 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6717 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6718 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6719 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6720 (nios2_setup_incoming_varargs): Update call accordingly.
6721 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6722 function_arg_info instead of a mode, type and named flag.
6723 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6724 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6725 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6726 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6727 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6728 (riscv_setup_incoming_varargs): Update call accordingly.
6729 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6730 function_arg_info instead of a mode, type and named flag.
6731 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6733 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6734 (rs6000_parm_needs_stack): Update call accordingly.
6735 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6736 instead of a mode, type and named flag.
6737 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6738 (s390_call_saved_register_used): Update call accordingly.
6739 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6740 instead of a mode, type and named flag.
6741 (sh_output_mi_thunk): Update call accordingly.
6742 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6743 function_arg_info instead of a mode, type and named flag.
6744 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6745 (spu_setup_incoming_varargs): Update call accordingly.
6746 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6747 function_arg_info instead of a mode, type and named flag.
6748 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6749 (tilegx_setup_incoming_varargs): Update call accordingly.
6750 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6751 function_arg_info instead of a mode, type and named flag.
6752 (tilegx_setup_incoming_varargs): Update call accordingly.
6753 * config/v850/v850.c (v850_function_arg_advance): Take a
6754 function_arg_info instead of a mode, type and named flag.
6755 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6756 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6757 (visium_setup_incoming_varargs): Update call accordingly.
6758 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6759 function_arg_info instead of a mode, type and named flag.
6761 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6763 * target.def (function_arg, function_incoming_arg): Take a
6764 function_arg_info instead of a mode, tree and named flag.
6765 * doc/tm.texi: Regenerate.
6766 * targhooks.h (default_function_arg): Take a function_arg_info
6767 instead of a mode, tree and named flag.
6768 (default_function_incoming_arg): Likewise.
6769 * targhooks.c (default_function_arg): Likewise.
6770 (default_function_incoming_arg): Likewise.
6771 * calls.h (function_arg_info::end_marker_p): New function.
6772 (function_arg_info::end_marker): Likewise.
6773 * calls.c (prepare_call_address, initialize_argument_information)
6774 (expand_call, emit_library_call_value_1): Update calls to
6775 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6776 * dse.c: Include calls.h.
6777 (get_call_args): Update call to targetm.calls.function_arg.
6778 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6779 * var-tracking.c (prepare_call_arguments): Likewise.
6780 * function.c (assign_parm_find_entry_rtl): Update call to
6781 targetm.calls.function_incoming_arg.
6782 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6783 function_arg_info instead of a mode, tree and named flag.
6784 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6785 * config/arc/arc.c (arc_function_arg): Likewise.
6786 * config/arm/arm.c (arm_function_arg): Likewise.
6787 (cmse_func_args_or_return_in_stack): Update call accordingly.
6788 (arm_function_ok_for_sibcall): Likewise.
6789 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6790 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6791 instead of a mode, tree and named flag.
6792 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6793 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6794 (c6x_call_saved_register_used): Update call accordingly.
6795 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6796 instead of a mode, tree and named flag.
6797 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6798 (cris_function_arg_1): Likewise.
6799 * config/csky/csky.c (csky_function_arg): Likewise.
6800 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6801 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6802 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6803 (frv_function_arg_1): Likewise.
6804 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6805 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6806 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6807 * config/i386/i386.c (ix86_function_arg): Likewise.
6808 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6809 (ia64_function_arg_1): Likewise.
6810 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6811 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6813 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6814 instead of a mode, tree and named flag.
6815 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6816 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6817 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6818 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6819 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6820 (microblaze_expand_prologue): Update call accordingly.
6821 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6822 instead of a mode, tree and named flag.
6823 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6824 (mmix_function_arg_1): Likewise.
6825 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6826 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6827 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6828 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6829 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6830 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6831 (nvptx_function_incoming_arg): Likewise.
6832 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6833 * config/pa/pa.c (pa_function_arg): Likewise.
6834 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6835 * config/pru/pru.c (pru_function_arg): Likewise.
6836 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6837 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6838 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6839 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6840 (rs6000_parm_needs_stack): Update call accordingly.
6841 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6842 instead of a mode, tree and named flag.
6843 * config/s390/s390.c (s390_function_arg): Likewise.
6844 (s390_call_saved_register_used): Update call accordingly.
6845 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6846 instead of a mode, tree and named flag.
6847 (sh_output_mi_thunk): Update call accordingly.
6848 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6849 (sparc_function_incoming_arg): Take a function_arg_info instead of
6850 a mode, tree and named flag.
6851 * config/spu/spu.c (spu_function_arg): Likewise.
6852 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6853 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6854 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6855 * config/v850/v850.c (v850_function_arg): Likewise.
6856 * config/vax/vax.c (vax_function_arg): Likewise.
6857 * config/visium/visium.c (visium_function_arg): Likewise.
6858 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6859 (xtensa_function_incoming_arg): Likewise.
6861 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6863 * target.def (setup_incoming_varargs): Take a function_arg_info
6864 instead of a mode and tree.
6865 * doc/tm.texi: Regenerate.
6866 * targhooks.h (default_setup_incoming_varargs): Take a
6867 function_arg_info instead of a mode and tree.
6868 * targhooks.c (default_setup_incoming_varargs): Likewise.
6869 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6870 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6871 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6872 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6873 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6874 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6875 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6876 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6878 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6879 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6880 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6881 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6882 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6883 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6884 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6885 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6886 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6887 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6888 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6889 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6890 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6891 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6892 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6893 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6894 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6895 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6896 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6897 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6898 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6899 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6900 * function.c (assign_parms_setup_varargs): Update call to
6901 targetm.calls.setup_incoming_varargs.
6903 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6905 * target.def (pass_by_reference): Take a function_arg_info instead
6906 of a mode, type and named flag.
6907 * doc/tm.texi: Regenerate.
6908 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6910 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6911 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6912 function_arg_info instead of a mode, type and named flag.
6913 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6914 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6915 mode, type and named flag.
6916 * calls.c (pass_by_reference): Likewise.
6917 (pass_va_arg_by_reference): Update call accordingly.
6918 (initialize_argument_information): Likewise.
6919 (emit_library_call_value_1): Likewise.
6920 * function.c (assign_parm_find_data_types): Likewise.
6921 * var-tracking.c (prepare_call_arguments): Likewise.
6922 * stor-layout.c: Include calls.h.
6923 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6924 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6925 function_arg_info instead of a mode, type and named flag.
6926 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6927 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6928 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6929 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6930 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6931 (c6x_call_saved_register_used): Update call to pass_by_reference.
6932 * config/cris/cris.c (cris_pass_by_reference): Take a
6933 function_arg_info instead of a mode, type and named flag.
6934 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6935 function_arg_info instead of a mode, type and named flag.
6936 (epiphany_arg_partial_bytes): Update call accordingly.
6937 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6938 function_arg_info instead of a mode, type and named flag.
6939 (ft32_arg_partial_bytes): Update call accordingly.
6940 * config/i386/i386.c (ix86_pass_by_reference): Take a
6941 function_arg_info instead of a mode, type and named flag.
6942 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6943 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6944 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6945 (m32r_return_in_memory): Update call accordingly.
6946 * config/mips/mips.c (mips_pass_by_reference): Take a
6947 function_arg_info instead of a mode, type and named flag.
6948 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6949 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6950 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6951 (moxie_arg_partial_bytes): Update call accordingly.
6952 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6953 function_arg_info instead of a mode, type and named flag.
6954 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6955 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6956 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6957 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6958 (riscv_return_in_memory): Update call accordingly.
6959 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6960 function_arg_info instead of a mode, type and named flag.
6961 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6962 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6963 * config/s390/s390.c (s390_pass_by_reference): Take a
6964 function_arg_info instead of a mode, type and named flag.
6965 (s390_call_saved_register_used): Update call accordingly.
6966 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6967 instead of a mode, type and named flag.
6968 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6969 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6970 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6971 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6972 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6973 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6975 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6977 * target.def (arg_partial_bytes): Take a function_arg_info instead
6978 of a mode, type and named flag.
6979 * doc/tm.texi: Regenerate.
6980 * target.h (function_arg_info): Declare.
6981 * calls.h (function_arg_info): New class.
6982 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6983 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6984 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6985 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6986 * calls.c (initialize_argument_information): Update call to
6987 targetm.calls.partial_bytes.
6988 (emit_library_call_value_1): Likewise.
6989 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6990 * function.c (assign_parm_find_entry_rtl): Likewise.
6991 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6992 function_arg_info instead of a mode, type and named flag.
6993 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6994 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6995 (cmse_func_args_or_return_in_stack): Update accordingly.
6996 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6997 function_arg_info instead of a mode, type and named flag.
6998 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6999 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7000 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7001 * config/fr30/fr30.c: Include calls.h.
7002 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7003 type and named flag.
7004 * config/frv/frv.c: Include calls.h.
7005 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7006 type and named flag.
7007 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7008 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7009 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7010 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7011 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7012 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7013 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7015 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7016 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7017 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7018 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7019 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7020 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7021 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7022 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7023 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7024 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7025 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7026 (rs6000_parm_needs_stack): Update call accordingly.
7027 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7028 function_arg_info instead of a mode, type and named flag.
7029 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7030 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7032 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7034 * calls.h (must_pass_va_arg_in_stack): Declare.
7035 * calls.c (must_pass_va_arg_in_stack): New function.
7036 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7037 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7038 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7040 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7042 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7044 * calls.h (pass_va_arg_by_reference): Declare.
7045 * calls.c (pass_va_arg_by_reference): New function.
7046 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7047 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7048 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7049 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7050 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7051 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7052 (mips_gimplify_va_arg_expr): Likewise.
7053 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7054 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7055 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7056 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7057 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7058 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7059 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7060 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7061 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7062 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7063 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7065 2019-08-20 Richard Biener <rguenther@suse.de>
7068 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7069 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7070 (convert_scalars_to_vector): Add timode_p parameter and use it
7071 to guard TImode-only operation.
7072 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7073 (pass_stv::execute): Pass down timode_p.
7075 2019-08-20 Lili Cui <lili.cui@intel.com>
7077 * common/config/i386/i386-common.c
7078 (processor_names): Add tigerlake and cooperlake.
7079 (processor_alias_table): Add tigerlake and cooperlake.
7080 * config.gcc: Add -march=tigerlake and cooperlake.
7081 * config/i386/driver-i386.c
7082 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7083 Add "has_avx" to classify processor.
7084 * config/i386/i386-builtins.c (processor_model) :
7085 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7086 (arch_names_table): Add tigerlake and cooperlake.
7087 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7088 and PROCESSOR_COOPERLAKE.
7089 * config/i386/i386-c.c
7090 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7091 * config/i386/i386-options.c
7092 (m_TIGERLAKE) : Define.
7093 (m_COOPERLAKE) : Ditto.
7094 (m_CORE_AVX512): Ditto.
7095 (processor_cost_table): Add cascadelake.
7096 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7097 * config/i386/i386.h
7098 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7099 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7100 (PTA_MOVDIRI): Ditto.
7101 (PTA_MOVDIR64B): Ditto.
7102 (PTA_COOPERLAKE) : Ditto.
7103 (PTA_TIGERLAKE) : Ditto.
7104 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7105 * doc/extend.texi: Add tigerlake and cooperlake.
7106 * doc/invoke.texi: Add tigerlake and cooperlake.
7108 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7110 * doc/install.texi (Specific, alpha): Remove note to use
7111 binutils 2.11.2 or later.
7113 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7116 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7119 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7121 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7122 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7123 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7124 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7125 * config/aarch64/constraints.md (Dt): New constraint
7126 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7128 2019-08-19 Richard Biener <rguenther@suse.de>
7130 PR tree-optimization/91403
7131 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7132 cases we can handle with tail-recursion...
7133 (follow_ssa_edge_expr): ... here. Do so.
7135 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7138 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7139 implemented for -fsanitize=kernel-address, and merge check logic
7140 with -fsanitize=address.
7142 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7144 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7145 for cpu and machine. Factor 64/32b builtins.
7147 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7149 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7150 gone, point to sourceforge.net.
7152 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7154 * doc/ux.texi (User Experience Guidelines): Update reference.
7156 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7158 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7161 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7163 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7164 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7166 2019-08-16 Martin Sebor <msebor@redhat.com>
7168 * tree.def (TYPE_SIZE): Clarify.
7169 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7171 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7173 PR tree-optimization/91109
7174 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7175 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7176 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7178 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7180 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7181 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7182 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7183 (uavg<mode>3_ceil): New expander.
7184 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7185 mode iterator when creating CONST1_RTX.
7186 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7187 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7188 mode iterator for const1_operand predicate.
7190 2019-08-16 Richard Biener <rguenther@suse.de>
7192 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7193 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7195 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7196 (analyze_evolution_in_loop): Likewise.
7197 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7198 (follow_ssa_edge_expr): ... here. Refactor code.
7200 2019-08-16 Richard Biener <rguenther@suse.de>
7203 * config/i386/i386-features.c
7204 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7206 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7209 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7210 only if subst_name matches curr_attr string.
7212 2019-08-16 Richard Biener <rguenther@suse.de>
7214 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7215 stmt at gsi_p, instead replace it with a NOP removed later.
7216 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7217 that became dead because of that.
7219 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7221 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7222 for which we can't represent a range.
7223 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7225 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7226 Set VR_UNDEFINED if type is not supported.
7227 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7228 * tree-vrp.c (value_range_base::check): Assert that a varying has
7230 (value_range_base::equal_p): Early bail for undefines.
7231 (value_range_base::set_varying): Accept a type.
7232 (value_range::set_varying): Same.
7233 (value_range_base::type): VARYING can have a type, while UNDEFINE
7235 (value_range_base::dump): Print type for VARYING nodes.
7236 (value_range_base::set): Add type to VARYING.
7237 (extract_range_from_multiplicative_op): Pass type to set_varying.
7238 (extract_range_from_binary_expr): Same.
7239 (value_range_base::intersect_helper): Same.
7240 (value_range_base::union_helper): Same.
7241 (value_range_base::normalize_symbolics): Same.
7242 (determine_value_range_1): Same.
7243 * tree-vrp.h (class value_range_base): Add type to set_varying.
7244 Add prototype for dump(void).
7245 Add prototype for supports_type_p.
7246 (class value_range): Add type to set_varying.
7247 Add prototype for dump(void).
7248 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7250 (vr_values::get_lattice_entry): Set varying even if propagation
7252 Pass type to set_varying.
7253 (vr_values::get_value_range): Remove vr_const_varying.
7254 Reallocate the lattice if needed.
7255 (vr_values::update_value_range): Pass type to set_varying.
7256 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7257 (vr_values::extract_range_from_binary_expr): Same.
7258 (vr_values::extract_range_from_unary_expr): Same.
7259 (vr_values::extract_range_from_cond_expr): Same.
7260 (vr_values::check_for_binary_op_overflow): Same.
7261 (vr_values::extract_range_basic): Same.
7262 (vr_values::extract_range_from_assignment): Same.
7263 (vr_values::vr_values): Increase size of num_vr_values.
7264 (vr_values::extract_range_from_phi_node): Pass type to
7267 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7270 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7271 for costs of hard register moves.
7272 (ix86_register_move_cost): Likewise.
7273 * config/i386/i386.h (processor_costs): Move costs of hard
7274 register moves to hard_register. Add int_load, int_store,
7275 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7276 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7277 for costs of RTL expressions.
7278 * config/i386/x86-tune-costs.h: Move costs of hard register
7279 moves to hard_register. Duplicate int_load, int_store,
7280 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7281 sse_load, sse_store for costs of RTL expressions.
7283 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7285 * target.def (setup_incoming_vararg_bounds): Remove.
7286 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7287 * doc/tm.texi: Regenerate.
7288 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7289 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7290 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7291 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7293 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7295 MSP430: Fix lines over 80 characters long in
7296 config/msp430/*.{c,h} files
7298 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7299 specifier in string.
7300 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7301 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7302 redundant old comment.
7303 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7304 Split line more than 80 characters long.
7305 * config/msp430/msp430.c (msp430_option_override): Likewise.
7306 (msp430_return_in_memory): Likewise.
7307 (msp430_gimplify_va_arg_expr): Likewise.
7308 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7309 (msp430_legitimate_constant): Likewise.
7310 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7311 (msp430_attr): Likewise.
7312 (msp430_data_attr): Likewise.
7313 (msp430_start_function): Likewise.
7314 (gen_prefix): Likewise.
7315 (msp430_init_sections): Likewise.
7316 (msp430_select_section): Likewise.
7317 (msp430_function_section): Likewise.
7318 (msp430_unique_section): Likewise.
7319 (msp430_output_aligned_decl_common): Likewise.
7320 (msp430_do_not_relax_short_jumps): Likewise.
7321 (msp430_init_builtins): Likewise.
7322 (msp430_expand_delay_cycles): Likewise.
7323 (msp430_expand_prologue): Likewise.
7324 (msp430_expand_epilogue): Likewise.
7325 (msp430_expand_helper): Likewise.
7326 (msp430_split_movsi): Likewise.
7327 (msp430_print_operand): Likewise.
7328 (msp430_return_addr_rtx): Likewise.
7329 (msp430x_extendhisi): Likewise.
7330 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7331 (ASM_SPEC): Likewise.
7332 Remove very obvious comments.
7333 (LIB_SPEC): Split line more than 80 characters long.
7334 (EH_RETURN_HANDLER_RTX): Likewise.
7335 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7337 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7339 MSP430: Fix whitespace errors and incorrect indentation in
7340 config/msp430/*.{c,h} files
7342 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7343 (msp430_select_hwmult_lib): Likewise.
7344 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7345 (msp430_extract_mcu_data): Likewise.
7346 (struct t_msp430_mcu_data): Likewise.
7347 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7348 before left square bracket.
7349 (msp430_option_override): Fix indentation.
7350 (msp430_hard_regno_nregs_with_padding): Likewise.
7351 (msp430_initial_elimination_offset): Likewise.
7352 (msp430_special_register_convention_p): Remove whitespace before left
7353 square bracket and after exclamation mark.
7354 (msp430_evaluate_arg): Likewise.
7355 (msp430_callee_copies): Fix indentation.
7356 (msp430_gimplify_va_arg_expr): Likewise.
7357 (msp430_function_arg_advance): Remove whitespace before left square
7359 (reg_ok_for_addr): Likewise.
7360 (msp430_preserve_reg_p): Likewise.
7361 (msp430_compute_frame_info): Likewise.
7362 (msp430_asm_output_addr_const_extra): Add space between function name
7363 and open parenthesis.
7364 (has_section_name): Fix indentation.
7365 (msp430_attr): Remove trailing whitespace.
7366 (msp430_section_attr): Likewise.
7367 (msp430_data_attr): Likewise.
7368 (struct msp430_attribute_table): Fix comment and whitespace.
7369 (msp430_start_function): Remove whitespace before left square bracket.
7370 Add space between function name and open parenthesis.
7371 (msp430_select_section): Remove trailing whitespace.
7372 (msp430_section_type_flags): Remove trailing whitespace.
7373 (msp430_unique_section): Remove space before closing parenthesis.
7374 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7375 (msp430_builtins): Remove whitespace before left square bracket.
7376 (msp430_init_builtins): Fix indentation.
7377 (msp430_expand_prologue): Remove whitespace before left square bracket.
7378 Remove space before closing parenthesis.
7379 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7380 (msp430_split_movsi): Remove space before closing parenthesis.
7381 (helper_function_name_mappings): Fix indentation.
7382 (msp430_use_f5_series_hwmult): Fix whitespace.
7383 (use_32bit_hwmult): Likewise.
7384 (msp430_no_hwmult): Likewise.
7385 (msp430_output_labelref): Remove whitespace before left square bracket.
7386 (msp430_print_operand_raw): Likewise.
7387 (msp430_print_operand_addr): Likewise.
7388 (msp430_print_operand): Add two spaces after '.' in comment.
7389 Fix trailing whitespace.
7390 (msp430x_extendhisi): Fix indentation.
7391 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7393 (PC_REGNUM): Likewise.
7394 (STACK_POINTER_REGNUM): Likewise.
7395 (CC_REGNUM): Likewise.
7397 2019-08-15 Richard Biener <rguenther@suse.de>
7400 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7402 (general_scalar_chain::make_vector_copies): Use it.
7404 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7406 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7408 2019-08-15 Martin Liska <mliska@suse.cz>
7410 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7411 operators with no arguments.
7412 (eliminate_unnecessary_stmts): Likewise here.
7414 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7416 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7417 <case COMPARE>: Revert 2019-08-14 change.
7418 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7419 for (TARGET_64BIT || mode != DImode).
7421 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7423 * tree-vrp.c (value_range_base::set): Merge in code from
7424 value_range_base::set_and_canonicalize.
7425 Enforce canonicalization at set time.
7426 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7427 (value_range_base::set_undefined): Inline call to set().
7428 (value_range_base::set_varying): Same.
7429 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7430 (vrp_val_max): New argument handle_pointers.
7431 (vrp_val_min): Same.
7432 (ranges_from_anti_range): Same.
7433 (extract_range_into_wide_ints): Use tree argument instead of sign
7435 (extract_range_from_multiplicative_op): Take in tree type instead
7436 of precision and sign. Adapt function for canonicalized ranges.
7437 (extract_range_from_binary_expr): Pass type to
7438 extract_range_from_multiplicative_op.
7439 Adapt for canonicalized ranges.
7440 (extract_range_from_unary_expr): Same.
7441 (value_range_base::intersect_helper): Adjust for canonicalized
7443 (value_range_base::union_helper): Same.
7444 (value_range_base::normalize_symbolics): New.
7445 * tree-vrp.h (class value_range_base): Remove
7446 set_and_canonicalize.
7447 New prototype for normalize_symbolics.
7448 (class value_range): Remove set_and_canonicalize.
7449 (vrp_val_min): Adjust prototype.
7450 (vrp_val_max): Same.
7452 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7453 instead of set_and_canonicalize.
7455 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7458 * tree-vect-stmts.c (vectorizable_call): Check that the function
7459 is a BUILT_IN_MD function before passing it to
7460 targetm.vectorize.builtin_md_vectorized_function.
7462 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7464 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7465 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7466 (aarch64_select_early_remat_modes): Use it.
7468 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7470 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7471 16 for SVE predicates even if they are fixed-length.
7473 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7475 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7476 operand order match the MOV /Z alias.
7478 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7480 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7481 the vector pattern as an aarch64_svpattern argument. Update the
7482 overloaded caller accordingly.
7483 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7484 (aarch64_output_sve_vector_inc_dec): Likewise.
7486 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7488 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7489 multiplication case, try to compute VG * (lowest set bit) directly
7490 rather than always basing the multiplication on VG. Use
7491 expand_mult for the multiplication if we can.
7493 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7495 * config/aarch64/aarch64-protos.h
7496 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7497 (aarch64_sve_inc_dec_immediate_p): Rename to...
7498 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7499 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7500 (aarch64_output_sve_scalar_inc_dec): Declare.
7501 (aarch64_output_sve_inc_dec_immediate): Rename to...
7502 (aarch64_output_sve_vector_inc_dec): ...this.
7503 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7504 (aarch64_output_sve_scalar_inc_dec): New functions.
7505 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7506 arguments. Only handle true ADDVL and ADDPL instructions;
7507 don't emit an INC or DEC.
7508 (aarch64_sve_inc_dec_immediate_p): Rename to...
7509 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7510 (aarch64_output_sve_inc_dec_immediate): Rename to...
7511 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7512 aarch64_sve_vector_inc_dec_immediate_p.
7513 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7514 (aarch64_sve_plus_immediate): New predicates.
7515 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7516 rather than aarch64_sve_addvl_addpl_immediate.
7517 (aarch64_sve_inc_dec_immediate): Rename to...
7518 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7519 aarch64_sve_vector_inc_dec_immediate_p.
7520 (aarch64_sve_add_operand): Update accordingly.
7521 * config/aarch64/constraints.md (Uai): New constraint.
7522 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7523 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7524 operand into a register if it satisfies aarch64_sve_plus_immediate.
7525 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7526 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7527 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7528 aarch64_output_sve_vector_inc_dec instead of
7529 aarch64_output_sve_inc_dec_immediate.
7531 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7533 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7534 (UNSPEC_REVW): New constants.
7535 (elem_bits): New mode attribute.
7536 (SVE_INT_UNARY): New int iterator.
7537 (optab): Handle UNSPEC_REV[BHW].
7538 (sve_int_op): New int attribute.
7539 (min_elem_bits): Handle VNx16QI and the predicate modes.
7540 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7541 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7542 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7543 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7544 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7545 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7546 unspecs based on the total width of the reversed data.
7547 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7548 reinterpret followed by a subreg on big-endian targets.
7550 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7551 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7553 * config/aarch64/aarch64-sve.md
7554 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7555 alternatives in which one of the inputs is in the same register
7558 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7560 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7561 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7563 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7565 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7566 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7568 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7569 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7571 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7572 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7573 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7575 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7576 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7578 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7579 Add an alternative that uses reversed shifts.
7581 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7583 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7586 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7588 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7589 a commutativity marker.
7591 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7592 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7594 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7595 (aarch64_prepare_sve_cond_int_fma): Declare.
7596 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7597 (aarch64_prepare_sve_int_fma): New functions.
7598 (aarch64_prepare_sve_cond_int_fma): Likewise.
7599 * config/aarch64/aarch64-sve.md
7600 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7601 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7602 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7603 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7604 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7605 (*madd<mode>): Rename to...
7606 (*fma<mode>4): ...this.
7607 (*msub<mode>): Rename to...
7608 (*fnma<mode>4): ...this.
7610 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7611 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7613 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7614 Print 2.0 naturally.
7615 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7616 * config/aarch64/predicates.md
7617 (aarch64_sve_float_negated_arith_immediate): New predicate,
7618 renamed from aarch64_sve_float_arith_with_sub_immediate.
7619 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7620 positive and negative constants.
7621 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7622 or an aarch64_sve_float_arith_with_sub_immediate.
7623 * config/aarch64/constraints.md (vsN): Use
7624 aarch64_sve_float_negated_arith_immediate.
7625 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7627 (sve_pred_fp_rhs2_immediate): New int attribute.
7628 * config/aarch64/aarch64-sve.md
7629 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7630 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7631 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7632 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7633 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7634 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7636 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7637 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7639 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7640 (*aarch64_cond_abd<SVE_F:mode>_3)
7641 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7643 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7644 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7646 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7647 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7649 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7650 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7652 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7653 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7654 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7655 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7657 * optabs.h (create_convert_operand_from): Expand comment.
7658 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7659 when mapping scalar rtxes to vector operands.
7660 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7661 ashiftrt and lshiftrt.
7662 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7663 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7664 (*cond_<optab><mode>_any_const): New patterns.
7666 2019-08-15 Martin Liska <mliska@suse.cz>
7669 * cgraph.c (cgraph_node::remove): When setting
7670 n->origin = NULL for all nested functions, reset
7673 2019-08-15 Martin Liska <mliska@suse.cz>
7675 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7678 2019-08-15 Martin Liska <mliska@suse.cz>
7681 * passes.c (order): Remove.
7682 (uid_hash_t): Likewise).
7683 (remove_cgraph_node_from_order): Remove from set
7684 of pointers (cgraph_node *).
7685 (insert_cgraph_node_to_order): New.
7686 (duplicate_cgraph_node_to_order): New.
7687 (do_per_function_toporder): Register all 3 cgraph hooks.
7688 Skip removed_nodes now as we know about all of them.
7690 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7692 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7693 <case E_V8QImode>: Use vector_set path for
7694 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7695 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7696 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7698 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7700 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7702 2019-08-14 Martin Sebor <msebor@redhat.com>
7704 PR tree-optimization/91294
7705 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7706 source length as exact.
7708 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7710 * doc/extend.texi: Add "noinit" attribute documentation.
7711 * doc/sourcebuild.texi: Add noinit effective target documentation.
7712 * varasm.c (default_section_type_flags): Add support for "noinit"
7714 (default_elf_select_section): Add support for "noinit" attribute.
7715 * config/msp430/msp430.c (msp430_attribute_table): Remove
7718 2019-08-14 Richard Biener <rguenther@suse.de>
7719 Uroš Bizjak <ubizjak@gmail.com>
7722 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7724 (scalar_chain::smode): New member.
7725 (scalar_chain::vmode): Likewise.
7726 (dimode_scalar_chain): Rename to...
7727 (general_scalar_chain): ... this.
7728 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7729 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7730 base with TImode and V1TImode.
7731 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7732 (general_scalar_chain::vector_const_cost): Adjust for SImode
7734 (general_scalar_chain::compute_convert_gain): Likewise. Add
7735 {S,U}{MIN,MAX} support.
7736 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7737 (general_scalar_chain::make_vector_copies): Likewise. Handle
7738 non-DImode chains appropriately.
7739 (general_scalar_chain::convert_reg): Likewise.
7740 (general_scalar_chain::convert_op): Likewise.
7741 (general_scalar_chain::convert_insn): Likewise. Add
7742 fatal_insn_not_found if the result is not recognized.
7743 (convertible_comparison_p): Pass in the scalar mode and use that.
7744 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7745 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7746 (scalar_to_vector_candidate_p): Remove by inlining into single
7748 (general_remove_non_convertible_regs): Rename from
7749 dimode_remove_non_convertible_regs.
7750 (remove_non_convertible_regs): Remove by inlining into single caller.
7751 (convert_scalars_to_vector): Handle SImode and DImode chains
7752 in addition to TImode chains.
7753 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7754 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7755 (*<maxmin>di3_doubleword): Likewise.
7757 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7758 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7760 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7761 (*cond_bic<mode>_any): New patterns.
7763 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7765 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7766 take the equivalent mask, as well as a bit count.
7767 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7768 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7769 (aarch64_sve_pred_and_operand): New predicates.
7770 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7772 * config/aarch64/aarch64-sve.md
7773 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7774 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7776 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7778 * config/aarch64/aarch64-sve.md
7779 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7780 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7783 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7784 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7786 * config/aarch64/aarch64-sve.md
7787 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7788 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7790 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7791 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7793 * config/aarch64/aarch64-sve.md
7794 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7795 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7797 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7799 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7800 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7803 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7804 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7806 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7808 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7809 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7811 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7812 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7813 (aarch64_print_operand): Add support for %I.
7814 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7815 Bitcast floating-point constants to the corresponding integer constant.
7816 (aarch64_float_const_representable_p): Handle vectors as well
7818 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7819 for the new vcond_mask_<mode><vpred> expander.
7820 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7821 test aarch64_float_const_representable_p.
7822 (aarch64_sve_reg_or_dup_imm): New predicate.
7823 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7824 gen_vcond_mask_<mode><vpred> instead of
7825 gen_aarch64_sve_dup<mode>_const.
7826 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7827 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7828 for operands 1 and 2 respectively. Force operand 2 into a
7829 register if operand 1 is a register. Fold old define_insn...
7830 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7831 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7832 floating-point constants that can be moved as integers. Add
7833 alternatives for MOV /M and FMOV /M.
7834 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7835 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7836 1 and 2 respectively.
7837 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7839 (vss): New constraint.
7841 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7843 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7844 (aarch64_sve_float_maxmin_operand): New predicates.
7845 * config/aarch64/constraints.md (vsB): New constraint.
7847 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7848 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7850 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7851 Use aarch64_sve_float_maxmin_operand for operand 2.
7852 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7853 Add alternatives for the constant forms.
7855 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7857 * config/aarch64/constraints.md (vsb): New constraint.
7858 (vsm): Generalize description.
7859 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7861 (sve_imm_con): Handle smax, smin, umax and umin.
7862 (sve_imm_prefix): New code attribute.
7863 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7864 (aarch64_sve_vsb_operand): New predicates.
7865 (aarch64_sve_mul_immediate): Rename to...
7866 (aarch64_sve_vsm_immediate): ...this.
7867 (aarch64_sve_mul_operand): Rename to...
7868 (aarch64_sve_vsm_operand): ...this.
7869 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7870 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7871 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7872 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7873 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7874 add movprfx support for the immediate alternatives.
7875 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7877 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7880 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7882 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7883 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7884 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7886 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7888 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7889 (optab, sve_int_op): Handle them.
7890 * config/aarch64/aarch64-sve.md: Expand comment.
7892 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7894 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7895 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7896 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7898 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7900 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7901 (aarch64_expand_sve_const_pred_trn): New functions.
7902 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7903 use the above functions when the parameter is true.
7904 (aarch64_expand_sve_const_pred): Update call accordingly.
7905 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7907 (@aarch64_sve_<perm_insn><mode>): ...this.
7909 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7911 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7913 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7914 (aarch64_sve_emit_int_cmp): New functions.
7915 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7916 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7917 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7918 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7919 (UNSPEC_PRED_Z): New unspec.
7920 (set_clobber_cc_nzc): Delete.
7921 * config/aarch64/aarch64-sve.md: Add a block comment about
7923 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7924 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7925 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7927 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7928 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7929 check for compatible predicates.
7930 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7931 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7932 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7935 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7937 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7938 * config/aarch64/aarch64-sve.md: Add a section describing it.
7939 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7940 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7941 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7942 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7943 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7944 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7945 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7946 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7947 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7948 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7949 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7950 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7951 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7952 (aarch64_evpc_rev_local): Update accordingly.
7954 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7956 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7958 (SVE_BHSI, SVE_SDI): Tweak comment.
7959 (SVE_HSDI): Likewise. Fix definition.
7960 (SVE_SDF): New mode iterator.
7961 (elem_bits): New mode attribute.
7962 (SVE_COND_FCVT): New int iterator.
7963 * config/aarch64/aarch64-sve.md
7964 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7965 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7966 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7967 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7968 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7969 ...these new patterns.
7970 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7971 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7972 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7974 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7975 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7976 ...these new patterns.
7977 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7978 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7979 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7980 ...this new pattern.
7981 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7982 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7983 ...this new pattern.
7984 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7986 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7988 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7989 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7990 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7992 (optab, su): Handle them.
7993 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7994 * config/aarch64/aarch64-sve.md
7995 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7996 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7997 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7998 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7999 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8000 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8001 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8002 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8003 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8005 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8006 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8007 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8008 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8009 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8010 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8011 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8012 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8013 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8014 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8015 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8016 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8017 of UNSPEC_FLOAT_CONVERT.
8018 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8019 aarch64_sve_extend<mode><Vwide>2.
8021 2019-08-14 Richard Biener <rguenther@suse.de>
8024 * config/i386/i386-features.c
8025 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8026 individual instruction gain. Fix reg-reg copy GRP cost. Use
8027 ix86_cost->sse_op for vector instruction costs.
8029 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8031 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8032 (cmp_op): Handle it.
8033 (SVE_COND_FP_CMP): Rename to...
8034 (SVE_COND_FP_CMP_I0): ...this.
8035 (SVE_FP_CMP): Remove.
8036 * config/aarch64/aarch64-sve.md
8037 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8038 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8039 using unspecs to represent the comparison.
8040 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8041 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8043 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8044 (aarch64_unspec_cond_code): Move after integer code. Handle
8046 (aarch64_emit_sve_predicated_cond): Replace with...
8047 (aarch64_emit_sve_fp_cond): ...this new function.
8048 (aarch64_emit_sve_or_conds): Replace with...
8049 (aarch64_emit_sve_or_fp_conds): ...this new function.
8050 (aarch64_emit_sve_inverted_cond): Replace with...
8051 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8052 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8054 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8056 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8057 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8058 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8059 SVE_HSD instead of SVE_SD.
8061 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8062 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8064 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8066 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8068 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8069 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8070 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8071 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8072 (*div<SVE_F:mode>3): Generalize to...
8073 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8075 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8076 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8078 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8080 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8082 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8084 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8086 * config/aarch64/aarch64-sve.md: Add a block comment about the
8087 handling of predicated FP operations.
8088 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8089 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8090 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8091 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8092 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8094 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8095 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8097 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8098 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8099 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8100 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8101 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8102 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8103 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8104 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8105 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8106 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8107 strictness operands. Use aarch64_sve_pred_dominates_p to check
8108 whether the predicate on the conditional operation is suitable
8109 for merging. Split patterns into the canonical equal-predicate form.
8110 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8111 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8113 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8114 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8116 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8117 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8118 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8120 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8121 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8124 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8125 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8127 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8128 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8129 actually has, rather than relying on REG_EQUAL notes.
8130 Make the insn operand order match the SVE operand order.
8131 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8132 the SVE operand order.
8134 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8136 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8137 (aarch64_emit_set_immediate): Likewise.
8138 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8139 (aarch64_pfalse_reg): Likewise.
8140 (aarch64_convert_sve_data_to_pred): New function.
8141 (aarch64_sve_move_pred_via_while): Take an optional target register
8142 and the required register mode.
8143 (aarch64_expand_sve_const_pred_1): New function.
8144 (aarch64_expand_sve_const_pred): Likewise.
8145 (aarch64_expand_mov_immediate): Build an all-true predicate
8146 if the significant bits of the immediate are all true. Use
8147 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8148 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8149 before register allocation.
8150 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8151 a VNx16BI PTRUE when splitting the memory alternative.
8152 (vec_duplicate<mode>): Update accordingly.
8153 (*pred_cmp<cmp_op><mode>): Rename to...
8154 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8156 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8158 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8159 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8160 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8161 (UNSPEC_PTEST): New unspec.
8162 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8163 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8164 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8165 * config/aarch64/aarch64-sve.md: Add a new section describing the
8166 handling of UNSPEC_PTEST.
8167 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8168 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8169 (ptest_ptrue<mode>): Replace with...
8170 (aarch64_ptest<mode>): ...this new pattern.
8171 (cbranch<mode>4): Update after above changes.
8172 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8174 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8175 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8176 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8178 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8181 * builtins.c (builtin_with_linkage_p): New function.
8182 * builtins.h (builtin_with_linkage_p): New function.
8183 * symtab.c (write_symbol): Remove redundant assert.
8184 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8185 Remove FIXME and use builtin_with_linkage_p.
8187 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8190 * tree-core.h (function_decl::function_code): Change type to
8192 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8193 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8194 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8195 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8197 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8198 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8199 (fndecl_built_in_p): Change the type of the "name" argument to
8201 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8202 after check for DECL_BUILT_IN_CLASS.
8203 * cgraphclones.c (build_function_decl_skip_args): Use
8204 set_decl_built_in_function.
8205 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8206 * ipa-split.c (split_function): Likewise.
8207 * langhooks.c (add_builtin_function_common): Likewise.
8208 * omp-simd-clone.c (simd_clone_create): Likewise.
8209 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8210 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8211 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8213 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8214 instead of DECL_FUNCTION_CODE.
8215 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8216 instead of DECL_FUNCTION_CODE.
8217 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8218 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8219 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8220 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8221 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8222 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8223 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8224 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8225 (alpha_gimple_fold_builtin): Likewise.
8226 * config/arc/arc.c (arc_expand_builtin): Likewise.
8227 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8228 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8229 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8230 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8231 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8232 * config/frv/frv.c (frv_expand_builtin): Likewise.
8233 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8234 (gcn_expand_builtin): Likewise.
8235 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8236 (fold_builtin_cpu): Likewise.
8237 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8238 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8239 (ix86_gimple_fold_builtin): Likewise.
8240 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8241 (ia64_expand_builtin): Likewise.
8242 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8243 * config/mips/mips.c (mips_expand_builtin): Likewise.
8244 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8245 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8246 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8247 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8248 * config/pa/pa.c (pa_expand_builtin): Likewise.
8249 * config/pru/pru.c (pru_expand_builtin): Likewise.
8250 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8251 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8253 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8254 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8255 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8256 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8257 (rs6000_builtin_reciprocal): Likewise.
8258 * config/rx/rx.c (rx_expand_builtin): Likewise.
8259 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8260 * config/s390/s390.c (s390_expand_builtin): Likewise.
8261 * config/sh/sh.c (sh_expand_builtin): Likewise.
8262 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8263 (sparc_fold_builtin): Likewise.
8264 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8265 * config/spu/spu.c (spu_expand_builtin): Likewise.
8266 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8267 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8268 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8269 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8270 (xtensa_expand_builtin): Likewise.
8272 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8275 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8276 before the DECL_FUNCTION_CODE.
8277 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8278 to check for a BUILT_IN_ALLOCA call.
8279 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8280 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8281 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8282 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8283 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8284 for BUILT_IN_NORMAL functions.
8285 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8286 test for BUILT_IN_TM_ABORT.
8287 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8288 to check for a BUILT_IN_STACK_RESTORE call.
8289 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8290 * tree-ssa-threadedge.c
8291 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8292 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8293 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8294 test for a BUILT_IN_NORMAL call instead of a negative test for
8295 an internal function call.
8297 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8299 * tree.h (build_vector_a_then_b): Declare.
8300 * tree.c (build_vector_a_then_b): New function.
8301 * fold-const-call.c (fold_while_ult): Likewise.
8302 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8303 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8304 (aarch64_svpattern): New enum.
8305 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8306 constants through aarch64_expand_mov_immediate.
8307 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8308 than general_operand as the predicate for operand 1.
8309 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8310 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8312 (simd_immediate_info::simd_immediate_info): New overload that
8313 takes a scalar_int_mode and an svpattern.
8314 (simd_immediate_info::u): Add a "pattern" field.
8315 (svpattern_token): New function.
8316 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8317 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8318 (aarch64_sve_move_pred_via_while): New functions.
8319 (aarch64_expand_mov_immediate): Try using
8320 aarch64_sve_move_pred_via_while for predicates that contain N ones
8321 followed by M zeros but that do not correspond to a VLnnn pattern.
8322 (aarch64_sve_pred_valid_immediate): New function.
8323 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8324 with PTRUE and PFALSE.
8325 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8328 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8330 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8332 (darwin_override_options): Likewise.
8333 * config/darwin.h: Likewise.
8334 * config/darwin.opt: Likewise.
8335 * config/i386/i386.c (output_pic_addr_const): Likewise.
8336 * config/rs6000/darwin.h: Likewise.
8337 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8338 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8339 ... this TARGET_MACHO_SYMBOL_STUBS.
8340 (FUNCTION_PROFILER):Likewise.
8341 * config/i386/i386.h: Likewise.
8343 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8345 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8346 <case E_V2SImode>: Use vec_extr path for
8347 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8348 <case E_V8QImode>: Ditto.
8349 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8350 Use SWI48 mode iterator. Use %k to output operand 0.
8351 (*mmx_pextrw): New insn pattern.
8352 (*mmx_pextrb): Ditto.
8353 (*mmx_pextrb_zext): Ditto.
8355 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8357 * target.def (libc_has_function, libc_has_fast_function): Improve
8358 documentation strings.
8359 * doc/tm.texi: Regenerate.
8361 2019-08-13 Caroline Tice <cmtice@google.com>
8364 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8365 vtv_end.o or vtv_end_preinit.o files if !static.
8367 2019-08-13 Olivier Hainque <hainque@adacore.com>
8369 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8371 2019-08-13 Olivier Hainque <hainque@adacore.com>
8373 * rtlanal.c (tablejump_casesi_pattern): New function, to
8374 determine if a tablejump insn is a casesi dispatcher. Extracted
8375 from patch_jump_insn.
8376 * rtl.h (tablejump_casesi_pattern): Declare.
8377 * cfgrtl.c (patch_jump_insn): Use it.
8378 * dwarf2cfi.c (create_trace_edges): Use it.
8380 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8383 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8384 operand is larger than a long int.
8386 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8388 * machmode.h (opt_mode::else_mode): New function.
8389 (opt_mode::else_blk): Use it.
8390 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8391 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8392 (aarch64_gen_stepped_int_parallel): Likewise.
8393 (aarch64_stepped_int_parallel_p): Likewise.
8394 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8396 * config/aarch64/aarch64.c
8397 (aarch64_expand_sve_widened_duplicate): Delete.
8398 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8399 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8400 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8401 argument. Use early returns in the !CONST_INT_P handling.
8402 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8403 than handling some inline.
8404 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8406 (aarch64_simd_container_mode): ...here.
8407 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8408 (aarch64_sve_ld1rq_operand_p): New functions.
8409 * config/aarch64/predicates.md (descending_int_parallel)
8410 (aarch64_sve_ld1rq_operand): New predicates.
8411 * config/aarch64/constraints.md (UtQ): New constraint.
8412 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8413 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8414 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8415 (@aarch64_sve_reinterpret<mode>): New expander.
8416 (*aarch64_sve_reinterpret<mode>): New pattern.
8417 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8418 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8419 (*sve_ld1rq<Vesize>): Replace with...
8420 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8422 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8424 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8427 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8429 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8430 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8431 (msp430_check_path_for_devices): New.
8432 (parse_devices_csv_1): New.
8433 (parse_devices_csv): New.
8434 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8435 MCU data in devices.csv before using the hard-coded data.
8436 Warn if devices.csv isn't found and the MCU wasn't found in the
8437 hard-coded data either.
8438 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8439 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8440 Search for devices.csv on -I and -L paths.
8441 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8442 msp430_set_driver_var.
8443 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8445 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8446 searched for devices.csv.
8447 (mwarn-devices-csv): Document option.
8449 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8451 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8452 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8453 Use a single Dn alternative instead of separate Dz and Dm
8454 alternatives. Use aarch64_output_sve_move_immediate.
8455 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8457 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8459 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8460 (aarch64_output_ptrue): Delete.
8462 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8464 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8466 (simd_immediate_info::value, simd_immediate_info::step)
8467 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8469 (simd_immediate_info::u): ...this new union.
8470 (simd_immediate_info::simd_immediate_info): Update accordingly.
8471 (aarch64_output_simd_mov_immediate): Likewise.
8472 (aarch64_output_sve_mov_immediate): Likewise.
8474 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8476 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8478 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8479 (msp430_select_cpu): New spec function.
8480 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8482 * config/msp430/msp430-devices.c: New file.
8483 * config/msp430/msp430-devices.h: New file.
8484 * config/msp430/msp430.c: Remove msp430_mcu_data.
8485 (msp430_option_override): Use msp430_extract_mcu_data to extract
8487 (msp430_use_f5_series_hwmult): Likewise.
8488 (use_32bit_hwmult): Likewise.
8489 (msp430_no_hwmult): Likewise.
8490 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8492 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8494 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8495 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8496 Remove hard-coded MCU multilib data.
8498 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8500 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8501 based on the mode instead of testing properties of it.
8503 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8505 * doc/md.texi: Document the x and y constraints for AArch64.
8506 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8507 (FP_LO8_REGS): New reg_class.
8508 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8509 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8510 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8511 * config/aarch64/predicates.md (aarch64_simd_register): Use
8512 FP_REGNUM_P instead of checking the classes manually.
8513 * config/aarch64/constraints.md (y): New constraint.
8515 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8517 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8518 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8519 * config/aarch64/aarch64-simd.md
8520 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8521 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8522 from the asm template.
8523 * config/aarch64/aarch64-sve.md
8524 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8525 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8526 from the asm template.
8527 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8528 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8529 from the asm template.
8530 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8532 2019-08-13 Martin Liska <mliska@suse.cz>
8534 * value-prof.c (gimple_ic_transform): Add new line.
8535 Print details with MSG_NOTE.
8537 2019-08-13 Martin Liska <mliska@suse.cz>
8539 * doc/invoke.texi: Document automatic detection of jobserver.
8540 * lto-wrapper.c (run_gcc): Detect jobserver always.
8542 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8544 * config/i386/i386-expand.c (ix86_expand_vector_set)
8545 <case E_V2SImode>: Use vec_merge path for
8546 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8547 <case E_V8QImode>: Ditto.
8548 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8549 (*mmx_pinsrb): Ditto.
8551 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8555 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8556 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8557 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8558 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8559 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8561 2019-08-12 Richard Biener <rguenther@suse.de>
8564 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8567 2019-08-12 Richard Biener <rguenther@suse.de>
8570 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8571 lang_mask option, always use CL_DRIVER.
8572 (get_options_from_collect_gcc_options): Adjust.
8573 (find_and_merge_options): Likewise.
8574 (run_gcc): Likewise.
8576 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8578 * ipa-predicate.c (add_condition): Restore inverted test.
8580 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8582 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8583 (enum omp_clause_device_type_kind): New enum.
8584 (struct tree_omp_clause): Add subcode.device_type_kind.
8585 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8586 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8587 for device_type clause.
8588 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8589 * tree-pretty-print.c (dump_omp_clause): Likewise.
8592 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8595 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8597 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8598 handling spilled pseudos.
8600 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8603 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8604 to preserve the contents of the original insns.
8606 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8608 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8609 (addsi3_compare_op2): Likewise.
8611 2019-08-09 Martin Liska <mliska@suse.cz>
8613 * alias.c (alias_ptr_types_compatible_p): Strengten
8614 type comparison in LTO mode.
8616 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8619 * tree-tailcall.c (find_tail_calls): Reject calls that might
8620 read from an escaped RESULT_DECL.
8622 2019-08-09 Martin Liska <mliska@suse.cz>
8624 * doc/invoke.texi: Document the option value.
8625 * lto-wrapper.c (run_gcc): Set auto_parallel
8626 only with -flto=auto.
8628 2019-08-09 Martin Liska <mliska@suse.cz>
8630 * opts.c (common_handle_option): Error for an invalid argument
8633 2019-08-09 Martin Liska <mliska@suse.cz>
8635 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8636 use dump_printf to report optimization.
8637 (sem_variable::merge): Likwise.
8638 (sem_item_optimizer::merge_classes): Use dump_printf to report
8641 2019-08-09 Martin Liska <mliska@suse.cz>
8643 * value-prof.c (gimple_divmod_fixed_value_transform):
8644 Use dump_printf_loc.
8645 (gimple_mod_pow2_value_transform): Likewise.
8646 (gimple_mod_subtract_transform): Likewise.
8647 (init_node_map): Likewise.
8648 (gimple_ic_transform): Likewise.
8649 (gimple_stringops_transform): Likewise.
8651 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8653 * doc/extend.texi: Add const qualifier to ld intrinsics.
8655 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8657 * config/rs6000/dfp.md (D64_D128): Rename to ...
8658 (DDTD): ... this, throughout.
8659 (dfp_suffix): Rename to ...
8660 (q): ... this, throughout.
8662 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8664 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8665 (dfp_suffix): Ditto.
8666 (adddd3, addtd3): Merge to ...
8667 (add<mode>3 for D64_D128): ... this.
8668 (subdd3, subtd3): Merge to ...
8669 (sub<mode>3 for D64_D128): ... this.
8670 (muldd3, multd3): Merge to ...
8671 (mul<mode>3 for D64_D128): ... this.
8672 (divdd3, divtd3): Merge to ...
8673 (div<mode>3 for D64_D128): ... this.
8674 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8675 (*cmp<mode>_internal1 for D64_D128): ... this.
8676 (ftruncdd2, ftrunctd2): Merge to ...
8677 (ftrunc<mode>2 for D64_D128): ... this.
8678 (fixdddi2, fixtddi2): Merge to ...
8679 (fix<mode>di2 for D64_D128): ... this.
8681 2019-08-08 Jim Wilson <jimw@sifive.com>
8684 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8685 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8686 Pass into recursive call.
8687 (riscv_flatten_aggregate_argument): New arg. Pass to
8688 riscv_flatten_aggregate_field.
8689 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8690 riscv_flatten_aggregate_argument twice, with false and true as last
8691 arg. Process result twice. Compare results and warn if different.
8692 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8694 2019-08-08 Martin Liska <mliska@suse.cz>
8697 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8698 * lto-wrapper.c (jobserver_active_p): Likewise.
8700 2019-08-08 Martin Liska <mliska@suse.cz>
8702 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8703 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8704 (create_version_clone_with_body): Likewise.
8706 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8708 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8709 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8710 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8711 GOVD_EXPLICIT flags.
8712 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8713 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8714 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8715 call install_var_field with mask 11 instead of 3.
8716 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8717 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8719 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8721 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8722 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8724 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8726 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8727 MOVPRFX alternatives. Make the GPR alternatives more expensive
8730 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8732 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8733 Disparage the GPR alternative relative to the FPR one.
8734 Fix handling of 8-bit and 16-bit FPR values.
8736 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8738 * config/aarch64/iterators.md (BITWISEV): Delete.
8739 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8740 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8741 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8742 UNSPEC_FMINNMV, UNSPEC_FMINV.
8743 (bit_reduc_op): Delete.
8744 (sve_int_op): New int attribute.
8745 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8746 UNSPEC_FMINNMV, UNSPEC_FMINV.
8747 * config/aarch64/aarch64-sve.md
8748 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8749 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8750 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8751 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8752 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8753 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8755 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8756 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8757 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8758 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8759 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8762 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8764 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8765 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8766 (fms<mode>4, *fms<mode>4): Replace with...
8767 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8768 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8769 Use unspecs instead of rtx codes.
8770 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8771 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8773 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8775 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8777 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8778 * config/aarch64/aarch64-sve.md
8779 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8780 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8781 use a single unspec for the rhs.
8782 (*<su><maxmin><mode>3): Delete.
8783 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8785 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8787 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8788 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8789 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8790 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8791 (optab, sve_fp_op): Handle them.
8792 (SVE_FP_UNARY): Delete.
8793 (optab): Remove sqrt entry.
8794 (sve_fp_op): Remove neg, abs and sqrt entries.
8795 (SVE_COND_FP_UNARY): New int iterator.
8796 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8797 (*<frint_pattern><mode>2): Delete.
8798 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8799 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8800 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8801 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8803 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8805 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8807 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8809 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8810 (UNSPEC_COND_FADD): ...this.
8811 (UNSPEC_COND_SUB): Rename to...
8812 (UNSPEC_COND_FSUB): ...this.
8813 (UNSPEC_COND_MUL): Rename to...
8814 (UNSPEC_COND_FMUL): ...this.
8815 (UNSPEC_COND_DIV): Rename to...
8816 (UNSPEC_COND_FDIV): ...this.
8817 (UNSPEC_COND_MAX): Rename to...
8818 (UNSPEC_COND_FMAXNM): ...this.
8819 (UNSPEC_COND_MIN): Rename to...
8820 (UNSPEC_COND_FMINNM): ...this.
8821 (UNSPEC_COND_LT): Rename to...
8822 (UNSPEC_COND_FCMLT): ...this.
8823 (UNSPEC_COND_LE): Rename to...
8824 (UNSPEC_COND_FCMLE): ...this.
8825 (UNSPEC_COND_EQ): Rename to...
8826 (UNSPEC_COND_FCMEQ): ...this.
8827 (UNSPEC_COND_NE): Rename to...
8828 (UNSPEC_COND_FCMNE): ...this.
8829 (UNSPEC_COND_GE): Rename to...
8830 (UNSPEC_COND_FCMGE): ...this.
8831 (UNSPEC_COND_GT): Rename to...
8832 (UNSPEC_COND_FCMGT): ...this.
8833 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8834 (sve_fp_op_rev): Update accordingly.
8835 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8837 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8839 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8841 * config/aarch64/check-sve-md.awk: New file.
8842 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8843 (insn-conditions.md): Depend on it.
8845 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8848 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8849 (*negsi2_cmpz_zext): Ditto.
8851 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8853 * config/aarch64/iterators.md (commutative): Remove.
8855 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8858 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8859 processing COLLECT_GCC_OPTIONS.
8860 (run_gcc): Likewise.
8862 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8864 PR tree-optimization/91109
8865 * lra-remat.c (update_scratch_ops): Remove assignment of the
8868 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8870 * data-streamer.h (streamer_write_poly_uint64): Declare.
8871 (streamer_read_poly_uint64): Likewise.
8872 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8873 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8874 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8875 (add_condition): Take a poly_int64 size.
8876 * ipa-predicate.c (add_condition): Likewise.
8877 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8878 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8879 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8880 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8881 condition::size as a poly_int64.
8882 (unmodified_parm_1): Take a poly_int64 size pointer.
8883 (unmodified_parm): Likewise.
8884 (unmodified_parm_or_parm_agg_item): Likewise.
8885 (set_cond_stmt_execution_predicate): Update accordingly.
8886 (set_switch_stmt_execution_predicate): Likewise.
8887 (will_be_nonconstant_expr_predicate): Likewise.
8888 (will_be_nonconstant_predicate): Likewise.
8889 (inline_read_section): Stream condition::size as a poly_int.
8890 (ipa_fn_summary_write): Likewise.
8892 2019-08-07 Martin Liska <mliska@suse.cz>
8894 * fold-const.c (twoval_comparison_p): Replace int
8895 with bool as a return type.
8896 (simple_operand_p): Likewise.
8897 (operand_equal_p): Replace int with bool as a return type.
8898 * fold-const.h (operand_equal_p): Likewise.
8900 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8902 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8903 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8904 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8905 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8906 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8907 * tree-pretty-print.c (dump_omp_clause): Likewise.
8908 * tree-nested.c (convert_nonlocal_omp_clauses,
8909 convert_local_omp_clauses): Likewise.
8910 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8912 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8913 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8914 clause with array or reference to array types, no matter what type
8915 except for reference it has.
8917 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8919 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8921 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8923 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8924 (arch_canonicalize): Support rv32g and rv64g and fix error
8927 2019-08-06 Martin Liska <mliska@suse.cz>
8929 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8930 and DECL_IS_OPERATOR_DELETE_P.
8932 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8934 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8935 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8936 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8937 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8938 (gimplify_omp_for): Don't do C++ random access iterator clause
8939 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8940 don't predetermine the artificial iterator in case of C++ random
8941 access iterators as lastprivate, but private. For OMP_LOOP, force
8942 bind expr around simd body and force for_pre_body before the
8943 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8944 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8945 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8946 diff var of C++ random access iterators. Handle
8947 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8948 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8949 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8950 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8951 * omp-low.c (lower_rec_input_clauses): For
8952 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8953 variables instead of default constructing them.
8954 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8955 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8956 is_taskloop_ctx check from the assert to the guarding condition.
8958 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8960 * config/riscv/multilib-generator: (canonical_order): New.
8961 (arch_canonicalize): Dito.
8962 Apply arch_canonicalize for alts.
8964 2019-08-05 Martin Sebor <msebor@redhat.com>
8966 * doc/extend.texi (Common Variable Attributes): Document alias
8969 2019-08-05 Marek Polacek <polacek@redhat.com>
8971 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8972 * doc/invoke.texi: Document -Wcomma-subscript.
8974 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8976 * tree-core.h (tree_function_decl): Make function_code an
8977 independent field. Group the remaining bitfields into bytes
8978 and move decl_type so that it contines to be at a byte boundary.
8979 Leave 12 bits for future expansion.
8981 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8983 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8984 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8985 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8988 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8990 * gimple.h (gimple_move_vops): Declare.
8991 * gimple.c (gimple_move_vops): New function
8992 * gimple-fold.c (replace_call_with_call_and_fold)
8993 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8994 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8995 (gimple_fold_call): Use it.
8996 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8997 * tree-call-cdce.c (use_internal_fn): Likewise.
8998 * tree-if-conv.c (predicate_load_or_store): Likewise.
8999 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9000 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9001 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9002 (update_call_from_tree): Likewise.
9003 * tree-vect-stmts.c (vectorizable_load): Likewise.
9004 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9006 2019-08-05 Martin Liska <mliska@suse.cz>
9009 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9011 (eliminate_unnecessary_stmts): Likewise.
9013 2019-08-05 Richard Biener <rguenther@suse.de>
9016 * fold-const.c (get_array_ctor_element_at_index): Create
9017 offset_ints according to the sign of the index type and treat
9018 that as signed if it is obviously so.
9020 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9023 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9024 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9025 _mm256_storeu2_m128i): New function.
9027 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9029 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9030 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9032 2019-08-05 Alan Modra <amodra@gmail.com>
9035 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9036 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9038 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9040 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9041 bug that was fixed in Tcl 8.6.1.
9043 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9045 * config/rs6000/future.md: New file.
9046 * config/rs6000/rs6000.md: Include future.md.
9047 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9049 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9051 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9052 check to use targetm.slow_unaligned_access instead.
9054 * function.c (assign_param_data_one): Remove unused data members.
9056 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9058 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9059 build_distinct_type_copy.
9060 (simd_clone_adjust_argument_types): Ditto.
9061 (simd_clone_adjust): Call build_distinct_type_copy here.
9062 (expand_simd_clones): Ditto.
9064 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9067 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9069 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9071 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9072 from 'const void *'.
9073 (sort_locs_in_loop_postorder_cmp): Likewise.
9075 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9077 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9078 (hot-bb-count-ws-permille): Likewise.
9079 (hot-bb-frequency-fraction): Likewise.
9080 (unlikely-bb-count-fraction): Likewise.
9081 * params.def (hot-bb-count-fraction): Rework description.
9082 (hot-bb-count-ws-permille): Likewise.
9083 (hot-bb-frequency-fraction): Likewise.
9084 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9085 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9087 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9090 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9093 2019-08-02 Richard Biener <rguenther@suse.de>
9095 * vec.h (vec::sort): Add gcc_qsort_r support.
9096 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9097 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9098 to gcc_qsort_r style callback.
9099 (sort_locs_in_loop_postorder_cmp): Likewise.
9100 (analyze_memory_references): Use gcc_sort_r interfaces.
9101 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9103 2019-08-02 Martin Liska <mliska@suse.cz>
9106 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9107 to detect working job server.
9108 (driver::detect_jobserver): Test whether jobserver
9109 is active from GCC driver. That will prevent situation where
9110 GCC is invoked from a LD plugin and the linker already uses
9111 file descriptors suggested by make. That leads to a wrong
9113 * gcc.h (driver): Add detect_jobserver.
9114 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9115 not scanning for --jobserver-auth prefix.
9117 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9119 PR tree-optimization/91201
9120 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9121 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9124 2019-08-01 Martin Sebor <msebor@redhat.com>
9127 * tree.c (type_initializer_zero_p): Define.
9128 * tree.h (type_initializer_zero_p): New function.
9130 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9132 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9134 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9136 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9137 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9138 * predict.c (maybe_hot_count_p): Likewise.
9139 (maybe_hot_bb_p): Tweak comment.
9140 (maybe_hot_edge_p): Likewise.
9141 (probably_never_executed): Likewise. Minor tweak.
9142 (probably_never_executed_bb_p): Likewise.
9143 (unlikely_executed_edge_p): Likewise.
9144 (probably_never_executed_edge_p): Likewise.
9145 (optimize_function_for_size_p): Likewise.
9146 (optimize_function_for_speed_p): Likewise.
9147 (function_optimization_type): Likewise.
9148 (optimize_bb_for_size_p): Likewise.
9149 (optimize_bb_for_speed_p): Likewise.
9150 (bb_optimization_type): Likewise.
9151 (optimize_edge_for_size_p): Likewise.
9152 (optimize_edge_for_speed_p): Likewise.
9153 (optimize_insn_for_size_p): Likewise.
9154 (optimize_insn_for_speed_p): Likewise.
9155 (optimize_loop_for_size_p): Likewise.
9156 (optimize_loop_for_speed_p): Likewise.
9157 (optimize_loop_nest_for_speed_p): Likewise.
9158 (optimize_loop_nest_for_size_p): Likewise.
9159 (predictable_edge_p): Likewise.
9160 (handle_missing_profiles): Minor tweak.
9162 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9164 * config/rs6000/predicates.md (pcrel_external_address): Update
9167 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9170 * config/i386/mmx.md (usadv8qi): New expander.
9172 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9175 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9176 with reserved names that are in a system header.
9178 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9180 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9181 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9182 (*vec_extractv2si_0_zext): Ditto.
9183 (*vec_extractv2si_1): Add (rm,x) alternative.
9184 (*vec_extractv2si_1_zext): New insn pattern.
9185 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9188 2019-08-01 Richard Biener <rguenther@suse.de>
9190 * domwalk.c (bb_postorder): Remove static variable.
9191 (cmp_bb_postorder): Adjust.
9192 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9193 (dom_walker::walk): Adjust.
9195 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9197 * sort.cc (sort_r_ctx): New struct.
9198 (reorder23): Make templated on context type.
9200 (cmp1): Ditto. Adjust signature.
9203 [CHECKING_P] (cmp2to3): New static function. Use it...
9204 (gcc_qsort) [CHECKING_P]: ...here.
9205 (gcc_sort_r): New function.
9206 * system.h (sort_r_cmp_fn): New function typedef.
9207 (qsort_chk): Adjust signature.
9208 (gcc_sort_r): Declare.
9209 * vec.c (qsort_chk_error): Adjust.
9210 (qsort_chk): Adjust.
9212 2019-08-01 Richard Biener <rguenther@suse.de>
9214 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9215 (compute_antic): Localize it here.
9217 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9219 * common/config/riscv/riscv-common.c: Check -march string ends
9222 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9224 * ipa-devirt.c (type_warning_cmp): Make static.
9225 (decl_warning_cmp): Ditto.
9227 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9230 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9231 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9232 use of deleted rs6000_dejagnu_cpu_index variable.
9233 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9234 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9235 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9236 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9237 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9238 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9240 2019-07-31 Richard Biener <rguenther@suse.de>
9242 PR tree-optimization/91280
9243 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9244 Decompose MEM_REF manually for offset handling.
9246 2019-07-31 Richard Biener <rguenther@suse.de>
9248 PR tree-optimization/91293
9249 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9252 2019-07-31 Matt Thomas <matt@3am-software.com>
9253 Nick Hudson <nick@nthcliff.demon.co.uk>
9254 Matthew Green <mrg@eterna.com.au>
9255 Maya Rashish <coypu@sdf.org>
9257 * config.gcc (hppa*-*-netbsd*): New target.
9258 * config/pa/pa-netbsd.h: New file.
9259 * config/pa/pa32-netbsd.h: New file.
9261 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9263 PR tree-optimization/91201
9264 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9266 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9268 * config/gcn/gcn-valu.md
9269 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9270 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9271 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9272 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9273 struct ilist. Add nops for delayeduse insns.
9274 * config/gcn/gcn.md (delayeduse): New attribute.
9275 (*movbi): Remove s_waitcnt from stores.
9276 (*mov<mode>_insn): Likewise.
9277 (*movti_insn): Likewise. Add delayeduse attribute.
9278 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9279 (atomic_store<mode>): Remove or adjust s_waitcnt.
9281 2019-07-31 Richard Biener <rguenther@suse.de>
9283 * vr-values.h (vr_values::swap_vr_value): New.
9284 (vr_values::free_value_range): likewise.
9285 * vr-values.c (vr_values::swap_vr_value): Implement.
9286 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9287 Do not return a range or take a var.
9288 (evrp_range_analyzer::stack): Change back to recording a non-const
9290 * gimple-ssa-evrp-analyze.c
9291 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9293 (evrp_range_analyzer::pop_to_marker): Adjust.
9294 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9295 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9296 no longer needed value-range.
9298 2019-07-31 Martin Liska <mliska@suse.cz>
9300 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9301 have size and (or) alignment as 2nd and later arguments.
9302 Mark all of them as necessary.
9304 2019-07-31 Richard Biener <rguenther@suse.de>
9306 PR tree-optimization/91178
9307 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9310 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9312 PR tree-optimization/91201
9313 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9314 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9316 (reduc_plus_scal_<mode>): Improve formatting by introducing
9319 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9321 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9322 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9323 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9324 (aarch64_init_tme_builtins): New.
9325 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9326 (aarch64_expand_builtin_tme): New.
9327 (aarch64_expand_builtin): Handle TME builtins.
9328 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9329 __ARM_FEATURE_TME when enabled.
9330 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9331 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9333 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9334 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9336 (tstart, ttest, tcommit, tcancel): New instructions.
9337 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9338 (__tcancel, __ttest): New.
9339 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9340 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9341 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9342 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9343 * config/arm/types.md: Add new tme type attr.
9344 * doc/invoke.texi: Document "tme".
9346 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9348 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9349 warn_unused_result attribute.
9350 (cmse_check_address_range): Add warn_unused_result attribute.
9352 2019-07-31 Richard Biener <rguenther@suse.de>
9354 PR tree-optimization/91257
9355 * tree-vrp.c (union_ranges): Unify equality and less tests
9356 by using compare_values. Re-order cheap tests first.
9358 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9361 * gimplify.c (gimplify_omp_for): If for class iterator on
9362 distribute parallel for there is no data sharing clause
9363 on inner_for_stmt, look for private clause on combined
9364 parallel too and if found, move it to inner_for_stmt.
9366 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9368 * lra-int.h (lra_operand_data): Remove early_clobber field.
9369 (lra_insn_reg): Likewise.
9370 * lra.c (debug_operand_data): Update accordingly.
9371 (setup_operand_alternative): Likewise.
9372 (new_insn_reg): Likewise. Remove early_clobber parameter.
9373 (collect_non_operand_hard_regs): Update call accordingly.
9374 Don't assign to lra_insn_reg::early_clobber.
9375 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9376 and update calls to new_insn_reg.
9377 (lra_update_insn_regno_info): Update calls accordingly.
9378 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9379 alternative number as a parameter and test whether the operand
9380 is earlyclobbered in that particular alternative.
9381 (process_alt_operands): Update call accordingly. Use per-alternative
9382 checks for earyclobber here too.
9383 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9384 against zero for IRA_UNKNOWN_ALT.
9386 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9388 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9390 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9392 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9393 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9395 2019-07-30 Martin Liska <mliska@suse.cz>
9398 * cgraph.c (cgraph_edge::make_direct): Use
9399 edge->indirect_unknown_callee as edge->resolve_speculation can
9400 deallocate edge which is this pointer.
9402 2019-07-30 Richard Biener <rguenther@suse.de>
9404 PR tree-optimization/91257
9405 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9407 2019-07-30 Martin Liska <mliska@suse.cz>
9409 * doc/invoke.texi: Document new behavior.
9410 * lto-wrapper.c (cpuset_popcount): New function
9411 is a copy of libgomp/config/linux/proc.c.
9412 (init_num_threads): Likewise.
9413 (run_gcc): Automatically detect core count for -flto.
9414 (jobserver_active_p): New function.
9416 2019-07-30 Richard Biener <rguenther@suse.de>
9418 PR tree-optimization/91257
9419 * bitmap.h (bitmap_ior_into_and_free): Declare.
9420 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9421 whether to add the unliked element to the freelist.
9422 (bitmap_list_insert_element_after): Add defaulted param for
9423 an already allocated element.
9424 (bitmap_ior_into_and_free): New function.
9425 * tree-ssa-structalias.c (condense_visit): Reduce the
9426 ponts-to and edge bitmaps of the SCC members in a
9427 logarithmic fashion rather than all to one.
9429 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9431 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9432 parameter. When nonnull, make sure that the addition or subtraction
9433 has the same condition.
9434 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9435 for CFN_COND_MUL too.
9437 2019-07-30 Richard Biener <rguenther@suse.de>
9439 PR tree-optimization/91291
9440 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9443 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9446 * omp-low.c (global_nonaddressable_vars): New variable.
9447 (use_pointer_for_field): For global decls, if they are non-addressable,
9448 remember it in the global_nonaddressable_vars bitmap, if they are
9449 addressable and in the global_nonaddressable_vars bitmap, ignore their
9450 TREE_ADDRESSABLE bit.
9451 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9452 vars in global_nonaddressable_vars bitmap.
9453 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9456 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9457 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9458 comparison to unsigned HOST_WIDE_INT before shifting it left.
9460 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9462 * config/i386/i386.md (movstrict<mode>): Use register_operand
9463 predicate for operand 0. Add expander condition. Assert that
9464 operand 0 is a SUBREG RTX.
9465 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9466 Update operand constraints and insn condition.
9467 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9468 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9469 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9470 Update operand 0 constraints.
9471 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9473 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9475 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9476 when -m{code,data}-region are used without -mlarge.
9477 * config/msp430/msp430.c (msp430_option_override): Error when a
9478 non-default code or data region is used without -mlarge.
9479 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9480 attributes when they are used without -mlarge.
9482 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9485 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9487 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9490 * wide-int.h (generic_wide_int::sext_elt): New function.
9491 * inchash.h (hash::add_wide_int): Use it instead of elt.
9493 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9495 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9497 * config/arm/arm.md (<crc_variant>): Rename to...
9498 (arm_<crc_variant>): ... This.
9499 (<cdp>): Rename to...
9500 (arm_<cdp>): ... This.
9501 (<ldc>): Rename to...
9502 (arm_<ldc>): ... This.
9503 (<stc>): Rename to...
9504 (arm_<stc>): ... This.
9505 (<mcr>): Rename to...
9506 (arm_<mcr>): ... This.
9507 (<mrc>): Rename to...
9508 (arm_<mrc>): ... This.
9509 (<mcrr>): Rename to...
9510 (arm_<mcrr>): ... This.
9511 (<mrrc>): Rename to...
9512 (arm_<mrrc>): ... This.
9514 2019-07-29 Richard Biener <rguenther@suse.de>
9516 PR tree-optimization/91257
9517 * tree-ssa-sccvn.h (struct vn_avail): New.
9518 (struct vn_ssa_aux): Add avail member.
9519 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9520 member, add m_avail_freelist one.
9521 (rpo_elim::~rpo_elim): Remove.
9522 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9524 (rpo_elim::eliminate_push_avail): Likewise.
9525 (do_unwind): Likewise.
9526 (do_rpo_vn): Likewise.
9528 2019-07-29 Richard Biener <rguenther@suse.de>
9530 PR tree-optimization/91257
9531 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9532 most cases, instead call compare_values which handles the
9533 symbolic ranges we handle specially.
9534 (compare_values_warnv): Do not call operand_less_p but open-code
9535 the effective fold calls. Avoid converting so much.
9537 2019-07-29 Martin Liska <mliska@suse.cz>
9539 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9540 remove LHS of operator new call. It's handled latter.
9542 2019-07-29 Richard Biener <rguenther@suse.de>
9544 PR tree-optimization/91267
9545 * vr-values.c (vr_values::update_value_range): Add early return
9546 for effectively VARYING lattice entry.
9548 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9551 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9552 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9553 necessary if keep_all_vdefs_p is true.
9554 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9555 that keep_all_vdefs_p is false.
9556 (mark_all_reaching_defs_necessary): Likewise.
9557 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9559 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9561 * common.opt (Og): Change the initial value of flag_dse to 0.
9562 * opts.c (default_options_table): Move OPT_ftree_dse from
9563 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9564 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9565 entry before the OPT_ftree_sra entry.
9566 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9567 of flags disabled by Og.
9569 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9571 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9574 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9576 * doc/sourcebuild.texi (check-function-bodies): Document.
9578 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9580 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9581 VEC_DUPLICATE of a fixed-length vector even if the result
9582 is variable-length. Likewise fold a duplicate of a
9583 variable-length vector if the variable-length vector is
9584 itself a duplicate of a fixed-length sequence.
9585 (test_vector_ops_duplicate): Test more cases.
9587 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9589 * vector-builder.h (vector_builder): Add a shape template parameter.
9590 (vector_builder::new_unary_operation): New function, generalizing
9591 the old tree_vector_builder function.
9592 (vector_builder::new_binary_operation): Likewise.
9593 (vector_builder::binary_encoded_nelts): Likewise.
9594 * int-vector-builder.h (int_vector_builder): Update template
9595 parameters to vector_builder.
9596 (int_vector_builder::shape_nelts): New function.
9597 * rtx-vector-builder.h (rtx_vector_builder): Update template
9598 parameters to vector_builder.
9599 (rtx_vector_builder::shape_nelts): New function.
9600 (rtx_vector_builder::nelts_of): Likewise.
9601 (rtx_vector_builder::npatterns_of): Likewise.
9602 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9603 * tree-vector-builder.h (tree_vector_builder): Update template
9604 parameters to vector_builder.
9605 (tree_vector_builder::shape_nelts): New function.
9606 (tree_vector_builder::nelts_of): Likewise.
9607 (tree_vector_builder::npatterns_of): Likewise.
9608 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9609 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9610 (tree_vector_builder::new_binary_operation): Delete.
9611 (tree_vector_builder::binary_encoded_nelts): Likewise.
9612 * simplify-rtx.c: Include rtx-vector-builder.h.
9613 (distributes_over_addition_p): New function.
9614 (simplify_const_unary_operation)
9615 (simplify_const_binary_operation): Generalize handling of vector
9616 constants to include variable-length vectors.
9617 (test_vector_ops_series): Add more tests.
9619 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9622 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9623 than INDENTIFIER_POINTER.
9625 2019-07-28 Martin Liska <mliska@suse.cz>
9628 * cgraph.c (symbol_table::create_edge): Always allocate
9630 (symbol_table::free_edge): Store summary_id to
9631 edge_released_summary_ids if != -1;
9632 * cgraph.h (NEXT_FREE_NODE): Remove.
9633 (SET_NEXT_FREE_NODE): Likewise.
9634 (NEXT_FREE_EDGE): Likewise.
9635 (symbol_table::release_symbol): Store summary_id to
9636 cgraph_released_summary_ids if != -1;
9637 (symbol_table::allocate_cgraph_symbol): Always allocate
9640 2019-07-28 Alan Modra <amodra@gmail.com>
9642 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9645 2019-07-28 Alan Modra <amodra@gmail.com>
9648 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9650 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9651 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9652 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9654 2019-07-28 Alan Modra <amodra@gmail.com>
9657 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9658 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9659 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9660 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9661 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9662 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9663 in asm_default spec.
9664 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9665 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9667 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9669 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9671 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9674 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9675 * config/aarch64/aarch64-option-extensions.def: Add new comments
9676 and restore easier to read options.
9678 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9680 * convert.c (convert_to_real_1): Move part of conversion code...
9681 * match.pd: ...To here.
9683 2019-07-26 Martin Jambor <mjambor@suse.cz>
9686 * ipa-inline-transform.c (check_speculations_1): New function.
9687 (push_all_edges_in_set_to_vec): Likewise.
9688 (check_speculations): Use check_speculations_1, new parameter
9690 (inline_call): Pass new_edges to check_speculations.
9691 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9693 (speculation_useful_p): Early return true if edge is inlined, remove
9694 later checks for inline_failed.
9696 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9698 PR rtl-optimization/91223
9699 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9700 matching with INOUT operand.
9702 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9704 * stmt.c (expand_case): Try to narrow the index type if it's larger
9705 than a word. Tidy up.
9707 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9709 * cif-code.def (NEVER_CALL): New code.
9710 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9711 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9713 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9715 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9716 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9718 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9720 * ipa-devirt.c (add_type_duplicate): Fix return value.
9722 2019-07-25 Richard Biener <rguenther@suse.de>
9724 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9725 type parameter and use it instead of guessing expression
9726 type from the first operand.
9727 (extract_range_from_binary_expr): Pass expr_type down.
9729 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9731 * config/arm/arm.md (SATrev): Change to code attribute.
9732 (*satsi_<SAT:code>): Adjust for the above.
9733 (*satsi_<SAT:code>_shift): Likewise.
9735 2019-07-25 Richard Biener <rguenther@suse.de>
9737 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9738 Make value_range * temporary const.
9739 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9741 (evrp_range_analyzer::record_ranges_from_): Likewise.
9742 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9743 deal with having recorded a const one.
9744 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9745 Return a const value_range *.
9746 (evrp_range_analyzer::pop_value_range): Likewise.
9747 (evrp_range_analyzer::stack): Record const value_range *s.
9748 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9750 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9751 (format_integer): Likewise.
9752 (sprintf_dom_walker::handle_gimple_call): Likewise.
9753 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9754 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9755 (vrp_prop::get_value_range): Adjust.
9756 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9757 modifying the lattice in-place.
9758 (vrp_prop::visit_stmt): Likewise.
9759 * vr-values.c (vr_values::get_lattice_entry): New private method.
9760 (vr_values::get_value_range): Wrap it and return a const
9762 (vr_values::set_def_to_varying): New.
9763 (vr_values::set_defs_to_varying): Use it.
9764 (vr_values::update_value_range): Likewise.
9765 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9766 (values::op_with_constant_singleton_va): Likewise.
9767 (vr_values::extract_range_for_var_from_co): Likewise.
9768 (vr_values::extract_range_from_ssa_name): Likewise.
9769 (vr_values::extract_range_from_cond_expr): Likewise.
9770 (vr_values::extract_range_basic): Likewise.
9771 (compare_ranges): Take const value_range *, adjust.
9772 (compare_range_with_value): Likewise.
9773 (vrp_valueize): Adjust.
9774 (vrp_valueize_1): Likewise.
9775 (vr_values::get_vr_for_comparison): Return a const value_range *.
9776 (vr_values::compare_name_with_value): Adjust.
9777 (vr_values::compare_names): Likewise.
9778 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9780 (vr_values::vrp_evaluate_conditional): Likewise.
9781 (find_case_label_ranges): Take a const value_range *.
9782 (vr_values::vrp_visit_switch_stmt): Adjust.
9783 (vr_values::extract_range_from_phi_node): Likewise.
9784 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9785 (vr_values::simplify_abs_using_ranges): Likewise.
9786 (test_for_singularity): Take a const value_range *.
9787 (range_fits_type_p): Likewise.
9788 (vr_values::simplify_cond_using_ranges_1): Adjust.
9789 (vr_values::simplify_cond_using_ranges_2): Likewise.
9790 (vr_values::simplify_switch_using_ranges): Likewise.
9791 (vr_values::simplify_float_conversion_usi): Likewise.
9792 (vr_values::two_valued_val_range_p): Likewise.
9793 * vr-values.h (vr_values::get_value_range): Return a const
9795 (vr_values::set_def_to_varying): New.
9796 (vr_values::get_lattice_entry): New private method.
9797 (vr_values::get_vr_for_comparison): Return a const value_range *.
9799 2019-07-25 Martin Liska <mliska@suse.cz>
9800 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9803 * common.opt: Add -fallocation-dce
9804 * gimple.c (gimple_call_operator_delete_p): New.
9805 * gimple.h (gimple_call_operator_delete_p): Likewise.
9806 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9807 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9808 DECL_IS_OPERATOR_DELETE_P.
9809 (mark_all_reaching_defs_necessary_1): Likewise.
9810 (propagate_necessity): Likewise.
9811 (eliminate_unnecessary_stmts): Handle
9812 gimple_call_operator_delete_p.
9813 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9814 Add packing of OPERATOR_DELETE.
9815 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9817 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9818 (DECL_SET_IS_OPERATOR_DELETE): New.
9819 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9821 2019-07-25 Martin Liska <mliska@suse.cz>
9823 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9824 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9825 * coverage.c (coverage_begin_function): Likewise.
9826 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9827 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9828 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9829 (sem_item::hash_referenced_symbol_properties): Likewise.
9830 * lto-streamer-out.c (hash_tree): Likewise.
9831 * predict.c (expr_expected_value_1): Likewise.
9832 * tree-inline.c (expand_call_inline): Likewise.
9833 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9834 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9835 * tree-core.h (enum function_decl_type): New enum.
9836 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9837 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9838 (set_function_decl_type): Likewise.
9839 (DECL_IS_OPERATOR_NEW_P): New.
9840 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9841 (DECL_LAMBDA_FUNCTION): Likewise.
9842 (DECL_LAMBDA_FUNCTION_P): Likewise.
9843 (DECL_IS_OPERATOR_NEW): Remove.
9844 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9846 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9848 * ipa-profile.c (get_most_common_single_value): Use
9849 get_nth_most_common_value.
9850 * profile.c (sort_hist_value): New function.
9851 (compute_value_histograms): Call sort_hist_value to sort the
9852 values after loading from disk.
9853 * value-prof.c (get_most_common_single_value): Rename to ...
9854 get_nth_most_common_value. Add input params n, return
9855 the n_th value and count.
9856 (gimple_divmod_fixed_value_transform): Use
9857 get_nth_most_common_value.
9858 (gimple_ic_transform): Likewise.
9859 (gimple_stringops_transform): Likewise.
9860 * value-prof.h (get_most_common_single_value): Add input params
9863 2019-07-25 Richard Biener <rguenther@suse.de>
9865 PR tree-optimization/91236
9866 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9867 size of CONSTRUCTOR write. Fix buffer size we pass to
9870 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9872 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9873 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9876 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9878 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9879 explicitly disabled with --disable-initfini-array.
9881 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9883 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9886 2019-07-24 Martin Sebor <msebor@redhat.com>
9888 PR tree-optimization/91183
9889 PR tree-optimization/86688
9890 * builtins.c (compute_objsize): Handle MEM_REF.
9891 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9892 (get_min_string_length): Remove.
9893 (count_nonzero_bytes): New function.
9894 (handle_char_store): Rename...
9895 (handle_store): to this. Handle multibyte stores via integer types.
9896 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9899 2019-07-24 Martin Sebor <msebor@redhat.com>
9902 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9903 (diagnostic_report_diagnostic): Same.
9904 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9905 (diagnostic_context::lang_mask): New data member.
9906 * ipa-pure-const.c (suggest_attribute): Use
9907 lang_hooks.option_lang_mask ().
9908 * opts-common.c (option_enabled): Handle new argument.
9909 (get_option_state): Pass an additional argument.
9910 * opts.c (print_filtered_help): Print supported languages for
9911 unsupported options. Adjust printing of current state.
9912 * opts.h (option_enabled): Add argument.
9913 * toplev.c (print_switch_values): Use lang_mask.
9914 (general_init): Set global_dc->lang_mask.
9916 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9919 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9921 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9923 * cgraphunit.c (symbol_table::compile): Start and stop
9924 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9925 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9927 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9929 * gimplify.c (flag_instrument_functions_exclude_p): Include
9930 namespace/class information in the printable name.
9931 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9932 to tokens entered into the vector.
9934 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9936 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9937 (get_static_chain): Call it instead of build_simple_mem_ref.
9938 (get_frame_field): Likewise.
9939 (get_nonlocal_debug_decl): Likewise.
9940 (convert_nonlocal_reference_op): Likewise.
9942 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9944 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9946 (arc_compute_frame_size): Millicode is disabled when compiling
9948 (arc_return_address_register): Likewise.
9949 (arc_compute_function_type): Likewise.
9950 (arc_compute_frame_size): Likewise.
9951 (secondary_reload_info): Likewise.
9952 (arc_get_unalign): Likewise.
9953 (arc_can_use_return_insn): Declare.
9954 * config/arc/arc.c (AUX_LP_START): Define
9955 (AUX_LP_END): Likewise.
9956 (arc_frame_info): Update gmask member to 64-bit datum.
9957 (GMASK_LEN): Update.
9958 (arc_compute_function_type): Make it static, move it forward.
9959 (arc_must_save_register): Update, consider the extra regs.
9960 (arc_compute_millicode_save_restore_regs): Update to use the 64
9962 (arc_compute_frame_size): Likewise.
9963 (arc_enter_leave_p): Likewise.
9964 (arc_save_callee_saves): Likewise.
9965 (arc_restore_callee_saves): Likewise.
9966 (arc_save_callee_enter): Likewise.
9967 (arc_restore_callee_leave): Likewise.
9968 (arc_save_callee_milli): Likewise.
9969 (arc_restore_callee_milli): Likewise.
9970 (arc_expand_prologue): Add new interrupt handling.
9971 (arc_return_address_register): Make it static, move it forward.
9972 (arc_expand_epilogue): Add new interrupt handling.
9973 (arc_get_unalign): Delete.
9974 (arc_epilogue_uses): Make sure we do not remove the extra
9975 saved/restored registers when interrupt.
9976 (arc_can_use_return_insn): New function.
9977 (push_reg): Likewise.
9978 (pop_reg): Likewise.
9979 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9981 (arc_restore_callee_saves): Likewise, but restoring.
9982 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9983 (R33_REG): Likewise.
9984 (R34_REG): Likewise.
9985 (R35_REG): Likewise.
9986 (R36_REG): Likewise.
9987 (R37_REG): Likewise.
9988 (R38_REG): Likewise.
9989 (R39_REG): Likewise.
9990 (R45_REG): Likewise.
9991 (R46_REG): Likewise.
9992 (R47_REG): Likewise.
9993 (R48_REG): Likewise.
9994 (R49_REG): Likewise.
9995 (R50_REG): Likewise.
9996 (R51_REG): Likewise.
9997 (R52_REG): Likewise.
9998 (R53_REG): Likewise.
9999 (R54_REG): Likewise.
10000 (R55_REG): Likewise.
10001 (R56_REG): Likewise.
10002 (R58_REG): Likewise.
10003 (type): Add rtie attribute.
10004 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10005 (movsi_insn): Accept moves to lp_count.
10006 (rtie): Update pattern.
10007 (simple_return): Simplify it, don't use this pattern as a return
10009 (arc600_rtie): New pattern.
10010 (p_return_i): Clean up.
10011 (return): Likewise.
10012 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10014 * config/arc/predicates.md (move_src_operand): Consider lp_count
10017 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10019 * config/s390/predicates.md (addv_const_operand): New predicate.
10020 * config/s390/s390-modes.def (CCO): New condition code mode.
10021 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10022 (s390_branch_condition_mask): Likewise.
10023 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10024 ("mulv<mode>4"): New expanders.
10025 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10026 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10027 pattern definitions.
10029 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10031 PR middle-end/91166
10032 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10033 (define_predicates): Add entry for uniform_vector_p.
10034 (vec_same_elem_p): New match pattern.
10036 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10039 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10040 * config/i386/darwin32-biarch.h .. to here.
10041 * config/i386/darwin64-biarch.h: Adjust comments.
10042 * config/rs6000/darwin32-biarch.h: Likewise.
10043 * config/rs6000/darwin64-biarch.h: Likewise.
10044 * config.gcc: Missed commit from r273746
10045 (*-*-darwin*): Don't include CPU t-darwin here.
10046 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10047 an error message if i686-darwin configuration is attempted for
10050 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10053 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10054 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10055 an error message if i686-darwin configuration is attempted for
10057 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10058 (powerpc-*-darwin*): Use biarch files where needed.
10059 (powerpc64-*-darwin*): Likewise.
10060 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10061 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10063 * config/i386/darwin32-biarch.h: New.
10064 * config/i386/darwin64.h: Rename.
10065 * config/i386/darwin64-biarch.h: To this.
10066 * config/i386/t-darwin: Rename.
10067 * config/i386/t-darwin32-biarch: To this.
10068 * config/i386/t-darwin64: Rename.
10069 * config/i386/t-darwin64-biarch: To this.
10070 * config/rs6000/darwin32-biarch.h: New.
10071 * config/rs6000/darwin64.h: Rename.
10072 * config/rs6000/darwin64-biarch.h: To this.
10073 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10075 * config/rs6000/t-darwin8: Rename.
10076 * config/rs6000/t-darwin32-biarch: To this.
10077 * config/rs6000/t-darwin64 Rename.
10078 * config/rs6000/t-darwin64-biarch: To this.
10080 2019-07-23 Martin Sebor <msebor@redhat.com>
10082 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10084 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10086 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10087 (rh): New alias for it.
10089 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10091 * gdbhooks.py: Pass replace=True to
10092 gdb.printing.register_pretty_printer.
10094 2019-07-23 Richard Biener <rguenther@suse.de>
10097 * lto-streamer-in.c (input_function): Drop inline-entry markers
10098 that ended up with an unknown location block.
10100 2019-07-23 Richard Biener <rguenther@suse.de>
10102 PR tree-optimization/83518
10103 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10104 init from a constant even when partial defs are already recorded.
10106 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10108 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10109 * config/i386/znver1.md: Enable patterns for znver2 and add store
10110 variants which use extra AGU unit.
10112 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10114 * config/i386/i386-options.c (ix86_option_override_internal): Default
10115 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10116 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10119 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10121 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10122 (znver2_costs): Update 256 bit SSE costs and multiplication.
10124 2019-07-23 Jan Beulich <jbeulich@suse.com>
10126 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10127 Require only AVX512F.
10128 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10129 alternative expanding to vpternlog.
10131 2019-07-23 Martin Liska <mliska@suse.cz>
10133 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10134 to -flto in dwarf producer string.
10136 2019-07-23 Richard Biener <rguenther@suse.de>
10138 * tree-cfg.c (label_for_bb): Remove global var.
10139 (main_block_label): Take label_for_bb as argument.
10140 (cleanup_dead_labels_eh): Likewise, adjust.
10141 (cleanup_dead_labels): Adjust.
10143 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10145 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10146 Configurations): Add documentation for __builtin_mtfsf.
10148 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10150 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10151 * config/riscv/riscv.c (riscv_constant_alignment): Use
10152 riscv_align_data_type.
10153 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10154 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10155 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10156 * config/riscv/riscv.opt (malign-data): New.
10157 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10159 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10161 * cgraph.c (dump_graphviz): New function.
10162 * cgraph.h (dump_graphviz): New function.
10163 * symtab.c (dump_graphviz): New function.
10165 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10167 * config/aarch64/aarch64-simd.md
10168 (*aarch64_simd_sra<mode>): New.
10169 * config/aarch64/iterators.md
10170 (SHIFTRT): New iterator.
10171 (sra_op): New attribute.
10173 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10175 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10176 callee-saved regs R4->R10 in an interrupt function that calls another
10179 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10181 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10182 (_mm_blendv_epi8): New.
10184 2019-07-22 Richard Biener <rguenther@suse.de>
10186 PR tree-optimization/91221
10187 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10188 restrict partial-def handling of empty constructors and
10189 memset to refs with known offset.
10191 2019-07-22 Jan Beulich <jbeulich@suse.com>
10193 * config/i386/sse.md (ternlogsuffix): New.
10194 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10196 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10198 2019-07-22 Martin Liska <mliska@suse.cz>
10200 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10202 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10204 2019-07-22 Martin Liska <mliska@suse.cz>
10206 * lto-section-in.c (lto_get_section_data):
10207 Use new function get_compression.
10208 * lto-streamer-out.c (produce_lto_section): Use
10209 set_compression to encode compression algorithm.
10210 * lto-streamer.h (struct lto_section): Do not
10211 use bitfields in the format.
10213 2019-07-22 Martin Liska <mliska@suse.cz>
10216 * opts-common.c (decode_cmdline_option): Decode
10217 argument of -Werror and check it for a wrong language.
10218 * opts-global.c (complain_wrong_lang): Remove such case.
10220 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10222 * config/arc/arc.c (prepare_move_operands): Always use an
10223 intermediate register when storing a TLS symbols.
10225 2019-07-22 Stafford Horne <shorne@gmail.com>
10227 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10230 2019-07-22 Stafford Horne <shorne@gmail.com>
10232 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10233 and munordered-float validations.
10234 * config/or1k/constraints.md (d): New register constraint.
10235 * config/or1k/predicates.md (fp_comparison_operator): New.
10236 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10238 (or1k_expand_compare): Normalize unordered comparisons.
10239 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10240 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10241 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10242 * config/or1k/or1k.md (type): Add fpu.
10243 (fpu): New instruction reservation.
10244 (F, f, fr, fi, FI, FOP, fop): New.
10245 (<fop><F:mode>3): New ALU instruction definition.
10246 (float<fi><F:mode>2): New conversion instruction definition.
10247 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10248 (fpcmpcc): New code iterator.
10249 (*sf_fp_insn): New instruction definition.
10250 (cstore<F:mode>4): New expand definition.
10251 (cbranch<F:mode>4): New expand definition.
10252 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10253 munordered-float): New options.
10254 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10257 2019-07-22 Stafford Horne <shorne@gmail.com>
10259 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10260 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10261 documenation to be more clear.
10262 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10264 * config/or1k/or1k.opt (mrori): New option.
10265 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10266 msfimm, mshftimm): Rewrite documentation to be more clear.
10267 * config/or1k/or1k.md (insn_support): Add ror and rori.
10268 (enabled): Add conditions for ror and rori.
10269 (rotrsi3): Replace condition for shftimm with ror and rori.
10271 2019-07-22 Stafford Horne <shorne@gmail.com>
10274 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10275 (extend<mode>si2): Update predicate.
10276 * config/or1k/predicates.md (volatile_mem_operand): New.
10277 (reg_or_mem_operand): New.
10279 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10281 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10282 * config/rs6000/rs6000-call.c: ... to here.
10284 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10286 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10289 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10291 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10293 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10295 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10297 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10299 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10300 (any_memory_operand): New predicate.
10301 (reg_or_mem_operand): Use it.
10303 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10306 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10308 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10310 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10311 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10313 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10315 * tree.def (OMP_LOOP): New tree code.
10316 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10317 (enum omp_clause_bind_kind): New enum.
10318 (struct tree_omp_clause): Add subcode.bind_kind.
10319 * tree.h (OMP_LOOP_CHECK): Rename to ...
10320 (OMP_LOOPING_CHECK): ... this.
10321 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10322 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10323 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10324 (OMP_CLAUSE_BIND_KIND): Define.
10325 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10326 bind clause entries.
10327 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10328 * tree-pretty-print.c (dump_omp_clause): Likewise.
10329 (dump_generic_node): Handle OMP_LOOP.
10330 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10331 (in_omp_construct): New variable.
10332 (is_gimple_stmt): Handle OMP_LOOP.
10333 (gimplify_scan_omp_clauses): For lastprivate don't set
10334 check_non_private if code == OMP_LOOP. For reduction clause
10335 on OMP_LOOP combined with parallel or teams propagate as shared
10336 on the combined construct. Handle OMP_CLAUSE_BIND.
10337 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10338 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10339 for constructs from a loop construct to gimplify_scan_omp_clauses.
10340 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10341 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10342 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10343 to match the implicit ORT_TARGET construct around whole body.
10344 Temporarily clear in_omp_construct when processing body.
10345 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10346 etc. temporarily set in_omp_construct when processing body.
10347 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10348 * omp-low.c (struct omp_context): Add loop_p.
10349 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10350 in that the original var might be private.
10351 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10352 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10353 addition of loop construct.
10354 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10356 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10357 lastprivate non-addressable iterator of a collapse(1) simd.
10359 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10361 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10364 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10366 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10367 refer to default conditions. Warn for the 'y' spec which is ignored
10368 by current linkers.
10370 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10372 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10373 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10374 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10375 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10376 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10377 init_cumulative_args, rs6000_promote_function_mode,
10378 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10379 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10380 rs6000_function_arg_boundary, rs6000_parm_offset,
10381 rs6000_parm_start, rs6000_arg_size,
10382 rs6000_darwin64_record_arg_advance_flush,
10383 rs6000_darwin64_record_arg_advance_recurse,
10384 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10385 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10386 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10387 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10388 rs6000_finish_function_arg, rs6000_function_arg,
10389 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10390 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10391 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10392 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10393 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10394 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10395 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10396 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10397 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10398 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10399 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10400 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10401 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10402 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10403 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10404 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10405 get_element_number, altivec_expand_vec_set_builtin,
10406 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10407 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10408 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10409 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10410 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10411 rs6000_expand_builtin, rs6000_vector_type,
10412 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10413 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10414 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10416 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10417 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10418 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10419 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10420 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10421 init_cumulative_args, rs6000_promote_function_mode,
10422 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10423 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10424 rs6000_function_arg_boundary, rs6000_parm_offset,
10425 rs6000_parm_start, rs6000_arg_size,
10426 rs6000_darwin64_record_arg_advance_flush,
10427 rs6000_darwin64_record_arg_advance_recurse,
10428 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10429 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10430 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10431 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10432 rs6000_finish_function_arg, rs6000_function_arg,
10433 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10434 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10435 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10436 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10437 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10438 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10439 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10440 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10441 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10442 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10443 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10444 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10445 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10446 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10447 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10448 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10449 get_element_number, altivec_expand_vec_set_builtin,
10450 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10451 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10452 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10453 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10454 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10455 rs6000_expand_builtin, rs6000_vector_type,
10456 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10457 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10458 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10459 to here from rs6000.c.
10460 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10461 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10462 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10463 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10464 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10465 rs6000_return_in_memory, rs6000_return_in_msb,
10466 rs6000_pass_by_reference, setup_incoming_varargs,
10467 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10468 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10469 rs6000_function_arg_padding, rs6000_function_arg,
10470 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10471 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10472 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10473 rs6000_passes_long_double, rs6000_passes_vector,
10474 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10475 altivec_builtin_mask_for_load) Add declarations.
10476 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10477 * config/config.gcc: Add new source file rs6000-call.c to garbage
10478 collector and extra_objs.
10480 2019-07-19 Jeff Law <law@redhat.com>
10482 PR tree-optimization/86061
10483 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10484 strncpy. Drop some trivial dead code.
10485 (maybe_trim_memstar_call): Handle strncpy.
10487 2019-07-19 Richard Biener <rguenther@suse.de>
10489 PR tree-optimization/91211
10490 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10491 memset encoding size.
10493 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10496 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10498 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10501 * ipa-inline.c (recursive_inlining): Fix limits check.
10503 2019-07-19 Richard Biener <rguenther@suse.de>
10505 PR tree-optimization/91200
10506 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10507 no PHI nodes in middle-bb.
10509 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10511 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10513 * config/aarch64/aarch64-option-extensions.def: Likewise.
10515 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10517 PR middle-end/91190
10518 * function.c (insert_temp_slot_address): Store into the hash table
10519 a copy of address to avoid RTL sharing issues.
10521 2019-07-19 Richard Biener <rguenther@suse.de>
10523 PR tree-optimization/91207
10525 2019-07-17 Richard Biener <rguenther@suse.de>
10527 PR tree-optimization/91178
10528 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10529 loads with a gap larger than the vector size always use
10531 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10532 avoid loading vectors that are only contained in the gap
10533 and thus are not needed.
10535 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10537 * config/i386/i386.md (*addqi_2_slp): Remove.
10538 (*<code>qi_2_slp): Ditto.
10540 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10542 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10543 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10544 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10545 Rename function from rs6000_prefixed_address.
10546 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10548 (TARGET_TOC): Likewise.
10549 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10551 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10553 (TARGET_TOC): Likewise.
10554 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10556 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10558 (TARGET_TOC): Likewise.
10559 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10560 check to require -mcmodel=medium for pc-relative addressing.
10561 (create_TOC_reference): Add assertion for TARGET_TOC.
10562 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10564 (rs6000_emit_move): Likewise.
10565 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10566 to 'TOC_alias_set'.
10567 (get_TOC_alias_set): Likewise.
10568 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10570 (rs6000_can_eliminate): Likewise.
10571 (rs6000_prefixed_address_mode_p): Rename function from
10572 rs6000_prefixed_address.
10573 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10574 TARGET_HAS_TOC and not pc-relative.
10575 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10576 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10578 (TARGET_TOC): Likewise.
10579 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10582 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10585 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10586 for operand 0. Do not use (match_dup) to match operand 1 with
10587 operand 0. Add check in insn constraint that either input operand
10588 matches operand 0. Use SWI12 mode iterator to also handle
10590 (*and<mode>_1_slp): Ditto.
10591 (*<code>qi_1_slp): Ditto.
10592 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10593 Do not use (match_dup) to match operand 1 with operand 0. Add
10594 check in insn constraint that operand 1 matches operand 0.
10595 Use SWI12 mode iterator to also handle HImode operands.
10596 (*ashl<mode>3_1_slp): Ditto.
10597 (*<shift_insn><mode>3_1_slp): Ditto.
10598 (*<rotate_insn><mode>3_1_slp): Ditto.
10600 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10602 * config/arm/arm-builtins.c
10603 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10604 (arm_expand_unop_builtin): Likewise.
10605 * config/arm/crypto.md
10606 (crypto_sha1h): Convert from define_insn to define_expand.
10607 (crypto_<crypto_pattern>): Likewise.
10608 (crypto_sha1h_lb): New define_insn.
10609 (crypto_<crypto_pattern>_lb): Likewise.
10611 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10614 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10615 (vsha1cq_u32): Likewise.
10616 (vsha1pq_u32): Likewise.
10617 (vsha1mq_u32): Likewise.
10618 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10620 (crypto_sha1c): Correct vec select.
10621 (crypto_sha1m): Likewise.
10622 (crypto_sha1p): Likewise.
10624 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10626 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10627 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10628 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10629 (subdi_zesidi_zesidi): Likewise.
10630 (negdi2_compare, negdi2_insn): Likewise.
10631 (negdi_extensidi): Likewise.
10632 (negdi_zero_extendsidi): Likewise.
10633 (arm_cmpdi_insn): Likewise.
10634 (subsi3_carryin): Use arm_borrow_operation.
10635 (subsi3_carryin_const): Likewise.
10636 (subsi3_carryin_const0): Likewise.
10637 (subsi3_carryin_compare): Likewise.
10638 (subsi3_carryin_compare_const): Likewise.
10639 (subsi3_carryin_compare_const0): Likewise.
10640 (subsi3_carryin_shift): Likewise.
10641 (rsbsi3_carryin_shift): Likewise.
10642 (negsi2_carryin_compare): Likewise.
10644 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10646 PR tree-optimization/91137
10647 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10648 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10649 Init, use and fini the above new field.
10650 (determine_base_object_1): New function.
10651 (determine_base_object): Reimplement using walk_tree.
10653 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10655 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10656 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10657 CLEANUP_FORCE_FAST_DCE is set.
10658 * ifcvt.c (rest_of_handle_if_conversion): Pass
10659 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10660 if-conversion succeeded.
10662 2019-07-18 Richard Biener <rguenther@suse.de>
10664 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10665 branches to make code less indented.
10667 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10669 PR middle-end/81824
10670 * attribs.c (decls_mismatched_attributes): Simplify the logic
10671 that avoids duplicates and false positives.
10673 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10675 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10676 data into data section when generating PIC code.
10677 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10678 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10679 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10680 return 2 for SOM and 0 for other targets.
10682 2019-07-17 Jeff Law <law@redhat.com>
10684 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10685 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10686 avoid unexpected switch statement fallthru.
10688 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10690 * config/i386/i386.md (*add<dwi>3_doubleword):
10691 Remove redundant constraints.
10692 (*add<mode>_1): Ditto.
10695 (*addqi_1_slp): Ditto.
10696 (*add<mode>_2): Ditto.
10697 (*addv<mode>4): Ditto.
10698 (*sub<dwi>3_doubleword): Ditto.
10699 (*sub<mode>_1): Ditto.
10700 (*subqi_1_slp): Ditto.
10701 (*sub<mode>_2): Ditto.
10702 (*subv<mode>4): Ditto.
10703 (*sub<mode>_3): Ditto.
10704 (@add<mode>3_carry): Ditto.
10705 (@sub<mode>3_carry): Ditto.
10706 (*add<mode>3_cc_overflow_1): Ditto.
10707 (*add<mode>3_zext_cc_overflow_2): Ditto.
10709 (*and<mode>_1): Ditto.
10711 (*andqi_1_slp): Ditto.
10713 (*andqi_2_maybe_si): Ditto.
10714 (*and<mode>_2): Ditto.
10715 (*andqi_2_slp): Ditto.
10716 (*<code><mode>_1): Ditto.
10717 (*<code>qi_1): Ditto.
10718 (*<code>qi_1_slp): Ditto.
10719 (*<code><mode>_2): Ditto.
10720 (*<code>qi_2_slp): Ditto.
10722 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10724 * alias.c (record_component_aliases): Do not simplify pointed-to
10725 types of ODR types.
10727 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10729 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10730 partial reg stall on alternative 2.
10732 2019-07-17 Richard Biener <rguenther@suse.de>
10734 PR tree-optimization/91178
10735 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10736 lower SSA names to avoid quadratic behavior in the common case.
10737 * tree-data-ref.c (split_constant_offset): Add limit argument
10738 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10739 (split_constant_offset_1): Add limit argument and use it to
10740 limit SSA def walking. Optimize the common plus/minus case.
10742 2019-07-17 Richard Biener <rguenther@suse.de>
10744 PR tree-optimization/91178
10745 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10746 loads with a gap larger than the vector size always use
10748 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10749 avoid loading vectors that are only contained in the gap
10750 and thus are not needed.
10752 2019-07-17 Richard Biener <rguenther@suse.de>
10754 PR tree-optimization/91180
10755 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10756 computation for memset partial defs.
10758 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10760 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10761 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10762 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10763 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10764 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10765 * omp-grid.c (grid_process_grid_body,
10766 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10767 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10768 == GF_OMP_FOR_KIND_SIMD.
10769 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10770 check_omp_nesting_restrictions, scan_omp_1_stmt,
10771 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10772 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10773 omp_find_scan): Likewise.
10774 * omp-expand.c (expand_omp_for): Likewise.
10775 * omp-general.c (omp_extract_for_data): Likewise.
10777 PR tree-optimization/91157
10778 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10779 a vector boolean with scalar mode.
10780 (expand_vector_condition): Handle first operand being a vector boolean
10782 (expand_vector_operations_1): For comparisons, don't bail out early
10783 if the return type is vector boolean with scalar mode, but comparison
10784 operand type is not.
10786 2019-07-17 Richard Biener <rguenther@suse.de>
10788 PR tree-optimization/91181
10789 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10790 IFN_LOADs as calls.
10792 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10794 * config/i386/i386.md (*testdi_1): Match CCZmode for
10795 constants that might have the SImode sign bit set.
10796 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10797 Use correct constraints for pentium pairing.
10798 (*test<mode>_1): Ditto.
10800 2019-07-16 Jeff Law <law@redhat.com>
10802 PR rtl-optimization/91173
10803 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10804 SSA_NAME with a constant value, fold its value into the offset
10805 and clear the base before calling gen_addr_rtx.
10807 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10809 PR rtl-optimization/91164
10810 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10811 invalidate dominance info.
10813 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10815 * read-md.h (md_reader::record_potential_iterator_use): Add a
10816 file_location parameter.
10817 * read-rtl.c (attribute_use::loc): New field.
10818 (map_attr_string): Take a file_location parameter. Report cases
10819 in which attributes map to multiple distinct values.
10820 (apply_attribute_uses): Update call accordingly.
10821 (md_reader::handle_overloaded_name): Likewise.
10822 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10824 (record_attribute_use): Take a file_location parameter.
10825 Initialize attribute_use::loc.
10826 (md_reader::record_potential_iterator_use): Take a file_location
10827 parameter. Update call to record_attribute_use.
10828 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10829 (rtx_reader::read_rtx_code): Likewise.
10830 (rtx_reader::read_rtx_operand): Likewise. Record a location
10831 for implicitly-expanded empty strings.
10833 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10835 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10836 Use file_location instead of separate fields.
10837 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10838 separate filename and line number.
10839 * read-md.c (ptr_loc): As above.
10840 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10841 (md_reader::fprint_md_ptr_loc): Likewise.
10842 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10843 instead of a separate filename and line number.
10844 (md_reader::read_string): Update call accordingly.
10846 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10848 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10849 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10850 leaving the choice between SFDF and P implicit.
10851 (*mov<mode>_update2): Likewise.
10852 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10853 rather than leaving the choice betweem IBM128 and GPR implicit.
10854 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10855 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10857 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10858 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10859 * config/rs6000/vsx.md
10860 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10861 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10862 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10863 and VSX_EXTRACT_I implicit.
10865 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10867 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10868 Explicitly use <MOVEP1:MODE> for the mode attribute.
10870 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10873 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10875 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10878 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10879 .machine directive.
10881 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10883 * config/i386/i386.md (@test<mode>_ccno_1):
10884 Rename from test<mode>_ccno_1.
10885 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10886 (*testqi_1_maybe_si): Remove modrm attribute.
10887 (*test<mode>_1): Ditto.
10888 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10889 gen_test_ccno_1 and gen_extend_insn.
10891 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10893 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10896 2019-07-15 Richard Biener <rguenther@suse.de>
10898 PR middle-end/91162
10899 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10900 node make sure to replace all uses with something valid.
10902 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10904 PR tree-optimization/88497
10905 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10906 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10907 function undistribute_bitref_for_vector.
10908 (undistribute_bitref_for_vector): New function.
10909 (cleanup_vinfo_map): Likewise.
10910 (sort_by_mach_mode): Likewise.
10912 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10914 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10915 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10916 and testdi_ccno_1 using SWI48 mode attribute.
10917 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10918 x86_64_szext_general_operand.
10919 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10920 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10921 instead of genera_operand mode attribute.
10923 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10925 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10926 fopen and fclose to their respective types.
10927 (DotFn.invoke): Ditto.
10929 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10931 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10932 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10933 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10934 (array_index_predicate): Remove.
10935 (analyze_function_body): Account cost for variable ofsetted array
10937 (estimate_node_size_and_time): Do not compute array index hint.
10938 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10939 (inline_read_section): Do not read array index hint.
10940 (ipa_fn_summary_write): Do not write array index hint.
10941 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10942 * ipa-cp.c (hint_time_bonus): Remove.
10943 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10944 (ipa_fnsummary): Remove array_index.
10945 * ipa-inline.c (want_inline_small_function_p): Do not use
10947 (edge_badness): Likewise.
10948 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10950 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10953 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10954 superfluous "builtin function" phrasing.
10956 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10958 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10960 (aliasing_component_refs_walk): Break out from ...
10961 (aliasing_component_refs_p): ... here.
10963 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10966 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10967 "builtin function" phrasing.
10969 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10972 * recog.h (temporary_volatile_ok): New class.
10973 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10974 volatile_ok temporarily to true using temporary_volatile_ok.
10975 * expr.c (emit_block_move_via_cpymem): Likewise.
10976 * optabs.c (maybe_legitimize_operand): Likewise.
10978 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10980 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10981 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10982 uses inside of order(concurrent) constructs.
10983 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10984 OMP_CLAUSE_ORDER is seen.
10985 * omp-low.c (struct omp_context): Add order_concurrent member.
10986 (scan_sharing_clauses): Set ctx->order_concurrent if
10987 OMP_CLAUSE_ORDER is seen.
10988 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10989 of simd order(concurrent). Diagnose constructs not allowed inside of
10990 for order(concurrent).
10991 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10992 complaining about static double setjmp (double); or class static
10993 methods or non-global namespace setjmps.
10994 (omp_runtime_api_call): New function.
10995 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10996 order(concurrent) loops.
10998 2019-07-12 Martin Sebor <msebor@redhat.com>
11000 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11001 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11002 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11003 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11005 2019-07-12 Jan Hubicka <jh@suse.cz>
11007 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11008 (indirect_refs_may_alias_p): ... here.
11009 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11010 mem refs in the access paths.
11012 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11014 PR tree-optimization/89430
11015 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11016 store elimination for local variable without address escape.
11018 2019-07-12 Jeff Law <law@redhat.com>
11020 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11021 for the ".far" section.
11023 2019-07-12 Richard Biener <rguenther@suse.de>
11025 PR tree-optimization/91145
11026 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11029 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11031 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11032 rather than this_state as the lowering context for the ELSE
11033 seq in a GIMPLE_EH_ELSE.
11035 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11037 * vector-builder.h (vector_builder::elt): Allow already-supplied
11038 elements to be read back before building is complete.
11040 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11042 PR rtl-optimization/91136
11043 * df-core.c (ACCESSING REFS): Fix typos in comment.
11044 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11045 the beginning of the block to the initial set of live registers.
11047 2019-07-12 Richard Biener <rguenther@suse.de>
11049 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11050 * fold-const.c (get_array_ctor_element_at_index): Add
11051 ctor_idx output parameter informing the caller where in
11052 the constructor the element was (not) found. Add early exit
11053 for when the ctor is sorted.
11054 * gimple-fold.c (fold_array_ctor_reference): Support constant
11055 folding across multiple array elements.
11057 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11059 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11060 doesn't have location, set the current location to the function's end.
11062 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11064 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11065 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11066 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11067 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11068 * config/aarch64/aarch64-simd.md
11069 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11070 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11071 * config/aarch64/aarch64-sve.md
11072 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11073 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11075 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11077 * doc/md.texi: Document that @ patterns can have different
11078 numbers of operands.
11079 * genemit.c (handle_overloaded_gen): Handle this case.
11080 * genopinit.c (handle_overloaded_gen): Likewise.
11081 * gensupport.c (replace_operands_with_dups): Iterate over
11082 the new rtx's format rather than the old one's.
11084 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11086 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11087 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11088 order clause entries.
11089 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11090 * tree-pretty-print.c (dump_omp_clause): Likewise.
11091 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11093 * omp-low.c (scan_sharing_clauses): Likewise.
11094 * tree-nested.c (convert_nonlocal_omp_clauses,
11095 convert_local_omp_clauses): Likewise.
11097 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11099 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11100 fallthrough target of current basic block isn't the placed
11103 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11106 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11107 (_mm512_storeu_epi64): Likewise.
11108 (_mm512_loadu_epi32): Likewise.
11109 (_mm512_storeu_epi32): Likewise.
11110 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11111 (_mm_storeu_epi64): Likewise.
11112 (_mm256_storeu_epi32): Likewise.
11113 (_mm_storeu_epi32): Likewise.
11115 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11117 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11119 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11121 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11124 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11127 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11128 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11129 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11130 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11131 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11132 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11134 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11135 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11136 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11138 (sse2_cvttpd2dq<mask_name>): Change into ...
11139 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11140 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11141 (*sse2_cvtpd2dq<mask_name>): Change into ...
11142 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11143 Add "C" constraint to const0_operand.
11144 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11145 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11149 * config/i386/i386-builtin-types.def
11150 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11151 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11152 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11153 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11154 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11155 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11156 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11157 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11158 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11159 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11160 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11161 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11162 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11163 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11164 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11165 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11166 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11167 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11168 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11169 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11170 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11171 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11172 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11173 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11174 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11175 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11176 __builtin_ia32_vpdpbusd_v4si_maskz,
11177 __builtin_ia32_vpdpbusds_v16si_mask,
11178 __builtin_ia32_vpdpbusds_v16si_maskz,
11179 __builtin_ia32_vpdpbusds_v8si_mask,
11180 __builtin_ia32_vpdpbusds_v8si_maskz,
11181 __builtin_ia32_vpdpbusds_v4si_mask,
11182 __builtin_ia32_vpdpbusds_v4si_maskz,
11183 __builtin_ia32_vpdpwssd_v16si_mask,
11184 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11185 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11186 __builtin_ia32_vpdpwssd_v4si_maskz,
11187 __builtin_ia32_vpdpwssds_v16si_mask,
11188 __builtin_ia32_vpdpwssds_v16si_maskz,
11189 __builtin_ia32_vpdpwssds_v8si_mask,
11190 __builtin_ia32_vpdpwssds_v8si_maskz,
11191 __builtin_ia32_vpdpwssds_v4si_mask,
11192 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11193 suffixed types rather than *_INT.
11194 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11195 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11196 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11197 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11198 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11199 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11201 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11203 * tree-vrp.c (intersect_ranges): If we know the intersection is
11204 empty, there is no need to conservatively add anything else to
11207 2019-07-11 Richard Biener <rguenther@suse.de>
11209 PR middle-end/91131
11210 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11211 when the object is volatile and we have not cleared it even though
11212 there are no nonzero elements.
11214 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11216 * config/rs6000/predicates.md (cint34_operand): Update
11217 SIGNED_34BIT_OFFSET_P call.
11218 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11219 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11220 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11221 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11222 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11224 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11225 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11226 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11227 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11228 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11230 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11232 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11233 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11234 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11235 (DEF_MIN_OSX_VERSION): New.
11237 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11239 * fold-const.c (fold_relational_const): Fix folding of
11240 vector-to-scalar NE_EXPRs.
11241 (test_vector_folding): Add more tests.
11243 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11246 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11247 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11248 (vec_setv2di_internal): Reexpress as...
11249 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11250 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11251 rather than gen_neon_vset_lane<mode>.
11253 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11256 * lra-constraints.c (process_alt_operands): Don't match user
11257 defined regs only if they are early clobbers.
11259 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11261 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11263 2019-07-10 Richard Biener <rguenther@suse.de>
11265 PR tree-optimization/91126
11266 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11267 native encoding offset for BYTES_BIG_ENDIAN.
11268 (vn_reference_lookup_3): Likewise.
11270 2019-07-10 Richard Biener <rguenther@suse.de>
11272 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11273 LHS whenever possible.
11275 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11277 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11278 from ...; work also on duplicated types.
11279 (nonoverlapping_component_refs_since_match): ... here
11280 (ncr_type_uid): Break out from ...
11281 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11283 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11284 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11286 2019-07-09 Martin Sebor <msebor@redhat.com>
11288 PR tree-optimization/90989
11289 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11290 optimization to just single character stores.
11292 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11294 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11295 Swap operands only once.
11297 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11299 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11300 for both call instructions.
11302 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11304 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11305 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11307 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11309 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11310 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11311 function from rs6000-logue.c back to rs6000.c.
11312 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11314 2019-07-09 Martin Sebor <msebor@redhat.com>
11317 * auto-profile.c: Change class-key of PODs to struct and others
11319 * basic-block.h: Same.
11320 * bitmap.c (bitmap_alloc): Same.
11322 * builtins.c (expand_builtin_prefetch): Same.
11323 (expand_builtin_interclass_mathfn): Same.
11324 (expand_builtin_strlen): Same.
11325 (expand_builtin_mempcpy_args): Same.
11326 (expand_cmpstr): Same.
11327 (expand_builtin___clear_cache): Same.
11328 (expand_ifn_atomic_bit_test_and): Same.
11329 (expand_builtin_thread_pointer): Same.
11330 (expand_builtin_set_thread_pointer): Same.
11331 * caller-save.c (setup_save_areas): Same.
11332 (replace_reg_with_saved_mem): Same.
11333 (insert_restore): Same.
11334 (insert_save): Same.
11335 (add_used_regs): Same.
11336 * cfg.c (get_bb_copy): Same.
11337 (set_loop_copy): Same.
11340 * cfgexpand.c (alloc_stack_frame_space): Same.
11341 (add_stack_var): Same.
11342 (add_stack_var_conflict): Same.
11343 (add_scope_conflicts_1): Same.
11344 (update_alias_info_with_stack_vars): Same.
11345 (expand_used_vars): Same.
11346 * cfghooks.c (redirect_edge_and_branch_force): Same.
11347 (delete_basic_block): Same.
11348 (split_edge): Same.
11349 (make_forwarder_block): Same.
11350 (force_nonfallthru): Same.
11351 (duplicate_block): Same.
11352 (lv_flush_pending_stmts): Same.
11353 * cfghooks.h: Same.
11354 * cfgloop.c (flow_loops_cfg_dump): Same.
11355 (flow_loop_nested_p): Same.
11356 (superloop_at_depth): Same.
11357 (get_loop_latch_edges): Same.
11358 (flow_loop_dump): Same.
11359 (flow_loops_dump): Same.
11360 (flow_loops_free): Same.
11361 (flow_loop_nodes_find): Same.
11362 (establish_preds): Same.
11363 (flow_loop_tree_node_add): Same.
11364 (flow_loop_tree_node_remove): Same.
11365 (flow_loops_find): Same.
11366 (find_subloop_latch_edge_by_profile): Same.
11367 (find_subloop_latch_edge_by_ivs): Same.
11368 (mfb_redirect_edges_in_set): Same.
11369 (form_subloop): Same.
11370 (merge_latch_edges): Same.
11371 (disambiguate_multiple_latches): Same.
11372 (disambiguate_loops_with_multiple_latches): Same.
11373 (flow_bb_inside_loop_p): Same.
11374 (glb_enum_p): Same.
11375 (get_loop_body_with_size): Same.
11376 (get_loop_body): Same.
11377 (fill_sons_in_loop): Same.
11378 (get_loop_body_in_dom_order): Same.
11379 (get_loop_body_in_custom_order): Same.
11380 (release_recorded_exits): Same.
11381 (get_loop_exit_edges): Same.
11382 (num_loop_branches): Same.
11383 (remove_bb_from_loops): Same.
11384 (find_common_loop): Same.
11385 (delete_loop): Same.
11386 (cancel_loop): Same.
11387 (verify_loop_structure): Same.
11388 (loop_preheader_edge): Same.
11389 (loop_exit_edge_p): Same.
11390 (single_exit): Same.
11391 (loop_exits_to_bb_p): Same.
11392 (loop_exits_from_bb_p): Same.
11393 (get_loop_location): Same.
11394 (record_niter_bound): Same.
11395 (get_estimated_loop_iterations_int): Same.
11396 (max_stmt_executions_int): Same.
11397 (likely_max_stmt_executions_int): Same.
11398 (get_estimated_loop_iterations): Same.
11399 (get_max_loop_iterations): Same.
11400 (get_max_loop_iterations_int): Same.
11401 (get_likely_max_loop_iterations): Same.
11402 * cfgloop.h (simple_loop_desc): Same.
11404 (loop_depth): Same.
11405 (loop_outer): Same.
11406 (loop_iterator::next): Same.
11407 (loop_outermost): Same.
11408 * cfgloopanal.c (mark_irreducible_loops): Same.
11409 (num_loop_insns): Same.
11410 (average_num_loop_insns): Same.
11411 (expected_loop_iterations_unbounded): Same.
11412 (expected_loop_iterations): Same.
11413 (mark_loop_exit_edges): Same.
11414 (single_likely_exit): Same.
11415 * cfgloopmanip.c (fix_bb_placement): Same.
11416 (fix_bb_placements): Same.
11417 (remove_path): Same.
11418 (place_new_loop): Same.
11420 (scale_loop_frequencies): Same.
11421 (scale_loop_profile): Same.
11422 (create_empty_if_region_on_edge): Same.
11423 (create_empty_loop_on_edge): Same.
11426 (fix_loop_placements): Same.
11427 (copy_loop_info): Same.
11428 (duplicate_loop): Same.
11429 (duplicate_subloops): Same.
11430 (loop_redirect_edge): Same.
11431 (can_duplicate_loop_p): Same.
11432 (duplicate_loop_to_header_edge): Same.
11433 (mfb_keep_just): Same.
11434 (has_preds_from_loop): Same.
11435 (create_preheader): Same.
11436 (create_preheaders): Same.
11437 (lv_adjust_loop_entry_edge): Same.
11438 (loop_version): Same.
11439 * cfgloopmanip.h: Same.
11441 * cgraphbuild.c: Same.
11442 * combine.c (make_extraction): Same.
11443 * config/i386/i386-features.c: Same.
11444 * config/i386/i386-features.h: Same.
11445 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11446 (ix86_emit_outlined_ms2sysv_restore): Same.
11447 (ix86_noce_conversion_profitable_p): Same.
11448 (ix86_init_cost): Same.
11449 (ix86_simd_clone_usable): Same.
11450 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11452 * coretypes.h: Same.
11453 * data-streamer-in.c (string_for_index): Change class-key of PODs
11454 to struct and others to class.
11455 (streamer_read_indexed_string): Same.
11456 (streamer_read_string): Same.
11457 (bp_unpack_indexed_string): Same.
11458 (bp_unpack_string): Same.
11459 (streamer_read_uhwi): Same.
11460 (streamer_read_hwi): Same.
11461 (streamer_read_gcov_count): Same.
11462 (streamer_read_wide_int): Same.
11463 * data-streamer.h (streamer_write_bitpack): Same.
11464 (bp_unpack_value): Same.
11465 (streamer_write_char_stream): Same.
11466 (streamer_write_hwi_in_range): Same.
11467 (streamer_write_record_start): Same.
11468 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11469 (add_cross_iteration_register_deps): Same.
11470 (build_intra_loop_deps): Same.
11471 * df-core.c (df_analyze): Same.
11472 (loop_post_order_compute): Same.
11473 (loop_inverted_post_order_compute): Same.
11474 * df-problems.c (df_rd_alloc): Same.
11475 (df_rd_simulate_one_insn): Same.
11476 (df_rd_local_compute): Same.
11477 (df_rd_init_solution): Same.
11478 (df_rd_confluence_n): Same.
11479 (df_rd_transfer_function): Same.
11480 (df_rd_free): Same.
11481 (df_rd_dump_defs_set): Same.
11482 (df_rd_top_dump): Same.
11483 (df_lr_alloc): Same.
11484 (df_lr_reset): Same.
11485 (df_lr_local_compute): Same.
11486 (df_lr_init): Same.
11487 (df_lr_confluence_n): Same.
11488 (df_lr_free): Same.
11489 (df_lr_top_dump): Same.
11490 (df_lr_verify_transfer_functions): Same.
11491 (df_live_alloc): Same.
11492 (df_live_reset): Same.
11493 (df_live_init): Same.
11494 (df_live_confluence_n): Same.
11495 (df_live_finalize): Same.
11496 (df_live_free): Same.
11497 (df_live_top_dump): Same.
11498 (df_live_verify_transfer_functions): Same.
11499 (df_mir_alloc): Same.
11500 (df_mir_reset): Same.
11501 (df_mir_init): Same.
11502 (df_mir_confluence_n): Same.
11503 (df_mir_free): Same.
11504 (df_mir_top_dump): Same.
11505 (df_word_lr_alloc): Same.
11506 (df_word_lr_reset): Same.
11507 (df_word_lr_init): Same.
11508 (df_word_lr_confluence_n): Same.
11509 (df_word_lr_free): Same.
11510 (df_word_lr_top_dump): Same.
11511 (df_md_alloc): Same.
11512 (df_md_simulate_one_insn): Same.
11513 (df_md_reset): Same.
11514 (df_md_init): Same.
11515 (df_md_free): Same.
11516 (df_md_top_dump): Same.
11517 * df-scan.c (df_insn_delete): Same.
11518 (df_insn_rescan): Same.
11519 (df_notes_rescan): Same.
11520 (df_sort_and_compress_mws): Same.
11521 (df_install_mws): Same.
11522 (df_refs_add_to_chains): Same.
11523 (df_ref_create_structure): Same.
11524 (df_ref_record): Same.
11525 (df_def_record_1): Same.
11526 (df_find_hard_reg_defs): Same.
11527 (df_uses_record): Same.
11528 (df_get_conditional_uses): Same.
11529 (df_get_call_refs): Same.
11530 (df_recompute_luids): Same.
11531 (df_get_entry_block_def_set): Same.
11532 (df_entry_block_defs_collect): Same.
11533 (df_get_exit_block_use_set): Same.
11534 (df_exit_block_uses_collect): Same.
11535 (df_mws_verify): Same.
11536 (df_bb_verify): Same.
11537 * df.h (df_scan_get_bb_info): Same.
11538 * doc/tm.texi: Same.
11539 * dse.c (record_store): Same.
11540 * dumpfile.h: Same.
11541 * emit-rtl.c (const_fixed_hasher::equal): Same.
11542 (set_mem_attributes_minus_bitpos): Same.
11543 (change_address): Same.
11544 (adjust_address_1): Same.
11545 (offset_address): Same.
11546 * emit-rtl.h: Same.
11547 * except.c (dw2_build_landing_pads): Same.
11548 (sjlj_emit_dispatch_table): Same.
11549 * explow.c (allocate_dynamic_stack_space): Same.
11550 (emit_stack_probe): Same.
11551 (probe_stack_range): Same.
11552 * expmed.c (store_bit_field_using_insv): Same.
11553 (store_bit_field_1): Same.
11554 (store_integral_bit_field): Same.
11555 (extract_bit_field_using_extv): Same.
11556 (extract_bit_field_1): Same.
11557 (emit_cstore): Same.
11558 * expr.c (emit_block_move_via_cpymem): Same.
11559 (expand_cmpstrn_or_cmpmem): Same.
11560 (set_storage_via_setmem): Same.
11561 (emit_single_push_insn_1): Same.
11562 (expand_assignment): Same.
11563 (store_constructor): Same.
11564 (expand_expr_real_2): Same.
11565 (expand_expr_real_1): Same.
11566 (try_casesi): Same.
11568 * function.c (try_fit_stack_local): Same.
11569 (assign_stack_local_1): Same.
11570 (assign_stack_local): Same.
11571 (cut_slot_from_list): Same.
11572 (insert_slot_to_list): Same.
11573 (max_slot_level): Same.
11574 (move_slot_to_level): Same.
11575 (temp_address_hasher::equal): Same.
11576 (remove_unused_temp_slot_addresses): Same.
11577 (assign_temp): Same.
11578 (combine_temp_slots): Same.
11579 (update_temp_slot_address): Same.
11580 (preserve_temp_slots): Same.
11581 * function.h: Same.
11583 * gcc-rich-location.h: Same.
11585 * genattrtab.c (check_attr_test): Same.
11586 (check_attr_value): Same.
11587 (convert_set_attr_alternative): Same.
11588 (convert_set_attr): Same.
11589 (check_defs): Same.
11590 (copy_boolean): Same.
11591 (get_attr_value): Same.
11592 (expand_delays): Same.
11593 (make_length_attrs): Same.
11595 (make_alternative_compare): Same.
11596 (simplify_test_exp): Same.
11597 (tests_attr_p): Same.
11598 (get_attr_order): Same.
11599 (clear_struct_flag): Same.
11601 (compares_alternatives_p): Same.
11604 (find_attrs_to_cache): Same.
11605 (write_test_expr): Same.
11606 (walk_attr_value): Same.
11607 (write_attr_get): Same.
11608 (eliminate_known_true): Same.
11609 (write_insn_cases): Same.
11610 (write_attr_case): Same.
11611 (write_attr_valueq): Same.
11612 (write_attr_value): Same.
11613 (write_dummy_eligible_delay): Same.
11614 (next_comma_elt): Same.
11616 (make_internal_attr): Same.
11617 (copy_rtx_unchanging): Same.
11618 (gen_insn_reserv): Same.
11619 (check_tune_attr): Same.
11620 (make_automaton_attrs): Same.
11621 (handle_arg): Same.
11622 * genextract.c (gen_insn): Same.
11623 (VEC_char_to_string): Same.
11624 * genmatch.c (print_operand): Same.
11626 (parser::parse_operation): Same.
11627 (parser::parse_capture): Same.
11628 (parser::parse_c_expr): Same.
11629 (parser::parse_simplify): Same.
11631 * genoutput.c (output_operand_data): Same.
11632 (output_get_insn_name): Same.
11633 (compare_operands): Same.
11634 (place_operands): Same.
11635 (process_template): Same.
11636 (validate_insn_alternatives): Same.
11637 (validate_insn_operands): Same.
11638 (gen_expand): Same.
11639 (note_constraint): Same.
11640 * genpreds.c (write_one_predicate_function): Same.
11641 (add_constraint): Same.
11642 (process_define_register_constraint): Same.
11643 (write_lookup_constraint_1): Same.
11644 (write_lookup_constraint_array): Same.
11645 (write_insn_constraint_len): Same.
11646 (write_reg_class_for_constraint_1): Same.
11647 (write_constraint_satisfied_p_array): Same.
11648 * genrecog.c (optimize_subroutine_group): Same.
11649 * gensupport.c (process_define_predicate): Same.
11650 (queue_pattern): Same.
11651 (remove_from_queue): Same.
11652 (process_rtx): Same.
11653 (is_predicable): Same.
11654 (change_subst_attribute): Same.
11655 (subst_pattern_match): Same.
11656 (alter_constraints): Same.
11657 (alter_attrs_for_insn): Same.
11658 (shift_output_template): Same.
11659 (alter_output_for_subst_insn): Same.
11660 (process_one_cond_exec): Same.
11662 (process_define_cond_exec): Same.
11663 (mnemonic_htab_callback): Same.
11664 (gen_mnemonic_attr): Same.
11665 (read_md_rtx): Same.
11666 * ggc-page.c: Same.
11667 * gimple-loop-interchange.cc (dump_reduction): Same.
11668 (dump_induction): Same.
11669 (loop_cand::~loop_cand): Same.
11670 (free_data_refs_with_aux): Same.
11671 (tree_loop_interchange::interchange_loops): Same.
11672 (tree_loop_interchange::map_inductions_to_loop): Same.
11673 (tree_loop_interchange::move_code_to_inner_loop): Same.
11674 (compute_access_stride): Same.
11675 (compute_access_strides): Same.
11676 (proper_loop_form_for_interchange): Same.
11677 (tree_loop_interchange_compute_ddrs): Same.
11678 (prune_datarefs_not_in_loop): Same.
11679 (prepare_data_references): Same.
11680 (pass_linterchange::execute): Same.
11681 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11682 (unroll_jam_possible_p): Same.
11683 (fuse_loops): Same.
11684 (adjust_unroll_factor): Same.
11685 (tree_loop_unroll_and_jam): Same.
11686 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11687 (loop_versioning::expensive_stmt_p): Same.
11688 (loop_versioning::version_for_unity): Same.
11689 (loop_versioning::dump_inner_likelihood): Same.
11690 (loop_versioning::find_per_loop_multiplication): Same.
11691 (loop_versioning::analyze_term_using_scevs): Same.
11692 (loop_versioning::record_address_fragment): Same.
11693 (loop_versioning::analyze_expr): Same.
11694 (loop_versioning::analyze_blocks): Same.
11695 (loop_versioning::prune_conditions): Same.
11696 (loop_versioning::merge_loop_info): Same.
11697 (loop_versioning::add_loop_to_queue): Same.
11698 (loop_versioning::decide_whether_loop_is_versionable): Same.
11699 (loop_versioning::make_versioning_decisions): Same.
11700 (loop_versioning::implement_versioning_decisions): Same.
11701 * gimple-ssa-evrp-analyze.c
11702 (evrp_range_analyzer::record_ranges_from_phis): Same.
11703 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11704 (count_multiple_uses): Same.
11705 (split_group): Same.
11706 (imm_store_chain_info::output_merged_store): Same.
11707 (pass_store_merging::process_store): Same.
11708 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11709 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11711 (alloca_call_type): Same.
11712 (pass_walloca::execute): Same.
11713 * gimple-streamer-in.c (input_phi): Same.
11714 (input_gimple_stmt): Same.
11715 * gimple-streamer.h: Same.
11716 * godump.c (go_force_record_alignment): Same.
11717 (go_format_type): Same.
11718 (go_output_type): Same.
11719 (go_output_fndecl): Same.
11720 (go_output_typedef): Same.
11721 (keyword_hash_init): Same.
11722 (find_dummy_types): Same.
11723 * graph.c (draw_cfg_nodes_no_loops): Same.
11724 (draw_cfg_nodes_for_loop): Same.
11725 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11726 * hsa-brig.c: Same.
11727 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11728 * hsa-dump.c (dump_hsa_cfun): Same.
11729 * hsa-gen.c (gen_function_def_parameters): Same.
11730 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11731 * input.c (dump_line_table_statistics): Same.
11732 (test_lexer): Same.
11734 * internal-fn.c (get_multi_vector_move): Same.
11735 (expand_load_lanes_optab_fn): Same.
11736 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11737 (expand_GOMP_SIMT_EXIT): Same.
11738 (expand_GOMP_SIMT_LAST_LANE): Same.
11739 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11740 (expand_GOMP_SIMT_VOTE_ANY): Same.
11741 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11742 (expand_GOMP_SIMT_XCHG_IDX): Same.
11743 (expand_addsub_overflow): Same.
11744 (expand_neg_overflow): Same.
11745 (expand_mul_overflow): Same.
11746 (expand_call_mem_ref): Same.
11747 (expand_mask_load_optab_fn): Same.
11748 (expand_scatter_store_optab_fn): Same.
11749 (expand_gather_load_optab_fn): Same.
11750 * ipa-cp.c (ipa_get_parm_lattices): Same.
11751 (print_all_lattices): Same.
11752 (ignore_edge_p): Same.
11753 (build_toporder_info): Same.
11754 (free_toporder_info): Same.
11755 (push_node_to_stack): Same.
11756 (ipcp_lattice<valtype>::set_contains_variable): Same.
11757 (set_agg_lats_to_bottom): Same.
11758 (ipcp_bits_lattice::meet_with): Same.
11759 (set_single_call_flag): Same.
11760 (initialize_node_lattices): Same.
11761 (ipa_get_jf_ancestor_result): Same.
11762 (ipcp_verify_propagated_values): Same.
11763 (propagate_scalar_across_jump_function): Same.
11764 (propagate_context_across_jump_function): Same.
11765 (propagate_bits_across_jump_function): Same.
11766 (ipa_vr_operation_and_type_effects): Same.
11767 (propagate_vr_across_jump_function): Same.
11768 (set_check_aggs_by_ref): Same.
11769 (set_chain_of_aglats_contains_variable): Same.
11770 (merge_aggregate_lattices): Same.
11771 (agg_pass_through_permissible_p): Same.
11772 (propagate_aggs_across_jump_function): Same.
11773 (call_passes_through_thunk_p): Same.
11774 (propagate_constants_across_call): Same.
11775 (devirtualization_time_bonus): Same.
11776 (good_cloning_opportunity_p): Same.
11777 (context_independent_aggregate_values): Same.
11778 (gather_context_independent_values): Same.
11779 (perform_estimation_of_a_value): Same.
11780 (estimate_local_effects): Same.
11781 (value_topo_info<valtype>::add_val): Same.
11782 (add_all_node_vals_to_toposort): Same.
11783 (value_topo_info<valtype>::propagate_effects): Same.
11784 (ipcp_propagate_stage): Same.
11785 (ipcp_discover_new_direct_edges): Same.
11786 (same_node_or_its_all_contexts_clone_p): Same.
11787 (cgraph_edge_brings_value_p): Same.
11788 (gather_edges_for_value): Same.
11789 (create_specialized_node): Same.
11790 (find_more_scalar_values_for_callers_subset): Same.
11791 (find_more_contexts_for_caller_subset): Same.
11792 (copy_plats_to_inter): Same.
11793 (intersect_aggregates_with_edge): Same.
11794 (find_aggregate_values_for_callers_subset): Same.
11795 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11796 (decide_about_value): Same.
11797 (decide_whether_version_node): Same.
11798 (spread_undeadness): Same.
11799 (identify_dead_nodes): Same.
11800 (ipcp_store_vr_results): Same.
11801 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11802 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11803 (redirect_to_unreachable): Same.
11804 (edge_set_predicate): Same.
11805 (evaluate_conditions_for_known_args): Same.
11806 (evaluate_properties_for_edge): Same.
11807 (ipa_fn_summary_t::duplicate): Same.
11808 (ipa_call_summary_t::duplicate): Same.
11809 (dump_ipa_call_summary): Same.
11810 (ipa_dump_fn_summary): Same.
11811 (eliminated_by_inlining_prob): Same.
11812 (set_cond_stmt_execution_predicate): Same.
11813 (set_switch_stmt_execution_predicate): Same.
11814 (compute_bb_predicates): Same.
11815 (will_be_nonconstant_expr_predicate): Same.
11816 (phi_result_unknown_predicate): Same.
11817 (analyze_function_body): Same.
11818 (compute_fn_summary): Same.
11819 (estimate_edge_devirt_benefit): Same.
11820 (estimate_edge_size_and_time): Same.
11821 (estimate_calls_size_and_time): Same.
11822 (estimate_node_size_and_time): Same.
11823 (remap_edge_change_prob): Same.
11824 (remap_edge_summaries): Same.
11825 (ipa_merge_fn_summary_after_inlining): Same.
11826 (ipa_fn_summary_generate): Same.
11827 (inline_read_section): Same.
11828 (ipa_fn_summary_read): Same.
11829 (ipa_fn_summary_write): Same.
11830 * ipa-fnsummary.h: Same.
11831 * ipa-hsa.c (ipa_hsa_read_section): Same.
11832 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11833 * ipa-icf.c (sem_function::param_used_p): Same.
11834 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11835 * ipa-inline.c (edge_badness): Same.
11836 (inline_small_functions): Same.
11837 * ipa-polymorphic-call.c
11838 (ipa_polymorphic_call_context::stream_out): Same.
11839 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11840 (predicate::remap_after_inlining): Same.
11841 (predicate::stream_out): Same.
11842 * ipa-predicate.h: Same.
11843 * ipa-profile.c (ipa_profile_read_summary): Same.
11844 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11845 (count_formal_params): Same.
11846 (ipa_dump_param): Same.
11847 (ipa_alloc_node_params): Same.
11848 (ipa_print_node_jump_functions_for_edge): Same.
11849 (ipa_print_node_jump_functions): Same.
11850 (ipa_load_from_parm_agg): Same.
11851 (get_ancestor_addr_info): Same.
11852 (ipa_compute_jump_functions_for_edge): Same.
11853 (ipa_analyze_virtual_call_uses): Same.
11854 (ipa_analyze_stmt_uses): Same.
11855 (ipa_analyze_params_uses_in_bb): Same.
11856 (update_jump_functions_after_inlining): Same.
11857 (try_decrement_rdesc_refcount): Same.
11858 (ipa_impossible_devirt_target): Same.
11859 (update_indirect_edges_after_inlining): Same.
11860 (combine_controlled_uses_counters): Same.
11861 (ipa_edge_args_sum_t::duplicate): Same.
11862 (ipa_write_jump_function): Same.
11863 (ipa_write_indirect_edge_info): Same.
11864 (ipa_write_node_info): Same.
11865 (ipa_read_edge_info): Same.
11866 (ipa_prop_read_section): Same.
11867 (read_replacements_section): Same.
11868 * ipa-prop.h (ipa_get_param_count): Same.
11869 (ipa_get_param): Same.
11870 (ipa_get_type): Same.
11871 (ipa_get_param_move_cost): Same.
11872 (ipa_set_param_used): Same.
11873 (ipa_get_controlled_uses): Same.
11874 (ipa_set_controlled_uses): Same.
11875 (ipa_get_cs_argument_count): Same.
11876 * ipa-pure-const.c (analyze_function): Same.
11877 (pure_const_read_summary): Same.
11879 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11880 * ipa-split.c (test_nonssa_use): Same.
11881 (dump_split_point): Same.
11882 (dominated_by_forbidden): Same.
11883 (split_part_set_ssa_name_p): Same.
11884 (find_split_points): Same.
11885 * ira-build.c (finish_loop_tree_nodes): Same.
11886 (low_pressure_loop_node_p): Same.
11887 * ira-color.c (ira_reuse_stack_slot): Same.
11889 * ira.c (setup_reg_equiv): Same.
11890 (print_insn_chain): Same.
11892 * loop-doloop.c (doloop_condition_get): Same.
11894 (record_reg_sets): Same.
11895 (doloop_optimize): Same.
11896 * loop-init.c (loop_optimizer_init): Same.
11897 (fix_loop_structure): Same.
11898 * loop-invariant.c (merge_identical_invariants): Same.
11899 (compute_always_reached): Same.
11900 (find_exits): Same.
11901 (may_assign_reg_p): Same.
11902 (find_invariants_bb): Same.
11903 (find_invariants_body): Same.
11904 (replace_uses): Same.
11905 (can_move_invariant_reg): Same.
11906 (free_inv_motion_data): Same.
11907 (move_single_loop_invariants): Same.
11908 (change_pressure): Same.
11909 (mark_ref_regs): Same.
11910 (calculate_loop_reg_pressure): Same.
11911 * loop-iv.c (biv_entry_hasher::equal): Same.
11912 (iv_extend_to_rtx_code): Same.
11913 (check_iv_ref_table_size): Same.
11914 (clear_iv_info): Same.
11915 (latch_dominating_def): Same.
11916 (iv_get_reaching_def): Same.
11917 (iv_constant): Same.
11923 (get_biv_step): Same.
11925 (analyzed_for_bivness_p): Same.
11926 (record_biv): Same.
11927 (iv_analyze_biv): Same.
11928 (iv_analyze_expr): Same.
11929 (iv_analyze_def): Same.
11930 (iv_analyze_op): Same.
11931 (iv_analyze): Same.
11932 (iv_analyze_result): Same.
11934 (eliminate_implied_conditions): Same.
11935 (simplify_using_initial_values): Same.
11936 (shorten_into_mode): Same.
11937 (canonicalize_iv_subregs): Same.
11938 (determine_max_iter): Same.
11939 (check_simple_exit): Same.
11940 (find_simple_exit): Same.
11941 (get_simple_loop_desc): Same.
11942 * loop-unroll.c (report_unroll): Same.
11943 (decide_unrolling): Same.
11944 (unroll_loops): Same.
11945 (loop_exit_at_end_p): Same.
11946 (decide_unroll_constant_iterations): Same.
11947 (unroll_loop_constant_iterations): Same.
11948 (compare_and_jump_seq): Same.
11949 (unroll_loop_runtime_iterations): Same.
11950 (decide_unroll_stupid): Same.
11951 (unroll_loop_stupid): Same.
11952 (referenced_in_one_insn_in_loop_p): Same.
11953 (reset_debug_uses_in_loop): Same.
11954 (analyze_iv_to_split_insn): Same.
11955 * lra-eliminations.c (lra_debug_elim_table): Same.
11956 (setup_can_eliminate): Same.
11958 (lra_get_elimination_hard_regno): Same.
11959 (lra_eliminate_regs_1): Same.
11960 (eliminate_regs_in_insn): Same.
11961 (update_reg_eliminate): Same.
11962 (init_elimination): Same.
11963 (lra_eliminate): Same.
11965 * lra-lives.c (initiate_live_solver): Same.
11966 * lra-remat.c (create_remat_bb_data): Same.
11967 * lra-spills.c (lra_spill): Same.
11968 * lra.c (lra_set_insn_recog_data): Same.
11969 (lra_set_used_insn_alternative_by_uid): Same.
11970 (init_reg_info): Same.
11971 (expand_reg_info): Same.
11972 * lto-cgraph.c (output_symtab): Same.
11973 (read_identifier): Same.
11974 (get_alias_symbol): Same.
11975 (input_node): Same.
11976 (input_varpool_node): Same.
11978 (input_edge): Same.
11979 (input_cgraph_1): Same.
11980 (input_refs): Same.
11981 (input_symtab): Same.
11982 (input_offload_tables): Same.
11983 (output_cgraph_opt_summary): Same.
11984 (input_edge_opt_summary): Same.
11985 (input_cgraph_opt_section): Same.
11986 * lto-section-in.c (lto_free_raw_section_data): Same.
11987 (lto_create_simple_input_block): Same.
11988 (lto_free_function_in_decl_state_for_node): Same.
11989 * lto-streamer-in.c (lto_tag_check_set): Same.
11990 (lto_location_cache::revert_location_cache): Same.
11991 (lto_location_cache::input_location): Same.
11992 (lto_input_location): Same.
11993 (stream_input_location_now): Same.
11994 (lto_input_tree_ref): Same.
11995 (lto_input_eh_catch_list): Same.
11996 (input_eh_region): Same.
11997 (lto_init_eh): Same.
11998 (make_new_block): Same.
12000 (fixup_call_stmt_edges): Same.
12001 (input_struct_function_base): Same.
12002 (input_function): Same.
12003 (lto_read_body_or_constructor): Same.
12004 (lto_read_tree_1): Same.
12005 (lto_read_tree): Same.
12006 (lto_input_scc): Same.
12007 (lto_input_tree_1): Same.
12008 (lto_input_toplevel_asms): Same.
12009 (lto_input_mode_table): Same.
12010 (lto_reader_init): Same.
12011 (lto_data_in_create): Same.
12012 * lto-streamer-out.c (output_cfg): Same.
12013 * lto-streamer.h: Same.
12014 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12015 (generate_prolog_epilog): Same.
12016 (mark_loop_unsched): Same.
12017 (dump_insn_location): Same.
12018 (loop_canon_p): Same.
12019 (sms_schedule): Same.
12020 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12021 (expand_omp_for_generic): Same.
12022 (expand_omp_for_static_nochunk): Same.
12023 (expand_omp_for_static_chunk): Same.
12024 (expand_omp_simd): Same.
12025 (expand_omp_taskloop_for_inner): Same.
12026 (expand_oacc_for): Same.
12027 (expand_omp_atomic_pipeline): Same.
12028 (mark_loops_in_oacc_kernels_region): Same.
12029 * omp-offload.c (oacc_xform_loop): Same.
12030 * omp-simd-clone.c (simd_clone_adjust): Same.
12031 * optabs-query.c (get_traditional_extraction_insn): Same.
12032 * optabs.c (expand_vector_broadcast): Same.
12033 (expand_binop_directly): Same.
12034 (expand_twoval_unop): Same.
12035 (expand_twoval_binop): Same.
12036 (expand_unop_direct): Same.
12037 (emit_indirect_jump): Same.
12038 (emit_conditional_move): Same.
12039 (emit_conditional_neg_or_complement): Same.
12040 (emit_conditional_add): Same.
12041 (vector_compare_rtx): Same.
12042 (expand_vec_perm_1): Same.
12043 (expand_vec_perm_const): Same.
12044 (expand_vec_cond_expr): Same.
12045 (expand_vec_series_expr): Same.
12046 (maybe_emit_atomic_exchange): Same.
12047 (maybe_emit_sync_lock_test_and_set): Same.
12048 (expand_atomic_compare_and_swap): Same.
12049 (expand_atomic_load): Same.
12050 (expand_atomic_store): Same.
12051 (maybe_emit_op): Same.
12052 (valid_multiword_target_p): Same.
12053 (create_integer_operand): Same.
12054 (maybe_legitimize_operand_same_code): Same.
12055 (maybe_legitimize_operand): Same.
12056 (create_convert_operand_from_type): Same.
12057 (can_reuse_operands_p): Same.
12058 (maybe_legitimize_operands): Same.
12059 (maybe_gen_insn): Same.
12060 (maybe_expand_insn): Same.
12061 (maybe_expand_jump_insn): Same.
12062 (expand_insn): Same.
12063 * optabs.h (create_expand_operand): Same.
12064 (create_fixed_operand): Same.
12065 (create_output_operand): Same.
12066 (create_input_operand): Same.
12067 (create_convert_operand_to): Same.
12068 (create_convert_operand_from): Same.
12070 * poly-int.h: Same.
12071 * predict.c (optimize_insn_for_speed_p): Same.
12072 (optimize_loop_for_size_p): Same.
12073 (optimize_loop_for_speed_p): Same.
12074 (optimize_loop_nest_for_speed_p): Same.
12075 (get_base_value): Same.
12076 (predicted_by_loop_heuristics_p): Same.
12077 (predict_extra_loop_exits): Same.
12078 (predict_loops): Same.
12079 (predict_paths_for_bb): Same.
12080 (predict_paths_leading_to): Same.
12081 (propagate_freq): Same.
12082 (pass_profile::execute): Same.
12084 * profile-count.c (profile_count::differs_from_p): Same.
12085 (profile_probability::differs_lot_from_p): Same.
12086 * profile-count.h: Same.
12087 * profile.c (branch_prob): Same.
12088 * regrename.c (free_chain_data): Same.
12089 (mark_conflict): Same.
12090 (create_new_chain): Same.
12091 (merge_overlapping_regs): Same.
12092 (init_rename_info): Same.
12093 (merge_chains): Same.
12094 (regrename_analyze): Same.
12095 (regrename_do_replace): Same.
12096 (scan_rtx_reg): Same.
12097 (record_out_operands): Same.
12098 (build_def_use): Same.
12099 * regrename.h: Same.
12101 * reload1.c (init_reload): Same.
12102 (maybe_fix_stack_asms): Same.
12103 (copy_reloads): Same.
12104 (count_pseudo): Same.
12105 (count_spilled_pseudo): Same.
12107 (find_reload_regs): Same.
12108 (select_reload_regs): Same.
12109 (spill_hard_reg): Same.
12110 (fixup_eh_region_note): Same.
12111 (set_reload_reg): Same.
12112 (allocate_reload_reg): Same.
12113 (compute_reload_subreg_offset): Same.
12114 (reload_adjust_reg_for_icode): Same.
12115 (emit_input_reload_insns): Same.
12116 (emit_output_reload_insns): Same.
12117 (do_input_reload): Same.
12118 (inherit_piecemeal_p): Same.
12120 * sanopt.c (maybe_get_dominating_check): Same.
12121 (maybe_optimize_ubsan_ptr_ifn): Same.
12122 (can_remove_asan_check): Same.
12123 (maybe_optimize_asan_check_ifn): Same.
12124 (sanopt_optimize_walker): Same.
12125 * sched-deps.c (add_dependence_list): Same.
12126 (chain_to_prev_insn): Same.
12127 (add_insn_mem_dependence): Same.
12128 (create_insn_reg_set): Same.
12129 (maybe_extend_reg_info_p): Same.
12130 (sched_analyze_reg): Same.
12131 (sched_analyze_1): Same.
12132 (get_implicit_reg_pending_clobbers): Same.
12133 (chain_to_prev_insn_p): Same.
12134 (deps_analyze_insn): Same.
12135 (deps_start_bb): Same.
12136 (sched_free_deps): Same.
12138 (init_deps_reg_last): Same.
12140 * sched-ebb.c: Same.
12141 * sched-int.h: Same.
12142 * sched-rgn.c (add_branch_dependences): Same.
12143 (concat_insn_mem_list): Same.
12145 (sched_rgn_compute_dependencies): Same.
12146 * sel-sched-ir.c (reset_target_context): Same.
12147 (copy_deps_context): Same.
12148 (init_id_from_df): Same.
12149 (has_dependence_p): Same.
12150 (change_loops_latches): Same.
12151 (bb_top_order_comparator): Same.
12152 (make_region_from_loop_preheader): Same.
12153 (sel_init_pipelining): Same.
12154 (get_loop_nest_for_rgn): Same.
12155 (make_regions_from_the_rest): Same.
12156 (sel_is_loop_preheader_p): Same.
12157 * sel-sched-ir.h (inner_loop_header_p): Same.
12158 (get_all_loop_exits): Same.
12159 * selftest.h: Same.
12160 * sese.c (sese_build_liveouts): Same.
12161 (sese_insert_phis_for_liveouts): Same.
12162 * sese.h (defined_in_sese_p): Same.
12163 * sreal.c (sreal::stream_out): Same.
12165 * streamer-hooks.h: Same.
12166 * target-globals.c (save_target_globals): Same.
12167 * target-globals.h: Same.
12168 * target.def: Same.
12170 * targhooks.c (default_has_ifunc_p): Same.
12171 (default_empty_mask_is_expensive): Same.
12172 (default_init_cost): Same.
12173 * targhooks.h: Same.
12175 * tree-affine.c (aff_combination_mult): Same.
12176 (aff_combination_expand): Same.
12177 (aff_combination_constant_multiple_p): Same.
12178 * tree-affine.h: Same.
12179 * tree-cfg.c (build_gimple_cfg): Same.
12180 (replace_loop_annotate_in_block): Same.
12181 (replace_uses_by): Same.
12183 (dump_cfg_stats): Same.
12184 (gimple_duplicate_sese_region): Same.
12185 (gimple_duplicate_sese_tail): Same.
12186 (move_block_to_fn): Same.
12187 (replace_block_vars_by_duplicates): Same.
12188 (move_sese_region_to_fn): Same.
12189 (print_loops_bb): Same.
12190 (print_loop): Same.
12191 (print_loops): Same.
12193 (debug_loops): Same.
12194 * tree-cfg.h: Same.
12195 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12196 (chrec_fold_multiply_poly_poly): Same.
12197 (chrec_evaluate): Same.
12198 (chrec_component_in_loop_num): Same.
12199 (reset_evolution_in_loop): Same.
12200 (is_multivariate_chrec): Same.
12201 (chrec_contains_symbols): Same.
12202 (nb_vars_in_chrec): Same.
12203 (chrec_convert_1): Same.
12204 (chrec_convert_aggressive): Same.
12205 * tree-chrec.h: Same.
12206 * tree-core.h: Same.
12207 * tree-data-ref.c (dump_data_dependence_relation): Same.
12208 (canonicalize_base_object_address): Same.
12209 (data_ref_compare_tree): Same.
12210 (prune_runtime_alias_test_list): Same.
12211 (get_segment_min_max): Same.
12212 (create_intersect_range_checks): Same.
12213 (conflict_fn_no_dependence): Same.
12214 (object_address_invariant_in_loop_p): Same.
12215 (analyze_ziv_subscript): Same.
12216 (analyze_siv_subscript_cst_affine): Same.
12217 (analyze_miv_subscript): Same.
12218 (analyze_overlapping_iterations): Same.
12219 (build_classic_dist_vector_1): Same.
12220 (add_other_self_distances): Same.
12221 (same_access_functions): Same.
12222 (build_classic_dir_vector): Same.
12223 (subscript_dependence_tester_1): Same.
12224 (subscript_dependence_tester): Same.
12225 (access_functions_are_affine_or_constant_p): Same.
12226 (get_references_in_stmt): Same.
12227 (loop_nest_has_data_refs): Same.
12228 (graphite_find_data_references_in_stmt): Same.
12229 (find_data_references_in_bb): Same.
12230 (get_base_for_alignment): Same.
12231 (find_loop_nest_1): Same.
12232 (find_loop_nest): Same.
12233 * tree-data-ref.h (dr_alignment): Same.
12234 (ddr_dependence_level): Same.
12235 * tree-if-conv.c (fold_build_cond_expr): Same.
12236 (add_to_predicate_list): Same.
12237 (add_to_dst_predicate_list): Same.
12238 (phi_convertible_by_degenerating_args): Same.
12239 (idx_within_array_bound): Same.
12240 (all_preds_critical_p): Same.
12241 (pred_blocks_visited_p): Same.
12242 (predicate_bbs): Same.
12243 (build_region): Same.
12244 (if_convertible_loop_p_1): Same.
12245 (is_cond_scalar_reduction): Same.
12246 (predicate_scalar_phi): Same.
12247 (remove_conditions_and_labels): Same.
12248 (combine_blocks): Same.
12249 (version_loop_for_if_conversion): Same.
12250 (versionable_outer_loop_p): Same.
12251 (ifcvt_local_dce): Same.
12252 (tree_if_conversion): Same.
12253 (pass_if_conversion::gate): Same.
12254 * tree-if-conv.h: Same.
12255 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12256 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12258 (stmt_has_scalar_dependences_outside_loop): Same.
12259 (copy_loop_before): Same.
12260 (create_bb_after_loop): Same.
12261 (const_with_all_bytes_same): Same.
12262 (generate_memset_builtin): Same.
12263 (generate_memcpy_builtin): Same.
12264 (destroy_loop): Same.
12265 (build_rdg_partition_for_vertex): Same.
12266 (compute_access_range): Same.
12267 (data_ref_segment_size): Same.
12268 (latch_dominated_by_data_ref): Same.
12269 (compute_alias_check_pairs): Same.
12270 (fuse_memset_builtins): Same.
12271 (finalize_partitions): Same.
12272 (find_seed_stmts_for_distribution): Same.
12273 (prepare_perfect_loop_nest): Same.
12274 * tree-parloops.c (lambda_transform_legal_p): Same.
12275 (loop_parallel_p): Same.
12276 (reduc_stmt_res): Same.
12277 (add_field_for_name): Same.
12278 (create_call_for_reduction_1): Same.
12279 (replace_uses_in_bb_by): Same.
12280 (transform_to_exit_first_loop_alt): Same.
12281 (try_transform_to_exit_first_loop_alt): Same.
12282 (transform_to_exit_first_loop): Same.
12284 (gen_parallel_loop): Same.
12285 (gather_scalar_reductions): Same.
12286 (get_omp_data_i_param): Same.
12287 (try_create_reduction_list): Same.
12288 (oacc_entry_exit_single_gang): Same.
12289 (parallelize_loops): Same.
12290 * tree-pass.h: Same.
12291 * tree-predcom.c (determine_offset): Same.
12292 (last_always_executed_block): Same.
12293 (split_data_refs_to_components): Same.
12294 (suitable_component_p): Same.
12295 (valid_initializer_p): Same.
12296 (find_looparound_phi): Same.
12297 (insert_looparound_copy): Same.
12298 (add_looparound_copies): Same.
12299 (determine_roots_comp): Same.
12300 (predcom_tmp_var): Same.
12301 (initialize_root_vars): Same.
12302 (initialize_root_vars_store_elim_1): Same.
12303 (initialize_root_vars_store_elim_2): Same.
12304 (finalize_eliminated_stores): Same.
12305 (initialize_root_vars_lm): Same.
12306 (remove_stmt): Same.
12307 (determine_unroll_factor): Same.
12308 (execute_pred_commoning_cbck): Same.
12309 (base_names_in_chain_on): Same.
12310 (combine_chains): Same.
12311 (pcom_stmt_dominates_stmt_p): Same.
12312 (try_combine_chains): Same.
12313 (prepare_initializers_chain_store_elim): Same.
12314 (prepare_initializers_chain): Same.
12315 (prepare_initializers): Same.
12316 (prepare_finalizers_chain): Same.
12317 (prepare_finalizers): Same.
12318 (insert_init_seqs): Same.
12319 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12320 (compute_overall_effect_of_inner_loop): Same.
12321 (add_to_evolution_1): Same.
12322 (add_to_evolution): Same.
12323 (follow_ssa_edge_binary): Same.
12324 (follow_ssa_edge_expr): Same.
12325 (backedge_phi_arg_p): Same.
12326 (follow_ssa_edge_in_condition_phi_branch): Same.
12327 (follow_ssa_edge_in_condition_phi): Same.
12328 (follow_ssa_edge_inner_loop_phi): Same.
12329 (follow_ssa_edge): Same.
12330 (analyze_evolution_in_loop): Same.
12331 (analyze_initial_condition): Same.
12332 (interpret_loop_phi): Same.
12333 (interpret_condition_phi): Same.
12334 (interpret_rhs_expr): Same.
12335 (interpret_expr): Same.
12336 (interpret_gimple_assign): Same.
12337 (analyze_scalar_evolution_1): Same.
12338 (analyze_scalar_evolution): Same.
12339 (analyze_scalar_evolution_for_address_of): Same.
12340 (get_instantiated_value_entry): Same.
12341 (loop_closed_phi_def): Same.
12342 (instantiate_scev_name): Same.
12343 (instantiate_scev_poly): Same.
12344 (instantiate_scev_binary): Same.
12345 (instantiate_scev_convert): Same.
12346 (instantiate_scev_not): Same.
12347 (instantiate_scev_r): Same.
12348 (instantiate_scev): Same.
12349 (resolve_mixers): Same.
12350 (initialize_scalar_evolutions_analyzer): Same.
12351 (scev_reset_htab): Same.
12352 (scev_reset): Same.
12353 (derive_simple_iv_with_niters): Same.
12354 (simple_iv_with_niters): Same.
12355 (expression_expensive_p): Same.
12356 (final_value_replacement_loop): Same.
12357 * tree-scalar-evolution.h (block_before_loop): Same.
12358 * tree-ssa-address.h: Same.
12359 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12360 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12361 (record_edge_info): Same.
12362 * tree-ssa-live.c (var_map_base_fini): Same.
12363 (remove_unused_locals): Same.
12364 * tree-ssa-live.h: Same.
12365 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12366 (pass_ch_vect::execute): Same.
12367 (pass_ch::process_loop_p): Same.
12368 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12369 (movement_possibility): Same.
12370 (outermost_invariant_loop): Same.
12372 (determine_max_movement): Same.
12373 (invariantness_dom_walker::before_dom_children): Same.
12374 (move_computations): Same.
12375 (may_move_till): Same.
12376 (force_move_till_op): Same.
12377 (force_move_till): Same.
12378 (memref_free): Same.
12379 (record_mem_ref_loc): Same.
12380 (set_ref_stored_in_loop): Same.
12381 (mark_ref_stored): Same.
12382 (sort_bbs_in_loop_postorder_cmp): Same.
12383 (sort_locs_in_loop_postorder_cmp): Same.
12384 (analyze_memory_references): Same.
12385 (mem_refs_may_alias_p): Same.
12386 (find_ref_loc_in_loop_cmp): Same.
12387 (rewrite_mem_ref_loc::operator): Same.
12388 (first_mem_ref_loc_1::operator): Same.
12389 (sm_set_flag_if_changed::operator): Same.
12390 (execute_sm_if_changed_flag_set): Same.
12391 (execute_sm): Same.
12392 (hoist_memory_references): Same.
12393 (ref_always_accessed::operator): Same.
12394 (refs_independent_p): Same.
12395 (record_dep_loop): Same.
12396 (ref_indep_loop_p_1): Same.
12397 (ref_indep_loop_p): Same.
12398 (can_sm_ref_p): Same.
12399 (find_refs_for_sm): Same.
12400 (loop_suitable_for_sm): Same.
12401 (store_motion_loop): Same.
12402 (store_motion): Same.
12403 (fill_always_executed_in): Same.
12404 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12405 (estimated_unrolled_size): Same.
12406 (loop_edge_to_cancel): Same.
12407 (remove_exits_and_undefined_stmts): Same.
12408 (remove_redundant_iv_tests): Same.
12409 (unloop_loops): Same.
12410 (estimated_peeled_sequence_size): Same.
12411 (try_peel_loop): Same.
12412 (canonicalize_loop_induction_variables): Same.
12413 (canonicalize_induction_variables): Same.
12414 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12416 (stmt_after_inc_pos): Same.
12417 (contains_abnormal_ssa_name_p): Same.
12418 (niter_for_exit): Same.
12421 (find_givs_in_bb): Same.
12422 (find_induction_variables): Same.
12423 (find_interesting_uses_cond): Same.
12424 (outermost_invariant_loop_for_expr): Same.
12425 (idx_find_step): Same.
12426 (add_candidate_1): Same.
12427 (add_iv_candidate_derived_from_uses): Same.
12428 (alloc_use_cost_map): Same.
12429 (prepare_decl_rtl): Same.
12430 (generic_predict_doloop_p): Same.
12431 (computation_cost): Same.
12432 (determine_common_wider_type): Same.
12433 (get_computation_aff_1): Same.
12434 (get_use_type): Same.
12435 (determine_group_iv_cost_address): Same.
12437 (difference_cannot_overflow_p): Same.
12438 (may_eliminate_iv): Same.
12439 (determine_set_costs): Same.
12440 (cheaper_cost_pair): Same.
12441 (compare_cost_pair): Same.
12442 (iv_ca_cand_for_group): Same.
12443 (iv_ca_recount_cost): Same.
12444 (iv_ca_set_remove_invs): Same.
12445 (iv_ca_set_no_cp): Same.
12446 (iv_ca_set_add_invs): Same.
12447 (iv_ca_set_cp): Same.
12448 (iv_ca_add_group): Same.
12449 (iv_ca_cost): Same.
12450 (iv_ca_compare_deps): Same.
12451 (iv_ca_delta_reverse): Same.
12452 (iv_ca_delta_commit): Same.
12453 (iv_ca_cand_used_p): Same.
12454 (iv_ca_delta_free): Same.
12456 (iv_ca_free): Same.
12457 (iv_ca_dump): Same.
12458 (iv_ca_extend): Same.
12459 (iv_ca_narrow): Same.
12460 (iv_ca_prune): Same.
12461 (cheaper_cost_with_cand): Same.
12462 (iv_ca_replace): Same.
12463 (try_add_cand_for): Same.
12464 (get_initial_solution): Same.
12465 (try_improve_iv_set): Same.
12466 (find_optimal_iv_set_1): Same.
12467 (create_new_iv): Same.
12468 (rewrite_use_compare): Same.
12469 (remove_unused_ivs): Same.
12470 (determine_scaling_factor): Same.
12471 * tree-ssa-loop-ivopts.h: Same.
12472 * tree-ssa-loop-manip.c (create_iv): Same.
12473 (compute_live_loop_exits): Same.
12474 (add_exit_phi): Same.
12475 (add_exit_phis): Same.
12476 (find_uses_to_rename_use): Same.
12477 (find_uses_to_rename_def): Same.
12478 (find_uses_to_rename_in_loop): Same.
12479 (rewrite_into_loop_closed_ssa): Same.
12480 (check_loop_closed_ssa_bb): Same.
12481 (split_loop_exit_edge): Same.
12482 (ip_end_pos): Same.
12483 (ip_normal_pos): Same.
12484 (copy_phi_node_args): Same.
12485 (gimple_duplicate_loop_to_header_edge): Same.
12486 (can_unroll_loop_p): Same.
12487 (determine_exit_conditions): Same.
12488 (scale_dominated_blocks_in_loop): Same.
12489 (niter_for_unrolled_loop): Same.
12490 (tree_transform_and_unroll_loop): Same.
12491 (rewrite_all_phi_nodes_with_iv): Same.
12492 * tree-ssa-loop-manip.h: Same.
12493 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12494 (number_of_iterations_ne): Same.
12495 (assert_no_overflow_lt): Same.
12496 (assert_loop_rolls_lt): Same.
12497 (number_of_iterations_lt): Same.
12498 (adjust_cond_for_loop_until_wrap): Same.
12499 (tree_simplify_using_condition): Same.
12500 (simplify_using_initial_conditions): Same.
12501 (simplify_using_outer_evolutions): Same.
12502 (loop_only_exit_p): Same.
12503 (ssa_defined_by_minus_one_stmt_p): Same.
12504 (number_of_iterations_popcount): Same.
12505 (number_of_iterations_exit): Same.
12506 (find_loop_niter): Same.
12507 (finite_loop_p): Same.
12508 (chain_of_csts_start): Same.
12509 (get_val_for): Same.
12510 (loop_niter_by_eval): Same.
12511 (derive_constant_upper_bound_ops): Same.
12512 (do_warn_aggressive_loop_optimizations): Same.
12513 (record_estimate): Same.
12514 (get_cst_init_from_scev): Same.
12515 (record_nonwrapping_iv): Same.
12516 (idx_infer_loop_bounds): Same.
12517 (infer_loop_bounds_from_ref): Same.
12518 (infer_loop_bounds_from_array): Same.
12519 (infer_loop_bounds_from_pointer_arith): Same.
12520 (infer_loop_bounds_from_signedness): Same.
12521 (bound_index): Same.
12522 (discover_iteration_bound_by_body_walk): Same.
12523 (maybe_lower_iteration_bound): Same.
12524 (estimate_numbers_of_iterations): Same.
12525 (estimated_loop_iterations): Same.
12526 (estimated_loop_iterations_int): Same.
12527 (max_loop_iterations): Same.
12528 (max_loop_iterations_int): Same.
12529 (likely_max_loop_iterations): Same.
12530 (likely_max_loop_iterations_int): Same.
12531 (estimated_stmt_executions_int): Same.
12532 (max_stmt_executions): Same.
12533 (likely_max_stmt_executions): Same.
12534 (estimated_stmt_executions): Same.
12535 (stmt_dominates_stmt_p): Same.
12536 (nowrap_type_p): Same.
12537 (loop_exits_before_overflow): Same.
12538 (scev_var_range_cant_overflow): Same.
12539 (scev_probably_wraps_p): Same.
12540 (free_numbers_of_iterations_estimates): Same.
12541 * tree-ssa-loop-niter.h: Same.
12542 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12543 (idx_analyze_ref): Same.
12544 (analyze_ref): Same.
12545 (gather_memory_references_ref): Same.
12546 (mark_nontemporal_store): Same.
12547 (emit_mfence_after_loop): Same.
12548 (may_use_storent_in_loop_p): Same.
12549 (mark_nontemporal_stores): Same.
12550 (should_unroll_loop_p): Same.
12551 (volume_of_dist_vector): Same.
12552 (add_subscript_strides): Same.
12553 (self_reuse_distance): Same.
12554 (insn_to_prefetch_ratio_too_small_p): Same.
12555 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12556 (patch_loop_exit): Same.
12557 (find_or_create_guard_phi): Same.
12558 (easy_exit_values): Same.
12559 (connect_loop_phis): Same.
12560 (connect_loops): Same.
12561 (compute_new_first_bound): Same.
12562 (split_loop): Same.
12563 (tree_ssa_split_loops): Same.
12564 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12565 (is_maybe_undefined): Same.
12566 (tree_may_unswitch_on): Same.
12567 (simplify_using_entry_checks): Same.
12568 (tree_unswitch_single_loop): Same.
12569 (tree_unswitch_loop): Same.
12570 (tree_unswitch_outer_loop): Same.
12571 (empty_bb_without_guard_p): Same.
12572 (used_outside_loop_p): Same.
12573 (get_vop_from_header): Same.
12574 (hoist_guard): Same.
12575 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12576 (get_lsm_tmp_name): Same.
12577 * tree-ssa-loop.h: Same.
12578 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12579 (build_and_add_sum): Same.
12580 (no_side_effect_bb): Same.
12582 (linearize_expr): Same.
12583 (should_break_up_subtract): Same.
12584 (linearize_expr_tree): Same.
12585 * tree-ssa-scopedtables.c: Same.
12586 * tree-ssa-scopedtables.h: Same.
12587 * tree-ssa-structalias.c (condense_visit): Same.
12588 (label_visit): Same.
12589 (dump_pred_graph): Same.
12590 (perform_var_substitution): Same.
12591 (move_complex_constraints): Same.
12592 (remove_preds_and_fake_succs): Same.
12593 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12594 (determine_bb_domination_status): Same.
12595 (duplicate_thread_path): Same.
12596 (thread_through_all_blocks): Same.
12597 * tree-ssa-threadupdate.h: Same.
12598 * tree-streamer-in.c (streamer_read_string_cst): Same.
12599 (input_identifier): Same.
12600 (unpack_ts_type_common_value_fields): Same.
12601 (unpack_ts_block_value_fields): Same.
12602 (unpack_ts_translation_unit_decl_value_fields): Same.
12603 (unpack_ts_omp_clause_value_fields): Same.
12604 (streamer_read_tree_bitfields): Same.
12605 (streamer_alloc_tree): Same.
12606 (lto_input_ts_common_tree_pointers): Same.
12607 (lto_input_ts_vector_tree_pointers): Same.
12608 (lto_input_ts_poly_tree_pointers): Same.
12609 (lto_input_ts_complex_tree_pointers): Same.
12610 (lto_input_ts_decl_minimal_tree_pointers): Same.
12611 (lto_input_ts_decl_common_tree_pointers): Same.
12612 (lto_input_ts_decl_non_common_tree_pointers): Same.
12613 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12614 (lto_input_ts_field_decl_tree_pointers): Same.
12615 (lto_input_ts_function_decl_tree_pointers): Same.
12616 (lto_input_ts_type_common_tree_pointers): Same.
12617 (lto_input_ts_type_non_common_tree_pointers): Same.
12618 (lto_input_ts_list_tree_pointers): Same.
12619 (lto_input_ts_vec_tree_pointers): Same.
12620 (lto_input_ts_exp_tree_pointers): Same.
12621 (lto_input_ts_block_tree_pointers): Same.
12622 (lto_input_ts_binfo_tree_pointers): Same.
12623 (lto_input_ts_constructor_tree_pointers): Same.
12624 (lto_input_ts_omp_clause_tree_pointers): Same.
12625 (streamer_read_tree_body): Same.
12626 * tree-streamer.h: Same.
12627 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12628 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12629 (vect_analyze_possibly_independent_ddr): Same.
12630 (vect_analyze_data_ref_dependence): Same.
12631 (vect_compute_data_ref_alignment): Same.
12632 (vect_enhance_data_refs_alignment): Same.
12633 (vect_analyze_data_ref_access): Same.
12634 (vect_check_gather_scatter): Same.
12635 (vect_find_stmt_data_reference): Same.
12636 (vect_create_addr_base_for_vector_ref): Same.
12637 (vect_setup_realignment): Same.
12638 (vect_supportable_dr_alignment): Same.
12639 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12640 (adjust_phi_and_debug_stmts): Same.
12641 (vect_set_loop_mask): Same.
12642 (add_preheader_seq): Same.
12643 (vect_maybe_permute_loop_masks): Same.
12644 (vect_set_loop_masks_directly): Same.
12645 (vect_set_loop_condition_masked): Same.
12646 (vect_set_loop_condition_unmasked): Same.
12647 (slpeel_duplicate_current_defs_from_edges): Same.
12648 (slpeel_add_loop_guard): Same.
12649 (slpeel_can_duplicate_loop_p): Same.
12650 (create_lcssa_for_virtual_phi): Same.
12652 (vect_update_ivs_after_vectorizer): Same.
12653 (vect_gen_vector_loop_niters_mult_vf): Same.
12654 (slpeel_update_phi_nodes_for_loops): Same.
12655 (slpeel_update_phi_nodes_for_guard1): Same.
12656 (find_guard_arg): Same.
12657 (slpeel_update_phi_nodes_for_guard2): Same.
12658 (slpeel_update_phi_nodes_for_lcssa): Same.
12659 (vect_do_peeling): Same.
12660 (vect_create_cond_for_alias_checks): Same.
12661 (vect_loop_versioning): Same.
12662 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12663 (vect_inner_phi_in_double_reduction_p): Same.
12664 (vect_analyze_scalar_cycles_1): Same.
12665 (vect_fixup_scalar_cycles_with_patterns): Same.
12666 (vect_get_loop_niters): Same.
12667 (bb_in_loop_p): Same.
12668 (vect_get_max_nscalars_per_iter): Same.
12669 (vect_verify_full_masking): Same.
12670 (vect_compute_single_scalar_iteration_cost): Same.
12671 (vect_analyze_loop_form_1): Same.
12672 (vect_analyze_loop_form): Same.
12673 (vect_active_double_reduction_p): Same.
12674 (vect_analyze_loop_operations): Same.
12675 (neutral_op_for_slp_reduction): Same.
12676 (vect_is_simple_reduction): Same.
12677 (vect_model_reduction_cost): Same.
12678 (get_initial_def_for_reduction): Same.
12679 (get_initial_defs_for_reduction): Same.
12680 (vect_create_epilog_for_reduction): Same.
12681 (vectorize_fold_left_reduction): Same.
12682 (vectorizable_reduction): Same.
12683 (vectorizable_induction): Same.
12684 (vectorizable_live_operation): Same.
12685 (loop_niters_no_overflow): Same.
12686 (vect_get_loop_mask): Same.
12687 (vect_transform_loop_stmt): Same.
12688 (vect_transform_loop): Same.
12689 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12690 (vect_determine_precisions): Same.
12691 (vect_pattern_recog_1): Same.
12692 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12693 * tree-vect-stmts.c (stmt_vectype): Same.
12694 (process_use): Same.
12695 (vect_init_vector_1): Same.
12696 (vect_truncate_gather_scatter_offset): Same.
12697 (get_group_load_store_type): Same.
12698 (vect_build_gather_load_calls): Same.
12699 (vect_get_strided_load_store_ops): Same.
12700 (vectorizable_simd_clone_call): Same.
12701 (vectorizable_store): Same.
12702 (permute_vec_elements): Same.
12703 (vectorizable_load): Same.
12704 (vect_transform_stmt): Same.
12705 (supportable_widening_operation): Same.
12706 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12707 (vec_info::free_stmt_vec_info): Same.
12708 (vect_free_loop_info_assumptions): Same.
12709 (vect_loop_vectorized_call): Same.
12710 (set_uid_loop_bbs): Same.
12711 (vectorize_loops): Same.
12712 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12713 * tree.c (add_tree_to_fld_list): Same.
12714 (fld_type_variant_equal_p): Same.
12715 (fld_decl_context): Same.
12716 (fld_incomplete_type_of): Same.
12717 (free_lang_data_in_binfo): Same.
12718 (need_assembler_name_p): Same.
12719 (find_decls_types_r): Same.
12720 (get_eh_types_for_runtime): Same.
12721 (find_decls_types_in_eh_region): Same.
12722 (find_decls_types_in_node): Same.
12723 (assign_assembler_name_if_needed): Same.
12724 * value-prof.c (stream_out_histogram_value): Same.
12725 * value-prof.h: Same.
12726 * var-tracking.c (use_narrower_mode): Same.
12727 (prepare_call_arguments): Same.
12728 (vt_expand_loc_callback): Same.
12729 (resolve_expansions_pending_recursion): Same.
12730 (vt_expand_loc): Same.
12731 * varasm.c (const_hash_1): Same.
12732 (compare_constant): Same.
12733 (tree_output_constant_def): Same.
12734 (simplify_subtraction): Same.
12735 (get_pool_constant): Same.
12736 (output_constant_pool_2): Same.
12737 (output_constant_pool_1): Same.
12738 (mark_constants_in_pattern): Same.
12739 (mark_constant_pool): Same.
12740 (get_section_anchor): Same.
12741 * vr-values.c (compare_range_with_value): Same.
12742 (vr_values::extract_range_from_phi_node): Same.
12743 * vr-values.h: Same.
12744 * web.c (unionfind_union): Same.
12745 * wide-int.h: Same.
12747 2019-07-09 Martin Sebor <msebor@redhat.com>
12750 * align.h: Change class-key from class to struct and vice versa
12751 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12752 * alloc-pool.h: Same.
12753 * asan.c (shadow_mem_size): Same.
12754 * auto-profile.c: Same.
12755 * basic-block.h: Same.
12757 * cfgexpand.c (set_rtl): Same.
12758 (expand_one_stack_var_at): Same.
12759 * cfghooks.h: Same.
12762 * config/i386/i386.h: Same.
12763 * df-problems.c (df_print_bb_index): Same.
12765 * df.h (df_single_use): Same.
12766 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12767 (layout::annotation_line_showed_range_p): Same.
12768 (get_printed_columns): Same.
12769 (correction::ensure_terminated): Same.
12770 (line_corrections::~line_corrections): Same.
12773 * dump-context.h: Same.
12774 * dumpfile.h: Same.
12775 * dwarf2out.c: Same.
12776 * edit-context.c: Same.
12777 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12779 * function.c (assign_stack_local): Same.
12780 * function.h: Same.
12782 * gcov.c (block_info::block_info): Same.
12783 * genattrtab.c: Same.
12784 * genextract.c: Same.
12785 * genmatch.c (comparison_code_p): Same.
12786 (id_base::id_base): Same.
12787 (decision_tree::print): Same.
12788 * genoutput.c: Same.
12789 * genpreds.c (write_one_predicate_function): Same.
12790 * genrecog.c (validate_pattern): Same.
12791 (find_operand_positions): Same.
12792 (optimize_subroutine_group): Same.
12793 (merge_pattern_transition::merge_pattern_transition): Same.
12794 (merge_pattern_info::merge_pattern_info): Same.
12795 (merge_state_result::merge_state_result): Same.
12796 (merge_into_state): Same.
12797 * gensupport.c: Same.
12798 * gensupport.h: Same.
12799 * ggc-common.c (init_ggc_heuristics): Same.
12800 * ggc-tests.c (test_union): Same.
12801 * gimple-loop-interchange.cc (dump_induction): Same.
12802 * gimple-loop-versioning.cc: Same.
12803 * gimple-match.h (gimple_match_cond::any_else): Same.
12804 * gimple-ssa-backprop.c: Same.
12805 * gimple-ssa-sprintf.c: Same.
12806 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12808 (store_immediate_info::store_immediate_info): Same.
12809 (merged_store_group::apply_stores): Same.
12810 (get_location_for_stmts): Same.
12811 * gimple-ssa-strength-reduction.c: Same.
12812 * gimple-ssa-warn-alloca.c: Same.
12813 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12814 * godump.c (go_type_decl): Same.
12815 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12816 * hash-map.h: Same.
12817 * hash-set-tests.c (test_set_of_strings): Same.
12818 * hsa-brig.c: Same.
12819 * hsa-common.h: Same.
12820 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12821 * input.c (assert_loceq): Same.
12824 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12825 * ipa-fnsummary.h: Same.
12826 * ipa-inline.h: Same.
12827 * ipa-prop.h: Same.
12828 * ipa-split.c (visit_bb): Same.
12829 * ira-int.h (minmax_set_iter_next): Same.
12830 * loop-invariant.c: Same.
12832 * lra-eliminations.c: Same.
12834 * lra-lives.c (mark_regno_dead): Same.
12835 * lra-remat.c: Same.
12836 * lra-spills.c: Same.
12837 * lto-streamer.h: Same.
12838 * mem-stats.h: Same.
12839 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12840 * omp-low.c (omp_clause_aligned_alignment): Same.
12841 * optabs-query.h (get_vcond_eq_icode): Same.
12843 * opts.c (wrap_help): Same.
12844 * poly-int.h: Same.
12845 * predict.c (predict_paths_leading_to_edge): Same.
12846 * pretty-print.h: Same.
12847 * profile-count.h: Same.
12849 * read-rtl-function.c: Same.
12852 * regrename.c: Same.
12853 * regrename.h: Same.
12855 * rtl-iter.h: Same.
12856 * rtl.h (costs_add_n_insns): Same.
12858 * sched-int.h: Same.
12859 * sel-sched-ir.h: Same.
12860 * selftest.h: Same.
12861 * sese.h (vec_find): Same.
12863 * target-globals.h: Same.
12864 * tree-affine.c (aff_combination_find_elt): Same.
12865 * tree-affine.h: Same.
12866 * tree-data-ref.h: Same.
12867 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12868 * tree-predcom.c: Same.
12869 * tree-scalar-evolution.c (find_var_scev_info): Same.
12870 * tree-ssa-alias.h: Same.
12871 * tree-ssa-ccp.c: Same.
12872 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12873 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12874 (rewrite_mem_refs): Same.
12875 (execute_sm_if_changed): Same.
12876 (hoist_memory_references): Same.
12877 * tree-ssa-loop-ivopts.c (operator<=): Same.
12878 * tree-ssa-loop.h: Same.
12879 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12880 * tree-ssa-structalias.c: Same.
12881 * tree-switch-conversion.h (cluster::cluster): Same.
12882 (simple_cluster::simple_cluster): Same.
12883 * tree-vect-patterns.c (type_conversion_p): Same.
12884 * tree-vectorizer.c (dump_stmt_cost): Same.
12885 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12886 * tree.c (protected_set_expr_location): Same.
12887 * tree.h (desired_pro_or_demotion_p): Same.
12888 (fndecl_built_in_p): Same.
12889 * unique-ptr-tests.cc: Same.
12890 * var-tracking.c (delete_variable_part): Same.
12891 * varasm.c (assemble_real): Same.
12892 (tree_output_constant_def): Same.
12894 * wide-int-bitmask.h: Same.
12895 * wide-int.h (decompose): Same.
12897 2019-07-09 Richard Biener <rguenther@suse.de>
12899 PR tree-optimization/91114
12900 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12901 find a vector type isn't fatal.
12903 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12905 * config/aarch64/aarch64-simd.md
12906 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12907 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12908 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12909 (*aarch64_crypto_aese_fused,
12910 *aarch64_crypto_aesd_fused): Update to new definition.
12911 * config/aarch64/aarch64.c
12912 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12914 2019-07-09 Richard Biener <rguenther@suse.de>
12916 * gimple-match.h (gimple_match_op::resimplify): New.
12917 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12918 gimple_resimplify4, gimple_resimplify5): Remove.
12919 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12920 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12922 (gimple_match_op::resimplify): New.
12923 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12924 according to availability. Use gimple_match_op::resimplify.
12926 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12928 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12930 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12932 * config/arm/crypto.md:
12933 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12934 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12935 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12936 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12938 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12939 * config/arm/aarch-common-protos.h
12940 (aarch_crypto_can_dual_issue): Remove.
12941 * config/arm/aarch-common.c
12942 (aarch_crypto_can_dual_issue): Likewise.
12943 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12944 * config/arm/cortex-a53.md: Likewise.
12945 * config/arm/cortex-a57.md: Likewise.
12946 * config/arm/iterators.md:
12947 (CRYPTO_BINARY): Redefine.
12948 (CRYPTO_UNARY): Removed.
12949 (CRYPTO_AES, CRYPTO_AESMC): New.
12951 2019-07-09 Richard Biener <rguenther@suse.de>
12953 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12954 (vn_reference_lookup_3): If the main ref has no access path recorded
12955 but orig_ref has use it to do access-path based disambiguation.
12956 (vn_reference_lookup_pieces): Adjust.
12957 (vn_reference_lookup): Pass down original ref if we valueized.
12959 2019-07-09 Martin Liska <mliska@suse.cz>
12961 * doc/extend.texi: Document influence on loop
12964 2019-07-09 Martin Liska <mliska@suse.cz>
12966 * lto-compress.c (lto_normalized_zstd_level): Do not use
12967 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12968 of libzstd. One can use 0 as a default compression level.
12970 2019-07-09 Martin Liska <mliska@suse.cz>
12972 * doc/invoke.texi: Add link from -fprofile-dir option.
12973 Use better wording for 'gcno filename'.
12975 2019-07-08 Martin Sebor <msebor@redhat.com>
12977 PR middle-end/71924
12978 PR middle-end/90549
12979 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12981 (args_loc_t): New type.
12982 (args_loc_t, locmap_t): same.
12983 (diag_returned_locals): New function.
12984 (is_addr_local): Same.
12985 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12986 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12987 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12989 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12991 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12992 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12993 and casts in offset when different, both through gimple stmts
12994 and through trees. Rewritten using loops to minimize code duplication
12997 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12999 * emit-rtl.c (set_insn_locations): New function moved from...
13000 * function.c (set_insn_locations): ...here.
13001 * ira-emit.c (emit_moves): Propagate location of the first instruction
13002 to the inserted move instructions.
13003 * reg-stack.c (compensate_edge): Set the location if the sequence is
13004 inserted on the edge.
13005 * rtl.h (set_insn_locations): Declare.
13007 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13009 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13010 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13013 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13015 PR rtl-optimization/88233
13016 * common.opt (fsplit-wide-types-early): New option.
13017 * common/config/rs6000/rs6000-common.c
13018 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13020 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13021 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13022 flag_split_wide_types_early.
13023 (pass_data_lower_subreg3): New.
13024 (pass_lower_subreg3): New.
13025 (make_pass_lower_subreg3): New.
13026 * passes.def (pass_lower_subreg2): Move after the loop passes.
13027 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13028 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13029 the pass pipeline; its previous place is taken by ...
13030 (make_pass_lower_subreg3): ... this.
13032 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13034 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13035 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13037 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13039 * config/s390/constraints.md: Add new jsc constraint.
13040 * config/s390/predicates.md: New predicates.
13041 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13042 * config/s390/s390.c (s390_valid_shift_count): New function.
13043 (print_shift_count_operand): Use s390_valid_shift_count.
13044 (print_operand): Likewise.
13045 * config/s390/s390.md: Use new predicate.
13046 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13047 * config/s390/vector.md: Use new predicate.
13049 2019-07-08 Andrew Waterman <andrew@sifive.com>
13050 Jim Wilson <jimw@sifive.com>
13052 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13053 bitsize instead of BITS_PER_WORD.
13055 2019-07-08 Martin Liska <mliska@suse.cz>
13057 * collect2.c (defined): Revert to before r254460.
13058 (scan_prog_file): Revert to before r254460.
13060 2019-07-08 Richard Biener <rguenther@suse.de>
13062 PR tree-optimization/83518
13063 * tree-ssa-sccvn.c: Include splay-tree.h.
13064 (struct pd_range, struct pd_data): New.
13065 (struct vn_walk_cb_data): Add data to track partial definitions.
13066 (vn_walk_cb_data::~vn_walk_cb_data): New.
13067 (vn_walk_cb_data::push_partial_def): New.
13068 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13069 (vn_reference_lookup_2): When partial defs are registered give up.
13070 (vn_reference_lookup_3): Track partial defs for memset and
13071 constructor zeroing and for defs from constants.
13073 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13075 * doc/install.texi (bootstrap-Og): Document.
13077 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13079 * config/riscv/pic.md (*local_pic_load_s<mode>)
13080 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13081 referenced by <mode>, giving...
13082 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13083 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13084 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13085 use <X:MODE> for the mode attribute.
13087 2019-07-07 Jeff Law <law@redhat.com>
13089 PR tree-optimization/91090
13090 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13091 in handling of ranges to simplify switch statements.
13093 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13095 * config/darwin.c (darwin_override_options): Make a final check on PIC
13098 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13100 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13101 on for kernel code.
13103 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13106 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13107 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13108 instead of matching them to "l" output operands.
13110 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13112 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13113 and check whether addr.reg is nonnull before using it.
13115 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13117 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13118 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13119 variable(s). For conditional lastprivate look through outer
13120 GIMPLE_OMP_SCAN context.
13121 (lower_omp_1): For conditional lastprivate look through outer
13122 GIMPLE_OMP_SCAN context.
13124 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13125 member to combined_into_simd_safelen1.
13126 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13127 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13128 clauses if ctx->combined_into_simd_safelen1 put statements after the
13129 predicate conditionalized block rather than into it.
13131 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13133 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13135 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13136 Make the choice of <mode> explicit, giving...
13137 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13139 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13141 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13142 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13144 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13145 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13146 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13147 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13148 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13149 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13150 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13151 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13152 (*avx512f_scatterdi<mode>): Likewise.
13153 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13155 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13157 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13158 specify the mode iterator referenced by <mode>, giving...
13159 (*push1_h8300hs_<QHI:mode>): ...this.
13161 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13163 * config/gcn/gcn-valu.md
13164 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13165 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13166 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13167 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13168 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13169 but using the _exec comparison patterns.
13170 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13171 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13172 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13173 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13174 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13175 but using the _exec comparison patterns.
13177 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13179 * config/arm/sync.md
13180 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13181 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13182 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13183 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13184 <SIDI:cas_cmp_str>.
13186 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13188 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13189 (maybe_lookup_ctx): Add forward declaration.
13190 (omp_find_scan): Likewise. Walk into body of simd if composited
13191 with worksharing loop.
13192 (scan_omp_simd_scan): New function.
13193 (scan_omp_1_stmt): Call it.
13194 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13195 ctx->for_simd_scan_phase.
13196 (lower_rec_input_clauses): Do much less work for inscan reductions
13197 in ctx->for_simd_scan_phase is_simd regions.
13198 (lower_omp_scan): Set is_simd also on simd constructs composited
13199 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13200 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13201 emit their body after in simd constructs composited with worksharing
13203 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13205 * omp-low.c (omp_find_scan): Make static.
13206 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13207 the second loop, var2 represents the first partial sum and so needs
13208 to go before rprivb[ivar].
13210 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13212 * config/rs6000/rs6000-logue.c: Remove unused code.
13214 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13216 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13218 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13221 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13222 check with a frame laid out check.
13224 2019-07-05 Richard Biener <rguenther@suse.de>
13226 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13227 when comparing against a store with possibly the same value.
13229 2019-07-05 Richard Biener <rguenther@suse.de>
13231 PR tree-optimization/91091
13232 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13233 (walk_non_aliased_vuses): Likewise.
13234 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13235 (get_continuation_for_phi): New tbaa_p parameter and pass
13237 (walk_non_aliased_vuses): Likewise.
13238 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13239 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13240 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13242 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13243 (adjust_offsets_for_equal_base_address): New function.
13244 (vn_reference_lookup_3): Use it to catch more base equivalences.
13245 Handle and pass down tbaa_p flag.
13246 (vn_reference_lookup_pieces): Adjust.
13247 (vn_reference_lookup): Remove alias-set altering, instead pass
13248 down false as tbaa_p.
13250 2019-07-05 Richard Biener <rguenther@suse.de>
13252 PR tree-optimization/91091
13253 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13254 accesses can happen with -fno-strict-aliasing.
13256 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13258 * tree-ssa-alias.c (alias_stats): Add
13259 nonoverlapping_component_refs_since_match_p_must_overlap.
13260 (dump_alias_stats): Print it.
13261 (nonoverlapping_component_refs_since_match_p): Add early exit.
13262 (nonoverlapping_component_refs_p): Do not account early exit.
13264 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13266 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13267 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13268 (emit_eh_dispatch): Delete.
13269 (lower_catch): Emit the eh_dispatch manually and set the location of
13270 the first catch statement onto it.
13271 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13272 (lower_eh_dispatch): Propagate location.
13273 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13274 (eliminate_build): Likewise.
13276 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13278 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13279 phi nodes if possible.
13280 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13281 location info on the newly created statement.
13282 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13283 newly created increment if needed.
13285 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13287 PR middle-end/78884
13288 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13289 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13290 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13291 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13292 ctx->add_safelen1 is set.
13294 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13295 GOMP_loop_start at the start of second worksharing loop in a scan.
13296 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13297 worksharing loop in a scan even if there are conditional lastprivates,
13298 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13300 2019-07-04 Jan Hubicka <jh@suse.cz>
13302 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13303 Fix check for match in the ref walk.
13305 2019-07-04 Martin Liska <mliska@suse.cz>
13307 * tree-ssa-loop-niter.c
13308 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13309 (estimate_numbers_of_iterations):
13310 Support __builtin_expect_with_probability for analysis
13311 of # of loop iterations.
13313 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13315 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13316 * except.c: Likewise.
13317 * expr.c (expand_expr_real_1): Reject it.
13318 * gimplify.c (gimplify_expr): Gimplify it, within
13320 * tree-dump.c (dequeue_and_dump): Dump it.
13321 * tree-pretty-print.c (dump_generic_node): Likewise.
13322 * tree.c (block_may_fallthru): Handle it.
13323 * tree.def (EH_ELSE_EXPR): Introduce it.
13324 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13325 with GIMPLE_EH_ELSE as try/finally/else.
13327 2019-07-04 Richard Biener <rguenther@suse.de>
13330 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13331 parameter whether to disable GC collection.
13332 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13334 (execute_all_ipa_transforms): Likewise and pass it down.
13335 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13336 collection from applying IPA transforms.
13337 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13338 from applying IPA transforms.
13340 2019-07-04 Richard Biener <rguenther@suse.de>
13342 PR tree-optimization/90911
13343 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13344 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13345 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13346 scalar_loop_scaling.
13347 (vect_transform_loop): Scale scalar loop profile if needed.
13348 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13349 the loop copy from if-conversion adjust edge probabilities
13350 and scale the vectorized loop body profile, queue the scalar
13351 profile for updating after peeling.
13353 2019-07-04 Jan Hubicka <jh@suse.cz>
13355 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13356 parameters; return early for must-alias.
13357 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13358 outer types match, try nonoverlapping_component_refs
13359 if must-alias is not obvious.
13360 (indirect_refs_may_alias_p): Likewise.
13361 (refs_may_alias_p_2): Likewise.
13363 2019-07-04 Richard Biener <rguenther@suse.de>
13365 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13367 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13369 (struct vn_walk_cb_data): New callback data struct.
13370 (vn_reference_lookup_2): Adjust.
13371 (vn_reference_lookup_3): Likewise.
13372 (vn_reference_lookup_pieces): Likewise.
13373 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13374 (visit_reference_op_load): Adjust.
13376 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13378 PR tree-optimization/91063
13379 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13380 stmt from stmts sequence before calling vect_init_vector_1.
13383 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13386 * fwprop.c (reg_single_def_p): New function.
13387 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13388 (forward_propagate_into): New parameter reg_prop_only
13389 with default value false.
13390 Propagate def's src into loop only if SET_SRC and SET_DEST
13391 of def_set have single definitions.
13392 Likewise if reg_prop_only is set to true.
13393 (fwprop): New param fwprop_addr_p.
13394 Integrate fwprop_addr into fwprop.
13395 (fwprop_addr): Remove.
13396 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13398 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13399 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13400 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13402 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13404 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13405 in worksharing loop scans.
13407 PR tree-optimization/91074
13408 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13411 PR rtl-optimization/90756
13412 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13415 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13417 * config/aarch64/aarch64.md: Remove redundant constraints from
13418 define_expand but keep some patterns untouched if they are
13419 specially selected by TARGET_SECONDARY_RELOAD hook.
13420 * config/aarch64/aarch64-sve.md: Likewise.
13421 * config/aarch64/atomics.md: Remove redundant constraints from
13423 * config/aarch64/aarch64-simd.md: Likewise.
13425 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13427 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13428 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13429 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13431 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13434 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13436 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13437 (STARTFILE_SPEC): Split crt3 into a separate spec.
13438 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13439 (DARWIN_CRT2_SPEC): New.
13440 (DARWIN_CRT3_SPEC): New.
13441 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13442 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13443 (DARWIN_CRT3_SPEC): New.
13445 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13447 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13448 Change the RTL attribute "length" from "4" to "*" to allow the
13449 length attribute to be adjusted automatically for prefixed load,
13450 store, and add immediate instructions.
13451 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13453 (extendsi<mode>2, EXTSI iterator): Likewise.
13454 (movsi_internal1): Likewise.
13455 (movsi_from_sf): Likewise.
13456 (movdi_from_sf_zero_ext): Likewise.
13457 (mov<mode>_internal): Likewise.
13458 (movcc_internal1, QHI iterator): Likewise.
13459 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13460 (movsf_from_si): Likewise.
13461 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13462 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13463 (mov<mode>, FMOVE128 iterator): Likewise.
13464 (movdi_internal64): Likewise.
13465 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13467 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13468 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13469 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13470 (vsx_splat_v4sf): Likewise.
13472 2019-07-03 Mark Wielaard <mark@klomp.org>
13475 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13476 DW_AT_addr_base if there is actually a .debug_addr section with
13478 (output_addr_table): Add DWARF5 table header generation here after
13479 checking there are actually any addresses from...
13480 (dwarf2out_finish): ...here.
13482 2019-07-03 Richard Biener <rguenther@suse.de>
13484 PR middle-end/91069
13485 * match.pd (vec_perm -> bit_insert): Fix element read from
13488 2019-07-03 Martin Liska <mliska@suse.cz>
13490 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13491 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13493 * generic-match-head.c: Include dbgcnt.h.
13494 * gimple-match-head.c: Likewise.
13496 2019-07-03 Martin Liska <mliska@suse.cz>
13498 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13499 (GCOV_COUNTER_V_TOPN): New.
13500 (GCOV_COUNTER_V_INDIR): Use _topn.
13501 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13502 (GCOV_TOPN_VALUES): New.
13503 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13504 (GCOV_TOPN_VALUES_COUNTERS): New.
13505 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13507 (gimple_init_gcov_profiler): Rename variables from one_value
13509 (gimple_gen_one_value_profiler): Remove.
13510 (gimple_gen_topn_values_profiler): New function.
13511 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13512 names instead of SINGLE_VALUE.
13513 (stream_out_histogram_value): Likewise.
13514 (stream_in_histogram_value): Likewise.
13515 (get_most_common_single_value): Likewise.
13516 (gimple_divmod_fixed_value_transform): Likewise.
13517 (gimple_stringops_transform): Likewise.
13518 (gimple_divmod_values_to_profile): Likewise.
13519 (gimple_stringops_values_to_profile): Likewise.
13520 (gimple_find_values_to_profile): Likewise.
13521 * value-prof.h (enum hist_type): Rename to TOPN.
13522 (gimple_gen_one_value_profiler): Remove.
13523 (gimple_gen_topn_values_profiler): New.
13525 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13527 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13528 if it has the DW_AT_data_member_location attribute.
13530 2019-07-03 Richard Biener <rguenther@suse.de>
13532 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13535 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13537 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13538 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13539 (tlsdesc_small_sve_<mode>): Likewise.
13541 2019-07-03 Martin Liska <mliska@suse.cz>
13543 * Makefile.in: Define ZSTD_LIB.
13544 * common.opt: Adjust compression level
13545 to support also zstd levels.
13546 * config.in: Regenerate.
13547 * configure: Likewise.
13548 * configure.ac: Add --with-zstd and --with-zstd-include options
13550 * doc/install.texi: Mention zstd dependency.
13551 * gcc.c: Print supported LTO compression algorithms.
13552 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13553 (lto_compression_zstd): Likewise.
13554 (lto_uncompression_zstd): Likewise.
13555 (lto_end_compression): Dispatch in between zlib and zstd.
13556 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13557 (lto_uncompression_zlib): Make it static.
13558 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13559 * lto-section-in.c (lto_get_section_data): Pass info
13560 about used compression.
13561 * lto-streamer-out.c: By default use zstd when possible.
13562 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13563 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13565 2019-07-03 Martin Liska <mliska@suse.cz>
13567 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13568 * lto-section-out.c (lto_destroy_simple_output_block): Never
13569 compress LTO_section_lto section.
13570 * lto-streamer-out.c (produce_asm): Do not set major_version
13572 (lto_output_toplevel_asms): Likewise.
13573 (produce_lto_section): New function.
13574 (lto_output): Call produce_lto_section.
13575 (lto_write_mode_table): Do not set major_version and
13577 (produce_asm_for_decls): Likewise.
13578 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13580 (struct lto_header): Remove.
13581 (struct lto_section): New struct.
13582 (struct lto_simple_header): Do not inherit from lto_header.
13583 (struct lto_file_decl_data): Add lto_section_header field.
13585 2019-07-03 Martin Liska <mliska@suse.cz>
13587 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13589 * reg-stack.c (check_asm_stack_operands): Likewise.
13590 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13591 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13592 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13593 force_expand_binop.
13595 2019-07-03 Martin Liska <mliska@suse.cz>
13597 PR tree-optimization/90892
13598 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13599 in string constants.
13601 2019-07-03 Martin Liska <mliska@suse.cz>
13603 PR middle-end/90899
13604 * multiple_target.c (create_dispatcher_calls): Add to comdat
13605 group only if set for ifunc.
13607 2019-07-03 Martin Liska <mliska@suse.cz>
13610 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13611 Define local_object_name in outer scope in order to handle
13612 use-after-scope issue.
13614 2019-07-03 Martin Liska <mliska@suse.cz>
13616 * common.opt: Add fprofile-note.
13617 * coverage.c (coverage_init): Append the option
13619 * doc/invoke.texi: Document -fprofile-note.
13621 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13623 PR tree-optimization/91033
13624 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13625 vect_analyze_data_refs): Add bool * arguments.
13626 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13627 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13628 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13629 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13630 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13631 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13632 vect_analyze_data_refs caller.
13634 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13636 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13637 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13638 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13639 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13640 OMP_CLAUSE__SCANTEMP_ entry.
13641 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13642 * tree-pretty-print.c (dump_omp_clause): Likewise.
13643 * tree-nested.c (convert_nonlocal_omp_clauses,
13644 convert_local_omp_clauses): Likewise.
13645 * omp-general.h (struct omp_for_data): Add have_scantemp and
13646 have_nonctrl_scantemp members.
13647 * omp-general.c (omp_extract_for_data): Initialize them.
13648 * omp-low.c (struct omp_context): Add scan_exclusive member.
13649 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13650 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13651 ctx->scan_exclusive.
13652 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13653 of !ctx->scan_inclusive.
13654 (lower_rec_input_clauses): Simplify gimplification of dtors using
13655 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13656 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13657 loops. Don't add barrier for reduction_omp_orig_ref if
13658 ctx->scan_??xclusive.
13659 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13660 (lower_omp_scan): Use ctx->scan_exclusive instead
13661 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13662 reductions. Use new_vard != new_var instead of repeated
13663 omp_is_reference calls.
13664 (omp_find_scan, lower_omp_for_scan): New functions.
13665 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13667 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13668 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13669 and fd->have_scantemp.
13671 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13672 on worksharing loop propagate it as shared clause to containing
13675 * omp-expand.c (expand_omp_for_static_nochunk,
13676 expand_omp_for_static_chunk): For nowait worksharing loop with
13677 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13680 2019-07-02 qing zhao <qing.zhao@oracle.com>
13682 PR preprocessor/90581
13683 * doc/cppopts.texi: Add document for -fmax-include-depth.
13684 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13686 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13688 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13689 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13690 (mmx_packssdw): Ditto.
13691 (mmx_punpckhbw): Ditto.
13692 (mmx_punpcklbw): Ditto.
13693 (mmx_punpckhwd): Ditto.
13694 (mmx_punpcklwd): Ditto.
13695 (mmx_punpckhdq): Ditto.
13696 (mmx_punpckldq): Ditto.
13697 (*vec_dupv4hi): Ditto.
13698 (*vec_dupv2si): Ditto.
13699 (mmx_pmovmskb): Ditto.
13700 * config/i386/sse.md (sse_cvtpi2ps): Use
13701 TARGET_SSE2 && SSE_REG_P in split condition.
13702 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13703 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13704 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13705 (ssse3_pshufbv8qi3): Ditto.
13706 (ssse3_palignrdi): Ditto.
13708 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13710 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13711 with inlined save and restore.
13713 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13715 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13716 to be inserted on single successor edge of the entry block. Then call
13717 commit_edge_insertions instead of inserting the instructions manually.
13718 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13719 RTL expansion and rebuild jump labels chain.
13721 2019-07-02 Richard Biener <rguenther@suse.de>
13723 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13725 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13727 * tree.c (build_common_tree_nodes): Initialize them.
13728 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13729 Make declarations comments.
13730 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13731 chrec_known): Remove definitions.
13732 (initialize_scalar_evolutions_analyzer): Remove.
13733 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13734 * tree-streamer.c (preload_common_nodes): Do not preload
13735 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13737 2019-07-02 Jan Hubicka <jh@suse.cz>
13739 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13742 2019-07-02 Jan Hubicka <jh@suse.cz>
13744 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13746 (nonoverlapping_component_refs_since_match_p): ... this one;
13747 handle also non-decl bases; return -1 if search gave up.
13748 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13749 nonoverlapping_component_refs_of_decl_p_no_alias to
13750 nonoverlapping_component_refs_since_match_p_may_alias,
13751 nonoverlapping_component_refs_since_match_p_no_alias.
13752 (dump_alias_stats): Update dumping.
13753 (aliasing_matching_component_refs_p): Break out from ...;
13754 dispatch to nonoverlapping_component_refs_for_decl_p
13755 and nonoverlapping_component_refs_since_match_p.
13756 (aliasing_component_refs_p): ... here; call
13757 nonoverlapping_component_refs_p in scenarios where we can not
13758 precisely determine base match.
13759 (decl_refs_may_alias_p): Use
13760 nonoverlapping_component_refs_since_match_p.
13761 (indirect_ref_may_alias_decl_p): Do not call
13762 nonoverlapping_component_refs_p.
13763 (indirect_refs_may_alias_p): Likewise.
13765 2019-07-02 Jan Hubicka <jh@suse.cz>
13767 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13768 to clobber of return value.
13770 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13772 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13773 for is_neon_type instructions that have not already been categorized.
13775 2019-07-02 Richard Biener <rguenther@suse.de>
13777 PR tree-optimization/58483
13778 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13779 for MEM_REF base hashing.
13780 (equal_mem_array_ref_p): Likewise for base comparison.
13782 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13784 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13785 parameterized name.
13786 (signbit<mode>2): Use that name. Simplify.
13788 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13790 PR middle-end/66726
13791 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13792 Tune heuristic from PR71016 to allow MIN / MAX.
13794 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13796 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13797 parameterized name.
13798 (abs<mode>2): Use that name. Simplify.
13800 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13802 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13803 parameterized name.
13804 (neg<mode>2): Use that name. Simplify.
13806 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13808 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13810 (abs<mode>2): Use that name. Simplify.
13812 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13814 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13816 (neg<mode>2): Use that name. Simplify.
13818 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13820 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13821 ("enabled" attribute): Handle sse_noavx isa attribute.
13822 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13823 Use TARGET_SSE && SSE_REGNO_P in split condition.
13824 (*vec_dupv2sf): Ditto.
13826 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13828 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13830 (floatsi<mode>2): Use that name. Simplify.
13832 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13834 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13835 parameterized name.
13836 (extenddf<mode>2_vsx): Make this a parameterized name.
13837 (extenddf<mode>2): Use those names. Simplify.
13839 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13841 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13843 (eh_return): Use that name. Simplify.
13845 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13847 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13848 (doloop_end): Use that name. Simplify.
13850 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13852 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13853 parameterized name.
13854 (indirect_jump): Use that name. Simplify.
13856 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13858 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13859 parameterized name.
13860 (abs<mode>2): Use that name. Simplify.
13862 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13864 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13865 parameterized name.
13866 (fix_trunc<mode>si2): Use that name. Simplify.
13868 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13870 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13871 (allocate_stack): Use that name. Simplify.
13873 2019-07-01 Martin Sebor <msebor@redhat.com>
13875 PR middle-end/90923
13876 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13877 (hash_map::get_or_insert): Same. Reformat comment.
13878 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13879 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13880 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13881 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13882 (hash_table::hash_table (const hash_table&)): Use copy ctor
13883 instead of assignment to copy elements.
13885 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13886 John David Anglin <danglin@gcc.gnu.org>
13889 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13890 using saved frame pointer.
13892 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13894 PR middle-end/64242
13895 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13896 Add frame clobber and schedule blockage.
13898 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13900 * doc/invoke.texi (Link Options): Further editorial changes to
13901 -flinker-output docs.
13903 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13905 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13906 Load both operands of a PLUS into registers separately.
13908 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13910 * config/s390/vector.md: Fix shift count operand printing.
13912 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13914 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13916 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13918 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13919 Use recog_data to test for an output operand.
13921 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13923 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13924 exclude any others that are disparaged or that are bound to need
13926 (ira_get_dup_out_num): Expand comment.
13928 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13930 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13931 constraint string for each operand/alternative combo. Only handle
13932 '%' at the start of constraint strings, and look for it outside
13935 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13937 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13938 alternative_mask instead of HARD_REG_SET to represent a
13939 bitmask of alternatives.
13940 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13941 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13943 2019-07-01 Martin Liska <mliska@suse.cz>
13945 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13946 use () for a constructor call.
13947 (test_applying_fixits_line_out_of_range): Likewise.
13948 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13950 (free_page): Likewise.
13952 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13954 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13955 parameter names to match usage (no functional change).
13956 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13958 2019-07-01 Richard Biener <rguenther@suse.de>
13960 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13962 (pass_fre::execute): Honor it.
13963 * passes.def: Adjust pass_fre invocations to allow iterating,
13964 add non-iterating pass_fre before late threading/dom.
13966 2019-07-01 Richard Biener <rguenther@suse.de>
13968 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13969 TARGET_MEM_REF handling to also handle address-taken ones.
13971 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13973 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13974 hardware attributes): Document avx512vp2intersect.
13976 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13978 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13979 (abs<mode>2): New expander.
13980 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13981 Use CODE_FOR_ssse3_absv8qi2.
13982 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13983 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13985 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13987 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13988 to sse, sse_noavx and avx. Update all uses.
13990 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13992 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13993 (*mmx_<plusminus_insn><mode>3): Ditto.
13994 (*mmx_mulv4hi3"): Ditto.
13995 (*mmx_smulv4hi3_highpart): Ditto.
13996 (*mmx_umulv4hi3_highpart): Ditto.
13997 (*mmx_pmaddwd): Ditto.
13998 (*sse2_umulv1siv1di3): Ditto.
13999 (*mmx_<code>v4hi3): Ditto.
14000 (*mmx_<code>v8qi3): Ditto.
14001 (mmx_ashr<mode>3): Ditto.
14002 ("mmx_<shift_insn><mode>3): Ditto.
14003 (*mmx_eq<mode>3): Ditto.
14004 (mmx_gt<mode>3): Ditto.
14005 (mmx_andnot<mode>3): Ditto.
14006 (*mmx_<code><mode>3): Ditto.
14007 (*mmx_pinsrw): Ditto.
14008 (*mmx_pextrw): Ditto.
14009 (mmx_pshufw_1): Ditto.
14010 (*mmx_uavgv8qi3): Ditto.
14011 (*mmx_uavgv4hi3): Ditto.
14012 ("mmx_psadbw): Ditto.
14013 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14014 (sse_cvttps2pi): Ditto.
14015 (ssse3_pmaddubsw): Ditto.
14016 (*ssse3_pmulhrswv4hi3): Ditto.
14017 (ssse3_psign<mode>3): Ditto.
14019 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14021 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14022 adjustment for bit-fields to all aggregate types.
14024 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14026 * config/rs6000/predicates.md (pcrel_address): Use
14027 SYMBOL_REF_LOCAL_P to determine if a label is local.
14028 (pcrel_external_address): New predicate.
14029 (non_prefixed_mem_operand): Delete, predicate not used.
14030 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14031 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14033 (SYMBOL_REF_PCREL_P): Likewise.
14036 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14038 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14039 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14040 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14042 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14044 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14045 override on extra_headers.
14047 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14049 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14050 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14052 (darwin_driver_init): Likewise.
14054 2019-06-28 Jan Beulich <jbeulich@suse.com>
14056 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14057 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14058 Eliminate redundant alternative.
14060 2019-06-28 Jan Beulich <jbeulich@suse.com>
14062 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14063 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14064 Use vector_operand.
14066 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14068 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14069 having a lower cost regardless of the speed option.
14071 2019-06-28 Jan Beulich <jbeulich@suse.com>
14073 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14074 vector_operand plus, on both alternatives, "Bm" constraint.
14076 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14078 * config/arm/arm.md: Remove redundant constraints from
14079 define_expand but leave reload_inm and reload_outm patterns
14080 untouched since they need special constraints to work.
14081 * config/arm/arm-fixed.md: Remove redundant constraints from
14083 * config/arm/iwmmxt.md: Likewise.
14084 * config/arm/neon.md: Likewise.
14085 * config/arm/sync.md: Likewise.
14086 * config/arm/thumb1.md: Likewise.
14087 * config/arm/vec-common.md: Likewise.
14089 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14091 * doc/install.texi: Document --disable-tm-clone-registry.
14093 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14096 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14099 PR tree-optimization/91010
14100 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14101 return true. Otherwise, don't call operand_equal_p if offset1 or
14102 offset2 is NULL and just return false.
14104 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14106 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14107 user-specified float mode choice for kernel mode code.
14109 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14111 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14114 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14116 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14117 use longcall for 64b code.
14119 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14121 * builtins.c (get_memory_rtx): Fix comment.
14122 * optabs.def (movmem_optab): Change to cpymem_optab.
14123 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14124 (emit_block_move_hints): Change movmem to cpymem.
14125 * defaults.h: Change movmem to cpymem.
14126 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14127 (default_use_by_pieces_infrastructure_p): Ditto.
14128 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14129 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14131 * config/aarch64/aarch64.h: Change movmem to cpymem.
14132 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14133 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14134 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14136 * config/arc/arc-protos.h: Change movmem to cpymem.
14137 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14138 * config/arc/arc.h: Change movmem to cpymem in comment.
14139 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14140 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14141 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14142 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14143 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14144 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14145 * config/avr/avr-protos.h: Change movmem to cpymem.
14146 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14147 avr_out_movmem): Change movmem to cpymem.
14148 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14149 Change movmem to cpymem.
14150 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14151 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14152 Change movmem to cpymem.
14153 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14154 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14155 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14156 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14157 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14158 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14159 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14160 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14161 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14162 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14163 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14164 expand_small_cpymem_or_setmem,
14165 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14166 expand_set_or_cpymem_constant_prologue,
14167 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14168 * config/i386/i386-protos.h: Change movmem to cpymem.
14169 * config/i386/i386.h: Change movmem to cpymem in comment.
14170 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14171 (setmem<mode>): Change expansion function name.
14172 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14173 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14174 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14175 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14176 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14177 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14178 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14180 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14181 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14182 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14183 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14184 Change movmem to cpymem.
14185 * config/mips/mips.h: Change movmem to cpymem.
14186 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14187 * config/nds32/nds32-memory-manipulation.c
14188 (nds32_expand_movmemsi_loop_unknown_size,
14189 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14190 nds32_expand_movmemsi_unroll,
14191 nds32_expand_movmemsi): Change movmem to cpymem.
14192 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14193 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14194 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14195 (pa_adjust_insn_length): Change call to compute_movmem_length.
14196 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14197 movmemdi, movmemdi_prereload,
14198 movmemdi_postreload): Change movmem to cpymem.
14199 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14200 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14201 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14202 * config/riscv/riscv.h: Change movmem to cpymem.
14203 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14204 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14205 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14207 * config/s390/s390-protos.h: Change movmem to cpymem.
14208 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14209 s390_expand_insv): Change movmem to cpymem.
14210 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14211 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14212 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14213 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14214 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14215 for nonexistent function.
14216 * config/vax/vax.h: Change movmem to cpymem in comment.
14217 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14218 * config/visium/visium.h: Change movmem to cpymem in comment.
14219 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14220 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14221 * doc/md.texi: Change movmem to cpymem and update description to match.
14222 * doc/rtl.texi: Change movmem to cpymem.
14223 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14224 * doc/tm.texi: Regenerate.
14226 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14228 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14229 -fvariable-expansion-in-unroller by default.
14230 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14233 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14236 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14237 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14239 * config.gcc(rs6000-*-*): Define target_gtfiles.
14241 2019-06-27 Jan Hubicka <jh@suse.cz>
14243 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14244 (add_type_duplicate): When odr hash is not allocated, to nothing.
14245 (odr_based_tbaa_p): New function.
14246 (set_type_canonical_for_odr_type): New function.
14247 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14248 set_type_canonical_for_odr_type): New.
14249 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14250 ODR based TBAA are not equivalent to non-ODR types.
14252 2019-06-27 Martin Liska <mliska@suse.cz>
14254 PR tree-optimization/90974
14255 PR rtl-optimization/90975
14256 PR rtl-optimization/90976
14258 PR tree-optimization/91017
14259 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14261 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14262 initial commit of IRA.
14263 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14265 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14266 Remove unused mode1.
14267 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14270 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14273 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14274 instead of register_operand for operands[1], add m to its constraints
14275 if operands[2] uses "C" constraint. Ensure in condition that if
14276 operands[2] is not 0, then operands[1] is not a MEM. For last two
14277 alternatives, use unaligned loads instead of aligned if operands[1] is
14278 misaligned_operand.
14280 2019-06-27 Martin Liska <mliska@suse.cz>
14282 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14284 * bt-load.c (move_btr_def): Likewise.
14285 * builtins.c (expand_builtin_apply_args_1): Likewise.
14286 (expand_builtin_apply): Likewise.
14287 * cfgexpand.c (expand_asm_stmt): Likewise.
14288 (construct_init_block): Likewise.
14289 * cfghooks.c (verify_flow_info): Likewise.
14290 * cfgloopmanip.c (remove_path): Likewise.
14291 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14292 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14293 * combine.c (simplify_if_then_else): Likewise.
14294 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14295 (choose_basereg): Likewise.
14296 (ix86_expand_prologue): Likewise.
14297 (ix86_preferred_output_reload_class): Likewise.
14298 * cselib.c (cselib_record_sets): Likewise.
14299 * df-scan.c (df_scan_alloc): Likewise.
14300 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14301 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14302 * emit-rtl.c (try_split): Likewise.
14303 * graphite-scop-detection.c (assign_parameter_index_in_region):
14305 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14306 * ira-color.c (setup_profitable_hard_regs): Likewise.
14307 * ira.c (rtx_moveable_p): Likewise.
14308 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14309 * read-rtl.c (read_subst_mapping): Likewise.
14310 * regrename.c (scan_rtx): Likewise.
14311 * reorg.c (fill_slots_from_thread): Likewise.
14312 * tree-inline.c (tree_function_versioning): Likewise.
14313 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14314 * tree-ssa-sink.c (statement_sink_location): Likewise.
14315 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14316 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14317 (vect_create_epilog_for_reduction): Likewise.
14318 * tree.c (build_nonstandard_integer_type): Likewise.
14320 2019-06-27 Richard Biener <rguenther@suse.de>
14322 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14324 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14326 PR tree-optimization/89772
14327 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14328 out-of-bound accesses checking.
14330 2019-06-27 Martin Liska <mliska@suse.cz>
14332 PR tree-optimization/91014
14333 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14334 when LHS is NULL_TREE.
14336 2019-06-27 Martin Liska <mliska@suse.cz>
14338 * symbol-summary.h (traverse): Pass
14339 argument a to the call of callback.
14340 (gt_ggc_mx): Mark arguments as unused.
14341 (gt_pch_nx): Likewise.
14343 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14346 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14349 2019-06-26 Jeff Law <law@redhat.com>
14351 PR tree-optimization/90883
14352 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14353 (delete_dead_or_redundant_assignment): Likewise.
14355 PR tree-optimization/90883
14356 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14357 * tree-ssa-dse.c: Update various comments to distinguish between
14358 dead and redundant stores.
14359 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14360 (dse_optimize_redundant_stores): New function.
14361 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14362 Distinguish between dead and redundant calls in dump output. All
14364 (delete_dead_or_redundant_assignment): Similarly for assignments.
14365 (dse_optimize_stmt): Handle _CHK variants. For statements which
14366 store 0 into multiple memory locations, try to prove a subsequent
14367 store is redundant.
14369 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14372 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14373 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14375 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14377 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14378 (branch_islands): New extern.
14379 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14380 * config/rs6000/rs6000.c: .. here.
14382 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14384 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14385 (powerpc*-*-*) ... to here.
14387 2019-06-26 Jeff Law <law@redhat.com>
14389 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14390 memcpy, memmove and memset builtins.
14391 (maybe_trim_memstar_call): Likewise.
14393 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14395 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14397 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14399 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14401 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14403 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14405 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14407 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14410 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14412 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14414 2019-06-26 Richard Biener <rguenther@suse.de>
14417 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14419 2019-06-26 Richard Biener <rguenther@suse.de>
14421 * lto-streamer.h (lto_bitmap_alloc): Remove.
14422 (lto_bitmap_free): Likewise.
14423 * lto-streamer.c (lto_bitmap_alloc): Remove.
14424 (lto_bitmap_free): Likewise.
14425 (lto_obstack): Likewise.
14426 (lto_obstack_initialized): Likewise.
14427 * lto-streamer-out.c (lto_output): Use own obstack for local
14428 bitmap, free it consistently.
14430 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14433 * config/i386/sse.md
14434 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14435 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14436 insns if operands[2] is misaligned_operand.
14438 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14440 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14442 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14445 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14447 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14449 2019-06-26 Martin Liska <mliska@suse.cz>
14451 PR tree-optimization/90973
14452 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14453 epilogue_cost_vec instead of prologue_cost_vec for
14456 2019-06-26 Martin Liska <mliska@suse.cz>
14458 * bb-reorder.c (connect_better_edge_p): Add missing else
14459 statement in the middle of if-else statements.
14461 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14462 H.J. Lu <hongjiu.lu@intel.com>
14463 Olga Makhotina <olga.makhotina@intel.com>
14465 * common/config/i386/i386-common.c
14466 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14467 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14468 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14469 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14470 (ix86_handle_option): Handle -mavx512vp2intersect.
14471 * config/i386/avx512vp2intersectintrin.h: New.
14472 * config/i386/avx512vp2intersectvlintrin.h: New.
14473 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14474 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14475 AVX512VP2INTERSECT.
14476 * config/i386/i386-builtin-types.def: Add new types.
14477 * config/i386/i386-builtin.def: Add new builtins.
14478 * config/i386/i386-builtins.c: (enum processor_features): Add
14479 F_AVX512VP2INTERSECT.
14480 (static const _isa_names_table isa_names_table): Ditto.
14481 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14482 __AVX512VP2INTERSECT__.
14483 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14484 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14485 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14486 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14487 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14488 * config/i386/i386-options.c (ix86_target_string): Add
14489 -mavx512vp2intersect.
14490 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14491 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14492 P2HImode and P2QImode.
14493 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14494 number for P2QImode and P2HImode.
14495 (ix86_regmode_natural_size): New function.
14496 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14497 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14498 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14499 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14500 * config/i386/i386.opt: Add -mavx512vp2intersect.
14501 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14502 avx512vp2intersectvlintrin.h.
14503 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14504 (define_mode_iterator VI48_AVX512VP2VL): New.
14505 (avx512vp2intersect_2intersect<mode>,
14506 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14507 * config.gcc: Add avx512vp2intersectvlintrin.h and
14508 avx512vp2intersectintrin.h to extra_headers.
14509 * doc/invoke.texi: Document -mavx512vp2intersect.
14511 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14513 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14515 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14517 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14518 savres_routine_syms, savres_routine_name, morestack_ref,
14519 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14520 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14521 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14522 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14523 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14524 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14525 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14526 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14527 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14528 get_stack_clash_protection_probe_interval,
14529 get_stack_clash_protection_guard_size,
14530 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14531 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14532 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14533 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14534 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14535 gen_frame_mem_offset, rs6000_savres_routine_name,
14536 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14537 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14538 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14539 rs6000_global_entry_point_prologue_needed_p,
14540 rs6000_get_separate_components, rs6000_components_for_bb,
14541 rs6000_disqualify_components, rs6000_emit_prologue_components,
14542 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14543 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14544 rs6000_output_savres_externs, rs6000_output_function_prologue,
14545 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14546 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14547 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14548 rs6000_output_function_epilogue, gen_add3_const,
14549 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14550 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14552 (machine_function): Moved to rs6000.h.
14553 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14555 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14556 savres_routine_syms, savres_routine_name, morestack_ref,
14557 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14558 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14559 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14560 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14561 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14562 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14563 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14564 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14565 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14566 get_stack_clash_protection_probe_interval,
14567 get_stack_clash_protection_guard_size,
14568 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14569 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14570 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14571 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14572 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14573 gen_frame_mem_offset, rs6000_savres_routine_name,
14574 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14575 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14576 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14577 rs6000_global_entry_point_prologue_needed_p,
14578 rs6000_get_separate_components, rs6000_components_for_bb,
14579 rs6000_disqualify_components, rs6000_emit_prologue_components,
14580 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14581 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14582 rs6000_output_savres_externs, rs6000_output_function_prologue,
14583 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14584 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14585 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14586 rs6000_output_function_epilogue, gen_add3_const,
14587 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14588 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14589 to here from rs6000.c.
14590 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14591 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14592 quad_address_offset_p) Moved to here from rs6000.c.
14593 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14594 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14597 2019-06-25 Martin Liska <mliska@suse.cz>
14599 * hash-table.c (hashtab_chk_error): Move here from ...
14600 * hash-table.h (hashtab_chk_error): ... here.
14602 2019-06-25 Martin Liska <mliska@suse.cz>
14604 PR tree-optimization/90978
14605 * df-scan.c (df_update_entry_block_defs): Remove dead else
14607 (df_update_exit_block_uses): Likewise.
14609 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14610 Andrew Stubbs <ams@codesourcery.com>
14612 * config.gcc (thread_file): Set to gcn for AMD GCN.
14613 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14614 (TARGET_EMUTLS_VAR_INIT): New hook.
14616 2019-06-25 Martin Jambor <mjambor@suse.cz>
14619 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14621 2019-06-25 Richard Biener <rguenther@suse.de>
14623 PR tree-optimization/90930
14624 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14625 into parallel form in the last pass instance.
14627 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14629 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14630 (arc_legitimize_pic_address): Simplify and cleanup the function.
14631 (SYMBOLIC_CONST): Remove.
14632 (prepare_pic_move): Likewise.
14633 (prepare_move_operands): Handle complex mov cases here.
14634 (arc_legitimize_address_0): Remove call to
14635 arc_legitimize_pic_address.
14636 (arc_legitimize_address): Remove call to
14637 arc_legitimize_tls_address.
14638 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14639 (movhi_insn): Likewise.
14641 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14643 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14645 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14646 format of "__intN" types for UINTMAX_TYPE.
14647 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14648 format of "__intN" types for SIZETYPE.
14649 * tree.c (build_common_tree_nodes): Accept "__intN__"
14650 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14651 * doc/invoke.texi: Document that __intN__ disables pedantic
14654 2019-06-25 Jan Hubicka <jh@suse.cz>
14656 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14657 base2_alias_set is non-zero before doing TBAA based disambiguation.
14659 2019-06-25 Martin Liska <mliska@suse.cz>
14661 PR tree-optimization/90973
14662 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14663 of prologue and epilogue.
14665 2019-06-24 Jan Hubicka <jh@suse.cz>
14667 * ipa-utils.h (type_with_linkage_p): Verify that type is
14669 (odr_type_p): Remove extra return.
14670 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14671 hash STRING_FLAG only for arrays and integers.
14672 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14673 Update analogously.
14674 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14676 * print-tree.c (print_node): Print cxx-odr-p
14678 * tree.c (need_assembler_name_p): Also check that type
14680 (verify_type_variant): Update verification of SRING_FLAG;
14681 also check CXX_ODR_P.
14682 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14683 (TYPE_STRING_FLAG): Use it.
14684 (TYPE_CXX_ODR_P): New macro.
14685 * dwarf2out.c (gen_array_type_die): First check that type
14686 is an array and then test string flag.
14688 2019-06-24 Richard Biener <rguenther@suse.de>
14690 PR tree-optimization/90972
14691 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14692 in common code, dealing with STRING_CST properly.
14694 2019-06-24 Richard Biener <rguenther@suse.de>
14696 PR tree-optimization/90930
14697 PR tree-optimization/90316
14698 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14699 decrement of limit.
14701 2019-06-24 Martin Sebor <msebor@redhat.com>
14703 * tree-pretty-print.h: Remove unnecessary punctuation characters
14705 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14707 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14709 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14710 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14711 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14713 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14715 * config/rs6000/darwin.h: Handle GCC target pragma.
14717 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14719 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14721 2019-06-22 Jeff Law <law@redhat.com>
14723 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14725 2019-06-22 Jan Hubicka <jh@suse.cz>
14727 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14728 give up on bitfields; continue searching for different refs
14731 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14733 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14734 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14735 containing the offset as possible simd lane access. Look through
14736 widening conversion. Move the
14737 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14739 2019-06-21 Richard Biener <rguenther@suse.de>
14741 PR tree-optimization/90930
14742 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14743 flag on new stmts to avoid re-processing them.
14745 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14747 PR c++/90875 - added -Wswitch-outside-range option
14748 * doc/invoke.texi (Wswitch-outside-range): Document.
14750 2019-06-21 Jeff Law <law@redhat.com>
14752 PR tree-optimization/90949
14753 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14754 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14756 2019-06-21 Richard Biener <rguenther@suse.de>
14759 * dwarf2out.c (prune_unused_types_walk): Always consider
14760 function-local extern declarations as used.
14762 2019-06-21 Richard Biener <rguenther@suse.de>
14764 PR tree-optimization/90913
14765 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14766 the scalar variant of if-conversion versioning.
14768 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14770 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14771 create another "omp scan inscan exclusive" array if
14772 !ctx->scan_inclusive.
14773 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14774 (lower_omp_scan): Likewise.
14775 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14776 2-bit bitfield for simd_lane_access_p member.
14777 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14778 aux == (void *)-4 as simd lane access.
14779 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14780 comment with permutations to show the canonical permutation order.
14781 (vectorizable_scan_store): Handle exclusive scan.
14782 (vectorizable_store): Call vectorizable_scan_store even for
14783 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14785 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14786 "omp simd array" arrays with one byte elements.
14788 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14790 * config/alpha/alpha.md (@unaligned_store<mode>):
14791 Rename from unaligned_store<mode>.
14792 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14793 * config/alpha/sync.md (@load_locked_<mode>): Rename
14794 from load_locked_<mode>.
14795 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14796 (@atomic_compare_and_swap<mode>_1): Rename
14797 from atomic_compare_and_swap<mode>_1.
14798 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14799 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14800 Use gen_reload_in_aligned and gen_unaligned_store.
14801 (emit_load_locked): Remove.
14802 (emit_store_conditional): Ditto.
14803 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14804 (alpha_split_compare_and_swap): Ditto.
14805 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14806 (alpha_split_compare_and_swap_12): Use gen_load_locked
14807 and gen_store_conditional.
14808 (alpha_split_atomic_exchange): Ditto.
14809 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14810 (alpha_split_atomic_exchange_12): Use gen_load_locked
14811 and gen_store_conditional.
14813 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14815 * config/aarch64/aarch64-errata.h: New file.
14816 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14817 (CA53_ERR_843419_SPEC): Delete.
14818 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14819 * config/aarch64/aarch64-linux.h: Likewise.
14820 * config/aarch64/aarch64-netbsd.h: Likewise.
14821 * config/aarch64/aarch64-freebsd.h: Likewise.
14823 2019-06-20 Marek Polacek <polacek@redhat.com>
14825 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14827 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14829 * config/rs6000/rs6000.md (isa attribute): Add support for
14830 for a future processor.
14832 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14835 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14836 standard scalar operation pattern for V2DF.
14837 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14838 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14839 (*ieee_<ieee_maxmin><mode>3): Likewise.
14840 (vec_setv2df_0): Likewise.
14842 2019-06-20 Jan Hubicka <jh@suse.cz>
14844 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14845 parameter; it has no use in gimple memory model.
14846 (indirect_ref_may_alias_decl_p): Update.
14848 2019-06-20 Martin Liska <mliska@suse.cz>
14850 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14853 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14855 * tree-vect-stmts.c (enum scan_store_kind): New type.
14856 (scan_store_can_perm_p): Change last argument from int * to
14857 vec<enum scan_store_kind> *, record precisely which permutations
14858 need whole vector left shift or that plus VEC_COND_EXPR.
14859 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14860 and additional VEC_COND_EXPR only for those iterations that need it.
14862 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14864 * config.gcc: Fix ARM --with-fpu checking and error message.
14866 2019-06-19 Marek Polacek <polacek@redhat.com>
14868 PR c++/60364 - noreturn after first decl not diagnosed.
14869 * attribs.c (get_attribute_namespace): No longer static.
14870 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14872 (attr_noreturn_exclusions): Make it extern.
14873 * attribs.h (get_attribute_namespace): Declare.
14874 * tree-inline.c (function_attribute_inlinable_p): Use
14875 get_attribute_name.
14877 2019-06-19 Martin Sebor <msebor@redhat.com>
14879 PR tree-optimization/90626
14880 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14882 PR tree-optimization/90626
14883 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14884 (handle_builtin_string_cmp): Call it.
14886 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14888 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14889 and DARWIN_NOPIE_SPEC.
14890 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14891 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14892 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14893 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14894 (DARWIN_EXPORT_DYNAMIC): Delete.
14895 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14896 and pie options processing to darwin.h.
14897 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14899 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14901 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14902 in computing the number of options to be moved.
14904 2019-06-19 Maya Rashish <coypu@sdf.org>
14906 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14907 (CLEAR_INSN_CACHE) Use it.
14909 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14911 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14913 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14915 PR middle-end/84521
14916 * builtins.c (expand_builtin_setjmp_setup): Save
14917 hard_frame_pointer_rtx.
14918 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14920 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14922 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14924 (remove_reg_equal_offset_note): Remove unused function.
14925 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14927 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14928 (arc_builtin_setjmp_frame_value): Remove function.
14929 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14930 (avr_builtin_setjmp_frame_value): Remove function.
14931 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14932 (ix86_builtin_setjmp_frame_value): Remove function.
14933 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14934 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14935 (sparc_builtin_setjmp_frame_value): Remove function.
14936 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14937 (vax_builtin_setjmp_frame_value): Remove function.
14938 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14939 pointer if has_nonlocal_label.
14941 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14943 * doc/md.texi: Document vec_shl_<mode> pattern.
14944 * optabs.def (vec_shl_optab): New optab.
14945 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14946 argument, if == vec_shl_optab, check for left whole vector shift
14947 pattern rather than right shift.
14948 (expand_vec_perm_const): Add vec_shl_optab support.
14949 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14951 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14952 can be handled by vec_shl_optab.
14953 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14954 (check_scan_store): Use it.
14955 (vectorizable_scan_store): If target can't do normal permutations,
14956 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14958 * config/i386/sse.md (vec_shl_<mode>): New expander.
14960 * omp-low.c (lower_rec_input_clauses): Handle references properly
14962 (lower_omp_scan): Likewise.
14964 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14966 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14967 mem_mode is BLKmode.
14969 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14972 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14973 pointer adjustment for the case of no callee-saved registers and
14974 stack frame bigger than 128 bytes.
14976 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14978 PR middle-end/90862
14979 * omp-low.c (check_omp_nesting_restrictions): Handle
14980 GF_OMP_TARGET_KIND_OACC_DECLARE.
14982 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14984 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14985 (@add<mode>3_carry): Rename from add<mode>3_carry.
14986 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14987 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14988 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14989 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14990 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14991 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14992 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14993 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14994 (cmpstrnsi): Use gen_cmp_1.
14995 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14996 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14997 (@umonitor_<mode>): Rename from umonitor_<mode>.
14998 * config/i386/i386-expand.c (ix86_expand_copysign):
14999 Use gen_copysign3_const and gen_copysign3_var.
15000 (ix86_expand_xorsign): Use gen_xorsign3_1.
15001 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15002 gen_sub3_carry_ccgz and gen_cmp1.
15003 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15004 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15005 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15006 (ix86_split_lshr): Ditto.
15007 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15009 2019-06-18 Jason Merrill <jason@redhat.com>
15011 * tree.c (build_constructor): Add MEM_STAT_DECL.
15013 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15015 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15016 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15017 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15018 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15019 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15020 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15021 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15022 Use CC_NZC instead of CC.
15023 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15024 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15025 (aarch64_print_operand): Handle E_CC_NZCmode.
15026 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15027 of gen_set_clobber_cc.
15029 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15031 * config/aarch64/aarch64-sve.md: Tabify file.
15033 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15035 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15036 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15037 * config/aarch64/aarch64-sve.md: Use it.
15039 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15041 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15042 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15043 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15044 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15045 (aarch64_expand_sve_vec_cmp_int): Use it.
15046 (aarch64_expand_sve_vec_cmp_float): Likewise.
15047 * config/aarch64/aarch64-sve.md: Likewise throughout.
15049 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15050 Kugan Vivekanandarajah <kuganv@linaro.org>
15052 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15053 (*cond_<optab><mode>_z): Fold into...
15054 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15055 operand 4 can be tied to operand 0 (either inherently or via RA).
15057 2019-06-18 Richard Biener <rguenther@suse.de>
15060 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15061 as if optimized away.
15063 2019-06-18 Tom de Vries <tdevries@suse.de>
15065 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15066 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15067 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15069 (define_insn "@set_softstack_<mode>"): ... this.
15070 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15071 (define_insn "@omp_simt_enter_<mode>"): ... this.
15072 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15073 (define_insn "@omp_simt_exit_<mode>"): ... this.
15075 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15077 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15078 vf parameter. Restore the previous iv step of nscalars_step,
15079 but give it iv_type rather than compare_type. Tweak code order
15080 to match the comments.
15081 (vect_set_loop_condition_masked): Update accordingly.
15082 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15083 for iv_precision. Tweak comment formatting.
15085 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15087 * config/darwin.c: Strip trailing whitespace.
15089 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15091 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15092 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15094 2019-06-18 Martin Jambor <mjambor@suse.cz>
15097 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15098 caller does not have flag_ipa_cp set.
15100 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15102 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15103 from "*fold_left_plus_<mode>", updated operands order.
15104 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15105 * internal-fn.c (mask_fold_left_direct): New define.
15106 (expand_mask_fold_left_optab_fn): Likewise.
15107 (direct_mask_fold_left_optab_supported_p): Likewise.
15108 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15109 * optabs.def (mask_fold_left_plus_optab): New optab.
15110 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15111 masked internal_fn for a reduction ifn.
15112 (vectorize_fold_left_reduction): Add support for masking reductions.
15114 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15116 PR middle-end/80791
15117 * target.def (predict_doloop_p): New hook.
15118 * targhooks.h (default_predict_doloop_p): New declaration.
15119 * targhooks.c (default_predict_doloop_p): New function.
15120 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15121 * doc/tm.texi: Regenerate.
15122 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15123 (TARGET_PREDICT_DOLOOP_P): New macro.
15124 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15126 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15128 * omp-low.c (struct omp_context): Add scan_inclusive field.
15129 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15131 (struct omplow_simd_context): Add lastlane member.
15132 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15133 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15135 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15136 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15137 (lower_omp_scan): New function.
15138 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15139 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15140 check 3rd argument if present rather than 2nd.
15141 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15142 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15144 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15145 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15147 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15148 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15149 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15151 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15152 IFN_GOMP_SIMD_LANE argument.
15153 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15154 encoded ->aux value.
15155 * tree-vect-stmts.c: Include attribs.h.
15156 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15157 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15159 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15160 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15162 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15165 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15166 (*nabs<mode>2_1): Ditto.
15167 (nabs sse-reg splitter): New splitter.
15168 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15170 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15172 PR bootstrap/90873.
15173 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15176 2019-06-17 Tom de Vries <tdevries@suse.de>
15178 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15179 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15180 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15182 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15184 (define_insn "omp_simt_enter_insn"): Rename to ...
15185 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15186 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15187 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15188 gen_omp_simt_enter_si.
15189 (define_expand "omp_simt_exit"): New.
15190 (define_insn "omp_simt_exit"): Rename to ...
15191 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15194 2019-06-17 Matthew Green <mrg@eterna.com.au>
15195 Maya Rashish <coypu@sdf.org>
15197 * config.gcc (aarch64*-*-netbsd*): New target.
15198 * config/aarch64/aarch64-netbsd.h: New file.
15199 * config/aarch64/t-aarch64-netbsd: Likewise.
15201 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15203 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15204 the access path from base to first VIEW_CONVERT_EXPR or
15207 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15209 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15210 access path on BIT_FIELD_REFs.
15212 2019-06-17 Martin Liska <mliska@suse.cz>
15215 * ipa-utils.h (odr_type_p): Remove dead code.
15217 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15219 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15220 alternative Solaris 11.4 format.
15221 * configure: Regenerate.
15223 2019-06-17 Tom de Vries <tdevries@suse.de>
15225 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15226 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15228 (define_insn "call_value_insn"): Rename to ...
15229 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15231 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15234 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15236 PR middle-end/64242
15237 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15238 frame clobbers and schedule block.
15239 (builtin_longjmp): Likewise.
15241 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15243 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15244 describe how to perform MSPABI compliant 64-bit shift.
15245 * config/msp430/msp430.md (ashldi3): New define_expand.
15246 (ashrdi3): New define_expand.
15247 (lshrdi3): New define_expand.
15249 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15251 * doc/sourcebuild.texi: Document new effective target keyword
15254 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15256 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15257 indirect_refs_may_alias_p): Revert accidental commits.
15259 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15260 at the end of structures.
15262 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15264 * config/darwin.c (machopic_indirect_call_target): Use renamed
15265 darwin_picsymbol_stubs to decide on output.
15266 (darwin_override_options): Handle darwin_picsymbol_stubs.
15267 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15268 (LD64_VERSION): Revise default.
15269 * config/darwin.opt: (mpic-symbol-stubs): New option.
15270 (darwin_picsymbol_stubs): New variable.
15271 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15272 rename to TARGET_MACHO_PICSYM_STUBS.
15273 * config/i386/i386.c (output_pic_addr_const): Likewise.
15274 * config/i386/i386.h Likewise.
15275 * config/rs6000/darwin.h: Likewise.
15276 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15277 darwin_picsymbol_stubs.
15279 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15281 * config/darwin.opt (prebind, noprebind, seglinkedit,
15282 noseglinkedit): Add RejectNegative.
15284 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15286 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15287 in my previous patch.
15289 2019-06-16 Tom de Vries <tdevries@suse.de>
15291 PR tree-optimization/89376
15292 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15294 2019-06-15 Maya Rashish <coypu@sdf.org>
15296 * doc/invoke.texi (Spec Files): Update location of the
15299 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15301 * doc/extend.texi (Common Function Attributes): Clarify
15302 no_sanitize. Fix grammar.
15304 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15306 * tree-ssa-alias.c (alias_stats): Add
15307 nonoverlapping_component_refs_p_may_alias,
15308 nonoverlapping_component_refs_p_no_alias,
15309 nonoverlapping_component_refs_of_decl_p_may_alias,
15310 nonoverlapping_component_refs_of_decl_p_no_alias.
15311 (dump_alias_stats): Dump them.
15312 (nonoverlapping_component_refs_of_decl_p): Add stats.
15313 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15316 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15318 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15319 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15321 (*anddi3_doubleword): Split before reload. Merge with
15322 anddi->zext pre-reload splitter.
15323 (*andndi3_doubleword): Split before reload.
15324 (*<code>di3_doubleword): Ditto.
15325 (*one_cmpldi2_doubleword): Ditto.
15327 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15329 PR middle-end/90779
15330 * gimplify.c: Include omp-offload.h and context.h.
15331 (gimplify_bind_expr): Add "omp declare target" attributes
15332 to static block scope variables inside of target region or target
15335 2019-06-15 Tom de Vries <tdevries@suse.de>
15337 PR tree-optimization/90009
15338 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15339 Return NULL if bb contains IFN_UNIQUE.
15341 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15343 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15344 (un): New define_mode_attr.
15345 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15346 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15347 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15349 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15351 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15353 * config/darwin.opt: Add RejectNegative where needed, reorder
15354 and add minimal functional descriptions.
15356 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15358 PR rtl-optimization/90765
15359 * calls.c (update_stack_alignment_for_call): New function.
15360 (expand_call): Call update_stack_alignment_for_call when
15361 outgoing parameter is passed in the stack.
15362 (emit_library_call_value_1): Likewise.
15363 * function.c (locate_and_pad_parm): Don't update
15364 stack_alignment_needed and preferred_stack_boundary.
15366 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15369 * config/i386/i386-features.c
15370 (dimode_scalar_chain::compute_convert_gain): Replace
15371 mmxsse_to_integer with sse_to_integer.
15372 * config/i386/i386.c (ix86_register_move_cost): Verify that
15373 moves between MMX and non-MMX units require secondary memory.
15374 Correct costs of moves between SSE and integer units.
15375 * config/i386/i386.h (processor_costs): Rename cost of moving
15376 SSE register to integer to sse_to_integer. Rename cost of
15378 2019-06-14 Matt Thomas <matt@3am-software.com>
15379 Matthew Green <mrg@eterna.com.au>
15380 Nick Hudson <skrll@netbsd.org>
15381 Maya Rashish <coypu@sdf.org>
15382 Richard Earnshaw <rearnsha@arm.com>
15384 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15385 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15386 * config/arm/netbsd-eabi.h: New file.
15387 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15389 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15390 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15391 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15392 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15394 2019-06-14 Richard Biener <rguenther@suse.de>
15396 * tree-loop-distribution.c (classify_partition): Return
15397 whether a reduction appeared in all partitions and do not
15398 stop builtin detection because of this.
15399 (distribute_loop): Sort a non-builtin partition last if
15400 there's a reduction in all partitions and make sure the
15401 partition prevailing as last is not a builtin.
15403 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15406 * ipa-prop.c (add_to_agg_contents_list): New function.
15407 (clobber_by_agg_contents_list_p): Likewise.
15408 (extract_mem_content): Likewise.
15409 (get_place_in_agg_contents_list): Delete.
15410 (determine_known_aggregate_parts): Renamed from
15411 determine_locally_known_aggregate_parts. New parameter
15414 2019-06-13 Martin Sebor <msebor@redhat.com>
15416 PR tree-optimization/90662
15417 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15420 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15423 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15424 dbase is not TARGET_MEM_REF.
15426 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15428 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15430 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15431 Do not generate DImode extends for 32bit targets.
15432 (and->zext post-reload splitter): Use gen_extend_insn
15433 instead of indirect functions.
15434 (anddi->zext pre-reload splitter): New.
15435 (*zext<mode>_doubleword_and): Remove.
15436 (*zext<mode>_doubleword): Ditto.
15437 (*zextsi_doubleword): Dittto.
15439 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15441 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15442 Use gen_sub3_insn instead of indirect function.
15443 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15445 (ix86_adjust_counter): Ditto.
15447 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15448 Lijia He <helijia@linux.ibm.com>
15450 PR tree-optimization/77820
15451 * tree-ssa-threadedge.c
15452 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15454 (thread_across_edge): Add call to
15455 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15457 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15459 * config/darwin-driver.c (validate_macosx_version_min): New.
15460 (darwin_default_min_version): Cleanup and validate supplied version.
15461 (darwin_driver_init): Likewise and push cleaned version into opts.
15463 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15465 PR tree-optimization/90869
15466 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15467 converts in MEM_REF referencing decl rather than view converts
15468 from decl type to MEM_REF type.
15470 2019-06-13 Richard Biener <rguenther@suse.de>
15472 PR tree-optimization/90856
15473 * tree-sra.c (build_ref_for_model): Only use
15474 build_reconstructed_reference when address-spaces are the same.
15476 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15478 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15479 wrap ei variable name in the declaration in ()s.
15480 (nvptx_single): Actually use mode_label variable. Formatting fix.
15482 2019-06-13 Richard Biener <rguenther@suse.de>
15484 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15485 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15486 also return the condition stmt.
15487 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15488 loop we can version and version that, reusing the loop version
15489 created by if-conversion instead of versioning again.
15491 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15493 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15495 * tree-vrp (value_range_base::may_contain_p): Call into
15496 value_inside_range.
15497 (value_inside_range): Make private inside value_range_base class.
15498 Take min/max from *this.
15499 (range_includes_p): Remove.
15500 * tree-vrp.h (value_range_base): Add value_inside_range.
15501 (range_includes_p): Remove.
15502 (range_includes_zero_p): Call may_contain_p.
15503 * vr-values.c (compare_range_with_value): Same.
15505 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15507 * doc/extend.texi (ARC Function Attributes): Update info.
15509 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15511 PR tree-optimization/89713
15512 * doc/invoke.texi (-ffinite-loops): Document new option.
15513 * common.opt (-ffinite-loops): New option.
15514 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15515 IFN_GOACC_LOOP calls as necessary.
15516 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15518 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15519 IFN_GOACC_LOOP call is not used.
15520 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15522 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15525 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15526 compare_type is not with Pmode size, we will create an IV with
15527 Pmode size with truncated use (i.e. converted to the correct type).
15528 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15529 (vect_iv_limit_for_full_masking): New. Factored out of
15530 vect_set_loop_condition_masked.
15531 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15532 (vect_iv_limit_for_full_masking): Declare.
15534 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15537 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15538 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15539 (get_alias_ptr_type_for_ptr_address): Likewise.
15540 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15541 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15542 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15545 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15547 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15549 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15551 * common/config/pru/pru-common.c: New file.
15552 * config.gcc: Add PRU target.
15553 * config/pru/alu-zext.md: New file.
15554 * config/pru/constraints.md: New file.
15555 * config/pru/predicates.md: New file.
15556 * config/pru/pru-opts.h: New file.
15557 * config/pru/pru-passes.c: New file.
15558 * config/pru/pru-pragma.c: New file.
15559 * config/pru/pru-protos.h: New file.
15560 * config/pru/pru.c: New file.
15561 * config/pru/pru.h: New file.
15562 * config/pru/pru.md: New file.
15563 * config/pru/pru.opt: New file.
15564 * config/pru/t-pru: New file.
15565 * doc/extend.texi: Document PRU pragmas.
15566 * doc/invoke.texi: Document PRU-specific options.
15567 * doc/md.texi: Document PRU asm constraints.
15569 2019-06-12 Martin Sebor <msebor@redhat.com>
15571 PR middle-end/90676
15572 * tree-pretty-print.c (dump_mem_ref): New function. Include
15573 MEM_REF type in output when different size than operand.
15574 (dump_generic_node): Move code to dump_mem_ref and call it.
15576 2019-06-12 Martin Sebor <msebor@redhat.com>
15578 PR tree-optimization/90662
15579 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15582 2019-06-12 Tom de Vries <tdevries@suse.de>
15584 PR tree-optimization/90009
15585 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15587 2019-06-12 Martin Liska <mliska@suse.cz>
15589 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15591 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15592 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15593 Do not sanitize created maps.
15595 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15597 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15598 value_range::singleton_p.
15599 * tree-vrp.c (value_range_constant_singleton): Remove.
15600 * tree-vrp.h (value_range_constant_singleton): Remove.
15601 * vr-values.c (vr_values::singleton): Use
15602 value_range::singleton_p.
15604 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15607 * cfgexpand.c (align_local_variable): Add really_expand argument,
15608 don't SET_DECL_ALIGN if it is false.
15609 (add_stack_var): Add really_expand argument, pass it through to
15610 align_local_variable.
15611 (expand_one_stack_var_1): Pass true as really_expand to
15612 align_local_variable.
15613 (expand_one_ssa_partition): Pass true as really_expand to
15615 (expand_one_var): Pass really_expand through to add_stack_var.
15617 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15619 * config/arm/iterators.md (VABAL): New int iterator.
15620 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15621 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15622 UNSPEC_VABAL_U values.
15624 2019-06-12 Martin Liska <mliska@suse.cz>
15626 * value-prof.c (stream_out_histogram_value): Only first value
15629 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15632 * symtab.c (symtab_node::set_section): Allow being called on aliases
15633 as long as they aren't analyzed yet.
15635 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15637 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15638 to `mips_set_text_contents_type' to indicate whether a
15639 non-debug insn follows.
15641 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15643 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15644 enabling -mpcrel by default.
15645 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15646 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15647 that the test against -mcpu=future is done first. Then test if
15648 -mprefixed-addr is on for -mpcrel.
15649 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15651 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15654 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15655 instead of and.u%d.
15657 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15659 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15661 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15663 PR c++/90449 - add -Winaccessible-base option.
15664 * doc/invoke.texi (Winaccessible-base): Document.
15666 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15668 PR tree-optimization/62041
15669 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15671 2019-06-11 Jason Merrill <jason@redhat.com>
15673 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15674 * tree.c (get_tree_code_name): Likewise.
15675 * print-tree.c (print_node): Only briefly print a node with an
15678 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15681 * trans-mem.c (tm_memopt_compute_available): Add assertion
15682 that blocks is not empty. Formatting fix.
15684 2019-06-11 Martin Liska <mliska@suse.cz>
15687 * hash-table.h: Extend create_gcc, add one parameter
15688 that is passed into hash_table::hash_table.
15690 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15692 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15694 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15695 Emit clobber also for non-sse operations.
15696 (ix86_split_fp_absneg_operator): New function.
15697 * config/i386/i386.md (SSEMODEF): New mode iterator.
15698 (ssevecmodef): New mode attribute.
15699 (<code>tf2): Use absneg code iterator.
15700 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15701 Add three-operand AVX alternatives.
15702 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15703 Use absneg code iterator and X87MODEF mode iterator.
15704 (absneg fp_reg non-sse splitter): Call absneg code iterator
15705 and X87MODEF mode iterator.
15706 (absneg general_reg non-sse splitter): Use absneg code iterator
15707 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15708 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15709 code iterator. Add three-operand AVX alternative.
15710 (absneg sse_reg splitter): Use absneg code iterator
15711 and SSEMODEF mode iterator. Handle AVX operands.
15712 (absneg fp_reg splitter): Use absneg code iterator
15713 and MODEF mode iterator.
15714 (absneg general_reg splitter): Merge splitters using MODEF mode
15715 iterator. Use absneg code iterator. Call
15716 ix86_split_fp_absneg_operator.
15717 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15718 Do not enable for non-sse modes before reload.
15719 (CSGNMODE): Remove.
15720 (CSGNVMODE): Ditto.
15721 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15722 ssevecmodef mode attribute instaed of CSGNVMODE.
15723 (copysign<mode>3_const): Ditto.
15724 (copysign<mode>3_var): Ditto.
15725 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15726 Use absneg code iterator. Simplify code using std::swap.
15727 * config/i386/predicates.md (absneg_operator): Remove.
15729 2019-06-10 Martin Sebor <msebor@redhat.com>
15731 * gimple-fold.c (get_range_strlen): Update comment that didn't
15732 make it into r267503 or related commits.
15734 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15736 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15737 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15739 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15741 * tree.def (OMP_SCAN): New tree code.
15742 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15743 OMP_CLAUSE_EXCLUSIVE.
15744 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15745 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15746 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15747 OMP_CLAUSE_{IN,EX}CLUSIVE.
15748 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15749 * tree-nested.c (convert_nonlocal_reference_stmt,
15750 convert_local_reference_stmt, convert_gimple_call): Handle
15752 * tree-pretty-print.c (dump_omp_clause): Handle
15753 OMP_CLAUSE_{IN,EX}CLUSIVE.
15754 (dump_generic_node): Handle OMP_SCAN.
15755 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15756 * gimple.h (gomp_scan): New type.
15757 (is_a_helper <gomp_scan *>::test,
15758 is_a_helper <const gomp_scan *>::test): New templates.
15759 (gimple_build_omp_scan): Declare.
15760 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15761 gimple_omp_scan_set_clauses): New inline functions.
15762 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15763 * gimple.c (gimple_build_omp_scan): New function.
15764 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15765 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15766 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15767 GIMPLE_OMP_TASKGROUP.
15768 (dump_gimple_omp_scan): New function.
15769 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15770 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15771 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15772 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15773 (is_gimple_stmt): Handle OMP_SCAN.
15774 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15775 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15776 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15777 mentioned in nested #pragma omp scan. Handle
15778 OMP_CLAUSE_{IN,EX}CLUSIVE.
15779 (gimplify_expr): Handle OMP_SCAN.
15780 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15781 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15783 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15786 2019-06-10 Martin Liska <mliska@suse.cz>
15788 * ipa-cp.c (ignore_edge_p): New function.
15789 (build_toporder_info): Use it.
15790 * ipa-inline.c (ignore_edge_p): New function.
15791 (inline_small_functions): Use it.
15792 * ipa-pure-const.c (ignore_edge_for_nothrow):
15793 Verify opt_for_fn for caller and callee.
15794 (ignore_edge_for_pure_const): Likewise.
15795 * ipa-reference.c (ignore_edge_p): Extend to check
15797 * ipa-utils.c (searchc): Refactor.
15798 * ipa-utils.h: Fix coding style.
15800 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15802 * config/arc/arc.c (arc_rtx_costs): Update costs.
15804 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15806 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15807 (arc_split_ior): Likewise.
15808 (arc_check_mov_const): Likewise.
15809 (arc_split_mov_const): Likewise.
15810 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15811 (arc_rtx_costs): Replace check Crr with Cax constraint.
15812 (prepare_move_operands): Cleanup, remove unused code.
15813 (arc_split_ior): New function.
15814 (arc_check_ior_const): Likewise.
15815 (arc_split_mov_const): Likewise.
15816 (arc_check_mov_const): Likewise.
15817 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15818 in define_insn_and_split pattern.
15819 (iorsi3): Likewise.
15820 (mulsi3_v2): Add new matching variant.
15821 (andsi3_i): Cleanup pattern.
15822 (rotrsi3_cnt1): Update pattern.
15823 (rotrsi3_cnt8): New pattern.
15824 (ashlsi2_cnt8): Likewise.
15825 (ashlsi2_cnt16): Likewise.
15826 * config/arc/constraints.md (C0p): Update constraint.
15828 (C0x): New pattern.
15829 (Cax): New pattern.
15831 2019-06-10 Martin Liska <mliska@suse.cz>
15833 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15834 Update coding style.
15835 (sem_item_optimizer::dump_cong_classes):
15836 Print how many items are in a non-singular class. Improve
15839 2019-06-10 Martin Liska <mliska@suse.cz>
15841 * value-prof.c (dump_histogram_value): Change dump format.
15842 (gimple_mod_subtract_transform): Remove legacy comment.
15844 2019-06-10 Martin Liska <mliska@suse.cz>
15846 * value-prof.c (dump_histogram_value): Print histogram values
15849 2019-06-10 Martin Liska <mliska@suse.cz>
15851 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15852 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15853 * ipa-profile.c (ipa_profile_generate_summary):
15854 Use get_most_common_single_value.
15855 * tree-profile.c (gimple_init_gcov_profiler):
15856 Instrument with __gcov_one_value_profiler_v2
15857 and __gcov_indirect_call_profiler_v4.
15858 * value-prof.c (dump_histogram_value):
15859 Print all values for HIST_TYPE_SINGLE_VALUE.
15860 (stream_out_histogram_value): Update assert for
15862 (stream_in_histogram_value): Set number of
15863 counters for HIST_TYPE_SINGLE_VALUE.
15864 (get_most_common_single_value): New.
15865 (gimple_divmod_fixed_value_transform):
15866 Use get_most_common_single_value.
15867 (gimple_ic_transform): Likewise.
15868 (gimple_stringops_transform): Likewise.
15869 (gimple_find_values_to_profile): Set number
15870 of counters for HIST_TYPE_SINGLE_VALUE.
15871 * value-prof.h (get_most_common_single_value): New.
15873 2019-06-10 Martin Liska <mliska@suse.cz>
15875 * hash-map.h: Pass default value to hash_table ctor.
15876 * hash-table.h: Add default value to call of a ctor.
15878 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15880 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15881 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15883 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15886 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15887 Call pa_output_function_label.
15888 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15889 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15890 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15892 (pa_linux_output_function_prologue): Declare.
15893 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15894 (pa_output_function_label): New.
15895 (pa_output_function_prologue): Revise to use pa_output_function_label.
15896 (pa_linux_output_function_prologue): New.
15897 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15899 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15901 * tree-vrp.h (value_range_base::intersect): New.
15902 (value_range::intersect_helper): Move from here...
15903 (value_range_base::intersect_helper): ...to here.
15904 * tree-vrp.c (value_range::intersect_helper): Rename to...
15905 (value_range_base::intersect_helper): ...this, and rewrite to
15906 return a value instead of modifying THIS in place.
15907 Also, move equivalence handling...
15908 (value_range::intersect): ...here, while calling intersect_helper.
15909 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15911 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15913 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15915 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15917 * Makefile.in (genprogerr): Add condmd.
15918 (genprog): Remove it here.
15920 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15922 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15924 2019-06-07 Richard Biener <rguenther@suse.de>
15927 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15928 that appear after user labels.
15930 2019-06-07 Martin Liska <mliska@suse.cz>
15932 * cselib.c (cselib_init): Disable hash table
15934 * hash-set.h: Pass new default argument to m_table.
15935 * hash-table.c: Add global variable with hash table
15936 sanitization limit.
15937 * hash-table.h (Allocator>::hash_table): Add new argument
15939 (hashtab_chk_error): New.
15940 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15941 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15942 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15944 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15946 * common.opt (flto-odr-type-merging): Ignore.
15947 * invoke.texi (-flto-odr-type-merging): Remove.
15948 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15949 (can_be_vtable_hashed_p): Remove.
15950 (hash_odr_vtable): Remove.
15951 (odr_vtable_hasher::hash): Remove.
15952 (types_same_for_odr): Remove.
15953 (types_odr_comparable): Remove.
15954 (odr_vtable_hasher::equal): Remove.
15955 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15956 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15957 (get_odr_type): Do not use vtable hash.
15958 (dump_odr_type): Remove commented out code.
15959 (build_type_inheritance_graph): Do not allocate vtable hash.
15960 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15961 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15962 (odr_type_p): Likewise.
15963 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15966 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15968 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15969 immediately after same_types_for_tbaa_p returns -1 and continue
15970 looking for possible exact match; if matching types are arrays
15971 watch for partial overlaps.
15972 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15973 (indirect_refs_may_alias_p): Do type based disambiguation first;
15976 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15978 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15980 2019-06-07 Martin Liska <mliska@suse.cz>
15982 * doc/invoke.texi: Remove param.
15983 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15985 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15986 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15987 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15988 * profile.c (instrument_values): Remove
15989 HIST_TYPE_INDIR_CALL_TOPN.
15990 * tree-profile.c (init_ic_make_global_vars):
15991 Always build __gcov_indirect_call only.
15992 (gimple_init_gcov_profiler): Remove usage
15993 of PARAM_INDIR_CALL_TOPN_PROFILE.
15994 (gimple_gen_ic_profiler): Likewise.
15995 * value-prof.c (dump_histogram_value): Likewise.
15996 (stream_in_histogram_value): Likewise.
15997 (gimple_indirect_call_to_profile): Likewise.
15998 (gimple_find_values_to_profile): Likewise.
15999 * value-prof.h (enum hist_type): Likewise.
16001 2019-06-07 Martin Liska <mliska@suse.cz>
16003 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16006 2019-06-07 Martin Liska <mliska@suse.cz>
16008 PR tree-optimization/78902
16009 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16010 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16011 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16012 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16013 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16014 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16015 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16016 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16017 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16018 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16019 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16020 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16021 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16023 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16024 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16025 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16026 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16027 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16028 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16029 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16030 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16031 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16032 warn_unused_result attribute.
16033 (BUILT_IN_STRDUP): Likewise.
16034 (BUILT_IN_STRNDUP): Likewise.
16035 (BUILT_IN_ALLOCA): Likewise.
16036 (BUILT_IN_CALLOC): Likewise.
16037 (BUILT_IN_MALLOC): Likewise.
16038 (BUILT_IN_REALLOC): Likewise.
16040 2019-06-06 Jim Wilson <jimw@sifive.com>
16043 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16044 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16045 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16047 2019-06-06 Martin Sebor <msebor@redhat.com>
16049 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16050 (handle_builtin_malloc): Remove trailing spaces.
16051 (handle_builtin_memset): Same.
16052 (handle_builtin_memcmp): Same.
16053 (compute_string_length): Same.
16054 (determine_min_objsize): Same.
16055 (handle_builtin_string_cmp): Same.
16056 (handle_char_store): Same. Break up excessively long line.
16058 2019-06-06 Martin Jambor <mjambor@suse.cz>
16060 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16063 2019-06-06 Martin Jambor <mjambor@suse.cz>
16065 * tree-sra.c (struct access): New field grp_same_access_path.
16066 (dump_access): Dump it.
16067 (build_reconstructed_reference): New function.
16068 (build_ref_for_model): Use it if possible.
16069 (path_comparable_for_same_access): New function.
16070 (same_access_path_p): Likewise.
16071 (sort_and_splice_var_accesses): Set the new flag.
16072 (analyze_access_subtree): Likewise.
16073 (propagate_subaccesses_across_link): Propagate zero value of the new
16074 flag down the access tree.
16076 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16078 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16079 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16080 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16081 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16084 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16086 PR tree-optimization/90332
16087 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16088 Handle VALS containing two vectors.
16089 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16091 (@aarch64_combinez<mode>): ... This.
16092 (*aarch64_combinez_be<mode>): Rename to...
16093 (@aarch64_combinez_be<mode>): ... This.
16094 (vec_init<mode><Vhalf>): New define_expand.
16095 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16097 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16099 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16100 library functions only when not optimizing for size.
16101 (ashlsi3): Likewise.
16102 (ashrhi3): Likewise.
16103 (ashrsi3): Likewise.
16104 (lshrhi3): Likewise.
16105 (lshrsi3): Likewise.
16107 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16109 PR rtl-optimization/88751
16110 * ira.c (ira): Use the number of the actually referenced registers
16111 when calculating the threshold.
16113 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16115 * configure: Regenerate.
16117 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16119 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16120 register if it is in memory, so the shift can be emulated with a rotate
16122 (ashrhi3): Likewise.
16123 (lshrhi3): Likewise.
16125 2019-06-06 Martin Liska <mliska@suse.cz>
16127 PR tree-optimization/87954
16128 * match.pd: Simplify mult where both arguments are 0 or 1.
16130 2019-06-06 Richard Biener <rguenther@suse.de>
16132 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16133 put equivalences on UNDEFINED ranges.
16134 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16135 Make sure to drop defs of stmts added during simplification
16138 2019-06-06 Richard Biener <rguenther@suse.de>
16140 * tree-ssa-structalias.c: Include tree-cfg.h.
16141 (make_heapvar): Do not make heap vars artificial.
16142 (find_func_aliases_for_builtin_call): Handle stack allocation
16144 (find_func_aliases): Delay processing of simple enough returns
16146 (set_uids_in_ptset): Adjust.
16147 (find_what_var_points_to): Likewise.
16148 (solve_constraints): Do not dump points-to sets here.
16149 (compute_points_to_sets): Post-process return statements,
16150 amending the escaped solution. Dump points-to sets afterwards.
16151 (ipa_pta_execute): Dump points-to sets.
16153 2019-06-06 Martin Liska <mliska@suse.cz>
16156 * doc/install.texi: Fix HTML headers and
16157 titles for 'Installing GCC' pages.
16159 2019-06-06 Martin Liska <mliska@suse.cz>
16161 * ipa-icf-gimple.h (dump_message_1): Remove.
16162 (dump_message): Likewise.
16163 (return_false_with_message_1): Print also file.
16164 (return_false_with_msg): Likewise.
16165 (return_with_result): Likewise.
16166 (return_with_debug): Likewise.
16167 * ipa-icf.c (sem_function::equals_private): Remove call
16170 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16172 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16173 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16174 memory operand for it.
16175 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16177 2019-06-05 Martin Sebor <msebor@redhat.com>
16179 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16180 Adjust quoting and hyphenation.
16181 * convert.c (convert_to_real_1): Same.
16182 * gcc.c (driver_wrong_lang_callback): Same.
16183 (driver::handle_unrecognized_options): Same.
16184 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16185 * opts-common.c (cmdline_handle_error): Same.
16186 (read_cmdline_option): Same.
16187 * opts-global.c (complain_wrong_lang): Same.
16188 (print_ignored_options): Same.
16189 (handle_common_deferred_options): Same.
16190 * pretty-print.h: Same.
16191 * print-rtl.c (debug_bb_n_slim): Same.
16192 * sched-rgn.c (make_pass_sched_fusion): Same.
16193 * tree-cfg.c (verify_gimple_assign_unary): Same.
16194 (verify_gimple_label): Same.
16195 * tree-ssa-operands.c (verify_ssa_operands): Same.
16196 * varasm.c (do_assemble_alias): Same.
16197 (assemble_alias): Same.
16199 2019-06-05 Richard Henderson <rth@twiddle.net>
16201 * config/alpha/alpha.c (direct_return): Move down after
16202 struct machine_function definition; use saved frame_size;
16204 (struct machine_function): Add sa_mask, sa_size, frame_size.
16205 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16206 (alpha_compute_frame_layout): ... new function.
16207 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16208 (alpha_initial_elimination_offset): Use saved sa_size.
16209 (alpha_vms_initial_elimination_offset): Likewise.
16210 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16211 (alpha_expand_prologue): Use saved frame data. Merge integer
16212 and fp register save loops.
16213 (alpha_expand_epilogue): Likewise.
16214 (alpha_start_function): Use saved frame data.
16215 * config/alpha/alpha-protos.h (direct_return): Update.
16216 (alpha_sa_size): Remove.
16218 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16220 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16221 multiplication by a power-of-two value.
16222 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16223 and turn the modulo operation into a masking operation.
16225 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16228 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16229 with VOIDmode inner operands.
16231 2019-06-05 Richard Biener <rguenther@suse.de>
16233 PR middle-end/90726
16234 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16235 turn an expression graph into a tree.
16237 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16239 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16241 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16242 treat it like explicit monotonic schedule modifier.
16243 (expand_omp_for): Initialize has_lastprivate_conditional.
16244 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16247 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16248 references, lookup in in hash map MEM_REF operand instead of the
16250 (lower_omp_1): When looking for lastprivate conditional assignments,
16251 handle MEM_REFs with REFERENCE_TYPE operands.
16253 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16254 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16255 and references a VLA. Handle references to non-VLAs if is_simd
16256 all privatization clauses like reductions.
16257 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16258 If omp_is_reference, use always omp simd arrays and set
16259 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16260 fails, emit reference initialization.
16262 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16265 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16266 _mm_mask_fpclass_sd_mask): New intrinsics.
16267 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16268 * config/i386/i386-builtin.def
16269 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16271 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16272 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16273 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16274 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16275 case QI_FTYPE_V2SF_INT): Ditto.
16276 * config/i386/sse.md
16277 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16278 Extended to insnstructions with mask operands.
16280 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16282 * config/rs6000/constraints.md (define_register_constraint "wp"):
16284 (define_register_constraint "wq"): Delete.
16285 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16286 (rs6000_init_hard_regno_mode_ok): Adjust.
16287 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16288 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16289 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16290 (define_mode_attr VSa): Delete.
16291 (define_mode_attr VSisa): New.
16292 (rest of file): Adjust.
16293 * doc/md.texi (Machine Constraints): Adjust.
16295 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16297 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16298 (define_attr "enabled"): Handle those new isa values.
16300 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16302 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16303 (define_mode_attr VSr5): Delete.
16304 (define_mode_attr VStype_sqrt): Delete.
16305 (define_mode_iterator VSX_SPDP): Delete.
16306 (define_mode_attr VS_spdp_res): Delete.
16307 (define_mode_attr VS_spdp_insn): Delete.
16308 (define_mode_attr VS_spdp_type): Delete.
16309 (*vsx_sqrt<mode>2): Adjust.
16310 (vsx_<VS_spdp_insn>): Delete, split to...
16311 (vsx_xscvdpsp): ... this. New. And...
16312 (vsx_xvcvspdp): ... this. New. And...
16313 (vsx_xvcvdpsp): ... this. New.
16315 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16317 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16319 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16320 (rest of file): Adjust.
16322 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16324 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16325 (vsx_extract_<mode>_var): Ditto.
16327 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16329 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16332 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16334 * config/rs6000/constraints.md (define_register_constraint "ww"):
16336 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16337 (rs6000_init_hard_regno_mode_ok): Adjust.
16338 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16339 RS6000_CONSTRAINT_ww.
16340 * config/rs6000/rs6000.md: Adjust.
16341 * config/rs6000/vsx.md: Adjust.
16342 * doc/md.texi (Machine Constraints): Adjust.
16344 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16346 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16347 (define_mode_attr sd): New.
16348 (define_mode_attr s): New.
16349 (define_mode_attr Ftrad): Delete.
16350 (define_mode_attr Fvsx): Delete.
16351 (define_mode_attr Fs): Delete.
16352 (rest of file): Use the new mode attributes.
16353 * config.rs6000/vsx.md: Use the new mode attributes.
16355 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16357 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16360 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16362 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16363 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16364 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16366 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16369 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16370 C++ with strict ANSI requirements.
16372 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16374 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16375 computations when step is 1.
16377 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16379 * config/rs6000/constraints.md (define_register_constraint "wf"):
16381 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16382 (rs6000_init_hard_regno_mode_ok): Adjust.
16383 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16384 RS6000_CONSTRAINT_wf.
16385 * config/rs6000/rs6000.md: Adjust.
16386 * config/rs6000/vsx.md: Adjust.
16387 * doc/md.texi (Machine Constraints): Adjust.
16389 2019-06-04 Andrew Pinski <apinski@marvell.com>
16391 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16394 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16396 * config/rs6000/constraints.md (define_register_constraint "wd"):
16398 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16399 (rs6000_init_hard_regno_mode_ok): Adjust.
16400 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16401 RS6000_CONSTRAINT_wd.
16402 * config/rs6000/rs6000.md: Adjust.
16403 * config/rs6000/vsx.md: Adjust.
16404 * doc/md.texi (Machine Constraints): Adjust.
16406 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16408 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16409 (rest of file): Adjust.
16411 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16413 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16414 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16415 (vsx_splat_<mode>_reg): Adjust.
16417 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16419 * config/rs6000/constraints.md (define_register_constraint "ws"):
16421 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16422 (rs6000_init_hard_regno_mode_ok): Adjust.
16423 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16424 RS6000_CONSTRAINT_ws.
16425 * config/rs6000/rs6000.md: Adjust.
16426 * config/rs6000/vsx.md: Adjust.
16427 * doc/md.texi (Machine Constraints): Adjust.
16429 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16431 * config/rs6000/constraints.md (define_register_constraint "wv"):
16433 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16434 (rs6000_init_hard_regno_mode_ok): Adjust.
16435 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16436 RS6000_CONSTRAINT_wv.
16437 * config/rs6000/rs6000.md: Adjust.
16438 * config/rs6000/vsx.md: Adjust.
16439 * doc/md.texi (Machine Constraints): Adjust.
16441 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16443 * config/rs6000/constraints.md (define_register_constraint "wi"):
16445 (define_register_constraint "wt"): Delete.
16446 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16447 (rs6000_init_hard_regno_mode_ok): Adjust.
16448 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16449 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16450 * config/rs6000/rs6000.md: Adjust.
16451 * config/rs6000/vsx.md: Adjust.
16452 * doc/md.texi (Machine Constraints): Adjust.
16454 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16456 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16458 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16459 default_elf_asm_output_external.
16461 2019-06-04 Martin Liska <mliska@suse.cz>
16463 * ipa-icf.c (INCLUDE_LIST): Remove.
16464 (sem_item_optimizer::execute): Remove call to init_wpa.
16465 * ipa-icf.h (init_wpa): Remove.
16467 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16469 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16470 conditional on combined for simd.
16471 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16473 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16474 constructs, don't remove lastprivate_conditional_map, but instead set
16475 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16476 to parent construct temporaries.
16477 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16478 like !ctx->lastprivate_conditional_map.
16479 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16480 use up->outer context instead of up.
16481 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16482 gimple_omp_for_combined_p.
16483 (expand_omp_for_static_nochunk): Likewise.
16484 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16485 probably moved over into expand_omp_for_generic rather than being copied
16488 2019-06-04 Martin Liska <mliska@suse.cz>
16490 * value-prof.c (dump_histogram_value): Fix typo.
16491 (gimple_mod_subtract_transform): Likewise.
16493 2019-06-04 Richard Biener <rguenther@suse.de>
16495 PR middle-end/90726
16496 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16497 (tree_contains_chrecs): Likewise.
16498 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16499 exponential behaivor from ...
16500 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16502 (expression_expensive_p): Avoid exponential behavior and compute
16503 expanded size, rejecting any expansion.
16504 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16505 (idx_contains_abnormal_ssa_name_p): Likewise.
16506 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16507 (contains_abnormal_ssa_name_p): Simplify and use
16508 walk_tree_without_duplicates.
16510 2019-06-04 Richard Biener <rguenther@suse.de>
16512 PR tree-optimization/90738
16514 2019-06-03 Richard Biener <rguenther@suse.de>
16516 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16517 full reference tree and record in ref->ref.
16518 (vn_reference_lookup_3): Pass in original ref to
16519 ao_ref_init_from_vn_reference.
16520 (vn_reference_lookup): Likewise.
16521 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16522 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16523 Handle non-decl bases in the original reference.
16525 2019-06-04 Martin Liska <mliska@suse.cz>
16527 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16528 number of references.
16529 (sem_item_optimizer::do_congruence_step):
16530 (sem_item_optimizer::worklist_push): Dump how references
16532 (sem_item_optimizer::worklist_pop): Use heap.
16533 (sem_item_optimizer::process_cong_reduction): Likewise.
16534 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16536 2019-06-04 Martin Liska <mliska@suse.cz>
16538 * ipa-icf.h (struct sem_usage_pair_hash): New.
16539 (sem_usage_pair_hash::hash): Likewise.
16540 (sem_usage_pair_hash::equal): Likewise.
16541 (struct sem_usage_hash): Likewise.
16542 * ipa-icf.c (sem_item::sem_item): Initialize
16543 referenced_by_count.
16544 (sem_item::add_reference): Register a reference
16545 in ref_map and not in target->usages.
16546 (sem_item::setup): Remove initialization of
16548 (sem_item::~sem_item): Remove usage of dead vectors.
16549 (sem_item::dump): Remove dump of references.
16550 (sem_item_optimizer::sem_item_optimizer): Initialize
16552 (sem_item_optimizer::read_section): Remove useless
16554 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16555 (sem_item_optimizer::build_graph): Pass m_references
16556 to ::add_reference.
16557 (sem_item_optimizer::verify_classes): Remove usage of dead
16559 (sem_item_optimizer::traverse_congruence_split): Return true
16560 when a class is split.
16561 (sem_item_optimizer::do_congruence_step_for_index): Use
16562 hash_map for look up of (sem_item *, index). That brings
16563 significant speed up.
16564 (sem_item_optimizer::do_congruence_step): Return true
16565 when a split is done.
16566 (congruence_class::is_class_used): Use referenced_by_count.
16568 2019-06-04 Alan Modra <amodra@gmail.com>
16571 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16574 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16576 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16577 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16578 (rs6000_secondary_reload_simple_move): Adjust.
16579 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16580 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16581 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16584 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16585 (floatunssi<mode>2_lfiwzx): Adjust.
16586 (fix_trunc<mode>si2_stfiwx): Adjust.
16587 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16588 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16589 (mfpgpr): Mark as deprecated.
16590 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16591 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16592 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16594 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16596 * config/rs6000/constraints.md (define_register_constraint "wg"):
16598 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16599 RS6000_CONSTRAINT_wg.
16600 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16601 (rs6000_init_hard_regno_mode_ok): Adjust.
16602 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16603 Delete "wg" alternatives.
16604 * doc/md.texi (Machine Constraints): Adjust.
16606 2019-06-03 Alan Modra <amodra@gmail.com>
16608 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16609 (get_uncond_jump_length): Assert length less than INT_MAX and
16612 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16614 PR middle-end/64242
16615 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16617 (expand_builtin_nonlocal_goto): Likewise.
16619 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16621 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16622 (aarch64_asm_output_external): Declare.
16623 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16624 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16625 (aarch64_asm_output_alias): New.
16626 (aarch64_asm_output_external): New.
16627 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16628 (ASM_OUTPUT_EXTERNAL): Define.
16630 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16631 * tree-vrp.h (value_range_base::nonzero_p): New.
16632 (value_range_base::set_nonnull): Rename to...
16633 (value_range_base::set_nonzero): ...this.
16634 (value_range_base::set_null): Rename to...
16635 (value_range_base::set_zero): ...this.
16636 (value_range::set_nonnull): Remove.
16637 (value_range::set_null): Remove.
16638 * tree-vrp.c (range_is_null): Remove.
16639 (range_is_nonnull): Remove.
16640 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16641 instead of range_is_*null.
16642 (extract_range_from_unary_expr): Same.
16643 (value_range_base::set_nonnull): Rename to...
16644 (value_range_base::set_nonzero): ...this.
16645 (value_range::set_nonnull): Remove.
16646 (value_range_base::set_null): Rename to...
16647 (value_range_base::set_zero): ...this.
16648 (value_range::set_null): Remove.
16649 (extract_range_from_binary_expr): Rename set_*null uses to
16651 (extract_range_from_unary_expr): Same.
16652 (union_helper): Same.
16653 * vr-values.c (get_value_range): Use set_*zero instead of
16655 (vr_values::extract_range_from_binary_expr): Same.
16656 (vr_values::extract_range_basic): Same.
16658 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16661 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16663 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16665 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16666 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16668 (aarch64_<su>abd<mode>_3): ... This.
16669 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16671 2019-06-03 Richard Biener <rguenther@suse.de>
16673 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16674 full reference tree and record in ref->ref.
16675 (vn_reference_lookup_3): Pass in original ref to
16676 ao_ref_init_from_vn_reference.
16677 (vn_reference_lookup): Likewise.
16678 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16679 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16680 Handle non-decl bases in the original reference.
16682 2019-06-03 Martin Liska <mliska@suse.cz>
16684 * doc/generic.texi: Remove Java Trees.
16686 2019-06-03 Martin Liska <mliska@suse.cz>
16688 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16689 returns 0 when operands are equal.
16691 2019-06-03 Richard Biener <rguenther@suse.de>
16693 PR tree-optimization/90716
16694 * tree-loop-distribution.c (destroy_loop): Process blocks in
16697 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16700 * vector-builder.h (vector_builder::count_dups): New method.
16701 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16703 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16704 (vec_init<mode><Vel>): New pattern.
16705 * config/aarch64/aarch64.c (emit_insr): New function.
16706 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16707 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16708 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16709 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16711 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16713 PR tree-optimization/90681
16714 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16715 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16716 special case for SLP, but fail on non-groupped loads.
16718 2019-06-03 Martin Liska <mliska@suse.cz>
16720 * cfg.c (debug): Use TDF_DETAILS for debug and
16721 print edge info only once.
16723 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16726 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16728 2019-06-01 Martin Sebor <msebor@redhat.com>
16730 PR middle-end/90694
16731 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16733 2019-05-31 Jan Hubicka <jh@suse.cz>
16735 * alias.c: Include ipa-utils.h.
16736 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16737 * ipa-devirt.c (prevailing_odr_type): New.
16738 * ipa-utils.h (previaling_odr_type): Declare.
16740 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16741 Hongtao Liu <hongtao.liu@intel.com>
16744 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16745 NOTE_INSN_DELETED_LABEL check.
16747 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16748 Robert Suchanek <robert.suchanek@mips.com>
16750 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16751 and 3rd operands of the fmadd/fmsub/maddv builtin.
16753 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16755 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16756 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16757 on OMP_SIMD if not nested inside of worksharing loop that also has
16758 lastprivate conditional clause for the same decl.
16759 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16760 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16762 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16764 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16766 (lower_lastprivate_clauses): Likewise.
16767 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16768 calling lower_rec_input_clauses.
16769 (lower_omp_for): Likewise.
16770 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16771 clause on simd construct.
16772 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16773 OMP_CLAUSE__CONDTEMP_ clause is present.
16775 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16778 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16781 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16782 TEX_D32, TEX_D64 or TEX_D128.
16784 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16786 * match.pd (~(vec?cst1:cst2)): New transformation.
16788 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16790 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16791 ((size_t)(A /[ex] B) CMP C): New transformation.
16793 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16795 * doc/md.texi: Document define_insn_and_rewrite.
16796 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16797 * gensupport.c (queue_elem): Update comment.
16798 (replace_operands_with_dups): New function.
16799 (gen_rewrite_sequence): Likewise.
16800 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16801 * read-rtl.c (apply_subst_iterator): Likewise.
16802 (add_condition_to_rtx, named_rtx_p): Likewise.
16803 (rtx_reader::read_rtx_operand): Likewise.
16804 * config/aarch64/aarch64-sve.md
16805 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16806 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16807 define_insn_and_rewrite.
16808 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16809 Remove separate define_split.
16811 2019-05-31 Jan Hubicka <jh@suse.cz>
16813 * tree-ssa-alias.c (type_has_components_p): New function.
16814 (aliasing_component_refs_p): Use it.
16816 2019-05-31 Martin Liska <mliska@suse.cz>
16818 * gdbhooks.py: Add const_tree to TreePrinter.
16820 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16823 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16824 * doc/invoke.texi (Debugging Options): Document new default of
16825 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16827 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16829 PR tree-optimization/90671
16830 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16831 template_block used to be empty on the first call, don't use
16832 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16833 seq with bb_seq and set it with set_bb_seq.
16835 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16837 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16839 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16840 Michael Meissner <meissner@linux.ibm.com>
16842 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16843 (prefixed_mem_operand): Likewise.
16844 (non_prefixed_mem_operand): Likewise.
16845 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16847 * config/rs6000/rs6000.c (print_operand_address): Handle
16848 PC-relative addresses.
16849 (mode_supports_prefixed_address_p): New function.
16850 (rs6000_prefixed_address): New function.
16851 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16852 (SYMBOL_REF_PCREL_P): Likewise.
16854 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16856 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16857 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16858 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16859 is nested inside of parallel region, add _condtemp_ clause to both.
16860 * tree-nested.c (convert_nonlocal_omp_clauses,
16861 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16863 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16865 * omp-general.c (omp_extract_for_data): Compute it.
16866 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16867 (lower_rec_input_clauses): Likewise.
16868 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16869 clause is already present, just add one further one after it.
16870 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16871 (lower_send_shared_vars): Clear _condtemp_ vars.
16872 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16873 or section or taskgroup.
16874 * omp-expand.c (determine_parallel_type): Disallow combining only if
16875 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16876 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16877 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16878 expand_omp_for_static_chunk, expand_omp_for): Use
16879 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16880 determine if a special set of API routines are needed and if condtemp
16881 needs to be initialized, while always initialize cond_var if
16882 fd->lastprivate_conditional is non-zero.
16884 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16885 Michael Meissner <meissner@linux.ibm.com>
16887 * config/rs6000/constraints.md (eI): New constraint.
16888 * config/rs6000/predicates.md (cint34_operand): New predicate.
16889 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16890 (SIGNED_34BIT_OFFSET_P): Likewise.
16891 * doc/md.texi (eI): Document constraint.
16893 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16895 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16897 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16898 Michael Meissner <meissner@linux.ibm.com>
16900 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16901 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16902 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16903 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16904 (OTHER_FUTURE_MASKS): Likewise.
16905 (POWERPC_MASKS): Likewise.
16906 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16907 specified without -mprefixed-addr or -mcpu=future. Error if
16908 -mprefixed-addr is specified without -mcpu=future.
16909 (rs6000_opt_masks): Add entry for prefixed-addr.
16910 * rs6000.opt (mprefixed-addr): New option.
16912 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16914 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16915 cfun->is_thunk check.
16917 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16919 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16922 2019-05-30 Martin Liska <mliska@suse.cz>
16924 * gdbinit.in: Fix 'ptc' command. Add trt
16925 that prints TREE_TYPE($).
16927 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16928 Alan Modra <amodra@gmail.com>
16930 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16932 (rs6000_indirect_call_template_1): ...and here.
16933 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16934 plt16_ha, plt16_lo, mtctr indirect calls. Use
16935 rs6000_pltseq_enum.
16936 (rs6000_decl_ok_for_sibcall): New function.
16937 (rs6000_function_ok_for_sibcall): Refactor.
16938 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16939 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16940 when pcrel. Reorganize.
16941 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16942 * rs6000.h (rs6000_pltseq_enum): New enum.
16943 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16944 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16945 (*pltseq_plt16_ha): Likewise.
16946 (*pltseq_plt16_lo): Likewise.
16947 (*pltseq_mtctr): Likewise.
16948 (*pltseq_plt_pcrel): New insn.
16949 (*call_local_aix): Handle @notoc calls.
16950 (*call_value_local_aix): Likewise.
16951 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16952 (*call_value_nonlocal_aix): Likewise.
16953 (*call_indirect_pcrel): New insn.
16954 (*call_value_indirect_pcrel): Likewise.
16956 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16958 * config/i386/sse.md (*save_multiple<mode>): Rename from
16959 save_multiple<mode>.
16960 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16961 (*restore_multiple_and_return<mode>): Rename from
16962 restore_multiple_and_return<mode>.
16963 (*restore_multiple_leave_return<mode>): Rename from
16964 restore_multiple_leave_return<mode>.
16966 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16968 * config.gcc (rx-*-linux*): New target.
16969 * config/rx/elf.opt: New file.
16970 * config/rx/linux.h: Likewise.
16971 * config/rx/t-linux: Likewise.
16972 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16974 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16975 (ASM_APP_OFF): Likewise.
16976 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16979 2019-05-29 Jan Hubicka <jh@suse.cz>
16981 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16982 variants are pointer equivalent.
16984 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16986 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16987 * config/aarch64/aarch64-sve2.md: New file.
16988 (<u>avg<mode>3_floor): New pattern.
16989 (<u>avg<mode>3_ceil): Likewise.
16990 (*<sur>h<addsub><mode>): Likewise.
16991 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16992 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16994 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16997 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16998 for var_opt_string printing. In cl_optimization_print_diff, print
16999 (null) instead of invoking undefined behavior if one of the
17000 var_opt_string pointers is NULL and use && instead of first || in the
17001 guarding condition. For var_target_other options, handle const char *
17002 target variables similarly to const char * optimize node variables.
17004 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17006 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17007 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17008 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17009 Add autib1716 and pacib1716 initialisation.
17010 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17011 for autib1716 and pacib1716.
17012 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17013 aarch64_post_cfi_startproc): Define.
17014 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17015 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17016 aarch64_handle_pac_ret_protection): Set default sign key to A.
17017 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17018 aarch64_expand_prologue): Add check for b-key.
17019 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17020 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17021 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17022 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17023 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17024 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17025 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17026 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17027 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17028 pauth_hint_num_a with pauth_hint_num.
17029 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17030 pauth_hint_num_a with pauth_hint_num.
17031 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17032 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17033 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17034 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17035 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17036 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17037 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17038 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17039 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17040 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17041 UNSPEC_AUTIA1716 respectively.
17042 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17043 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17044 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17045 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17046 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17047 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17049 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17051 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17052 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17053 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17054 explicit clause on combined parallel into implicit shared clause.
17055 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17056 and firstprivate if the decl has one too from combined parallel to
17057 the worksharing construct.
17059 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17060 Michael Meissner <meissner@linux.ibm.com>
17062 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17064 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17066 * rtl.h (LABEL_REF_P): New #define.
17068 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17070 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17072 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17074 * internal-fn.c: Marked mask_load_direct as vectorizable.
17075 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17076 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17077 combined even if masks different with allow_slp_p param.
17078 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17079 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17080 dissolve SLP-only vectorizable groups when SLP has been discarded.
17081 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17082 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17084 (vect_build_slp_tree_1): Fixed comment typo.
17085 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17086 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17087 loads for SLP only.
17088 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17090 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17092 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17094 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17095 Remove obsolete use_thunk reference.
17096 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17097 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17098 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17099 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17100 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17101 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17102 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17103 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17104 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17106 2019-05-28 Nathan Sidwell <nathan@acm.org>
17108 * tree.h (IDENTIFIER_ANON_P): New.
17109 (anon_aggrname_format, anon_aggname_p): Don't declare.
17110 (make_anon_name): Declare.
17111 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17112 (hash_tree): Likewise.
17113 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17114 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17115 (anon_cnt, make_anon_name): New.
17117 2019-05-28 Martin Liska <mliska@suse.cz>
17120 * opts-global.c (decode_options): Print help for all
17121 help_option_arguments.
17122 * opts.c (print_help): Add new argument.
17123 (common_handle_option): Remember all values into
17124 help_option_arguments.
17125 * opts.h (print_help): Add new argument.
17127 2019-05-28 Martin Liska <mliska@suse.cz>
17130 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17131 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17132 (func_checker::compare_bb): Call compare_loops.
17134 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17136 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17137 on sections construct.
17138 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17140 (lower_omp_sections): Handle lastprivate conditional.
17141 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17142 lastprivate_conditional_map.
17143 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17145 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17146 critical, taskgroup and section regions when looking for a region
17147 with non-NULL lastprivate_conditional_map.
17149 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17151 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17152 (*ix86_gen_sub3): Ditto.
17153 (*ix86_gen_sub3_carry): Ditto.
17154 (*ix86_gen_one_cmpl2): Ditto.
17155 (*ix86_gen_andsp): Ditto.
17156 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17157 (gen_and2_insn): New static function.
17158 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17159 Use gen_add3_insn instead of ix86_gen_add3.
17160 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17161 instead of ix86_gen_add3.
17162 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17163 Use gen_sub3_insn instead of ix86_gen_sub3.
17164 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17165 instead of ix86_gen_add3.
17166 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17167 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17168 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17169 * config/i386/i386-options.c (ix86_option_override_internal):
17170 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17171 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17173 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17175 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17176 and DW_OP_GNU_const_index opcodes.
17178 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17180 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17182 2019-05-27 Richard Biener <rguenther@suse.de>
17184 PR tree-optimization/90637
17185 * tree-ssa-sink.c (statement_sink_location): Honor the
17186 computed sink location for single-uses.
17188 2019-05-27 Richard Biener <rguenther@suse.de>
17190 PR middle-end/90610
17191 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17194 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17196 * config/i386/i386.md (@sub<mode>3_carry): Rename
17197 from sub<mode>3_carry.
17198 (@leave_<mode>): New expander.
17199 (*leave): Rename from leave.
17200 (*leave_rex64): Rename from leave_rex64.
17201 (@monitorx_<mode>): Rename from monitorx_<mode>.
17202 (@clzero_<mode>): Rename from clzero_<mode>.
17203 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17204 from sse3_monitor_<mode>.
17205 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17206 (*ix86_gen_leave): Ditto.
17207 (*ix86_gen_monitor): Ditto.
17208 (*ix86_gen_monitorx): Ditto.
17209 (*ix86_gen_clzero): Ditto.
17210 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17211 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17212 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17213 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17214 Use gen_sse3_monitor instead of ix86_gen_monitor.
17215 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17216 instead of ix86_gen_monitorx.
17217 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17218 instead of ix86_gen_clzero.
17219 * config/i386/i386-options.c (ix86_option_override_internal):
17220 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17221 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17223 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17225 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17226 Rename from tls_global_dynamic_64_<mode>.
17227 (@tls_local_dynamic_base_64_<mode>): Rename from
17228 tls_local_dynamic_base_64_<mode>.
17229 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17230 Remove indirect function.
17231 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17232 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17233 instead of ix86_gen_tls_global_dynamic_64.
17234 Use gen_tls_local_dynamic_base_64 instead of
17235 ix86_gen_tls_local_dynamic_base_64.
17236 * config/i386/i386-options.c (ix86_option_override_internal):
17237 Do not initialize ix86_gen_tls_global_dynamic_64 and
17238 ix86_gen_tls_local_dynamic_base_64.
17240 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17242 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17243 Rename from pro_epilogue_adjust_stack_<mode>_add.
17244 (@pro_epilogue_adjust_stack_sub_<mode>)
17245 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17246 (@allocate_stack_worker_probe_<mode>):
17247 Rename from allocate_stack_worker_probe_<mode>.
17248 (allocate_stack): Use gen_allocate_stack_worker_probe.
17249 (probe_stack): Use gen_probe_stack_1.
17250 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17251 (@adjust_stack_and_probe_<mode>): Rename from
17252 adjust_stack_and_probe<mode>.
17253 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17254 (stack_protect_set): Use gen_stack_protect_set_1.
17255 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17256 (stack_protect_test): Use gen_stack_protect_test_1.
17257 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17258 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17259 Remove indirect function.
17260 (*ix86_gen_adjust_stack_and_probe): Ditto.
17261 (*ix86_gen_probe_stack_range): Ditto.
17262 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17263 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17264 (ix86_adjust_stack_and_probe_stack_clash): Use
17265 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17266 (ix86_adjust_stack_and_probe): Ditto.
17267 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17268 of ix86_gen_probe_stack_range.
17269 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17270 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17271 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17272 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17273 CODE_FOR_stack_protect_test_{si,di}.
17274 * config/i386/i386-options.c (ix86_option_override_internal):
17275 Do not initialize ix86_gen_allocate_stack_worker,
17276 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17278 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17280 * doc/invoke.texi (Link Options): Many editorial changes around
17283 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17285 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17286 pre-Solaris 11 referene and most Studio compiler details.
17288 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17291 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17292 DImode to SImode in floating-point registers on 64-bit target.
17293 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17294 register_operand in xmpyu patterns.
17296 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17298 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17299 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17300 OMP_CLAUSE__REDUCTEMP_.
17301 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17302 OMP_CLAUSE__CONDTEMP_.
17303 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17304 * tree-pretty-print.c (dump_omp_clause): Likewise.
17305 * tree-nested.c (convert_nonlocal_omp_clauses,
17306 convert_local_omp_clauses): Likewise.
17307 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17308 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17309 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17311 (gimplify_omp_for): Warn and disable conditional modifier from
17312 lastprivate on loop iterators.
17313 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17315 * omp-general.c (omp_extract_for_data): Initialize it.
17316 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17318 (delete_omp_context): Delete it.
17319 (lower_lastprivate_conditional_clauses): New function.
17320 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17321 handle lastprivate conditional clauses.
17322 (lower_reduction_clauses): Add CLIST argument, emit it into
17323 the critical section if any.
17324 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17325 lower_reduction_clauses callers.
17326 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17327 to lower_lastprivate_clauses.
17328 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17329 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17330 clist into a critical section if not emitted there already by
17331 lower_reduction_clauses.
17332 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17334 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17335 conditional variables.
17336 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17338 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17339 expand_omp_for_static_chunk): Handle lastprivate conditional.
17340 (expand_omp_for): Handle fd.lastprivate_conditional like
17343 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17345 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17346 kernel does not exit cleanly.
17347 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17349 2019-05-24 Jason Merrill <jason@redhat.com>
17352 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17354 2019-05-24 Richard Biener <rguenther@suse.de>
17357 * tree-loop-distribution.c (struct partition): Add location
17359 (partition_alloc): Initialize all fields.
17360 (generate_memset_builtin): Use the location recorded in the
17361 partition for the generated call.
17362 (generate_memcpy_builtin): Likewise.
17363 (classify_partition): Record the location of a single store
17364 as location for the partition.
17366 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17368 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17371 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17374 * common/config/aarch64/aarch64-common.c
17375 (aarch64_rewrite_selected_cpu): Change local temporary variable
17376 type from unsigned long to uint64_t.
17377 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17378 aarch64_get_extension_string_for_isa_flags): Change declaration to
17379 match new definition by replacing unsigned long with uint64_t.
17381 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17384 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17385 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17386 Handle stack_protect_test_<mode> codegen similarly to corresponding
17389 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17391 * config/i386/darwin.h: Reject -mfentry*.
17392 * doc/sourcebuild.texi: Document mfentry target support.
17394 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17396 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17397 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17398 false for PC-relative functions.
17399 (rs6000_output_function_prologue): Change called function name to
17400 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17401 name,1" for PC-relative functions.
17402 (rs6000_elf_declare_function_name): Change called function name to
17403 rs6000_global_entry_point_prologue_needed_p.
17405 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17408 * config/i386/i386.c (gen_rtx_cost):
17409 Use ix86_tune_cost instead of ix86_cost.
17411 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17412 Michael Meissner <meissner@linux.ibm.com>
17413 Segher Boessenkool <segher@kernel.crashing.org>
17415 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17417 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17418 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17419 (rs6000_fndecl_pcrel_p): Likewise.
17420 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17421 error if -mpcrel is requested without -mcpu=future.
17422 (rs6000_opt_masks): Add entry for pcrel.
17423 (rs6000_fndecl_pcrel_p): New function.
17424 (rs6000_pcrel_p): Likewise.
17425 * config/rs6000/rs6000.opt (mpcrel): New option.
17426 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17428 2019-05-23 Jan Hubicka <jh@suse.cz>
17429 Martin Liska <mliska@suse.cz>
17431 PR tree-optimization/90576
17432 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17434 (aliasing_component_refs_p): Fix three way size compare conditional;
17435 give up earlier in case we can not decide on equivalence.
17437 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17438 Michael Meissner <meissner@linux.ibm.com>
17439 Segher Boessenkool <segher@kernel.crashing.org>
17441 * config.gcc: Add future cpu.
17442 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17443 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17445 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17446 (RS6000_CPU): New instantiation for future cpu.
17447 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17449 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17450 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17451 * config/rs6000/rs6000-tables.opt: Regenerate.
17452 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17453 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17454 (rs6000_machine_from_flags): Handle future cpu.
17455 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17456 PROCESSOR_POWER9 for now.
17457 (rs6000_adjust_cost): Likewise.
17458 (rs6000_issue_rate): Likewise.
17459 (rs6000_register_move_cost): Likewise.
17460 (rs6000_opt_masks): Add entry for future.
17461 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17462 (MASK_FUTURE): New #define.
17463 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17464 * config/rs6000/rs6000.opt (mfuture): New target option.
17465 * doc/invoke.texi (mcpu): Add future cpu.
17467 2019-05-23 Martin Liska <mliska@suse.cz>
17470 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17471 operation points to a temporary (pointed via tree_to_wide_ref)
17472 that is out of scope after the &.
17474 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17477 * doc/extend.texi (Function Names): Add missing word.
17479 2019-05-23 Richard Biener <rguenther@suse.de>
17481 PR tree-optimization/88440
17482 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17484 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17486 (generate_memcpy_builtin): Likewise.
17487 (distribute_loop): Pass in whether to only distribute patterns.
17488 (prepare_perfect_loop_nest): Also allow size optimization.
17489 (pass_loop_distribution::execute): When optimizing a loop
17490 nest for size allow pattern replacement.
17492 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17495 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17498 2019-05-23 Martin Liska <mliska@suse.cz>
17501 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17502 expression similarly to gimplify_decl_expr.
17504 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17506 * cse.c (cse_dump_path): s/dump_file/f.
17508 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17511 * diagnostic-format-json.cc: Include "selftest.h".
17512 (json_from_expanded_location): Only add "file" key for non-NULL
17514 (json_from_location_range): Don't add "start" and "finish"
17515 children if they are UNKNOWN_LOCATION.
17516 (selftest::test_unknown_location): New selftest.
17517 (selftest::test_bad_endpoints): New selftest.
17518 (selftest::diagnostic_format_json_cc_tests): New function.
17519 * json.cc (json::object::get): New function.
17520 (selftest::test_object_get): New selftest.
17521 (selftest::json_cc_tests): Call it.
17522 * json.h (json::object::get): New decl.
17523 * selftest-run-tests.c (selftest::run_tests): Call
17524 selftest::diagnostic_format_json_cc_tests.
17525 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17528 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17529 Andrew Stubbs <amd@codesourcery.com>
17531 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17532 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17533 (kernel): Rename to...
17534 (main_kernel): ... this.
17535 (load_image): Load _init_array and _fini_array kernels.
17536 (run): Add argument for kernel to run.
17537 (main): Run init_array_kernel before main_kernel, and
17538 fini_array_kernel after.
17539 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17540 amdgpu_hsa_kernel attribute on functions.
17541 (gcn_disable_constructors): Delete.
17542 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17543 * config/gcn/crt0.c (size_t): Define.
17544 (_init_array, _fini_array): New.
17545 (__preinit_array_start, __preinit_array_end,
17546 __init_array_start, __init_array_end,
17547 __fini_array_start, __fini_array_end): Declare weak references.
17549 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17551 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17553 2019-05-22 Jason Merrill <jason@redhat.com>
17555 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17557 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17560 * config/i386/i386-options.c (ix86_init_machine_status): Set
17561 stack_frame_required to true.
17562 * config/i386/i386.c (ix86_get_frame_size): New function.
17563 (ix86_frame_pointer_required): Replace get_frame_size with
17564 ix86_get_frame_size.
17565 (ix86_compute_frame_layout): Likewise.
17566 (ix86_find_max_used_stack_alignment): Changed to void. Set
17567 stack_frame_required.
17568 (ix86_finalize_stack_frame_flags): Always call
17569 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17570 ix86_get_frame_size.
17571 * config/i386/i386.h (machine_function): Add stack_frame_required.
17573 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17575 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17577 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17579 * common/config/aarch64/aarch64-common.c
17580 (struct aarch64_option_extension, struct processor_name_to_arch,
17581 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17582 aarch64_contains_opt,
17583 aarch64_get_extension_string_for_isa_flags): Change type of
17584 variables storing flags to uint64_t.
17585 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17586 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17587 * config/aarch64/aarch64.c (struct processor,
17588 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17589 aarch64_validate_march, aarch64_override_options,
17590 aarch64_option_print, aarch64_handle_attr_isa_flags,
17591 aarch64_declare_function_name, aarch64_start_file): Make flag
17592 variables uint64_t.
17593 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17594 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17595 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17596 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17597 * config/aarch64/driver-aarch64.c
17598 (struct aarch64_arch_extension, struct aarch64_core_data,
17599 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17600 flag variables uint64_t.
17601 * doc/invoke.texi: Add documentation for new arguments.
17603 2019-05-22 Richard Biener <rguenther@suse.de>
17605 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17607 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17609 2019-05-22 Martin Liska <mliska@suse.cz>
17612 * doc/extend.texi: Document the change.
17614 2019-05-22 Richard Biener <rguenther@suse.de>
17616 PR tree-optimization/90450
17617 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17618 (mem_ref_hasher::equal): Check it.
17619 (mem_ref_alloc): Initialize it.
17620 (gather_mem_refs_stmt): Set it.
17622 2019-05-22 Richard Biener <rguenther@suse.de>
17624 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17626 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17629 2019-05-22 Alan Modra <amodra@gmail.com>
17631 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17632 (ASM_CPU_SPEC): Conditionally add -many.
17633 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17634 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17635 (rs6000_file_start): ..extracted from here, and modified to
17637 (rs6000_output_function_prologue): Emit .machine as necessary.
17639 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17641 PR middle-end/90553
17642 * ira-lives.c (process_bb_node_lives): Consider defs
17643 for a call insn to be die before the call, not after.
17645 * function.c (assign_parm_setup_block): Raise alignment of
17646 stacked parameter only for STRICT_ALIGNMENT targets.
17648 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17650 * config/rs6000/constraints.md (define_register_constraint "wz"):
17652 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17653 RS6000_CONSTRAINT_wz.
17654 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17655 (rs6000_init_hard_regno_mode_ok): Adjust.
17656 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17657 * doc/md.texi (Machine Constraints): Adjust.
17659 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17661 * config/rs6000/constraints.md (define_register_constraint "wl"):
17663 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17664 RS6000_CONSTRAINT_wl.
17665 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17666 (rs6000_init_hard_regno_mode_ok): Adjust.
17667 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17668 * doc/md.texi (Machine Constraints): Adjust.
17670 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17672 * config/rs6000/constraints.md (define_register_constraint "wm"):
17674 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17675 RS6000_CONSTRAINT_wm.
17676 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17677 (rs6000_init_hard_regno_mode_ok): Adjust.
17678 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17679 * doc/md.texi (Machine Constraints): Adjust.
17681 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17683 * config/rs6000/constraints.md (define_register_constraint "wk"):
17685 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17686 RS6000_CONSTRAINT_wk.
17687 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17688 (rs6000_init_hard_regno_mode_ok): Adjust.
17689 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17690 * doc/md.texi (Machine Constraints): Adjust.
17692 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17694 * config/rs6000/constraints.md (define_register_constraint "wj"):
17696 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17697 RS6000_CONSTRAINT_wj.
17698 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17699 (rs6000_init_hard_regno_mode_ok): Adjust.
17700 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17702 * config/rs6000/vsx.md: Ditto.
17703 * doc/md.texi (Machine Constraints): Adjust.
17705 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17707 * config/rs6000/constraints.md (define_register_constraint "wh"):
17709 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17710 RS6000_CONSTRAINT_wh.
17711 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17712 (rs6000_init_hard_regno_mode_ok): Adjust.
17713 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17714 * doc/md.texi (Machine Constraints): Adjust.
17716 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17719 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17720 Avoid calling gen_lowpart with CONST operand.
17722 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17724 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17725 field template_last_to_copy.
17726 (ssa_create_duplicates): Set it, and use it. Attempt to
17727 preserve more debug stmts.
17729 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17731 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17732 (signbit<mode>2): New expander
17734 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17737 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17738 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17740 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17742 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17743 %ebx and %ecx bafore calling cpuid with leaf 1 or
17744 non-constant leaf argument.
17746 2019-05-21 Alan Modra <amodra@gmail.com>
17749 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17750 power9 direct move cost.
17752 2019-05-21 Richard Biener <rguenther@suse.de>
17754 PR middle-end/90510
17755 * fold-const.c (fold_read_from_vector): New function.
17756 * fold-const.h (fold_read_from_vector): Declare.
17757 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17758 single-element insert permutations. Canonicalize selector
17759 further and fix issue with last commit.
17761 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17763 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17764 parameter with default value false to declaration.
17765 (split_edges_for_insertion): New inline function. Wrapper for
17766 split_critical_edges with for_edge_insertion_p = true.
17767 * tree-cfg.c (split_critical_edges): Don't split non-critical
17768 edges if for_edge_insertion_p is false. Fix whitespace.
17769 * tree-ssa-pre.c (pass_pre::execute): Call
17770 split_edges_for_insertion instead of split_critical_edges.
17771 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17772 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17773 (pass_data_sink_code): Update function name in the comment.
17775 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17777 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17778 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17779 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17780 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17783 2019-05-21 Martin Liska <mliska@suse.cz>
17785 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17787 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17788 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17790 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17792 (rs6000_function_arg): Likewise.
17793 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17794 (rs6000_expand_ternop_builtin): Use interval syntax.
17795 (get_element_number): Likewise.
17796 (altivec_expand_builtin): Likewise.
17797 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17799 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17803 * function.h (struct function): Add calls_eh_return member.
17804 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17805 gimplifying __builtin_eh_return call.
17806 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17808 (expand_call_inline): Or in src_cfun->calls_eh_return into
17809 dst_cfun->calls_eh_return.
17810 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17811 cfun->calls_eh_return.
17812 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17813 * lto-streamer-out.c (output_struct_function_base): Write
17816 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17818 PR rtl-optimization/43147
17819 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17820 IX86_BUILTIN_SHUFPD.
17822 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17824 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17825 (refs_may_alias_p_1): ... here; update stats.
17826 (refs_may_alias_p): Do not update stats here.
17828 2019-05-20 Richard Biener <rguenther@suse.de>
17830 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17831 doesn't produce pointers.
17832 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17833 the first operand points to.
17835 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17837 * tree-ssa-alias.c (compare_sizes): New function.
17838 (sompare_type_sizes): New function
17839 (aliasing_component_refs_p): Use it.
17840 (indirect_ref_may_alias_decl_p): Likewise.
17842 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17844 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17846 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17848 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17849 (LIBLSAN_EARLY_SPEC): Likewise.
17850 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17852 2019-05-20 Martin Liska <mliska@suse.cz>
17854 * config/i386/i386.c (ix86_libc_has_fast_function):
17855 Add ATTRIBUTE_UNUSED for the argument.
17857 2019-05-20 Richard Biener <rguenther@suse.de>
17859 * gimple-match-head.c: Include vec-perm-indices.h.
17860 * generic-match-head.c: Likewise.
17861 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17863 * fold-const.c (fold_vec_perm): Export.
17864 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17865 (match.pd): ...here.
17867 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17869 * cfgloop.h (struct loop): Add simdlen member.
17870 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17871 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17872 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17873 as new argument to autovectorize_vector_sizes target hook. If
17874 loop->simdlen, pick up vector size where the vectorization factor
17875 is equal to loop->simd, and if there is none, fall back to the first
17877 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17879 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17880 * omp-general.c (omp_max_vf): Likewise.
17881 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17882 * tree-vect-slp.c (vect_slp_bb): Likewise.
17883 * target.def (autovectorize_vector_sizes): Add ALL argument and
17885 * doc/tm.texi: Adjust documentation.
17886 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17887 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17888 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17890 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17891 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17892 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17893 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17894 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17895 preferred vector size is not 512-bit or 256-bit, just put those
17896 unpreferred ones last.
17898 2019-05-20 Martin Liska <mliska@suse.cz>
17900 * targhooks.c (default_libc_has_fast_function): New function.
17901 * targhooks.h (default_libc_has_fast_function): Likewise.
17903 2019-05-20 Martin Liska <mliska@suse.cz>
17905 PR middle-end/90263
17906 * builtins.c (expand_builtin_memory_copy_args): When having a
17907 target with fast mempcpy implementation do now use memcpy.
17908 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17909 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17910 * doc/tm.texi: Likewise.
17911 * doc/tm.texi.in: Likewise.
17913 * expr.c (emit_block_move_hints): Add 2 new arguments.
17914 * expr.h (emit_block_move_hints): Bail out when libcall
17915 to memcpy would be used.
17917 2019-05-20 Martin Liska <mliska@suse.cz>
17919 * profile-count.c: Add vertical spacing in order
17920 to separate functions.
17921 * profile-count.h: Likewise.
17923 2019-05-20 Martin Liska <mliska@suse.cz>
17925 * profile-count.h: Do not use full qualified
17927 * profile-count.c (profile_count::to_frequency): Likewise.
17929 2019-05-20 Martin Liska <mliska@suse.cz>
17931 * profile-count.h (enum profile_quality): Use capital letters
17932 for enum value names. Use the adjusted names.
17933 * profile-count.c: Use the adjusted names.
17935 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17937 * config/rs6000/constraints.md (define_register_constraint "wH"):
17939 (define_register_constraint "wI"): Delete.
17940 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17941 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17942 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17943 (rs6000_init_hard_regno_mode_ok): Adjust.
17944 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17945 resp. "d", or with "wa" as appropriate, all with "p8v".
17946 * config/rs6000/vsx.md: Ditto.
17947 * doc/md.texi (Machine Constraints): Adjust.
17949 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17951 * config/rs6000/constraints.md (define_register_constraint "wy"):
17953 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17954 RS6000_CONSTRAINT_wy.
17955 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17956 (rs6000_init_hard_regno_mode_ok): Adjust.
17957 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17958 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17959 (define_mode_attr Fisa): New.
17960 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17961 * doc/md.texi (Machine Constraints): Adjust.
17963 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17965 * config/rs6000/constraints.md (define_register_constraint "wu"):
17967 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17968 RS6000_CONSTRAINT_wu.
17969 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17970 (rs6000_init_hard_regno_mode_ok): Adjust.
17971 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17973 (define_mode_attr Fa): Delete.
17974 * config/rs6000/vsx.md: Ditto.
17975 * doc/md.texi (Machine Constraints): Adjust.
17977 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17979 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17981 (define_register_constraint "wK"): Delete.
17982 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17983 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17984 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17985 (rs6000_init_hard_regno_mode_ok): Adjust.
17986 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17987 Replace "wK" constraint by "wH" with "p9v".
17988 * config/rs6000/vsx.md: Ditto.
17989 * doc/md.texi (Machine Constraints): Adjust.
17991 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17993 * config/rs6000/constraints.md (define_register_constraint "wb"):
17995 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17996 RS6000_CONSTRAINT_wb.
17997 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17998 (rs6000_init_hard_regno_mode_ok): Adjust.
17999 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18000 * config/rs6000/vsx.md: Ditto.
18001 * doc/md.texi (Machine Constraints): Adjust.
18003 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18005 * config/rs6000/constraints.md (define_register_constraint "wo"):
18007 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18008 RS6000_CONSTRAINT_wo.
18009 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18010 (rs6000_init_hard_regno_mode_ok): Adjust.
18011 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18012 * config/rs6000/altivec.md: Ditto.
18013 * doc/md.texi (Machine Constraints): Adjust.
18015 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18017 * config/darwin-c.c (darwin_register_objc_includes): Do not
18018 prepend the sysroot when building gnu-runtime header search
18021 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18023 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18024 instead of direct output of the asm.
18026 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18028 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18029 argument to be type bool (was int before).
18030 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18031 at first use. Use type bool for some variables. Fix a theoretical
18032 eh_return bug for svr4.
18034 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18036 * config/rs6000/rs6000.md (isa): New attribute.
18037 (enabled): New attribute.
18039 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18041 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18042 assemble_start_function and assemble_end_function.
18044 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18046 PR middle-end/89433
18047 * omp-general.c (oacc_verify_routine_clauses): Change formal
18048 parameters. Add checking if already marked with an OpenACC
18049 'routine' directive. Adjust all users.
18051 PR middle-end/89433
18052 * omp-general.c (oacc_build_routine_dims): Move some of its
18054 (oacc_verify_routine_clauses): ... this new function.
18055 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18057 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18059 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18060 formating of picbase labels to match other ports.
18062 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18064 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18065 in the generated code.
18067 2019-05-16 Martin Sebor <msebor@redhat.com>
18069 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18070 identifiers, keywords, operators, and types in diagnostics. Correct
18071 quoting, spelling, and sentence capitalization issues.
18072 (expand_builtin_atomic_is_lock_free): Same.
18073 (fold_builtin_next_arg): Same.
18074 * cfgexpand.c (expand_one_var): Same.
18075 (tree_conflicts_with_clobbers_p): Same.
18076 (expand_asm_stmt): Same.
18077 (verify_loop_structure): Same.
18078 * cgraphunit.c (process_function_and_variable_attributes): Same.
18079 * collect-utils.c (collect_execute): Same.
18080 * collect2.c (maybe_run_lto_and_relink): Same.
18081 (is_lto_object_file): Same.
18082 (scan_prog_file): Same.
18083 * convert.c (convert_to_real_1): Same.
18084 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18085 * except.c (verify_eh_tree): Same.
18086 * gcc.c (execute): Same.
18087 (eval_spec_function): Same.
18088 (run_attempt): Same.
18089 (driver::set_up_specs): Same.
18090 (compare_debug_auxbase_opt_spec_function): Same.
18091 * gcov-tool.c (unlink_gcda_file): Same.
18093 (do_rewrite): Same.
18094 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18095 * gimplify.c (gimplify_asm_expr): Same.
18096 (gimplify_adjust_omp_clauses): Same.
18097 * hsa-gen.c (gen_hsa_addr_insns): Same.
18098 (gen_hsa_insns_for_load): Same.
18099 (gen_hsa_cmp_insn_from_gimple): Same.
18100 (gen_hsa_insns_for_operation_assignment): Same.
18101 (gen_get_level): Same.
18102 (gen_hsa_alloca): Same.
18103 (omp_simple_builtin::generate): Same.
18104 (gen_hsa_atomic_for_builtin): Same.
18105 (gen_hsa_insns_for_call): Same.
18106 * input.c (dump_location_info): Same.
18107 * ipa-devirt.c (compare_virtual_tables): Same.
18108 * ira.c (ira_setup_eliminable_regset): Same.
18109 * lra-assigns.c (lra_assign): Same.
18110 * lra-constraints.c (lra_constraints): Same.
18111 * lto-streamer-in.c (lto_input_mode_table): Same.
18112 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18113 (merge_and_complain): Same.
18114 (compile_offload_image): Same.
18115 (compile_images_for_offload_targets): Same.
18116 (debug_objcopy): Same.
18119 * opts.c (print_specific_help): Same.
18120 (parse_no_sanitize_attribute): Same.
18121 (print_help): Same.
18122 (handle_param): Same.
18123 * plugin.c (add_new_plugin): Same.
18124 (parse_plugin_arg_opt): Same.
18125 (try_init_one_plugin): Same.
18126 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18127 operators, and types in diagnostics. Correct quoting and spelling
18129 * read-rtl-function.c (parse_edge_flag_token): Same.
18130 (function_reader::parse_enum_value): Same.
18131 * reg-stack.c (check_asm_stack_operands): Same.
18132 * regcprop.c (validate_value_data): Same.
18133 * sched-rgn.c (make_pass_sched_fusion): Same.
18134 * stmt.c (check_unique_operand_names): Same.
18135 * targhooks.c (default_target_option_pragma_parse): Same.
18136 * tlink.c (recompile_files): Same.
18137 * toplev.c (process_options): Same.
18138 (do_compile): Same.
18139 * trans-mem.c (diagnose_tm_1): Same.
18140 (ipa_tm_scan_irr_block): Same.
18141 (ipa_tm_diagnose_transaction): Same.
18142 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18143 format a tree code name in a diagnostic.
18144 (verify_types_in_gimple_min_lval): Same.
18145 (verify_types_in_gimple_reference): Same.
18146 (verify_gimple_call): Same.
18147 (verify_gimple_assign_unary): Same.
18148 (verify_gimple_assign_binary): Same.
18149 (verify_gimple_assign_ternary): Same.
18150 (verify_gimple_assign_single): Same.
18151 (verify_gimple_switch): Same.
18152 (verify_gimple_label): Same.
18153 (verify_gimple_phi): Same.
18154 (verify_gimple_in_seq): Same.
18155 (verify_eh_throw_stmt_node): Same.
18156 (collect_subblocks): Same.
18157 (gimple_verify_flow_info): Same.
18158 (do_warn_unused_result): Same.
18159 * tree-inline.c (expand_call_inline): Same.
18160 * tree-into-ssa.c (update_ssa): Same.
18161 * tree.c (tree_int_cst_elt_check_failed): Same.
18162 (tree_vec_elt_check_failed): Same.
18163 (omp_clause_operand_check_failed): Same.
18164 (verify_type_variant): Same.
18165 (verify_type): Same.
18166 * value-prof.c (verify_histograms): Same.
18167 * varasm.c (assemble_start_function): Same.
18169 2019-05-16 Martin Sebor <msebor@redhat.com>
18171 * config/i386/i386-expand.c (get_element_number): Quote keywords
18172 and other internal names in diagnostics. Adjust other diagnostic
18173 formatting issues noted by -Wformat-diag.
18174 * config/i386/i386-features.c
18175 (ix86_mangle_function_version_assembler_name): Same.
18176 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18177 * config/i386/i386.c (ix86_function_type_abi): Same.
18178 (ix86_function_ms_hook_prologue): Same.
18179 (classify_argument): Same.
18180 (ix86_expand_prologue): Same.
18181 (ix86_md_asm_adjust): Same.
18182 (ix86_memmodel_check): Same.
18184 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18186 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18187 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18190 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18193 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18194 intrinsics without SSE/SSE2/SSSE3.
18195 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18197 (*mmx_uavgv8qi3): Likewise.
18199 2019-05-17 Richard Biener <rguenther@suse.de>
18201 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18202 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18204 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18206 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18207 vec_sldw insn pattern.
18209 2019-05-17 Richard Biener <rguenther@suse.de>
18211 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18213 2019-05-17 Martin Liska <mliska@suse.cz>
18216 * toplev.c (output_stack_usage): With LTO and sanitizer it
18217 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18218 has no file location.
18220 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18223 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18224 sz0 is equal to sz1, instead return false in that case.
18226 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18227 has non-constant expression, force sctx.lane and use two
18228 argument IFN_GOMP_SIMD_LANE instead of single argument.
18229 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18230 two argument IFN_GOMP_SIMD_LANE without lhs.
18231 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18233 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18235 (LOOP_REQUIRES_VERSIONING): Or in
18236 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18237 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18239 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18240 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18241 from simd if clause if needed.
18243 2019-05-16 Richard Biener <rguenther@suse.de>
18245 * tree-affine.c (expr_to_aff_combination): New function split
18247 (tree_to_aff_combination): ... here.
18248 (aff_combination_expand): Avoid building a GENERIC tree.
18250 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18252 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18253 assemble_start_function and assemble_end_function calls.
18254 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18255 assemble_start_function and assemble_end_function.
18256 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18257 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18258 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18259 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18260 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18261 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18262 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18263 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18264 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18265 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18266 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18267 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18269 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18270 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18271 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18272 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18273 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18274 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18275 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18276 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18277 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18278 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18279 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18280 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18281 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18282 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18284 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18285 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18286 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18288 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18290 * tree-ssa-alias.c (alias_stats): Add
18291 aliasing_component_refs_p_may_alias and
18292 aliasing_component_refs_p_no_alias.
18293 (dump_alias_stats): Print aliasing_component_refs_p stats.
18294 (aliasing_component_refs_p): Update stats.
18296 2019-05-16 Martin Liska <mliska@suse.cz>
18299 * multiple_target.c (expand_target_clones): Do not allow
18300 target_clones being used with a symbol that is an alias.
18302 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18304 PR tree-optimization/90394
18305 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18306 positives rather than ICE for cases where (code2 == NE_EXPR
18307 && code1 == BIT_AND_EXPR).
18309 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18312 * tree-core.h (struct tree_decl_common): Document
18313 decl_nonshareable_flag for PARM_DECLs.
18314 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18315 * calls.c (expand_call): Don't try tail call if caller
18316 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18317 passed on the stack and callee needs to pass any arguments on the
18319 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18320 else if instead of series of mutually exclusive ifs. Handle
18321 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18322 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18324 * lto-streamer.h (LTO_major_version): Bump to 9.
18326 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18328 PR tree-optimization/90106
18329 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18330 new parameter as new internal function call, also move it to new
18332 (use_internal_fn): Pass internal function call to
18333 shrink_wrap_one_built_in_call_with_conds.
18335 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18337 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18339 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18340 safelen_int and set loop->dont_vectorize.
18342 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18345 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18347 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18349 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18350 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18351 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18354 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18357 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18358 define_insn_and_split to support SSE emulation.
18359 (*vec_extractv2sf_0): Likewise.
18360 (*vec_extractv2sf_1): Likewise.
18361 (*vec_extractv2si_0): Likewise.
18362 (*vec_extractv2si_1): Likewise.
18363 (*vec_extractv2si_zext_mem): Likewise.
18364 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18365 (vec_extractv2sf_1 splitter): Likewise.
18366 (vec_extractv2sfsf): Likewise.
18367 (vec_setv2si): Likewise.
18368 (vec_extractv2si_1 splitter): Likewise.
18369 (vec_extractv2sisi): Likewise.
18370 (vec_setv4hi): Likewise.
18371 (vec_extractv4hihi): Likewise.
18372 (vec_setv8qi): Likewise.
18373 (vec_extractv8qiqi): Likewise.
18374 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18375 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18376 (vec_extractv2sisi): Likewise.
18377 (vec_extractv4hihi): Likewise.
18378 (vec_extractv8qiqi): Likewise.
18379 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18380 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18381 (vec_initv2sisi): Likewise.
18382 (vec_initv4hihi): Likewise.
18383 (vec_initv8qiqi): Likewise.
18384 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18385 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18386 (vec_setv4hi): Likewise.
18387 (vec_setv8qi): Likewise.
18389 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18392 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18393 TARGET_MMX_WITH_SSE.
18394 (MMXMODE:*mov<mode>_internal): Likewise.
18395 (MMXMODE:movmisalign<mode>): Likewise.
18397 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18400 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18401 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18402 (sse2_cvtpd2pi): Ditto.
18403 (sse2_cvttpd2pi): Ditto.
18404 (*vec_concatv2sf_sse4_1): Ditto.
18405 (*vec_concatv2sf_sse): Ditto.
18406 (*vec_concatv2si_sse4_1): Ditto.
18407 (*vec_concatv2si): Ditto.
18408 (*vec_concatv4si_0): Ditto.
18409 (*vec_concatv2di_0): Ditto.
18411 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18414 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18416 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18419 * config/i386/sse.md (ssse3_palignrdi): Changed to
18420 define_insn_and_split to support SSE emulation.
18422 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18425 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18427 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18430 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18431 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18434 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18437 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18438 or TARGET_MMX_WITH_SSE.
18439 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18441 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18444 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18446 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18449 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18450 Changed to define_insn_and_split to support SSE emulation.
18452 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18455 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18456 Changed to define_insn_and_split to support SSE emulation.
18458 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18461 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18462 (*mmx_<emms>): This.
18463 (mmx_<emms>): New expander.
18465 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18468 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18470 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18472 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18475 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18477 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18480 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18482 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18485 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18486 TARGET_MMX_WITH_SSE.
18487 (*mmx_uavgv4hi3): Add SSE emulation.
18489 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18492 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18493 and TARGET_MMX_WITH_SSE.
18494 (*mmx_uavgv8qi3): Add SSE emulation.
18496 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18499 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18500 maskmovdqu for __MMX_WITH_SSE__.
18502 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18505 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18506 TARGET_MMX and TARGET_MMX_WITH_SSE.
18507 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18509 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18512 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18513 define_insn_and_split to support SSE emulation.
18515 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18518 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18519 and TARGET_MMX_WITH_SSE.
18520 (mmx_<code>v8qi3): Likewise.
18521 (smaxmin:<code>v4hi3): New.
18522 (umaxmin:<code>v8qi3): Likewise.
18523 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18524 (umaxmin:*mmx_<code>v8qi3): Likewise.
18526 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18529 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18530 TARGET_MMX_WITH_SSE.
18531 (*mmx_pinsrw): Add SSE emulation.
18533 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18536 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18538 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18541 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18542 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18545 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18548 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18549 (sse_cvttps2pi): Likewise.
18551 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18554 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18555 TARGET_MMX_WITH_SSE.
18556 (mmx_pshufw_1): Add SSE emulation.
18557 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18558 TARGET_MMX_WITH_SSE to support SSE emulation.
18560 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18563 * config/i386/constraints.md (Yw): New constraint.
18564 * config/i386/mmx.md (*vec_dupv2si): Changed to
18565 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18566 support SSE emulation.
18568 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18571 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18572 TARGET_MMX_WITH_SSE.
18573 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18575 (mmx_gt<mode>3): Likewise.
18577 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18580 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18581 TARGET_MMX_WITH_SSE. Add SSE support.
18583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18586 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18587 TARGET_MMX_WITH_SSE.
18588 (any_logic:<code><mode>3): New.
18589 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18592 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18595 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18596 TARGET_MMX_WITH_SSE. Add SSE emulation.
18597 (mmx_<shift_insn><mode>3): Likewise.
18598 (ashr<mode>3): New.
18599 (<shift_insn><mode>3): Likewise.
18601 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18604 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18605 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18607 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18610 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18611 TARGET_MMX_WITH_SSE.
18612 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18615 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18618 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18619 TARGET_MMX_WITH_SSE.
18621 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18624 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18627 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18628 (plusminus:mmx_<plusminus_insn><mode>3): Check
18629 TARGET_MMX_WITH_SSE.
18630 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18631 (<plusminus_insn><mode>3): New.
18632 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18633 (*mmx_<plusminus_insn><mode>3): Likewise.
18635 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18638 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18639 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18641 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18642 define_insn_and_split to support SSE emulation.
18643 (mmx_punpcklbw): Likewise.
18644 (mmx_punpckhwd): Likewise.
18645 (mmx_punpcklwd): Likewise.
18646 (mmx_punpckhdq): Likewise.
18647 (mmx_punpckldq): Likewise.
18649 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18650 Uros Bizjak <ubizjak@gmail.com>
18653 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18655 (ix86_split_mmx_pack): Likewise.
18656 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18658 (ix86_split_mmx_pack): Likewise.
18659 * config/i386/i386.md (mmx_isa): New.
18660 (enabled): Also check mmx_isa.
18661 * config/i386/mmx.md (any_s_truncate): New code iterator.
18662 (s_trunsuffix): New code attr.
18663 (mmx_packsswb): Removed.
18664 (mmx_packssdw): Likewise.
18665 (mmx_packuswb): Likewise.
18666 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18667 MMX packsswb/packuswb with SSE2.
18668 (mmx_packssdw): Likewise.
18669 * config/i386/predicates.md (register_mmxmem_operand): New.
18671 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18674 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18675 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18676 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18677 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18678 (ix86_vector_mode_supported_p): Likewise.
18679 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18681 2019-05-15 Martin Liska <mliska@suse.cz>
18683 PR middle-end/90478
18684 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18685 Check for overflow.
18687 2019-05-15 Richard Biener <rguenther@suse.de>
18689 * tree-into-ssa.c (pass_build_ssa::execute): Run
18690 update_address_taken before going into SSA.
18692 2019-05-15 Richard Biener <rguenther@suse.de>
18694 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18695 as __BIT_FIELD_REF with type with -gimple.
18697 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18699 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18700 semantically equivalent branches (left over after prior refactorings).
18702 2019-05-15 Richard Biener <rguenther@suse.de>
18704 PR tree-optimization/88828
18705 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18708 2019-05-14 Richard Biener <rguenther@suse.de>
18710 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18711 as __VIEW_CONVERT with -gimple.
18713 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18716 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18719 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18721 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18722 define_split to become a define_insn_and_split.
18724 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18726 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18728 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18729 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18730 (sibcall_epilogue): Adjust.
18731 (epilogue): Adjust.
18733 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18735 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18736 to unsupported ones.
18737 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18738 * config.host: Likewise.
18739 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18740 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18741 __svr4__]: Remove "brand" fallback.
18742 [!KSTAT_DATA_STRING]: Remove.
18743 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18745 (comdat_group): Likewise.
18746 (set_have_as_tls): Likewise.
18747 (gcc_cv_target_dl_iterate_phdr): Likewise.
18748 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18749 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18750 * configure: Regenerate.
18751 * doc/install.texi: Simplify Solaris target triplets.
18752 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18753 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18754 Remove Solaris 10 references.
18755 Remove obsolete Solaris bug reference.
18756 (Specific, sparc-sun-solaris2.10): Remove.
18758 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18760 * config/i386/i386.md (any_div): New code iterator.
18761 (paired_mod): New code attribute.
18762 (sgnprefix): Handle DIV and UDIV RTXes.
18764 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18765 and udivmod<mode>4 patterns using any_div code iterator.
18766 (divmod splitters): Macroize splitters using any_div code iterator.
18767 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18768 (*udivmodsi4_pow2_zext_2): Ditto.
18769 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18770 and *udivmod<mode>4_noext patterns using any_div code iterator.
18771 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18772 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18773 patterns using any_div code iterator.
18774 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18775 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18776 patterns using any_div code iterator.
18777 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18778 udivmodhiqi3 patterns using any_extend code iterator.
18780 2019-05-14 Richard Biener <rguenther@suse.de>
18781 H.J. Lu <hongjiu.lu@intel.com>
18783 PR tree-optimization/88828
18784 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18785 permuting in a single non-constant element not extracted
18788 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18790 * internal-fn.def (SIGNBIT): New.
18791 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18793 (signbitv4sf2): Likewise.
18795 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18798 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18799 next insn when the SRC reg is dead.
18801 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18803 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18804 (alloc_cand_and_find_basis): Ditto.
18805 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18806 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18807 (create_add_imm_cand, slsr_process_cast): Ditto.
18808 (slsr_process_copy, replace_mult_candidate): Ditto.
18809 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18810 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18811 (pass_strength_reduction::execute): Init the first NULL element.
18813 2019-05-13 Nathan Sidwell <nathan@acm.org>
18815 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18816 (run_attempt): Reformat line break.
18818 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18821 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18822 data registers in sibcall epilogues.
18823 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18825 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18828 * configure.ac (--enable-frame-pointer):
18829 Disable by default for cygwin and mingw.
18830 * configure: Regenerate.
18832 2019-05-13 Nathan Sidwell <nathan@acm.org>
18834 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18836 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18837 (gen_member_die): Move abstract origin check earlier. Only VARs
18838 can be static_inline_p. Simplify splicing control flow.
18840 2019-05-13 Richard Biener <rguenther@suse.de>
18842 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18844 (vect_build_slp_tree_1): Likewise.
18846 2019-05-13 Richard Biener <rguenther@suse.de>
18848 PR tree-optimization/90402
18849 * tree-if-conv.c (tree_if_conversion): Value number only
18850 the loop body by making the latch an exit of the region
18852 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18854 (do_rpo_vn): Deal with multiple edges into the entry block
18855 that are not backedges inside the region by skipping PHIs
18856 of the entry block.
18858 2019-05-13 Richard Biener <rguenther@suse.de>
18860 PR tree-optimization/90316
18861 * tree-ssa-pre.c (insert_aux): Fold into ...
18862 (insert): ... this function. Use a RPO walk to reduce the
18863 number of required iterations.
18865 2019-05-13 Martin Liska <mliska@suse.cz>
18867 PR tree-optimization/90416
18868 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18869 string instead of passing the second part as va_arg argument.
18871 2019-05-13 Martin Liska <mliska@suse.cz>
18873 PR gcov-profile/90380
18874 * gcov.c (handle_cycle): Do not support zero cycle count,
18875 it should not be possible.
18876 (path_contains_zero_cycle_arc): New function.
18877 (circuit): Ignore zero cycle arc counts.
18879 2019-05-13 Martin Liska <mliska@suse.cz>
18881 PR gcov-profile/90380
18882 * gcov.c (enum loop_type): Remove the enum and
18884 (handle_cycle): Assert that we should not reach
18886 (circuit): Use loop_found instead of a tri-state loop_type.
18887 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18890 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18893 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18894 (ix86_output_indirect_branch_via_reg): Use output mechanism
18895 accounting for __USER_LABEL_PREFIX__.
18896 (ix86_output_indirect_branch_via_push): Likewise.
18897 (ix86_output_function_return): Likewise.
18898 (ix86_output_indirect_function_return): Likewise.
18900 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18902 * doc/md.texi: Document use of code attributes in rtx patterns.
18903 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18904 * read-rtl.c (find_code): Split out search loops into...
18905 (maybe_find_code): ...this new function.
18906 (check_code_iterator): Make the error message more informative.
18907 (check_code_attribute): New function.
18908 (rtx_reader::rtx_alloc_for_name): Likewise.
18909 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18910 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18911 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18912 <max_opp> directly as an rtx code instead of via a match_operator.
18913 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18914 (<su>abd<mode>_3): Update accordingly.
18916 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18918 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18919 is given, print the state of the EH "save world" computation for
18922 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18925 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18926 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18928 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18930 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18931 Use pinsrd for TARGET_SSE4_1.
18932 * config/i386/sse.md (movdi_to_sse): Ditto.
18934 2019-05-10 Richard Biener <rguenther@suse.de>
18936 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18937 (do_rpo_vn): Initialize next_value_id.
18939 2019-05-10 Martin Liska <mliska@suse.cz>
18941 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18944 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18946 PR tree-optimization/90385
18947 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18948 arguments of the exit phis.
18951 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18952 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18954 (copy_tree_body_r): Likewise.
18955 (copy_fn): Set id.do_not_fold to true.
18957 2019-05-10 Martin Liska <mliska@suse.cz>
18959 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18960 Reapply changes from r269790.
18962 2019-05-10 Martin Liska <mliska@suse.cz>
18964 PR middle-end/90340
18965 * doc/invoke.texi: New params.
18966 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18967 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18968 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18970 * tree-switch-conversion.h (struct jump_table_cluster):
18973 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18975 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18977 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18979 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18981 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18983 PR rtl-optimization/88879
18984 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18986 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18989 * config/arm/arm.c (callee_saved_reg_p): Move before
18990 thumb_find_work_register.
18991 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18992 thumb_find_work_register. Only call df_get_live_out once.
18993 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18994 (thumb_find_work_register): Use
18995 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18996 algorithms to locate a spare call clobbered reg.
18998 2019-05-09 Martin Liska <mliska@suse.cz>
19000 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19001 and MAX_EXPR in GIMPLE FE format.
19003 2019-05-09 Martin Liska <mliska@suse.cz>
19005 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19006 * gimple-pretty-print.c (dump_gimple_bb_header):
19008 (pp_cfg_jump): Dump edge probability.
19009 * profile-count.c (profile_quality_as_string): Simplify
19010 with a static array.
19011 (parse_profile_quality): New function.
19012 (profile_count::dump): Simplify with a static array.
19013 (profile_count::from_gcov_type): Add new argument.
19014 * profile-count.h (parse_profile_quality): Likewise.
19015 * predict.h (set_hot_bb_threshold): New.
19016 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19018 * predict.c (get_hot_bb_threshold): Set from the new param.
19019 (set_hot_bb_threshold): New.
19021 2019-05-09 Richard Biener <rguenther@suse.de>
19023 PR tree-optimization/90395
19024 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19025 rewrite vector stores that throw internally.
19027 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19029 * cif-code.def (CHKP): Remove.
19032 * configure.ac (--enable-frame-pointer): Disable by default for
19034 * configure: Regenerate.
19036 2019-05-09 Alan Modra <amodra@gmail.com>
19039 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19040 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19041 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19042 cost for general <-> vsx when direct moves are available.
19043 Cost union classes at minimal cost for any reg in the class.
19044 Correct calculation for moves between vsx, float, and altivec.
19045 Don't return a low cost for moves between special regs. Don't
19046 use hard coded register numbers.
19047 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19048 (rs6000_ira_change_pseudo_allocno_class): New function.
19049 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19050 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19052 (movsi_internal1): Don't disparage vector alternatives.
19053 (mov<mode>_internal): Likewise, excepting alternative that
19055 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19056 we <- b alternative.
19058 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19061 PR tree-optimization/89060
19062 * tree-ssa-live.h (live_vars_map): New typedef.
19063 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19064 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19065 (struct compute_live_vars_data): New type.
19066 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19067 live_vars_at_stmt, destroy_live_vars): New functions.
19068 * tree-tailcall.c: Include tree-ssa-live.h.
19069 (live_vars, live_vars_vec): New global variables.
19070 (find_tail_calls): Perform variable life analysis before punting.
19071 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19072 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19074 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19075 Perform variable life analysis to select variables that really need
19077 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19078 instead set id->eh_landing_pad_dest and assert it is the same.
19079 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19081 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19082 Richard Earnshaw <rearnsha@arm.com>
19085 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19087 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19088 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19089 register if both the epilogue and prologue can use call-clobbered
19091 (thumb1_unexpanded_epilogue): Use
19092 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19093 picking temporaries for restoring high regs to match that of the
19094 prologue where possible.
19095 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19096 the list of work registers. Detect if the return address is still live
19097 at the end of the prologue and avoid using it for a work register if so.
19098 If the return address is not live, add LR to the list of pushable regs
19099 after the first pass.
19101 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19103 PR tree-optimization/90078
19104 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19105 (INFTY): Increase the value for infinite cost.
19106 (struct comp_cost): Promote type of members to int64_t.
19107 (infinite_cost): Don't set complexity in initialization.
19108 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19109 overflows to infinite_cost.
19110 (adjust_setup_cost): Promote type of parameter and cost computation
19112 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19114 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19115 cost computation to int64_t.
19116 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19117 int64_t's format specifier in dump.
19119 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19121 PR tree-optimization/90240
19122 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19123 with respect to scaling factor pre-computed for each basic block.
19124 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19125 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19126 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19127 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19128 live range for array of loop's basic blocks. Cleanup aux field of
19129 loop's basic blocks.
19131 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19133 PR tree-optimization/90356
19134 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19136 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19138 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19139 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19140 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19141 (ix86_handle_option): Handle -mavx512bf16.
19142 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19144 * config/i386/avx512bf16vlintrin.h: New.
19145 * config/i386/avx512bf16intrin.h: New.
19146 * config/i386/cpuid.h (bit_AVX512BF16): New.
19147 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19148 * config/i386/i386-builtin-types.def: Add new types.
19149 * config/i386/i386-builtin.def: Add new builtins.
19150 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19152 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19153 (ix86_option_override_internal): Handle BF16.
19154 (ix86_valid_target_attribute_inner_p): Ditto.
19155 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19156 * config/i386/i386-builtin.c (enum processor_features): Add
19158 (static const _isa_names_table isa_names_table): Ditto.
19159 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19160 (PTA_AVX512BF16): Ditto.
19161 * config/i386/i386.opt: Add -mavx512bf16.
19162 * config/i386/immintrin.h: Include avx512bf16intrin.h
19163 and avx512bf16vlintrin.h.
19164 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19165 avx512f_cvtneps2bf16_<mode><mask_name>,
19166 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19167 * config/i386/subst.md (mask_half): Add new subst.
19168 * doc/invoke.texi: Document -mavx512bf16.
19170 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19172 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19173 Delete declaration.
19174 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19175 (rs6000_debug_legitimize_reload_address): Delete.
19176 (rs6000_legitimize_reload_address_ptr): Delete.
19177 (rs6000_option_override_internal): Adjust.
19178 (mem_operand_gpr): Adjust comment.
19179 (legitimate_lo_sum_address_p): Ditto.
19180 (rs6000_legitimize_reload_address): Delete.
19181 (rs6000_debug_legitimize_reload_address): Delete.
19182 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19184 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19187 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19188 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19189 to compute vector element selector for both constant and variable
19192 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19194 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19195 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19196 ashrdi3_cvt using SWI48 mode iterator.
19198 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19200 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19201 (aarch64_<su>abd<mode>_3): Likewise.
19202 (*aarch64_<su>abd<mode>_3): New define_insn.
19203 (<sur>sad<vsi2qi>): New define_expand.
19204 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19205 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19206 (build_vect_cond_expr): Likewise.
19208 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19210 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19211 clobbers outside of accessible_reg_set.
19212 * config/i386/i386.c (ix86_conditional_register_usage):
19213 Disable register sets by clearing corresponding bits in
19214 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19215 call_used_regs and don't clear corresponding reg_names array members.
19217 2019-05-07 Richard Biener <rguenther@suse.de>
19219 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19220 not specified still compute a comp_vectype for invariant
19223 2019-05-07 Richard Biener <rguenther@suse.de>
19225 PR tree-optimization/90316
19226 * tree-ssa-pre.c (translate_vuse_through_block): When
19227 same_valid is NULL do not bother to search for a virtual
19229 (phi_translate_1): When operands changed we cannot keep
19230 the same value-number so do not bother to ask whether
19231 that's possible from translate_vuse_through_block.
19233 2019-05-07 Martin Liska <mliska@suse.cz>
19235 * bitmap.c (bitmap_register): Come up with
19236 alloc_descriptor_max_uid and assign it for
19238 (register_overhead): Use get_descriptor as
19240 (release_overhead): New.
19241 (bitmap_elem_to_freelist): Call it.
19242 (bitmap_elt_clear_from): Likewise.
19243 (bitmap_obstack_free): Likewise.
19244 (bitmap_move): Sensitively release memory.
19245 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19246 (bitmap_initialize): Initialize alloc_descriptor to zero.
19247 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19249 2019-05-07 Richard Biener <rguenther@suse.de>
19251 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19252 we build a SLP node. Remove max_size and limiting.
19253 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19255 2019-05-07 Richard Biener <rguenther@suse.de>
19257 PR tree-optimization/90316
19258 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19259 limit by reference.
19260 (walk_non_aliased_vuses): Take walking limit argument.
19261 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19262 walking if it is reached instead of just counting.
19263 (get_continuation_for_phi): Likewise.
19264 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19265 limiting to the callback.
19266 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19267 (vn_reference_lookup_3): Likewise.
19268 (vn_reference_lookup_pieces): Likewise.
19269 (vn_reference_lookup): Likewise.
19270 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19271 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19272 (avail_exprs_stack::lookup_avail_expr): Likewise.
19274 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19276 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19277 for comparaible types in the second direction even if first one
19278 hits incomparable type.
19280 2019-05-07 Richard Biener <rguenther@suse.de>
19283 * lto-wrapper.c (debug_objcopy): Use the original filename
19284 including archive offset for the filename used for -save-temps.
19286 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19288 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19291 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19292 Hongtao Liu <hongtao.liu@intel.com>
19296 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19297 Modified, original implementation isn't correct.
19299 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19301 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19302 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19303 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19304 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19305 (FRAME_POINTER_REGNUM): Change numbering.
19306 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19307 (alt_reg_names): Adjust.
19308 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19310 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19311 (DWARF_FRAME_REGISTERS): Delete.
19312 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19313 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19315 (REG_ALLOC_ORDER): Adjust.
19316 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19317 (REG_CLASS_CONTENTS): Adjust.
19318 (RETURN_ADDR_RTX): Change comment.
19319 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19321 (REGISTER_NAMES): Adjust.
19322 (ADDITIONAL_REGISTER_NAMES): Adjust.
19323 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19325 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19327 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19329 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19330 (DWARF_FRAME_REGISTERS): Adjust.
19331 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19333 (REG_ALLOC_ORDER): Adjust.
19334 (enum reg_class): Delete SPR_REGS.
19335 (REG_CLASS_NAMES): Delete SPR_REGS.
19336 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19337 (REGISTER_NAMES): Adjust.
19338 (ADDITIONAL_REGISTER_NAMES): Adjust.
19339 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19340 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19341 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19342 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19343 (htm_spr_regno): Delete.
19344 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19346 (rs6000_dbx_register_number): Adjust.
19348 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19350 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19352 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19354 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19355 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19357 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19359 PR tree-optimization/88709
19360 PR tree-optimization/90271
19361 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19362 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19363 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19365 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19366 of the store merging group is larger than
19367 PARAM_STORE_MERGING_MAX_SIZE parameter.
19368 (split_group): Add bzero_first argument. If set, always emit first
19369 the first store which must be = {} of the whole area and then for the
19370 rest of the stores consider all zero bytes as paddings.
19371 (imm_store_chain_info::output_merged_store): Check if first store
19372 is = {} of the whole area and if yes, determine which setting of
19373 bzero_first for split_group gives smaller number of stores. Adjust
19374 split_group callers.
19375 (lhs_valid_for_store_merging_p): Allow decls.
19376 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19378 (pass_store_merging::process_store): Likewise.
19380 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19383 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19384 handling of V1TImode.
19386 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19389 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19390 and enable_frame_pointer ...
19391 * configure.ac: ... here. Update help strings for
19392 --enable-frame-pointer.
19393 * configure: Regenerate.
19394 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19395 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19396 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19397 (USE_X86_64_FRAME_POINTER): Ditto.
19399 2019-05-06 Martin Liska <mliska@suse.cz>
19401 * config.gcc: Append to target_gtfiles and fix indentation.
19403 2019-05-06 Richard Biener <rguenther@suse.de>
19405 PR tree-optimization/90358
19406 * tree-vect-stmts.c (get_group_load_store_type): Properly
19407 detect unused upper half of load.
19408 (vectorizable_load): Likewise.
19410 2019-05-06 Richard Biener <rguenther@suse.de>
19412 PR tree-optimization/88828
19413 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19414 (simplify_vector_constructor): ...here. Handle constants in
19417 2019-05-06 Richard Biener <rguenther@suse.de>
19419 PR tree-optimization/90328
19420 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19421 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19422 is valid in the loop nest before using it.
19423 (initialize_data_dependence_relation): Adjust.
19424 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19425 loop as loop-nest to dr_may_alias_p.
19427 2019-05-06 Richard Biener <rguenther@suse.de>
19429 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19431 2019-05-06 Richard Biener <rguenther@suse.de>
19433 PR tree-optimization/90316
19434 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19435 compute target on demand.
19436 (get_continuation_for_phi): Remove code walking stmts to
19437 get to a target virtual operand which could end up being
19440 2019-05-06 Martin Liska <mliska@suse.cz>
19443 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19444 when -mabi is selected to a non-default version.
19446 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19447 Martin Liska <mliska@suse.cz>
19449 * Makefile.in: Add lto-dump.texi.
19450 * cgraph.h: Add new functions get_visibility_string and
19451 get_symtab_type_string.
19452 * doc/gcc.texi: Include lto-dump section.
19453 * doc/lto-dump.texi: New file.
19454 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19455 (parse_dump_option): Factor out this function.
19456 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19457 (parse_dump_option): Export the function.
19458 * symtab.c (symtab_node::get_visibility_string): New function.
19459 (symtab_node::get_symtab_type_string): Likewise.
19461 2019-05-06 Martin Liska <mliska@suse.cz>
19463 * config/i386/i386-builtins.c: New file.
19464 * config/i386/i386-builtins.h: New file.
19465 * config/i386/i386-expand.c: New file.
19466 * config/i386/i386-expand.h: New file.
19467 * config/i386/i386-features.c: New file.
19468 * config/i386/i386-features.h: New file.
19469 * config/i386/i386-options.c: New file.
19470 * config/i386/i386-options.h: New file.
19471 * config.gcc: Add new files into extra_objs and
19473 * config/i386/i386.c: Split content of the file
19474 into newly introduced files.
19475 * config/i386/i386.h: Declare common variables
19477 * config/i386/t-i386: Define dependencies for new files.
19479 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19482 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19483 Restrict 'all' variant to 32-bit configurations.
19484 (unaligned_loadhiu): Likewise.
19485 (unaligned_storehi): Likewise.
19486 (unaligned_storesi): Likewise.
19487 (unaligned_loadhis): Disable when compiling for thumb1.
19489 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19491 PR tree-optimization/90269
19492 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19495 2019-05-03 Martin Liska <mliska@suse.cz>
19497 * hash-map.h: Add is_empty function.
19498 * hash-set.h: Likewise.
19499 * hash-table.h: Likewise.
19500 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19501 elements () == 0 (and similar usages).
19502 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19503 * gimplify.c (gimplify_bind_expr): Likewise.
19504 (gimplify_switch_expr): Likewise.
19505 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19506 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19507 * postreload-gcse.c (dump_hash_table): Likewise.
19508 (gcse_after_reload_main): Likewise.
19509 * predict.c (combine_predictions_for_bb): Likewise.
19510 * tree-parloops.c (reduction_phi): Likewise.
19511 (separate_decls_in_region): Likewise.
19512 (transform_to_exit_first_loop): Likewise.
19513 (gen_parallel_loop): Likewise.
19514 (gather_scalar_reductions): Likewise.
19515 (try_create_reduction_list): Likewise.
19516 * var-tracking.c (dump_vars): Likewise.
19517 (emit_notes_for_changes): Likewise.
19518 (vt_emit_notes): Likewise.
19520 2019-05-03 Richard Biener <rguenther@suse.de>
19522 PR tree-optimization/90316
19523 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19526 2019-05-03 Richard Biener <rguenther@suse.de>
19528 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19529 peeling for gaps by loading only lower halves of vectors
19531 (vectorizable_load): Likewise.
19533 2019-05-03 Richard Biener <rguenther@suse.de>
19535 PR middle-end/89518
19536 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19538 2019-05-03 Richard Biener <rguenther@suse.de>
19540 PR middle-end/87314
19541 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19542 Handle STRING_CST vs DECL or STRING_CST.
19544 2019-05-03 Richard Biener <rguenther@suse.de>
19546 PR tree-optimization/88963
19547 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19548 vector loads feeding only BIT_FIELD_REFs to component
19549 loads. Rewrite stores fed by CONSTRUCTORs to component
19552 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19554 * opts.h (finish_options): Remove lang_mask argument.
19555 (print_help, help_option_argument): Declare.
19556 * opts.c (print_help): Remove forward declaration, no longer static.
19557 (finish_options): Remove lang_mask argument, don't call print_help
19559 * opts-global.c (decode_options): Adjust finish_option caller, call
19562 PR tree-optimization/90303
19563 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19564 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19566 2019-05-03 Richard Biener <rguenther@suse.de>
19568 PR tree-optimization/89698
19569 * gimple-fold.c (canonicalize_constructor_val): Early out
19570 for constants, handle unfolded INTEGER_CSTs as they appear in
19571 C++ virtual table ctors.
19573 2019-05-03 Richard Biener <rguenther@suse.de>
19575 * passes.c (execute_function_todo): Remove dead code.
19577 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19579 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19580 the internal register number, for any "real" register.
19582 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19584 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19585 correct numbers for TFHAR, TFIAR, TEXASR.
19587 2019-05-02 Richard Biener <rguenther@suse.de>
19589 PR tree-optimization/89653
19590 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19591 update-address-taken before the pass.
19592 * passes.def (pass_tree_loop_init): Put comment before it.
19594 2019-05-02 Richard Biener <rguenther@suse.de>
19596 PR tree-optimization/89509
19597 * tree-ssa-structalias.c (compute_dependence_clique): Look
19598 at the first subvar when determining whether it is restrict.
19600 2019-05-02 Richard Biener <rguenther@suse.de>
19602 PR tree-optimization/90273
19603 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19604 useless debug stmts.
19606 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19608 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19610 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19612 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19613 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19614 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19615 (vectorizable_reduction): Use the functions above to vectorize in a
19616 fully masked loop codes that don't have a conditional internal
19619 2019-05-02 Martin Liska <mliska@suse.cz>
19621 * cgraphclones.c: Call valid_attribute_p with 1 for
19623 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19624 it's for target attribute.
19625 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19626 Add new boolean argument.
19627 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19629 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19630 to ix86_valid_target_attribute_inner_p.
19631 (ix86_valid_target_attribute_p): Pass flags argument to
19632 ix86_valid_target_attribute_inner_p.
19633 (get_builtin_code_for_version): Use 0 as it's target attribute.
19635 2019-05-02 Martin Liska <mliska@suse.cz>
19637 * gcc.c (process_command): Add dummy file only
19639 * opts-global.c (decode_options): Pass lang_mask.
19640 * opts.c (print_help): New function.
19641 (finish_options): Print --help if help_option_argument
19643 (common_handle_option): Factor out content of OPT__help_
19645 * opts.h (finish_options): Add new argument.
19647 2019-05-02 Martin Liska <mliska@suse.cz>
19650 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19651 With -minline-all-stringops use inline expansion using 4B loop.
19652 * doc/invoke.texi: Document the change of
19653 -minline-all-stringops.
19655 2019-05-01 Jeff Law <law@redhat.com>
19657 PR tree-optimization/88797
19658 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19659 PHI feeds a conditional on the RHS of an assignment.
19661 2019-04-30 Andrew Waterman <andrew@sifive.com>
19662 Jim Wilson <jimw@sifive.com>
19664 * config/riscv/constraints.md (L): New.
19665 * config/riscv/predicates.md (lui_operand): New.
19666 (sfb_alu_operand): New.
19667 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19668 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19669 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19670 * config/riscv/risc.md (type): Add sfb_alu.
19671 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19672 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19673 (branch_zero<mode>): Delete.
19674 (mov<mode>cc): New.
19675 (mov<GPR:mode><X:mode>cc): Likewise.
19676 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19678 2019-04-30 Nathan Sidwell <nathan@acm.org>
19680 * tree.h (MARK_TS_EXP): New.
19682 2019-04-30 Martin Liska <mliska@suse.cz>
19684 * opts.c (enable_warning_as_error): Provide hints
19685 for unknown options.
19687 2019-04-30 Martin Liska <mliska@suse.cz>
19690 * doc/invoke.texi: Add missing dash for gas-locview-support
19691 and gno-as-locview-support.
19693 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19696 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19697 whitespace at the start of target attribute string.
19699 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19702 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19703 Define __ARM_FEATURE_ATOMICS.
19705 2019-04-30 Martin Liska <mliska@suse.cz>
19707 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19708 into built_in_function enum. Remove code for endp == 2 and
19709 use BUILT_IN_* constants.
19710 (gimple_fold_builtin): Call the function with fcode.
19712 2019-04-30 Martin Liska <mliska@suse.cz>
19714 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19715 DECL_FUNCTION_CODE into ix86_builtins enum before
19716 the switch statement.
19718 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19720 PR tree-optimization/89475
19721 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19724 2019-04-30 Martin Liska <mliska@suse.cz>
19726 PR translation/90274
19727 * opts.c (print_filtered_help): Wrap string in _(...).
19729 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19731 PR tree-optimization/90240
19733 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19735 PR tree-optimization/90078
19736 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19737 checks for infinite_cost overflow.
19739 2019-04-29 Jeff Law <law@redhat.com>
19741 * passes.def: Move -Wrestrict pass after copy propagation.
19743 2019-04-29 Maya Rashish <coypu@sdf.org>
19745 * config.gcc (default_gnu_indirect_function): Default to yes
19746 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19747 sparc*-*-netbsd*, x86_64-*-netbsd*.
19749 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19751 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19752 where cond2 is NE_EXPR.
19753 (is_value_included_in): Update comment.
19755 2019-04-29 Richard Biener <rguenther@suse.de>
19757 PR tree-optimization/90278
19758 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19759 EH on comparison simplification.
19761 2019-04-29 Jason Merrill <jason@redhat.com>
19763 PR c++/82081 - tail call optimization breaks noexcept
19764 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19765 nothrow function to a might-throw function into a tail call.
19767 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19769 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19770 (DDR_INNER_LOOP): Likewise.
19771 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19772 (initialize_data_dependence_relation): Likewise.
19773 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19775 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19777 PR rtl-optimization/90257
19778 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19782 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19786 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19789 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19792 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19794 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19796 2019-04-29 Richard Biener <rguenther@suse.de>
19798 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19801 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19803 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19804 varasm.h, and netbsd-protos.h.
19806 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19809 * config/i386/i386-protos.h (ix86_data_alignment): Change
19810 the second argument type to unsigned int.
19811 * config/i386/i386.c (ix86_data_alignment): Change "align"
19812 argument type to unsigned int.
19814 2019-04-27 Martin Liska <mliska@suse.cz>
19816 PR middle-end/90258
19817 * opt-suggestions.c (option_proposer::build_option_suggestions):
19818 When get_valid_option_values returns empty values, add the
19819 misspelling candidate.
19821 2019-04-26 Jim Wilson <jimw@sifive.com>
19823 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19825 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19826 Pass orig_mode to riscv_build_integer.
19827 (riscv_split_integer): Pass mode to riscv_move_integer.
19828 (riscv_legitimize_const_move): Likewise.
19829 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19830 promoted_mode. Replace force_reg call with code to load constant into
19831 promoted reg and then subreg it for the store.
19832 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19833 riscv_move_integer.
19835 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19837 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19840 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19842 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19843 commentary about the encoding of precision.
19845 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19847 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19848 * config/i386/t-freebsd64: New file.
19849 * config.gcc: Add the t-freebsd64 for multilib support.
19851 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19853 * doc/extend.texi (vector_size): Add missing comma after @xref.
19855 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19857 * BASE-VER: Set to 10.0.0.
19859 2019-04-25 Richard Biener <rguenther@suse.de>
19861 PR middle-end/89765
19862 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19863 VIEW_CONVERT_EXPR into one operating on an rvalue.
19865 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19868 * config/i386/i386.c (feature_priority): Moved to file scope.
19869 (processor_features): Likewise.
19870 (processor_model): Likewise.
19871 (_arch_names_table): Likewise.
19872 (arch_names_table): Likewise.
19873 (_feature_list): Removed.
19874 (feature_list): Likewise.
19875 (_isa_names_table): Moved to file scope. Add priority.
19876 (isa_names_table): Likewise.
19877 (get_builtin_code_for_version): Replace feature_list with
19878 isa_names_table. Update error message for P_ZERO priority.
19880 2019-04-25 Richard Biener <rguenther@suse.de>
19882 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19883 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19885 2019-04-24 Jeff Law <law@redhat.com>
19887 PR tree-optimization/90037
19888 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19889 * passes.def: Replace all instance of phi-only cprop with the
19890 lattice propagator. Move propagation pass from after erroneous
19891 path isolation to before erroneous path isolation.
19892 * tree-ssa-phionlycprop.c: Remove.
19894 2019-04-24 Richard Biener <rguenther@suse.de>
19896 PR middle-end/90213
19897 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19898 by size and BITS_PER_UNIT on poly-wide-ints.
19900 2019-04-25 Richard Biener <rguenther@suse.de>
19902 PR middle-end/90194
19903 * match.pd: Add pattern to simplify view-conversion of an
19906 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19908 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19909 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19910 for Go on 32 bit AIX.
19911 * config/rs6000/aix72.h: Likewise.
19913 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19916 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19917 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19919 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19922 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19923 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19924 for restored hard frame pointer.
19925 (s390_sched_dependencies_evaluation): Implement new target hook.
19926 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19928 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19930 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19931 * config/arc/arc.c (arc_init): Cleanup warning message.
19932 (arc_override_options): Likewise.
19934 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19937 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19938 a register if both if_true and if_false are MEMs.
19940 PR tree-optimization/90208
19941 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19942 after labels of new_bb, not before them.
19944 PR tree-optimization/90211
19945 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19946 which are not SSA_NAMEs.
19948 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19950 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19952 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19954 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19956 PR rtl-optimization/87979
19957 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19960 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19962 PR rtl-optimization/84032
19963 * modulo-sched.c (ps_insn_find_column): Change condition so that
19964 branch will always be the last insn in a row inside partial
19967 2019-04-23 Richard Biener <rguenther@suse.de>
19970 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19971 dest_single_pred_p argument.
19972 (remove_forwarder_block): Adjust.
19973 (remove_forwarder_block_with_phi): Likewise.
19975 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19976 Bernd Edlinger <bernd.edlinger@hotmail.de>
19977 Jakub Jelinek <jakub@redhat.com>
19980 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19981 if used with general-regs-only.
19982 (arm_conditional_register_usage): Don't add non-general regs if
19984 (arm_valid_target_attribute_rec): Handle general-regs-only.
19985 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19987 (TARGET_HARD_FLOAT_SUB): Define.
19988 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19989 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19990 (TARGET_REALLY_IWMMXT2): Likewise.
19991 * config/arm/arm.opt: Add -mgeneral-regs-only.
19992 * doc/extend.texi: Document ARM general-regs-only target.
19993 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19995 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19997 PR tree-optimization/90078
19998 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19999 checks for infinite_cost overflow.
20001 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20003 PR tree-optimization/90021
20004 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20005 and check univariate against it.
20006 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20007 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20009 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20013 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20016 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20019 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20021 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20023 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20025 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20026 names using operand format, rather than hard-wired.
20027 (speculation_barrier): Likewise.
20029 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20031 PR tree-optimization/88055
20032 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20033 (gen_one_condition): Use it if !HONOR_NANS.
20035 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20037 PR middle-end/90139
20038 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20039 assign_temp instead of gen_reg_rtx.
20041 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20043 PR translation/90118
20044 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20045 Add missing space before %<.
20047 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20049 PR rtl-optimization/87871
20050 * ira-lives.c (make_object_dead): Don't add conflicts to
20051 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20053 2019-04-18 Martin Sebor <msebor@redhat.com>
20055 PR middle-end/89797
20056 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20057 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20058 assuming type size fits in SHWI.
20060 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20063 * ipa-inline.c (flatten_function): New parameter UPDATE.
20064 (ipa_inline, early_inliner): Use it.
20066 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20068 * fold-const.c (int_const_binop): Return early on failure.
20070 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20072 PR middle-end/85164
20073 * combine.c (force_int_to_mode): Cast the argument rather than
20074 the result of known_alignment.
20075 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20077 2019-04-18 Richard Biener <rguenther@suse.de>
20080 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20082 (remove_forwarder_block): ... here.
20083 (remove_forwarder_block_with_phi): Also move debug stmts here.
20085 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20087 PR translation/79183
20088 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20089 inform where appropriate.
20091 2019-04-18 Richard Biener <rguenther@suse.de>
20093 * tree.c (get_qualified_type): Put found type variants at the
20094 head of the variant list.
20096 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20098 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20100 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20103 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20104 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20105 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20106 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20107 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20109 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20111 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20112 even for allocno's with no conflicts.
20113 (print_conflicts): Print an extra newline.
20115 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20117 * auto-inc-dec.c (attempt_change): Set the alignment of the
20118 temporary memory to that of the original.
20120 2019-04-17 Joao Moreira <jmoreira@suse.de>
20122 * targhooks.c (default_print_patchable_function_entry): Emit
20123 __patchable_function_entries section with writable flags to allow
20124 relocation resolution.
20126 2019-04-17 Jonny Grant <jg@jguk.org>
20128 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20130 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20132 PR middle-end/90095
20133 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20134 on lowpart SUBREGs.
20136 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20138 * config/arc/arc.c (arc_init): Format diagnostic string.
20139 (arc_override_options): Likewise.
20140 (check_if_valid_regno_const): Likewise.
20141 (arc_reorg): Likewise.
20143 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20146 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20148 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20150 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20151 (*movdi_update1): Use Pmode.
20152 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20153 (movdi_<mode>_update_stack): Rename to ...
20154 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20156 (*movsi_update1): Use Pmode.
20157 (*movsi_update2): Use Pmode.
20158 (movsi_update): Rename to ...
20159 (movsi_<mode>_update): ... this. Use Pmode.
20160 (movsi_update_stack): Fix condition.
20161 (*movhi_update1): Use Pmode. Fix argument to
20162 avoiding_indexed_address_p.
20163 (*movhi_update2): Ditto.
20164 (*movhi_update3): Ditto.
20165 (*movhi_update4): Ditto.
20166 (*movqi_update1): Ditto.
20167 (*movqi_update2): Ditto.
20168 (*movqi_update3): Ditto.
20169 (*movsf_update1, *movdf_update1): Merge, rename to...
20170 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20171 avoiding_indexed_address_p. Add "size" attribute.
20172 (*movsf_update2, *movdf_update2): Merge, rename to...
20173 (*mov<mode>_update2): This. Ditto.
20174 (*movsf_update3): Use Pmode. Fix argument to
20175 avoiding_indexed_address_p.
20176 (*movsf_update4): Ditto.
20177 (allocate_stack): Simplify condition. Adjust pattern names.
20179 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20182 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20183 whitespace at the start of target attribute string.
20185 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20188 * config/rs6000/power9.md: Add store forwarding bypass.
20190 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20193 * valtrack.c (dead_debug_insert_temp): Reset debug references
20194 to the return value of a call being removed.
20196 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20198 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20199 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20200 implement target hook.
20201 (arc_memory_move_cost): New function.
20202 (TARGET_REGISTER_MOVE_COST): Define.
20203 (TARGET_MEMORY_MOVE_COST): Likewise.
20204 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20205 (MEMORY_MOVE_COST): Likewise.
20207 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20209 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20210 (sibcall_value_insn): Likewise.
20211 * config/arc/constraints.md (Rs5): Remove.
20213 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20215 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20216 for last two fake registers.
20217 (arc_conditional_register_usage): Make sure fake frame and arg
20218 pointer regs are in general regs class.
20219 (FRAME_POINTER_MASK): Remove.
20220 (RETURN_ADDR_MASK): Remove.
20221 (arc_must_save_register): Use hard frame regnum.
20222 (frame_restore_reg): Use hard_frame_pointer_rtx.
20223 (arc_save_callee_saves): Likewise.
20224 (arc_restore_callee_saves): Likewise.
20225 (arc_save_callee_enter): Likewise.
20226 (arc_restore_callee_leave): Likewise.
20227 (arc_save_callee_milli): Likewise.
20228 (arc_eh_return_address_location): Likewise.
20229 (arc_check_multi): Use hard frame regnum.
20230 (arc_can_eliminate): Likewise.
20231 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20232 for register allocator.
20233 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20234 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20235 (FRAME_POINTER_REGNUM): Change it to a fake register.
20236 (HARD_FRAME_POINTER_REGNUM): Defined.
20237 (ARG_POINTER_REGNUM): Change it to a new fake register.
20238 (ELIMINABLE_REGS): Update.
20239 (REGISTER_NAMES): Update names.
20240 * config/arc/arc.md (LP_START): Remove.
20241 (LP_END): Likewise.
20242 (shift_si3_loop): Update pattern.
20244 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20246 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20247 to avoid delay slot scheduling.
20248 (arc_must_save_register): Don't save SP.
20249 * config/arc/arc.md (stack_tie): Remove.
20250 (UNSPEC_ARC_STKTIE): Likewise.
20252 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20253 Shiva Chen <shiva0217@gmail.com>
20255 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20256 code gen with large shift amount.
20258 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20260 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20263 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20266 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20267 print -m64/-mx32/-m32 if it is true.
20268 (ix86_debug_options, ix86_function_specific_print): Pass true as
20269 ADD_ABI_P to ix86_target_string.
20270 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20271 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20272 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20274 PR rtl-optimization/90082
20275 * dce.c (can_delete_call): New function.
20276 (deletable_insn_p, mark_insn): Use it.
20278 PR tree-optimization/90090
20279 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20281 (is_division_by_square): Likewise. Formatting fix.
20283 2019-04-16 Richard Biener <rguenther@suse.de>
20285 PR tree-optimization/56049
20286 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20287 equality check if alias-set zero will prevail.
20289 2019-04-15 Jeff Law <law@redhat.com>
20291 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20292 size and alignment as unsigned.
20294 2019-04-15 Richard Biener <rguenther@suse.de>
20297 * tree-loop-distribution.c (destroy_loop): Preserve correct
20300 2019-04-15 Richard Biener <rguenther@suse.de>
20302 PR tree-optimization/90071
20303 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20304 abnormal operands from def stmts.
20306 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20308 PR rtl-optimization/89794
20309 * combine.c (count_auto_inc): New function.
20310 (try_combine): Count how many auto_inc expressions there were in the
20311 original instructions. Ensure we have the same number in the new
20312 instructions. Remove the code that tried to ensure auto_inc side
20313 effects on i1 and i0 are not lost.
20315 2019-04-15 Richard Biener <rguenther@suse.de>
20318 * tree.h (auto_var_p): Declare.
20319 * tree.c (auto_var_p): New function, split out from ...
20320 (auto_var_in_fn_p): ... here.
20321 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20323 (new_var_info): Initialize it.
20324 (set_uids_in_ptset): Also set the shadow variable uid if required.
20325 (ipa_pta_execute): Postprocess points-to solutions assigning
20326 shadow variable uids for locals that may reach their containing
20327 function recursively.
20328 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20329 assert but instead check whether the points-to solution is
20332 2019-04-15 Martin Jambor <mjambor@suse.cz>
20335 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20338 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20340 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20342 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20343 Kito Cheng <kito.cheng@gmail.com>
20344 Shiva Chen <shiva0217@gmail.com>
20346 * config/nds32/nds32-md-auxiliary.c
20347 (nds32_legitimize_pic_address): Use new PIC pattern.
20348 (nds32_legitimize_tls_address): Use new TLS pattern.
20349 (nds32_output_symrel): New.
20350 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20351 (nds32_alloc_relax_group_id): Ditto.
20352 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20353 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20355 (nds32_group_tls_insn): Ditto.
20356 (nds32_group_float_insns): Ditto.
20357 * config/nds32/nds32.md (tls_le): New.
20360 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20362 * configure: Add nds32 target for dwarf2 debug_line checking.
20363 * configure.ac: Regenerated.
20365 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20368 * ipa-devirt.c (skip_in_fields_list_p): New.
20369 (odr_types_equivalent_p): Use it.
20371 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20374 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20375 instead of strncmp when checking for thumb and arm. Formatting fixes.
20377 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20379 * doc/install.texi: Document --with-target-system-zlib.
20381 2019-04-12 Martin Sebor <msebor@redhat.com>
20387 * targhooks.c (default_vector_alignment): Avoid assuming
20388 argument fits in SHWI.
20389 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20390 a shift expression.
20391 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20393 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20395 PR rtl-optimization/89965
20396 * dce.c: Include rtl-iter.h.
20397 (struct check_argument_load_data): New type.
20398 (check_argument_load): New function.
20399 (find_call_stack_args): Check for loads from stack slots still tracked
20400 in sp_bytes and punt if any is found.
20402 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20404 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20406 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20407 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20409 2019-04-12 Martin Liska <mliska@suse.cz>
20411 PR middle-end/89970
20412 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20414 (separate_attrs): Handle multiple 'default's.
20415 (expand_target_clones): Rework error handling code.
20417 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20420 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20421 mode of vector rather than mode of destination for move instruction.
20422 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20423 Use QI inner mode with V16QI vector mode.
20425 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20428 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20429 "invalid %%t operand" in output_operand_lossage message.
20431 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20433 * config/s390/predicates.md (permute_pattern_operand): New
20435 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20436 operand for the permute pattern.
20437 ("*vec_perm<mode>"): New insn definition.
20438 ("bswap<mode>"): Generate the permute pattern operand in the
20439 expander and perform the operand reloads for pre arch13 level
20441 ("*bswap<mode>_emu"): Rename to ...
20442 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20443 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20444 Add the USE operand for the permute pattern.
20445 ("*vec_set_bswap_vec<mode>"): Likewise.
20447 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20450 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20451 and gcc_unreachable if it fails, just call tree_to_uhwi which
20452 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20453 Start warning message with a lower-case letter. Formatting fixes.
20455 PR rtl-optimization/90026
20456 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20457 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20458 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20459 in cfglayout mode, use emit_barrier_after_bb.
20461 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20463 PR rtl-optimization/87763
20464 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20467 2019-04-11 Tom de Vries <tdevries@suse.de>
20469 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20470 max macro using statement expression.
20472 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20474 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20475 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20476 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20477 read_only_private_data_section using xcoff_private_rodata_section_name.
20478 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20480 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20483 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20485 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20487 PR rtl-optimization/89965
20488 * dce.c (sp_based_mem_offset): New function.
20489 (find_call_stack_args): Use sp_based_mem_offset.
20491 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20493 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20495 2019-04-11 Richard Biener <rguenther@suse.de>
20497 PR tree-optimization/90020
20498 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20499 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20500 * tree-ssa-pre.c (compute_avail): Use it to not put
20501 possibly trapping references after a call that might not
20502 return into EXP_GEN.
20503 * gcse.c (compute_hash_table_work): Do not elide
20504 marking a block containing a call if the call might not
20507 2019-04-11 Richard Biener <rguenther@suse.de>
20509 PR tree-optimization/90018
20510 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20511 Test both SLP and interleaving variants.
20513 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20515 * config/s390/8561.md: New file.
20516 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20517 Add arch13 cpu model.
20518 * config/s390/s390-opts.h (enum processor_type): Likewise.
20519 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20520 (s390_get_unit_mask): Likewise.
20521 (s390_is_fpd): Likewise.
20522 (s390_is_fxd): Likewise.
20523 * config/s390/s390.h (s390_tune_attr): Likewise.
20524 * config/s390/s390.md: Include arch13 pipeline description.
20525 * config/s390/s390.opt: Add arch13.
20527 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20529 PR rtl-optimization/87763
20530 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20532 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20534 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20536 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20537 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20538 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20539 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20541 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20543 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20544 "Although" in -fipa-icf documentation.
20546 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20547 of using multiple -g options.
20549 2019-04-10 Martin Liska <mliska@suse.cz>
20551 PR gcov-profile/89959
20552 * doc/gcov.texi: Make documentation of -x option
20555 2019-04-10 Richard Biener <rguenther@suse.de>
20557 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20559 (DR_GROUP_SAME_DR_STMT): Remove.
20560 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20561 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20562 replace with assert.
20563 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20564 (vect_record_grouped_load_vectors): Remove unreachable code.
20566 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20569 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20570 obsolete reference to N.
20572 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20574 PR middle-end/90025
20575 * expr.c (store_expr): Set properly size on the MEM passed to
20579 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20580 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20581 translation is needed, and when translation is needed, only append
20582 ... if the string length is hostsz or more bytes long. Avoid using
20585 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20588 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20589 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20591 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20592 differences directly.
20593 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20595 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20597 PR translation/90011
20598 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20600 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20602 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20603 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20604 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20605 trailing space from -gsplit-dwarf diagnostics.
20607 PR tree-optimization/89998
20608 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20609 instead of integer_type_node if possible, don't add ranges if return
20610 type is not compatible with int.
20611 * gimple-fold.c (gimple_fold_builtin_sprintf,
20612 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20615 2019-04-09 Martin Liska <mliska@suse.cz>
20617 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20618 * doc/install.texi: Document the new config.
20620 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20622 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20623 use gimple_expr_type for load and store calls. Skip over the
20624 condition argument in a conditional internal function.
20625 Protect use of TREE_INT_CST_LOW.
20627 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20630 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20631 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20632 trailing period from it too.
20634 2019-04-08 wu yuan <wuyuan5@huawei.com>
20636 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20637 * config/aarch64/aarch64.md : Add "tsv110.md"
20638 * config/aarch64/tsv110.md: New file.
20640 2019-04-08 Richard Biener <rguenther@suse.de>
20642 PR tree-optimization/90006
20643 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20646 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20649 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20651 (fma_root_node): Likewise.
20652 (func_fma_steering): Likewise.
20654 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20656 PR rtl-optimization/89865
20657 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20659 PR rtl-optimization/89865
20660 * config/i386/i386.md
20661 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20662 numbers not to clash with the additional operands[4].
20663 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20664 with extra register copy in the middle.
20666 2019-04-08 Martin Liska <mliska@suse.cz>
20668 PR gcov-profile/89961
20669 * doc/gcov.texi: Document data_file.
20670 * gcov.c (generate_results): Add data_info into JSON output.
20672 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20674 PR tree-optimization/89725
20675 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20676 loop's chrec as invariant symbol.
20677 * tree-chrec.h (chrec_contains_symbols): New parameter.
20678 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20679 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20680 function of loops not in DDR's loop_nest.
20681 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20683 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20686 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20689 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20692 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20693 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20695 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20697 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20698 targetm.fixed_condition_code_regs.
20700 2019-04-05 Richard Biener <rguenther@suse.de>
20704 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20705 debug bind stmts but reset them if they are not valid at the
20708 2019-04-05 Martin Liska <mliska@suse.cz>
20710 PR translation/89936
20711 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20712 order to wrap keywords or arguments.
20713 * collect2.c (main): Likewise.
20714 (scan_prog_file): Likewise.
20715 (scan_libraries): Likewise.
20716 * common/config/riscv/riscv-common.c
20717 (riscv_subset_list::parsing_subset_version): Likewise.
20718 (riscv_subset_list::parse_std_ext): Likewise.
20719 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20721 * config/arm/arm.c (arm_option_override): Likewise.
20722 * config/cris/cris.c (cris_print_operand): Likewise.
20723 * config/darwin-c.c (darwin_pragma_options): Likewise.
20724 (darwin_pragma_unused): Likewise.
20725 (darwin_pragma_ms_struct): Likewise.
20726 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20727 * config/i386/i386.c (print_reg): Likewise.
20728 (ix86_print_operand): Likewise.
20729 * config/i386/xm-djgpp.h: Likewise.
20730 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20731 * config/m32c/m32c.c (m32c_option_override): Likewise.
20732 * config/msp430/msp430.c (msp430_option_override): Likewise.
20733 * config/nds32/nds32.c (nds32_option_override): Likewise.
20734 * config/nvptx/mkoffload.c (main): Likewise.
20735 * config/rx/rx.c (rx_print_operand): Likewise.
20736 (valid_psw_flag): Likewise.
20737 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20738 (vms_pragma_nomember_alignment): Likewise.
20739 (vms_pragma_extern_model): Likewise.
20740 * lto-wrapper.c (compile_offload_image): Likewise.
20741 * omp-offload.c (oacc_parse_default_dims): Likewise.
20742 * symtab.c (symtab_node::verify_base): Likewise.
20743 * tlink.c (recompile_files): Likewise.
20744 (start_tweaking): Likewise.
20745 * tree-profile.c (parse_profile_filter): Likewise.
20747 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20749 PR tree-optimization/89956
20750 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20751 multiple negates of the same value.
20753 2019-04-04 Martin Sebor <msebor@redhat.com>
20755 PR middle-end/89957
20756 PR middle-end/89911
20757 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20758 have the same precision since the function crashes otherwise.
20759 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20760 has non-zero arguments.
20762 2019-04-04 Martin Sebor <msebor@redhat.com>
20764 PR middle-end/89934
20765 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20766 out if the number of arguments is less than expected.
20768 2019-04-04 Jeff Law <law@redhat.com>
20770 PR rtl-optimization/89399
20771 * ree.c (combine_set_extension): Use single_set rather than
20772 digging into PATTERN for items on the candidate list.
20773 (combine_reaching_defs): Likewise.
20775 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20777 PR rtl-optimization/46590
20778 * loop-invariant.c (find_defs): Move df_remove_problem and
20779 df_process_deferred_rescans to move_invariants.
20780 Move df_live_add_problem and df_live_set_all_dirty calls
20781 to move_invariants.
20782 (move_invariants): Likewise.
20783 (move_loop_invariants): Likewise, making the df_live calls
20784 conditional on -O. Remove the problem again if we added it
20787 2019-04-03 qing zhao <qing.zhao@oracle.com>
20789 PR tree-optimization/89730
20790 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20791 -flive-patching=inline-only-static.
20792 (can_inline_edge_by_limits_p): Add the checking for
20793 -flive-patching=inline-only-static and grant always_inline
20794 even when -flive-patching=inline-only-static is specified.
20796 2019-04-03 Jeff Law <law@redhat.com>
20798 PR rtl-optimization/81025
20799 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20801 2019-04-03 Richard Biener <rguenther@suse.de>
20803 PR tree-optimization/84101
20804 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20805 regs.h for hard_regno_nregs.
20806 (cfun_returns): New helper.
20807 (vect_model_store_cost): When vectorizing a store to a decl
20808 we return and the function ABI returns in a multi-reg location
20809 account for the possible spilling that will happen.
20811 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20813 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20814 displacement addresses for vector mode operands.
20816 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20818 * config/arc/arc.c (GMASK_LEN): Define.
20819 (arc_restore_callee_saves): Restore first blink when
20822 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20824 * doc/extend.texi: Add deprecated comment on sign-return-address
20825 function attribute and add mbranch-protection.
20826 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20828 2019-04-03 Richard Biener <rguenther@suse.de>
20831 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20832 the all target phony.
20834 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20838 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20839 Return false for variable DImode shifts.
20840 (dimode_scalar_chain::compute_convert_gain): Do not handle
20841 register count operand in variable DImode shifts.
20842 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20843 count argument of a variable shift instruction to a vector register.
20844 (dimode_scalar_chain::convert_reg): Remove support to convert
20845 count argument of a variable shift instruction.
20847 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20849 PR rtl-optimization/84206
20850 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20851 iterating over loop headers.
20853 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20855 PR rtl-optimization/85876
20856 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20857 beyond the original fence.
20859 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20861 * config.gcc: Mark spu* targets as deprecated/obsolete.
20863 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20865 * config/s390/s390-builtin-types.def: New builtin function type
20866 definitions. Remove unused types.
20867 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20868 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20869 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20870 overloaded builtins.
20871 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20872 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20873 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20874 (vec_double, vec_signed, vec_unsigned): Define to use the new
20875 overloaded builtins.
20876 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20879 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20881 * config/s390/s390-builtin-types.def: New builtin function type
20883 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20884 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20885 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20886 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20887 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20888 constant definitions.
20889 * config/s390/vecintrin.h (vec_search_string_cc)
20890 (vec_search_string_until_zero_cc): New builtin name definitions.
20891 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20893 ("vec_vstrs<mode>"): New insn definition.
20895 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20897 * config/s390/s390-builtin-types.def: Add new builtin function
20899 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20900 New overloaded builtins.
20901 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20903 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20904 (UNSPEC_VEC_SLDBYTE): ... this.
20905 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20906 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20908 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20909 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20910 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20912 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20914 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20915 New insn definition.
20916 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20917 * config/s390/vector.md (V_HW_HSD): ... here.
20919 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20921 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20922 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20923 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20924 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20925 New insn definitions.
20927 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20929 * config/s390/s390-builtin-types.def: Add new builtin function type.
20930 * config/s390/s390-builtins.def: Add overloaded builtin
20931 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20932 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20933 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20934 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20935 ("eltswap<mode>"): New expander.
20936 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20939 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20941 * config/s390/s390-builtin-types.def: Add new builtin function types.
20942 * config/s390/s390-builtins.def: Add overloaded builtin
20943 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20945 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20946 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20947 ("bswap<mode>"): New expander.
20948 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20950 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20952 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20953 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20954 vector builtin version number in __VEC__.
20956 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20958 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20960 (SFSI): New mode attribute.
20961 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20962 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20964 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20965 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20966 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20967 ("floatsi<mode>2"): Add wcefb instruction.
20969 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20971 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20972 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20974 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20975 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20976 support 32 bit fp-int conversions. Rename to ...
20977 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20978 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20979 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20980 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20983 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20985 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20986 if-then-else constructs if we can use the select instruction.
20987 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20989 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20991 * config/s390/s390.md ("*popcountdi_arch13_cc")
20992 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20994 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20995 Append _z196 to make it ...
20996 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20997 ("popcounthi2_z196"): ... this.
20998 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20999 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21001 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21003 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21004 certain compares for arch13 in order to make use of the condition
21005 code result produced by the new instructions.
21006 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21007 nxrk, and nxgrk instruction patterns.
21008 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21009 (inv_no): Add new code iterator together with some attributes.
21010 ("*andc_split_<mode>"): Disable splitter for arch13.
21011 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21012 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21013 ("*<ANDOR:bitops_name>c<GPR:mode>")
21014 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21015 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21016 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21017 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21019 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21021 * common/config/s390/s390-common.c (processor_flags_table): New
21023 * config.gcc: Support arch13 with the --with-arch= configure flag.
21024 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21025 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21026 * config/s390/s390.c (s390_get_sched_attrmask)
21027 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21028 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21029 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21030 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21031 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21033 * config/s390/s390.opt: Support arch13 as processor type in
21034 command line options.
21036 2019-04-02 Martin Liska <mliska@suse.cz>
21038 PR translation/89912
21039 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21040 Fix param description of graphite-max-arrays-per-scop.
21042 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21044 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21045 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21046 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21048 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21050 PR rtl-optimization/85412
21051 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21052 sel_sched_region_1, not after.
21054 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21056 PR rtl-optimization/86928
21057 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21058 compute_live if necessary.
21059 (sel_redirect_edge_and_branch): Likewise.
21061 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21063 PR rtl-optimization/89865
21064 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21065 register if it is a part of small class.
21067 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21069 PR rtl-optimization/87273
21070 * sel-sched-ir.c (merge_fences): Remove assert.
21072 2019-04-01 Richard Biener <rguenther@suse.de>
21074 PR tree-optimization/46590
21075 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21076 (dom_walker::m_reachability): Add in place of...
21077 (dom_walker::m_skip_unreachable_blocks): ...this.
21078 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21079 Move complex initialization ...
21080 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21081 lazily and initialize edge flags on each invocation.
21082 (dom_walker::bb_reachable): Use m_reachability.
21084 2019-04-01 Martin Liska <mliska@suse.cz>
21087 * opt-suggestions.c (option_proposer::build_option_suggestions):
21088 Add variant without any argument in order to provide better
21091 2019-04-01 Richard Biener <rguenther@suse.de>
21094 * gimple.c: Include langhooks.h.
21095 (gimple_get_alias_set): Treat enumeral types as the underlying
21098 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21099 Eric Botcazou <ebotcazou@adacore.com>
21101 PR rtl-optimization/89862
21102 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21103 that operates on the full registers for WORD_REGISTER_OPERATIONS
21106 2019-03-29 Jim Wilson <jimw@sifive.com>
21108 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21109 Clear MASK_RVC and then set if C subset supported.
21111 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21114 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21115 non-addressable complit into its initializer if it is volatile.
21117 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21119 * opts-common.c (integral_argument): Set errno properly in one case.
21121 2019-03-29 Martin Liska <mliska@suse.cz>
21123 * doc/invoke.texi: Remove -Wchkp from documentation.
21125 2019-03-29 Martin Liska <mliska@suse.cz>
21127 * dbgcnt.c (print_limit_reach): New function.
21130 2019-03-29 Martin Liska <mliska@suse.cz>
21132 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21133 (dbg_cnt_process_opt): Parse first tokens aas
21134 dbg_cnt_process_single_pair is also using strtok.
21136 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21138 PR rtl-optimization/87485
21139 * function.c (expand_function_end): Move stack_protect_epilogue
21140 before loading of return value into hard register(s).
21142 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21144 PR middle-end/89621
21145 * tree-inline.h (struct copy_body_data): Add
21146 dont_remap_vla_if_no_change flag.
21147 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21148 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21149 and remap_type_2 returns false.
21150 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21151 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21152 only from where it is copied to nested contexts.
21154 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21157 * config/i386/i386.md (RMW operation with LEA peephole):
21158 Use LEAMODE mode attribute instead of SWI mode iterator for
21161 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21164 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21165 Also process XEXP (src, 0) of a shift insn.
21167 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21169 PR middle-end/89725
21170 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21171 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21173 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21175 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21177 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21178 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21179 immediately after first one with df_analyze in between, but rather
21180 process all bbs, queueing ones that need second pass in a worklist,
21181 df_analyze, process queued debug insn changes and if second pass is
21182 needed, process bbs from worklist, df_analyze, process queued debug
21185 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21186 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21187 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21189 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21192 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21195 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21198 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21199 function for 32-bit MS_ABI.
21200 (function_value_ms_32): New function.
21202 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21204 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21205 (movdi): Call gen_movdi_symbol_save_scc.
21206 (gen_movdi_symbol_save_scc): New insn and split.
21208 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21210 PR rtl-optimization/89313
21211 * function.c (matching_constraint_num): New static function.
21212 (match_asm_constraints_1): Use it. Fixup white space and comment.
21213 Don't replace inputs with non-matching constraints which conflict
21214 with early clobber outputs.
21216 2019-03-27 Jeff Law <law@redhat.com>
21218 PR rtl-optimization/87761
21219 PR rtl-optimization/89826
21220 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21222 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21223 note problem to get REG_DEAD/REG_UNUSED notes updated.
21225 2019-03-27 Richard Biener <rguenther@suse.de>
21227 PR tree-optimization/89463
21228 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21229 queue edges to remove.
21230 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21231 dead stmts. Delay edge removal until PHIs are removed to
21232 make debug-stmt creation not confused by seemingly degenerate
21235 2019-03-27 Alan Modra <amodra@gmail.com>
21237 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21239 * config/rs6000/darwin.h: Likewise.
21240 * config/rs6000/rs6000.c: Likewise.
21242 2019-03-27 Alan Modra <amodra@gmail.com>
21244 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21245 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21247 2019-03-26 Andrew Waterman <andrew@sifive.com>
21248 Jim Wilson <jimw@sifive.com>
21250 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21251 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21252 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21253 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21254 (generic_alu): Add auipc to type list.
21255 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21256 (riscv_microarchitecture): Declare.
21257 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21258 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21260 (riscv_microarchitecture): New.
21261 (sifive_7_tune_info): New.
21262 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21263 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21265 (riscv_store_data_bypass_p): New.
21266 (riscv_option_override): Set riscv_microarchitecture from
21267 cpu->microarchitecture.
21268 * config/riscv/riscv.md: Include sifive-7.md.
21271 (auipc<mode>): Change type to auipc.
21272 (restore_stack_nonlocal): New.
21273 * config/riscv/sifive-7.md: New.
21274 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21276 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21279 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21280 Also process XEXP (src, 0) of a shift insn.
21282 2019-03-26 Richard Biener <rguenther@suse.de>
21284 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21285 (copy_debug_stmt): Likewise.
21286 (expand_call_inline): Likewise.
21287 (copy_bb): Avoid redundant lookup & set of gimple_block.
21288 * gimple-low.c (lower_gimple_return): Likewise.
21289 (lower_builtin_setjmp): Likewise.
21291 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21293 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21294 is constant 0, turn into static const data member initialized to false.
21295 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21296 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21298 2019-03-26 Jason Merrill <jason@redhat.com>
21299 Jakub Jelinek <jakub@redhat.com>
21301 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21303 (mem_alloc_description::release_object_overhead): Fix comment typos.
21304 * hash-table.h (hash_table::~hash_table): Call
21305 release_instance_overhead only if m_entries is non-NULL, otherwise
21306 call unregister_descriptor.
21308 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21310 PR tree-optimization/81740
21311 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21312 In case of outer loop vectorization, check for backward dependence
21313 at the inner loop if outer loop dependence is reversed.
21315 2019-03-26 Alan Modra <amodra@gmail.com>
21317 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21318 rs6000_vector_mem init. Correct wI and wJ comment.
21320 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21322 PR rtl-optimization/88347
21323 PR rtl-optimization/88423
21324 * sched-deps.c (sched_analyze_insn): Take into account that for
21325 tablejumps the barrier appears after a label and a jump_table_data.
21327 2019-03-25 Martin Sebor <msebor@redhat.com>
21330 * c-common.c (check_user_alignment): Rename local. Correct maximum
21331 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21332 convert it to UHWI when it fits.
21334 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21337 * dwarf2out.c (premark_used_variables): New function.
21338 (prune_unused_types_walk): Do not mark not premarked external
21340 (prune_unused_types): Call premark_used_variables.
21342 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21344 PR rtl-optimization/89676
21345 * lra-constraints.c (curr_insn_transform): Do match reload for
21346 early clobbers when the match was successful only for different
21349 2019-03-25 Martin Sebor <msebor@redhat.com>
21351 * doc/extend.texi (Common Type Attributes): Document vector_size.
21352 (Common Variable Attributes): Mention size constraint. Correct
21354 (Vector Extensions): Use @dfn when defining bas type. Clarify
21355 base type and size constraints.
21357 2019-03-25 Richard Biener <rguenther@suse.de>
21359 PR tree-optimization/89789
21360 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21361 changes from non-undefined back to undefined.
21363 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21365 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21366 heap string and a gc string, but since this variable is unknown to
21367 ggc the gc string might get reused and corrupted. Fixed by always
21368 using a heap string.
21370 2019-03-25 Richard Biener <rguenther@suse.de>
21372 PR tree-optimization/89779
21373 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21374 to remove IV defs, delay actual removal.
21375 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21376 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21377 very end, properly also reset loop control IV information.
21379 2019-03-25 Richard Biener <rguenther@suse.de>
21381 PR tree-optimization/89802
21382 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21383 move EH data to folded stmt.
21385 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21387 * config/s390/s390-builtin-types.def: Remove few unused types and
21388 fix sort order for others.
21390 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21392 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21393 expected and found types with -mdebug during builtin matching.
21395 2019-03-25 Richard Biener <rguenther@suse.de>
21397 PR middle-end/89790
21398 * fold-const.c (operand_equal_p): Revert last change with
21401 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21403 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21404 notes for the result of the __tls_get_addr calls.
21405 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21407 2019-03-24 Jeff Law <law@redhat.com>
21409 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21411 PR rtl-optimization/87761
21412 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21413 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21415 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21416 rescans. Reprocess blocks as needed, calling df_analyze before
21417 reprocessing. Always call df_analyze before fixing up debug bind
21420 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21422 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21425 2019-03-22 Andrew Pinski <apinski@marvell.com>
21427 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21428 attrribute for uxtw.
21430 2019-03-26 Jeff Law <law@redhat.com>
21432 PR rtl-optimization/87761
21433 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21434 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21435 (mips_split_move): Accept new INSN argument. Try to forward SRC
21436 into the next instruction.
21437 (mips_split_move_insn): Pass INSN through to mips_split_move.
21439 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21441 PR rtl-optimization/89676
21442 * lra-constraints.c (curr_insn_transform): Do match reload for
21443 early clobbers even if the match was successful.
21445 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21448 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21450 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21452 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21454 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21456 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21457 <avx512>_fmsub_<mode>_mask3<round_name>,
21458 <avx512>_fnmadd_<mode>_mask3<round_name>,
21459 <avx512>_fnmsub_<mode>_mask3<round_name>,
21460 avx512f_vmfmadd_<mode>_mask3<round_name>,
21461 avx512f_vmfmsub_<mode>_mask3<round_name>,
21462 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21463 instead of register_operand and %v instead of v for match_operand 1.
21464 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21465 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21466 <round_nimm_predicate> instead of register_operand and %v instead of v
21467 for match_operand 1.
21469 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21470 <avx512>_fmadd_<mode>_mask3<round_name>,
21471 <avx512>_fmsub_<mode>_mask<round_name>,
21472 <avx512>_fmsub_<mode>_mask3<round_name>,
21473 <avx512>_fnmadd_<mode>_mask<round_name>,
21474 <avx512>_fnmadd_<mode>_mask3<round_name>,
21475 <avx512>_fnmsub_<mode>_mask<round_name>,
21476 <avx512>_fnmsub_<mode>_mask3<round_name>,
21477 <avx512>_fmaddsub_<mode>_mask<round_name>,
21478 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21479 <avx512>_fmsubadd_<mode>_mask<round_name>,
21480 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21481 <round_nimm_predicate> instead of nonimmediate_operand.
21482 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21483 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21484 Use register_operand instead of <round_nimm_predicate> for the
21485 operand that needs to match output.
21486 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21487 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21488 Likewise. Formatting fixes.
21491 * config/i386/i386.c (enum ix86_builtins): Remove
21492 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21493 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21494 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21495 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21496 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21497 __builtin_ia32_vfmsubss3_mask3): New builtins.
21498 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21499 avx512f_vmfmadd_<mode>_mask3<round_name>,
21500 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21501 *avx512f_vmfmsub_<mode>_mask<round_name>,
21502 avx512f_vmfmsub_<mode>_mask3<round_name>,
21503 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21504 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21505 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21506 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21507 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21508 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21509 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21510 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21511 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21512 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21513 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21514 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21515 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21516 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21517 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21518 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21519 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21520 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21521 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21522 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21523 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21524 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21525 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21526 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21527 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21528 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21529 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21530 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21532 2019-03-21 Martin Sebor <msebor@redhat.com>
21534 PR tree-optimization/89350
21535 * builtins.c (compute_objsize): Also ignore offsets whose upper
21537 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21538 (builtin_memref::builtin_memref): Initialize new member.
21539 Allow EXPR to be null.
21540 (builtin_memref::extend_offset_range): Replace local with a member.
21541 Avoid assuming pointer offsets are unsigned.
21542 (builtin_memref::set_base_and_offset): Determine base object
21543 before computing offset range.
21544 (builtin_access::builtin_access): Handle memset.
21545 (builtin_access::generic_overlap): Replace local with a member.
21546 (builtin_access::strcat_overlap): Same.
21547 (builtin_access::overlap): Same.
21548 (maybe_diag_overlap): Same.
21549 (maybe_diag_access_bounds): Same.
21550 (wrestrict_dom_walker::check_call): Handle memset.
21551 (check_bounds_or_overlap): Same.
21553 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21554 Jakub Jelinek <jakub@redhat.com>
21557 * tree.c (fld_type_variant, fld_incomplete_type_of,
21558 fld_process_array_type): Call fld->pset.add and don't call
21559 add_tree_to_fld_list if it returns true.
21560 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21561 non-marked types from TYPE_NEXT_VARIANT list.
21562 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21564 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21566 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21567 to false, if true, don't alloc_entries during construction, but defer
21568 it to the first method that needs m_entries allocated.
21569 (hash_table::hash_table, hash_table::~hash_table,
21570 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21571 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21572 hash_table::clear_slot, hash_table::traverse_noresize,
21573 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21574 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21576 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21577 NO_INSERT instead of find_with_hash.
21578 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21579 hash_set::m_table): Add Lazy to template params of hash_table.
21580 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21581 * attribs.c (test_attribute_exclusions): Likewise.
21582 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21583 hash_set. Add tests for hash_set with Lazy = true.
21585 2019-03-21 Richard Biener <rguenther@suse.de>
21587 PR tree-optimization/89779
21588 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21589 checks with respect to released SSA names now having error_mark_node
21591 * fold-const.c (operand_equal_p): Likewise.
21593 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21596 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21598 (s390_optimize_register_info): Use global_not_special_regno_p to
21599 check for global regs.
21601 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21604 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21605 update this_alternative nor this_alternative_set.
21607 2019-03-19 Jim Wilson <jimw@sifive.com>
21610 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21611 align, size, offset. Use them to handle a BLKmode reference. Update
21613 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21615 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21617 PR rtl-optimization/89768
21618 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21619 instead of GEN_INT.
21620 (unroll_loop_runtime_iterations): Likewise.
21622 2019-03-19 Martin Sebor <msebor@redhat.com>
21624 PR tree-optimization/89644
21625 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21626 rather than endptr as an indicator of nul-termination.
21628 PR tree-optimization/89644
21629 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21630 arrays in determining sequence sizes in strncpy and stpncpy.
21632 2019-03-19 Martin Liska <mliska@suse.cz>
21634 PR middle-end/89737
21635 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21636 unlikely_edges if there's an edge that belongs to both these sets.
21638 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21641 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21642 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21643 go via a stack temporary.
21645 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21648 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21649 instead of gen_rtx_SUBREG.
21650 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21652 2019-03-19 Richard Biener <rguenther@suse.de>
21655 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21657 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21661 * tree.c (free_lang_data_in_decl): Do not free context of C++
21664 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21667 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21668 subs for the first alternative except when operands[3] is 1.
21671 * gimplify.c (gimplify_asm_expr): For output argument with
21672 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21675 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21677 PR rtl-optimization/89753
21678 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21679 explicit unrolling factor even more robust.
21681 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21684 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21685 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21686 signed zeros, do another copysign after the compensation.
21688 2019-03-18 Martin Sebor <msebor@redhat.com>
21690 PR tree-optimization/89720
21691 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21692 more conservatively, the same as anti-range.
21694 2019-03-18 Richard Biener <rguenther@suse.de>
21696 PR middle-end/88945
21697 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21698 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21699 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21700 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21702 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21704 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21705 Extend queue to 1024 entries.
21706 Add "consumed" field.
21707 (gomp_print_output): Remove print_index parameter.
21708 Add final parameter.
21709 Change limit to unsigned.
21710 Use consumed field to implement circular buffer.
21711 Detect interrupted print in final pass.
21712 Flush output at the end.
21713 (run): Update gomp_print_output usage.
21714 (main): Initialize kernargs->output_data.consumed.
21716 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21718 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21719 calculation of the minimum number of scalar iterations for
21720 fully-predicated loops.
21722 2019-03-18 Martin Jambor <mjambor@suse.cz>
21724 PR tree-optimization/89546
21725 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21726 any propagation to its children took place.
21728 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21731 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21732 parameter, and make use of it.
21733 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21735 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21737 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21738 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21739 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21740 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21741 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21742 match what the ops is doing.
21743 (push_multi_fp_blink): Likewise.
21744 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21745 compiling for size and elf target.
21746 (arc_save_callee_enter): Adjust note to match what enter/leave
21749 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21751 * config/arc/arc.md (tst_movb): Fix constraint.
21753 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21755 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21757 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21759 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21760 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21761 reg_alloc_order references.
21762 (size_alloc_order): Define.
21763 (arc_adjust_reg_alloc_order): New function.
21764 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21766 (ADJUST_REG_ALLOC_ORDER): Define.
21767 (HONOR_REG_ALLOC_ORDER): Likewise.
21769 2019-03-18 Richard Biener <rguenther@suse.de>
21772 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21773 loads and stores a bit more.
21775 2019-03-18 Richard Biener <rguenther@suse.de>
21778 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21779 load pessimization to stores as well.
21781 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21783 PR middle-end/86979
21784 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21785 successor, use NULL as its av set.
21787 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21789 PR rtl-optimization/89721
21790 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21792 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21795 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21796 When handling vec_extract, use modular arithmetic to allow
21797 constant selectors greater than vector length.
21798 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21799 V1TImode vectors to have constant selector values greater than 0.
21800 Use modular arithmetic to compute vector index.
21801 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21802 index for in-memory vectors. Correct code generation for
21803 in-register vectors.
21804 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21807 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21811 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21814 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21817 * tree.c (inchash::add_expr): Strip any location wrappers.
21818 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21819 after hash verification.
21822 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21823 SIGN_EXTEND and ZERO_EXTEND.
21825 2019-03-14 Jason Merrill <jason@redhat.com>
21826 Jakub Jelinek <jakub@redhat.com>
21828 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21829 than if is_empty (*slot).
21830 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21831 existing elt and for elt removal.
21832 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21833 of already removed elt.
21835 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21838 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21839 REG_EH_REGION note.
21841 2019-03-14 Martin Liska <mliska@suse.cz>
21844 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21846 2019-03-14 Richard Biener <rguenther@suse.de>
21849 * config/i386/i386.c (make_resolver_func): Properly set
21850 DECL_CONTEXT on the RESULT_DECL.
21851 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21853 2019-03-14 Richard Biener <rguenther@suse.de>
21855 * gimple-pretty-print.c: Include cfgloop.h.
21856 (dump_gimple_phi): Adjust.
21857 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21858 (pp_cfg_jump): Adjust.
21859 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21860 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21861 (lower_phi_internal_fn): Remove.
21862 (verify_gimple_call): Remove IFN_PHI special-casing.
21863 (dump_function_to_file): Dump IL state.
21864 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21865 done to deal with PHI nodes being present in non-SSA state.
21867 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21870 * multiple_target.c (create_dispatcher_calls): Change
21871 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21872 In the node->iterate_referring loop, push *ref rather than ref, call
21873 ref->remove_reference () and always pass 0 to iterate_referring.
21875 PR rtl-optimization/89679
21876 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21877 would contain a paradoxical SUBREG.
21879 2019-03-14 Richard Biener <rguenther@suse.de>
21881 PR tree-optimization/89710
21882 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21885 2019-03-14 Martin Liska <mliska@suse.cz>
21887 * coverage.c (coverage_begin_function): Stream also
21889 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21890 documentation about function declaration location.
21891 * gcov-dump.c (tag_function): Print whole range
21892 of function declaration.
21893 * gcov.c (struct function_info): Add end_column field.
21894 (function_info::function_info): Initialize it.
21895 (output_json_intermediate_file): Output {start,end}_column
21897 (read_graph_file): Read end_column.
21899 2019-03-14 Richard Biener <rguenther@suse.de>
21901 PR middle-end/89698
21902 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21903 that the access types are similar.
21905 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21907 PR tree-optimization/89703
21908 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21909 aren't compatible also with builtin_decl_explicit. Check pure
21910 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21911 and BUILT_IN_STPNCPY{,_CHK}.
21913 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21916 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21917 addr32 prefix to VSIB address for X32.
21918 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21920 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21921 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21922 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21923 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21924 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21925 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21926 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21927 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21928 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21929 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21930 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21931 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21932 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21933 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21934 (*avx512f_scatterdi<mode>): Likewise.
21936 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21939 * lra-constraints.c (inherit_in_ebb): Update
21940 potential_reload_hard_regs along with live_hard_regs.
21942 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21945 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21947 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21949 2019-03-13 Martin Sebor <msebor@redhat.com>
21951 PR tree-optimization/89662
21952 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21955 2019-03-13 Richard Biener <rguenther@suse.de>
21957 PR middle-end/89677
21958 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21959 throw FP expressions at tree-affine.
21961 2019-03-14 Richard Biener <rguenther@suse.de>
21963 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21964 dump negative integer constants using _Literal (type) -num.
21966 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21968 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21969 nonlocal_value member.
21971 PR middle-end/88588
21972 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21973 (ipa_simd_modify_function_body): Handle PHIs.
21975 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21977 * config/s390/s390.c (s390_option_override_internal): Use more
21978 aggressive inlining parameters.
21980 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21982 * config/s390/3906.md: New file.
21983 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21984 (LONGRUNNING_THRESHOLD): Remove.
21985 (MAX_SCHED_MIX_SCORE): Decrease.
21986 (MAX_SCHED_MIX_DISTANCE): Decrease.
21987 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21988 (struct s390_sched_state): New struct to hold scheduling state.
21989 (S390_SCHED_STATE_NORMAL): Remove.
21990 (S390_SCHED_STATE_CRACKED): Remove.
21991 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21992 (s390_get_sched_attrmask): Use new attribute.
21993 (s390_get_unit_mask): Use new units.
21994 (s390_is_fpd): New function.
21995 (s390_is_fxd): New function.
21996 (s390_is_longrunning): New function.
21997 (s390_sched_score): Use new functions.
21998 (s390_sched_reorder): Likewise.
21999 (s390_sched_variable_issue): Rework and use new functions.
22000 (s390_sched_init): Use new functions.
22001 * config/s390/s390.h (s390_tune_attr): Add z14.
22002 * config/s390/s390.md: Add z14.
22004 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22006 * config/s390/2964.md: Update pipeline description.
22007 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22008 (LONGRUNNING_THRESHOLD): Remove.
22009 (LATENCY_FACTOR): Remove.
22010 (s390_get_unit_mask): Add unit.
22011 (s390_sched_score): Use fxd/fpd.
22012 (s390_sched_variable_issue): Use fxd/fpd.
22014 2019-03-12 Martin Liska <mliska@suse.cz>
22016 * config/i386/i386.c: Reword an error message.
22018 2019-03-12 Martin Jambor <mjambor@suse.cz>
22020 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22021 terminate with newline.
22023 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22026 * config/s390/s390.md (tabort): Use %wd instead of
22027 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22028 letters and periods.
22029 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22030 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22033 PR middle-end/89663
22034 * builtins.c (expand_builtin_int_roundingfn,
22035 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22036 gcc_unreachable if validate_arglist fails.
22038 2019-03-12 Richard Biener <rguenther@suse.de>
22040 PR tree-optimization/89664
22041 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22042 free the occurance tree after the early out.
22044 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22046 PR middle-end/89655
22048 * vr-values.c (vr_values::update_value_range): If
22049 old_vr->varying_p (), don't update it, make new_vr also VARYING
22052 2019-03-11 Martin Liska <mliska@suse.cz>
22054 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22055 Fix double string quoting.
22057 2019-03-11 Martin Liska <mliska@suse.cz>
22059 * collect-utils.c (collect_wait): Wrap apostrophes
22060 in gcc internal format with %'.
22061 * collect2.c (main): Likewise.
22062 (scan_prog_file): Likewise.
22063 (scan_libraries): Likewise.
22064 * config/i386/i386.c (ix86_expand_call): Likewise.
22065 (ix86_handle_interrupt_attribute): Likewise.
22066 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22067 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22068 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22069 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22070 * symtab.c (symtab_node::verify_base): Likewise.
22071 * tree-cfg.c (verify_gimple_label): Likewise.
22072 * tree.c (verify_type_variant): Likewise.
22074 2019-03-11 Martin Liska <mliska@suse.cz>
22076 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22077 in a string format message and fix GNU coding style.
22078 (expand_builtin_set_thread_pointer): Likewise.
22079 * common/config/aarch64/aarch64-common.c
22080 (aarch64_rewrite_selected_cpu): Likewise.
22081 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22082 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22083 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22084 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22085 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22086 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22087 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22088 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22089 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22090 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22092 * common/config/riscv/riscv-common.c
22093 (riscv_subset_list::parsing_subset_version): Likewise.
22094 (riscv_subset_list::parse_std_ext): Likewise.
22095 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22096 (riscv_subset_list::parse): Likewise.
22097 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22098 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22099 (aarch64_override_options_internal): Likewise.
22100 (aarch64_validate_mcpu): Likewise.
22101 (aarch64_validate_march): Likewise.
22102 (aarch64_validate_mtune): Likewise.
22103 (aarch64_override_options): Likewise.
22104 * config/alpha/alpha.c (alpha_option_override): Likewise.
22105 * config/arc/arc.c (arc_init): Likewise.
22106 (parse_mrgf_banked_regs_option): Likewise.
22107 (arc_override_options): Likewise.
22108 (arc_expand_builtin_aligned): Likewise.
22109 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22110 (arm_expand_builtin): Likewise.
22111 * config/arm/arm.c (arm_option_check_internal): Likewise.
22112 (arm_configure_build_target): Likewise.
22113 (arm_option_override): Likewise.
22114 (arm_options_perform_arch_sanity_checks): Likewise.
22115 (arm_handle_cmse_nonsecure_entry): Likewise.
22116 (arm_handle_cmse_nonsecure_call): Likewise.
22117 (arm_tls_referenced_p): Likewise.
22118 (thumb1_expand_prologue): Likewise.
22119 * config/avr/avr.c (avr_option_override): Likewise.
22120 * config/bfin/bfin.c (bfin_option_override): Likewise.
22121 * config/c6x/c6x.c (c6x_option_override): Likewise.
22122 * config/cr16/cr16.c (cr16_override_options): Likewise.
22123 * config/cris/cris.c (cris_option_override): Likewise.
22124 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22125 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22126 * config/darwin.c (darwin_override_options): Likewise.
22127 * config/frv/frv.c (frv_expand_builtin): Likewise.
22128 * config/h8300/h8300.c (h8300_option_override): Likewise.
22129 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22130 (ix86_option_override_internal): Likewise.
22131 (warn_once_call_ms2sysv_xlogues): Likewise.
22132 (ix86_expand_prologue): Likewise.
22133 (split_stack_prologue_scratch_regno): Likewise.
22134 (ix86_warn_parameter_passing_abi): Likewise.
22135 * config/ia64/ia64.c (fix_range): Likewise.
22136 * config/m68k/m68k.c (m68k_option_override): Likewise.
22137 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22138 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22139 (mips_set_compression_mode): Likewise.
22140 * config/mmix/mmix.c (mmix_option_override): Likewise.
22141 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22142 * config/msp430/msp430.c (msp430_option_override): Likewise.
22143 * config/nds32/nds32.c (nds32_option_override): Likewise.
22144 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22145 (nios2_option_override): Likewise.
22146 (nios2_expand_custom_builtin): Likewise.
22147 * config/nvptx/mkoffload.c (main): Likewise.
22148 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22149 * config/pa/pa.c (fix_range): Likewise.
22150 (pa_option_override): Likewise.
22151 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22152 (riscv_option_override): Likewise.
22153 * config/rl78/rl78.c (rl78_option_override): Likewise.
22154 * config/rs6000/aix61.h: Likewise.
22155 * config/rs6000/aix71.h: Likewise.
22156 * config/rs6000/aix72.h: Likewise.
22157 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22158 * config/rs6000/freebsd64.h: Likewise.
22159 * config/rs6000/linux64.h: Likewise.
22160 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22161 (rs6000_expand_zeroop_builtin): Likewise.
22162 (rs6000_expand_mtfsb_builtin): Likewise.
22163 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22164 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22165 (rs6000_invalid_builtin): Likewise.
22166 (rs6000_expand_split_stack_prologue): Likewise.
22167 * config/rs6000/rtems.h: Likewise.
22168 * config/rx/rx.c (valid_psw_flag): Likewise.
22169 (rx_expand_builtin): Likewise.
22170 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22171 * config/s390/s390.c (s390_expand_builtin): Likewise.
22172 (s390_function_profiler): Likewise.
22173 (s390_option_override_internal): Likewise.
22174 (s390_option_override): Likewise.
22175 * config/sh/sh.c (sh_option_override): Likewise.
22176 (sh_builtin_saveregs): Likewise.
22177 (sh_fix_range): Likewise.
22178 * config/sh/vxworks.h: Likewise.
22179 * config/sparc/sparc.c (sparc_option_override): Likewise.
22180 * config/spu/spu.c (spu_option_override): Likewise.
22181 (fix_range): Likewise.
22182 * config/visium/visium.c (visium_option_override): Likewise.
22183 (visium_handle_interrupt_attr): Likewise.
22184 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22185 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22186 (dbg_cnt_process_opt): Likewise.
22187 * dwarf2out.c (output_dwarf_version): Likewise.
22188 * except.c (expand_eh_return): Likewise.
22189 * gcc.c (defined): Likewise.
22190 (driver_handle_option): Likewise.
22191 (process_command): Likewise.
22192 (compare_files): Likewise.
22193 (driver::prepare_infiles): Likewise.
22194 (driver::do_spec_on_infiles): Likewise.
22195 (driver::maybe_run_linker): Likewise.
22196 * omp-offload.c (oacc_parse_default_dims): Likewise.
22197 * opts-global.c (handle_common_deferred_options): Likewise.
22198 * opts.c (parse_sanitizer_options): Likewise.
22199 (common_handle_option): Likewise.
22200 (enable_warning_as_error): Likewise.
22201 * passes.c (enable_disable_pass): Likewise.
22202 * plugin.c (parse_plugin_arg_opt): Likewise.
22203 (default_plugin_dir_name): Likewise.
22204 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22205 (default_pch_valid_p): Likewise.
22206 * toplev.c (init_asm_output): Likewise.
22207 (process_options): Likewise.
22208 (toplev::run_self_tests): Likewise.
22209 * tree-cfg.c (verify_gimple_call): Likewise.
22210 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22211 (tree_inlinable_function_p): Likewise.
22212 * var-tracking.c (vt_find_locations): Likewise.
22214 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22216 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22217 only on the else branch.
22219 2019-03-11 Martin Liska <mliska@suse.cz>
22221 * gcov.c (output_intermediate_json_line): Print function
22223 (output_json_intermediate_file): Add new argument.
22224 * doc/gcov.texi: Document the change.
22226 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22228 PR rtl-optimization/89588
22229 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22230 explicit unrolling factor more robust.
22232 2019-03-11 Richard Biener <rguenther@suse.de>
22234 PR tree-optimization/89649
22235 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22236 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22237 on the prolog and epilog loops.
22238 (vect_loop_versioning): Return copy of loop.
22239 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22240 on the non-vectorized version of the loop.
22242 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22245 * config/i386/sse.md (*vec_extractv2di_0_sse):
22246 Add (=r,x) alternative and corresponding splitter.
22248 2019-03-10 Martin Jambor <mjambor@suse.cz>
22250 PR tree-optimization/85762
22251 PR tree-optimization/87008
22252 PR tree-optimization/85459
22253 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22254 it points to if there is a type changing MEM_REF. Adjust all callers.
22255 (build_accesses_from_assign): Disable total scalarization if
22256 contains_vce_or_bfcref_p returns true through the new parameter, for
22259 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22262 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22263 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22266 * common.opt (fdiagnostics-show-labels,
22267 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22268 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22269 gas-locview-support, ginline-points, ginternal-reset-location-views):
22270 Terminate description text with a dot.
22271 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22272 * config/mcore/mcore.opt (m210, m340): Likewise.
22273 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22274 mnops=): Start description text with a capital letter.
22275 * config/arc/arc.opt (msize-level=): Likewise.
22276 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22277 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22278 mnewlib): Likewise.
22279 * config/ft32/ft32.opt (msim): Likewise.
22280 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22281 (mnodiv, mnopm): Terminate description text with a dot.
22282 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22284 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22286 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22289 PR rtl-optimization/89634
22290 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22291 are modified in BB_END (e->src) instruction.
22293 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22296 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22297 messages more amenable to translation, and improve wording.
22299 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22301 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22302 ud- and du-chains between phases.
22304 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22307 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22308 instead of POLY_INT_CST.
22310 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22312 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22315 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22320 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22321 (_mm_storeu_si64): Ditto.
22323 2019-03-08 Martin Liska <mliska@suse.cz>
22326 * config/i386/i386.c (ix86_option_override_internal): Disable
22327 jump tables when retpolines are used.
22329 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22332 * ipa-split.c (execute_split_functions): Do not split
22333 'noinline' or 'section' function.
22335 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22338 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22339 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22340 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22343 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22344 from diagnostics. Formatting fixes.
22347 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22348 warn_odr diagnostics.
22351 * lra-constraints.c (process_alt_operands): Avoid one space before
22352 " at the end of line and another after " on another line in a string
22354 * attribs.c (handle_dll_attribute): Likewise.
22355 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22357 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22358 warning_at or inform messages in G_() if there is no ?:.
22360 PR tree-optimization/89550
22361 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22362 returned true. Formatting fixes.
22363 (expand_builtin_strnlen): Formatting fixes.
22364 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22365 if warning_at returned true.
22366 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22368 2019-03-08 Richard Biener <rguenther@suse.de>
22370 PR middle-end/89578
22371 * cfgloop.h (struct loop): Add owned_clique field.
22372 * cfgloopmanip.c (copy_loop_info): Copy it.
22373 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22375 * tree-inline.c (copy_loops): Remap owned_clique.
22376 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22377 * lto-streamer-out.c (output_cfg): Likewise.
22379 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22382 * config/darwin.c: Include intl.h.
22383 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22384 composing the message out of two separate parts.
22386 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22389 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22390 doesn't start with a capital letter and doesn't end with a dot.
22391 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22392 with a capital letter.
22393 (ix86_mangle_function_version_assembler_name): Likewise.
22394 (ix86_generate_version_dispatcher_body): Likewise.
22395 (fold_builtin_cpu): Likewise.
22396 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22397 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22398 translators, wrap full type name in %qs.
22400 PR translation/79999
22401 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22402 depend clause with source (or sink) modifier.
22403 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22406 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22407 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22408 (avx512f_load<mode>_mask): New define_expand.
22409 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22410 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22411 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22412 __builtin_ia32_movess_mask): New builtins.
22413 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22414 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22415 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22416 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22418 2019-03-07 Martin Jambor <mjambor@suse.cz>
22421 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22422 for extern inline functions.
22424 2019-03-07 Martin Jambor <mjambor@suse.cz>
22427 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22428 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22429 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22430 have multiple callees. At the end check if declarations match as
22431 opposed to cgraph_nodes.
22433 2019-03-07 Martin Liska <mliska@suse.cz>
22435 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22436 which is equivalent to searching for this in clones chain.
22437 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22438 names with a neighbour and special case first node in a chain.
22440 2019-01-25 Jason Merrill <jason@redhat.com>
22442 PR c++/80916 - spurious "static but not defined" warning.
22443 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22444 for an internal symbol with DECL_EXTERNAL.
22446 2019-04-07 Richard Biener <rguenther@suse.de>
22448 PR middle-end/89618
22449 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22450 * tree-inline.c (copy_loops): Simplify.
22452 2019-03-07 Martin Liska <mliska@suse.cz>
22454 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22456 2019-03-07 Richard Biener <rguenther@suse.de>
22458 PR tree-optimization/89595
22459 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22460 stmt iterator as reference, take boolean output parameter to
22461 indicate whether the stmt was removed and thus the iterator
22463 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22464 stmts created by folding.
22466 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22469 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22472 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22474 PR rtl-optimization/88845
22475 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22477 * lra.c (remove_scratches_1): New function.
22478 (remove_scratches): Use it.
22479 (lra_emit_move): Likewise.
22481 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22483 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22484 unaligned_access variable.
22485 * config/arc/arc.c (arc_override_options): Set unaligned access
22486 default on for HS CPUs.
22487 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22489 2019-03-06 Martin Liska <mliska@suse.cz>
22491 PR gcov-profile/89577
22492 * doc/gcov.texi: Prefer to use --coverage.
22493 * doc/sourcebuild.texi: Likewise.
22495 2019-03-02 Jason Merrill <jason@redhat.com>
22497 PR c++/86485 - -Wmaybe-unused with empty class ?:
22498 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22500 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22503 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22506 PR middle-end/89590
22507 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22508 exactly one argument.
22510 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22511 Richard Sandiford <richard.sandiford@arm.com>
22513 PR tree-optimization/89570
22514 * match.pd (vec_cond into cond_op simplification): Don't use
22515 get_conditional_internal_fn, use as_internal_fn (cond_op).
22517 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22520 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22521 to decide when to split off a non-zero offset from a symbol.
22522 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22523 in function symbols.
22525 2019-03-05 Richard Biener <rguenther@suse.de>
22527 PR tree-optimization/89594
22528 * tree-if-conv.c (pass_if_conversion::execute): Handle
22529 case where .LOOP_VECTORIZED_FUNCTION was removed.
22531 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22534 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22535 instead alloca it only when needed with the needed size.
22537 PR tree-optimization/89570
22538 * match.pd (vec_cond into cond_op simplification): Guard with
22539 vectorized_internal_fn_supported_p test and #if GIMPLE.
22541 PR tree-optimization/89566
22542 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22543 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22544 Punt if get_user_idx_format succeeds, but idx_format argument is
22545 not provided or doesn't have pointer type, or if idx_args is above
22546 number of provided arguments.
22548 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22550 PR tree-optimization/89437
22551 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22553 2019-03-04 Richard Biener <rguenther@suse.de>
22555 PR middle-end/89572
22556 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22559 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22561 PR tree-optimization/89487
22562 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22563 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22564 (distribute_loop): Don't do runtime alias check if there is non-
22565 addressable data reference.
22566 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22567 is a register variable.
22569 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22572 * config/arm/arm.md (cmpsi2_addneg): Use
22573 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22574 If operands[2] is 0 or INT_MIN, force use of subs.
22575 (*compare_scc splitter): Use gen_int_mode.
22576 (*negscc): Likewise.
22577 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22579 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22580 Monk Chiang <sh.chiang04@gmail.com>
22582 * common/config/riscv/riscv-common.c: Include sstream.
22583 (riscv_subset_list::to_string): New.
22584 (riscv_arch_str): Likewise.
22585 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22586 * config.in: Regen.
22587 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22588 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22589 (riscv_emit_attribute): New.
22590 (riscv_file_start): Emit attribute if needed.
22591 (riscv_option_override): Init riscv_emit_attribute_p.
22592 * config/riscv/riscv.opt (mriscv-attribute): New option.
22593 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22594 * configure: Regen.
22595 * doc/install.texi: Document --with-riscv-attribute.
22596 * doc/invoke.texi: Document -mriscv-attribute.
22598 * common/config/riscv/riscv-common.c:
22599 Include config/riscv/riscv-protos.h.
22600 (INCLUDE_STRING): Defined.
22601 (RISCV_DONT_CARE_VERSION): Defined.
22602 (riscv_subset_t): Declare.
22603 (riscv_subset_t::riscv_subset_t): New.
22604 (riscv_subset_list): Declare.
22605 (riscv_subset_list::riscv_subset_list): New.
22606 (riscv_subset_list::~riscv_subset_list): Likewise.
22607 (riscv_subset_list::parsing_subset_version): Likewise.
22608 (riscv_subset_list::parse_std_ext): Likewise.
22609 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22610 (riscv_subset_list::add): Likewise.
22611 (riscv_subset_list::lookup): Likewise.
22612 (riscv_subset_list::xlen): Likewise.
22613 (riscv_subset_list::parse): Likewise.
22614 (riscv_supported_std_ext): Likewise.
22615 (current_subset_list): Likewise.
22616 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22619 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22621 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22622 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22623 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22625 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22627 PR rtl-optimization/85899
22628 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22629 fallthru edges leading to the exit block.
22631 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22634 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22635 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22637 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22639 PR tree-optimization/89535
22640 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22641 for each operand. Calculate the fallback choice for mask operands
22642 and pass it to vect_get_vec_def_for_operand.
22644 2019-03-01 Richard Biener <rguenther@suse.de>
22646 PR middle-end/89541
22647 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22648 get virtual operands.
22649 (get_expr_operands): Handle CONST_DECL like other decls.
22651 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22653 PR middle-end/89503
22654 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22655 on DECL_P and EXPR_P.
22657 2019-03-01 Richard Biener <rguenther@suse.de>
22659 PR middle-end/89497
22660 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22661 argument, defaulted to zero.
22662 * passes.c (execute_function_todo): Pass down SSA update flags
22663 to cleanup_tree_cfg.
22664 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22665 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22667 (cleanup_tree_cfg): Get and pass down SSA update flags.
22669 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22672 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22673 early_lto_debug argument.
22675 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22677 PR tree-optimization/89536
22678 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22679 only whether bit #0 of the value is 0 instead of the entire value.
22681 2019-02-28 Marek Polacek <polacek@redhat.com>
22683 PR c++/87068 - missing diagnostic with fallthrough statement.
22684 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22685 at the end of a seq, save its location to walk_stmt_info.
22686 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22689 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22692 * tree.c (find_atomic_core_type): Move ahead in file.
22693 (check_base_type): Correctly compare alignments of atomic types.
22695 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22698 * config/i386/i386.c (get_builtin_code_for_version): Identify
22699 Westmere from PCLMUL, instead of AES.
22701 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22704 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22705 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22708 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22711 * config/aarch64/aarch64-option-extensions.def: Document it.
22712 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22715 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22718 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22719 builtins if they don't have a single scalar floating point argument.
22722 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22724 PR rtl-optimization/89490
22725 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22726 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22727 block section is not mergeable.
22729 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22732 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22733 old define_insn to ...
22734 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22735 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22736 Rename old define_insn to ...
22737 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22738 (thumb2_casesi_internal_pic): New define_expand. Rename old
22740 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22741 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22742 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22744 2019-02-27 Richard Biener <rguenther@suse.de>
22747 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22749 2019-02-27 Richard Biener <rguenther@suse.de>
22751 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22754 2019-02-27 Richard Biener <rguenther@suse.de>
22757 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22758 parameter, prefix section name with .gnu.debuglto_ if true.
22759 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22760 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22762 2019-02-27 Richard Biener <rguenther@suse.de>
22765 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22766 rather than on use_debug_types, doing what output_die does.
22767 (value_format): Likewise.
22769 2019-02-27 Martin Jambor <mjambor@suse.cz>
22770 Martin Sebor <msebor@redhat.com>
22772 * doc/invoke.texi (Warning Options): Reword description of
22773 -Wno-absolute-value.
22775 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22777 PR tree-optimization/89280
22778 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22779 builtin_setjmp_setup_bb): New functions.
22780 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22781 When visiting __builtin_setjmp_setup block, queue in special
22782 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22783 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22784 from visited after the loop if they don't have any visited successor
22787 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22789 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22791 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22793 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22796 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22797 with types other than sizetype/ssizetype.
22799 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22801 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22802 (enum sparc_processor_type): ...this.
22803 (enum sparc_code_model_type): New enumeration type.
22804 (enum sparc_memory_model_type): Tweak comments.
22805 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22807 (mcmodel): Use sparc_code_model enumeration and variable.
22808 (sparc_code_model): New enumeration.
22809 (mdebug): Add Undocumented marker.
22810 * config/sparc/sparc.h (enum cmodel): Delete.
22811 (sparc_cmodel): Likewise.
22812 (TARGET_CM_MEDLOW): Adjust to above renaming.
22813 (TARGET_CM_MEDMID): Likewise.
22814 (TARGET_CM_MEDANY): Likewise.
22815 (TARGET_CM_EMBMEDANY): Likewise.
22816 * config/sparc/sparc.c (sparc_cmodel): Delete.
22817 (sparc_option_override): Remove string/value mapping support for the
22818 code model. Move code and memory model support to after the handling
22819 of target flags. Do private machine setup last.
22820 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22821 (sparc_legitimize_reload_address): Likewise.
22822 (sparc_output_mi_thunk): Likewise.
22823 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22825 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22827 PR tree-optimization/89500
22828 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22829 (handle_builtin_strlen): Remove noncst_bound variable. Always
22830 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22831 cst if the first cst bytes starting at x are known to be non-zero,
22832 even if the string is not zero terminated. Don't try to modify
22833 *si for strnlen. Update strlen_to_stridx only for strlen or if
22834 we can prove strnlen returns the same value as strlen would.
22836 2019-02-26 Martin Liska <mliska@suse.cz>
22838 * alloc-pool.h (struct pool_usage): Remove extra
22840 * bitmap.h (struct bitmap_usage): Likewise.
22841 * ggc-common.c (struct ggc_usage): Likewise.
22842 * mem-stats.h (struct mem_usage): Likewise.
22843 (mem_alloc_description::dump): Print dash lines
22844 here and repeat header at the end of a table report.
22845 It's then more readable.
22846 * tree-phinodes.c (phinodes_print_statistics): Make
22847 horizontal alignment.
22848 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22849 * vec.c (struct vec_usage): Remove extra print_dash_line.
22850 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22852 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22854 * doc/extend.texi (__builtin_object_size):
22855 Use @pxref instead of @xref inside parenthesis.
22856 (__builtin_has_attribute): Add missing comma after @xref.
22857 (__builtin_object_size): Ditto.
22858 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22860 2019-02-26 Jeff Law <law@redhat.com>
22862 PR rtl-optimization/87761
22863 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22864 detect obviously dead insns and delete them.
22866 2019-02-26 Richard Biener <rguenther@suse.de>
22868 PR tree-optimization/89505
22869 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22870 to handle restrict pointed-to vars with multiple subvars
22873 2019-02-26 Richard Biener <rguenther@suse.de>
22875 PR tree-optimization/89489
22876 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22878 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22880 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22881 and move around comment.
22882 <BIT_AND_EXPR>: Likewise.
22883 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22885 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22888 * config/i386/i386.c (remove_partial_avx_dependency): Call
22889 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22890 after changing possibly many instructions to use that pseudo. Fix up
22891 insertion of v4sf_const0 setter at the start of bb.
22893 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22896 * doc/extend.texi (Variadic Pointer Args): New section.
22898 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22899 Martin Sebor <msebor@gmail.com>
22901 * common.opt (Wattribute-alias): Likewise.
22902 * doc/invoke.texi (Option Summary): List general form of
22903 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22904 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22905 Add cross-references.
22906 (-Wattribute-alias): Rewrite and correct default. Mention
22907 considered attributes (same as for -Wmissing-attributes).
22909 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22911 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22912 (_mm_cvtpd_ps): Likewise.
22913 (_mm_cvttpd_epi32): Likewise.
22916 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22917 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22920 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22922 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22925 * common/config/aarch64/aarch64-common.c
22926 (struct aarch64_option_extension): Add is_synthetic.
22927 (all_extensions): Use it.
22928 (TARGET_OPTION_INIT_STRUCT): Define hook.
22929 (struct gcc_targetm_common): Moved to end.
22930 (all_extensions_by_on): New.
22931 (opt_ext_cmp, typedef opt_ext): New.
22932 (aarch64_option_init_struct): New.
22933 (aarch64_contains_opt): New.
22934 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22935 * config/aarch64/aarch64-option-extensions.def
22936 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22937 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22938 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22939 Set is_synthetic to false.
22940 (crypto): Set is_synthetic to true.
22941 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22944 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22946 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22947 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22948 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22949 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22950 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22951 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22952 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22953 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22955 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22956 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22957 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22958 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22959 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22960 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22961 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22962 vfmlsl_laneq_high_f16): ... To this.
22963 * config/arm/neon.md: Update comments.
22965 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22967 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22968 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22969 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22970 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22971 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22972 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22973 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22974 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22976 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22977 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22978 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22979 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22980 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22981 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22982 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22983 vfmlslq_laneq_high_f16): ... To this.
22985 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22987 PR rtl-optimization/86096
22988 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22989 comparing mw_order values.
22991 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22994 * config/arm/arm.md (*subsi3_carryin_const): Use
22995 arm_neg_immediate_operand predicate instead of
22996 arm_not_immediate_operand, "L" constraint instead of "K" and
22997 print it using %n2 instead of %B2.
22998 (*subsi3_carryin_const0): New define_insn.
22999 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23000 instead of arm_not_operand and "I" constraint instead of "K" and
23001 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23002 another match_operand and in the condition check that it is negation
23004 (*subsi3_carryin_compare_const0): New define_ins.
23005 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23006 *subsi3_carryin_const.
23007 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23008 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23011 * config/arm.vfp.md (*negdf2_vfp): Use
23012 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23013 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23015 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23017 PR rtl-optimization/89445
23018 * simplify-rtx.c (simplify_ternary_operation): Don't use
23019 simplify_merge_mask on operands that may trap.
23020 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23021 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23022 second operand is CONST_VECTOR, check if any element could be zero.
23023 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23024 their operands can trap.
23026 2019-02-23 Martin Sebor <msebor@redhat.com>
23028 * gimple-ssa-sprintf.c (target_strtol): Rename...
23029 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23030 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23031 check for range error.
23033 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23036 * opts-common.c (prune_options): Also prune joined switches
23037 with Negative and RejectNegative.
23038 * config/i386/i386.opt (march=): Add Negative(march=).
23039 (mtune=): Add Negative(mtune=).
23040 * doc/options.texi: Document Negative used together with Joined
23041 and RejectNegative.
23043 2019-02-22 Martin Sebor <msebor@redhat.com>
23045 * doc/extend.texi (Other Builtins): Add
23046 __builtin_is_constant_evaluated.
23048 2019-02-22 Richard Biener <rguenther@suse.de>
23050 PR tree-optimization/87609
23051 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23053 2019-02-22 Jeff Law <law@redhat.com>
23055 PR rtl-optimization/87761
23056 * config/mips/mips.md: Add new combiner pattern to recognize
23057 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23059 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23062 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23063 destination register in peepholes generating patterns for ADDS/SUBS.
23064 (add<mode>3_compare0,
23065 *addsi3_compare0_uxtw, add<mode>3_compareC,
23066 add<mode>3_compareV_imm, add<mode>3_compareV,
23067 *adds_<optab><ALLX:mode>_<GPI:mode>,
23068 *subs_<optab><ALLX:mode>_<GPI:mode>,
23069 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23070 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23071 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23072 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23073 sub<mode>3_compare1): Allow stack pointer for source register.
23074 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23076 2019-02-22 Martin Sebor <msebor@redhat.com>
23078 PR tree-optimization/88993
23079 PR tree-optimization/88853
23080 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23082 (sprintf_dom_walker::call_info::is_string_func): New helper.
23083 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23084 for formatted string functions.
23085 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23087 2019-02-22 Martin Sebor <msebor@redhat.com>
23090 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23091 unreachable subexpressions.
23093 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23094 Hongtao Liu <hongtao.liu@intel.com>
23095 Sunil K Pandey <sunil.k.pandey@intel.com>
23098 * config/i386/i386-passes.def: Add
23099 pass_remove_partial_avx_dependency.
23100 * config/i386/i386-protos.h
23101 (make_pass_remove_partial_avx_dependency): New.
23102 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23104 (pass_data_remove_partial_avx_dependency): New.
23105 (pass_remove_partial_avx_dependency): Likewise.
23106 (make_pass_remove_partial_avx_dependency): Likewise.
23107 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23108 (*extendsfdf2): Add avx_partial_xmm_update.
23109 (truncdfsf2): Likewise.
23110 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23111 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23113 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23115 PR middle-end/85598
23116 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23119 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23122 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23123 (PTA_SKYLAKE): Add PTA_AES.
23124 (PTA_GOLDMONT): Likewise.
23126 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23128 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23129 instruction if enabled.
23130 (aarch64_override_options): Remove reference to return address key.
23132 2019-02-22 Richard Biener <rguenther@suse.de>
23134 PR tree-optimization/89440
23135 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23136 not necessary assert.
23138 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23141 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23142 (oacc_replace_fn_attrib_attr): ... this new function.
23143 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23144 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23146 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23148 * config/arm/arm-cpus.in (ares): Rename to...
23149 (neoverse-n1): ... This. Add ares as alias.
23150 * config/arm/arm-tables.opt: Regenerate.
23151 * config/arm/arm-tune.md: Likewise.
23152 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23154 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23156 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23157 * config/aarch64/aarch64-tune.md: Regenerate.
23158 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23160 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23162 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23163 (neoversen1_tunings): ... This.
23164 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23165 (neoverse-n1): New CPU.
23166 * config/aarch64/aarch64-tune.md: Regenerate.
23167 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23169 2019-02-22 Richard Biener <rguenther@suse.de>
23171 PR middle-end/87609
23172 * cfghooks.h (dependence_hash): New typedef.
23173 (struct copy_bb_data): New type.
23174 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23175 (duplicate_block): Likewise.
23176 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23177 (copy_bbs): Create and pass down copy_bb_data.
23178 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23179 (rtl_duplicate_bb): Likewise.
23180 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23181 remap dependence info.
23183 2019-02-22 Richard Biener <rguenther@suse.de>
23185 PR tree-optimization/87609
23186 * tree-core.h (tree_base): Document special clique values.
23187 * tree-inline.c (remap_dependence_clique): Do not use the
23188 special clique value of one.
23189 (maybe_set_dependence_info): Use clique one.
23190 (clear_dependence_clique): New callback.
23191 (compute_dependence_clique): Clear clique one from all refs
23192 before assigning it (again).
23194 2019-02-21 Martin Sebor <msebor@redhat.com>
23196 * doc/extend.texi (__clear_cache): Correct signature.
23198 2019-02-21 Ian Lance Taylor <iant@golang.org>
23201 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23202 than output_constant_def.
23203 (add_constant_to_table): New static function.
23204 (output_constant_def): Call add_constant_to_table.
23205 (tree_output_constant_def): Likewise.
23207 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23210 * builtins.c (fold_builtin_arith_overflow): If first two args are
23211 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23214 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23217 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23218 error for -mindirect-branch/-mfunction-return with incompatible
23221 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23224 * constraints.md (q): Remove.
23225 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23228 2019-02-21 Martin Jambor <mjambor@suse.cz>
23231 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23232 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23233 (omp_adjust_for_condition): ...here. Added necessary parameters.
23234 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23235 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23236 proper values to new parameters of omp_adjust_for_condition.
23238 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23240 PR middle-end/89412
23241 * expr.c (expand_assignment): If result is a MEM, use change_address
23242 instead of simplify_gen_subreg.
23244 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23245 David Malcolm <dmalcolm@redhat.com>
23247 PR middle-end/89091
23248 * fold-const.c (decode_field_reference): Return NULL_TREE if
23249 lang_hooks.types.type_for_size returns NULL. Check it before
23250 overwriting *exp_. Use return NULL_TREE instead of return 0.
23252 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23254 PR middle-end/88074
23255 PR middle-end/89415
23256 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23259 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23262 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23263 TARGET_SSE in addition to TARGET_SSE_MATH.
23265 (ix86_excess_precision): Ditto.
23266 (ix86_float_exceptions_rounding_supported_p): Ditto.
23267 (use_rsqrt_p): Ditto.
23268 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23270 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23273 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23274 linenum_arith_t when determining if two adjacent line spans are
23275 close enough to merge.
23276 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23277 lines within each line_span.
23279 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23282 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23283 paradoxical SUBREGS.
23285 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23288 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23289 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23290 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23293 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23295 * config/gcn/gcn.c (print_operand): Fix typo.
23297 2019-02-19 Richard Biener <rguenther@suse.de>
23299 PR middle-end/88074
23300 * toplev.c (do_compile): Initialize mpfr's exponent range
23301 based on available float modes.
23303 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23305 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23306 as long as the epilogue isn't completed.
23308 2019-02-18 Martin Sebor <msebor@redhat.com>
23310 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23311 __has_cpp_attribute, and __has_include.
23313 2019-02-18 Martin Sebor <msebor@redhat.com>
23315 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23317 2019-02-18 Martin Sebor <msebor@redhat.com>
23319 PR middle-end/89294
23320 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23322 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23324 2019-02-18 Richard Biener <rguenther@suse.de>
23326 PR tree-optimization/89296
23327 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23328 of no-warning flag to cases that might emit the bogus warning.
23330 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23333 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23335 * config/arm/vfp.md (*movdi_vfp): Likewise.
23336 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23337 "q" constraint for operands[0].
23340 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23341 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23342 pattern in a temporary buffer.
23343 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23344 than 64-operands[2].
23347 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23348 s390_indirect_branch_settings): Define unconditionally.
23349 (s390_set_current_function): Likewise, but guard the whole body except
23350 the s390_indirect_branch_settings call with
23351 #if S390_USE_TARGET_ATTRIBUTE.
23352 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23354 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23355 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23356 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23357 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23358 HOST_WIDE_INT_1U instead of 1ULL.
23359 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23360 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23361 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23362 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23364 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23367 2019-02-18 Martin Jambor <mjambor@suse.cz>
23369 PR tree-optimization/89209
23370 * tree-sra.c (create_access_replacement): New optional parameter
23371 reg_tree. Use it as a type if non-NULL and access type is not of
23373 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23374 to create_access_replacement.
23375 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23376 Check lacc is non-NULL before attempting to re-create it on the RHS.
23378 2019-02-18 Martin Liska <mliska@suse.cz>
23381 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23383 (symbol_table::free_edge): Recycle m_summary_id.
23384 * cgraph.h (get_summary_id): New.
23385 (symbol_table::release_symbol): Set m_summary_id to -1
23387 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23388 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23389 function_summary to fast_function_summary.
23390 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23391 * ipa-pure-const.c (class funct_state_summary_t):
23392 Switch from function_summary to fast_function_summary.
23393 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23394 (class ipa_ref_opt_summary_t): Switch from function_summary
23395 to fast_function_summary.
23396 * symbol-summary.h (class function_summary_base): New class
23397 that is created from base of former function_summary.
23398 (function_summary_base::unregister_hooks): New.
23399 (class function_summary): Inherit from function_summary_base.
23400 (class call_summary_base): New class
23401 that is created from base of former call_summary.
23402 (class call_summary): Inherit from call_summary_base.
23403 (struct is_same): New.
23404 (class fast_function_summary): New summary class.
23405 (class fast_call_summary): New summary class.
23406 * vec.h (vec_safe_grow_cleared): New function.
23408 2019-02-18 Martin Liska <mliska@suse.cz>
23410 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23411 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23412 * doc/tm.texi: Document new target hook.
23413 * doc/tm.texi.in: Likewise.
23414 * target.def: Add new target macro.
23415 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23418 2019-02-17 Alan Modra <amodra@gmail.com>
23421 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23422 output reg on add insn.
23423 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23425 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23428 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23429 (PMULHRSW): Likewise.
23430 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23432 (ssse3_pmulhrswv4hi3): New expander.
23434 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23436 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23437 MMX. Add isa attribute.
23439 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23441 PR rtl-optimization/66152
23442 * builtins.h (c_readstr): Declare.
23443 * builtins.c (c_readstr): Remove forward declaration. Add
23444 null_terminated_p argument, if false, read all bytes from the
23445 string instead of stopping after '\0'.
23446 * expr.c (string_cst_read_str): New function.
23447 (store_expr): Use string_cst_read_str instead of
23448 builtin_strncpy_read_str. Try to store by pieces the whole
23449 exp_len first, and only if that fails, split it up into
23450 store by pieces followed by clear_storage. Formatting fix.
23452 * config/i386/i386.md (*movqi_internal): Remove static from
23453 buf variable. Use output_asm_insn (buf, operands); return "";
23454 instead of return buf;.
23455 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23456 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23457 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23459 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23461 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23462 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23463 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23464 (CC1_SPEC): Likewise.
23465 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23467 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23469 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23470 the base address on 64-bit strict-alignment platforms.
23472 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23474 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23476 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23478 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23480 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23482 PR rtl-optimization/88308
23483 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23484 on copied instruction.
23486 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23488 * final.c (insn_current_reference_address): Replace test on JUMP_P
23489 with test on jump_to_label_p.
23490 * config/visium/visium-passes.def: New file.
23491 * config/visium/t-visium (PASSES_EXTRA): Define.
23492 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23493 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23494 (TRAMPOLINE_ALIGNMENT): Define.
23495 * config/visium/visium.c (visium_option_override): Do not register
23496 the machine-specific reorg pass here.
23497 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23499 (output_branch): Adjust threshold for long branch instruction.
23500 * config/visium/visium.md (cpu): Move around.
23501 (length): Adjust for the GR6.
23503 2019-02-15 Richard Biener <rguenther@suse.de>
23504 Jakub Jelinek <jakub@redhat.com>
23506 PR tree-optimization/89278
23507 * tree-loop-distribution.c: Include tree-eh.h.
23508 (generate_memset_builtin, generate_memcpy_builtin): Call
23509 rewrite_to_non_trapping_overflow on builtin->size before passing it
23510 to force_gimple_operand_gsi.
23512 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23515 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23517 * opth-gen.awk: Likewise.
23519 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23521 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23522 Enable MMX, SSE and SSE2 by default.
23523 * config/i386/i386.c (ix86_option_override_internal): Do not
23524 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23526 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23528 PR rtl-optimization/89354
23529 * combine.c (make_extraction): Punt if extraction_mode is narrower
23532 2019-02-14 Maya Rashish <coypu@sdf.org>
23534 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23535 * config/netbsd-d.c: New file.
23536 * config/t-netbsd: Add netbsd-d.o
23538 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23540 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23541 affects_type_identity to true for aarch64_vector_pcs.
23542 (aarch64_comp_type_attributes): New function.
23543 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23545 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23548 * config/arm/iterators.md (ANY64): Add V4HF.
23550 2019-02-14 Martin Liska <mliska@suse.cz>
23552 PR rtl-optimization/89242
23553 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23554 process a transformation.
23556 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23558 PR tree-optimization/89314
23559 * fold-const.c (fold_binary_loc): Cast strlen argument to
23560 const char * before dereferencing it. Formatting fixes.
23562 PR middle-end/89284
23563 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23565 2019-02-13 Ian Lance Taylor <iant@golang.org>
23567 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23568 and set current index for other optimizations.
23570 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23572 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23573 nonimmediate_operand as operand 2 predicate.
23574 (vec_set<VF2_512_256:mode>_0): Ditto.
23575 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23576 (*vec_concatv2si): Remove alternative 2.
23577 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23578 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23579 (vec_concatv2di): Split alternatives 4,5,6 to ...
23580 (*vec_concatv2di_0) ... new pattern.
23582 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23585 * config/arm/arm.c (ldm_stm_operation_p) Set
23586 addr_reg_in_reglist correctly for first register.
23587 (load_multiple_sequence): Remove dead base check.
23588 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23590 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23593 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23594 Expose as @aarch64_pred_mov.
23595 * config/aarch64/aarch64.c (aarch64_classify_address):
23596 Use expand_insn which legitimizes operands.
23598 2019-02-13 Martin Liska <mliska@suse.cz>
23600 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23601 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23602 and pointer_offset fields.
23603 (initialize_argument_information): Remove usage of dead
23605 * cgraph.h (struct cgraph_thunk_info): Remove
23606 add_pointer_bounds_args.
23607 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23609 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23611 * config/i386/i386.c (ix86_function_arg_advance): Remove
23613 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23614 (def_builtin): Remove usage of dead fields.
23615 (ix86_add_new_builtins): Likewise.
23616 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23617 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23618 (sem_function::init): Likewise.
23619 (sem_variable::merge): Likewise.
23620 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23621 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23622 * lto-cgraph.c (lto_output_node): Likewise.
23623 (lto_output_varpool_node): Likewise.
23624 (input_node): Likewise.
23625 (input_varpool_node): Likewise.
23626 * lto-streamer-out.c (lto_output): Likewise.
23627 * tree-inline.c (expand_call_inline): Remove usage of
23629 * tree-inline.h (struct copy_body_data): Likewise.
23630 * varpool.c (varpool_node::dump): Likewise.
23632 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23634 PR middle-end/89303
23635 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23636 into pt->vars_contains_escaped_heap instead of setting
23637 pt->vars_contains_escaped_heap to it.
23639 PR middle-end/89281
23640 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23641 INTVAL (size), compare it to GET_MODE_MASK instead of
23642 1 << GET_MODE_BITSIZE.
23645 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23646 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23649 2019-02-13 Martin Liska <mliska@suse.cz>
23652 * cfgrtl.c (remove_barriers_from_footer): New function.
23653 (try_redirect_by_replacing_jump): Use it.
23654 (cfg_layout_redirect_edge_and_branch): Likewise.
23656 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23658 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23659 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23660 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23661 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23662 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23663 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23665 * config/rs6000/rs6000.c (builtin_function_type)
23666 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23667 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23668 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23669 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23670 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23672 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23674 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23675 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23677 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23680 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23681 268678 and revision 268657.
23682 (*movti_internal): Likewise.
23684 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23687 * config/s390/s390.c (s390_decompose_address): Update comment.
23688 (s390_check_qrst_address): Reject invalid address forms after
23691 2019-02-12 Martin Liska <mliska@suse.cz>
23694 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23695 we need default values of funct_state for a function that
23698 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23700 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23701 the object to pick the size of stores on strict-alignment platforms.
23703 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23704 (*movdi_insn_sp32): Likewise.
23705 (*movdi_insn_sp64): Likewise.
23707 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23710 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23711 types that needs constructiong.
23712 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23714 2019-02-12 Richard Biener <rguenther@suse.de>
23716 PR tree-optimization/89253
23717 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23718 duplicate the loop.
23720 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23723 * input.c (selftest::test_line_offset_overflow): New selftest.
23724 (selftest::input_c_tests): Call it.
23726 2019-02-11 Martin Sebor <msebor@redhat.com>
23728 PR tree-optimization/88771
23729 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23730 when -Wstringop-overflow is set.
23731 (builtin_memref::builtin_memref): Adjust excessive upper bound
23732 only when lower bound is not excessive.
23733 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23734 -Wstringop-ovefflow.
23735 (maybe_diag_offset_bounds): Rename...
23736 (maybe_diag_access_bounds): ...to this.
23737 (check_bounds_or_overlap): Adjust for name change above.
23739 2019-02-11 Martin Sebor <msebor@redhat.com>
23742 * builtins.c (max_object_size): Move from here...
23743 * builtins.h (max_object_size): ...and here...
23744 * tree.c (max_object_size): ...to here...
23745 * tree.h (max_object_size): ...and here.
23747 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23749 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23750 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23751 for correct semantics.
23753 2019-02-11 Alan Modra <amodra@gmail.com>
23755 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23756 -mlongcall and -mpltseq.
23757 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23758 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23759 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23760 * config/rs6000/sysv4.opt (mpltseq): New option.
23761 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23762 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23763 support is lacking. Don't allow -mpltseq with -mbss-plt.
23764 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23765 -mpltseq given for ELFv1.
23766 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23767 Only use UNSPEC_PLTSEQ for inline PLT calls.
23768 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23769 use UNSPEC_PLTSEQ for inline PLT calls.
23770 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23771 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23772 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23773 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23774 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23775 (pltseq_mtctr_<mode>): Likewise.
23777 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23779 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23781 * configure: Regenerate.
23783 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23786 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23789 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23791 * function.c (assign_parm_setup_block): Use the stored
23792 size, not the passed size, when allocating stack-space,
23793 also for a parameter with alignment larger than
23794 MAX_SUPPORTED_STACK_ALIGNMENT.
23796 2019-02-11 Martin Liska <mliska@suse.cz>
23799 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23800 * ipa-inline.c (inline_small_functions): Likewise.
23801 * ipa-pure-const.c (propagate_pure_const): Likewise.
23802 (propagate_nothrow): Likewise.
23803 * ipa-reference.c (propagate): Likewise.
23804 * ipa-utils.c (struct searchc_env): Remove unused field.
23805 (searchc): Always search across AVAIL_INTERPOSABLE.
23806 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23807 the only called IPA pure const can properly not propagate
23808 across interposable boundary.
23809 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23811 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23813 * config/nds32/nds32.md (call_internal, call_value_internal,
23814 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23816 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23818 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23821 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23823 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23826 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23828 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23830 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23832 PR tree-optimization/89268
23833 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23834 if preds is non-NULL.
23836 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23839 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23842 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23844 * config/nds32/nds32.md (trap): New pattern.
23846 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23848 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23851 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23853 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23856 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23858 * ipa-visibility.c (localize_node): Also do not localize
23859 LDPR_PREVAILING_DEF_IRONLY_EXP.
23861 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23864 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23865 instead of type_with_linkage.
23867 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23870 * params.def (uninlined-function-insns, uninlined-function-time,
23871 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23872 bound so we don't get overflows.
23874 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23876 * config/rs6000/rs6000-string.c (expand_compare_loop,
23877 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23880 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23882 PR middle-end/89246
23883 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23884 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23885 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23887 2019-02-09 Alan Modra <amodra@gmail.com>
23890 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23891 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23894 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23896 PR middle-end/88560
23897 * lra-constraints.c (process_alt_operands): Don't increase reject
23898 for memory when offset memory is required.
23900 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23902 * config/s390/vector.md: Implement vector copysign.
23904 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23906 * expr.c (expand_constructor): Correct indentations.
23908 2019-02-08 Richard Biener <rguenther@suse.de>
23910 PR tree-optimization/89247
23911 * tree-if-conv.c: Include tree-cfgcleanup.h.
23912 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23913 (tree_if_conversion): Pass through predicate vector.
23914 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23915 inline, see if any if-converted loops we refrece in
23916 LOOP_VECTORIZED calls vanished and fixup.
23917 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23919 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23921 * config/s390/constraints.md (jdd): New constraint.
23923 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23926 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23927 upper 16 vector registers without TARGET_AVX512VL.
23928 (*movti_internal): Likewise.
23930 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23932 PR rtl-optimization/89234
23933 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23934 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23935 (copy_reg_eh_region_note_backward): Likewise.
23937 2019-02-08 Richard Biener <rguenther@suse.de>
23939 PR middle-end/89223
23940 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23941 doesn't fit in HWI.
23942 (analyze_subscript_affine_affine): Handle failure from
23943 initialize_matrix_A.
23945 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23947 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23950 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23952 PR tree-optimization/86637
23953 PR tree-optimization/89235
23954 * tree-vect-loop.c (optimize_mask_stores): Add an
23955 auto_purge_vect_location sentinel to ensure that vect_location is
23957 * tree-vectorizer.c
23958 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23959 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23960 to ensure that vect_location is purged on exit.
23961 (pass_slp_vectorize::execute): Likewise, replacing the manual
23963 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23965 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23967 * config/aarch64/iterators.md (max_opp): New code_attr.
23968 (USMAX): New code iterator.
23969 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23970 (aarch64_smax): Likewise.
23971 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23972 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23975 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23978 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23979 for TARGET_AVX512VL.
23980 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23982 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23984 * config/s390/s390-builtin-types.def: Add new types.
23985 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23986 (s390_vec_xlw4): Make the memory operand into a const pointer.
23987 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23989 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23990 a new vector type with the alignment of the scalar memory operand.
23992 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23993 Jakub Jelinek <jakub@redhat.com>
23996 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23997 arm_count_ldrdstrd_insns): New declarations.
23998 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24000 (valid_operands_ldrd_strd): New function.
24001 (arm_count_ldrdstrd_insns): New function.
24002 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24003 sets instead of single DImode set and define new insns to match this.
24005 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24007 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24008 Make it a C initializer.
24010 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24013 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24015 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24017 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24018 Use neon_dot<q> for type.
24019 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24021 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24023 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24024 Use neon_dot<q> for type.
24025 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24026 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24028 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24030 PR rtl-optimization/89225
24031 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24034 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24036 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24037 after restoring registers saved to allocate the frame on Windows.
24039 2019-02-06 Richard Biener <rguenther@suse.de>
24041 PR tree-optimization/89182
24042 * graphite.h (cached_scalar_evolution_in_region): Declare.
24043 * graphite.c (struct seir_cache_key): New.
24044 (struct sese_scev_hash): Likewise.
24045 (seir_cache): New global.
24046 (cached_scalar_evolution_in_region): New function.
24047 (graphite_transform_loops): Allocate and release seir_cache.
24048 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24049 cached_scalar_evolution_in_region.
24050 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24052 (scop_detection::graphite_can_represent_expr: Use
24053 cached_scalar_evolution_in_region.
24054 (scop_detection::stmt_simple_for_scop_p): Likewise.
24055 (find_params_in_bb): Likewise.
24056 (gather_bbs::before_dom_children): Likewise.
24057 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24058 (add_loop_constraints): Likewise.
24060 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24062 PR middle-end/89210
24063 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24064 operand to new_unary_operation only if both element types are integral
24065 and it isn't a widening conversion. Return NULL_TREE if
24066 new_unary_operation failed.
24068 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24071 * config/s390/s390.md: Remove load and test FP splitter.
24073 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24076 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24077 expand_compare_loop, expand_block_compare_gpr,
24078 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24079 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24080 #include "profile-count.h" and "predict.h" for types and functions
24081 needed to work with REG_BR_PROB notes.
24083 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24086 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24087 for the long branch case.
24089 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24092 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24093 can throw, non-call exceptions are enabled and we can't delete
24094 dead exceptions or alter cfg. Set must_clean if
24095 delete_insn_and_edges returns true, don't set it blindly for calls.
24096 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24098 PR rtl-optimization/89195
24099 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24100 of the original MEM.
24102 2019-02-05 Martin Liska <mliska@suse.cz>
24104 PR gcov-profile/89000
24105 * gcov.c (function_summary): Remove argument.
24106 (file_summary): New function.
24107 (print_usage): Replace tabs with spaces.
24108 (generate_results): Use new function file_summary.
24110 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24113 * optabs.c (prepare_cmp_insn): Pass x and y to
24114 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24116 2019-02-05 Richard Biener <rguenther@suse.de>
24118 PR middle-end/89150
24119 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24120 (struct bitmap_element): Drop chain_prev so we properly recurse on
24121 the prev member, supporting tree views.
24122 (struct bitmap_head): GTY skip the obstack member.
24124 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24127 * doc/extend.texi (Vector Extensions): Add an example of using vector
24128 types together with x86 intrinsics.
24130 2019-02-04 Alan Modra <amodra@gmail.com>
24132 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24133 str[] size to 160, and comment.
24135 2019-02-04 Alan Modra <amodra@gmail.com>
24137 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24138 (rs6000_pltseq_template): Guard output of TLS markers with
24139 TARGET_TLS_MARKERS.
24140 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24141 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24142 to use inline PLT sequences.
24143 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24144 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24145 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24147 2019-02-04 Martin Liska <mliska@suse.cz>
24150 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24151 out when ipa_fn_summaries does not contain entry for callee.
24153 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24155 * config/sparc/sparc.h: Remove superfluous blank lines.
24156 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24157 (got_register_rtx): ...this.
24158 (sparc_got): Adjust to above renaming.
24159 (sparc_tls_got): Likewise.
24160 (sparc_delegitimize_address): Likewise.
24161 (sparc_output_mi_thunk): Likewise.
24162 (sparc_init_pic_reg): Likewise.
24163 (save_local_or_in_reg_p): Fix test on the GOT register.
24164 (USE_HIDDEN_LINKONCE): Move around.
24165 (get_pc_thunk_name): Likewise.
24166 (gen_load_pcrel_sym): Likewise.
24167 (load_got_register): Likewise.
24169 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24171 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24172 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24174 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24176 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24177 into consideration.
24179 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24181 * config.gcc (with_nds32_lib, glibc):
24182 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24183 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24184 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24186 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24189 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24190 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24191 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24192 (*rcpsf2_sse): Ditto.
24193 (*rsqrtsf2_sse): Ditto.
24194 (sse4_1_round<mode<2): Ditto.
24196 2019-02-03 Richard Biener <rguenther@suse.de>
24199 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24202 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24204 PR middle-end/87887
24205 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24206 Punt with warning on aggregate return or argument types. Ignore
24207 type/mode checking for uniform arguments.
24209 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24211 * combine.c (try_combine): Do not print "Can't combine" messages unless
24212 printing failed combination attempts.
24214 2019-02-01 Martin Jambor <mjambor@suse.cz>
24217 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24218 segment and global segment variables before making them static.
24220 2019-02-01 Martin Jambor <mjambor@suse.cz>
24222 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24223 missed optimization dump with dump_enabled_p.
24225 2019-02-01 Richard Biener <rguenther@suse.de>
24227 PR middle-end/88597
24228 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24229 the instantiate cache.
24230 (instantiate_scev_binary): Elide second operand procesing
24231 if equal to the first.
24232 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24233 (chrec_contains_undetermined): Likewise.
24234 (tree_contains_chrecs): Likewise.
24236 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24238 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24240 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24242 PR tree-optimization/89143
24243 * wide-int-range.h (wide_int_range_absu): Declare.
24244 * wide-int-range.cc (wide_int_range_absu): New function.
24245 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24247 PR tree-optimization/88107
24248 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24249 instead of assertion that eh_region_outermost is non-NULL, if it
24250 is NULL, set *ALL to true and return NULL.
24251 (move_sese_region_to_fn): Adjust caller, if all is set, call
24252 duplicate_eh_regions with NULL region.
24254 2019-02-01 Richard Biener <rguenth@suse.de>
24256 PR rtl-optimization/88593
24257 * mode-switching.c (optimize_mode_switching): Free dominators before
24258 calling cleanup_cfg.
24260 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24262 PR tree-optimization/88932
24263 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24265 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24267 PR middle-end/89137
24268 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24269 bogus clang warning.
24271 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24274 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24275 alternative to avoid partial SSE register stall for TARGET_AVX.
24276 (truncdfsf2): Ditto.
24277 (sse4_1_round<mode>2): Ditto.
24279 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24281 PR tree-optimization/89008
24282 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24283 process anything of the form X * 0.
24285 2019-01-31 Richard Biener <rguenther@suse.de>
24287 PR tree-optimization/89135
24288 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24289 with abnormal preds.
24291 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24294 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24295 always_inline callees into no_sanitize_address callers.
24297 2019-01-31 Richard Biener <rguenther@suse.de>
24299 PR rtl-optimization/89115
24300 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24302 2019-01-30 Martin Sebor <msebor@redhat.com>
24305 * doc/extend.texi (cast to a union): Correct and expand.
24307 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24309 PR rtl-optimization/87246
24310 * lra-constraints.c (simplify_operand_subreg): Reload memory
24311 in subreg if the address became invalid.
24313 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24316 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24317 Disable for little-endian.
24319 2019-01-30 Richard Biener <rguenther@suse.de>
24321 PR rtl-optimization/89115
24322 * opts.c (default_options_optimization): Reduce
24323 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24324 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24327 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24329 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24330 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24331 type of vector element when vec_extract is implemented by direct
24334 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24336 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24338 2019-01-30 Richard Biener <rguenther@suse.de>
24340 PR tree-optimization/89111
24341 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24342 canonicalization to appropriately sized access types.
24344 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24347 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24348 for arguments to functions that are TU-local and shouldn't be
24349 referenced by assembly.
24351 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24353 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24356 2019-01-29 Martin Sebor <msebor@redhat.com>
24359 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24361 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24365 * omp-simd-clone.c (simd_clone_clauses_extract)
24366 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24367 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24369 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24371 * config.gcc: Force .init_array for ARC.
24373 2019-01-29 Richard Biener <rguenther@suse.de>
24376 * dwarf2out.c (collect_skeleton_dies): New helper.
24377 (copy_decls_for_unworthy_types): Call it.
24378 (build_abbrev_table): Assert we do not try to replace
24379 DW_AT_signature refs with local refs.
24381 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24383 PR middle-end/89002
24384 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24385 for lastprivate/linear IV, push gimplify context around gimplify_assign
24386 and, if it needed any temporaries, pop it into a gimple bind around the
24389 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24391 * common.opt (-Wattribute-alias): Remove "no-" from name.
24392 Make -Wattribute-alias command line option and
24393 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24395 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24398 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24399 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24401 (bmi2): Add missing @opindex.
24402 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24403 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24404 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24405 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24406 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24407 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24408 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24409 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24410 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24411 xsavec, xsaveopt and xsaves options.
24413 2019-01-28 Richard Biener <rguenther@suse.de>
24416 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24419 2019-01-28 Richard Biener <rguenther@suse.de>
24421 PR tree-optimization/88739
24422 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24423 BIT_FIELD_REFs only are applied to mode-precision operands
24424 when they are integral.
24425 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24426 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24427 BIT_FIELD_REFs of non-mode-precision integral operands.
24429 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24432 * config/i386/sse.md
24433 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24434 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24435 first constants in pairs are multiples of 2. Formatting fixes.
24436 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24437 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24438 first constants in each quadruple are multiples of 4. Formatting fixes.
24440 2019-01-26 Martin Jambor <mjambor@suse.cz>
24443 * tree-inline.c: Include tree-cfgcleanup.h.
24444 (delete_unreachable_blocks_update_callgraph): Move...
24445 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24446 ...here, make externally visible, make second argument bool, adjust
24448 * tree-cfgcleanup.c: Include cgraph.h.
24449 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24451 * ipa-prop.c: Include tree-cfgcleanup.h.
24452 (ipcp_transform_function): Call
24453 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24455 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24457 PR rtl-optimization/88846
24458 * ira.c (process_set_for_memref_referenced_p): New.
24459 (memref_referenced_p): Add new param. Use
24460 process_set_for_memref_referenced_p. Add new switch cases.
24461 (memref_used_between_p): Pass new arg to memref_referenced_p.
24463 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24466 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24467 argument ABI_BREAK. Set to true if the calculated alignment has
24468 changed in gcc-9. Check bit-fields for their base type alignment.
24469 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24470 (aarch64_function_arg_boundary): Likewise.
24471 (aarch64_gimplify_va_arg_expr): Likewise.
24473 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24475 PR middle-end/89037
24476 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24477 instead of accessing TREE_INT_CST_ELT directly.
24479 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24481 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24482 fenv_exceptions description.
24484 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24486 PR rtl-optimization/87763
24487 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24488 Allow SUBREG when matching CC_NZmode compare.
24490 2019-01-25 Richard Biener <rguenther@suse.de>
24492 PR tree-optimization/89049
24493 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24494 Look at the pattern stmt to determine if the stmt is vectorized.
24496 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24498 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24499 (pred_mov<mode>): Handle all-register forms using both a new
24500 alternative and a split.
24502 2019-01-25 Richard Biener <rguenther@suse.de>
24504 PR tree-optimization/86865
24505 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24506 Reject non-do-while loops.
24508 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24510 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24511 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24512 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24513 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24514 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24515 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24516 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24517 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24518 vlogical_operand, gpc_reg_operand, int_reg_operand,
24519 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24520 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24521 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24522 (save_world_operation, restore_world_operation, lmw_operation,
24523 stmw_operation): Use MEM_P and REG_P.
24524 (tie_operand): Use MEM_P.
24525 (vrsave_operation, crsave_operation): Use REG_P.
24526 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24527 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24528 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24529 (call_operand): Use HARD_REGISTER_P.
24530 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24532 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24533 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24534 quad_aligned_load_p, replace_swapped_aligned_store,
24535 recombine_lvx_pattern, replace_swapped_aligned_load,
24536 recombine_stvx_pattern): Use MEM_P.
24537 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24538 Use MEM_P and SYMBOL_REF_P.
24539 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24540 (insn_is_swappable_p): Use REG_P and MEM_P.
24541 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24542 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24544 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24545 Use CONST_DOUBLE_P.
24546 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24548 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24549 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24550 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24551 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24553 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24554 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24555 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24556 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24557 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24558 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24559 rs6000_split_logical_di): Use CONST_INT_P.
24560 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24561 REG_P and SYMBOL_REF_P.
24562 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24563 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24564 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24565 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24566 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24567 (small_data_operand, print_operand_address): Use CONST_INT_P and
24569 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24570 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24571 Use HARD_REGISTER_NUM_P.
24572 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24573 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24574 SUBREG_P and SYMBOL_REF_P.
24575 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24576 and HARD_REGISTER_NUM_P.
24577 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24579 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24580 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24582 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24583 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24584 find_addr_reg): Use REG_P.
24585 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24586 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24587 (offsettable_ok_by_alignment, constant_pool_expr_p,
24588 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24589 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24590 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24591 rs6000_assemble_integer, create_TOC_reference,
24592 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24593 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24594 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24595 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24596 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24597 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24598 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24599 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24600 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24601 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24602 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24603 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24604 and cbranch<mode>4): Use CONST_INT_P.
24605 (multiple define_splits): Use REG_P and SUBREG_P.
24606 (define_expands call, call_value): Use MEM_P.
24607 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24608 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24609 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24610 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24611 and HARD_REGISTER_NUM_P.
24612 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24614 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24616 PR rtl-optimization/88948
24617 * rtl.h (prepare_copy_insn): New prototype.
24618 * gcse.c (prepare_copy_insn): New function, split out from
24619 process_insert_insn.
24620 (process_insert_insn): Use prepare_copy_insn.
24621 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24622 instead of gen_move_insn.
24624 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24627 * config/i386/i386.c (ix86_pic_register_p): Return true for
24628 UNSPEC_SET_GOT too.
24630 PR tree-optimization/88964
24631 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24632 punt if HONOR_SNANS (chrec).
24634 PR middle-end/89015
24635 * tree-nested.c (convert_nonlocal_reference_stmt,
24636 convert_local_reference_stmt, convert_tramp_reference_stmt,
24637 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24638 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24639 or GIMPLE_OMP_TASK.
24641 PR tree-optimization/89027
24642 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24643 for "omp simd array" variables.
24645 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24648 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24649 force the alignment of m_val.
24651 2019-01-24 Richard Biener <rguenther@suse.de>
24654 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24655 When in "legacy" debug mode make sure to reset self-origins.
24657 2019-01-24 Martin Liska <mliska@suse.cz>
24659 PR gcov-profile/88994
24660 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24661 result will be always smaller or equal to the original.
24662 * gcov.c (mangle_name): Fix else branch where we should
24663 also copy to PTR and shift the pointer.
24665 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24667 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24668 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24670 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24672 * common/config/i386/i386-common.c
24673 (OPTION_MASK_ISA_ENQCMD_SET,
24674 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24675 (ix86_handle_option): Handle -menqcmd.
24676 * config.gcc (enqcmdintrin.h): New header file.
24677 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24678 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24680 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24682 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24683 __builtin_ia32_enqcmds): New builtins.
24684 * config/i386/i386-c.c (__ENQCMD__): New macro.
24685 * config/i386/i386-option.c (ix86_target_string): Add
24687 (ix86_valid_target_attribute_inner_p): Likewise.
24688 * config/i386/i386-expand.c
24689 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24690 IX86_BUILTIN_ENQCMDS.
24691 * config/i386/i386.h (TARGET_ENQCMD): New.
24692 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24693 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24694 (movdir64b_<mode>): Parameterize to enable share expansion code
24695 with ENQCMD in function ix86_expand_builtin.
24696 * config/i386/i386.opt: Add -menqcmd.
24697 * config/i386/immintrin.h: Include enqcmdintrin.h.
24698 * config/i386/enqcmdintrin.h: New intrinsic file.
24699 * doc/invoke.texi: Add -menqcmd.
24701 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24702 Steve Ellcey <sellcey@marvell.com>
24705 * recog.c (address_operand): Return false on wrong mode for address.
24706 (constrain_operands): Check for mode with 'p' constraint.
24708 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24711 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24712 Disparage MMX alternative.
24713 (sse2_cvtpd2pi): Ditto.
24714 (sse2_cvttpd2pi): Ditto.
24716 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24719 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24720 use-after-free of the result of
24721 aarch64_get_extension_string_for_isa_flags.
24723 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24726 * doc/extend.texi: Document break and continue behavior in
24727 statement expressions.
24729 2019-01-23 Richard Biener <rguenther@suse.de>
24731 PR tree-optimization/89008
24732 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24733 not leave another stray operand.
24735 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24737 * BASE-VER: Bump to 9.0.1.
24739 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24741 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24742 thunk that returns by reference, use the type of the return object
24743 of the thunk instead of that of the alias to build the dereference.
24745 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24747 * config/arc/atomic.md: Add operand to DMB instruction.
24749 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24751 PR tree-optimization/88964
24752 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24753 build_zero_cst instead of build_int_cst. Return false for loop
24754 invariants which honor signed zeros.
24756 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24758 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24760 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24763 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24764 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24765 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24767 PR middle-end/88968
24768 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24769 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24772 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24773 Disable for little endian.
24775 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24778 * config/arm/arm.c (arm_needs_double_word_align): Check
24779 DECL_BIT_FIELD_TYPE.
24781 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24782 H.J. Lu <hongjiu.lu@intel.com>
24785 * config/i386/i386-builtin.def: Add mask2 to all builtin
24786 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24788 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24789 (BDESC_FIRST): Likewise.
24790 (define_builtin): Add an argument for mask2. Updated to handle
24791 both ix86_isa_flags and ix86_isa_flags2.
24792 (define_builtin_const): Likewise.
24793 (define_builtin_pure): Likewise.
24794 (define_builtin2): Deleted.
24795 (define_builtin_const2): Likewise.
24796 (builtin_description): Add a member, mask2.
24797 (bdesc_*): Add mask2 to builtin initializations.
24798 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24799 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24801 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24803 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24806 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24809 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24812 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24813 alignment is dominated by a bitfield with 64-bit aligned base type.
24814 (arm_function_arg): Emit a warning if the alignment has changed since
24815 earlier GCC releases.
24816 (arm_function_arg_boundary): Likewise.
24817 (arm_setup_incoming_varargs): Likewise.
24819 2019-01-22 Richard Biener <rguenther@suse.de>
24821 PR tree-optimization/88862
24822 * graphite-scop-detection.c
24823 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24825 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24827 * doc/extend.tex (AMD GCN Function Attributes): New section.
24828 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24829 * doc/invoke.texi (AMD GCN Options): New section.
24830 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24832 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24834 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24835 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24837 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24839 PR tree-optimization/88044
24840 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24841 is false in the first iteration, but !every_iteration, return false
24842 instead of true with niter->niter zero.
24844 PR rtl-optimization/88904
24845 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24846 any nonequal registers before processing BB_END (b).
24849 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24851 (expand_binop_directly, expand_doubleword_clz,
24852 expand_doubleword_popcount, expand_ctz, expand_ffs,
24853 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24855 PR rtl-optimization/49429
24857 PR rtl-optimization/86334
24859 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24860 addressable from here...
24861 (emit_block_op_via_libcall): ... to here.
24863 2019-01-22 Richard Biener <rguenther@suse.de>
24865 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24866 auto_vec for cost vector to fix memleak.
24867 (vectorize_fold_left_reduction): Properly gather SLP defs.
24868 (vectorizable_comparison): Do not swap operands to properly
24871 2019-01-22 Alan Modra <amodra@gmail.com>
24874 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24875 stays a reg. Allow a const_int.
24876 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24877 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24878 (IS_NOMARK_TLSGETADDR): Define.
24879 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24880 (rs6000_output_tlsargs): New function.
24881 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24882 __tls_get_addr call takes an arg.
24883 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24884 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24886 (call_value_nonlocal_sysv): ..or here, delete split.
24887 (tls_gdld_nomark): Delete.
24888 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24889 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24890 (call_value_nonlocal_sysv): Likewise.
24891 (call_value_nonlocal_sysv_secure): Likewise.
24892 (call_value_nonlocal_aix): Likewise.
24893 (call_value_indirect_aix): Likewise.
24894 (call_value_indirect_elfv2): Likewise.
24895 (call_value_local32, call_value_local64): Disable for no-mark tls.
24896 (call_value_local_aix): Likewise.
24898 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24901 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24902 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24904 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24906 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24907 string contents as hash_map keys.
24909 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24912 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24913 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24914 instead of TYPE_ALIGN.
24915 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24916 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24917 pointer from TYPE_STUB_DECL.
24919 2019-01-21 Richard Biener <rguenther@suse.de>
24921 PR tree-optimization/88934
24922 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24923 at the possibly non-constant operand.
24924 (vect_get_constant_vectors): Adjust.
24926 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24929 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24930 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24931 instead of _X86INTRIN_H_INCLUDED.
24932 * onfig/i386/clwbintrin.h: Likewise.
24933 * config/i386/pkuintrin.h: Likewise.
24934 * config/i386/prfchwintrin.h: Likewise.
24935 * config/i386/rdseedintrin.h: Likewise.
24936 * config/i386/wbnoinvdintrin.h: Likewise.
24937 * config/i386/xsavecintrin.h: Likewise.
24938 * config/i386/xsavesintrin.h: Likewise.
24939 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24940 * config/i386/xsaveintrin.h: Likewise.
24941 * config/i386/xsaveoptintrin.h: Likewise.
24942 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24943 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24944 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24945 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24946 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24947 * config/i386/immintrin.h: Here.
24949 2019-01-20 Martin Jambor <mjambor@suse.cz>
24952 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24953 with aa_walk_budget.
24954 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24955 aa_walk_budget_p parameter.
24956 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24957 walk. Updated all callers.
24958 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24959 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24961 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24962 parameter info. Extract info from fbi. Pass fbi to recursive calls
24963 and to unmodified_parm.
24964 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24965 info, updated call to will_be_nonconstant_expr_predicate.
24966 (param_change_prob): New parameter fbi, limit AA walking.
24967 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24968 calls to various above functions.
24969 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24970 parameter. Use it to limit AA walking.
24971 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24972 fbi, limit AA walk.
24973 (detect_type_change): New parameter fbi, pass it on to
24974 detect_type_change_from_memory_writes.
24975 (detect_type_change_ssa): Likewise.
24976 (aa_overwalked): Removed.
24977 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24978 accordingly, adjust to the neew AA limiting scheme.
24979 (parm_ref_data_preserved_p): Likewise.
24980 (ipa_compute_jump_functions_for_edge): Adjust call to
24982 (ipa_analyze_call_uses): Likewise.
24983 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24984 (ipa_analyze_node): Initialize aa_walk_budget.
24985 (ipcp_transform_function): Likewise.
24986 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24987 to get_dynamic_type.
24989 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24991 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24992 outside of #if CHECKING_P code.
24994 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24996 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24997 New function, split out from...
24998 (loop_versioning::analyze_stride): ...here.
24999 (loop_versioning::find_per_loop_multiplication): Use gassign.
25000 (loop_versioning::analyze_term_using_scevs): Return a success code.
25001 (loop_versioning::analyze_arbitrary_term): New function.
25002 (loop_versioning::analyze_address_fragment): Use
25003 analyze_arbitrary_term if all else fails.
25005 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25008 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25011 2019-01-18 Richard Biener <rguenther@suse.de>
25013 PR tree-optimization/88903
25014 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25015 scalar stmts a SLP shift amount is composed of when detecting
25018 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25021 * config/arm/arm-cpus.in (mp): New feature.
25022 (sec): New feature.
25023 (fgroup ARMv7ve): Add mp and sec features.
25024 (arch armv7-a): Add options to allow mp and sec extensions.
25025 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25026 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25027 extenstions to the base architecture.
25028 (cpu cortex-a8): Add sec extension to the base architecture.
25029 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25030 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25031 variants down to the base v7-a varaint.
25032 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25033 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25034 of permitted extensions for -march=armv7-a and for
25035 -mcpu=generic-armv7-a.
25037 2019-01-18 Martin Liska <mliska@suse.cz>
25039 * params.def: Fix comment.
25040 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25042 (gimple_gen_ic_func_profiler): Likewise.
25044 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25046 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25047 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25048 and put in error checks for stack protector guard options.
25049 (aarch64_stack_protect_guard): New.
25050 (TARGET_STACK_PROTECT_GUARD): Define.
25051 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25052 (reg_stack_protect_address<mode>): New.
25053 (stack_protect_set): Adjust for SSP_GLOBAL.
25054 (stack_protect_test): Likewise.
25055 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25056 (-mstack-protector-guard): Likewise.
25057 (-mstack-protector-guard-offset): Likewise.
25059 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25061 PR tree-optimization/86214
25062 * tree-inline.h (struct copy_body_data): Add
25063 add_clobbers_to_eh_landing_pads member.
25064 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25065 (copy_edges_for_bb): Call it if EH edge destination is <
25066 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25067 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25068 if flag_stack_reuse != SR_NONE and clear it afterwards.
25070 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25073 * doc/install.texi (with-multilib-list): Document for aarch64.
25075 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25078 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25079 (("..."))) with ("...").
25081 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25083 * doc/extend.texi (Built-in Functions for Memory Model Aware
25084 Atomic Operations): Document atomic fetch and nand.
25086 2019-01-18 Martin Liska <mliska@suse.cz>
25087 Richard Biener <rguenther@suse.de>
25089 PR middle-end/88587
25090 * cgraph.h (create_version_clone_with_body): Add new argument
25092 * cgraphclones.c (cgraph_node::create_version_clone): Add
25093 DECL_ATTRIBUTES to a newly created decl. And call
25094 valid_attribute_p so that proper cl_target_optimization_node
25095 is set for the newly created declaration.
25096 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25098 (expand_target_clones): Do not call valid_attribute_p, it must
25100 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25103 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25106 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25107 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25108 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25110 2019-01-17 Martin Sebor <msebor@redhat.com>
25112 PR middle-end/88273
25113 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25114 Handle anti-ranges the same as no range at all.
25116 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25118 * config/aarch64/aarch64.c (cgraph.h): New include.
25119 (intl.h): New include.
25120 (supported_simd_type): New function.
25121 (currently_supported_simd_type): Ditto.
25122 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25123 (aarch64_simd_clone_adjust): Ditto.
25124 (aarch64_simd_clone_usable): Ditto.
25125 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25126 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25127 (TARGET_SIMD_CLONE_USABLE): Ditto.
25128 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25129 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25132 2019-01-17 Martin Sebor <msebor@redhat.com>
25134 PR tree-optimization/88800
25135 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25136 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25137 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25138 redundant argument. Add new argument and issue diagnostics under
25139 its control. Detect out-of-bounds access even with warnings
25141 (check_bounds_or_overlap): Change return type. Add argument.
25142 (wrestrict_dom_walker::check_call): Adjust.
25143 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25144 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25145 check_bounds_or_overlap's return value.
25146 (handle_builtin_stxncpy): Same.
25147 (handle_builtin_strcat): Same.
25149 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25150 Kwok Cheung Yeung <kcy@codesourcery.com>
25151 Julian Brown <julian@codesourcery.com>
25152 Tom de Vries <tom@codesourcery.com>
25154 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25156 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25158 * doc/sourcebuild.texi: Document dg-require-effective-target
25159 llvm_binutils and offload_gcn.
25161 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25162 Kwok Cheung Yeung <kcy@codesourcery.com>
25163 Julian Brown <julian@codesourcery.com>
25164 Tom de Vries <tom@codesourcery.com>
25166 * doc/sourcebuild.texi: Document dg-required-effective-target
25169 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25170 Kwok Cheung Yeung <kcy@codesourcery.com>
25171 Julian Brown <julian@codesourcery.com>
25172 Tom de Vries <tom@codesourcery.com>
25173 Jan Hubicka <hubicka@ucw.cz>
25174 Martin Jambor <mjambor@suse.cz>
25176 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25177 * configure.ac: Check for dlopen.
25178 * configure: Regenerate.
25180 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25181 Kwok Cheung Yeung <kcy@codesourcery.com>
25182 Julian Brown <julian@codesourcery.com>
25183 Tom de Vries <tom@codesourcery.com>
25184 Jan Hubicka <hubicka@ucw.cz>
25185 Martin Jambor <mjambor@suse.cz>
25187 * common/config/gcn/gcn-common.c: New file.
25188 * config/gcn/driver-gcn.c: New file.
25189 * config/gcn/gcn-builtins.def: New file.
25190 * config/gcn/gcn-hsa.h: New file.
25191 * config/gcn/gcn-modes.def: New file.
25192 * config/gcn/gcn-opts.h: New file.
25193 * config/gcn/gcn-passes.def: New file.
25194 * config/gcn/gcn-protos.h: New file.
25195 * config/gcn/gcn-run.c: New file.
25196 * config/gcn/gcn-tree.c: New file.
25197 * config/gcn/gcn.c: New file.
25198 * config/gcn/gcn.h: New file.
25199 * config/gcn/gcn.opt: New file.
25200 * config/gcn/t-gcn-hsa: New file.
25202 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25203 Kwok Cheung Yeung <kcy@codesourcery.com>
25204 Julian Brown <julian@codesourcery.com>
25205 Tom de Vries <tom@codesourcery.com>
25206 Jan Hubicka <hubicka@ucw.cz>
25207 Martin Jambor <mjambor@suse.cz>
25209 * config/gcn/constraints.md: New file.
25210 * config/gcn/gcn-valu.md: New file.
25211 * config/gcn/gcn.md: New file.
25212 * config/gcn/predicates.md: New file.
25214 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25216 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25217 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25218 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25219 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25221 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25224 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25225 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25226 it and document registers.
25228 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25230 * config/aarch64/aarch64.c (ares_tunings): Define.
25231 * config/aarch64/aarch64-cores.def (ares): Use the above.
25233 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25237 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25239 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25240 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25241 (_mm512_maskz_fixupimm_round_pd): Ditto.
25242 (_mm512_fixupimm_round_ps): Ditto.
25243 (_mm512_maskz_fixupimm_round_ps): Ditto.
25244 (_mm_fixupimm_round_sd): Ditto.
25245 (_mm_maskz_fixupimm_round_sd): Ditto.
25246 (_mm_fixupimm_round_ss): Ditto.
25247 (_mm_maskz_fixupimm_round_ss): Ditto.
25248 (_mm512_fixupimm_pd): Ditto.
25249 (_mm512_maskz_fixupimm_pd): Ditto.
25250 (_mm512_fixupimm_ps): Ditto.
25251 (_mm512_maskz_fixupimm_ps): Ditto.
25252 (_mm_fixupimm_sd): Ditto.
25253 (_mm_maskz_fixupimm_sd): Ditto.
25254 (_mm_fixupimm_ss): Ditto.
25255 (_mm_maskz_fixupimm_ss): Ditto.
25256 (_mm512_mask_fixupimm_round_pd): Update builtin.
25257 (_mm512_mask_fixupimm_round_ps): Ditto.
25258 (_mm_mask_fixupimm_round_sd): Ditto.
25259 (_mm_mask_fixupimm_round_ss): Ditto.
25260 (_mm512_mask_fixupimm_pd): Ditto.
25261 (_mm512_mask_fixupimm_ps): Ditto.
25262 (_mm_mask_fixupimm_sd): Ditto.
25263 (_mm_mask_fixupimm_ss): Ditto.
25264 * config/i386/avx512vlintrin.h:
25265 (_mm256_fixupimm_pd): Update parameters and builtin.
25266 (_mm256_maskz_fixupimm_pd): Ditto.
25267 (_mm256_fixupimm_ps): Ditto.
25268 (_mm256_maskz_fixupimm_ps): Ditto.
25269 (_mm_fixupimm_pd): Ditto.
25270 (_mm_maskz_fixupimm_pd): Ditto.
25271 (_mm_fixupimm_ps): Ditto.
25272 (_mm_maskz_fixupimm_ps): Ditto.
25273 (_mm256_mask_fixupimm_pd): Update builtin.
25274 (_mm256_mask_fixupimm_ps): Ditto.
25275 (_mm_mask_fixupimm_pd): Ditto.
25276 (_mm_mask_fixupimm_ps): Ditto.
25277 * config/i386/i386-builtin-types.def: Add new types and remove
25279 * config/i386/i386-builtin.def: Update builtin definitions.
25280 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25281 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25282 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25283 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25284 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25285 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25286 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25287 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25288 * config/i386/subst.md:
25289 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25290 (round_saeonly_sd_mask_op4): Ditto.
25291 (round_saeonly_expand_operand5): Ditto.
25292 (round_saeonly_expand): Update.
25294 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25298 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25300 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25301 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25302 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25303 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25304 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25305 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25306 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25308 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25312 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25315 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25316 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25317 instead of UNSPEC_FIXUPIMM.
25319 2019-01-17 Richard Biener <rguenther@suse.de>
25322 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25323 and friends for the LTO part of debug info.
25325 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25327 PR tree-optimization/86214
25328 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25331 PR rtl-optimization/88870
25332 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25333 throw if we can't alter the cfg or delete dead exceptions.
25334 (mark_insn): Don't call find_call_stack_args for such calls.
25336 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25338 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25339 prototypes for vec_st.
25340 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25341 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25342 mainly on signed/unsigned long long and double.
25344 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25347 * combine.c (delete_noop_moves): Convert to "bool" return,
25348 returning true if any edges are eliminated.
25349 (combine_instructions): Also return true if delete_noop_moves
25352 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25354 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25355 correct max nunits for endian swap.
25356 (aarch64_expand_fcmla_builtin): Correct subreg code.
25357 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25358 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25361 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25363 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25364 Handle split indirect COMPLEX_TYPE arguments.
25366 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25369 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25370 bit is set by add and compare.
25371 (CC_ADC): New CC_MODE.
25372 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25373 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25374 comparison. Add detection for CC_ADCmode.
25375 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25377 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25378 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25379 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25380 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25381 to eliminate the need for zero-extending the operands.
25382 (add<mode>3_compareC_imm): Delete. Merge into ...
25383 (add<mode>3_compareC): ... this. Restructure the comparison to
25384 eliminate the need for zero-extending the operands.
25385 (add<mode>3_carryin): Use LTU for the overflow detection.
25386 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25387 Reexpress comparison for overflow.
25388 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25389 (add<mode>3_carryinC): Likewise.
25390 (add<mode>3_carryinV): Use LTU for carry between partials.
25391 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25392 handling of CC_Cmode and add CC_ADCmode.
25393 (aarch64_borrow_operation): Likewise.
25395 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25397 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25398 Remove patternmode.
25399 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25400 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25401 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25402 Remove endianness conversion.
25404 2019-01-16 Martin Liska <mliska@suse.cz>
25406 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25408 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25410 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25411 (path_prefix_reset): Move up in the source file.
25412 (find_fortran_preinclude_file): Make complex search for the
25413 fortran header files.
25415 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25417 * godump.c (go_output_typedef): When outputting a typedef, refer
25418 to the underlying type by its name and not its structure.
25420 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25423 * tree.c (build_function_type): Assert that arg_types is not
25426 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25428 PR inline-asm/52813
25429 * doc/extend.texi: Document that listing the stack pointer in the
25430 clobber list of an asm is a deprecated feature.
25431 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25432 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25433 warning instead of an error for clobbers of the stack pointer.
25434 Add a note explaining why.
25436 2019-01-15 Richard Biener <rguenther@suse.de>
25439 * dwarf2out.c (gen_member_die): Do not generate inheritance
25442 2019-01-15 Richard Biener <rguenther@suse.de>
25444 PR tree-optimization/88855
25445 * tree-if-conv.c (combine_blocks): Collect
25446 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25448 2019-01-15 Tom de Vries <tdevries@suse.de>
25451 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25452 lhs == NULL_TREE for gang-level reduction.
25454 2019-01-15 Richard Biener <rguenther@suse.de>
25455 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25458 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25459 return true if SSA_NAME is already marked in visited bitmap.
25460 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25462 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25464 PR tree-optimization/88775
25465 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25466 equal == 0 equality pointer comparisons some more if compared in
25467 integral types and either one points to an automatic var and the
25468 other to a global, or we can prove at least one points to the middle
25469 or both point to start or both point to end.
25471 2019-01-14 Andi Kleen <ak@linux.intel.com>
25473 * Makefile.in: Lower autofdo sampling rate by 10x.
25474 * Makefile.tpl: Dito.
25476 2019-01-14 Tom Honermann <tom@honermann.net>
25478 * defaults.h: Define CHAR8_TYPE.
25480 2019-01-14 Martin Sebor <msebor@redhat.com>
25483 * doc/extend.texi (Darwin Format Checks): Clarify.
25485 2019-01-14 Richard Biener <rguenther@suse.de>
25487 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25488 whether we are in (simplify ...) or (match ...) context.
25490 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25492 PR rtl-optimization/88796
25493 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25494 * cfgexpand.c (stack_protect_prologue): Initialize
25495 crtl->stack_protect_guard_decl.
25496 * function.c (stack_protect_epilogue): Use it instead of calling
25497 targetm.stack_protect_guard again.
25498 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25499 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25500 crtl->stack_protect_guard_decl.
25501 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25502 on the returned MEM_EXPR.
25504 2019-01-12 Tom de Vries <tdevries@suse.de>
25506 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25507 vector length using -fopenacc-dim.
25509 2019-01-12 Tom de Vries <tdevries@suse.de>
25511 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25512 lengths into account.
25514 2019-01-12 Svante Signell <svante.signell@gmail.com>
25516 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25517 (TARGET_CAN_SPLIT_STACK): Define.
25518 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25520 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25522 * params.def (inline-unit-growth): Set to 40.
25524 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25526 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25528 2019-01-12 Tom de Vries <tdevries@suse.de>
25530 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25531 region calling vector-partitionable routine, set default_vector_length
25534 2019-01-12 Tom de Vries <tdevries@suse.de>
25536 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25537 variable default_vector_length.
25539 2019-01-12 Tom de Vries <tdevries@suse.de>
25541 PR middle-end/88703
25542 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25543 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25546 2019-01-12 Tom de Vries <tdevries@suse.de>
25548 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25549 (nvptx_goacc_validate_dims): Add used parameter.
25550 * doc/tm.texi: Regenerate.
25551 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25552 argument to call to targetm.goacc.validate_dims.
25553 (default_goacc_validate_dims): Add used
25555 * target.def (validate_dims): Add used parameter in DEFHOOK.
25556 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25558 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25560 PR middle-end/85956
25562 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25564 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25565 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25566 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25567 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25569 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25571 PR rtl-optimization/87305
25573 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25574 for little endian pseudos used as paradoxical subreg.
25576 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25578 PR tree-optimization/88693
25579 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25580 for STRING_CSTs that don't contain any NUL characters in the first
25581 TREE_STRING_LENGTH bytes.
25583 2019-01-11 Alan Modra <amodra@gmail.com>
25587 * genattrtab.c (min_fn): Don't translate values.
25588 (min_attr_value): Return INT_MAX when the value can't be calculated.
25589 Return minimum among any values that can be calculated.
25590 (max_attr_value): Adjust.
25592 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25594 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25596 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25598 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25599 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25600 (aarch64_return_call_with_max_clobbers): New function.
25601 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25602 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25604 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25605 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25606 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25607 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25608 * cselib.c (cselib_process_insn): Add argument to
25609 targetm.hard_regno_call_part_clobbered call.
25610 * ira-conflicts.c (ira_build_conflicts): Ditto.
25611 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25612 * lra-constraints.c (inherit_reload_reg): Ditto.
25613 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25614 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25615 argument. Call targetm.return_call_with_max_clobbers.
25616 Add argument to targetm.hard_regno_call_part_clobbered call.
25617 (calls_have_same_clobbers_p): New function.
25618 (process_bb_lives): Add call_insn and last_call_insn variables.
25619 Pass call_insn to check_pseudos_live_through_calls.
25620 Modify if stmt to check targetm.return_call_with_max_clobbers.
25621 Update setting of flush variable.
25622 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25624 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25625 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25626 targetm.hard_regno_call_part_clobbered call.
25627 * reginfo.c (choose_hard_reg_mode): Ditto.
25628 * regrename.c (check_new_reg_p): Ditto.
25629 * reload.c (find_equiv_reg): Ditto.
25630 * reload1.c (emit_reload_insns): Ditto.
25631 * sched-deps.c (deps_analyze_insn): Ditto.
25632 * sel-sched.c (init_regs_for_mode): Ditto.
25633 (mark_unavailable_hard_regs): Ditto.
25634 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25635 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25636 (return_call_with_max_clobbers): New target function.
25637 * doc/tm.texi: Regenerate.
25638 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25639 * hooks.c (hook_bool_uint_mode_false): Change to
25640 hook_bool_insn_uint_mode_false.
25641 * hooks.h (hook_bool_uint_mode_false): Ditto.
25643 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25645 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25646 (aarch64_remove_extra_call_preserved_regs): New function.
25647 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25648 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25649 * doc/tm.texi: Regenerate.
25650 * final.c (get_call_reg_set_usage): Call new hook.
25651 * target.def (remove_extra_call_preserved_regs): New hook.
25652 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25653 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25655 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25658 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25659 inside of pass_combine_1 dump rather than pass_profile_1.
25661 2019-01-11 Tom de Vries <tdevries@suse.de>
25663 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25664 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25665 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25666 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25669 2019-01-11 Tom de Vries <tdevries@suse.de>
25671 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25673 2019-01-11 Jan Beulich <jbeulich@suse.com>
25675 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25676 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25677 sse2_cvtsi2sd): Add {l}.
25678 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25681 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25684 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25686 (*float<floatunssuffix>v2div2sf2): New define_insn.
25687 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25688 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25689 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25690 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25691 match_operands with "const0_operand" "C".
25693 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25695 * config/aarch64/aarch64-builtins.c
25696 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25697 (aarch64_init_simd_builtins): ...Here
25699 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25701 PR rtl-optimization/87305
25703 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25704 allocation for big endian pseudos used as paradoxical subregs and
25705 spill them if it is wrong.
25706 * lra-constraints.c (lra_constraints): Add a comment.
25708 2019-01-10 Richard Biener <rguenther@suse.de>
25710 PR tree-optimization/88792
25711 * tree-ssa-pre.c (get_representative_for): Do not return a
25714 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25716 PR middle-end/84877
25718 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25719 (assign_parm_setup_block): Do the argument slot realignment here
25722 2019-01-10 Stefan Agner <stefan@agner.ch>
25725 * config/arm/arm.c (arm_option_override_internal): Force
25726 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25728 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25731 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25734 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25736 * config/arm/arm-builtins.c
25737 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25738 (MAC_LANE_PAIR_QUALIFIERS): New.
25739 (arm_expand_builtin_args): Use it.
25740 (arm_expand_builtin_1): Likewise.
25741 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25742 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25743 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25744 * config/arm/arm_neon.h:
25745 (vcadd_rot90_f16): New.
25746 (vcaddq_rot90_f16): New.
25747 (vcadd_rot270_f16): New.
25748 (vcaddq_rot270_f16): New.
25751 (vcmla_lane_f16): New.
25752 (vcmla_laneq_f16): New.
25753 (vcmlaq_lane_f16): New.
25754 (vcmlaq_laneq_f16): New.
25755 (vcmla_rot90_f16): New.
25756 (vcmlaq_rot90_f16): New.
25757 (vcmla_rot90_lane_f16): New.
25758 (vcmla_rot90_laneq_f16): New.
25759 (vcmlaq_rot90_lane_f16): New.
25760 (vcmlaq_rot90_laneq_f16): New.
25761 (vcmla_rot180_f16): New.
25762 (vcmlaq_rot180_f16): New.
25763 (vcmla_rot180_lane_f16): New.
25764 (vcmla_rot180_laneq_f16): New.
25765 (vcmlaq_rot180_lane_f16): New.
25766 (vcmlaq_rot180_laneq_f16): New.
25767 (vcmla_rot270_f16): New.
25768 (vcmlaq_rot270_f16): New.
25769 (vcmla_rot270_lane_f16): New.
25770 (vcmla_rot270_laneq_f16): New.
25771 (vcmlaq_rot270_lane_f16): New.
25772 (vcmlaq_rot270_laneq_f16): New.
25773 (vcadd_rot90_f32): New.
25774 (vcaddq_rot90_f32): New.
25775 (vcadd_rot270_f32): New.
25776 (vcaddq_rot270_f32): New.
25779 (vcmla_lane_f32): New.
25780 (vcmla_laneq_f32): New.
25781 (vcmlaq_lane_f32): New.
25782 (vcmlaq_laneq_f32): New.
25783 (vcmla_rot90_f32): New.
25784 (vcmlaq_rot90_f32): New.
25785 (vcmla_rot90_lane_f32): New.
25786 (vcmla_rot90_laneq_f32): New.
25787 (vcmlaq_rot90_lane_f32): New.
25788 (vcmlaq_rot90_laneq_f32): New.
25789 (vcmla_rot180_f32): New.
25790 (vcmlaq_rot180_f32): New.
25791 (vcmla_rot180_lane_f32): New.
25792 (vcmla_rot180_laneq_f32): New.
25793 (vcmlaq_rot180_lane_f32): New.
25794 (vcmlaq_rot180_laneq_f32): New.
25795 (vcmla_rot270_f32): New.
25796 (vcmlaq_rot270_f32): New.
25797 (vcmla_rot270_lane_f32): New.
25798 (vcmla_rot270_laneq_f32): New.
25799 (vcmlaq_rot270_lane_f32): New.
25800 (vcmlaq_rot270_laneq_f32): New.
25801 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25802 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25803 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25804 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25805 vcmlaq_lane270): New.
25806 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25807 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25808 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25809 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25810 (arm_option_reconfigure_globals): Use them.
25811 * config/arm/iterators.md (VDF, VQ_HSF): New.
25812 (VCADD, VCMLA): New.
25813 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25814 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25816 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25817 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25819 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25821 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25822 Add qualifier_lane_pair_index.
25823 (emit-rtl.h): Include.
25824 (TYPES_QUADOP_LANE_PAIR): New.
25825 (aarch64_simd_expand_args): Use it.
25826 (aarch64_simd_expand_builtin): Likewise.
25827 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25829 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25830 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25831 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25832 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25833 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25834 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25835 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25836 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25837 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25838 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25839 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25840 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25841 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25842 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25843 Add __ARM_FEATURE_COMPLEX.
25844 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25845 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25846 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25847 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25848 fcmlaq_lane270): New.
25849 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25850 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25851 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25852 * config/aarch64/arm_neon.h:
25853 (vcadd_rot90_f16): New.
25854 (vcaddq_rot90_f16): New.
25855 (vcadd_rot270_f16): New.
25856 (vcaddq_rot270_f16): New.
25859 (vcmla_lane_f16): New.
25860 (vcmla_laneq_f16): New.
25861 (vcmlaq_lane_f16): New.
25862 (vcmlaq_rot90_lane_f16): New.
25863 (vcmla_rot90_laneq_f16): New.
25864 (vcmla_rot90_lane_f16): New.
25865 (vcmlaq_rot90_f16): New.
25866 (vcmla_rot90_f16): New.
25867 (vcmlaq_laneq_f16): New.
25868 (vcmla_rot180_laneq_f16): New.
25869 (vcmla_rot180_lane_f16): New.
25870 (vcmlaq_rot180_f16): New.
25871 (vcmla_rot180_f16): New.
25872 (vcmlaq_rot90_laneq_f16): New.
25873 (vcmlaq_rot270_laneq_f16): New.
25874 (vcmlaq_rot270_lane_f16): New.
25875 (vcmla_rot270_laneq_f16): New.
25876 (vcmlaq_rot270_f16): New.
25877 (vcmla_rot270_f16): New.
25878 (vcmlaq_rot180_laneq_f16): New.
25879 (vcmlaq_rot180_lane_f16): New.
25880 (vcmla_rot270_lane_f16): New.
25881 (vcadd_rot90_f32): New.
25882 (vcaddq_rot90_f32): New.
25883 (vcaddq_rot90_f64): New.
25884 (vcadd_rot270_f32): New.
25885 (vcaddq_rot270_f32): New.
25886 (vcaddq_rot270_f64): New.
25890 (vcmla_lane_f32): New.
25891 (vcmla_laneq_f32): New.
25892 (vcmlaq_lane_f32): New.
25893 (vcmlaq_laneq_f32): New.
25894 (vcmla_rot90_f32): New.
25895 (vcmlaq_rot90_f32): New.
25896 (vcmlaq_rot90_f64): New.
25897 (vcmla_rot90_lane_f32): New.
25898 (vcmla_rot90_laneq_f32): New.
25899 (vcmlaq_rot90_lane_f32): New.
25900 (vcmlaq_rot90_laneq_f32): New.
25901 (vcmla_rot180_f32): New.
25902 (vcmlaq_rot180_f32): New.
25903 (vcmlaq_rot180_f64): New.
25904 (vcmla_rot180_lane_f32): New.
25905 (vcmla_rot180_laneq_f32): New.
25906 (vcmlaq_rot180_lane_f32): New.
25907 (vcmlaq_rot180_laneq_f32): New.
25908 (vcmla_rot270_f32): New.
25909 (vcmlaq_rot270_f32): New.
25910 (vcmlaq_rot270_f64): New.
25911 (vcmla_rot270_lane_f32): New.
25912 (vcmla_rot270_laneq_f32): New.
25913 (vcmlaq_rot270_lane_f32): New.
25914 (vcmlaq_rot270_laneq_f32): New.
25915 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25916 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25917 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25918 (FCADD, FCMLA): New.
25920 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25922 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25926 * config/pa/pa.c: Change "can not" to "cannot".
25927 * gimple-ssa-evrp-analyze.c: Likewise.
25928 * ipa-icf.c: Likewise.
25929 * ipa-polymorphic-call.c: Likewise.
25930 * ipa-pure-const.c: Likewise.
25931 * lra-constraints.c: Likewise.
25932 * lra-remat.c: Likewise.
25933 * reload1.c: Likewise.
25934 * reorg.c: Likewise.
25935 * tree-ssa-uninit.c: Likewise.
25937 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25941 * Makefile.in: Mechanically replace "can not" with "cannot".
25942 * alias.c: Likewise.
25943 * builtins.c: Likewise.
25944 * calls.c: Likewise.
25945 * cgraph.c: Likewise.
25946 * cgraph.h: Likewise.
25947 * cgraphclones.c: Likewise.
25948 * cgraphunit.c: Likewise.
25949 * combine-stack-adj.c: Likewise.
25950 * combine.c: Likewise.
25951 * common/config/i386/i386-common.c: Likewise.
25952 * config/aarch64/aarch64.c: Likewise.
25953 * config/alpha/sync.md: Likewise.
25954 * config/arc/arc.c: Likewise.
25955 * config/arc/predicates.md: Likewise.
25956 * config/arm/arm-c.c: Likewise.
25957 * config/arm/arm.c: Likewise.
25958 * config/arm/arm.h: Likewise.
25959 * config/arm/arm.md: Likewise.
25960 * config/arm/cortex-r4f.md: Likewise.
25961 * config/csky/csky.c: Likewise.
25962 * config/csky/csky.h: Likewise.
25963 * config/darwin-f.c: Likewise.
25964 * config/epiphany/epiphany.md: Likewise.
25965 * config/i386/i386.c: Likewise.
25966 * config/i386/sol2.h: Likewise.
25967 * config/m68k/m68k.c: Likewise.
25968 * config/mcore/mcore.h: Likewise.
25969 * config/microblaze/microblaze.md: Likewise.
25970 * config/mips/20kc.md: Likewise.
25971 * config/mips/sb1.md: Likewise.
25972 * config/nds32/nds32.c: Likewise.
25973 * config/nds32/predicates.md: Likewise.
25974 * config/pa/pa.c: Likewise.
25975 * config/rs6000/e300c2c3.md: Likewise.
25976 * config/rs6000/rs6000.c: Likewise.
25977 * config/s390/s390.h: Likewise.
25978 * config/sh/sh.c: Likewise.
25979 * config/sh/sh.md: Likewise.
25980 * config/spu/vmx2spu.h: Likewise.
25981 * cprop.c: Likewise.
25982 * dbxout.c: Likewise.
25983 * df-scan.c: Likewise.
25984 * doc/cfg.texi: Likewise.
25985 * doc/extend.texi: Likewise.
25986 * doc/fragments.texi: Likewise.
25987 * doc/gty.texi: Likewise.
25988 * doc/invoke.texi: Likewise.
25989 * doc/lto.texi: Likewise.
25990 * doc/md.texi: Likewise.
25991 * doc/objc.texi: Likewise.
25992 * doc/rtl.texi: Likewise.
25993 * doc/tm.texi: Likewise.
25995 * emit-rtl.c: Likewise.
25996 * emit-rtl.h: Likewise.
25997 * except.c: Likewise.
25998 * expmed.c: Likewise.
25999 * expr.c: Likewise.
26000 * fold-const.c: Likewise.
26001 * genautomata.c: Likewise.
26002 * gimple-fold.c: Likewise.
26003 * hard-reg-set.h: Likewise.
26004 * ifcvt.c: Likewise.
26005 * ipa-comdats.c: Likewise.
26006 * ipa-cp.c: Likewise.
26007 * ipa-devirt.c: Likewise.
26008 * ipa-fnsummary.c: Likewise.
26009 * ipa-icf.c: Likewise.
26010 * ipa-inline-transform.c: Likewise.
26011 * ipa-inline.c: Likewise.
26012 * ipa-polymorphic-call.c: Likewise.
26013 * ipa-profile.c: Likewise.
26014 * ipa-prop.c: Likewise.
26015 * ipa-pure-const.c: Likewise.
26016 * ipa-reference.c: Likewise.
26017 * ipa-split.c: Likewise.
26018 * ipa-visibility.c: Likewise.
26020 * ira-build.c: Likewise.
26021 * ira-color.c: Likewise.
26022 * ira-conflicts.c: Likewise.
26023 * ira-costs.c: Likewise.
26024 * ira-int.h: Likewise.
26025 * ira-lives.c: Likewise.
26028 * loop-invariant.c: Likewise.
26029 * loop-unroll.c: Likewise.
26030 * lower-subreg.c: Likewise.
26031 * lra-assigns.c: Likewise.
26032 * lra-constraints.c: Likewise.
26033 * lra-eliminations.c: Likewise.
26034 * lra-lives.c: Likewise.
26035 * lra-remat.c: Likewise.
26036 * lra-spills.c: Likewise.
26038 * lto-cgraph.c: Likewise.
26039 * lto-streamer-out.c: Likewise.
26040 * postreload-gcse.c: Likewise.
26041 * predict.c: Likewise.
26042 * profile-count.h: Likewise.
26043 * profile.c: Likewise.
26044 * recog.c: Likewise.
26046 * reload.c: Likewise.
26047 * reload1.c: Likewise.
26048 * reorg.c: Likewise.
26049 * resource.c: Likewise.
26050 * rtl.def: Likewise.
26052 * rtlanal.c: Likewise.
26053 * sched-deps.c: Likewise.
26054 * sched-ebb.c: Likewise.
26055 * sched-rgn.c: Likewise.
26056 * sel-sched-ir.c: Likewise.
26057 * sel-sched.c: Likewise.
26058 * shrink-wrap.c: Likewise.
26059 * simplify-rtx.c: Likewise.
26060 * symtab.c: Likewise.
26061 * target.def: Likewise.
26062 * toplev.c: Likewise.
26063 * tree-call-cdce.c: Likewise.
26064 * tree-cfg.c: Likewise.
26065 * tree-complex.c: Likewise.
26066 * tree-core.h: Likewise.
26067 * tree-eh.c: Likewise.
26068 * tree-inline.c: Likewise.
26069 * tree-loop-distribution.c: Likewise.
26070 * tree-nrv.c: Likewise.
26071 * tree-profile.c: Likewise.
26072 * tree-sra.c: Likewise.
26073 * tree-ssa-alias.c: Likewise.
26074 * tree-ssa-dce.c: Likewise.
26075 * tree-ssa-dom.c: Likewise.
26076 * tree-ssa-forwprop.c: Likewise.
26077 * tree-ssa-loop-im.c: Likewise.
26078 * tree-ssa-loop-ivcanon.c: Likewise.
26079 * tree-ssa-loop-ivopts.c: Likewise.
26080 * tree-ssa-loop-niter.c: Likewise.
26081 * tree-ssa-phionlycprop.c: Likewise.
26082 * tree-ssa-phiopt.c: Likewise.
26083 * tree-ssa-propagate.c: Likewise.
26084 * tree-ssa-threadedge.c: Likewise.
26085 * tree-ssa-threadupdate.c: Likewise.
26086 * tree-ssa-uninit.c: Likewise.
26087 * tree-ssanames.c: Likewise.
26088 * tree-streamer-out.c: Likewise.
26089 * tree.c: Likewise.
26090 * tree.h: Likewise.
26091 * vr-values.c: Likewise.
26093 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26095 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26096 (ix86_split_xorsign): Ditto.
26097 * config/i386/i386.c (ix86_expand_xorsign): New function.
26098 (ix86_split_xorsign): Ditto.
26099 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26100 (xorsign<mode>3): New expander.
26101 (xorsign<mode>3_1): New insn_and_split pattern.
26102 * config/i386/sse.md (xorsign<mode>3): New expander.
26104 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26106 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26107 (*tablejump_sp64): Likewise.
26108 (*tablejump<P:mode>): ...this.
26109 (*call_address_sp32): Merge into...
26110 (*call_address_sp64): Likewise.
26111 (*call_address<P:mode>): ...this.
26112 (*call_symbolic_sp32): Merge into...
26113 (*call_symbolic_sp64): Likewise.
26114 (*call_symbolic<P:mode>): ...this.
26115 (call_value): Remove constraint and add predicate.
26116 (*call_value_address_sp32): Merge into...
26117 (*call_value_address_sp64): Likewise.
26118 (*call_value_address<P:mode>): ...this.
26119 (*call_value_symbolic_sp32): Merge into...
26120 (*call_value_symbolic_sp64): Likewise.
26121 (*call_value_symbolic<P:mode>): ...this.
26122 (*sibcall_symbolic_sp32): Merge into...
26123 (*sibcall_symbolic_sp64): Likewise.
26124 (*sibcall_symbolic<P:mode>): ...this.
26125 (sibcall_value): Remove constraint and add predicate.
26126 (*sibcall_value_symbolic_sp32): Merge into...
26127 (*sibcall_value_symbolic_sp64): Likewise.
26128 (*sibcall_value_symbolic<P:mode>): ...this.
26129 (window_save): Minor tweak.
26130 (*branch_sp32): Merge into...
26131 (*branch_sp64): Likewise.
26132 (*branch<P:mode>): ...this.
26134 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26135 James Clarke <jrtc27@jrtc27.com>
26138 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26139 consistently in TLS address generation and adjust code to the renaming
26140 of patterns. Mark calls to __tls_get_addr as const.
26141 * config/sparc/sparc.md (tgd_hi22): Turn into...
26142 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26143 (tgd_lo10): Turn into...
26144 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26145 (tgd_add32): Merge into...
26146 (tgd_add64): Likewise.
26147 (tgd_add<P:mode>): ...this and use Pmode throughout.
26148 (tldm_hi22): Turn into...
26149 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26150 (tldm_lo10): Turn into...
26151 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26152 (tldm_add32): Merge into...
26153 (tldm_add64): Likewise.
26154 (tldm_add<P:mode>): ...this and use Pmode throughout.
26155 (tldm_call32): Merge into...
26156 (tldm_call64): Likewise.
26157 (tldm_call<P:mode>): ...this and use Pmode throughout.
26158 (tldo_hix22): Turn into...
26159 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26160 (tldo_lox10): Turn into...
26161 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26162 (tldo_add32): Merge into...
26163 (tldo_add64): Likewise.
26164 (tldo_add<P:mode>): ...this and use Pmode throughout.
26165 (tie_hi22): Turn into...
26166 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26167 (tie_lo10): Turn into...
26168 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26169 (tie_ld64): Use DImode throughout.
26170 (tie_add32): Merge into...
26171 (tie_add64): Likewise.
26172 (tie_add<P:mode>): ...this and use Pmode throughout.
26173 (tle_hix22_sp32): Merge into...
26174 (tle_hix22_sp64): Likewise.
26175 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26176 (tle_lox22_sp32): Merge into...
26177 (tle_lox22_sp64): Likewise.
26178 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26179 (*tldo_ldub_sp32): Merge into...
26180 (*tldo_ldub_sp64): Likewise.
26181 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26182 (*tldo_ldub1_sp32): Merge into...
26183 (*tldo_ldub1_sp64): Likewise.
26184 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26185 (*tldo_ldub2_sp32): Merge into...
26186 (*tldo_ldub2_sp64): Likewise.
26187 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26188 (*tldo_ldsb1_sp32): Merge into...
26189 (*tldo_ldsb1_sp64): Likewise.
26190 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26191 (*tldo_ldsb2_sp32): Merge into...
26192 (*tldo_ldsb2_sp64): Likewise.
26193 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26194 (*tldo_ldub3_sp64): Use DImode throughout.
26195 (*tldo_ldsb3_sp64): Likewise.
26196 (*tldo_lduh_sp32): Merge into...
26197 (*tldo_lduh_sp64): Likewise.
26198 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26199 (*tldo_lduh1_sp32): Merge into...
26200 (*tldo_lduh1_sp64): Likewise.
26201 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26202 (*tldo_ldsh1_sp32): Merge into...
26203 (*tldo_ldsh1_sp64): Likewise.
26204 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26205 (*tldo_lduh2_sp64): Use DImode throughout.
26206 (*tldo_ldsh2_sp64): Likewise.
26207 (*tldo_lduw_sp32): Merge into...
26208 (*tldo_lduw_sp64): Likewise.
26209 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26210 (*tldo_lduw1_sp64): Use DImode throughout.
26211 (*tldo_ldsw1_sp64): Likewise.
26212 (*tldo_ldx_sp64): Likewise.
26213 (*tldo_stb_sp32): Merge into...
26214 (*tldo_stb_sp64): Likewise.
26215 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26216 (*tldo_sth_sp32): Merge into...
26217 (*tldo_sth_sp64): Likewise.
26218 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26219 (*tldo_stw_sp32): Merge into...
26220 (*tldo_stw_sp64): Likewise.
26221 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26222 (*tldo_stx_sp64): Use DImode throughout.
26224 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26226 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26227 check configure option to set BTI and Return Address Signing.
26228 * configure.ac: Add --enable-standard-branch-protection and
26229 --disable-standard-branch-protection.
26230 * configure: Regenerated.
26231 * doc/install.texi: Document the same.
26233 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26234 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26236 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26237 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26238 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26240 * config/aarch64/aarch64-bti-insert.c: New file.
26241 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26243 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26245 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26246 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26247 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26248 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26250 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26252 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26253 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26254 Disable bti for -mbranch-protection=none.
26255 (aarch64_handle_standard_branch_protection): Enable bti for
26256 -mbranch-protection=standard.
26257 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26258 -mbranch-protection.
26259 (aarch64_bti_enabled): Check if bti is enabled.
26260 * config/aarch64/aarch64.opt: Declare target variable.
26261 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26263 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26265 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26266 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26267 (aarch64_expand_epilogue): Likewise.
26268 (aarch64_output_mi_thunk): Likewise.
26269 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26270 TAILCALL_ADDR_REGS to x16 and x17.
26271 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26273 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26275 * config/aarch64/aarch64-option-extensions.def: Define
26276 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26277 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26278 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26279 (AARCH64_FL_PREDRES): New.
26280 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26281 AARCH64_FL_PREDRES by default.
26282 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26284 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26286 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26288 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26289 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26290 * doc/invoke.texi: Document ARMv8.5-A.
26292 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26294 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26295 (xorsign<mode>3): Likewise.
26297 2019-01-09 Jelinek <jakub@redhat.com>
26299 PR middle-end/88758
26300 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26301 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26303 PR rtl-optimization/88331
26304 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26305 not currently_expanding_to_rtl.
26307 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26309 * doc/invoke.texi (-Os): Remove trailing spaces.
26310 (-finline-functions): Remove reference to -O2.
26312 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26314 PR rtl-optimization/79593
26315 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26317 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26318 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26320 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26323 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26327 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26328 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26330 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26333 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26334 ix86_avx_u128_mode_entry.
26336 2019-01-08 Martin Liska <mliska@suse.cz>
26338 PR tree-optimization/88753
26339 * tree-switch-conversion.c (switch_conversion::build_one_array):
26340 Come up with local variable constructor. Convert first to
26341 type of constructor values.
26343 2019-01-08 Richard Biener <rguenther@suse.de>
26345 PR tree-optimization/86554
26346 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26347 rpo_avail): Move earlier.
26348 (visit_nary_op): When value-numbering to expressions
26349 with different overflow behavior make sure there's an
26350 available expression on the path.
26352 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26354 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26355 aarch64_parse_branch_protection,
26356 struct aarch64_branch_protect_type,
26357 aarch64_handle_no_branch_protection,
26358 aarch64_handle_standard_branch_protection,
26359 aarch64_validate_mbranch_protection,
26360 aarch64_handle_pac_ret_protection,
26361 aarch64_handle_attr_branch_protection,
26362 accepted_branch_protection_string,
26363 aarch64_pac_ret_subtypes,
26364 aarch64_branch_protect_types,
26365 aarch64_handle_pac_ret_leaf): Define.
26366 (aarch64_override_options_after_change_1, aarch64_override_options):
26367 Add check for accepted_branch_protection_string.
26368 (aarch64_option_save): Save accepted_branch_protection_string.
26369 (aarch64_option_restore): Save accepted_branch_protection_string.
26370 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26371 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26372 msign-return-address.
26373 * doc/invoke.texi: Add mbranch-protection.
26375 2019-01-08 Alan Modra <amodra@gmail.com>
26378 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26379 Delete "unknownp" parameter. Adjust callers. Handle
26380 CONST_INT, PLUS, MINUS, and MULT.
26381 (attr_value_aligned): Renamed from or_attr_value.
26382 (min_attr_value): Return INT_MIN for unhandled rtl case..
26383 (min_fn): ..and translate to INT_MAX here.
26384 (write_length_unit_log): Modify to cope without "unknown".
26385 (write_attr_value): Handle IF_THEN_ELSE.
26387 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26389 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26390 optimization for masked stores.
26392 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26394 PR middle-end/88567
26395 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26396 output vector directly to duplicate_and_interleave instead of
26397 going through a temporary. Postpone insertion of ctor_seq to
26398 the end of the loop.
26400 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26403 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26404 unsigned_p. Handle signed and unsigned overflow correction as
26406 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26408 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26410 (add<mode>3_compareV_imm): Make this callable for expanding.
26411 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26412 aarch64_plus_operand for operand 2.
26413 (subv<GPI:mode>_insn): New insn pattern.
26414 (subv<GPI:mode>_imm): Likewise.
26415 (negv<GPI:mode>3): New expand pattern.
26416 (negv<GPI:mode>_insn): New insn pattern.
26417 (negv<GPI:mode>_cmp_only): Likewise.
26418 (cmpv<GPI:mode>_insn): Likewise.
26419 (subvti4): Use register_operand for operand 1. Update call to
26420 aarch64_expand_subvti.
26421 (usubvti4): Likewise.
26422 (negvti3): New expand pattern.
26423 (negdi_carryout): New insn pattern.
26424 (negvdi_carryinV): New insn pattern.
26425 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26426 version the named version.
26427 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26429 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26431 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26433 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26434 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26435 (sub<mode>3_carryinCV): Delete.
26436 (sub<GPI:mode>3_carryinV): New expand pattern.
26437 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26439 2019-01-07 Richard Biener <rguenther@suse.de>
26441 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26442 of tree_operand_hash.
26444 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26446 PR tree-optimization/88598
26447 * tree.h (single_nonzero_element): Declare.
26448 * tree.c (single_nonzero_element): New function.
26449 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26450 if I is the only nonzero element of CST.
26452 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26454 PR tree-optimization/88598
26455 * tree.h (initializer_each_zero_or_onep): Declare.
26456 * tree.c (initializer_each_zero_or_onep): New function.
26457 (signed_or_unsigned_type_for): Handle float types too.
26458 (unsigned_type_for, signed_type_for): Update comments accordingly.
26459 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26460 x & { 0 or -1, 0 or -1, ... }.
26462 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26464 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26465 with x86_64-pc-linux-gnu.
26467 2019-01-07 Tom de Vries <tdevries@suse.de>
26470 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26472 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26475 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26477 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26478 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26479 TARGET_AVX512F as condition.
26482 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26483 const_not_ok_for_debug_p target hook.
26484 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26485 on UNSPEC and subexpressions thereof if all subexpressions of the
26486 UNSPEC are CONSTANT_P.
26488 PR tree-optimization/88676
26489 * tree-ssa-phiopt.c (two_value_replacement): New function.
26490 (tree_ssa_phiopt_worker): Call it.
26493 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26494 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26497 * tree-vect-generic.c: Include insn-config.h and recog.h.
26498 (expand_vector_piecewise): Add defaulted ret_type argument,
26499 if non-NULL, use that in preference to type for the result type.
26500 (expand_vector_parallel): Formatting fix.
26501 (do_vec_conversion, do_vec_narrowing_conversion,
26502 expand_vector_conversion): New functions.
26503 (expand_vector_operations_1): Call expand_vector_conversion
26504 for VEC_CONVERT ifn calls.
26505 * internal-fn.def (VEC_CONVERT): New internal function.
26506 * internal-fn.c (expand_VEC_CONVERT): New function.
26507 * fold-const-call.c (fold_const_vec_convert): New function.
26508 (fold_const_call): Use it for CFN_VEC_CONVERT.
26509 * doc/extend.texi (__builtin_convertvector): Document.
26511 2019-01-07 Tom de Vries <tdevries@suse.de>
26513 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26514 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26515 vector_red_partition, vector_red_sym): New global variables.
26516 (nvptx_option_override): Initialize vector_red_sym.
26517 (nvptx_declare_function_name): Restore red_partition register.
26518 (nvptx_file_end): Emit code to declare the vector reduction variables.
26519 (nvptx_output_red_partition): New function.
26520 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26521 large vector reductions.
26522 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26523 (nvptx_init_builtins): Add VECTOR_ADDR.
26524 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26525 Handle nvptx_expand_shared_addr.
26526 (nvptx_get_shared_red_addr): Add vector argument and handle large
26528 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26530 (nvptx_goacc_reduction_init): Likewise.
26531 (nvptx_goacc_reduction_fini): Likewise.
26532 (nvptx_goacc_reduction_teardown): Likewise.
26533 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26534 init,fini,teardown}.
26535 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26536 (nvptx_set_current_function): Init vector_red_partition.
26537 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26538 (nvptx_red_partition): New insn.
26539 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26541 2019-01-07 Tom de Vries <tdevries@suse.de>
26544 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26547 2019-01-07 Tom de Vries <tdevries@suse.de>
26549 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26550 (nvptx_option_override): Init oacc_bcast_partition.
26551 (nvptx_init_oacc_workers): New function.
26552 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26553 (nvptx_needs_shared_bcast): New function.
26554 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26555 to propagate state.
26556 (nvptx_shared_propagate): Initialize vector bcast partition and
26557 synchronization state.
26558 (nvptx_single): Generalize to enable vectors to use shared-memory
26559 to propagate state.
26560 (nvptx_process_pars): Likewise.
26561 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26562 * config/nvptx/nvptx.h (struct machine_function): Add
26563 bcast_partition and sync_bar members.
26565 2019-01-07 Tom de Vries <tdevries@suse.de>
26567 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26568 (nvptx_apply_dim_limits): New function.
26569 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26572 2019-01-07 Tom de Vries <tdevries@suse.de>
26574 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26575 as late as possible.
26577 2019-01-07 Tom de Vries <tdevries@suse.de>
26579 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26580 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26581 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26582 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26583 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26585 2019-01-07 Tom de Vries <tdevries@suse.de>
26587 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26589 2019-01-07 Tom de Vries <tdevries@suse.de>
26591 * omp-offload.c (oacc_get_min_dim): New function.
26592 * omp-offload.h (oacc_get_min_dim): Declare.
26594 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26597 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26598 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26600 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26604 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26606 * ipa-inline.c (edge_badness): Use inlined_time instead of
26607 inline_summaries->get.
26609 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26611 * opts.c (enable_fdo_optimizations): Enable
26612 version-loops-for-strides, loop-interchange, unrol-and-jam
26613 and tree-loop-distribution.
26614 * invoke.texi: Document newly enabled options.
26616 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26618 * doc/invoke.texi (max-inline-insns-small): New parameters.
26619 * ipa-inline.c (want_early_inline_function_p): simplify.
26620 (want_inline_small_function_p): Fix pasto from previous patch;
26621 use max-inline-insns-small bound.
26622 * params.def (max-inline-insns-small): New param.
26623 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26624 variables correctly.
26626 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26628 * doc/invoke.texi: Document max-inline-insns-size,
26629 uninlined-function-insns, uninlined-function-time,
26630 uninlined-thunk-insns and uninlined-thunk-time.
26631 * params.def: Add max-inline-insns-size,
26632 uninlined-function-insns, uninlined-function-time,
26633 uninlined-thunk-insns and uninlined-thunk-time.
26634 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26636 * ipa-inline.c (can_inline_edge_by_limits_p,
26637 want_inline_small_function_p): Use new parameters.
26639 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26641 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26643 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26645 PR middle-end/82564
26647 * expr.c (expand_assignment): For calls returning VLA structures
26648 if to_rtx is not a MEM, force it into a stack temporary.
26651 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26652 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26653 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26654 subexpressions of both operands.
26655 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26656 subrtxes are CONSTANT_P.
26657 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26658 2018-11-09 changes.
26660 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26662 * params.def (hot-bb-count-ws-permille): Set to 990.
26664 2019-01-04 Martin Sebor <msebor@redhat.com>
26667 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26670 2019-01-04 Martin Sebor <msebor@redhat.com>
26673 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26675 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26677 * gdbinit.in: Turn off pagination for the skip commands, restore
26678 it to previous state afterwards.
26680 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26683 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26684 of GET_MODE (opN) as modes of the libcall arguments.
26686 2019-01-04 Jan Beulich <jbeulich@suse.com>
26688 * config/i386/sse.md
26689 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26690 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26691 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26692 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26693 avx512f_vmcmp<mode>3<round_saeonly_name>,
26694 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26695 avx512f_maskcmp<mode>3,
26696 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26697 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26698 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26699 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26700 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26701 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26702 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26703 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26704 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26705 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26706 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26707 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26708 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26709 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26710 avx512cd_maskb_vec_dup<mode>,
26711 avx512cd_maskw_vec_dup<mode>,
26712 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26713 avx512dq_vmfpclass<mode>,
26714 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26717 2019-01-03 Martin Sebor <msebor@redhat.com>
26719 PR tree-optimization/88659
26720 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26722 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26724 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26725 unaligned vsx and avoid lxvd2x/stxvd2x.
26726 (gen_lvx_v4si_move): New function.
26728 2019-01-03 Tom de Vries <tdevries@suse.de>
26730 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26731 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26733 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26735 2019-01-03 Tom de Vries <tdevries@suse.de>
26737 * config/nvptx/nvptx.c (struct offload_attrs): New.
26738 (populate_offload_attrs): New function. Factor mask extraction out of
26739 nvptx_reorg. Add extraction of dimensions.
26740 (nvptx_reorg): Use populate_offload_attrs.
26742 2019-01-03 Tom de Vries <tdevries@suse.de>
26744 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26745 cases for oacc_min_dims_p and routine_p. Add asserts for
26746 oacc_default_dims_p and offload_region_p.
26748 2019-01-03 Tom de Vries <tdevries@suse.de>
26750 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26751 factored out of ...
26752 (nvptx_goacc_validate_dims): ... here.
26754 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26756 PR tree-optimization/85574
26757 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26759 (struct ssa_equip_hash_traits): Declare.
26760 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26762 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26765 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26766 change it to qualified_type.
26768 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26770 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26771 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26773 2019-01-02 Martin Sebor <msebor@redhat.com>
26774 Jeff Law <law@redhat.com>
26776 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26777 (get_range_strlen_tree): Update appropriately.
26779 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26781 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26782 rather than set_range_info.
26783 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26784 maybe_set_strlen_range. Handle potentially boundary crossing
26785 cases more conservatively.
26786 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26787 Call set_strlen_range.
26788 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26790 PR middle-end/88663
26791 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26792 need the flexp argument.
26793 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26794 from calls to get_range_strlen. Update comments. Just update
26795 VAL for an unterminated const char array and let the reset of the
26796 code handle it normally. No longer try to set *flexp. Adjust
26798 (get_range_strlen): Update for the new get_range_strlen API.
26799 (get_maxval_strlen): Similarly.
26800 (gimple_fold_builtin_strlen): Handle update meaning of return value
26801 from get_range_strlen.
26802 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26803 get_range_strlen API.
26805 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26808 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26809 false at WPA time when body was removed.
26811 2019-01-02 Martin Liska <mliska@suse.cz>
26813 PR tree-optimization/88650
26814 * predict.c (set_even_probabilities): Calculate probability
26815 remainer only when really used.
26817 2019-01-02 Richard Biener <rguenther@suse.de>
26819 PR middle-end/88651
26820 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26821 widest_ints when mangling max_stmt_execution results.
26823 2019-01-02 Richard Biener <rguenther@suse.de>
26825 PR tree-optimization/88621
26826 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26827 bitfields when canoncalizing.
26829 2019-01-02 Richard Biener <rguenther@suse.de>
26832 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26833 cost of cheap SSE instruction.
26835 2019-01-02 Richard Biener <rguenther@suse.de>
26838 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26839 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26841 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26842 set after UIDs before splitting them.
26844 2019-01-01 Martin Sebor <msebor@redhat.com>
26845 Jeff Law <law@redhat.com>
26847 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26848 length is optimistic. If it is, then arrange to compute the
26849 conservative length as well.
26851 * gimple-fold.h (get_range_strlen): Update prototype.
26852 * builtins.c (check_access): Update call to get_range_strlen to use
26853 c_strlen_data pointer. Change various variable accesses to instead
26854 pull data from the c_strlen_data structure.
26855 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26856 * calls.c (maybe_warn_nonstring_arg): Likewise.
26857 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26858 minimum length if maximum lengh is unknown.
26859 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26860 that used c_strlen, it's no longer needed. Restructure slightly.
26861 (format_string): Set unlikely range appropriately.
26862 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26864 (get_range_strlen): Accept c_strlen_data pointer for external
26865 call sites as well. Pass through to call to internal get_range_strlen.
26866 Adjust minlen, maxlen and maxbound as needed.
26867 (get_maxval_strlen): Update comments.
26868 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26869 to use c_strlen_data pointer. Change variable accesses to instead
26870 use c_strlen_data data members.
26872 * gimple-fold.c (get_range_strlen): Update prototype.
26873 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26874 local variables. Use pdata to return information to caller.
26875 Update calls to get_range_strlen. Update pdata->maxbound.
26876 (get_range_strlen -- static version): Similarly.
26877 (get_range_strlen -- extern version): Update for internal
26878 get_range_strlen API change. Convert to external data format.
26879 (get_maxval_strlen): Similarly.
26881 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26883 * coverage.c (get_coverage_counts): Use current_function_decl.
26884 * profile.c (read_thunk_profile): New function.
26885 (branch_prob): Add THUNK parameter.
26886 * tree-profile.c (tree_profiling): Handle thunks.
26887 * value-prof.c (init_node_map): Handle thunks.
26888 * value-prof.h (branch_prob): Upate prototype.
26889 (read_thunk_profile): Declare.
26891 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26893 Update copyright years.
26895 * gcc.c (process_command): Update copyright notice dates.
26896 * gcov-dump.c (print_version): Ditto.
26897 * gcov.c (print_version): Ditto.
26898 * gcov-tool.c (print_version): Ditto.
26899 * gengtype.c (create_file): Ditto.
26900 * doc/cpp.texi: Bump @copying's copyright year.
26901 * doc/cppinternals.texi: Ditto.
26902 * doc/gcc.texi: Ditto.
26903 * doc/gccint.texi: Ditto.
26904 * doc/gcov.texi: Ditto.
26905 * doc/install.texi: Ditto.
26906 * doc/invoke.texi: Ditto.
26908 Copyright (C) 2019 Free Software Foundation, Inc.
26910 Copying and distribution of this file, with or without modification,
26911 are permitted in any medium without royalty provided the copyright
26912 notice and this notice are preserved.