1 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3 * config/arm/predicates.md (arm_carry_operation): New special
5 * config/arm/iterators.md (LTUGEU): Delete iterator.
6 (cnb): Delete code attribute.
7 (optab): Delete ltu and geu elements.
8 * config/arm/arm.md (addsi3_carryin): Renamed from
9 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
10 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
11 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
12 (addsi3_carryin_clobercc): Similarly.
13 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
16 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
18 * config/arm/arm.md (arm_subdi3): Delete insn.
19 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
21 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
23 * config/arm/arm-modes.def (CC_RSB): New CC mode.
24 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
25 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
27 (maybe_get_arm_condition_code): Handle CC_RSBmode.
28 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
30 (subdi3): Rewrite to early-expand the sub-operations.
31 (rsb_im_compare): New pattern.
33 (negdi2_insn): Delete.
34 (arm_negsi2): Correct type attribute to alu_imm.
35 (negsi2_0compare): New insn pattern.
36 (negsi2_carryin): New insn pattern.
38 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
40 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
43 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
45 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
46 to match canonical form.
48 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
50 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
51 (extend<mode>di2): Likewise.
53 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
55 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
56 * config/arm/arm.c (arm_decompose_di_binop): New function.
57 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
58 If not generating Thumb-1 code, decompose the operation into 32-bit
60 * add0si_carryin_<optab>: New pattern.
62 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
64 * arm.md (adddi3): Only accept register operands.
65 (arm_adddi3): Convert to simple insn with no split. Do not accept
67 (adddi_sesidi_di): Delete patern.
68 (adddi_zesidi_di): Likewise.
69 (uaddv<mode>4): Use LTU as condition for branch.
70 (adddi3_compareV): Convert to simple insn with no split.
71 (addsi3_compareV_upper): Delete pattern.
72 (adddi3_compareC): Convert to simple insn with no split. Correct
73 flags setting expression.
74 (addsi3_compareC_upper): Delete pattern.
75 (addsi3_compareC): Correct flags setting expression.
76 (subdi3_compare1): Convert to simple insn with no split.
77 (subsi3_carryin_compare): Delete pattern.
78 (arm_subdi3): Convert to simple insn with no split.
79 (subdi_zesidi): Delete pattern.
80 (subdi_di_sesidi): Delete pattern.
81 (subdi_zesidi_di): Delete pattern.
82 (subdi_sesidi_di): Delete pattern.
83 (subdi_zesidi_zesidi): Delete pattern.
84 (negvdi3): Use s_register_operand.
85 (negdi2_compare): Convert to simple insn with no split.
86 (negdi2_insn): Likewise.
87 (negsi2_carryin_compare): Delete pattern.
88 (negdi_zero_extendsidi): Delete pattern.
89 (arm_cmpdi_insn): Convert to simple insn with no split.
90 (negdi2): Don't call gen_negdi2_neon.
91 * config/arm/neon.md (adddi3_neon): Delete pattern.
92 (subdi3_neon): Delete pattern.
93 (negdi2_neon): Delete pattern.
94 (splits for negdi2_neon): Delete splits.
96 2019-10-18 Jakub Jelinek <jakub@redhat.com>
99 * ggc-page.c (release_pages): Read g->alloc_size before free rather
102 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
104 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
105 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
106 new multilib variants and new mappings.
108 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
111 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
113 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
114 Richard Sandiford <richard.sandiford@arm.com>
117 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
118 and define hashmap traits for it.
119 (loop_vec_info::scalar_cond_masked_set): New member.
120 (vect_record_loop_mask): Adjust prototype.
121 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
123 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
124 vect_record_loop_mask.
125 (vectorizable_live_operation): Likewise.
126 (vect_record_loop_mask): New param scalar_mask. Add entry
127 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
128 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
129 Pass it as last arg to vect_record_loop_mask.
130 (vectorizable_call): Pass scalar_mask as last arg to
131 vect_record_loop_mask.
132 (vectorizable_store): Likewise.
133 (vectorizable_load): Likewise.
134 (vectorizable_condition): Check if another part of vectorized code
135 applies loop_mask to condition or to it's inverse, and if yes,
136 apply loop_mask to result of vector comparison.
138 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
140 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
142 2019-10-18 Jakub Jelinek <jakub@redhat.com>
144 PR tree-optimization/92056
145 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
146 before calling compute_builtin_object_size.
148 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
151 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
152 (movdi_low_st): Delete.
153 * config/rs6000/rs6000.c
154 (darwin_rs6000_legitimate_lo_sum_const_p): New.
155 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
156 * config/rs6000/rs6000.md (movsi_low): Delete.
158 2019-10-17 Jason Merrill <jason@redhat.com>
160 * gimplify.h (get_initialized_tmp_var): Add default argument to
162 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
163 NULL post_p argument.
164 * targhooks (std_gimplify_va_arg_expr): Likewise.
166 2019-10-17 Richard Biener <rguenther@suse.de>
168 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
169 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
170 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
171 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
172 * tree-vect-loop.c (vect_is_simple_reduction): Set
173 STMT_VINFO_REDUC_CODE.
174 (vectorizable_reduction): Remove dead and redundant code, use
175 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
177 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
179 Fix breakage introduced by r276985.
181 * config/avr/avr.c (avr_option_override): Remove set of
182 PARAM_ALLOW_STORE_DATA_RACES.
183 * common/config/avr/avr-common.c (avr_option_optimization_table)
184 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
186 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
188 * config/i386/i386.h (processor_costs): Add clear_ratio.
189 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
190 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
191 of 6 and move_ratio in all cost models.
193 2019-10-17 Richard Biener <rguenther@suse.de>
195 * tree-vect-loop.c (check_reduction_path): Compute reduction
197 (vect_is_simple_reduction): Remove special-case of single-stmt
198 reduction path detection.
200 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
202 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
204 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
206 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
207 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
208 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
209 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
210 New combine patterns.
211 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
213 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
215 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
217 * tree-vrp.c (value_range_base::dump): Display +INF for both
218 pointers and integers when appropriate.
220 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
222 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
223 when to use versioning threshold.
225 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
227 * tree-vect-loop.c (determine_peel_for_niter): New function contained
228 outlined code from ...
229 (vect_analyze_loop_2): ... here.
231 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
233 * tree-vect-loop.c (vect_transform_loop): Move code from here...
234 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
235 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
237 2019-10-17 Richard Biener <rguenther@suse.de>
239 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
240 (vect_is_simple_reduction): Move all validity checks ...
241 (vectorizable_reduction): ... here. Compute whether we
242 need a fold-left reduction here.
243 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
244 both overloads, check needs_fold_left_reduction_p directly.
245 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
247 2019-10-17 Richard Biener <rguenther@suse.de>
249 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
250 TARGET_MEM_REF creation.
252 2019-10-17 Richard Biener <rguenther@suse.de>
254 PR tree-optimization/92129
255 * tree-vect-loop.c (vectorizable_reduction): Also fail
256 on GIMPLE_SINGLE_RHS.
258 2019-10-17 Jakub Jelinek <jakub@redhat.com>
260 PR tree-optimization/92056
261 * tree-object-size.c (cond_expr_object_size): Return early if then_
262 processing resulted in unknown size.
264 PR tree-optimization/92115
265 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
266 temporary if it could trap.
268 2019-10-17 Richard Biener <rguenther@suse.de>
271 * dwarf2out.c (gen_formal_parameter_die): Also try to match
272 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
274 2019-10-16 Jakub Jelinek <jakub@redhat.com>
276 * tree-ssa-strlen.c (maybe_invalidate): Use
277 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
279 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
280 Jim Wilson <jimw@sifive.com>
282 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
283 regs to SIBCALL_REGS.
284 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
285 passing regs to SIBCALL_REGS.
287 2019-10-16 Martin Sebor <msebor@redhat.com>
289 PR tree-optimization/83821
290 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
291 the length of a string when available.
292 (handle_builtin_memset) Add argument.
293 (handle_store, strlen_check_and_optimize_call): Same.
294 (check_and_optimize_stmt): Same. Pass it to callees.
296 2019-10-16 Martin Sebor <msebor@redhat.com>
298 PR tree-optimization/91996
299 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
301 (compare_nonzero_chars): Add an overload.
302 (count_nonzero_bytes): Add an argument. Call overload above.
303 Handle non-constant lengths in some range.
304 (handle_store): Add an argument.
305 (check_and_optimize_stmt): Pass an argument to handle_store.
307 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
309 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
311 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
313 * config/mips/mips.c (mips_expand_builtin_insn): Force the
314 operands which correspond to the same input-output register to
315 have the same pseudo assigned to them.
317 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
319 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
321 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
323 * config/aarch64/aarch64.c (aarch64_classify_symbol):
324 Apply reasonable limit to symbol offsets.
326 2019-10-16 Richard Biener <rguenther@suse.de>
328 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
329 (vect_is_simple_reduction): Delay checking to
330 vectorizable_reduction and relax the checking.
331 (vectorizable_reduction): Check we have a simple use. Check
332 for bogus condition reductions.
333 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
334 are looking at the last stmt in a pattern sequence when
335 filling in backedge PHI values.
337 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
338 Jiufu Guo <guojiufu@linux.ibm.com>
341 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
342 the callee explicitly disables some isa_flags the caller is using.
344 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
346 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
348 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
350 * genmodes.c (mode_data::order): New field.
351 (blank_mode): Update accordingly.
352 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
353 (make_vector_modes): Likewise.
354 (VECTOR_MODES): Update use accordingly.
355 (cmp_modes): Sort by the new order field ahead of sorting by size.
356 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
357 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
358 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
359 (aarch64_classify_vector_mode): Handle the new partial modes.
360 (aarch64_vl_bytes): New function.
361 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
362 when counting the number of registers in an SVE mode.
363 (aarch64_class_max_nregs): Likewise.
364 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
366 (aarch64_classify_address): Treat partial vectors analogously
368 (aarch64_print_address_internal): Consolidate the printing of
369 MUL VL addresses, using aarch64_vl_bytes as the number of
370 bytes represented by "VL".
371 (aarch64_vector_mode_supported_p): Reject partial vector modes.
373 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
375 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
376 rather than known_lt when choosing frame layouts.
378 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
380 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
381 that all the adjustments add up to the full frame size.
382 Use crtl->outgoing_args_size directly as the final adjustment
385 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
387 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
388 "frame" reference instead of always referring directly to
389 "cfun->machine->frame".
391 2019-10-16 Richard Biener <rguenther@suse.de>
393 PR tree-optimization/92119
394 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
395 against missing bswap lhs.
397 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
400 * poly-int.h (constant_lower_bound_with_limit): New function.
401 (constant_upper_bound_with_limit): Likewise.
402 * doc/poly-int.texi: Document them.
403 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
404 into the worst-case INTEGER_CST bounds.
406 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
409 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
410 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
411 * ipa-predicat.h (struct expr_eval_op): New struct.
412 (expr_eval_ops): New typedef.
413 (struct condition): Add type and param_ops fields, remove size field.
414 (add_condition): Replace size parameter with type parameter, add
416 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
417 (predicate::add_clause): Add comparisons on type and param_ops.
418 (dump_condition): Add debug dump for param_ops.
419 (remap_after_inlining): Adjust call arguments to add_condition.
420 (add_condition): Replace size parameter with type parameter, add
421 param_ops parameter. Unshare constant value used in conditions.
422 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
423 parameter expressions using param_ops.
424 (decompose_param_expr): New function.
425 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
426 to replace call to unmodified_parm_or_parm_agg_item.
427 (set_switch_stmt_execution_predicate): Likewise.
428 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
430 (inline_read_section): Read param_ops from summary stream.
431 (ipa_fn_summary_write): Write param_ops to summary stream.
433 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
435 PR rtl-optimization/92107
436 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
439 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
441 * config/darwin.c: Update description of fix and continue.
443 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
445 * config/darwin.c (darwin_binds_local_p): Update to call
446 default_binds_local_p_3 () directly. amend comments.
448 2019-10-15 Richard Biener <rguenther@suse.de>
450 * lto-streamer-out.c (lto_variably_modified_type_p): New.
451 (tree_is_indexable): Use it.
452 * tree-streamer-out.c (pack_ts_type_common_value_fields):
453 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
454 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
456 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
458 * config/msp430/msp430.md (zero_extendqipsi2): New.
459 (zero_extendqisi2): Optimize case where src register and base dst
460 register are the same.
461 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
462 (zero_extendpsisi2): Optimize r->m case.
463 Add unnamed insn patterns to catch insns combine searches for when
464 optimizing pointer manipulation.
466 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
468 * config/msp430/msp430.md: Group zero_extend* insns together.
470 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
472 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
474 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
476 (msp430_subreg): Likewise.
477 (msp430_split_addsi): Likewise.
478 (msp430_print_operand_addr): Likewise.
479 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
480 (USE_STORE_POST_INCREMENT): Define.
481 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
482 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
483 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
484 (msp430_general_dst_operand): New.
485 (msp430_general_dst_nonv_operand): New.
486 (msp430_nonsubreg_operand): Remove.
487 (msp430_nonsubreg_dst_operand): New.
488 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
489 of defunct msp430_nonsubreg_operand.
490 (msp430_nonsubregnonpostinc_or_imm_operand): New.
492 2019-10-15 Richard Biener <rguenther@suse.de>
494 PR tree-optimization/91929
495 * tree-ssa-pre.c (pre_expr_d::loc): New member.
496 (get_or_alloc_expr_for_name): Initialize it.
497 (get_or_alloc_expr_for_constant): Likewise.
498 (phi_translate_1): Copy it.
499 (create_expression_by_pieces): Use the original location
500 of the expression for the inserted stmt.
501 (compute_avail): Record the location of the stmt for the
504 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
506 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
507 before using tree_to_uhwi.
509 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
511 * config/s390/s390.md: Run %a0:DI splitters only after reload.
513 2019-10-15 Richard Biener <rguenther@suse.de>
515 PR tree-optimization/92094
516 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
517 do not adjust the reduction definition def type.
518 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
519 defines the latch argument of the PHI.
521 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
524 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
525 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
526 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
527 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
528 _mm_maskz_roundscale_round_sd): New intrinsics.
529 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
530 __builtin_ia32_rndscales?_mask_round builtins instead of
531 __builtin_ia32_rndscales?_round.
532 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
533 __builtin_ia32_rndscalesd_round): Remove.
534 (__builtin_ia32_rndscaless_mask_round,
535 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
537 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
538 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
539 ... this, adjust and add subst atrributes to make it maskable.
541 2019-10-15 Richard Biener <rguenther@suse.de>
544 * common.opt (fallow-store-data-races): New.
545 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
546 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
547 * doc/invoke.texi (fallow-store-data-races): Document.
548 (--param allow-store-data-races): Remove docs.
549 * opts.c (default_options_table): Enable -fallow-store-data-races
551 (default_options_optimization): Do not enable --param
552 allow-store-data-races at -Ofast.
553 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
554 instead of PARAM_ALLOW_STORE_DATA_RACES.
555 * tree-ssa-loop-im.c (execute_sm): Likewise.
557 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
559 PR tree-optimization/92085
560 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
561 instead of calling it unconditionally after
562 delete_dead_or_redundant_assignment and fix indentation.
564 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
566 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
568 (*fmsub<SDF:mode>4): Likewise.
569 *fnmsub<SDF:mode>4): Likewise.
570 (*fnmadd<SDF:mode>4): Likewise.
572 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
574 * doc/tree-ssa.texi: Update renamed macro name.
576 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
578 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
581 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
583 * config/darwin.c: Use unsigned ints for the picbase label
584 counters, initialise the vars explicitly.
585 (update_pic_label_number_if_needed): Move a variable declaration
586 to where it's needed.
587 (machopic_output_function_base_name): Use a more strict checking
588 assert, and and unsigned int for the picbase label counter.
589 (machopic_get_function_picbase): Likewise.
591 2019-10-14 Richard Biener <rguenther@suse.de>
594 * dse.c (scan_insn): Use param max_active_local_stores.
595 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
596 based on optimization level.
597 * loop-invariant.c (move_loop_invariants): Adjust
598 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
599 * opts.c (default_options_optimization): Do not adjust
600 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
601 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
603 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
605 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
607 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
609 * config/arm/arm.c (arm_option_override): Don't override sched
612 2019-10-14 Richard Biener <rguenther@suse.de>
614 PR tree-optimization/92069
615 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
616 cycles do not set vect_nested_cycle on the latch definition.
618 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
620 * function-abi.h (expr_callee_abi): Declare.
621 * function-abi.cc (expr_callee_abi): New function.
623 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
625 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
627 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
628 non-zero being represented as [1,MAX].
630 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
632 * tree-sra.c (dump_access): Add missing braces.
634 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
636 * config/darwin.c (machopic_indirection_name): Rework the
637 function to emit linker-visible symbols only for indirections
638 in the data section. Clean up the code and update comments.
640 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
642 * config/darwin.c (machopic_indirect_data_reference): Remove
645 2019-10-13 Nathan Sidwell <nathan@acm.org>
647 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
649 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
651 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
654 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
656 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
657 so non-virutal are before virutals.
658 (output_function): Avoid body modifications.
660 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
662 * config/pa/pa.c (pa_output_call): Load descriptor address to register
663 %r22. Load function address before global pointer.
664 (pa_attr_length_indirect_call): Adjust length of inline versions of
666 (pa_output_indirect_call): Remove fast inline version of $$dyncall
667 before normal cases. Update inline $$dyncall sequences to preserve
668 function descriptor address in register %r22.
669 (TRAMPOLINE_CODE_SIZE): Adjust.
670 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
671 register %r22 contains trampoline address.
672 (pa_trampoline_init): Adjust offsets.
673 (pa_trampoline_adjust_address): Likewise.
674 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
676 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
679 * config/darwin.c (machopic_indirection): New field to flag
680 non-lazy-symbol-pointers in the data section.
681 (machopic_indirection_name): Compute if an indirection should
682 appear in the data section.
683 (machopic_output_data_section_indirection): New callback split
684 from machopic_output_indirection.
685 (machopic_output_stub_indirection): Likewise.
686 (machopic_output_indirection): Retain the code for non-lazy
687 symbol pointers in their regular section.
688 (machopic_finish): Use the new callbacks to order the indirection
691 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
693 * config/darwin-protos.h (machopic_finish): Delete.
694 * config/darwin.c (machopic_finish): Make static.
696 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
698 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
699 sections when building kernel extension code.
701 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
703 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
706 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
708 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
711 2019-10-12 Jakub Jelinek <jakub@redhat.com>
714 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
715 <case VEC_COND_EXPR>: Return false with *handled = false.
716 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
717 recursing on the first operand.
718 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
719 instead of tree_could_trap_p.
720 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
722 2019-10-11 Jim Wilson <jimw@sifive.com>
724 PR rtl-optimization/91860
725 * combine.c (subst): If new_rtx is a constant, also check for
726 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
728 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
730 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
731 INTVAL when calling store_bit_field.
733 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
735 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
738 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
740 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
741 vectorizable_live_operation.
742 (vectorizable_live_operation): Adjust parameters.
743 * tree-vect-stmts.c (vect_init_vector,
744 vect_gen_widened_results_half): Fix typo in function comment.
745 (can_vectorize_live_stmts): Adjust function comment.
746 Adjust parameters. Adjust call to vectorizable_live_operation.
747 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
748 (vect_transform_stmt): Adjust function comment. Adjust call to
749 can_vectorize_live_stmts.
750 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
752 2019-10-11 Richard Biener <rguenther@suse.de>
754 PR tree-optimization/90883
755 PR tree-optimization/91091
756 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
757 alias-sets both for recording VN table entries and continuing
758 walking after translating through copies. Handle same-sized
759 reads from SSA names by returning the plain SSA name.
760 (eliminate_dom_walker::eliminate_stmt): Properly handle
761 non-size precision stores in redundant store elimination.
763 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
765 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
766 (ggc_collect): Dump later to not interfere with release_page dump.
767 (ggc_trim): New function.
768 * ggc-none.c (ggc_trim): New.
769 * ggc.h (ggc_trim): Declare.
771 2019-10-11 Richard Biener <rguenther@suse.de>
773 PR tree-optimization/92066
774 PR tree-optimization/92046
775 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
776 Fix bogus cost model check.
778 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
780 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
781 (LANG_HOOKS_DECLS): Add it.
782 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
783 update comment for omp_is_optional_argument.
784 * omp-general.c (omp_is_allocatable_or_ptr): New.
785 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
786 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
787 Fortran's optional arguments and allocatable/pointer scalars
788 with use_device_addr.
790 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
793 * config/s390/2827.md: Add new opcodes.
794 * config/s390/2964.md: Likewise.
795 * config/s390/3906.md: Likewise.
796 * config/s390/8561.md: Likewise.
797 * config/s390/s390-builtins.def (s390_vfchesb): Use
798 the new vec_cmpgev4sf_quiet_nocc.
799 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
800 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
801 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
802 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
803 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
804 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
805 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
806 * config/s390/s390-modes.def (CCSFPS): New mode.
807 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
808 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
809 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
810 (s390_expand_vec_compare): Use non-signaling patterns where
812 (s390_reverse_condition): Support CCSFPS.
813 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
814 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
815 (asm_fcmp_op): Likewise.
816 (*smaxv2df3_vx): Use pattern for quiet comparison.
817 (*sminv2df3_vx): Likewise.
818 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
819 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
820 (vec_cmpgt<mode>_quiet_nocc): Likewise.
821 (vec_cmplt<mode>_quiet_nocc): New expander.
822 (vec_cmpge<mode>_quiet_nocc): New pattern.
823 (vec_cmple<mode>_quiet_nocc): New expander.
824 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
825 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
826 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
827 (*vec_cmpge<mode>_signaling_nocc): Likewise.
828 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
829 (vec_cmpungt<mode>): New expander.
830 (vec_cmpunge<mode>): Likewise.
831 (vec_cmpuneq<mode>): Use quiet patterns.
832 (vec_cmpltgt<mode>): Allow only on z14+.
833 (vec_cmpordered<mode>): Use quiet patterns.
834 (vec_cmpunordered<mode>): Likewise.
835 (VEC_CMP_EXPAND): Add ungt and unge.
837 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
839 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
841 * lto-streamer-out.c: Include tree-dfa.h.
842 (output_cfg): Do not use cfun.
843 (lto_prepare_function_for_streaming): New.
844 (output_function): Do not push cfun; do not initialize loop optimizer.
845 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
846 * passes.c (ipa_write_summaries): Use it.
847 (ipa_write_optimization_summaries): Do not modify bodies.
848 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
849 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
850 * tree-ssa-dse.c (pass_dse::execute): Update use of
851 renumber_gimple_stmt_uids.
852 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
854 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
856 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
857 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
859 2019-10-10 Joseph Myers <joseph@codesourcery.com>
861 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
863 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
864 Also define DFP macros for these conditions.
865 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
866 DEC128_SUBNORMAL_MIN): Do not define.
867 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
868 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
870 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
871 Sandra Loosemore <sandra@codesourcery.com>
874 * doc/lto.texi (IPA): Reference to the IPA passes.
875 * doc/passes.texi (Pass manager): Add node IPA passes and
876 description for each IPA pass.
878 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
880 * ipa-reference.c: Do not include splay-tree.h
881 (reference_vars_to_consider): Turn to hash map.
882 (get_static_name, ipa_init, analyze_function, propagate,
883 stream_out_bitmap, ipa_reference_write_optimization_summary,
884 ipa_reference_write_optimization_summary): Update.
886 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
888 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
890 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
892 * config/darwin.c: Lookup Objective C metadata and force indirection
895 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
897 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
899 (mem_operand_gpr): Add check for prefixed addresses.
900 (mem_operand_ds_form): Add check for prefixed addresses.
901 (rs6000_legitimate_offset_address_p): If we support prefixed
902 addresses, check for a 34-bit offset instead of 16-bit.
903 (rs6000_legitimate_address_p): Add check for prefixed addresses.
904 Do not allow load/store with update if the address is prefixed.
905 (rs6000_mode_dependent_address): If we support prefixed
906 addresses, check for a 34-bit offset instead of 16-bit.
908 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
911 * config/s390/vector.md (vcond_comparison_operator): New
913 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
915 2019-10-10 David Malcolm <dmalcolm@redhat.com>
918 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
920 * configure.ac (--with-documentation-root-url): New option.
921 * configure: Regenerate.
922 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
923 option URL, add it as a new string field of the diagnostic option.
924 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
925 (print_option_information): If get_option_url is non-NULL, call
926 it, and if the result is non-NULL, potentially emit an escape
927 sequence to markup the option text with the resulting URL.
928 * diagnostic.h (diagnostic_context::get_option_url): New callback.
929 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
930 example of JSON output.
931 * opts-diagnostic.h (get_option_url): New decl.
932 * opts.c (get_option_url): New function.
933 * toplev.c (general_init): Initialize the get_option_url callback.
935 2019-10-10 David Malcolm <dmalcolm@redhat.com>
938 * common.opt (fdiagnostics-urls=): New option.
939 (diagnostic-url.h): Add SourceInclude.
940 (diagnostic_url_rule): New enum.
941 * diagnostic-color.c: Include "diagnostic-url.h".
942 (diagnostic_urls_enabled_p): New function.
943 * diagnostic-url.h: New file.
944 * diagnostic.c: Include "diagnostic-url.h".
945 (diagnostic_urls_init): New function.
946 * diagnostic.h (diagnostic_urls_init): New decl.
947 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
948 -fdiagnostics-urls to the list.
949 (-fdiagnostics-urls): New option.
950 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
951 (driver::global_initializations): Call diagnostic_urls_init.
952 * opts-global.c (init_options_once): Likewise.
953 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
954 * pretty-print.c (pretty_printer::pretty_printer): Initialize
956 (pp_begin_url): New function.
957 (pp_end_url): New function.
958 (selftest::test_urls): New selftest.
959 (selftest::pretty_print_c_tests): Call it.
960 * pretty-print.h (pretty_printer::show_urls): New field.
961 (pp_begin_url): New decl.
962 (pp_end_url): New decl.
964 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
967 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
969 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
972 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
973 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
974 also for TARGET_FPU_SH4_300.
975 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
977 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
978 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
979 (*negsf2_i): Split into ...
980 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
981 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
982 (**abssf2_i): Split into ...
983 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
984 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
985 (*negdf2_i): Split into ...
986 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
987 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
988 (**abssf2_i): Split into ...
989 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
991 2019-10-10 Richard Biener <rguenther@suse.de>
994 * opts.c (finish_options): Do not influence global --params
995 from options that are adjustable per function.
996 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
997 Apply --param adjustment based on active cost-model.
998 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
999 further store-sinking when vectorization or if-conversion
1002 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1005 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
1006 rather than ggc_alloc_cleared to alloc symbol table.
1007 * toplev.c (general_init): Likewise.
1008 * cgraph.h (symbol_table): Explicitly construct every field.
1010 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1012 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
1014 * config.gcc: Add z15 as option for --with-arch and --with-tune
1016 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
1017 error reporting for unsupported builtins.
1018 * config/s390/s390-opts.h (enum processor_type): Rename
1019 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
1020 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
1021 * config/s390/driver-native.c (s390_host_detect_local_cpu):
1023 * config/s390/s390-builtins.def: Likewise.
1024 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
1025 (s390_expand_builtin): Add missing check for unsupported builtins.
1026 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
1027 (s390_rtx_costs): Likewise.
1028 (s390_get_sched_attrmask): Rename arch13 to z15.
1029 (s390_get_unit_mask): Likewise.
1030 (s390_is_fpd): Likewise.
1031 (s390_is_fxd): Likewise.
1032 * config/s390/s390.h (enum processor_flags): Likewise.
1033 * config/s390/s390.md: Likewise.
1034 * config/s390/vector.md: Likewise.
1035 * config/s390/vx-builtins.md: Likewise.
1036 * config/s390/s390.opt: Add z15 to processor_type value.
1038 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1041 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
1043 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
1044 ("split_stack_data", "split_stack_call")
1045 ("split_stack_call_<mode>", "split_stack_cond_call")
1046 ("split_stack_cond_call_<mode>"): Remove.
1047 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
1049 * config/s390/s390.c (s390_output_split_stack_data): New function.
1050 (s390_expand_split_stack_prologue): Use the merged expander.
1052 2019-10-09 Martin Sebor <msebor@redhat.com>
1054 PR tree-optimization/90879
1055 * builtins.c (check_access): Avoid using maxbound when null.
1056 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
1057 * doc/invoke.texi (-Wstring-compare): Document new warning option.
1058 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
1060 (get_range_strlen): Overwrite initial maxbound when non-null.
1061 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
1063 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
1064 (used_only_for_zero_equality): New function.
1065 (handle_builtin_memcmp): Call it.
1066 (determine_min_objsize): Return an integer instead of tree.
1067 (get_len_or_size, strxcmp_eqz_result): New functions.
1068 (maybe_warn_pointless_strcmp): New function.
1069 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
1070 between a longer string and a smaller array.
1071 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
1073 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1075 * config/darwin.c (darwin_override_options): Make the check for
1076 Objective-C ABI version more specific for 64bit code.
1078 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1080 * config/darwin.c (machopic_indirect_data_reference): Set flag to
1081 indicate that the new symbol is an indirection.
1082 (machopic_indirect_call_target): Likewise.
1083 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
1084 (MACHO_SYMBOL_INDIRECTION_P): New.
1085 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
1087 2019-10-08 Jason Merrill <jason@redhat.com>
1089 * doc/invoke.texi: Document -fconcepts-ts.
1091 2019-10-09 Richard Biener <rguenther@suse.de>
1093 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
1094 allow stmts other than GIMPLE_ASSIGN in nested cycles.
1096 2019-10-08 Richard Biener <rguenther@suse.de>
1098 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
1099 (_stmt_vec_info::force_single_cycle): Likewise.
1100 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
1101 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
1102 * tree-vect-loop.c (vectorizable_reduction): Set
1103 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
1104 (vect_transform_reduction): Use them to remove redundant code.
1105 (vect_transform_cycle_phi): Likewise.
1107 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
1109 PR tree-optimization/90836
1110 * gcc/match.pd (popcount): New pattern.
1112 2019-10-08 Martin Sebor <msebor@redhat.com>
1116 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
1117 again once nbytes has been set. Set the access size when not yet set.
1119 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1121 * config/darwin.c (machopic_select_section): Remove dead code for
1122 old Objective-C section selection method, replace with unreachable.
1124 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1126 * config/darwin.c (machopic_indirect_data_reference): Check for
1127 required indirections before making direct access to defined
1129 (machopic_output_indirection): Place the indirected pointes for
1130 required indirections into the non-lazy symbol pointers section.
1131 (darwin_encode_section_info):
1132 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
1133 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
1135 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
1138 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
1139 instead of ALL_SSE_REG to check if function call preserves some
1140 256-bit SSE registers.
1142 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1144 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
1145 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
1146 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
1148 2019-10-08 Richard Biener <rguenther@suse.de>
1150 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
1151 (_stmt_vec_info::is_reduc_info): Add.
1152 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
1153 (vectorizable_condition): Remove.
1154 (vectorizable_shift): Likewise.
1155 (vectorizable_reduction): Adjust.
1156 (info_for_reduction): New.
1157 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
1158 (vect_analyze_scalar_cycles_1): ... here.
1159 (vect_analyze_loop_operations): Adjust.
1160 (needs_fold_left_reduction_p): Simplify for single caller.
1161 (vect_is_simple_reduction): Likewise. Remove stmt restriction
1162 for nested cycles not part of double reductions.
1163 (vect_model_reduction_cost): Pass in the reduction type.
1164 (info_for_reduction): New function.
1165 (vect_create_epilog_for_reduction): Use it, access reduction
1166 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
1167 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1168 (vectorize_fold_left_reduction): Remove pointless assert.
1169 (vectorizable_reduction): Analyze the full reduction when
1170 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
1171 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
1172 stmt code-generation to vectorizable_* in most cases. Verify
1173 code-generation only for cases handled by
1174 vect_transform_reductuon.
1175 (vect_transform_reduction): Use info_for_reduction to get at
1176 reduction meta. Simplify.
1177 (vect_transform_cycle_phi): Likewise.
1178 (vectorizable_live_operation): Likewise.
1179 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
1180 at the PHI node for STMT_VINFO_REDUC_TYPE.
1181 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
1182 longer necessary code.
1183 * tree-vect-stmts.c (vectorizable_shift): Make static again.
1184 (vectorizable_condition): Likewise. Get at reduction related
1185 info via info_for_reduction.
1186 (vect_analyze_stmt): Adjust.
1187 (vect_transform_stmt): Likewise.
1188 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1189 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1191 2019-10-08 Joseph Myers <joseph@codesourcery.com>
1193 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
1194 -fno-fp-int-builtin-inexact default for C2X.
1196 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1197 Richard Biener <rguenther@suse.de>
1199 PR tree-optimization/91532
1200 * tree-if-conv.c: Include tree-ssa-dse.h.
1201 (ifcvt_local_dce): Change param from bb to loop,
1202 and call dse_classify_store.
1203 (tree_if_conversion): Pass loop instead of loop->header as arg
1205 * tree-ssa-dse.c: Include tree-ssa-dse.h.
1206 (delete_dead_or_redundant_assignment): Remove static qualifier from
1207 declaration, and add prototype in tree-ssa-dse.h.
1208 (dse_store_status): Move to tree-ssa-dse.h.
1209 (dse_classify_store): Remove static qualifier and add new tree param
1210 stop_at_vuse, and add prototype in tree-ssa-dse.h.
1211 * tree-ssa-dse.h: New header.
1213 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1215 * config/darwin.c (machopic_output_indirection): Don't put
1216 hidden symbol indirections into the .data section, use the
1217 non-lazy symbol pointers section as normal.
1218 (darwin_encode_section_info): Record if a symbol is hidden.
1219 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
1220 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
1222 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1224 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
1225 predicates instead of accessing bits directly.
1226 (machopic_indirect_call_target): Likewise.
1227 (machopic_output_indirection): Likewise.
1228 (darwin_encode_section_info): Improve description. Use renamed
1229 symbol flags. Use predicate macros for variables and functions.
1231 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
1232 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
1233 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
1234 (MACHO_SYMBOL_VARIABLE_P): New.
1235 (MACHO_SYMBOL_DEFINED_P):New.
1236 (MACHO_SYMBOL_STATIC_P): New.
1237 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
1238 (SYMBOL_FLAG_SUBT_DEP): New.
1239 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
1241 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1243 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
1244 (msp430_expand_epilogue): Likewise.
1245 * config/msp430/predicates.md: Likewise.
1246 * config/msp430/msp430.md: Likewise.
1247 Replace blocks of 8 spaces with tabs.
1249 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1251 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
1252 * config/msp430/msp430.c (msp430_split_addsi): New.
1253 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
1254 a block of C code for splitting addsi.
1256 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
1258 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
1259 ix86_expand_rounddf_32): Reorder functions.
1260 * config/i386/i386-protos.h: Update.
1262 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1264 * config.in: Regenerate.
1265 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
1266 Add new "Yx" constraint.
1267 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
1269 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
1271 * config/msp430/msp430.c (msp430_option_override): Allow the lower
1272 code/data region to be selected in the small memory model.
1273 (msp430_section_attr): Don't warn if the "section" and "lower"
1274 attributes are used together.
1275 (msp430_handle_generic_attribute): Likewise.
1276 (msp430_var_in_low_mem): New function.
1277 (TARGET_ENCODE_SECTION_INFO): Define.
1278 (msp430_encode_section_info): New function.
1279 (gen_prefix): Return early in the small memory model.
1280 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
1281 ".lower" prefix if -m{code,data}-region=lower have been passed.
1282 (msp430_output_aligned_decl_common): Emit common symbols when
1283 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
1285 (TARGET_ASM_FILE_END): Define.
1286 (msp430_file_end): New function.
1287 (msp430_do_not_relax_short_jumps): Allow relaxation when
1288 function will be in the lower region.
1289 (msp430_op_not_in_high_mem): New function.
1290 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
1291 the 'X' operand selector.
1292 Clarify comment for 'x' operand selector.
1293 * config/msp430/msp430.h (LINK_SPEC): Propagate
1294 -m{code,data}-region to the linker via spec function
1295 msp430_propagate_region_opt.
1296 (msp430_propagate_region_opt): New prototype.
1297 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
1298 (SYMBOL_FLAG_LOW_MEM): Define.
1299 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
1301 (zero_extendqihi2): Fix operand number used by "%X" selector.
1302 (zero_extendqisi2): Likewise.
1303 (zero_extendhisi2): Likewise.
1304 (movqi): Use "Yx" constraint in place of "%X" operand selector.
1309 (addhi3_cy): Likewise.
1310 (addchi4_cy): Likewise.
1314 (bic<mode>3): Likewise.
1315 (and<mode>3): Likewise.
1316 (ior<mode>3): Likewise.
1317 (xor<mode>3): Likewise.
1318 (slli_1): Add missing "%X" operand selector.
1326 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1328 (cbranchhi4_real): Likewise.
1329 (cbranchqi4_reversed): Likewise.
1330 (cbranchhi4_reversed): Likewise.
1331 (*bitbranch<mode>4): Likewise.
1332 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1333 * config/msp430/msp430.opt (mcode-region=): Set default to
1334 MSP430_REGION_LOWER. Improve docstring.
1335 (mdata-region=): Likewise.
1336 (muse-lower-region-prefix): New option.
1337 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1338 mdata-region=none multilib.
1339 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1340 mdata-region=none multilib.
1341 MULTILIB_EXCEPTIONS: Remove.
1342 MULTILIB_REQUIRED: Define.
1343 * configure: Regenerate.
1344 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1345 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1346 * doc/extend.texi: Clarify comment for {upper,lower,either}
1347 function attributes.
1348 Add separate description for "lower" variable attribute.
1350 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1353 * optabs-tree.c (vcond_icode_p): New function.
1354 (vcond_eq_icode_p): Likewise.
1355 (expand_vec_cond_expr_p): Use vcond_icode_p and
1357 * optabs.c (can_vcond_compare_p): New function.
1358 * optabs.h (can_vcond_compare_p): Likewise.
1360 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1363 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1364 caller passes a non-trapping condition.
1365 (is_gimple_condexpr): Allow trapping conditions.
1366 (is_gimple_condexpr_1): New helper function.
1367 (is_gimple_condexpr_for_cond): New function, acts like old
1369 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1370 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1371 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1372 * gimplify.c (gimplify_cond_expr): Use
1373 is_gimple_condexpr_for_cond.
1374 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1375 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1377 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1378 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1379 is_gimple_condexpr_for_cond, remove pointless tmp check
1380 (forward_propagate_into_cond): Remove pointless tmp check.
1382 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1384 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1385 match that of other gsi_next_* functions. Adjust the comment.
1386 (gsi_start_nonvirtual_phis): New function.
1387 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1388 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1390 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1392 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1393 setjmp situation here. Fix a verb's ending: "the exact variables or
1394 elements for which there are warnings depends" -> "... depend".
1396 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1398 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1400 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1402 * ipa-prop.c (ipa_vr::nonzero_p): New.
1403 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1405 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1406 * tree-vrp.c (range_has_numeric_bounds_p): New.
1407 (range_int_cst_p): Use range_has_numeric_bounds_p.
1408 (get_range_op_handler): New.
1409 (supported_types_p): New.
1410 (defined_ranges_p): New.
1411 (drop_undefines_to_varying): New.
1412 (range_fold_binary_symbolics_p): New.
1413 (range_fold_unary_symbolics_p): New.
1414 (range_fold_unary_expr): Extract out into above functions.
1415 (range_fold_binary_expr): Same.
1416 (value_range_base::normalize_addresses): New.
1417 (value_range_base::normalize_symbolics): Normalize addresses.
1418 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1420 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1422 * tree-vrp.c (value_range_base::singleton_p): Use
1423 value_range_base::num_pairs instead of vrp_val_is* to check
1424 if a range has one sub-range.
1426 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1428 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1429 DEF is not a true earlyclobber but is tied to a specific input
1430 operand, and so is effectively earlyclobber wrt inputs that have
1432 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1434 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1436 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1437 (pod_mode): Mark operators likewise.
1438 (scalar_int_mode): Mark non-default constructors and
1439 operators with CONSTEXPR.
1440 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1441 (fixed_size_mode): Likewise.
1443 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1446 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1447 and wrap the unspec_volatile in a parallel.
1448 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1449 the unspec_volatile.
1450 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1451 unspec_volatile to be wrapped in a parallel.
1452 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1453 (ix86_add_reg_usage_to_vzerouppers): New functions.
1454 (rest_of_handle_insert_vzeroupper): Use them to add register
1455 usage information to the vzeroupper instructions.
1457 2019-10-07 Richard Biener <rguenther@suse.de>
1459 PR tree-optimization/91975
1460 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1463 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1465 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1466 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1468 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1470 * config/darwin.c (darwin_override_options): Adjust objective-c
1471 ABI version error messages to avoid punctuation and contracted
1474 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1476 * ipa-inline.c: Fix type; compute size rather than self_size
1477 for size of caller function.
1479 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1482 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1483 choose const_data section for constants with relocations.
1484 (machopic_select_section): Pass relocation flag to
1485 darwin_rodata_section ().
1487 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1489 PR tree-optimization/91734
1490 * generic-match-head.c: Include fold-const-call.h.
1491 * match.pd (sqrt(x) cmp c): Check the boundary value and
1492 in case inexact computation of c*c affects comparison of the boundary,
1493 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1494 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1495 for -frounding-math. For c2, try the next smaller or larger floating
1496 point constant depending on comparison code and if it has the same
1497 sqrt as c2, use it instead of c2.
1499 2019-10-04 Martin Sebor <msebor@redhat.com>
1502 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1503 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1504 uninitialized objects.
1506 2019-10-04 Martin Sebor <msebor@redhat.com>
1508 * builtins.c (compute_objsize): Add an argument.
1509 * tree-object-size.c (addr_object_size): Same.
1510 (compute_builtin_object_size): Same.
1511 * tree-object-size.h (compute_builtin_object): Same.
1513 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1515 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1517 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1519 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1521 2019-10-04 Martin Jambor <mjambor@suse.cz>
1523 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1524 fntype when switching to calling memcpy instead of memset.
1526 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1528 * hash-table.h (hash_table::empty_slow): Don't assign
1529 size_t values to int variables.
1531 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1533 * expr.c (convert_mode_scalar): Remove shadowing local var.
1534 (emit_block_move): Rename local vars.
1535 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1536 (emit_push_insn): Rename local vars.
1537 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1538 shadowing local vars.
1539 (store_constructor): Remove shadowing local vars. Rename local var.
1540 (store_field, expand_cond_expr_using_cmove,
1541 expand_expr_real_2): Remove shadowing local vars.
1542 (expand_expr_real_1,
1543 do_store_flag): Remove shadowing local vars. Rename local vars.
1545 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1547 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1549 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1551 * genmatch.c (commutate): Rename local var.
1552 (lower_cond): Reuse local var.
1553 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1554 dt_operand::gen, dt_operand::gen_gimple_expr,
1555 dt_simplify::gen): Add a param. Rename generated vars.
1556 (decision_tree::insert_operand,
1557 (capture_info::walk_match, capture_info::walk_result,
1558 capture_info::walk_c_expr): Rename local vars.
1559 (expr::gen_transform): Rename generated vars.
1560 Use snprintf. Rename local vars.
1561 (capture::gen_transform, dt_operand::get_name,
1562 dt_operand::gen_opname): Rename generated vars.
1563 (write_predicate): Adjust call to gen_kids.
1564 (parser::get_internal_capture_id): Rename generated vars.
1565 (parser::parse_expr): Rename local vars.
1566 (parser::parse_if): Remove local var.
1567 (parser::parse_pattern, add_operator): Rename local vars.
1569 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1571 * builtins.def (DEF_C2X_BUILTIN): New macro.
1572 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1573 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1574 (strndup): Use DEF_C2X_BUILTIN.
1575 * coretypes.h (enum function_class): Add function_c2x_misc.
1577 2019-10-04 Maya Rashish <coypu@sdf.org>
1579 * ira-color.c (update_costs_from_allocno): Call
1580 ira_init_register_move_cost_if_necessary.
1582 2019-10-04 Jeff Law <law@redhat.com>
1584 * config/h8300/h8300.md (cpymemsi): Disable.
1585 (movmd, movmd_internal_<mode>, movstr, movsd):
1586 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1587 (movmd splitter, movsd splitter): Likewise.
1589 * range-op.cc (range_tests): Avoid two tests when ints and
1590 shorts are the same size.
1592 2019-10-04 Richard Biener <rguenther@suse.de>
1595 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1598 2019-10-04 Richard Biener <rguenther@suse.de>
1600 PR tree-optimization/91982
1601 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1602 against EXTRACT_LAST_REDUCTION.
1603 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1605 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1607 * range-op.o (value_range_from_overflowed_bounds): Rename from
1608 adjust_overflow_bound.
1609 (value_range_with_overflow): Rename from
1610 create_range_with_overflow.
1611 (create_possibly_reversed_range): Adjusted for above renames.
1612 (operator_*::wi_fold): Same.
1613 (cross_product_operator::wi_cross_productor): Same.
1615 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1617 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1618 -Wshadow=compatible-local): Fix description.
1619 Add an example where -Wshadow=compatible-local does not
1622 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1624 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1626 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1627 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1629 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1631 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1632 can_move_by_pieces issue.
1634 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1637 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1638 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1639 is available and the user has not set one on the command line.
1641 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1644 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1645 instead of REGNO equality check on addr.reg.
1647 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1649 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1650 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1651 * doc/invoke.texi (inline-heuristics-hint-percent,
1652 inline-heuristics-hint-percent-O2): Document.
1653 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1655 (can_inline_edge_by_limits_p): Use it.
1657 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1659 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1660 to print CONST_DOUBLEs.
1662 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1664 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1665 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1666 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1668 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1670 * Makefile.in (OBJS): Add range.o and range-op.o.
1671 Remove wide-int-range.o.
1672 * function-tests.c (test_ranges): New.
1673 (function_tests_c_tests): Call test_ranges.
1674 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1675 range_fold_unary_expr instead of extract_range_from_unary_expr.
1676 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1677 * range-op.cc: New file.
1678 * range-op.h: New file.
1679 * range.cc: New file.
1680 * range.h: New file.
1681 * selftest.h (range_tests): New prototype.
1682 * ssa.h: Include range.h.
1683 * tree-vrp.c (value_range_base::value_range_base): New
1685 (value_range_base::singleton_p): Do not call
1686 ranges_from_anti_range until sure we will need to.
1687 (value_range_base::type): Rename gcc_assert to
1688 gcc_checking_assert.
1689 (vrp_val_is_max): New argument.
1690 (vrp_val_is_min): Same.
1691 (wide_int_range_set_zero_nonzero_bits): Move from
1693 (extract_range_into_wide_ints): Remove.
1694 (extract_range_from_multiplicative_op): Remove.
1695 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1696 from extract_range_from_binary_expr.
1697 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1698 from extract_range_from_binary_expr.
1699 (extract_range_from_binary_expr): Remove.
1700 (normalize_for_range_ops): New.
1701 (range_fold_binary_expr): New.
1702 (range_fold_unary_expr): New.
1703 (value_range_base::num_pairs): New.
1704 (value_range_base::lower_bound): New.
1705 (value_range_base::upper_bound): New.
1706 (value_range_base::upper_bound): New.
1707 (value_range_base::contains_p): New.
1708 (value_range_base::invert): New.
1709 (value_range_base::union_): New.
1710 (value_range_base::intersect): New.
1711 (range_compatible_p): New.
1712 (value_range_base::operator==): New.
1713 (determine_value_range_1): Call range_fold_*expr instead of
1714 extract_range_from_*expr.
1715 * tree-vrp.h (class value_range_base): Add new constructors.
1716 Add methods for union_, intersect, operator==, contains_p,
1717 num_pairs, lower_bound, upper_bound, invert.
1718 (vrp_val_is_min): Add handle_pointers argument.
1719 (vrp_val_is_max): Same.
1720 (extract_range_from_unary_expr): Remove.
1721 (extract_range_from_binary_expr): Remove.
1722 (range_fold_unary_expr): New.
1723 (range_fold_binary_expr): New.
1724 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1725 range_fold_binary_expr instead of extract_range_from_binary_expr.
1726 (vr_values::extract_range_basic): Same.
1727 (vr_values::extract_range_from_unary_expr): Call
1728 range_fold_unary_expr instead of extract_range_from_unary_expr.
1729 * wide-int-range.cc: Remove.
1730 * wide-int-range.h: Remove.
1732 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1734 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1735 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1736 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1737 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1740 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1742 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1743 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1744 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1745 * glimits.h: Likewise.
1747 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1749 PR rtl-optimization/91976
1750 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1751 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1752 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1754 2019-10-02 Martin Sebor <msebor@redhat.com>
1756 PR tree-optimization/80936
1757 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1759 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1761 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1762 instead of reg_class_contents[ALL_REGS].
1764 2019-09-30 Jason Merrill <jason@redhat.com>
1766 Add some hash_map_safe_* functions like vec_safe_*.
1767 * hash-map.h (default_hash_map_size): New variable.
1768 (create_ggc): Use it as default argument.
1769 (hash_map_maybe_create, hash_map_safe_get)
1770 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1772 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1774 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1775 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1776 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1777 (can_inline_edge_by_limits_p): Use it.
1778 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1779 (want_inline_small_function_p): Use O2 bounds.
1780 (edge_badness): LIkewise.
1781 * opts.c (default_options): Add OPT_finline_functions.
1782 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1783 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1785 * doc/invoke.texi (-finline-functions): Update documentation.
1786 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1787 inline-min-speedup-O2): Document.
1788 (early-inlining-insns-O2): Simplify docs.
1790 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1792 PR rtl-optimization/87047
1793 * ifcvt.c (average_cost): New static function. Use it...
1794 (noce_process_if_block): ... here.
1796 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1798 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1799 * config/rs6000/rs6000-string.c (expand_block_move): Add
1801 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1802 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1804 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1806 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1807 (expand_builtin_memcpy): Use might_overlap parm.
1808 (expand_builtin_mempcpy_args): Use might_overlap parm.
1809 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1810 (expand_builtin_memory_copy_args): Add might_overlap parm.
1811 * expr.c (emit_block_move_via_cpymem): Rename to
1812 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1813 or movmem optab as appropriate.
1814 (emit_block_move_hints): Add might_overlap parm, do the right
1815 thing for might_overlap==true.
1816 * expr.h (emit_block_move_hints): Update prototype.
1818 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1820 * tree-eh.h (unsplit_eh_edges): Declare.
1821 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1822 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1823 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1824 (struct store_immediate_info): Add lp_nr field.
1825 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1826 initialize lp_nr with it.
1827 (struct merged_store_group): Add lp_nr and only_constants fields.
1828 (merged_store_group::merged_store_group): Initialize them.
1829 (merged_store_group::can_be_merged_into): Deal with them.
1830 (pass_store_merging): Rename terminate_and_release_chain into
1831 terminate_and_process_chain.
1832 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1833 renaming and remove useless assertions.
1834 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1835 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1836 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1837 instead of always recomputing it and compare lp_nr.
1838 (imm_store_chain_info::output_merged_store): If the group is in an
1839 active EH region, register new stores if they can throw. Moreover,
1840 if the insertion has created new basic blocks, adjust the PHI nodes
1841 of the post landing pad.
1842 (imm_store_chain_info::output_merged_stores): If the original stores
1843 are in an active EH region, deregister them.
1844 (lhs_valid_for_store_merging_p): Prettify.
1845 (adjust_bit_pos): New function extracted from...
1846 (mem_valid_for_store_merging): ...here. Use it for the base address
1847 and also for the offset if it is the addition of a constant.
1848 (lp_nr_for_store): New function.
1849 (pass_store_merging::process_store): Change return type to bool.
1850 Call lp_nr_for_store to initialize the store info. Propagate the
1851 return status of various called functions to the return value.
1852 (store_valid_for_store_merging_p): New predicate.
1853 (enum basic_block_status): New enumeration.
1854 (get_status_for_store_merging): New function.
1855 (pass_store_merging::execute): If the function can throw and catch
1856 non-call exceptions, unsplit the EH edges on entry and clean up the
1857 CFG on exit if something changed. Call get_status_for_store_merging
1858 for every basic block and keep the chains open across basic blocks
1859 when possible. Terminate and process open chains at the end, if any.
1861 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1863 * reginfo.c (globalize_reg): Fix shadowed variable in
1866 2019-10-02 Martin Jambor <mjambor@suse.cz>
1868 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1869 do not compute some stuff when set.
1870 (cgraph_node::create_edge): Likewise.
1871 (cgraph_node::create_indirect_edge): Renamed last parameter to
1872 coning_p and flipped its meaning, don't even calculate
1873 inline_failed when set.
1874 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1875 (symbol_table::::create_edge): Likewise.
1876 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1878 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1879 call graph edge creating functions.
1881 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1884 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1887 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1889 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1891 2019-10-02 Richard Biener <rguenther@suse.de>
1893 * tree-vectorizer.h (vect_transform_reduction): Declare.
1894 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1895 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1896 stmt transform to ...
1897 (vect_transform_reduction): ... this.
1899 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1901 * omp-low.c (lower_omp_target): Dereference optional argument
1902 to work with the right pointer.
1904 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1906 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1908 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1909 * langhooks.h (omp_is_optional_argument): New hook.
1910 * omp-general.c (omp_is_optional_argument): New.
1911 * omp-general.h (omp_is_optional_argument): New declaration.
1912 * omp-low.c (lower_omp_target): Create temporary for received value
1913 and take the address for new_var if the original variable was a
1914 DECL_BY_REFERENCE. Use size of referenced object when a
1915 pass-by-reference optional argument used as argument to firstprivate.
1917 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1919 PR tree-optimization/91940
1920 * tree-vect-patterns.c: Include tree-vector-builder.h and
1922 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1923 unpromoting the argument back to uint16_t, or by converting into a
1924 rotate, or into shifts plus ior.
1926 2019-10-02 Richard Biener <rguenther@suse.de>
1928 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1930 (vect_transform_cycle_phi): Declare.
1931 * tree-vect-stmts.c (vect_transform_stmt): Call
1932 vect_transform_cycle_phi.
1933 * tree-vect-loop.c (vectorizable_reduction): Split out
1934 PHI transformation stage to ...
1935 (vect_transform_cycle_phi): ... here.
1937 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1940 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1941 eliminable registers.
1942 (make_hard_regno_live): Likewise, and don't make them live.
1944 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1946 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1947 Call pp_emit_prefix.
1948 (layout::print_source_line): Likewise.
1949 (layout::start_annotation_line): Likewise.
1950 (diagnostic_show_locus): Remove call to temporarily clear the
1952 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1953 interaction of pp_set_prefix with rulers and fix-it hints.
1954 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1955 prefix when calling diagnostic_show_locus, rather than destroying
1957 (print_parseable_fixits): Temporarily clear prefix.
1958 * pretty-print.c (pp_format): Save and restore line_length, rather
1959 than assuming it is zero.
1960 (pp_output_formatted_text): Remove assertion that line_length is
1963 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1965 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1967 (nonoverlapping_refs_since_match_p): ... this; handle also
1969 (alias_stats): Update stats.
1970 (dump_alias_stats): Likewise.
1971 (cheap_array_ref_low_bound): New function.
1972 (aliasing_matching_component_refs_p): Add partial_overlap
1974 pass it to nonoverlapping_refs_since_match_p.
1975 (aliasing_component_refs_walk): Update call of
1976 aliasing_matching_component_refs_p
1977 (nonoverlapping_array_refs_p): New function.
1978 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1979 indirect_refs_may_alias_p): Update calls of
1980 nonoverlapping_refs_since_match_p.
1982 2019-10-01 Maya Rashish <coypu@sdf.org>
1985 * ira-color.c (allocno_copy_cost_saving): Call
1986 ira_init_register_move_cost_if_necessary.
1988 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1990 * Makefile.in (gnat_install_lib): New variable.
1991 * configure.ac: Substitute it.
1992 * configure: Regenerate.
1994 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1997 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1998 is matched with non-C++ type
2000 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2002 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
2005 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2007 * doc/invoke.texi (early-inlining-insns-O2): Document.
2008 (early-inlining-insns): Update.
2009 * params.def (early-inlining-insns-O2): New bound.
2010 (early-inlining-insns): Update docs.
2011 * ipa-inline.c (want_early_inline_function_p): Use new bound.
2013 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
2016 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
2017 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
2018 a memory access insn.
2020 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
2022 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
2025 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2028 * config/s390/s390.c (s390_expand_vec_compare): Use
2029 gen_vec_cmpordered and gen_vec_cmpunordered.
2030 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
2031 vec_unordered): Delete.
2032 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
2033 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
2034 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
2035 (vec_cmp<code>): Generic dispatcher.
2037 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2040 * config/s390/vector.md (V_HW): Add V1TI in order to make
2041 vcond$a$b generate vcondv1tiv1tf.
2043 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2045 PR rtl-optimization/91948
2046 * ira-build.c (ira_create_allocno): Initialize
2047 ALLOCNO_CROSSED_CALLS_ABIS.
2048 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
2049 than regno to ira_need_caller_save_p.
2051 2019-10-01 Alexandre Oliva <oliva@adacore.com>
2053 * config/i386/i386-options.c
2054 (ix86_recompute_optlev_based_flags): New, moved out of...
2055 (ix86_option_override_internal): ... this. Call it.
2056 (ix86_override_options_after_change): Call it here too.
2059 * dwarf2out.c (override_type_for_decl_p): New.
2060 (gen_variable_die): Use it.
2062 2019-10-01 Richard Biener <rguenther@suse.de>
2064 * tree-vect-loop.c (vectorizable_reduction): Move variables
2065 to where they are used.
2067 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2069 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
2070 (build_def_use): Use PC instead of CC0 in a comment.
2072 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2074 * rtl.def (CLOBBER_HIGH): Delete.
2075 * doc/rtl.texi (clobber_high): Remove documentation.
2076 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
2077 (reg_is_clobbered_by_clobber_high): Delete.
2078 (gen_hard_reg_clobber_high): Likewise.
2079 * alias.c (record_set): Remove CLOBBER_HIGH handling.
2080 * cfgexpand.c (expand_gimple_stmt): Likewise.
2081 * combine-stack-adj.c (single_set_for_csa): Likewise.
2082 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
2083 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
2084 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
2085 * cse.c (invalidate_reg): Remove clobber_high parameter.
2086 (invalidate): Update call accordingly.
2087 (canonicalize_insn): Remove CLOBBER_HIGH handling.
2088 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
2089 (count_reg_usage, insn_live_p): Likewise.
2090 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
2091 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
2092 (cselib_invalidate_rtx_note_stores): Update call accordingly.
2093 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
2094 (cselib_invalidate_regno, cselib_process_insn): Likewise.
2095 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
2096 (mark_nonreg_stores_2): Likewise.
2097 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
2098 (df_get_call_refs): Likewise.
2099 * dwarf2out.c (mem_loc_descriptor): Likewise.
2100 * emit-rtl.c (verify_rtx_sharing): Likewise.
2101 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
2102 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
2103 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
2104 * genemit.c (gen_exp, gen_insn): Likewise.
2105 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
2106 * haifa-sched.c (haifa_classify_rtx): Likewise.
2107 * ira-build.c (create_insn_allocnos): Likewise.
2108 * ira-costs.c (scan_one_insn): Likewise.
2109 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
2110 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
2111 * jump.c (mark_jump_label_1): Likewise.
2112 * lra-int.h (lra_insn_reg::clobber_high): Delete.
2113 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
2115 (mark_not_eliminable): Likewise.
2116 * lra-lives.c (process_bb_lives): Likewise.
2117 * lra.c (new_insn_reg): Remove clobber_high parameter.
2118 (collect_non_operand_hard_regs): Likewise. Update call to new
2119 insn_reg. Remove CLOBBER_HIGH handling.
2120 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
2121 to collect_non_operand_hard_regs.
2122 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
2123 Update call to new_insn_reg.
2124 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
2125 * postreload.c (reload_cse_simplify, reload_combine_note_use)
2126 (move2add_note_store): Likewise.
2127 * print-rtl.c (print_pattern): Likewise.
2128 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
2129 (if_test_bypass_p): Likewise.
2130 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
2131 * reginfo.c (reg_scan_mark_refs): Likewise.
2132 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
2133 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
2134 (forget_old_reloads_1): Likewise.
2135 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
2136 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
2137 (dbr_schedule): Likewise.
2138 * resource.c (update_live_status, mark_referenced_resources)
2139 (mark_set_resources): Likewise.
2140 * rtl.c (copy_rtx): Likewise.
2141 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
2142 (note_pattern_stores): Likewise.
2143 (reg_is_clobbered_by_clobber_high): Delete.
2144 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
2145 CLOBBER_HIGH handling.
2147 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2150 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
2151 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
2152 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2153 Handle ARM_PCS_TLSDESC.
2154 (aarch64_tlsdesc_abi_id): New function.
2155 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
2156 rtx instead of a list of clobbers and clobber_highs.
2157 (tlsdesc_small_<mode>): Update accordingly.
2159 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2161 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
2162 extra callee_abi argument.
2163 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
2164 Insert a CALLEE_ABI unspec into the call pattern as the second
2165 element in the PARALLEL.
2166 (aarch64_simd_call_p): Delete.
2167 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
2168 the new CALLEE_ABI element of the PARALLEL.
2169 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
2170 from the function type, if given.
2171 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
2172 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
2173 when passed the function_arg_info end marker.
2174 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
2175 final argument of gen_sibcall.
2176 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
2177 (call): Make operand 2 a const_int_operand and pass it to expand_call.
2178 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
2180 (call_value): Likewise operand 3.
2181 (sibcall): Likewise operand 2. Place the unspec before rather than
2183 (sibcall_value): Likewise operand 3.
2184 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
2185 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
2186 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
2188 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
2190 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2192 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
2193 choose_hard_reg_mode.
2194 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2196 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2198 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
2199 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
2200 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
2202 2019-09-30 David Malcolm <dmalcolm@redhat.com>
2204 * diagnostic-show-locus.c (line_label::line_label): Initialize
2206 (line_label::comparator): Reverse the sort order by m_state_idx,
2207 so that when the list is walked backwards the labels appear in
2208 order of insertion into the rich_location.
2209 (line_label::m_has_vbar): New field.
2210 (layout::print_any_labels): When dealing with multiple labels at
2211 the same line and column, only print vertical bars for the one
2212 with the highest label_line.
2213 (selftest::test_one_liner_labels): Update test for multiple labels
2214 to expect the labels to be in the order of insertion into the
2215 rich_location. Add a test for many such labels, where the column
2216 numbers are out-of-order relative to the insertion order.
2218 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2220 * config/i386/i386.h (ix86_frame::expensive_p): New field.
2221 (ix86_frame::expensive_count): Likewise.
2222 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
2223 of use_fast_prologue_epilogue robust against incidental changes
2226 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2229 * config/s390/vector.md (vec_unordered<mode>): Call
2230 gen_vec_ordered<mode>.
2232 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
2234 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
2235 New pattern for ASRD.
2236 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
2237 * internal-fn.def (IFN_DIV_POW2): New internal function.
2238 * optabs.def (sdiv_pow2_optab): New optab.
2239 * tree-vect-patterns.c (vect_recog_divmod_pattern):
2240 Modify pattern to support new operation.
2241 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
2242 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
2243 Document new target selector.
2245 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2247 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
2248 to test whether we're compiling a vector PCS function and to test
2249 whether the function needs to save a particular register.
2250 Remove the vector PCS handling of df_set_regs_ever_live.
2251 (aarch64_components_for_bb): Use crtl->abi to test whether
2252 the function needs to save a particular register.
2253 (aarch64_process_components): Use crtl->abi to test whether
2254 we're compiling a vector PCS function.
2255 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
2256 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
2258 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2260 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
2262 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
2263 whether the block calls a function that clobbers more registers
2264 than the current function is allowed to.
2265 (aarch64_use_simple_return_insn_p): Delete.
2266 * config/aarch64/aarch64.md (simple_return): Remove condition.
2268 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2270 * function-abi.h (function_abi_aggregator): New class.
2271 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
2273 * ira.c (update_equiv_regs_prescan): New function. Call
2274 set_paradoxical_subreg here rather than...
2275 (update_equiv_regs): ...here.
2276 (ira): Call update_equiv_regs_prescan.
2278 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2280 * hard-reg-set.h (regs_invalidated_by_call): Only define if
2282 (call_used_or_fixed_regs): Likewise.
2283 (call_used_or_fixed_reg_p): Likewise.
2284 * reginfo.c (regs_invalidated_by_call): New macro.
2286 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2288 * shrink-wrap.c: Include function-abi.h.
2289 (requires_stack_frame_p): Use crtl->abi to test whether the
2290 current function can use a register without saving it first.
2292 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2294 * sel-sched-ir.h (_def::crosses_call): Replace with...
2295 (_def::crossed_call_abis): ..this new field.
2296 (def_list_add): Take a mask of ABIs instead of a crosses_call
2298 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
2299 of _def accordingly.
2300 * sel-sched.c: Include function-abi.h.
2301 (hard_regs_data::regs_for_call_clobbered): Delete.
2302 (reg_rename::crosses_call): Replace with...
2303 (reg_rename::crossed_call_abis): ...this new field.
2304 (fur_static_params::crosses_call): Replace with...
2305 (fur_static_params::crossed_call_abis): ...this new field.
2306 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
2307 (init_hard_regs_data): Use crtl->abi to test which registers the
2308 current function would need to save before it uses them.
2309 (mark_unavailable_hard_regs): Update handling of call-clobbered
2310 registers, using call_clobbers_in_region to find out which registers
2311 might be call-clobbered (but without taking -fipa-ra into account
2312 for now). Remove separate handling of partially call-clobbered
2314 (verify_target_availability): Use crossed_call_abis instead of
2316 (get_spec_check_type_for_insn, find_used_regs): Likewise.
2317 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
2319 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2321 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2322 function to test whether a register is fully or partly clobbered.
2324 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2326 * rtlanal.c: Include function-abi.h.
2327 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2328 function and clobbers_reg_p to test whether the register
2330 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2331 to get the ABI of the called function and full_reg_clobbers to
2332 get the set of fully call-clobbered registers. Warn about the
2333 pitfalls of using this mode.
2335 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2337 * reload.c: Include function-abi.h.
2338 (find_equiv_reg): Use clobbers_reg_p to test whether either
2339 of the equivalent registers is clobbered by a call.
2340 * reload1.c: Include function-abi.h.
2341 (reg_reloaded_call_part_clobbered): Delete.
2342 (reload): Use crtl->abi to test which registers would need
2343 saving in the prologue before use.
2344 (find_reg): Likewise.
2345 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2346 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2347 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2349 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2351 * regrename.h (du_head::call_clobber_mask): New field.
2352 (du_head::need_caller_save_reg): Replace with...
2353 (du_head::call_abis): ...this new field.
2354 * regrename.c: Include function-abi.h.
2355 (call_clobbered_in_chain_p): New function.
2356 (check_new_reg_p): Use crtl->abi when deciding whether a register
2357 is free for use after RA. Use call_clobbered_in_chain_p to test
2358 whether a candidate register would be clobbered by a call.
2359 (find_rename_reg): Don't add call-clobber conflicts here.
2360 (rename_chains): Check call_abis instead of need_caller_save_reg.
2361 (merge_chains): Update for changes to du_head.
2362 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2363 target. Record the ABI identifier in call_abis and the set of
2364 fully or partially clobbered registers in call_clobber_mask.
2365 Add fully-clobbered registers to hard_conflicts here rather
2366 than in find_rename_reg.
2367 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2368 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2369 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2371 * config/c6x/c6x.c: Likewise.
2373 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2375 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2376 mode of the register when deciding whether it is no longer
2377 available after a call.
2379 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2381 * recog.c: Include function-abi.h.
2382 (peep2_find_free_register): Use crtl->abi when deciding whether
2383 a register is free for use after RA.
2385 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2387 * postreload-gcse.c: Include regs.h and function-abi.h.
2388 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2389 call insn target. Conservatively assume that partially-clobbered
2390 registers are altered.
2392 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2394 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2395 when deciding whether a register is free for use after RA.
2396 (reload_combine): Remove unnecessary use of fixed_reg_set.
2397 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2398 call insn target. Use reg_mode when testing whether a register
2399 is no longer available.
2401 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2403 * target.def (return_call_with_max_clobbers): Delete.
2404 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2405 * doc/tm.texi: Regenerate.
2406 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2407 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2408 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2409 (lra_reg::call_insn): Delete.
2410 * lra.c: Include function-abi.h.
2411 (initialize_lra_reg_info_element): Don't initialize the fields above.
2412 (lra): Use crtl->abi to test whether the current function needs to
2413 save a register in the prologue. Remove special pre-inheritance
2414 lra_create_live_ranges pass for flag_ipa_ra.
2415 * lra-assigns.c: Include function-abi.h
2416 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2417 function needs to save a register in the prologue.
2418 (lra_assign): Assert that registers aren't allocated to a
2419 conflicting register, rather than checking only for overlaps
2420 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2421 and for registers that are not live across a call.
2422 * lra-constraints.c (last_call_for_abi): New variable.
2423 (full_and_partial_call_clobbers): Likewise.
2424 (setup_next_usage_insn): Remove the register from
2425 full_and_partial_call_clobbers.
2426 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2427 whether the register needs a caller save.
2428 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2429 of call_used_or_fixed_regs.
2430 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2431 full_and_partial_call_clobbers.
2432 * lra-lives.c (check_pseudos_live_through_calls): Replace
2433 last_call_used_reg_set and call_insn arguments with an abi argument.
2434 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2435 as the set of conflicting registers.
2436 (calls_have_same_clobbers_p): Delete.
2437 (process_bb_lives): Track the ABI of the last call instead of an
2438 insn/HARD_REG_SET pair. Update calls to
2439 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2440 the set of registers that could be clobbered by an EH edge.
2441 Include partially-clobbered as well as fully-clobbered registers.
2442 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2443 * lra-remat.c: Include function-abi.h.
2444 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2445 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2446 registers and bitmap_view to combine them into dead_regs.
2447 (call_used_input_regno_present_p): Take a function_abi argument
2448 and use it to test whether a register is call-clobbered.
2449 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2450 call insn target. Update tje call to call_used_input_regno_present_p.
2451 (do_remat): Likewise.
2452 (lra_remat): Remove the initialization of call_used_regs_arr_len
2453 and call_used_regs_arr.
2455 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2457 * loop-iv.c: Include regs.h and function-abi.h.
2458 (simplify_using_initial_values): Use insn_callee_abi to get the
2459 ABI of the call insn target. Conservatively assume that
2460 partially-clobbered registers are altered.
2462 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2464 * function-abi.h (call_clobbers_in_region): Declare.
2465 (call_clobbered_in_region_p): New function.
2466 * function-abi.cc (call_clobbers_in_region): Likewise.
2467 * ira-int.h: Include function-abi.h.
2468 (ira_allocno::crossed_calls_abis): New field.
2469 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2470 (ira_need_caller_save_regs): New function.
2471 (ira_need_caller_save_p): Likewise.
2472 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2473 of call_used_or_fixed_regs.
2474 (do_reload): Use crtl->abi to test whether the current function
2475 needs to save a register in the prologue. Count registers that
2476 need to be saved rather than registers that don't.
2477 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2478 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2479 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2480 (propagate_some_info_from_allocno): Likewise.
2481 (copy_info_to_removed_store_destinations): Likewise.
2482 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2483 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2484 (ira_build): Use ira_need_caller_save_regs instead of
2485 call_used_or_fixed_regs.
2486 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2487 whether the current function would need to save a register
2489 (calculate_spill_cost): Likewise.
2490 (allocno_reload_assign): Use ira_need_caller_save_regs and
2491 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2492 * ira-conflicts.c (ira_build_conflicts): Use
2493 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2494 as the set of call-clobbered registers. Remove the
2495 call_used_or_fixed_regs mask from the calculation of
2496 temp_hard_reg_set and mask its use instead. Remove special
2497 handling of partially-clobbered registers.
2498 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2499 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2500 calculate the set of conflicting registers for calls that
2501 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2502 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2503 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2504 Use eh_edge_abi to calculate the set of registers that could
2505 be clobbered by an EH edge. Include partially-clobbered as
2506 well as fully-clobbered registers.
2508 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2510 * haifa-sched.c: Include function-abi.h.
2511 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2512 the function would need to save a register before using it.
2514 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2516 * gcse.c: Include function-abi.h.
2517 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2518 the call insn target. Invalidate partially call-clobbered
2519 registers as well as fully call-clobbered ones.
2521 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2523 * function.c (aggregate_value_p): Work out which ABI the
2524 function is using before testing which registers are at least
2525 partly preserved by a call.
2527 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2529 * early-remat.c: Include regs.h and function-abi.h.
2530 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2532 (early_remat::restrict_remat_for_unavail_regs): New function.
2533 (early_remat::restrict_remat_for_call): Likewise.
2534 (early_remat::process_block): Before calling emit_remat_insns
2535 for a previous call in the block, invalidate any candidates
2536 that would clobber call-preserved registers.
2537 (early_remat::emit_remat_insns_for_block): Likewise for the
2538 final call in a block. Do the same thing for live-in registers
2539 when calling emit_remat_insns at the head of a block.
2541 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2543 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2544 whether the current function needs to save at least part of a
2545 register before using it.
2546 (df_get_exit_block_use_set): Likewise for epilogue restores.
2548 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2550 * df-problems.c: Include regs.h and function-abi.h.
2551 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2552 sparse_invalidated_by_eh and dense_invalidated_by_call to
2553 dense_invalidated_by_eh.
2554 (df_print_bb_index): Update accordingly.
2555 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2556 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2557 that are clobbered by an EH edge. Clobber partially-clobbered
2558 registers as well as fully-clobbered ones.
2559 (df_md_confluence_n): Likewise.
2560 (df_rd_local_compute): Likewise. Update for changes to
2562 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2563 of registers that are clobbered by an EH edge. Includde partially-
2564 clobbered registers as well as fully-clobbered ones.
2566 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2568 * cselib.c (cselib_process_insn): If we know what mode a
2569 register was set in, check whether it is clobbered in that
2570 mode by a call. Only fall back to reg_raw_mode if that fails.
2572 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2574 * cse.c: Include regs.h and function-abi.h.
2575 (invalidate_for_call): Take the call insn as an argument.
2576 Use insn_callee_abi to get the ABI of the call and invalidate
2577 partially clobbered registers as well as fully clobbered ones.
2578 (cse_insn): Update call accordingly.
2580 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2582 * combine.c: Include function-abi.h.
2583 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2584 of the target of call insns. Invalidate partially-clobbered
2585 registers as well as fully-clobbered ones.
2587 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2589 * cfgloopanal.c: Include regs.h and function-abi.h.
2590 (init_set_costs): Use default_function_abi to test whether
2591 a general register is call-clobbered.
2593 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2595 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2596 instead of the call-clobbered sets.
2598 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2600 * caller-save.c (setup_save_areas): Remove redundant |s of
2602 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2603 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2606 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2608 * rtl.h (predefined_function_abi): Declare.
2609 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2610 instead of a boolean call_save flag.
2611 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2613 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2614 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2615 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2616 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2617 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2618 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2619 * reginfo.c (init_reg_modes_target): Likewise.
2620 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2621 instead of a boolean call_save flag.
2622 * targhooks.c: Include function-abi.h.
2623 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2624 using eh_edge_abi to choose the mode.
2626 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2628 * target.def (hard_regno_call_part_clobbered): Take an ABI
2629 identifier instead of an rtx_insn.
2630 * doc/tm.texi: Regenerate.
2631 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2632 (hook_bool_uint_uint_mode_false): New function.
2633 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2634 (hook_bool_uint_uint_mode_false): New function.
2635 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2636 Take an ABI identifier instead of an rtx_insn.
2637 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2638 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2639 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2640 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2641 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2643 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2644 * cselib.c: Include function-abi.h.
2645 (cselib_process_insn): Update call to
2646 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2647 to get the appropriate ABI identifier.
2648 * function-abi.cc (predefined_function_abi::initialize): Update call
2649 to targetm.hard_regno_call_part_clobbered.
2650 * ira-conflicts.c (ira_build_conflicts): Likewise.
2651 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2652 * lra-constraints.c: Include function-abi.h.
2653 (need_for_call_save_p): Update call to
2654 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2655 to get the appropriate ABI identifier.
2656 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2657 * regcprop.c (copyprop_hardreg_forward_1): Update call
2658 to targetm.hard_regno_call_part_clobbered.
2659 * reginfo.c (choose_hard_reg_mode): Likewise.
2660 * regrename.c (check_new_reg_p): Likewise.
2661 * reload.c (find_equiv_reg): Likewise.
2662 * reload1.c (emit_reload_insns): Likewise.
2663 * sched-deps.c: Include function-abi.h.
2664 (deps_analyze_insn): Update call to
2665 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2666 to get the appropriate ABI identifier.
2667 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2668 call to targetm.hard_regno_call_part_clobbered.
2669 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2671 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2673 * config/i386/i386.c: Include function-abi.h.
2674 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2675 if they preserve some 256-bit or 512-bit SSE registers.
2677 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2679 * target.def (insn_callee_abi): New hook.
2680 (remove_extra_call_preserved_regs): Delete.
2681 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2682 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2683 * doc/tm.texi: Regenerate.
2684 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2685 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2686 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2688 (aarch64_remove_extra_call_preserved_regs): Delete.
2689 (aarch64_insn_callee_abi): New function.
2690 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2691 (TARGET_INSN_CALLEE_ABI): New macro.
2692 * rtl.h (get_call_fndecl): Declare.
2693 (cgraph_rtl_info): Fix formatting. Tweak comment for
2694 function_used_regs. Remove function_used_regs_valid.
2695 * rtlanal.c (get_call_fndecl): Moved from final.c
2696 * function-abi.h (insn_callee_abi): Declare.
2697 (target_function_abi_info): Mention insn_callee_abi.
2698 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2699 way to get_call_reg_set_usage did.
2700 (insn_callee_abi): New function.
2701 * regs.h (get_call_reg_set_usage): Delete.
2702 * final.c: Include function-abi.h.
2703 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2704 function_used_regs before the main loop rather than afterwards.
2705 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2706 if function_used_regs ends up not being useful.
2707 (get_call_fndecl): Move to rtlanal.c
2708 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2709 * caller-save.c: Include function-abi.h.
2710 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2711 instead of get_call_reg_set_usage.
2712 * cfgcleanup.c: Include function-abi.h.
2713 (old_insns_match_p): Use insn_callee_abi instead of
2714 get_call_reg_set_usage.
2715 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2717 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2719 * df-scan.c: Include function-abi.h.
2720 (df_get_call_refs): Use insn_callee_abi instead of
2721 get_call_reg_set_usage.
2722 * ira-lives.c: Include function-abi.h.
2723 (process_bb_node_lives): Use insn_callee_abi instead of
2724 get_call_reg_set_usage.
2725 * lra-lives.c: Include function-abi.h.
2726 (process_bb_lives): Use insn_callee_abi instead of
2727 get_call_reg_set_usage.
2728 * postreload.c: Include function-abi.h.
2729 (reload_combine): Use insn_callee_abi instead of
2730 get_call_reg_set_usage.
2731 * regcprop.c: Include function-abi.h.
2732 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2733 get_call_reg_set_usage.
2734 * resource.c: Include function-abi.h.
2735 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2736 instead of get_call_reg_set_usage.
2737 * var-tracking.c: Include function-abi.h.
2738 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2739 get_call_reg_set_usage.
2741 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2743 * target.def (fntype_abi): New target hook.
2744 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2745 * doc/tm.texi: Regenerate.
2746 * target.h (predefined_function_abi): Declare.
2747 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2749 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2750 * config/aarch64/aarch64.c: Include function-abi.h.
2751 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2752 (TARGET_FNTYPE_ABI): Define.
2754 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2756 * Makefile.in (OBJS): Add function-abi.o.
2757 (GTFILES): Add function-abi.h.
2758 * function-abi.cc: New file.
2759 * function-abi.h: Likewise.
2760 * emit-rtl.h (rtl_data::abi): New field.
2761 * function.c: Include function-abi.h.
2762 (prepare_function_start): Initialize crtl->abi.
2763 * read-rtl-function.c: Include regs.h and function-abi.h.
2764 (read_rtl_function_body): Initialize crtl->abi.
2765 (read_rtl_function_body_from_file_range): Likewise.
2766 * reginfo.c: Include function-abi.h.
2767 (init_reg_sets_1): Initialize default_function_abi.
2768 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2769 when making a register global.
2770 * target-globals.h (this_target_function_abi_info): Declare.
2771 (target_globals::function_abi_info): New field.
2772 (restore_target_globals): Copy it.
2773 * target-globals.c: Include function-abi.h.
2774 (default_target_globals): Initialize the function_abi_info field.
2775 (target_globals): Allocate it.
2776 (save_target_globals): Free it.
2778 2019-09-30 Nick Clifton <nickc@redhat.com>
2781 * config/frv/frv.c (frv_register_move_cost): Add break statements
2782 to avoid falling through to the wrong cases. Tidy code.
2784 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2786 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2787 For multi-registers modes, test how big each register part is.
2789 2019-09-30 Nick Clifton <nickc@redhat.com>
2792 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2793 (TARGET_ASM_SELECT_SECTION): Remove definition.
2794 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2796 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2798 * emit-rtl.c (init_raw_REG): New function.
2799 (gen_raw_REG): Use init_raw_REG.
2800 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2802 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2803 * rtl.h (rtx_init): New function.
2804 (rtx_alloca): New function.
2805 (init_raw_REG): New function.
2806 (alloca_raw_REG): New macro.
2808 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2810 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2811 (pcrel_local_address): Replace pcrel_address predicate, use the
2812 new function address_to_insn_form.
2813 (pcrel_external_address): Replace with new implementation using
2814 address_to_insn_form..
2815 (prefixed_mem_operand): Delete predicate which is now unused.
2816 (pcrel_external_mem_operand): Delete predicate which is now
2818 * config/rs6000/rs6000-protos.h (enum insn_form): New
2820 (enum non_prefixed_form): New enumeration.
2821 (address_to_insn_form): New declaration.
2822 (prefixed_load_p): New declaration.
2823 (prefixed_store_p): New declaration.
2824 (prefixed_paddi_p): New declaration.
2825 (rs6000_asm_output_opcode): New declaration.
2826 (rs6000_final_prescan_insn): Move declaration and update calling
2828 (address_is_prefixed): New helper inline function.
2829 * config/rs6000/rs6000.c(print_operand_address): Check for either
2830 PC-relative local symbols or PC-relative external symbols.
2831 (rs6000_emit_move): Support loading PC-relative addresses.
2832 (mode_supports_prefixed_address_p): Delete, no longer used.
2833 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2834 (address_to_insn_form): New function to decode an address format.
2835 (reg_to_non_prefixed): New function to identify what the
2836 non-prefixed memory instruction format is for a register.
2837 (prefixed_load_p): New function to identify prefixed loads.
2838 (prefixed_store_p): New function to identify prefixed stores.
2839 (prefixed_paddi_p): New function to identify prefixed load
2841 (next_insn_prefixed_p): New static state variable.
2842 (rs6000_final_prescan_insn): New function to determine if an insn
2843 uses a prefixed instruction.
2844 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2845 prefixed instruction.
2846 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2847 (ASM_OUTPUT_OPCODE): New target hook.
2848 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2849 prefixed instructions.
2850 (prefixed_length): New insn attribute for the size of prefixed
2852 (non_prefixed_length): New insn attribute for the size of
2853 non-prefixed instructions.
2854 (pcrel_local_addr): New insn to load up a local PC-relative
2856 (pcrel_extern_addr): New insn to load up an external PC-relative
2858 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2859 GPR and loading a 128-bit floating point type to a GPR.
2861 2019-09-30 Richard Biener <rguenther@suse.de>
2863 * gimple.c (gimple_get_lhs): For PHIs return the result.
2864 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2865 SLP instance as argument.
2866 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2867 double-reduction PHIs with vectorizable_lc_phi.
2868 (vect_analyze_loop_operations): Adjust.
2869 (vect_create_epilog_for_reduction): Remove all code not dealing
2870 with reduction LC PHI or epilogue generation.
2871 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2872 for live stmts of reductions.
2873 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2874 do not handle defs that are not vect_internal_def.
2875 (can_vectorize_live_stmts): Adjust.
2876 (vect_analyze_stmt): When the vectorized stmt defined a value
2877 used on backedges adjust the backedge uses of vectorized PHIs.
2879 2019-09-30 Martin Jambor <mjambor@suse.cz>
2882 * tree-inline.c (force_value_to_type): New function.
2883 (setup_one_parameter): Use force_value_to_type to convert type.
2884 * tree-inline.c (force_value_to_type): Declare.
2885 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2886 with register type mismatches.
2888 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2890 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2892 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2893 * config/rs6000/t-freebsd64: Make use of the above define and build
2894 the 32-bit libraries with secure-plt.
2896 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2899 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2900 gen_int_mode instead of GEN_INT.
2902 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2904 * config/darwin.c (gen_macho_low): Amend to include the mode
2906 (machopic_indirect_data_reference): Amend gen_macho_low call
2907 to include mode argument
2908 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2909 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2910 the macho_high expander and two define_insn entries.
2912 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2915 * optc-save-gen.awk: Fix up printing string option differences.
2917 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2919 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2920 vec_perm cost to 1 for non-Power7 VSX architectures.
2922 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2924 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2925 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2926 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2928 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2930 * config/darwin.c (gen_macho_high): Amend to include the mode
2932 (machopic_indirect_data_reference): Amend gen_macho_high call
2933 to include mode argument.
2934 (machopic_legitimize_pic_address): Likewise.
2935 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2936 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2937 the macho_high expander and two define_insn entries.
2939 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2942 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2944 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2947 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2948 std::string::compare instead of std::string::find.
2950 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2952 * configure: Regenerate.
2954 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2957 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2958 variables as shared.
2960 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2962 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2963 replaces the expander and two define_insn entries.
2964 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2966 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2968 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2970 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2971 (fibonacci_heap::nodes): Likewise.
2972 (fibonacci_heap::min_key): Likewise.
2973 (fibonacci_heap::min): Likewise.
2975 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2977 * cgraph.c (cgraph_node::get_fun): Make const.
2978 * cgraph.h (cgraph_node::get_fun): Likewise.
2980 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2983 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2986 2019-09-27 Richard Biener <rguenther@suse.de>
2988 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2989 (STMT_VINFO_REDUC_FN): Likewise.
2990 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2991 STMT_VINFO_REDUC_FN.
2992 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2993 for condition reductions.
2994 (vect_create_epilog_for_reduction): Compute all required state
2995 from the stmt to be vectorized.
2996 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2997 invocation and remove then dead code. For single def-use chains
2998 record only a single vector stmt.
3000 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3002 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
3003 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
3004 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
3005 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
3006 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
3007 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
3008 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
3009 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
3010 (aarch64_general_builtin_rsqrt): Declare.
3011 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
3013 (aarch64_mangle_builtin_type): Rename to...
3014 (aarch64_general_mangle_builtin_type): ...this.
3015 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
3016 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
3017 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
3018 aarch64_general_add_builtin instead of add_builtin_function.
3019 (aarch64_init_builtins): Rename to...
3020 (aarch64_general_init_builtins): ...this. Use
3021 aarch64_general_add_builtin instead of add_builtin_function.
3022 (aarch64_builtin_decl): Rename to...
3023 (aarch64_general_builtin_decl): ...this and remove the unused
3025 (aarch64_expand_builtin): Rename to...
3026 (aarch64_general_expand_builtin): ...this and remove the unused
3028 (aarch64_builtin_rsqrt): Rename to...
3029 (aarch64_general_builtin_rsqrt): ...this.
3030 (aarch64_fold_builtin): Rename to...
3031 (aarch64_general_fold_builtin): ...this. Take the function subcode
3032 and return type as arguments. Remove the "ignored" argument.
3033 (aarch64_gimple_fold_builtin): Rename to...
3034 (aarch64_general_gimple_fold_builtin): ...this. Take the function
3035 subcode and gcall as arguments, and return the new function call.
3036 * config/aarch64/aarch64.c (aarch64_init_builtins)
3037 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
3038 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
3039 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
3040 instead of aarch64_builtin_rsqrt.
3041 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
3042 instead of aarch64_mangle_builtin_type.
3044 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3046 * target.def (check_builtin_call): New target hook.
3047 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
3048 * doc/tm.texi: Regenerate.
3050 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3052 PR tree-optimization/91909
3053 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
3054 reduc_index parameter. When handling COND_REDUCTION, make sure
3055 that the reduction phi operand is in the correct arm of the
3057 (vectorizable_reduction): Pass reduc_index to the above.
3059 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
3061 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
3062 New combine pattern.
3064 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
3066 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
3067 loop instruction into new basic block before the loop when basic
3068 block that precedes the loop is empty.
3070 2019-09-26 Jakub Jelinek <jakub@redhat.com>
3072 * function.c (gimplify_parameters): Use build_clobber function.
3073 * tree-ssa.c (execute_update_addresses_taken): Likewise.
3074 * tree-inline.c (expand_call_inline): Likewise.
3075 * tree-sra.c (clobber_subtree): Likewise.
3076 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
3077 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
3078 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
3079 lower_omp_target): Likewise.
3080 * omp-expand.c (expand_omp_for_generic): Likewise.
3081 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
3083 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
3085 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
3086 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
3087 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
3088 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
3089 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
3090 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
3091 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
3092 LD_ELEMREV_V16QI): Use the PURE attribute.
3094 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
3096 * config/rs6000/darwin.md: Replace the expanders for
3097 load_macho_picbase and reload_macho_picbase with use of '@'
3098 and <mode> in their respective define_insns.
3099 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
3100 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
3101 Pmode to gen_load_macho_picbase.
3102 * config/rs6000/rs6000.md: Likewise.
3104 2019-09-25 Richard Biener <rguenther@suse.de>
3106 PR tree-optimization/91896
3107 * tree-vect-loop.c (vectorizable_reduction): The single
3108 def-use cycle optimization cannot apply when there's more
3109 than one pattern stmt involved.
3111 2019-09-26 Richard Biener <rguenther@suse.de>
3113 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
3114 loop-closed PHIs that are vect_internal_def.
3115 (vect_create_epilog_for_reduction): Exit early for nested cycles.
3117 (vectorizable_lc_phi): New.
3118 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
3119 (vect_transform_stmt): Likewise.
3120 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
3121 (vectorizable_lc_phi): Declare.
3123 2019-09-26 Richard Biener <rguenther@suse.de>
3125 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
3126 vectorizable_reduction for vect_double_reduction_def.
3127 (vect_transform_loop): Likewise.
3128 (vect_create_epilog_for_reduction): Move double-reduction
3129 PHI creation and preheader argument setting of PHIs ...
3130 (vectorizable_reduction): ... here. Also process
3131 vect_double_reduction_def PHIs, creating the vectorized
3132 PHI nodes, remembering the scalar adjustment computed for
3133 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
3134 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
3135 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
3136 Initialize STMT_VINFO_REDUC_CODE.
3137 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
3138 (_stmt_vec_info::reduc_code): Likewise.
3139 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
3140 (STMT_VINFO_REDUC_CODE): Likewise.
3142 2019-09-26 Matt Turner <mattst88@gmail.com>
3145 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
3146 (mtune=): Add Negative(mtune=).
3147 (mcpu=): Add Negative(mcpu=).
3148 * config/arm/arm.opt: Likewise.
3150 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3152 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3153 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
3155 * config/arm/arm_acle.h: Define builtins for the above.
3156 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
3157 (simd32_op): Handle the above.
3158 * config/arm/unspecs.md: Define unspecs for the above.
3160 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3162 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3163 (arm_<sup>xtb16): Likewise.
3164 (arm_usada8): Likewise.
3165 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
3166 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
3167 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
3168 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
3169 __sxtb16, __uxtab16, __uxtb16): Define.
3170 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3171 * config/arm/unspecs.md: Define unspecs for the above.
3172 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
3173 (USXTB16): Likewise.
3174 (simd32_op): New int_attribute.
3175 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
3176 * doc/sourcebuild.exp (arm_simd32_ok): Document.
3178 2019-09-26 Martin Jambor <mjambor@suse.cz>
3180 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
3183 2019-09-26 Martin Jambor <mjambor@suse.cz>
3185 * ipa-sra.c (process_scan_results): Fix continue condition.
3187 2019-09-26 Martin Liska <mliska@suse.cz>
3189 PR tree-optimization/91885
3190 * tree-vectorizer.c (try_vectorize_loop_1): Add
3191 TODO_update_ssa_only_virtuals similarly to what slp pass does.
3193 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
3195 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
3196 aarch64_plus_immediate rather than aarch64_uimm12_shift
3197 to test for valid PLUS immediates.
3199 2019-09-25 Martin Jambor <mjambor@suse.cz>
3201 * tree-sra.c (no_accesses_p): Remove.
3202 (no_accesses_representant): Likewise.
3204 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3206 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
3208 (vaba_s16): Likewise.
3209 (vaba_s32): Likewise.
3210 (vaba_u8): Likewise.
3211 (vaba_u16): Likewise.
3212 (vaba_u32): Likewise.
3213 (vabal_high_s8): Likewise.
3214 (vabal_high_s16): Likewise.
3215 (vabal_high_s32): Likewise.
3216 (vabal_high_u8): Likewise.
3217 (vabal_high_u16): Likewise.
3218 (vabal_high_u32): Likewise.
3219 (vabal_s8): Likewise.
3220 (vabal_s16): Likewise.
3221 (vabal_s32): Likewise.
3222 (vabal_u8): Likewise.
3223 (vabal_u16): Likewise.
3224 (vabal_u32): Likewise.
3225 (vabaq_s8): Likewise.
3226 (vabaq_s16): Likewise.
3227 (vabaq_s32): Likewise.
3228 (vabaq_u8): Likewise.
3229 (vabaq_u16): Likewise.
3230 (vabaq_u32): Likewise.
3231 (vabd_s8): Likewise.
3232 (vabd_s16): Likewise.
3233 (vabd_s32): Likewise.
3234 (vabd_u8): Likewise.
3235 (vabd_u16): Likewise.
3236 (vabd_u32): Likewise.
3237 (vabdl_high_s8): Likewise.
3238 (vabdl_high_s16): Likewise.
3239 (vabdl_high_s32): Likewise.
3240 (vabdl_high_u8): Likewise.
3241 (vabdl_high_u16): Likewise.
3242 (vabdl_high_u32): Likewise.
3243 (vabdl_s8): Likewise.
3244 (vabdl_s16): Likewise.
3245 (vabdl_s32): Likewise.
3246 (vabdl_u8): Likewise.
3247 (vabdl_u16): Likewise.
3248 (vabdl_u32): Likewise.
3249 (vabdq_s8): Likewise.
3250 (vabdq_s16): Likewise.
3251 (vabdq_s32): Likewise.
3252 (vabdq_u8): Likewise.
3253 (vabdq_u16): Likewise.
3254 (vabdq_u32): Likewise.
3255 (vaddlv_s8): Likewise.
3256 (vaddlv_s16): Likewise.
3257 (vaddlv_u8): Likewise.
3258 (vaddlv_u16): Likewise.
3259 (vaddlvq_s8): Likewise.
3260 (vaddlvq_s16): Likewise.
3261 (vaddlvq_s32): Likewise.
3262 (vaddlvq_u8): Likewise.
3263 (vaddlvq_u16): Likewise.
3264 (vaddlvq_u32): Likewise.
3265 (vcvtx_f32_f64): Likewise.
3266 (vcvtx_high_f32_f64): Likewise.
3267 (vcvtxd_f32_f64): Likewise.
3268 (vmla_n_f32): Likewise.
3269 (vmla_n_s16): Likewise.
3270 (vmla_n_s32): Likewise.
3271 (vmla_n_u16): Likewise.
3272 (vmla_n_u32): Likewise.
3273 (vmla_s8): Likewise.
3274 (vmla_s16): Likewise.
3275 (vmla_s32): Likewise.
3276 (vmla_u8): Likewise.
3277 (vmla_u16): Likewise.
3278 (vmla_u32): Likewise.
3279 (vmlal_high_n_s16): Likewise.
3280 (vmlal_high_n_s32): Likewise.
3281 (vmlal_high_n_u16): Likewise.
3282 (vmlal_high_n_u32): Likewise.
3283 (vmlal_high_s8): Likewise.
3284 (vmlal_high_s16): Likewise.
3285 (vmlal_high_s32): Likewise.
3286 (vmlal_high_u8): Likewise.
3287 (vmlal_high_u16): Likewise.
3288 (vmlal_high_u32): Likewise.
3289 (vmlal_n_s16): Likewise.
3290 (vmlal_n_s32): Likewise.
3291 (vmlal_n_u16): Likewise.
3292 (vmlal_n_u32): Likewise.
3293 (vmlal_s8): Likewise.
3294 (vmlal_s16): Likewise.
3295 (vmlal_s32): Likewise.
3296 (vmlal_u8): Likewise.
3297 (vmlal_u16): Likewise.
3298 (vmlal_u32): Likewise.
3299 (vmlaq_n_f32): Likewise.
3300 (vmlaq_n_s16): Likewise.
3301 (vmlaq_n_s32): Likewise.
3302 (vmlaq_n_u16): Likewise.
3303 (vmlaq_n_u32): Likewise.
3304 (vmlaq_s8): Likewise.
3305 (vmlaq_s16): Likewise.
3306 (vmlaq_s32): Likewise.
3307 (vmlaq_u8): Likewise.
3308 (vmlaq_u16): Likewise.
3309 (vmlaq_u32): Likewise.
3310 (vmls_n_f32): Likewise.
3311 (vmls_n_s16): Likewise.
3312 (vmls_n_s32): Likewise.
3313 (vmls_n_u16): Likewise.
3314 (vmls_n_u32): Likewise.
3315 (vmls_s8): Likewise.
3316 (vmls_s16): Likewise.
3317 (vmls_s32): Likewise.
3318 (vmls_u8): Likewise.
3319 (vmls_u16): Likewise.
3320 (vmls_u32): Likewise.
3321 (vmlsl_high_n_s16): Likewise.
3322 (vmlsl_high_n_s32): Likewise.
3323 (vmlsl_high_n_u16): Likewise.
3324 (vmlsl_high_n_u32): Likewise.
3325 (vmlsl_high_s8): Likewise.
3326 (vmlsl_high_s16): Likewise.
3327 (vmlsl_high_s32): Likewise.
3328 (vmlsl_high_u8): Likewise.
3329 (vmlsl_high_u16): Likewise.
3330 (vmlsl_high_u32): Likewise.
3331 (vmlsl_n_s16): Likewise.
3332 (vmlsl_n_s32): Likewise.
3333 (vmlsl_n_u16): Likewise.
3334 (vmlsl_n_u32): Likewise.
3335 (vmlsl_s8): Likewise.
3336 (vmlsl_s16): Likewise.
3337 (vmlsl_s32): Likewise.
3338 (vmlsl_u8): Likewise.
3339 (vmlsl_u16): Likewise.
3340 (vmlsl_u32): Likewise.
3341 (vmlsq_n_f32): Likewise.
3342 (vmlsq_n_s16): Likewise.
3343 (vmlsq_n_s32): Likewise.
3344 (vmlsq_n_u16): Likewise.
3345 (vmlsq_n_u32): Likewise.
3346 (vmlsq_s8): Likewise.
3347 (vmlsq_s16): Likewise.
3348 (vmlsq_s32): Likewise.
3349 (vmlsq_u8): Likewise.
3350 (vmlsq_u16): Likewise.
3351 (vmlsq_u32): Likewise.
3352 (vmovl_high_s8): Likewise.
3353 (vmovl_high_s16): Likewise.
3354 (vmovl_high_s32): Likewise.
3355 (vmovl_high_u8): Likewise.
3356 (vmovl_high_u16): Likewise.
3357 (vmovl_high_u32): Likewise.
3358 (vmovl_s8): Likewise.
3359 (vmovl_s16): Likewise.
3360 (vmovl_s32): Likewise.
3361 (vmovl_u8): Likewise.
3362 (vmovl_u16): Likewise.
3363 (vmovl_u32): Likewise.
3364 (vmovn_high_s16): Likewise.
3365 (vmovn_high_s32): Likewise.
3366 (vmovn_high_s64): Likewise.
3367 (vmovn_high_u16): Likewise.
3368 (vmovn_high_u32): Likewise.
3369 (vmovn_high_u64): Likewise.
3370 (vmovn_s16): Likewise.
3371 (vmovn_s32): Likewise.
3372 (vmovn_s64): Likewise.
3373 (vmovn_u16): Likewise.
3374 (vmovn_u32): Likewise.
3375 (vmovn_u64): Likewise.
3376 (vmull_high_n_s16): Likewise.
3377 (vmull_high_n_s32): Likewise.
3378 (vmull_high_n_u16): Likewise.
3379 (vmull_high_n_u32): Likewise.
3380 (vmull_high_p8): Likewise.
3381 (vmull_high_s8): Likewise.
3382 (vmull_high_s16): Likewise.
3383 (vmull_high_s32): Likewise.
3384 (vmull_high_u8): Likewise.
3385 (vmull_high_u16): Likewise.
3386 (vmull_high_u32): Likewise.
3387 (vmull_n_s16): Likewise.
3388 (vmull_n_s32): Likewise.
3389 (vmull_n_u16): Likewise.
3390 (vmull_n_u32): Likewise.
3391 (vmull_p8): Likewise.
3392 (vmull_s8): Likewise.
3393 (vmull_s16): Likewise.
3394 (vmull_s32): Likewise.
3395 (vmull_u8): Likewise.
3396 (vmull_u16): Likewise.
3397 (vmull_u32): Likewise.
3398 (vpadal_s8): Likewise.
3399 (vpadal_s16): Likewise.
3400 (vpadal_s32): Likewise.
3401 (vpadal_u8): Likewise.
3402 (vpadal_u16): Likewise.
3403 (vpadal_u32): Likewise.
3404 (vpadalq_s8): Likewise.
3405 (vpadalq_s16): Likewise.
3406 (vpadalq_s32): Likewise.
3407 (vpadalq_u8): Likewise.
3408 (vpadalq_u16): Likewise.
3409 (vpadalq_u32): Likewise.
3410 (vpaddl_s8): Likewise.
3411 (vpaddl_s16): Likewise.
3412 (vpaddl_s32): Likewise.
3413 (vpaddl_u8): Likewise.
3414 (vpaddl_u16): Likewise.
3415 (vpaddl_u32): Likewise.
3416 (vpaddlq_s8): Likewise.
3417 (vpaddlq_s16): Likewise.
3418 (vpaddlq_s32): Likewise.
3419 (vpaddlq_u8): Likewise.
3420 (vpaddlq_u16): Likewise.
3421 (vpaddlq_u32): Likewise.
3422 (vpaddq_s8): Likewise.
3423 (vpaddq_s16): Likewise.
3424 (vpaddq_s32): Likewise.
3425 (vpaddq_s64): Likewise.
3426 (vpaddq_u8): Likewise.
3427 (vpaddq_u16): Likewise.
3428 (vpaddq_u32): Likewise.
3429 (vpaddq_u64): Likewise.
3430 (vqdmulh_n_s16): Likewise.
3431 (vqdmulh_n_s32): Likewise.
3432 (vqdmulhq_n_s16): Likewise.
3433 (vqdmulhq_n_s32): Likewise.
3434 (vqmovn_high_s16): Likewise.
3435 (vqmovn_high_s32): Likewise.
3436 (vqmovn_high_s64): Likewise.
3437 (vqmovn_high_u16): Likewise.
3438 (vqmovn_high_u32): Likewise.
3439 (vqmovn_high_u64): Likewise.
3440 (vqmovun_high_s16): Likewise.
3441 (vqmovun_high_s32): Likewise.
3442 (vqmovun_high_s64): Likewise.
3443 (vqrdmulh_n_s16): Likewise.
3444 (vqrdmulh_n_s32): Likewise.
3445 (vqrdmulhq_n_s16): Likewise.
3446 (vqrdmulhq_n_s32): Likewise.
3447 (vrsqrte_u32): Likewise.
3448 (vrsqrteq_u32): Likewise.
3449 (vtst_p8): Likewise.
3450 (vtst_p16): Likewise.
3451 (vtst_p64): Likewise.
3452 (vtstq_p8): Likewise.
3453 (vtstq_p16): Likewise.
3454 (vtstq_p64): Likewise.
3455 (vaddlv_s32): Likewise.
3456 (vaddlv_u32): Likewise.
3457 (vqtbl1_p8): Likewise.
3458 (vqtbl1_s8): Likewise.
3459 (vqtbl1_u8): Likewise.
3460 (vqtbl1q_p8): Likewise.
3461 (vqtbl1q_s8): Likewise.
3462 (vqtbl1q_u8): Likewise.
3463 (vqtbx1_s8): Likewise.
3464 (vqtbx1_u8): Likewise.
3465 (vqtbx1_p8): Likewise.
3466 (vqtbx1q_s8): Likewise.
3467 (vqtbx1q_u8): Likewise.
3468 (vqtbx1q_p8): Likewise.
3469 (vtbl1_s8): Likewise.
3470 (vtbl1_u8): Likewise.
3471 (vtbl1_p8): Likewise.
3472 (vtbl2_s8): Likewise.
3473 (vtbl2_u8): Likewise.
3474 (vtbl2_p8): Likewise.
3475 (vtbl3_s8): Likewise.
3476 (vtbl3_u8): Likewise.
3477 (vtbl3_p8): Likewise.
3478 (vtbl4_s8): Likewise.
3479 (vtbl4_u8): Likewise.
3480 (vtbl4_p8): Likewise.
3481 (vtbx2_s8): Likewise.
3482 (vtbx2_u8): Likewise.
3483 (vtbx2_p8): Likewise.
3484 (vld1_f32): Likewise.
3485 (vld1_f64): Likewise.
3486 (vld1_p8): Likewise.
3487 (vld1_p16): Likewise.
3488 (vld1_p64): Likewise.
3489 (vld1_s8): Likewise.
3490 (vld1_s16): Likewise.
3491 (vld1_s32): Likewise.
3492 (vld1_s64): Likewise.
3493 (vld1_u8): Likewise.
3494 (vld1_u16): Likewise.
3495 (vld1_u32): Likewise.
3496 (vld1_u64): Likewise.
3497 (vld1q_f32): Likewise.
3498 (vld1q_f64): Likewise.
3499 (vld1q_p8): Likewise.
3500 (vld1q_p16): Likewise.
3501 (vld1q_p64): Likewise.
3502 (vld1q_s8): Likewise.
3503 (vld1q_s16): Likewise.
3504 (vld1q_s32): Likewise.
3505 (vld1q_s64): Likewise.
3506 (vld1q_u8): Likewise.
3507 (vld1q_u16): Likewise.
3508 (vld1q_u32): Likewise.
3509 (vld1q_u64): Likewise.
3510 (vpmax_s8): Likewise.
3511 (vpmax_s16): Likewise.
3512 (vpmax_s32): Likewise.
3513 (vpmax_u8): Likewise.
3514 (vpmax_u16): Likewise.
3515 (vpmax_u32): Likewise.
3516 (vpmaxq_s8): Likewise.
3517 (vpmaxq_s16): Likewise.
3518 (vpmaxq_s32): Likewise.
3519 (vpmaxq_u8): Likewise.
3520 (vpmaxq_u16): Likewise.
3521 (vpmaxq_u32): Likewise.
3522 (vpmax_f32): Likewise.
3523 (vpmaxq_f32): Likewise.
3524 (vpmaxq_f64): Likewise.
3525 (vpmaxqd_f64): Likewise.
3526 (vpmaxs_f32): Likewise.
3527 (vpmaxnm_f32): Likewise.
3528 (vpmaxnmq_f32): Likewise.
3529 (vpmaxnmq_f64): Likewise.
3530 (vpmaxnmqd_f64): Likewise.
3531 (vpmaxnms_f32): Likewise.
3532 (vpmin_s8): Likewise.
3533 (vpmin_s16): Likewise.
3534 (vpmin_s32): Likewise.
3535 (vpmin_u8): Likewise.
3536 (vpmin_u16): Likewise.
3537 (vpmin_u32): Likewise.
3538 (vpminq_s8): Likewise.
3539 (vpminq_s16): Likewise.
3540 (vpminq_s32): Likewise.
3541 (vpminq_u8): Likewise.
3542 (vpminq_u16): Likewise.
3543 (vpminq_u32): Likewise.
3544 (vpmin_f32): Likewise.
3545 (vpminq_f32): Likewise.
3546 (vpminq_f64): Likewise.
3547 (vpminqd_f64): Likewise.
3548 (vpmins_f32): Likewise.
3549 (vpminnm_f32): Likewise.
3550 (vpminnmq_f32): Likewise.
3551 (vpminnmq_f64): Likewise.
3552 (vpminnmqd_f64): Likewise.
3553 (vpminnms_f32): Likewise.
3554 (vmla_f32): Likewise.
3555 (vmlaq_f32): Likewise.
3556 (vmlaq_f64): Likewise.
3557 (vmls_f32): Likewise.
3558 (vmlsq_f32): Likewise.
3559 (vmlsq_f64): Likewise.
3560 (vqtbl2_s8): Likewise.
3561 (vqtbl2_u8): Likewise.
3562 (vqtbl2_p8): Likewise.
3563 (vqtbl2q_s8): Likewise.
3564 (vqtbl2q_u8): Likewise.
3565 (vqtbl2q_p8): Likewise.
3566 (vqtbl3_s8): Likewise.
3567 (vqtbl3_u8): Likewise.
3568 (vqtbl3_p8): Likewise.
3569 (vqtbl3q_s8): Likewise.
3570 (vqtbl3q_u8): Likewise.
3571 (vqtbl3q_p8): Likewise.
3572 (vqtbl4_s8): Likewise.
3573 (vqtbl4_u8): Likewise.
3574 (vqtbl4_p8): Likewise.
3575 (vqtbl4q_s8): Likewise.
3576 (vqtbl4q_u8): Likewise.
3577 (vqtbl4q_p8): Likewise.
3578 (vqtbx2_s8): Likewise.
3579 (vqtbx2_u8): Likewise.
3580 (vqtbx2_p8): Likewise.
3581 (vqtbx2q_s8): Likewise.
3582 (vqtbx2q_u8): Likewise.
3583 (vqtbx2q_p8): Likewise.
3584 (vqtbx3_s8): Likewise.
3585 (vqtbx3_u8): Likewise.
3586 (vqtbx3_p8): Likewise.
3587 (vqtbx3q_s8): Likewise.
3588 (vqtbx3q_u8): Likewise.
3589 (vqtbx3q_p8): Likewise.
3590 (vqtbx4_s8): Likewise.
3591 (vqtbx4_u8): Likewise.
3592 (vqtbx4_p8): Likewise.
3593 (vqtbx4q_s8): Likewise.
3594 (vqtbx4q_u8): Likewise.
3595 (vqtbx4q_p8): Likewise.
3596 (vrev16_p8): Likewise.
3597 (vrev16_s8): Likewise.
3598 (vrev16_u8): Likewise.
3599 (vrev16q_p8): Likewise.
3600 (vrev16q_s8): Likewise.
3601 (vrev16q_u8): Likewise.
3602 (vrev32_p8): Likewise.
3603 (vrev32_p16): Likewise.
3604 (vrev32_s8): Likewise.
3605 (vrev32_s16): Likewise.
3606 (vrev32_u8): Likewise.
3607 (vrev32_u16): Likewise.
3608 (vrev32q_p8): Likewise.
3609 (vrev32q_p16): Likewise.
3610 (vrev32q_s8): Likewise.
3611 (vrev32q_s16): Likewise.
3612 (vrev32q_u8): Likewise.
3613 (vrev32q_u16): Likewise.
3614 (vrev64_f32): Likewise.
3615 (vrev64_p8): Likewise.
3616 (vrev64_p16): Likewise.
3617 (vrev64_s8): Likewise.
3618 (vrev64_s16): Likewise.
3619 (vrev64_s32): Likewise.
3620 (vrev64_u8): Likewise.
3621 (vrev64_u16): Likewise.
3622 (vrev64_u32): Likewise.
3623 (vrev64q_f32): Likewise.
3624 (vrev64q_p8): Likewise.
3625 (vrev64q_p16): Likewise.
3626 (vrev64q_s8): Likewise.
3627 (vrev64q_s16): Likewise.
3628 (vrev64q_s32): Likewise.
3629 (vrev64q_u8): Likewise.
3630 (vrev64q_u16): Likewise.
3631 (vrev64q_u32): Likewise.
3632 (vsha1cq_u32): Likewise.
3633 (vsha1mq_u32): Likewise.
3634 (vsha1pq_u32): Likewise.
3635 (vsha1h_u32): Likewise.
3636 (vsha1su0q_u32): Likewise.
3637 (vsha1su1q_u32): Likewise.
3638 (vsha256hq_u32): Likewise.
3639 (vsha256h2q_u32): Likewise.
3640 (vsha256su0q_u32): Likewise.
3641 (vsha256su1q_u32): Likewise.
3642 (vmull_p64): Likewise.
3643 (vmull_high_p64): Likewise.
3644 (vsqrt_f32): Likewise.
3645 (vsqrtq_f32): Likewise.
3646 (vsqrt_f64): Likewise.
3647 (vsqrtq_f64): Likewise.
3648 (vst1_f32): Likewise.
3649 (vst1_f64): Likewise.
3650 (vst1_p8): Likewise.
3651 (vst1_p16): Likewise.
3652 (vst1_p64): Likewise.
3653 (vst1_s8): Likewise.
3654 (vst1_s16): Likewise.
3655 (vst1_s32): Likewise.
3656 (vst1_s64): Likewise.
3657 (vst1_u8): Likewise.
3658 (vst1_u16): Likewise.
3659 (vst1_u32): Likewise.
3660 (vst1_u64): Likewise.
3661 (vst1q_f32): Likewise.
3662 (vst1q_f64): Likewise.
3663 (vst1q_p8): Likewise.
3664 (vst1q_p16): Likewise.
3665 (vst1q_p64): Likewise.
3666 (vst1q_s8): Likewise.
3667 (vst1q_s16): Likewise.
3668 (vst1q_s32): Likewise.
3669 (vst1q_s64): Likewise.
3670 (vst1q_u8): Likewise.
3671 (vst1q_u16): Likewise.
3672 (vst1q_u32): Likewise.
3673 (vst1q_u64): Likewise.
3674 (vst1_s64_x2): Likewise.
3675 (vst1_u64_x2): Likewise.
3676 (vst1_f64_x2): Likewise.
3677 (vst1_s8_x2): Likewise.
3678 (vst1_p8_x2): Likewise.
3679 (vst1_s16_x2): Likewise.
3680 (vst1_p16_x2): Likewise.
3681 (vst1_s32_x2): Likewise.
3682 (vst1_u8_x2): Likewise.
3683 (vst1_u16_x2): Likewise.
3684 (vst1_u32_x2): Likewise.
3685 (vst1_f16_x2): Likewise.
3686 (vst1_f32_x2): Likewise.
3687 (vst1_p64_x2): Likewise.
3688 (vst1q_s8_x2): Likewise.
3689 (vst1q_p8_x2): Likewise.
3690 (vst1q_s16_x2): Likewise.
3691 (vst1q_p16_x2): Likewise.
3692 (vst1q_s32_x2): Likewise.
3693 (vst1q_s64_x2): Likewise.
3694 (vst1q_u8_x2): Likewise.
3695 (vst1q_u16_x2): Likewise.
3696 (vst1q_u32_x2): Likewise.
3697 (vst1q_u64_x2): Likewise.
3698 (vst1q_f16_x2): Likewise.
3699 (vst1q_f32_x2): Likewise.
3700 (vst1q_f64_x2): Likewise.
3701 (vst1q_p64_x2): Likewise.
3702 (vst1_s64_x3): Likewise.
3703 (vst1_u64_x3): Likewise.
3704 (vst1_f64_x3): Likewise.
3705 (vst1_s8_x3): Likewise.
3706 (vst1_p8_x3): Likewise.
3707 (vst1_s16_x3): Likewise.
3708 (vst1_p16_x3): Likewise.
3709 (vst1_s32_x3): Likewise.
3710 (vst1_u8_x3): Likewise.
3711 (vst1_u16_x3): Likewise.
3712 (vst1_u32_x3): Likewise.
3713 (vst1_f16_x3): Likewise.
3714 (vst1_f32_x3): Likewise.
3715 (vst1_p64_x3): Likewise.
3716 (vst1q_s8_x3): Likewise.
3717 (vst1q_p8_x3): Likewise.
3718 (vst1q_s16_x3): Likewise.
3719 (vst1q_p16_x3): Likewise.
3720 (vst1q_s32_x3): Likewise.
3721 (vst1q_s64_x3): Likewise.
3722 (vst1q_u8_x3): Likewise.
3723 (vst1q_u16_x3): Likewise.
3724 (vst1q_u32_x3): Likewise.
3725 (vst1q_u64_x3): Likewise.
3726 (vst1q_f16_x3): Likewise.
3727 (vst1q_f32_x3): Likewise.
3728 (vst1q_f64_x3): Likewise.
3729 (vst1q_p64_x3): Likewise.
3730 (vst2_s64): Likewise.
3731 (vst2_u64): Likewise.
3732 (vst2_f64): Likewise.
3733 (vst2_s8): Likewise.
3734 (vst2_p8): Likewise.
3735 (vst2_s16): Likewise.
3736 (vst2_p16): Likewise.
3737 (vst2_s32): Likewise.
3738 (vst2_u8): Likewise.
3739 (vst2_u16): Likewise.
3740 (vst2_u32): Likewise.
3741 (vst2_f16): Likewise.
3742 (vst2_f32): Likewise.
3743 (vst2_p64): Likewise.
3744 (vst2q_s8): Likewise.
3745 (vst2q_p8): Likewise.
3746 (vst2q_s16): Likewise.
3747 (vst2q_p16): Likewise.
3748 (vst2q_s32): Likewise.
3749 (vst2q_s64): Likewise.
3750 (vst2q_u8): Likewise.
3751 (vst2q_u16): Likewise.
3752 (vst2q_u32): Likewise.
3753 (vst2q_u64): Likewise.
3754 (vst2q_f16): Likewise.
3755 (vst2q_f32): Likewise.
3756 (vst2q_f64): Likewise.
3757 (vst2q_p64): Likewise.
3758 (vst3_s64): Likewise.
3759 (vst3_u64): Likewise.
3760 (vst3_f64): Likewise.
3761 (vst3_s8): Likewise.
3762 (vst3_p8): Likewise.
3763 (vst3_s16): Likewise.
3764 (vst3_p16): Likewise.
3765 (vst3_s32): Likewise.
3766 (vst3_u8): Likewise.
3767 (vst3_u16): Likewise.
3768 (vst3_u32): Likewise.
3769 (vst3_f16): Likewise.
3770 (vst3_f32): Likewise.
3771 (vst3_p64): Likewise.
3772 (vst3q_s8): Likewise.
3773 (vst3q_p8): Likewise.
3774 (vst3q_s16): Likewise.
3775 (vst3q_p16): Likewise.
3776 (vst3q_s32): Likewise.
3777 (vst3q_s64): Likewise.
3778 (vst3q_u8): Likewise.
3779 (vst3q_u16): Likewise.
3780 (vst3q_u32): Likewise.
3781 (vst3q_u64): Likewise.
3782 (vst3q_f16): Likewise.
3783 (vst3q_f32): Likewise.
3784 (vst3q_f64): Likewise.
3785 (vst3q_p64): Likewise.
3786 (vst4_s64): Likewise.
3787 (vst4_u64): Likewise.
3788 (vst4_f64): Likewise.
3789 (vst4_s8): Likewise.
3790 (vst4_p8): Likewise.
3791 (vst4_s16): Likewise.
3792 (vst4_p16): Likewise.
3793 (vst4_s32): Likewise.
3794 (vst4_u8): Likewise.
3795 (vst4_u16): Likewise.
3796 (vst4_u32): Likewise.
3797 (vst4_f16): Likewise.
3798 (vst4_f32): Likewise.
3799 (vst4_p64): Likewise.
3800 (vst4q_s8): Likewise.
3801 (vst4q_p8): Likewise.
3802 (vst4q_s16): Likewise.
3803 (vst4q_p16): Likewise.
3804 (vst4q_s32): Likewise.
3805 (vst4q_s64): Likewise.
3806 (vst4q_u8): Likewise.
3807 (vst4q_u16): Likewise.
3808 (vst4q_u32): Likewise.
3809 (vst4q_u64): Likewise.
3810 (vst4q_f16): Likewise.
3811 (vst4q_f32): Likewise.
3812 (vst4q_f64): Likewise.
3813 (vst4q_p64): Likewise.
3814 (vtbx4_s8): Likewise.
3815 (vtbx4_u8): Likewise.
3816 (vtbx4_p8): Likewise.
3817 (vtrn_f32): Likewise.
3818 (vtrn_p8): Likewise.
3819 (vtrn_p16): Likewise.
3820 (vtrn_s8): Likewise.
3821 (vtrn_s16): Likewise.
3822 (vtrn_s32): Likewise.
3823 (vtrn_u8): Likewise.
3824 (vtrn_u16): Likewise.
3825 (vtrn_u32): Likewise.
3826 (vtrnq_f32): Likewise.
3827 (vtrnq_p8): Likewise.
3828 (vtrnq_p16): Likewise.
3829 (vtrnq_s8): Likewise.
3830 (vtrnq_s16): Likewise.
3831 (vtrnq_s32): Likewise.
3832 (vtrnq_u8): Likewise.
3833 (vtrnq_u16): Likewise.
3834 (vtrnq_u32): Likewise.
3835 (vrsqrte_f16): Likewise.
3836 (vrsqrteq_f16): Likewise.
3837 (vsqrt_f16): Likewise.
3838 (vsqrtq_f16): Likewise.
3839 (vabd_f16): Likewise.
3840 (vabdq_f16): Likewise.
3841 (vpadd_f16): Likewise.
3842 (vpaddq_f16): Likewise.
3843 (vpmax_f16): Likewise.
3844 (vpmaxq_f16): Likewise.
3845 (vpmaxnm_f16): Likewise.
3846 (vpmaxnmq_f16): Likewise.
3847 (vpmin_f16): Likewise.
3848 (vpminq_f16): Likewise.
3849 (vpminnm_f16): Likewise.
3850 (vpminnmq_f16): Likewise.
3851 (vrsqrts_f16): Likewise.
3852 (vrsqrtsq_f16): Likewise.
3854 2019-09-25 Richard Biener <rguenther@suse.de>
3856 PR tree-optimization/91896
3857 * tree-vect-loop.c (vectorizable_reduction): The single
3858 def-use cycle optimization cannot apply when there's more
3859 than one pattern stmt involved.
3861 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3863 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3864 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3865 (reload_macho_picbase_<mode>): Likewise.
3867 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3869 * config/rs6000/rs6000.md: Move darwin.md include until
3870 after the definition of the mode iterators.
3872 2019-09-23 Martin Sebor <msebor@redhat.com>
3874 PR tree-optimization/91570
3875 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3876 non-constant minlen, maxlen and maxbound.
3878 2019-09-24 Richard Biener <rguenther@suse.de>
3880 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3882 (_stmt_vec_info::cond_reduc_code): ... this.
3883 (_stmt_vec_info::induc_cond_initial_val): Add.
3884 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3885 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3886 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3887 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3888 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3890 (vect_create_epilog_for_reduction): Drop special
3891 induction condition reduction params, pass in reduction code
3893 (vectorizable_reduction): Perform condition reduction kind
3894 selection only at analysis time. Adjust passing on state.
3896 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3898 * config/aarch64/aarch64.md (mov<mode>): Don't call
3899 aarch64_split_dimode_const_store on volatile MEM.
3901 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3903 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3904 Update hwcap string for fp16fml.
3906 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3909 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3910 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3912 2019-09-24 Martin Liska <mliska@suse.cz>
3914 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3915 instead of if-elseif-elseif-...
3916 * gimple-expr.c (extract_ops_from_tree): Likewise.
3917 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3918 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3920 2019-09-24 Martin Jambor <mjambor@suse.cz>
3923 * ipa-param-manipulation.c (carry_over_param): Make a method of
3924 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3925 in case of a context mismatch.
3926 (ipa_param_body_adjustments::common_initialization): Adjust call to
3928 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3929 private method carry_over_param.
3931 2019-09-24 Martin Jambor <mjambor@suse.cz>
3934 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3936 2019-09-24 Richard Biener <rguenther@suse.de>
3938 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3941 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3943 * config/arm/t-arm (arm-builtins.o): Add dependency on
3944 arm_acle_builtins.def.
3946 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3949 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3950 canonical CONST_INTs. Use gen_rtvec.
3952 2019-09-23 Richard Biener <rguenther@suse.de>
3954 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3955 avoid adjusting by + 0 or * 1.
3956 (vect_create_epilog_for_reduction): Get reduction code only
3957 when necessary. Deal with adjustment_def only when necessary.
3959 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3961 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3964 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3967 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3970 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3972 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3973 code. Merge code blocks with common conditionals. Use declared
3974 macro instead of a magic number for PIC level.
3976 2019-09-21 Martin Sebor <msebor@redhat.com>
3979 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3980 Simplify computation of the offset of the referenced subobject.
3982 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3984 * config/darwin.c (machopic_legitimize_pic_address): Check
3987 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3989 * ira-conflicts.c (can_use_same_reg_p): New function.
3990 (process_reg_shuffles): Take an insn parameter. Ignore cases
3991 in which input operand op_num could seemingly never be allocated
3992 to the same register as the destination.
3993 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3995 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3997 * simplify-rtx.c (neg_const_int): Replace with...
3998 (neg_poly_int_rtx): ...this new function.
3999 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
4000 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
4001 (simplify_plus_minus): Likewise for constant terms here.
4003 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
4005 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
4006 HOST_WIDE_PRINT_UNSIGNED.
4008 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
4010 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
4013 2019-09-20 Maya Rashish <coypu@sdf.org>
4016 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
4017 Define to speculation_safe_value_not_needed.
4019 2019-09-20 Richard Biener <rguenther@suse.de>
4020 Uros Bizjak <ubizjak@gmail.com>
4023 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
4025 (general_scalar_chain::convert_op): Force not suitable memory
4026 operands to a register.
4028 2019-09-20 Richard Biener <rguenther@suse.de>
4030 PR tree-optimization/91821
4031 * tree-vect-loop.c (check_reduction_path): Check we can compute
4033 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
4034 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
4035 operands in canonical order.
4036 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4037 STMT_VINFO_REDUC_IDX.
4038 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
4039 (STMT_VINFO_REDUC_IDX): Likewise.
4041 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
4044 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4046 2019-09-20 Richard Biener <rguenther@suse.de>
4048 PR tree-optimization/91822
4049 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
4051 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
4052 for reduc_index in nested cycles, adjust vectorizable_condition
4054 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
4056 (vect_analyze_stmt): Adjust.
4057 (vect_transform_stmt): Likewise.
4059 2019-09-20 Richard Biener <rguenther@suse.de>
4062 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
4063 Ensure there's a sequence point between allocating the new register
4064 and passing a reference to a reg via regno_reg_rtx.
4066 2019-09-20 Martin Jambor <mjambor@suse.cz>
4068 * coretypes.h (cgraph_edge): Declare.
4069 * ipa-param-manipulation.c: Rewrite.
4070 * ipa-param-manipulation.h: Likewise.
4071 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
4072 (OBJS): Added ipa-sra.o.
4073 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
4074 and ref_p, added fields param_adjustments and performed_splits.
4075 (struct cgraph_clone_info): Remove ags_to_skip and
4076 combined_args_to_skip, new field param_adjustments.
4077 (cgraph_node::create_clone): Changed parameters to use
4078 ipa_param_adjustments.
4079 (cgraph_node::create_virtual_clone): Likewise.
4080 (cgraph_node::create_virtual_clone_with_body): Likewise.
4081 (tree_function_versioning): Likewise.
4082 (cgraph_build_function_type_skip_args): Removed.
4083 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
4084 using ipa_param_adjustments.
4085 (clone_of_p): Likewise.
4086 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
4087 (build_function_decl_skip_args): Likewise.
4088 (duplicate_thunk_for_node): Adjust parameters using
4089 ipa_param_body_adjustments, copy param_adjustments instead of
4091 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
4092 (cgraph_node::create_virtual_clone): Likewise.
4093 (cgraph_node::create_version_clone_with_body): Likewise.
4094 (cgraph_materialize_clone): Likewise.
4095 (symbol_table::materialize_all_clones): Likewise.
4096 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
4097 ipa_replace_map check.
4098 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
4099 (initialize_node_lattices): Make aware that some parameters might have
4100 already been removed.
4101 (want_remove_some_param_p): New function.
4102 (create_specialized_node): Convert to using ipa_param_adjustments and
4103 deal with possibly pre-existing adjustments.
4104 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
4105 (output_node_opt_summary): Do not stream removed fields. Stream
4106 parameter adjustments instead of argumetns to skip.
4107 (input_node_opt_summary): Likewise.
4108 (input_node_opt_summary): Likewise.
4109 * lto-section-in.c (lto_section_name): Added ipa-sra section.
4110 * lto-streamer.h (lto_section_type): Likewise.
4111 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
4113 (copy_decl_to_var): Declare.
4114 * tree-inline.c (update_clone_info): Do not remap old_tree.
4115 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
4116 statements, walk all extra generated statements and remap their
4118 (redirect_all_calls): Add killed SSA names to a hash set.
4119 (remap_ssa_name): Do not remap killed SSA names.
4120 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
4121 half of functionality moved to ipa_param_body_adjustments.
4122 (copy_decl_to_var): Make exported.
4123 (copy_body): Destroy killed_new_ssa_names hash set.
4124 (expand_call_inline): Remap performed splits.
4125 (update_clone_info): Likewise.
4126 (tree_function_versioning): Simplify tree_map processing. Updated to
4127 accept ipa_param_adjustments and use ipa_param_body_adjustments.
4128 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
4129 for the new interface.
4130 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
4131 (simd_clone_compute_base_data_type): Likewise.
4132 (simd_clone_init_simd_arrays): Adjust for the new interface.
4133 (simd_clone_adjust_argument_types): Likewise.
4134 (struct modify_stmt_info): Likewise.
4135 (ipa_simd_modify_stmt_ops): Likewise.
4136 (ipa_simd_modify_function_body): Likewise.
4137 (simd_clone_adjust): Likewise.
4138 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
4139 (type_internals_preclude_sra_p): Make public.
4140 * tree-sra.h: New file.
4141 * ipa-inline-transform.c (save_inline_function_body): Update to
4142 refelct new tree_function_versioning signature.
4143 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
4144 ipa_param_adjustments to get current parameter indices.
4145 (ipcp_modif_dom_walker::before_dom_children): Likewise.
4146 (ipcp_update_bits): Likewise.
4147 (ipcp_update_vr): Likewise.
4148 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
4149 * ipa-sra.c: New file.
4150 * multiple_target.c (create_target_clone): Update to reflet new type
4151 of create_version_clone_with_body.
4152 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
4153 tree_function_versioning.
4154 (modify_function): Update to reflect new type of
4155 tree_function_versioning.
4156 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
4157 * passes.def: Remove old IPA-SRA and add new one.
4158 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
4159 (make_pass_ipa_sra): Declare.
4160 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
4162 * doc/invoke.texi (ipa-sra-max-replacements): New.
4164 2019-09-19 Martin Sebor <msebor@redhat.com>
4167 * builtins.c (component_size): Correct trailing array computation,
4168 rename to component_ref_size and move...
4169 (compute_objsize): Adjust.
4170 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
4171 (builtin_access::strict): Do not consider memmove.
4172 (builtin_access::write_off): New function.
4173 (builtin_memref::builtin_memref): Initialize refsize.
4174 (builtin_memref::set_base_and_offset): Adjust refoff and compute
4176 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
4178 (builtin_access::builtin_access): Initialize dstoff to destination
4179 refeence offset here instead of in maybe_diag_overlap. Adjust
4180 referencess even to unrelated objects. Adjust sizrange of bounded
4181 string functions to reflect bound. For strcat, adjust destination
4182 sizrange by that of source.
4183 (builtin_access::strcat_overlap): Adjust offsets and sizes
4184 to reflect the increase in destination sizrange above.
4185 (builtin_access::overlap): Do not set dstoff here but instead
4186 in builtin_access::builtin_access.
4187 (check_bounds_or_overlap): Use builtin_access::write_off.
4188 (maybe_diag_access_bounds): Add argument. Add informational notes.
4189 (dump_builtin_memref, dump_builtin_access): New functions.
4190 * tree.c (component_ref_size): ...to here.
4191 * tree.h (component_ref_size): Declare.
4192 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
4193 nul in the size of the source string.
4195 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
4198 * doc/cpp.texi: Document support for extended characters in
4200 * doc/cppopts.texi: Likewise.
4202 2019-09-19 Richard Biener <rguenther@suse.de>
4204 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
4205 (check_reduction_path): New overload having the path as result.
4206 (vect_is_simple_reduction): From the detected reduction
4207 path build a SLP reduction chain if possible.
4209 2019-09-19 Richard Biener <rguenther@suse.de>
4212 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
4213 Force operand to a register if it isn't nonimmediate_operand.
4215 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4217 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
4218 * config/arm/iterators.md (optab): Add and, ior, xor entries.
4219 (logical_op): Remove code attribute.
4220 (logical_OP): Likewise.
4222 2019-09-19 Martin Liska <mliska@suse.cz>
4224 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
4227 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
4229 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
4232 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
4233 for NE comparison of TImode values.
4234 (aarch64_emit_load_exclusive): Add support for TImode.
4235 (aarch64_emit_store_exclusive): Likewise.
4236 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
4237 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
4238 Change iterator from ALLI to ALLI_TI.
4239 (@atomic_compare_and_swap<JUST_TI>): New.
4240 (@atomic_compare_and_swap<JUST_TI>_lse): New.
4241 (aarch64_load_exclusive_pair): New.
4242 (aarch64_store_exclusive_pair): New.
4243 * config/aarch64/iterators.md (JUST_TI): New.
4245 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
4246 strong_zero_p for aarch64_track_speculation; unify some code paths;
4247 use aarch64_gen_compare_reg instead of open-coding.
4249 * config/aarch64/aarch64.opt (-moutline-atomics): New.
4250 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
4251 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
4252 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
4253 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
4254 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
4255 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
4256 (atomic_<atomic_op><ALLI>): Likewise.
4257 (atomic_fetch_<atomic_op><ALLI>): Likewise.
4258 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
4259 * doc/invoke.texi: Document -moutline-atomics.
4261 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
4263 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
4264 trivial predicate for condition branch.
4265 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
4267 (compute_bb_predicates): Update predicate based on post-dominating
4269 (analyze_function_body): Calculate post-dominating information.
4271 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4273 * tree-vectorizer.h (vectorizable_condition): Take an int
4274 reduction index instead of a boolean flag.
4275 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4276 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
4277 reductions if the reduction accumulator is the "then" rather
4278 than the "else" value.
4279 (vect_analyze_stmt): Update call accordingly.
4280 (vect_transform_stmt): Likewise.
4281 * tree-vect-loop.c (vectorizable_reduction): Likewise,
4282 asserting that the index is > 0.
4284 2019-09-19 Martin Liska <mliska@suse.cz>
4286 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
4287 (sort_congruence_classes_by_decl_uid): Likewise.
4288 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
4290 (sem_item_optimizer::merge_classes): Likewise.
4292 2019-09-19 Richard Biener <rguenther@suse.de>
4294 PR tree-optimization/91812
4295 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
4298 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4300 * defaults.h (TARGET_UNIT): New macro.
4301 (target_unit): New type.
4302 * rtl.h (native_encode_rtx, native_decode_rtx)
4303 (native_decode_vector_rtx, subreg_size_lsb): Declare.
4304 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
4305 * rtlanal.c (subreg_lsb_1): Delete.
4306 (subreg_size_lsb): New function.
4307 * simplify-rtx.c: Include rtx-vector-builder.h
4308 (simplify_immed_subreg): Delete.
4309 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
4310 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
4312 (simplify_subreg): Use them.
4313 (test_vector_subregs_modes, test_vector_subregs_repeating)
4314 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
4315 (test_vector_subregs): New functions.
4316 (test_vector_ops): Call test_vector_subregs for integer vector
4317 modes with at least 2 elements.
4319 2019-09-19 Richard Biener <rguenther@suse.de>
4321 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4322 LOOP_VINFO_OPERANDS_SWAPPED.
4323 (parloops_is_simple_reduction): Likewise.
4324 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4325 initialize operands_swapped.
4326 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4327 (vect_is_slp_reduction): Do not swap operands.
4328 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4329 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4331 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4334 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4335 Add avx_partial_xmm_update.
4337 2019-09-18 Jim Wilson <jimw@sifive.com>
4340 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4341 (riscv_move_integer): Likewise.
4342 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4343 riscv_move_integer arg.
4344 (riscv_legitimize_move): Likewise.
4345 (riscv_force_temporary): New parameter in_splitter. Don't call
4347 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4349 (riscv_add_offset): Likewise.
4350 (riscv_split_symbol): New parameter in_splitter. Pass to
4351 riscv_force_temporary.
4352 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4354 (riscv_move_integer): New parameter in_splitter. New local
4355 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4357 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4358 riscv_split_symbol, and riscv_force_temporary args.
4359 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4360 riscv_move_integer arg.
4361 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4363 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4366 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4367 hard register store cost to 6.
4369 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4372 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4373 pseudo register store cost from 3 to 6 to make it the same as
4376 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4379 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4380 (one_cmpldi2): Likewise.
4381 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4382 of the constant parts is simple.
4383 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4384 (logical_op): Add new code attribute.
4385 (logical_OP): Likewise.
4386 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4387 (arm_iordi_operand): Add predicate.
4388 (arm_xordi_operand): Add predicate.
4390 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4392 * config/arm/arm.md (maddsidi4): Remove expander.
4393 (mulsidi3adddi): Remove pattern.
4394 (mulsidi3adddi_v6): Likewise.
4395 (mulsidi3_nov6): Likewise.
4396 (mulsidi3_v6): Likewise.
4397 (umulsidi3): Remove expander.
4398 (umulsidi3_nov6): Remove pattern.
4399 (umulsidi3_v6): Likewise.
4400 (umulsidi3adddi): Likewise.
4401 (umulsidi3adddi_v6): Likewise.
4402 (<Us>mulsidi3): Add combined expander.
4403 (<Us>maddsidi4): Likewise.
4404 (<US>mull): Add combined umull and smull pattern.
4405 (<US>mlal): Likewise.
4406 * config/arm/iterators.md (Us): Add new iterator.
4408 2019-09-18 Richard Biener <rguenther@suse.de>
4410 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4412 (vectorize_fold_left_reduction): Remove assert.
4413 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4414 operand in position 2. Remove assert.
4416 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4418 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4419 (smulsi3_highpart_nov6): Remove pattern.
4420 (smulsi3_highpart_v6): Likewise.
4421 (umulsi3_highpart): Likewise.
4422 (umulsi3_highpart_nov6): Likewise.
4423 (umulsi3_highpart_v6): Likewise.
4424 (<US>mull_high): Add new combined multiply pattern.
4426 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4428 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4429 (arm_mulsi3_v6): Likewise.
4430 (mulsi3addsi_v6): Likewise.
4431 (mulsi3subsi): Likewise.
4432 (mul): Add new multiply pattern.
4436 2019-09-18 Richard Biener <rguenther@suse.de>
4438 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4439 (parloops_valid_reduction_input_p): Copy from
4440 valid_reduction_input_p.
4441 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4442 (parloops_needs_fold_left_reduction_p): Copy from
4443 needs_fold_left_reduction_p.
4444 (parloops_is_simple_reduction): Copy from
4445 vect_is_simple_reduction.
4446 (parloops_force_simple_reduction): Copy from
4447 vect_force_simple_reduction.
4448 (gather_scalar_reductions): Adjust.
4449 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4450 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4452 2019-09-18 Richard Biener <rguenther@suse.de>
4454 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4455 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4457 (vect_create_epilog_for_reduction): Remove dead code.
4459 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4461 * varasm.c (assemble_real): Generate canonical const_ints.
4463 2019-09-18 Richard Biener <rguenther@suse.de>
4466 * lto-streamer-in.c (input_eh_regions): Move EH init to
4467 lto_materialize_function.
4468 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4471 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4473 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4476 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4478 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4479 of checking specifically for INTEGER_CST.
4481 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4483 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4484 sizes instead of uhwi sizes.
4486 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4488 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4489 (add_const_value_attribute): Handle CONST_POLY_INT.
4491 2019-09-18 Martin Liska <mliska@suse.cz>
4493 * dbgcnt.def (store_merging): New counter.
4494 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4495 Use it in store merging.
4497 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4499 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4501 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4502 * config/arm/arm.c (arm_sched_variable_issue): New function.
4503 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4505 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4507 * config/arm/types.md (no_reservation): New reservation.
4508 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4510 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4511 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4512 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4513 * config/arm/arm1020e.md (1020alu_op): Likewise.
4514 * config/arm/arm1026ejs.md (alu_op): Likewise.
4515 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4516 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4517 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4518 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4519 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4520 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4521 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4522 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4523 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4524 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4525 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4526 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4527 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4528 * config/arm/fa526.md (526_alu_op): Likewise.
4529 * config/arm/fa606te.md (606te_alu_op): Likewise.
4530 * config/arm/fa626te.md (626te_alu_op): Likewise.
4531 * config/arm/fa726te.md (726te_alu_op): Likewise.
4532 * config/arm/xgene1.md (xgene1_nop): Likewise.
4534 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4536 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4537 "no_insn" to "branch".
4539 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4541 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4543 2019-09-17 Richard Biener <rguenther@suse.de>
4546 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4547 was missing generate locations only once.
4549 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4552 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4554 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4555 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4556 for switch default case using range analysis information.
4558 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4561 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4562 mode attributed is supported by FDPIC.
4564 2019-09-17 Richard Biener <rguenther@suse.de>
4566 PR tree-optimization/91790
4567 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4568 use the correct DR for setting up realignment.
4570 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4573 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4574 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4575 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4576 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4578 2019-09-16 Jason Merrill <jason@redhat.com>
4580 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4582 2019-09-16 Martin Liska <mliska@suse.cz>
4584 * gimple-fold.c (or_comparisons_1): Remove rules moved
4586 * match.pd: ... here.
4588 2019-09-16 Martin Liska <mliska@suse.cz>
4590 * gimple-fold.c (or_comparisons_1): Remove rules
4592 * match.pd: ... here.
4594 2019-09-16 Martin Liska <mliska@suse.cz>
4596 * genmatch.c (dt_node::append_simplify): Do not print
4597 warning when we have duplicate patterns belonging
4598 to a same simplify rule.
4599 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4600 (maybe_fold_comparisons_from_match_pd): Handle
4601 tcc_comparison as a results.
4602 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4604 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4605 Qi Feng <ffengqi@linux.ibm.com>
4608 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4609 (x > y && x == XXX_MIN): Optimize into 'false'.
4610 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4611 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4612 (x < y && x == XXX_MAX): Optimize into 'false'.
4613 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4614 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4615 (x <= y || x != XXX_MIN): Optimize into 'true'.
4616 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4617 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4618 (x >= y || x != XXX_MAX): Optimize into 'true'.
4619 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4621 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4622 Martin Liska <mliska@suse.cz>
4624 * gimple-fold.c (and_comparisons_1): Add type as first
4626 (and_var_with_comparison): Likewise.
4627 (and_var_with_comparison_1): Likewise.
4628 (or_comparisons_1): Likewise.
4629 (or_var_with_comparison): Likewise.
4630 (or_var_with_comparison_1): Likewise.
4631 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4632 (maybe_fold_or_comparisons): Likewise.
4633 (maybe_fold_comparisons_from_match_pd): New.
4634 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4635 (maybe_fold_or_comparisons): Likewise.
4636 * gimple.c (gimple_size): Make it public and add num_ops argument.
4637 (gimple_init): New function.
4638 (gimple_alloc): Call gimple_init.
4639 * gimple.h (gimple_size): New.
4640 (gimple_init): Likewise.
4641 * tree-if-conv.c (fold_or_predicates): Pass type.
4642 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4643 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4644 (optimize_vec_cond_expr): Likewise.
4645 (ovce_extract_ops): Return type of conditional expression.
4646 * tree-ssanames.c (init_ssa_name_imm_use): New.
4647 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4648 * tree-ssanames.h (init_ssa_name_imm_use): New.
4650 2019-09-16 Richard Biener <rguenther@suse.de>
4652 PR tree-optimization/91756
4653 PR tree-optimization/87132
4654 * tree-ssa-alias.h (enum translate_flags): New.
4655 (get_continuation_for_phi): Use it instead of simple bool flag.
4656 (walk_non_aliased_vuses): Likewise.
4657 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4658 (get_continuation_for_phi): When looking across backedges only
4659 disallow valueization.
4660 (walk_non_aliased_vuses): Adjust.
4661 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4664 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4667 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4668 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4669 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4670 * target.def (have_count_reg_decr_p): New hook.
4671 (doloop_cost_for_generic): Likewise.
4672 (doloop_cost_for_address): Likewise.
4673 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4674 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4675 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4676 * doc/tm.texi: Regenerate.
4677 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4679 (record_group): Init doloop_p.
4680 (add_candidate_1): Add optional argument doloop, change the handlings
4682 (add_candidate): Likewise.
4683 (generic_predict_doloop_p): Update attribute.
4684 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4685 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4686 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4688 (get_computation_cost): Update for doloop IV cand extra cost.
4689 (determine_group_iv_cost_cond): Update for doloop IV cand.
4690 (determine_iv_cost): Likewise.
4691 (ivopts_estimate_reg_pressure): Likewise.
4692 (may_eliminate_iv): Update handlings for doloop IV cand.
4693 (add_iv_candidate_for_doloop): New function.
4694 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4695 (iv_ca_set_no_cp): Update for doloop IV cand.
4696 (iv_ca_set_cp): Likewise.
4697 (iv_ca_dump): Dump register cost.
4698 (find_doloop_use): New function.
4699 (analyze_and_mark_doloop_use): Likewise.
4700 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4702 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4705 * cse.c (cse_insn): Do not replace anything with a
4708 2019-09-13 Ian Lance Taylor <iant@golang.org>
4710 * doc/invoke.texi (Optimize Options): Fix typo.
4712 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4714 PR tree-optimization/89386
4715 * config/i386/sse.md (smulhrs<mode>3): New expander.
4716 (smulhrsv4hi3): Ditto.
4718 2019-09-12 Richard Biener <rguenther@suse.de>
4720 PR tree-optimization/91750
4721 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4722 in the type of the evolution.
4724 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4726 PR tree-optimization/89386
4727 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4728 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4729 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4730 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4731 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4732 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4733 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4734 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4735 (su, r): Handle the unspecs above.
4736 (bt): New int attribute.
4737 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4738 * internal-fn.c (first_commutative_argument): Commutativity info for
4740 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4741 (umulhrs_optab): New optabs.
4742 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4743 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4744 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4746 (vect_vect_recog_func_ptrs): Add it.
4748 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4750 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4753 2019-09-11 Nathan Sidwell <nathan@acm.org>
4755 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4756 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4758 2019-09-11 Richard Biener <rguenther@suse.de>
4760 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4761 * lto-wrapper.c (merge_and_complain): Pick up -g.
4762 (append_compiler_options): Likewise.
4763 (run_gcc): Re-instantiate handling -g0 at link-time.
4764 * doc/invoke.texi (flto): Document debug info generation.
4766 2019-09-11 Richard Biener <rguenther@suse.de>
4768 PR tree-optimization/90387
4769 * vr-values.c (vr_values::extract_range_basic): After inlining
4770 simplify non-constant __builtin_constant_p to false.
4772 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4774 PR rtl-optimization/89795
4775 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4776 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4778 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4780 PR tree-optimization/91723
4781 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4782 instead of pointer equality when checking if argument vectypes are
4786 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4787 of get_nonzero_bits, only call it for integral types.
4789 2019-09-11 Richard Biener <rguenther@suse.de>
4792 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4794 * match.pd: Add flag_unsafe_math_optimizations check
4795 before deciding on the widest type in a binary math operation.
4797 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4799 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4800 and CALL_REALLY_USED_REGISTERS must be defined, and that
4801 CALL_REALLY_USED_REGISTERS is preferred.
4802 * doc/tm.texi: Regenerate.
4803 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4804 (call_really_used_regs): Likewise.
4805 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4806 CALL_REALLY_USED_REGISTERS are defined.
4807 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4808 initial value if defined.
4809 (initial_call_really_used_regs): Delete.
4810 (saved_call_really_used_regs): Likewise.
4811 (CALL_REALLY_USED_REGNO_P): Likewise.
4812 (init_reg_sets): Remove handling of call_really_used_regs.
4813 (save_register_info, restore_register_info, globalize_reg): Likewise.
4814 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4815 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4816 outside operand_reg_set.
4817 (fix_register): Don't change call_used_regs if
4818 CALL_REALLY_USED_REGISTERS is defined.
4819 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4820 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4821 instead of call_really_used_regs.
4822 (csky_conditional_register_usage): Remove the old handling of
4823 call_used_regs and change the handling of call_really_used_regs
4824 to use call_used_regs instead.
4825 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4826 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4827 making a register fixed.
4828 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4829 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4830 instead of call_really_used_regs.
4831 (m32r_conditional_register_usage): Don't set call_used_regs when
4832 making a register fixed.
4833 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4834 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4835 instead of call_really_used_regs.
4836 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4837 (mips_cfun_call_saved_reg_p): Likewise.
4838 (mips_swap_registers): Remove the old handling of call_used_regs
4839 and change the handling of call_really_used_regs to use call_used_regs
4841 (mips_conditional_register_usage): Likewise.
4842 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4843 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4844 instead of call_really_used_regs.
4845 (mn10300_get_live_callee_saved_regs): Likewise.
4846 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4847 (mn10300_conditional_register_usage): Don't set call_used_regs when
4848 making a register fixed.
4849 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4850 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4851 Remove the old handling of call_used_regs and change the handling
4852 of call_really_used_regs to use call_used_regs instead.
4853 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4854 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4855 instead of call_really_used_regs.
4856 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4857 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4858 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4859 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4860 (s390_conditional_register_usage): Remove the old handling of
4861 call_used_regs and change the handling of call_really_used_regs
4862 to use call_used_regs instead.
4863 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4864 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4865 (sh_fix_range, reg_unused_after): Likewise.
4866 (sh_conditional_register_usage): Remove the old handling of
4867 call_used_regs and change the handling of call_really_used_regs
4868 to use call_used_regs instead.
4869 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4870 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4871 call_used_regs when making a register fixed.
4872 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4873 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4874 call_used_regs when making a register fixed.
4875 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4876 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4877 set call_used_regs when making a register fixed.
4878 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4879 * config/visium/visium.c (visium_conditional_register_usage): Remove
4880 the old handling of call_used_regs and change the handling of
4881 call_really_used_regs to use call_used_regs instead.
4883 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4885 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4886 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4887 * reginfo.c (call_used_regs): New macro.
4889 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4891 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4893 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4894 (bpf_expand_epilogue): Likewise.
4895 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4896 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4897 (ft32_expand_epilogue): Likewise.
4898 * config/i386/i386.c (ix86_save_reg): Likewise.
4899 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4900 (moxie_expand_epilogue): Likewise.
4901 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4902 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4903 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4905 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4907 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4908 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4909 instead of testing call_used_regs directly.
4910 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4911 (aarch64_components_for_bb): Likewise.
4912 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4913 * config/arc/arc.c (arc_must_save_register): Likewise.
4914 (arc_epilogue_uses): Likewise.
4915 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4916 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4917 (arm_compute_save_reg0_reg12_mask): Likewise.
4918 (arm_compute_save_core_reg_mask): Likewise.
4919 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4920 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4921 (cmse_nonsecure_entry_clear_before_return): Likewise.
4922 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4923 (arm_expand_epilogue): Likewise.
4924 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4925 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4926 (_reg_unused_after): Likewise.
4927 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4928 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4929 (add_to_reg, hwloop_optimize): Likewise.
4930 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4931 (bpf_expand_epilogue): Likewise.
4932 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4933 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4934 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4935 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4936 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4937 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4938 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4939 * config/frv/frv.c (frv_stack_info): Likewise.
4940 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4941 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4942 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4943 (move_callee_saved_registers): Likewise.
4944 * config/h8300/h8300.c (byte_reg): Likewise.
4945 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4946 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4947 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4948 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4949 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4950 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4951 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4952 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4953 * config/m32c/m32c.c (need_to_save): Likewise.
4954 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4955 * config/mcore/mcore.c (calc_live_regs): Likewise.
4956 * config/microblaze/microblaze.c (microblaze_must_save_register):
4958 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4959 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4960 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4961 (mmix_expand_epilogue): Likewise.
4962 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4963 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4964 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4965 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4966 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4967 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4968 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4969 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4970 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4971 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4972 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4973 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4974 * config/rl78/rl78.c (need_to_save): Likewise.
4975 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4976 (rs6000_stack_info, generate_set_vrsave): Likewise.
4977 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4978 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4979 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4980 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4981 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4982 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4983 (save_local_or_in_reg_p): Likewise.
4984 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4985 (xstormy16_epilogue_uses): Likewise.
4986 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4987 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4988 * config/v850/v850.c (compute_register_save_size): Likewise.
4989 * config/vax/vax.c (vax_expand_prologue): Likewise.
4990 * config/visium/visium.c (visium_save_reg_p): Likewise.
4991 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4992 * cselib.c (cselib_process_insn): Likewise.
4993 * df-scan.c (df_get_entry_block_def_set): Likewise.
4994 * function.c (aggregate_value_p): Likewise.
4995 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4996 * ira-lives.c (process_bb_node_lives): Likewise.
4997 * ira.c (do_reload): Likewise.
4998 * lra-lives.c (process_bb_lives): Likewise.
4999 * lra-remat.c (lra_remat): Likewise.
5000 * lra.c (lra): Likewise.
5001 * postreload.c (reload_combine_recognize_pattern): Likewise.
5002 (reload_cse_move2add): Likewise.
5003 * recog.c (peep2_find_free_register): Likewise.
5004 * regrename.c (check_new_reg_p): Likewise.
5005 * reload.c (find_equiv_reg): Likewise.
5006 * reload1.c (reload, find_reg): Likewise.
5007 * sel-sched.c (init_hard_regs_data): Likewise.
5009 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5011 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
5012 regs_invalidated_by_call & ~fixed_reg_set instead of
5013 call_used_or_fixed_regs & ~fixed_reg_set.
5014 * config/sh/sh.c (output_stack_adjust): Likewise.
5016 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5018 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
5019 (call_used_reg_set): Delete.
5020 (call_used_or_fixed_regs): New macro.
5021 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
5022 of call_used_reg_set.
5023 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
5024 instead of call_used_regs.
5025 (save_call_clobbered_regs): Likewise.
5026 * cfgcleanup.c (old_insns_match_p): Likewise.
5027 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
5028 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5030 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5031 * config/sh/sh.c (output_stack_adjust): Likewise.
5032 * final.c (collect_fn_hard_reg_usage): Likewise.
5033 * ira-build.c (ira_build): Likewise.
5034 * ira-color.c (calculate_saved_nregs): Likewise.
5035 (allocno_reload_assign, calculate_spill_cost): Likewise.
5036 * ira-conflicts.c (ira_build_conflicts): Likewise.
5037 * ira-costs.c (ira_tune_allocno_costs): Likewise.
5038 * ira-lives.c (process_bb_node_lives): Likewise.
5039 * ira.c (setup_reg_renumber): Likewise.
5040 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
5041 * lra-constraints.c (need_for_call_save_p): Likewise.
5042 (need_for_split_p, inherit_in_ebb): Likewise.
5043 * lra-lives.c (process_bb_lives): Likewise.
5044 * lra-remat.c (call_used_input_regno_present_p): Likewise.
5045 * postreload.c (reload_combine): Likewise.
5046 * regrename.c (find_rename_reg): Likewise.
5047 * reload1.c (reload_as_needed): Likewise.
5048 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5049 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5050 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5052 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5054 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
5055 (no_caller_save_reg_set): Delete.
5056 * caller-save.c (init_caller_save): Don't initialize it.
5057 * ira-conflicts.c (ira_build_conflicts): Calculate
5058 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
5060 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5062 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
5063 (target_hard_regs::x_savable_regs): New field.
5064 (call_fixed_reg_set): Delete.
5065 (savable_regs): New macro,
5066 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
5067 (init_reg_sets_1): Likewise. Initialize savable_regs.
5068 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
5069 for all registers. Set savable_regs instead of call_fixed_reg_set.
5070 (setup_save_areas, save_call_clobbered_regs): Replace uses of
5071 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
5072 * config/sh/sh.c (output_stack_adjust): Likewise.
5074 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5076 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
5077 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
5078 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
5080 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5082 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
5083 * rtlanal.c (get_call_rtx_from): Likewise.
5084 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
5085 than the pattern to get_call_rtx_from.
5086 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
5087 an rtx_insn * instead of an rtx.
5088 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
5090 2019-09-10 Martin Liska <mliska@suse.cz>
5092 * common.opt: Use newly added WarnRemoved.
5093 * config/aarch64/aarch64.opt: Likewise.
5094 * config/arm/arm.opt: Likewise.
5095 * config/i386/i386.opt: Likewise.
5096 * config/ia64/ia64.opt: Likewise.
5097 * config/rs6000/rs6000.opt: Likewise.
5098 * doc/options.texi: Document WarnRemoved properly.
5099 * dwarf2out.c (gen_producer_string): Handle renamed
5100 OPT_SPECIAL_warn_removed.
5101 * lto-opts.c (lto_write_options): Likewise.
5102 * lto-wrapper.c (merge_and_complain): Likewise.
5103 * opts-common.c (decode_cmdline_option): Likewise.
5104 (prune_options): Likewise.
5105 (read_cmdline_option): Likewise.
5106 (control_warning_option): Likewise.
5107 * opts.c (print_filtered_help): Likewise.
5108 * optc-gen.awk: Parse for WarnRemoved and make usage
5109 of Deprecated an error.
5110 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
5112 2019-09-10 Arnaud Charlet <charlet@adacore.com>
5114 * doc/install.texi: Fix syntax for html generation.
5116 2019-09-10 Jakub Jelinek <jakub@redhat.com>
5119 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
5120 the shift type to type.
5122 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5124 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
5126 (stack_protect_combined_test_insn): Likewise.
5128 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5129 Mickaël Guêné <mickael.guene@st.com>
5131 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
5132 * config/arm/arm.md (FDPIC_REGNUM): New constant.
5133 (load_tp_soft_fdpic): New pattern.
5134 (load_tp_soft): Disable in FDPIC mode.
5136 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5137 Mickaël Guêné <mickael.guene@st.com>
5139 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
5140 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
5141 (arm_call_tls_get_addr): Add FDPIC support.
5142 (legitimize_tls_address): Likewise.
5143 (arm_emit_tls_decoration): Likewise.
5145 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5146 Mickaël Guêné <mickael.guene@st.com>
5148 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
5150 (arm_trampoline_init): Likewise.
5151 (arm_trampoline_adjust_address): Likewise.
5152 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
5154 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5155 Mickaël Guêné <mickael.guene@st.com>
5157 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
5158 (legitimize_pic_address): Enforce binding rules on function
5159 pointers in FDPIC mode.
5160 (arm_assemble_integer): Likewise.
5162 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5163 Mickaël Guêné <mickael.guene@st.com>
5165 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
5166 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
5169 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5170 Mickaël Guêné <mickael.guene@st.com>
5172 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
5175 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5176 Mickaël Guêné <mickael.guene@st.com>
5178 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
5180 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
5182 * config/arm/arm.c (arm_option_override): Define pic register to
5184 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
5185 have no decl or go through PLT.
5186 (calculate_pic_address_constant): New function.
5187 (legitimize_pic_address): Call calculate_pic_address_constant.
5188 (arm_load_pic_register): Handle TARGET_FDPIC.
5189 (arm_is_segment_info_known): New function.
5190 (arm_pic_static_addr): Add support for FDPIC.
5191 (arm_load_function_descriptor): New function.
5192 (arm_emit_call_insn): Add support for FDPIC.
5193 (arm_assemble_integer): Add support for FDPIC.
5194 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
5195 Define. (FDPIC_REGNUM): New define.
5196 * config/arm/arm.md (call): Add support for FDPIC.
5197 (call_value): Likewise.
5198 (restore_pic_register_after_call): New pattern.
5199 (untyped_call): Disable if FDPIC.
5200 (untyped_return): Likewise.
5201 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
5203 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5204 Mickaël Guêné <mickael.guene@st.com>
5206 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
5207 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
5208 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
5209 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
5210 (CC1_SPEC): Use FDPIC_CC1_SPEC.
5211 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
5212 * config/arm/uclinuxfdpiceabi.h: New file.
5214 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5216 * config.gcc: Handle *-*-uclinuxfdpiceabi.
5218 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5219 Mickaël Guêné <mickael.guene@st.com>
5221 * config/arm/arm.opt: Add -mfdpic option.
5222 * doc/invoke.texi: Add documentation for -mfdpic.
5224 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5226 * expmed.c (extract_bit_field): Update function comment
5228 * expr.c (expand_expr_real): Update function comment
5230 (expand_misaligned_mem_ref): New helper function.
5231 (expand_expr_real_2): Use expand_misaligned_mem_ref.
5232 Remove duplicate assignment to "base" at case MEM_REF.
5233 Remove a shadowed variable "unsignedp" at case VCE.
5235 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5237 * regset.h (regs_invalidated_by_call_regset): Delete.
5238 (fixed_reg_set_regset): Likewise.
5239 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
5240 (fixed_reg_set_regset, persistent_obstack): Likewise.
5241 (init_reg_sets_1, globalize_reg): Update accordingly.
5242 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
5243 instead of a bitmap.
5244 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
5245 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
5246 instead of regs_invalidated_by_call_regset.
5247 (df_lr_confluence_n, df_md_confluence_n): Likewise.
5248 * df-scan.c (df_scan_start_dump): Likewise.
5249 * dse.c (copy_fixed_regs): Likewise.
5250 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
5252 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5254 * array-traits.h: New file.
5255 * coretypes.h (array_traits, bitmap_view): New types.
5256 * bitmap.h: Include "array-traits.h"
5257 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5258 (base_bitmap_view, bitmap_view): New classes.
5259 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5260 * hard-reg-set.h: Include array-traits.h.
5261 (array_traits<HARD_REG_SET>): New struct.
5262 * regset.h (IOR_REG_SET_HRS): New macro.
5263 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
5264 rather than iterating over each hard register.
5265 * sched-deps.c (sched_analyze_insn): Likewise.
5266 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
5268 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5270 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
5271 instead of a HARD_REG_SET *.
5272 * ira-build.c (ior_hard_reg_conflicts): Likewise.
5273 (ira_build): Update call accordingly.
5274 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
5276 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5278 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
5279 (HARD_REG_SET::operator!=): Likewise.
5280 (hard_reg_set_equal_p): Delete.
5281 * cfgcleanup.c (old_insns_match_p): Use == instead of
5282 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
5283 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
5284 (add_allocno_hard_regs_to_forest): Likewise.
5285 (setup_allocno_available_regs_num): Likewise.
5286 * ira.c (setup_pressure_classes): Likewise.
5287 (setup_allocno_and_important_classes): Likewise.
5288 (setup_reg_class_relations): Likewise.
5289 * lra-lives.c (process_bb_lives): Likewise.
5290 * reg-stack.c (change_stack, convert_regs_1): Likewise.
5292 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5294 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
5295 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5296 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
5297 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
5299 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
5300 * ira.c (setup_reg_renumber): Likewise.
5301 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5302 * regrename.c (regrename_find_superclass): Likewise.
5303 * reload1.c (find_reg): Likewise.
5305 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5307 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
5308 * caller-save.c (setup_save_areas): Use "&~" instead of
5309 AND_COMPL_HARD_REG_SET.
5310 (save_call_clobbered_regs): Likewise.
5311 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5313 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5314 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5315 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
5316 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5317 (mips_conditional_register_usage): Likewise.
5318 * config/sh/sh.c (output_stack_adjust): Likewise.
5319 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5320 (setup_profitable_hard_regs): Likewise.
5321 (get_conflict_and_start_profitable_regs): Likewise.
5322 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5323 (ira_build_conflicts): Likewise.
5324 * ira-costs.c (restrict_cost_classes): Likewise.
5325 (setup_regno_cost_classes_by_aclass): Likewise.
5326 * ira-lives.c (process_bb_node_lives): Likewise.
5327 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5328 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5329 (setup_allocno_and_important_classes, setup_class_translate_array)
5330 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5332 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5333 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5334 (process_alt_operands, inherit_in_ebb): Likewise.
5335 * lra-eliminations.c (update_reg_eliminate): Likewise.
5336 * lra-lives.c (process_bb_lives): Likewise.
5337 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5338 * resource.c (find_dead_or_set_registers): Likewise.
5339 (mark_target_live_regs): Likewise.
5340 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5341 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5342 (implicit_clobber_conflict_p): Likewise.
5343 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5344 (try_shrink_wrapping): Likewise.
5346 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5348 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5349 (HARD_REG_SET::operator|=): Likewise.
5350 (IOR_HARD_REG_SET): Delete.
5351 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5353 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5354 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5355 * final.c (collect_fn_hard_reg_usage): Likewise.
5356 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5357 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5358 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5359 (propagate_some_info_from_allocno): Likewise.
5360 (copy_info_to_removed_store_destinations): Likewise.
5361 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5362 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5363 (fast_allocation): Likewise.
5364 * ira-conflicts.c (ira_build_conflicts): Likewise.
5365 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5366 (process_bb_node_lives): Likewise.
5367 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5368 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5369 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5370 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5371 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5372 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5373 (process_bb_lives): Likewise.
5374 * lra-spills.c (assign_spill_hard_regs): Likewise.
5375 * postreload.c (reload_combine): Likewise.
5376 * reginfo.c (init_reg_sets_1): Likewise.
5377 * regrename.c (merge_overlapping_regs, find_rename_reg)
5378 (merge_chains): Likewise.
5379 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5380 (find_reload_regs, finish_spills, choose_reload_regs_init)
5381 (emit_reload_insns): Likewise.
5382 * reorg.c (redundant_insn): Likewise.
5383 * resource.c (find_dead_or_set_registers, mark_set_resources)
5384 (mark_target_live_regs): Likewise.
5385 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5386 * sched-deps.c (sched_analyze_insn): Likewise.
5387 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5388 (find_best_reg_for_expr): Likewise.
5389 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5391 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5393 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5394 (HARD_REG_SET::operator&): Likewise.
5395 (AND_HARD_REG_SET): Delete.
5396 * caller-save.c (setup_save_areas): Use "&" instead of
5398 (save_call_clobbered_regs): Likewise.
5399 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5400 * config/m32c/m32c.c (reduce_class): Likewise.
5401 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5402 * final.c (get_call_reg_set_usage): Likewise.
5403 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5404 (setup_left_conflict_sizes_p): Likewise.
5405 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5406 (ira_build_conflicts): Likewise.
5407 * ira-costs.c (restrict_cost_classes): Likewise.
5408 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5409 (setup_reg_class_relations): Likewise.
5410 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5411 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5412 * resource.c (find_dead_or_set_registers): Likewise.
5413 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5415 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5417 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5418 (COMPL_HARD_REG_SET): Delete.
5419 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5420 of COMPL_HARD_REG_SET.
5421 (try_rename_operands): Likewise.
5422 * config/sh/sh.c (push_regs): Likewise.
5423 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5424 * lra-constraints.c (contains_reg_p): Likewise.
5425 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5427 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5429 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5430 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5431 of COPY_HARD_REG_SET.
5432 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5433 (epiphany_conditional_register_usage): Likewise.
5434 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5435 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5436 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5437 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5438 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5439 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5440 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5441 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5442 * config/sh/sh.c (output_stack_adjust): Likewise.
5443 * final.c (collect_fn_hard_reg_usage): Likewise.
5444 (get_call_reg_set_usage): Likewise.
5445 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5446 (ira_flattening): Likewise.
5447 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5448 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5449 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5450 (ira_reassign_pseudos): Likewise.
5451 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5452 (ira_build_conflicts): Likewise.
5453 * ira-costs.c (restrict_cost_classes): Likewise.
5454 (setup_regno_cost_classes_by_aclass): Likewise.
5455 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5456 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5457 (setup_stack_reg_pressure_class, setup_pressure_classes)
5458 (setup_allocno_and_important_classes, setup_class_translate_array)
5459 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5460 (ira_setup_eliminable_regset): Likewise.
5461 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5462 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5463 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5464 (process_alt_operands, inherit_in_ebb): Likewise.
5465 * lra-lives.c (process_bb_lives): Likewise.
5466 * lra-spills.c (assign_spill_hard_regs): Likewise.
5467 * lra.c (lra): Likewise.
5468 * mode-switching.c (new_seginfo): Likewise.
5469 * postreload.c (reload_combine): Likewise.
5470 * reg-stack.c (straighten_stack): Likewise.
5471 * reginfo.c (save_register_info, restore_register_info): Likewise.
5472 (init_reg_sets_1, record_subregs_of_mode): Likewise
5473 * regrename.c (create_new_chain, rename_chains): Likewise.
5474 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5475 (find_reload_regs): Likewise.
5476 * resource.c (find_dead_or_set_registers): Likewise.
5477 (mark_target_live_regs): Likewise.
5478 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5480 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5482 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5483 (note_pattern_stores): Declare.
5484 (note_stores): Take an rtx_insn *.
5485 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5486 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5487 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5488 (note_stores): Take an rtx_insn * as argument and process
5489 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5490 (note_pattern_stores): ...this.
5491 (find_first_parameter_load): Pass the insn rather than
5492 its pattern to note_stores.
5493 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5494 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5495 (insert_one_insn): Likewise.
5496 * combine.c (combine_instructions): Likewise.
5497 (likely_spilled_retval_p): Likewise.
5498 (try_combine): Use note_pattern_stores instead of note_stores.
5499 (record_dead_and_set_regs): Pass the insn rather than its pattern
5501 (reg_dead_at_p): Likewise.
5502 * config/bfin/bfin.c (workaround_speculation): Likewise.
5503 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5505 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5506 instead of note_stores.
5507 (frv_optimize_membar_local): Pass the insn rather than its pattern
5509 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5510 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5511 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5512 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5513 (mips_reorg_process_insns): Likewise.
5514 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5515 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5517 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5518 its pattern to note_stores.
5519 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5521 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5522 the insn to note_stores.
5523 (prescan_insns_for_dce): Update call accordingly.
5524 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5526 * df-problems.c (can_move_insns_across): Likewise.
5527 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5528 * function.c (assign_parm_setup_reg): Likewise.
5529 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5530 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5531 (single_set_gcse): Likewise.
5532 * ira.c (validate_equiv_mem): Likewise.
5533 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5535 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5536 pattern to note_stores.
5537 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5538 * loop-iv.c (simplify_using_initial_values): Likewise.
5539 * mode-switching.c (optimize_mode_switching): Likewise.
5540 * optabs.c (emit_libcall_block_1): Likewise.
5541 (expand_atomic_compare_and_swap): Likewise.
5542 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5543 (record_opr_changes): Likewise. Remove explicit handling of
5544 CALL_INSN_FUNCTION_USAGE.
5545 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5546 * regcprop.c (kill_clobbered_values): Likewise.
5547 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5549 * regrename.c (build_def_use): Likewise.
5550 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5551 for mark_not_eliminable.
5552 (reload_as_needed): Pass the insn rather than its pattern
5554 (emit_output_reload_insns): Likewise.
5555 * resource.c (mark_target_live_regs): Likewise.
5556 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5557 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5558 instead of note_stores.
5559 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5560 its pattern to note_stores.
5561 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5562 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5564 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5566 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5567 than a #define. Use a structure rather than an array as the
5568 fallback definition. Remove special cases for low array sizes.
5569 (const_hard_reg_set): New typedef.
5570 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5571 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5572 (hard_reg_set_empty_p): Likewise.
5573 (SET_HARD_REG_BIT): Use a function rather than a macro to
5574 handle the case in which HARD_REG_SET is a structure.
5575 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5576 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5577 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5578 (IOR_COMPL_HARD_REG_SET): Likewise.
5579 (hard_reg_set_iterator::pset): Constify the pointer target.
5580 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5581 of a "const HARD_REG_SET". Update the handling of non-integer
5583 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5584 * reload.h: Likewise.
5585 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5586 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5587 of a "const HARD_REG_SET".
5588 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5589 (range_in_hard_reg_set_p): Likewise.
5590 * ira-costs.c (restrict_cost_classes): Likewise.
5591 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5592 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5593 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5594 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5595 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5596 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5597 take an unsigned int and open-code the HARD_REG_SET operations.
5599 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5601 * Makefile.in (OBJS): Remove bt-load.o.
5602 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5603 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5604 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5605 document that the option no longer does anything.
5606 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5607 * target.def (branch_target_register_class): Delete.
5608 (branch_target_register_callee_saved): Likewise.
5609 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5610 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5611 * doc/tm.texi: Regenerate.
5612 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5613 (make_pass_branch_target_load_optimize2): Likewise.
5614 * passes.def (pass_branch_target_load_optimize1): Likewise.
5615 (pass_branch_target_load_optimize2): Likewise.
5616 * targhooks.h (default_branch_target_register_class): Likewise.
5617 * targhooks.c (default_branch_target_register_class): Likewise.
5618 * opt-suggestions.c (test_completion_valid_options): Remove
5619 -fbtr-bb-exclusive from the list of test options.
5620 * bt-load.c: Remove.
5622 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5624 * match.pd: Add flag_unsafe_math_optimizations check
5625 before deciding on the widest type in a binary math operation.
5627 2019-09-09 Martin Liska <mliska@suse.cz>
5629 * config/i386/i386.opt: Update comment of removed
5630 options that are preserved only for backward
5633 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5636 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5640 * config/i386/avxintrin.h (__v32qs): New typedef.
5641 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5644 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5646 * doc/invoke.texi (Option Summary): Cover eBPF.
5647 (eBPF Options): New section.
5648 * doc/extend.texi (BPF Built-in Functions): Likewise.
5649 (BPF Kernel Helpers): Likewise.
5651 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5653 * config.gcc: Support for bpf-*-* targets.
5654 * common/config/bpf/bpf-common.c: New file.
5655 * config/bpf/t-bpf: Likewise.
5656 * config/bpf/predicates.md: Likewise.
5657 * config/bpf/constraints.md: Likewise.
5658 * config/bpf/bpf.opt: Likewise.
5659 * config/bpf/bpf.md: Likewise.
5660 * config/bpf/bpf.h: Likewise.
5661 * config/bpf/bpf.c: Likewise.
5662 * config/bpf/bpf-protos.h: Likewise.
5663 * config/bpf/bpf-opts.h: Likewise.
5664 * config/bpf/bpf-helpers.h: Likewise.
5665 * config/bpf/bpf-helpers.def: Likewise.
5667 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5669 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5672 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5674 * opt-functions.awk (integer_range_info): Make sure values are in
5675 numeric context before operating with them.
5677 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5679 * genemit.c (gen_split): Print the filename and line number where the
5680 splitter (or peephole2) was defined, to the dump file.
5682 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5684 PR tree-optimization/91665
5685 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5686 incompatible with the type of PHI result.
5688 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5691 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5692 gen_unaligned_storedi for 4-byte aligned addresses.
5694 2019-09-06 Jim Wilson <jimw@sifive.com>
5696 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5699 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5701 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5703 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5705 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5706 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5708 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5711 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5712 cost of SSE->integer and integer->SSE moves from 2 to 6.
5715 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5717 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5718 before testing TYPE_TRANSPARENT_AGGR.
5719 * calls.c (initialize_argument_information, load_register_parameters):
5722 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5724 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5726 (cmp_ior): Likewise.
5728 2019-09-06 Martin Liska <mliska@suse.cz>
5730 * doc/match-and-simplify.texi: Separate tuples with ;.
5732 2019-09-06 Martin Liska <mliska@suse.cz>
5735 * Makefile.in: Remove tlink.o.
5736 * collect2.c (do_link): New function isolated
5739 * collect2.h (do_tlink): Remove declaration of do_tlink.
5740 * doc/extend.texi: Remove documentation of -frepo.
5741 * doc/invoke.texi: Likewise.
5742 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5745 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5746 Jim Wilson <jimw@sifive.com>
5749 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5750 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5751 paradoxical_subreg_p (operands[0]).
5752 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5753 use as intermediate value.
5755 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5757 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5758 (sync_compare_and_swap<mode>_insn): Likewise.
5760 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5763 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5764 without movmisalign optab.
5766 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5771 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5772 types, use type of their first field instead of type of
5775 2019-09-05 Richard Biener <rguenther@suse.de>
5777 PR rtl-optimization/91656
5778 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5781 2019-09-05 Richard Biener <rguenther@suse.de>
5784 * tree-inline.c (declare_return_variable): Mark the return
5785 slot as addressable after building an address of it.
5787 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5789 * doc/install.texi: Update and clarify requirements to build GNAT.
5791 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5794 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5795 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5796 call to be in memory.
5797 (pass_expand::execute): Call discover_nonconstant_array_refs before
5798 setting currently_expanding_to_rtl.
5800 2019-09-04 Caroline Tice <cmtice@google.com>
5802 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5805 2019-09-04 Marek Polacek <polacek@redhat.com>
5807 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5809 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5812 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5813 for QI and HImode moves between SSE and general registers.
5815 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5818 * doc/invoke.texi: Document -Wenum-conversion.
5820 2019-09-04 Richard Biener <rguenther@suse.de>
5822 PR rtl-optimization/36262
5823 * postreload-gcse.c: Include intl.h and gcse.h.
5824 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5825 to avoid linear list walk.
5826 (record_last_mem_set_info): Gate off if not computing transparentness.
5827 (get_bb_avail_insn): If transparentness isn't computed give up
5829 (gcse_after_reload_main): Skip compute_transp and extended PRE
5830 if gcse_or_cprop_is_too_expensive says so.
5832 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5834 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5836 (msp430_select_section): Handle decls with the "noinit" attribute with
5837 default_elf_select_section.
5838 Handle SECCAT_RODATA_MERGE_* section types with
5839 default_elf_select_section.
5840 Add comments about handling of unsupported section types.
5841 (msp430_section_type_flags): Remove handling of the noinit section.
5843 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5845 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5846 conflicting msp430-specific attributes.
5847 (msp430_section_attr): Likewise.
5848 Add warnings about conflicts with generic "noinit" and "section"
5850 Fix grammar in -mlarge error message.
5851 (msp430_data_attr): Rename to msp430_persist_attr.
5852 Add warnings about conflicts with generic "noinit" and "section"
5854 Add warning for when variable is not initialized.
5855 Chain conditionals which prevent the attribute being added.
5856 (ATTR_EXCL): New helper.
5857 (attr_reent_exclusions): New exclusion table.
5858 (attr_naked_exclusions): Likewise.
5859 (attr_crit_exclusions): Likewise.
5860 (attr_lower_exclusions): Likewise.
5861 (attr_upper_exclusions): Likewise.
5862 (attr_either_exclusions): Likewise.
5863 (attr_persist_exclusions): Likewise.
5864 (msp430_attribute_table): Update with exclusion rules.
5865 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5868 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5870 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5871 (msp430_handle_generic_attribute): New function.
5872 * doc/tm.texi: Regenerate.
5873 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5874 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5875 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5876 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5878 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5880 PR tree-optimization/91504
5881 * match.pd: Add ((~a & b) ^a) --> (a | b).
5883 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5886 * config/i386/i386-expand.c (split_double_mode): If there is more than
5887 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5888 already split matching MEM operand instead of calling adjust_address
5891 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5893 * config.gcc: Obsolete spu target. Remove references to spu.
5894 * configure.ac: Remove references to spu.
5895 * configure: Regenerate.
5896 * config/spu/: Remove directory.
5897 * common/config/spu/: Remove directory.
5899 * doc/extend.texi: Remove references to spu.
5900 * doc/invoke.texi: Likewise.
5901 * doc/md.texi: Likewise.
5902 * doc/sourcebuild.texi: Likewise.
5904 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5909 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5910 and SSA_NAME referring to CONSTANT_P correctly.
5912 2019-09-03 Richard Biener <rguenther@suse.de>
5914 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5915 (vn_nary_op_insert): Likewise.
5916 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5917 (vn_nary_op_lookup): Likewise.
5918 (vn_nary_op_insert): Likewise.
5920 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5922 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5923 (*op0, 1) instead of XEXP (*op1, 0).
5925 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5927 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5928 (aarch64_fjcvtzs): New define_insn.
5929 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5930 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5932 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5933 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5934 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5935 __ARM_FEATURE_JCVT where appropriate.
5936 * config/aarch64/arm_acle.h (__jcvt): Define.
5938 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5940 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5941 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5942 (aarch64_<frintnzs_op><mode>): New define_insn.
5943 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5944 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5945 __ARM_FEATURE_FRINT when appropriate.
5946 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5947 frint32x, frint64z, frint64x.
5948 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5949 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5950 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5951 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5952 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5953 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5954 * config/aarch64/iterators.md (VSFDF): Define.
5955 (FRINTNZX): Likewise.
5956 (frintnzs_op): Likewise.
5958 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5960 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5961 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5963 * config/aarch64/aarch64-tune.md: Regenerated.
5964 * doc/invoke.texi: Document the new processors.
5966 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5968 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5972 (sve2-sm4): Likewise.
5974 (svesha3): Likewise.
5975 (svebitperm): Likewise.
5977 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5978 Richard Biener <rguenther@suse.de>
5980 PR tree-optimization/91597
5981 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5982 BIT_AND_EXPR optimization for pointers, even if both operand
5983 ranges don't include NULL, the result can be NULL.
5985 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5988 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5989 (non_mem_decl_p): ...this.
5990 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5991 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5992 unconditionally as before.
5994 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5997 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5998 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5999 * tree.def (LTGT_EXPR): Likewise.
6000 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
6002 2019-09-02 Jakub Jelinek <jakub@redhat.com>
6005 * fold-const.c (range_check_type): For enumeral and boolean
6006 type, pass 1 to type_for_size langhook instead of
6007 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
6008 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
6009 (build_range_check): Don't call unsigned_type_for for pointer types.
6010 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
6011 range_check_type result.
6013 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6015 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
6016 (replace_ref): Do not replace a chain of only two candidates which are
6017 valid memory references.
6019 2019-09-02 Martin Liska <mliska@suse.cz>
6021 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
6022 Bail out when we'll end up with the same number of clusters as
6024 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
6025 (jump_table_cluster::can_be_handled): Remove the guard
6026 as it's already handled in ::is_enabled. Allocate output
6027 after early bail out.
6029 2019-09-02 Martin Liska <mliska@suse.cz>
6031 PR gcov-profile/91601
6032 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
6033 (path_contains_zero_or_negative_cycle_arc): ... this and handle
6034 also negative edges.
6035 (circuit): Handle also negative edges as they can happen
6038 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
6041 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
6042 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
6043 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
6045 2019-09-01 Jakub Jelinek <jakub@redhat.com>
6048 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
6049 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
6050 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
6054 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
6055 GIMPLE_ASM TREE_LIST operands.
6057 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6059 * doc/generic.texi (Unary and Binary Expressions): Mark up
6060 an instance of TYPE_MIN.
6062 2019-08-31 Stafford Horne <shorne@gmail.com>
6064 * config/or1k/constraints.md (t): New constraint.
6065 * config/or1k/or1k.h (GOT_REGS): New register class.
6066 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
6068 2019-08-30 Jim Wilson <jimw@sifive.com>
6070 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
6071 and -fpic and -mplt then disable -msave-restore and warn.
6073 2019-08-30 Martin Sebor <msebor@redhat.com>
6076 * tree-ssa-strlen.c (handle_store): Use a fallback location if
6077 the statement doesn't have one.
6078 * gimple-pretty-print.c (percent_G_format): Same.
6081 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
6082 before using them to validate MEM_REF offset.
6084 2019-08-30 Marek Polacek <polacek@redhat.com>
6086 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
6088 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6090 * config/arm/arm.md (unaligned_loaddi,
6091 unaligned_storedi): New unspec insn patterns.
6092 * config/arm/neon.md (unaligned_storev8qi): Likewise.
6093 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
6094 and unaligned_storedi for 4-byte aligned memory.
6095 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
6096 4-byte aligned memory.
6098 2019-08-30 Martin Jambor <mjambor@suse.cz>
6100 tree-optimization/91579
6101 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
6102 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
6104 (arg_needs_copy_p): Removed.
6105 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
6107 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
6109 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6111 * config/i386/i386-features.c
6112 (general_scalar_chain::compute_convert_gain):
6113 Correct cost for double-word shifts.
6114 (general_scalar_to_vector_candidate_p): Reject count operands
6115 greater or equal to mode bitsize.
6117 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6119 * config/i386/i386.c (inline_secondary_memory_needed): Return true
6120 for moves between SSE and non-general registers and between
6121 mask and non-general registers.
6122 (ix86_register_move_cost): Remove stalled comment.
6124 2019-08-29 Richard Biener <rguenther@suse.de>
6126 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6127 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
6129 2019-08-29 Richard Biener <rguenther@suse.de>
6132 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6133 Do not emit scalar copies for debug-insns, instead replace
6134 their uses with the reg copy used in the chain or reset them
6135 if there is a reaching definition outside of the chain as well.
6137 2019-08-29 Jakub Jelinek <jakub@redhat.com>
6140 * config/i386/i386-expand.c (expand_vec_perm_movs,
6141 expand_vec_perm_blend, expand_vec_perm_vpermil,
6142 expand_vec_perm_pshufb, expand_vec_perm_1,
6143 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
6144 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
6145 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
6146 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
6147 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
6148 comments - replace ix86_expand_vec_perm_builtin_1 with
6149 ix86_expand_vec_perm_const_1.
6150 (expand_vec_perm2_vperm2f128_vblend): New function.
6151 (ix86_expand_vec_perm_const_1): New forward declaration. Call
6152 expand_vec_perm2_vperm2f128_vblend as last resort.
6153 (canonicalize_perm): Formatting fix.
6155 PR tree-optimization/91351
6156 * tree-cfg.c (generate_range_test): Use range_check_type instead of
6158 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
6159 range_check_type returns NULL.
6160 * tree-switch-conversion.c (switch_conversion::build_one_array):
6161 Use range_check_type instead of unsigned_type_for, don't perform
6162 linear opt if it returns NULL.
6163 (bit_test_cluster::find_bit_tests): Formatting fix.
6164 (bit_test_cluster::emit): Use range_check_type instead of
6166 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
6169 2019-08-29 Richard Biener <rguenther@suse.de>
6171 PR tree-optimization/91568
6172 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
6173 (vect_update_max_nunits): Add overload for poly_uint64.
6174 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
6175 (vect_build_slp_tree): Record max_nunits into the subtree
6176 and merge it upwards.
6177 (vect_print_slp_tree): Print max_nunits.
6179 2019-08-28 Marek Polacek <polacek@redhat.com>
6181 Implement P1152R4: Deprecating some uses of volatile.
6183 * doc/invoke.texi: Document -Wvolatile.
6185 2019-08-28 Marek Polacek <polacek@redhat.com>
6187 PR c++/91360 - Implement C++20 P1143R2: constinit.
6188 * doc/invoke.texi: Document -Wc++20-compat.
6190 2019-08-28 Martin Sebor <msebor@redhat.com>
6192 PR tree-optimization/91457
6193 * builtins.c (component_size): New function.
6194 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
6195 * builtins.h (compute_objsize): Add argument.
6196 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
6197 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
6198 (vrp_prop::check_mem_ref): Same.
6199 (vrp_prop::search_for_addr_array): Set no-warning bit.
6200 (check_array_bounds): Same.
6202 2019-08-28 Martin Sebor <msebor@redhat.com>
6205 * opts-common.c (option_enabled): Correct checking for language
6208 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
6210 * config/i386/i386.c (ix86_register_move_cost): Do not
6211 limit the cost of moves to/from XMM register to minimum 8.
6213 2019-08-28 Martin Jambor <mjambor@suse.cz>
6216 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
6217 checking assert a normal assert to test it really is redundant.
6218 * ipa-prop.c (compute_complex_assign_jump_func): Removed
6220 (update_jump_functions_after_inlining): Removed combining unary
6221 arithmetic operations with an ancestor jump function.
6222 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
6225 2019-08-28 Richard Biener <rguenther@suse.de>
6227 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
6230 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6231 Richard Biener <rguenther@suse.de>
6233 * expr.c (expand_assignment): Handle misaligned DECLs.
6234 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
6235 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
6237 (assign_parm_setup_stack): Allocate properly aligned stack slots.
6238 * varasm.c (build_constant_desc): Align constants of misaligned types.
6239 * config/arm/predicates.md (aligned_operand): New predicate.
6240 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
6241 aligned_operand to check restrictions on memory addresses.
6242 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
6243 * config/arm/vec-common.md (mov<VALL>): Likewise.
6245 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6248 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
6249 V_128 iterator instead of VI_128.
6251 2019-08-28 Martin Liska <mliska@suse.cz>
6253 PR tree-optimization/90970
6254 * builtins.c (check_access): Remove assignment to maxread
6255 as it hasn't been used since when it was introduced in r255755.
6257 2019-08-27 Martin Sebor <msebor@redhat.com>
6259 PR tree-optimization/91567
6260 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
6262 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
6265 2019-08-27 Jeff Law <law@redhat.com>
6267 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
6268 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
6270 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
6273 * config/i386/i386-features.c (convert_scalars_to_vector):
6274 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
6275 crtl->stack_realign_processed. Update crtl->drap_reg by calling
6276 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
6277 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
6279 2019-08-27 Richard Biener <rguenther@suse.de>
6281 * config/i386/i386-features.h
6282 (general_scalar_chain::~general_scalar_chain): Add.
6283 (general_scalar_chain::insns_conv): New bitmap.
6284 (general_scalar_chain::n_sse_to_integer): New.
6285 (general_scalar_chain::n_integer_to_sse): Likewise.
6286 (general_scalar_chain::make_vector_copies): Adjust signature.
6287 * config/i386/i386-features.c
6288 (general_scalar_chain::general_scalar_chain): Outline,
6289 initialize new members.
6290 (general_scalar_chain::~general_scalar_chain): New.
6291 (general_scalar_chain::mark_dual_mode_def): Record insns
6292 we need to insert conversions at and count them.
6293 (general_scalar_chain::compute_convert_gain): Account
6294 for conversion instructions at chain boundary.
6295 (general_scalar_chain::make_vector_copies): Generate a single
6296 copy for a def by a specific insn.
6297 (general_scalar_chain::convert_registers): First populate
6298 defs_map, then make copies at out-of chain insns.
6300 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
6302 * config/arm/arm.md (stack_protect_set_insn): Add security-related
6304 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
6306 2019-08-27 Martin Liska <mliska@suse.cz>
6308 * cgraph.c (cgraph_node::remove): Remove dead assignment before
6310 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
6311 Enclose in anonymous namespace.
6312 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
6313 hard_register initialization in braces.
6314 * tree-vrp.h (value_range_base::supports_type_p): Return false
6315 for function with boolean return type.
6317 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
6319 * config/i386/i386.c (emit_i387_cw_initialization)
6320 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6322 2019-08-26 Martin Sebor <msebor@redhat.com>
6325 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6326 (sprintf_dom_walker): Remove class.
6327 (get_int_range): Make argument const.
6328 (directive::fmtfunc, directive::set_precision): Same.
6329 (format_none): Same.
6330 (build_intmax_type_nodes): Same.
6331 (adjust_range_for_overflow): Same.
6332 (format_floating): Same.
6333 (format_character): Same.
6334 (format_string): Same.
6335 (format_plain): Same.
6336 (get_int_range): Cast away constness.
6337 (format_integer): Same.
6338 (get_string_length): Call get_range_strlen_dynamic. Handle
6339 null lendata.maxbound.
6340 (should_warn_p): Adjust argument scope qualifier.
6342 (format_directive): Same.
6343 (parse_directive): Same.
6344 (is_call_safe): Same.
6345 (try_substitute_return_value): Same.
6346 (sprintf_dom_walker::handle_printf_call): Rename...
6347 (handle_printf_call): ...to this. Initialize target to host charmap
6348 here instead of in pass_sprintf_length::execute.
6349 (struct call_info): Make global.
6350 (sprintf_dom_walker::compute_format_length): Make global.
6351 (sprintf_dom_walker::handle_gimple_call): Same.
6352 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6353 * print-rtl.c (print_pattern): Reduce the number of spaces to
6354 avoid -Wformat-truncation.
6355 * tree-pass.h (make_pass_warn_printf): New function.
6356 * tree-ssa-strlen.c (strlen_optimize): New variable.
6357 (get_string_length): Add comments.
6358 (get_range_strlen_dynamic): New function.
6359 (check_and_optimize_call): New function.
6360 (handle_integral_assign): New function.
6361 (strlen_check_and_optimize_stmt): Factor code out into
6362 strlen_check_and_optimize_call and handle_integral_assign.
6363 (strlen_dom_walker::evrp): New member.
6364 (strlen_dom_walker::before_dom_children): Use evrp member.
6365 (strlen_dom_walker::after_dom_children): Use evrp member.
6366 (printf_strlen_execute): New function.
6367 (pass_strlen::gate): Update to handle printf calls.
6368 (dump_strlen_info): New function.
6369 (pass_data_warn_printf): New variable.
6370 (pass_warn_printf): New class.
6371 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6372 (handle_printf_call): Same.
6373 * tree-vrp.c (value_range_base::type): Adjust assertion.
6374 * vr-values.c (vr_values::update_value_range): Use type of the first
6375 argument rather than the second.
6377 2019-08-26 Richard Biener <rguenther@suse.de>
6379 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6381 (convert_scalars_to_vector): Do not call it.
6383 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6384 Uros Bizjak <ubizjak@gmail.com>
6386 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6387 CASE_MATHFN_FLOATN for roundeven.
6388 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6390 (ix86_mode_needed): Likewise.
6391 (ix86_mode_after): Likewise.
6392 (ix86_mode_entry): Likewise.
6393 (ix86_mode_exit): Likewise.
6394 (ix86_emit_mode_set): Likewise.
6395 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6396 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6397 (ix86_entity): Add I387_ROUNDEVEN.
6398 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6399 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6400 (define_int_iterator): Likewise.
6401 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6402 (define_constant): Define ROUND_ROUNDEVEN mode.
6403 (define_attr): Add roundeven mode for i387_cw.
6404 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6405 * internal-fn.def (ROUNDEVEN): New builtin function.
6406 * optabs.def (roundeven_optab): New optab.
6408 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6410 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6412 * builtins.def: Added function definitions for roundeven function
6414 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6415 function call. Adjust condition for floor, ceil, trunc and round.
6416 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6417 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6418 (integer_valued_real_call_p): Added case for roundeven function.
6419 * real.c (is_even): New function. Returns true if real number is even,
6420 otherwise returns false.
6421 (is_halfway_below): New function. Returns true if real number is
6422 halfway between two integers, else return false.
6423 (real_roundeven): New function. Round real number to nearest integer,
6424 rounding halfway cases towards even.
6425 * real.h (real_value): Added descriptive comments. Added function
6426 declaration for roundeven function.
6427 * doc/extend.texi (Other Builtins): List roundeven variants among
6428 functions which can be handled as builtins.
6430 2019-08-26 Richard Biener <rguenther@suse.de>
6434 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6436 (general_scalar_chain::replace_with_subreg): Remove.
6437 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6438 (general_scalar_chain::convert_reg): Adjust signature.
6439 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6440 iterate over all defs of a reg.
6441 (general_scalar_chain::replace_with_subreg): Remove.
6442 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6443 (general_scalar_chain::make_vector_copies): Populate defs_map,
6444 place copy only after defs that are used as vectors in the chain.
6445 (general_scalar_chain::convert_reg): Emit a copy for a specific
6446 def in a specific instruction.
6447 (general_scalar_chain::convert_op): All reg uses are converted here.
6448 (general_scalar_chain::convert_insn): Emit copies for scalar
6449 uses of defs here. Replace uses with the copies we created.
6450 Replace and convert the def. Adjust REG_DEAD notes, remove
6451 REG_EQUIV/EQUAL notes.
6452 (general_scalar_chain::convert_registers): Only handle copies
6453 into the chain here.
6455 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6457 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6459 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6461 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6462 Add nop_convert case.
6463 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6464 Fold all statements if requested.
6465 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6466 Allow to fold all statements.
6467 * tree-vrp.c (class vrp_folder):
6468 Let substitute_and_fold_engine fold all statements.
6470 2019-08-26 Richard Biener <rguenther@suse.de>
6472 PR tree-optimization/91526
6473 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6474 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6475 TODO_update_address_taken.
6477 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6479 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6482 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6484 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6485 machine mode for unspec_volatile operand.
6487 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6489 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6490 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6491 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6492 (prefer_neon_for_64bits): Remove.
6493 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6494 (tune_params): Remove PREF_NEON_64_FALSE uses.
6495 (arm_option_override): Remove prefer_neon selection code.
6496 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6497 * gcc/config/arm/arm-protos.h (tune_params): Remove
6498 prefer_neon_for_64bits.
6499 (prefer_neon_for_64bits): Remove.
6501 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6504 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6505 and issue any diagnostics needed before collecting the pre-PCH
6508 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6511 * common.opt (fexcess-precision=): Add Optimization flag. Use
6512 flag_excess_precision variable instead of
6513 flag_excess_precision_cmdline.
6514 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6516 (flag_excess_precision): Don't define.
6517 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6518 flag_excess_precision_cmdline. Remove comment.
6519 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6520 and x_flag_excess_precision instead of
6521 frontend_set_flag_excess_precision_cmdline and
6522 x_flag_excess_precision_cmdline.
6523 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6524 x_flag_excess_precision_cmdline.
6525 * toplev.c (init_excess_precision): Remove.
6526 (lang_dependent_init_target): Don't call it.
6528 2019-08-23 Martin Liska <mliska@suse.cz>
6530 * lto-wrapper.c (run_gcc): When setting jobserver
6531 set also parallel to 1. This was done so before r273908.
6533 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6535 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6536 (cortex-a76ae): Likewise.
6537 (cortex-a77): Likewise
6538 * config/arm/arm-tables.opt: Regenerate.
6539 * config/arm/arm-tune.md: Likewise.
6540 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6541 cortex-a77 CPU options.
6543 2019-08-23 Martin Liska <mliska@suse.cz>
6545 * profile.c (instrument_values): Do not set
6547 * tree-profile.c (gimple_gen_interval_profiler): Remove
6549 (gimple_gen_pow2_profiler): Likewise.
6550 (gimple_gen_topn_values_profiler): Likewise.
6551 (gimple_gen_ic_profiler): Likewise.
6552 (gimple_gen_time_profiler): Likewise.
6553 (gimple_gen_average_profiler): Likewise.
6554 (gimple_gen_ior_profiler): Likewise.
6555 * value-prof.c (dump_histogram_value): Use default
6556 in switch statement instead of HIST_TYPE_MAX.
6557 (stream_in_histogram_value): Likewise.
6558 (gimple_duplicate_stmt_histograms): Do not
6559 use NULL for implicitly set arguments.
6560 (gimple_divmod_values_to_profile): Do not use
6562 (gimple_indirect_call_to_profile): Likewise.
6563 (gimple_find_values_to_profile): Use implicit
6564 function call arguments.
6565 * value-prof.h (gimple_alloc_histogram_value):
6567 (gimple_gen_interval_profiler): Remove last argument.
6568 (gimple_gen_pow2_profiler): Likewise.
6569 (gimple_gen_topn_values_profiler): Likewise.
6570 (gimple_gen_ic_profiler): Likewise.
6571 (gimple_gen_time_profiler): Likewise.
6572 (gimple_gen_average_profiler): Likewise.
6573 (gimple_gen_ior_profiler): Likewise.
6575 2019-08-22 Martin Sebor <msebor@redhat.com>
6578 * builtins.c (c_strlen): Rename argument and introduce new local.
6579 Set no-warning bit on original argument.
6580 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6581 Fold empty and zero constructors into empty strings.
6582 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6583 for missing initializers.
6584 * tree.c (build_string_literal): Handle optional argument.
6585 * tree.h (build_string_literal): Add defaulted argument.
6586 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6587 no-warning bit on original expression.
6589 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6592 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6593 and UNSPEC_DARN_RAW.
6594 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6596 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6597 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6598 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6600 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6602 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6603 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6604 * config/rs6000/rs6000.md (unspec): ... here.
6605 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6606 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6607 cmpeqb, *cmpeqb_internal): Delete, move to...
6608 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6609 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6610 cmpeqb, *cmpeqb_internal): ... here.
6612 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6614 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6615 intrinsics if __ARM_FP.
6616 Use __ARM_FEATURE_CRC32 ifdef guard.
6618 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6620 * config/arm/arm.md (neon_for_64bits): Remove.
6621 (avoid_neon_for_64bits): Remove.
6622 (arm_adddi3): Always split early.
6623 (arm_subdi3): Always split early.
6624 (negdi2): Remove Neon expansion.
6625 (split zero_extend): Split before reload.
6626 (split sign_extend): Split before reload.
6628 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6630 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6631 (qhs_extenddi_cstr): Likewise.
6632 * config/arm/arm.md (ashldi3): Always expand early.
6633 (ashlsi3): Likewise.
6634 (ashrsi3): Likewise.
6635 (zero_extend<mode>di2): Remove Neon variants.
6636 (extend<mode>di2): Likewise.
6637 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6638 (signed_shift_di3_neon): Likewise.
6639 (unsigned_shift_di3_neon): Likewise.
6640 (ashrdi3_neon_imm_noclobber): Likewise.
6641 (lshrdi3_neon_imm_noclobber): Likewise.
6642 (<shift>di3_neon): Likewise.
6643 (split extend): Remove DI extend split patterns.
6645 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6647 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6648 (split not): Add DImode not splitter.
6649 (anddi3): Remove pattern.
6650 (anddi3_insn): Likewise.
6651 (anddi_zesidi_di): Likewise.
6652 (anddi_sesdi_di): Likewise.
6653 (anddi_notdi_di): Likewise.
6654 (anddi_notzesidi_di): Likewise.
6655 (anddi_notsesidi_di): Likewise.
6657 (iordi3_insn): Likewise.
6658 (iordi_zesidi_di): Likewise.
6659 (iordi_sesidi_di): Likewise.
6661 (xordi3_insn): Likewise.
6662 (xordi_sesidi_di): Likewise.
6663 (xordi_zesidi_di): Likewise.
6664 (one_cmpldi2): Likewise.
6665 (one_cmpldi2_insn): Likewise.
6666 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6667 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6669 (iwmmxt_xordi3): Likewise.
6670 (iwmmxt_anddi3): Likewise.
6671 * config/arm/neon.md (orndi3_neon): Remove pattern.
6672 (anddi_notdi_di): Likewise.
6673 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6674 (arm_iordi_operand_neon): Likewise.
6675 (arm_xordi_operand_neon): Likewise.
6676 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6677 (iordi_notzesidi_di): Likewise.
6678 (iordi_notdi_zesidi): Likewise.
6679 (iordi_notsesidi_di): Likewise.
6681 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6683 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6685 (iorsi3_compare0_scratch): Likewise.
6687 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6689 * config/aarch64/aarch64-simd-builtins.def:
6692 * config/aarch64/aarch64-simd.md:
6693 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6694 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6695 (aarch64_ld1_x4_<mode>): Likewise.
6696 (aarch64_st1_x4_<mode>): Likewise.
6697 * config/aarch64/arm_neon.h:
6698 (vld1_s8_x4): New function.
6699 (vld1q_s8_x4): Likewise.
6700 (vld1_s16_x4): Likewise.
6701 (vld1q_s16_x4): Likewise.
6702 (vld1_s32_x4): Likewise.
6703 (vld1q_s32_x4): Likewise.
6704 (vld1_u8_x4): Likewise.
6705 (vld1q_u8_x4): Likewise.
6706 (vld1_u16_x4): Likewise.
6707 (vld1q_u16_x4): Likewise.
6708 (vld1_u32_x4): Likewise.
6709 (vld1q_u32_x4): Likewise.
6710 (vld1_f16_x4): Likewise.
6711 (vld1q_f16_x4): Likewise.
6712 (vld1_f32_x4): Likewise.
6713 (vld1q_f32_x4): Likewise.
6714 (vld1_p8_x4): Likewise.
6715 (vld1q_p8_x4): Likewise.
6716 (vld1_p16_x4): Likewise.
6717 (vld1q_p16_x4): Likewise.
6718 (vld1_s64_x4): Likewise.
6719 (vld1_u64_x4): Likewise.
6720 (vld1_p64_x4): Likewise.
6721 (vld1q_s64_x4): Likewise.
6722 (vld1q_u64_x4): Likewise.
6723 (vld1q_p64_x4): Likewise.
6724 (vld1_f64_x4): Likewise.
6725 (vld1q_f64_x4): Likewise.
6726 (vst1_s8_x4): Likewise.
6727 (vst1q_s8_x4): Likewise.
6728 (vst1_s16_x4): Likewise.
6729 (vst1q_s16_x4): Likewise.
6730 (vst1_s32_x4): Likewise.
6731 (vst1q_s32_x4): Likewise.
6732 (vst1_u8_x4): Likewise.
6733 (vst1q_u8_x4): Likewise.
6734 (vst1_u16_x4): Likewise.
6735 (vst1q_u16_x4): Likewise.
6736 (vst1_u32_x4): Likewise.
6737 (vst1q_u32_x4): Likewise.
6738 (vst1_f16_x4): Likewise.
6739 (vst1q_f16_x4): Likewise.
6740 (vst1_f32_x4): Likewise.
6741 (vst1q_f32_x4): Likewise.
6742 (vst1_p8_x4): Likewise.
6743 (vst1q_p8_x4): Likewise.
6744 (vst1_p16_x4): Likewise.
6745 (vst1q_p16_x4): Likewise.
6746 (vst1_s64_x4): Likewise.
6747 (vst1_u64_x4): Likewise.
6748 (vst1_p64_x4): Likewise.
6749 (vst1q_s64_x4): Likewise.
6750 (vst1q_u64_x4): Likewise.
6751 (vst1q_p64_x4): Likewise.
6752 (vst1_f64_x4): Likewise.
6753 (vst1q_f64_x4): Likewise.
6755 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6757 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6759 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6760 Richard Sandiford <richard.sandiford@arm.com>
6763 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6764 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6766 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6769 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6770 in reg if it fails aarch64_plus_operand predicate.
6772 2019-08-21 Richard Biener <rguenther@suse.de>
6774 PR tree-optimization/91482
6775 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6776 BUILT_IN_ASSUME_ALIGNED calls.
6778 2019-08-21 Richard Biener <rguenther@suse.de>
6782 * config/i386/i386-features.c
6783 (general_scalar_chain::make_vector_copies): Copy stack temporary
6784 rtx when using it multiple times.
6785 (general_scalar_chain::convert_reg): Likewise.
6787 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6789 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6791 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6793 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6794 catch more redundant zero initialization cases.
6795 (dse_dom_walker::dse_optimize_stmt): Likewise.
6797 2019-08-20 Richard Biener <rguenther@suse.de>
6800 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6801 by collect2 when targetm.have_ctors_dtors which avoids dragging
6802 in temporary filenames from LTO input objects.
6804 2019-08-20 Richard Biener <rguenther@suse.de>
6806 PR tree-optimization/37242
6807 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6808 to (T)a + (T)b if we know that a + b does not overflow.
6810 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6812 PR rtl-optimization/91347
6813 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6814 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6816 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6818 * calls.h (function_arg_info): Add a pass_by_reference field,
6819 defaulting to false.
6820 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6821 when applying pass-by-reference semantics.
6822 (initialize_argument_information): Likewise.
6823 (emit_library_call_value_1): Likewise.
6824 * function.c (assign_parm_data_one): Remove passed_pointer field.
6825 (assign_parm_find_data_types): Don't set it.
6826 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6827 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6828 arg.pass_by_reference instead of passed_pointer.
6830 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6832 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6833 into a single function_arg_info, updating its fields when we
6834 apply pass-by-reference and promotion semantics. Use the
6835 function_arg_info to track the mode rather than keeping it in
6836 a separate local variable.
6837 (initialize_argument_information): Likewise. Base the final
6838 arg_to_skip on this new function_arg_info rather than creating
6839 a new one from scratch.
6841 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6843 * function.c (assign_parm_data_one): Replace passed_type,
6844 promoted_mode and named_arg with a function_arg_info field.
6845 (assign_parm_find_data_types): Remove local variables and
6846 assign directly to "data". Make data->passed_mode shadow
6847 data->arg.mode until promotion, then assign the promoted
6848 mode to data->arg.mode.
6849 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6850 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6851 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6852 (assign_parm_setup_block, assign_parm_setup_reg)
6853 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6854 arg.mode instead of promoted_mode, arg.type instead of passed_type
6855 and arg.named instead of named_arg. Use data->arg for
6856 function_arg_info structures that had the field values passed_type,
6857 promoted_mode and named_arg. Base other function_arg_infos on
6858 data->arg, changing the necessary properties.
6860 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6862 * calls.h (apply_pass_by_reference_rules): Declare.
6863 * calls.c (apply_pass_by_reference_rules): New function.
6864 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6865 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6866 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6867 * function.c (assign_parm_find_data_types): Likewise.
6868 * var-tracking.c (prepare_call_arguments): Likewise.
6870 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6872 * target.def (must_pass_in_stack): Take a function_arg_info instead
6873 of a mode and a type.
6874 * doc/tm.texi: Regenerate.
6875 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6876 instead of a mode and a type.
6877 (must_pass_in_stack_var_size_or_pad): Likewise.
6878 * calls.c (must_pass_in_stack_var_size): Likewise.
6879 (must_pass_in_stack_var_size_or_pad): Likewise.
6880 (initialize_argument_information): Update call to
6881 targetm.calls.must_pass_in_stack.
6882 (must_pass_va_arg_on_stack): Likewise.
6883 * function.c (assign_parm_find_entry_rtl): Likewise.
6884 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6885 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6886 (alpha_function_arg_advance): Likewise.
6887 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6888 (cr16_function_arg_advance): Likewise.
6889 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6890 (cris_arg_partial_bytes): Likewise.
6891 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6892 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6893 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6894 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6895 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6896 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6897 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6898 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6899 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6900 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6901 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6902 instead of a mode and a type.
6903 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6904 (fr30_num_arg_regs): Likewise.
6905 (fr30_setup_incoming_varargs): Update calls accordingly.
6906 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6907 (fr30_function_arg_advance): Likewise.
6908 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6909 instead of a mode and a type.
6910 * config/gcn/gcn.c (num_arg_regs): Likewise.
6911 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6912 num_arg_regs and targetm.calls.must_pass_in_stack.
6913 (gcn_arg_partial_bytes): Likewise.
6914 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6915 function_arg_info instead of a mode and a type.
6916 (classify_argument): Update call accordingly.
6917 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6918 function_arg_info instead of a mode and a type.
6919 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6921 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6922 (rs6000_parm_needs_stack): Update call accordingly.
6923 (setup_incoming_varargs): Likewise.
6925 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6927 * target.def (callee_copies): Take a function_arg_info instead
6928 of a mode, type and named flag.
6929 * doc/tm.texi: Regenerate.
6930 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6931 instead of a mode, type and named flag.
6932 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6933 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6934 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6935 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6936 instead of a mode, type and named flag.
6937 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6938 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6939 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6940 * calls.h (reference_callee_copied): Take a function_arg_info
6941 instead of a mode, type and named flag.
6942 * calls.c (reference_callee_copied): Likewise.
6943 (initialize_argument_information): Update call accordingly.
6944 (emit_library_call_value_1): Likewise.
6945 * function.c (gimplify_parameters): Likewise.
6946 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6947 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6948 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6949 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6950 (TARGET_CALLEE_COPIES): Define to
6951 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6952 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6953 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6954 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6955 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6956 instead of a mode, type and named flag.
6957 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6958 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6959 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6960 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6961 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6962 (TARGET_CALLEE_COPIES): Define to
6963 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6964 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6965 instead of a mode, type and named flag.
6966 * config/sh/sh.c (sh_callee_copies): Likewise.
6967 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6968 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6969 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6971 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6973 * target.def (function_arg_advance): Take a function_arg_info instead
6974 of a mode, type and named flag.
6975 * doc/tm.texi: Regenerate.
6976 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6977 instead of a mode, type and named flag.
6978 * targhooks.c (default_function_arg_advance): Likewise.
6979 * calls.c (initialize_argument_information): Update call to
6980 targetm.calls.function_arg_advance.
6981 (emit_library_call_value_1): Likewise.
6982 * dse.c (get_call_args): Likewise.
6983 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6984 * function.c (assign_parms, gimplify_parameters): Likewise.
6985 * var-tracking.c (prepare_call_arguments): Likewise.
6986 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6987 function_arg_info instead of a mode, type and named flag.
6988 (aarch64_setup_incoming_varargs): Update call accordingly.
6989 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6990 function_arg_info instead of a mode, type and named flag.
6991 (alpha_setup_incoming_varargs): Update call accordingly.
6992 * config/arc/arc.c (arc_function_arg_advance): Take a
6993 function_arg_info instead of a mode, type and named flag.
6994 (arc_setup_incoming_varargs): Update call accordingly.
6995 * config/arm/arm.c (arm_function_arg_advance): Take a
6996 function_arg_info instead of a mode, type and named flag.
6997 (cmse_func_args_or_return_in_stack): Update call accordingly.
6998 (arm_function_ok_for_sibcall): Likewise.
6999 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7000 * config/avr/avr.c (avr_function_arg_advance): Take a
7001 function_arg_info instead of a mode, type and named flag.
7002 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
7003 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
7004 (c6x_call_saved_register_used): Update call accordingly.
7005 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
7006 function_arg_info instead of a mode, type and named flag.
7007 * config/cris/cris.c (cris_function_arg_advance): Likewise.
7008 * config/csky/csky.c (csky_function_arg_advance): Likewise.
7009 (csky_setup_incoming_varargs): Update call accordingly.
7010 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
7011 function_arg_info instead of a mode, type and named flag.
7012 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
7013 * config/frv/frv.c (frv_function_arg_advance): Likewise.
7014 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
7015 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
7016 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
7017 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
7018 (ix86_setup_incoming_varargs): Update call accordingly.
7019 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
7020 function_arg_info instead of a mode, type and named flag.
7021 (ia64_setup_incoming_varargs): Update call accordingly.
7022 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
7023 function_arg_info instead of a mode, type and named flag.
7024 (iq2000_expand_prologue): Update call accordingly.
7025 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
7026 function_arg_info instead of a mode, type and named flag.
7027 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
7028 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
7029 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7030 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
7031 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
7033 (microblaze_expand_prologue): Update call accordingly.
7034 * config/mips/mips.c (mips_function_arg_advance): Take a
7035 function_arg_info instead of a mode, type and named flag.
7036 (mips_setup_incoming_varargs): Update call accordingly.
7037 (mips_output_args_xfer): Likewise.
7038 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
7039 function_arg_info instead of a mode, type and named flag.
7040 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
7041 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
7042 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
7043 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
7044 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
7045 (nios2_setup_incoming_varargs): Update call accordingly.
7046 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
7047 function_arg_info instead of a mode, type and named flag.
7048 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
7049 * config/pa/pa.c (pa_function_arg_advance): Likewise.
7050 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
7051 * config/pru/pru.c (pru_function_arg_advance): Likewise.
7052 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
7053 (riscv_setup_incoming_varargs): Update call accordingly.
7054 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
7055 function_arg_info instead of a mode, type and named flag.
7056 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
7058 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
7059 (rs6000_parm_needs_stack): Update call accordingly.
7060 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
7061 instead of a mode, type and named flag.
7062 * config/s390/s390.c (s390_function_arg_advance): Likewise.
7063 (s390_call_saved_register_used): Update call accordingly.
7064 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
7065 instead of a mode, type and named flag.
7066 (sh_output_mi_thunk): Update call accordingly.
7067 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
7068 function_arg_info instead of a mode, type and named flag.
7069 * config/spu/spu.c (spu_function_arg_advance): Likewise.
7070 (spu_setup_incoming_varargs): Update call accordingly.
7071 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
7072 function_arg_info instead of a mode, type and named flag.
7073 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
7074 (tilegx_setup_incoming_varargs): Update call accordingly.
7075 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
7076 function_arg_info instead of a mode, type and named flag.
7077 (tilegx_setup_incoming_varargs): Update call accordingly.
7078 * config/v850/v850.c (v850_function_arg_advance): Take a
7079 function_arg_info instead of a mode, type and named flag.
7080 * config/vax/vax.c (vax_function_arg_advance): Likewise.
7081 * config/visium/visium.c (visium_function_arg_advance): Likewise.
7082 (visium_setup_incoming_varargs): Update call accordingly.
7083 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
7084 function_arg_info instead of a mode, type and named flag.
7086 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7088 * target.def (function_arg, function_incoming_arg): Take a
7089 function_arg_info instead of a mode, tree and named flag.
7090 * doc/tm.texi: Regenerate.
7091 * targhooks.h (default_function_arg): Take a function_arg_info
7092 instead of a mode, tree and named flag.
7093 (default_function_incoming_arg): Likewise.
7094 * targhooks.c (default_function_arg): Likewise.
7095 (default_function_incoming_arg): Likewise.
7096 * calls.h (function_arg_info::end_marker_p): New function.
7097 (function_arg_info::end_marker): Likewise.
7098 * calls.c (prepare_call_address, initialize_argument_information)
7099 (expand_call, emit_library_call_value_1): Update calls to
7100 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
7101 * dse.c: Include calls.h.
7102 (get_call_args): Update call to targetm.calls.function_arg.
7103 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7104 * var-tracking.c (prepare_call_arguments): Likewise.
7105 * function.c (assign_parm_find_entry_rtl): Update call to
7106 targetm.calls.function_incoming_arg.
7107 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
7108 function_arg_info instead of a mode, tree and named flag.
7109 * config/alpha/alpha.c (alpha_function_arg): Likewise.
7110 * config/arc/arc.c (arc_function_arg): Likewise.
7111 * config/arm/arm.c (arm_function_arg): Likewise.
7112 (cmse_func_args_or_return_in_stack): Update call accordingly.
7113 (arm_function_ok_for_sibcall): Likewise.
7114 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7115 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
7116 instead of a mode, tree and named flag.
7117 * config/bfin/bfin.c (bfin_function_arg): Likewise.
7118 * config/c6x/c6x.c (c6x_function_arg): Likewise.
7119 (c6x_call_saved_register_used): Update call accordingly.
7120 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
7121 instead of a mode, tree and named flag.
7122 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
7123 (cris_function_arg_1): Likewise.
7124 * config/csky/csky.c (csky_function_arg): Likewise.
7125 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
7126 * config/fr30/fr30.c (fr30_function_arg): Likewise.
7127 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
7128 (frv_function_arg_1): Likewise.
7129 * config/ft32/ft32.c (ft32_function_arg): Likewise.
7130 * config/gcn/gcn.c (gcn_function_arg): Likewise.
7131 * config/h8300/h8300.c (h8300_function_arg): Likewise.
7132 * config/i386/i386.c (ix86_function_arg): Likewise.
7133 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
7134 (ia64_function_arg_1): Likewise.
7135 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
7136 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
7138 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
7139 instead of a mode, tree and named flag.
7140 * config/m32c/m32c.c (m32c_function_arg): Likewise.
7141 * config/m32r/m32r.c (m32r_function_arg): Likewise.
7142 * config/m68k/m68k.c (m68k_function_arg): Likewise.
7143 * config/mcore/mcore.c (mcore_function_arg): Likewise.
7144 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
7145 (microblaze_expand_prologue): Update call accordingly.
7146 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
7147 instead of a mode, tree and named flag.
7148 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
7149 (mmix_function_arg_1): Likewise.
7150 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
7151 * config/moxie/moxie.c (moxie_function_arg): Likewise.
7152 * config/msp430/msp430.c (msp430_function_arg): Likewise.
7153 * config/nds32/nds32.c (nds32_function_arg): Likewise.
7154 * config/nios2/nios2.c (nios2_function_arg): Likewise.
7155 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
7156 (nvptx_function_incoming_arg): Likewise.
7157 * config/or1k/or1k.c (or1k_function_arg): Likewise.
7158 * config/pa/pa.c (pa_function_arg): Likewise.
7159 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
7160 * config/pru/pru.c (pru_function_arg): Likewise.
7161 * config/riscv/riscv.c (riscv_function_arg): Likewise.
7162 * config/rl78/rl78.c (rl78_function_arg): Likewise.
7163 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
7164 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
7165 (rs6000_parm_needs_stack): Update call accordingly.
7166 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
7167 instead of a mode, tree and named flag.
7168 * config/s390/s390.c (s390_function_arg): Likewise.
7169 (s390_call_saved_register_used): Update call accordingly.
7170 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
7171 instead of a mode, tree and named flag.
7172 (sh_output_mi_thunk): Update call accordingly.
7173 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
7174 (sparc_function_incoming_arg): Take a function_arg_info instead of
7175 a mode, tree and named flag.
7176 * config/spu/spu.c (spu_function_arg): Likewise.
7177 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
7178 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
7179 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
7180 * config/v850/v850.c (v850_function_arg): Likewise.
7181 * config/vax/vax.c (vax_function_arg): Likewise.
7182 * config/visium/visium.c (visium_function_arg): Likewise.
7183 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
7184 (xtensa_function_incoming_arg): Likewise.
7186 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7188 * target.def (setup_incoming_varargs): Take a function_arg_info
7189 instead of a mode and tree.
7190 * doc/tm.texi: Regenerate.
7191 * targhooks.h (default_setup_incoming_varargs): Take a
7192 function_arg_info instead of a mode and tree.
7193 * targhooks.c (default_setup_incoming_varargs): Likewise.
7194 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
7195 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
7196 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
7197 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
7198 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
7199 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
7200 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
7201 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
7203 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
7204 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
7205 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
7206 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
7207 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7208 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
7209 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7210 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7211 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7212 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
7213 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7214 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
7215 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
7216 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
7217 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
7218 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
7219 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
7220 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7221 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
7222 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
7223 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
7224 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7225 * function.c (assign_parms_setup_varargs): Update call to
7226 targetm.calls.setup_incoming_varargs.
7228 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7230 * target.def (pass_by_reference): Take a function_arg_info instead
7231 of a mode, type and named flag.
7232 * doc/tm.texi: Regenerate.
7233 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
7235 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
7236 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
7237 function_arg_info instead of a mode, type and named flag.
7238 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
7239 * calls.h (pass_by_reference): Take a function_arg_info instead of a
7240 mode, type and named flag.
7241 * calls.c (pass_by_reference): Likewise.
7242 (pass_va_arg_by_reference): Update call accordingly.
7243 (initialize_argument_information): Likewise.
7244 (emit_library_call_value_1): Likewise.
7245 * function.c (assign_parm_find_data_types): Likewise.
7246 * var-tracking.c (prepare_call_arguments): Likewise.
7247 * stor-layout.c: Include calls.h.
7248 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
7249 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
7250 function_arg_info instead of a mode, type and named flag.
7251 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
7252 * config/arc/arc.c (arc_pass_by_reference): Likewise.
7253 * config/arm/arm.c (arm_pass_by_reference): Likewise.
7254 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
7255 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
7256 (c6x_call_saved_register_used): Update call to pass_by_reference.
7257 * config/cris/cris.c (cris_pass_by_reference): Take a
7258 function_arg_info instead of a mode, type and named flag.
7259 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
7260 function_arg_info instead of a mode, type and named flag.
7261 (epiphany_arg_partial_bytes): Update call accordingly.
7262 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
7263 function_arg_info instead of a mode, type and named flag.
7264 (ft32_arg_partial_bytes): Update call accordingly.
7265 * config/i386/i386.c (ix86_pass_by_reference): Take a
7266 function_arg_info instead of a mode, type and named flag.
7267 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7268 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
7269 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
7270 (m32r_return_in_memory): Update call accordingly.
7271 * config/mips/mips.c (mips_pass_by_reference): Take a
7272 function_arg_info instead of a mode, type and named flag.
7273 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
7274 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7275 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
7276 (moxie_arg_partial_bytes): Update call accordingly.
7277 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
7278 function_arg_info instead of a mode, type and named flag.
7279 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
7280 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
7281 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7282 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
7283 (riscv_return_in_memory): Update call accordingly.
7284 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
7285 function_arg_info instead of a mode, type and named flag.
7286 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
7287 (rs6000_parm_needs_stack): Update call to pass_by_reference.
7288 * config/s390/s390.c (s390_pass_by_reference): Take a
7289 function_arg_info instead of a mode, type and named flag.
7290 (s390_call_saved_register_used): Update call accordingly.
7291 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
7292 instead of a mode, type and named flag.
7293 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
7294 * config/spu/spu.c (spu_pass_by_reference): Likewise.
7295 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
7296 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
7297 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7298 * config/visium/visium.c (visium_pass_by_reference): Likewise.
7300 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7302 * target.def (arg_partial_bytes): Take a function_arg_info instead
7303 of a mode, type and named flag.
7304 * doc/tm.texi: Regenerate.
7305 * target.h (function_arg_info): Declare.
7306 * calls.h (function_arg_info): New class.
7307 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7308 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
7309 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7310 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
7311 * calls.c (initialize_argument_information): Update call to
7312 targetm.calls.partial_bytes.
7313 (emit_library_call_value_1): Likewise.
7314 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7315 * function.c (assign_parm_find_entry_rtl): Likewise.
7316 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
7317 function_arg_info instead of a mode, type and named flag.
7318 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
7319 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7320 (cmse_func_args_or_return_in_stack): Update accordingly.
7321 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7322 function_arg_info instead of a mode, type and named flag.
7323 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7324 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7325 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7326 * config/fr30/fr30.c: Include calls.h.
7327 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7328 type and named flag.
7329 * config/frv/frv.c: Include calls.h.
7330 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7331 type and named flag.
7332 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7333 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7334 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7335 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7336 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7337 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7338 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7340 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7341 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7342 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7343 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7344 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7345 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7346 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7347 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7348 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7349 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7350 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7351 (rs6000_parm_needs_stack): Update call accordingly.
7352 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7353 function_arg_info instead of a mode, type and named flag.
7354 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7355 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7357 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7359 * calls.h (must_pass_va_arg_in_stack): Declare.
7360 * calls.c (must_pass_va_arg_in_stack): New function.
7361 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7362 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7363 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7365 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7367 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7369 * calls.h (pass_va_arg_by_reference): Declare.
7370 * calls.c (pass_va_arg_by_reference): New function.
7371 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7372 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7373 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7374 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7375 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7376 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7377 (mips_gimplify_va_arg_expr): Likewise.
7378 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7379 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7380 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7381 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7382 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7383 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7384 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7385 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7386 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7387 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7388 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7390 2019-08-20 Richard Biener <rguenther@suse.de>
7393 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7394 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7395 (convert_scalars_to_vector): Add timode_p parameter and use it
7396 to guard TImode-only operation.
7397 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7398 (pass_stv::execute): Pass down timode_p.
7400 2019-08-20 Lili Cui <lili.cui@intel.com>
7402 * common/config/i386/i386-common.c
7403 (processor_names): Add tigerlake and cooperlake.
7404 (processor_alias_table): Add tigerlake and cooperlake.
7405 * config.gcc: Add -march=tigerlake and cooperlake.
7406 * config/i386/driver-i386.c
7407 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7408 Add "has_avx" to classify processor.
7409 * config/i386/i386-builtins.c (processor_model) :
7410 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7411 (arch_names_table): Add tigerlake and cooperlake.
7412 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7413 and PROCESSOR_COOPERLAKE.
7414 * config/i386/i386-c.c
7415 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7416 * config/i386/i386-options.c
7417 (m_TIGERLAKE) : Define.
7418 (m_COOPERLAKE) : Ditto.
7419 (m_CORE_AVX512): Ditto.
7420 (processor_cost_table): Add cascadelake.
7421 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7422 * config/i386/i386.h
7423 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7424 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7425 (PTA_MOVDIRI): Ditto.
7426 (PTA_MOVDIR64B): Ditto.
7427 (PTA_COOPERLAKE) : Ditto.
7428 (PTA_TIGERLAKE) : Ditto.
7429 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7430 * doc/extend.texi: Add tigerlake and cooperlake.
7431 * doc/invoke.texi: Add tigerlake and cooperlake.
7433 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7435 * doc/install.texi (Specific, alpha): Remove note to use
7436 binutils 2.11.2 or later.
7438 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7441 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7444 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7446 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7447 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7448 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7449 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7450 * config/aarch64/constraints.md (Dt): New constraint
7451 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7453 2019-08-19 Richard Biener <rguenther@suse.de>
7455 PR tree-optimization/91403
7456 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7457 cases we can handle with tail-recursion...
7458 (follow_ssa_edge_expr): ... here. Do so.
7460 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7463 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7464 implemented for -fsanitize=kernel-address, and merge check logic
7465 with -fsanitize=address.
7467 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7469 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7470 for cpu and machine. Factor 64/32b builtins.
7472 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7474 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7475 gone, point to sourceforge.net.
7477 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7479 * doc/ux.texi (User Experience Guidelines): Update reference.
7481 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7483 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7486 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7488 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7489 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7491 2019-08-16 Martin Sebor <msebor@redhat.com>
7493 * tree.def (TYPE_SIZE): Clarify.
7494 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7496 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7498 PR tree-optimization/91109
7499 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7500 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7501 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7503 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7505 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7506 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7507 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7508 (uavg<mode>3_ceil): New expander.
7509 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7510 mode iterator when creating CONST1_RTX.
7511 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7512 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7513 mode iterator for const1_operand predicate.
7515 2019-08-16 Richard Biener <rguenther@suse.de>
7517 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7518 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7520 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7521 (analyze_evolution_in_loop): Likewise.
7522 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7523 (follow_ssa_edge_expr): ... here. Refactor code.
7525 2019-08-16 Richard Biener <rguenther@suse.de>
7528 * config/i386/i386-features.c
7529 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7531 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7534 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7535 only if subst_name matches curr_attr string.
7537 2019-08-16 Richard Biener <rguenther@suse.de>
7539 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7540 stmt at gsi_p, instead replace it with a NOP removed later.
7541 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7542 that became dead because of that.
7544 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7546 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7547 for which we can't represent a range.
7548 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7550 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7551 Set VR_UNDEFINED if type is not supported.
7552 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7553 * tree-vrp.c (value_range_base::check): Assert that a varying has
7555 (value_range_base::equal_p): Early bail for undefines.
7556 (value_range_base::set_varying): Accept a type.
7557 (value_range::set_varying): Same.
7558 (value_range_base::type): VARYING can have a type, while UNDEFINE
7560 (value_range_base::dump): Print type for VARYING nodes.
7561 (value_range_base::set): Add type to VARYING.
7562 (extract_range_from_multiplicative_op): Pass type to set_varying.
7563 (extract_range_from_binary_expr): Same.
7564 (value_range_base::intersect_helper): Same.
7565 (value_range_base::union_helper): Same.
7566 (value_range_base::normalize_symbolics): Same.
7567 (determine_value_range_1): Same.
7568 * tree-vrp.h (class value_range_base): Add type to set_varying.
7569 Add prototype for dump(void).
7570 Add prototype for supports_type_p.
7571 (class value_range): Add type to set_varying.
7572 Add prototype for dump(void).
7573 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7575 (vr_values::get_lattice_entry): Set varying even if propagation
7577 Pass type to set_varying.
7578 (vr_values::get_value_range): Remove vr_const_varying.
7579 Reallocate the lattice if needed.
7580 (vr_values::update_value_range): Pass type to set_varying.
7581 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7582 (vr_values::extract_range_from_binary_expr): Same.
7583 (vr_values::extract_range_from_unary_expr): Same.
7584 (vr_values::extract_range_from_cond_expr): Same.
7585 (vr_values::check_for_binary_op_overflow): Same.
7586 (vr_values::extract_range_basic): Same.
7587 (vr_values::extract_range_from_assignment): Same.
7588 (vr_values::vr_values): Increase size of num_vr_values.
7589 (vr_values::extract_range_from_phi_node): Pass type to
7592 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7595 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7596 for costs of hard register moves.
7597 (ix86_register_move_cost): Likewise.
7598 * config/i386/i386.h (processor_costs): Move costs of hard
7599 register moves to hard_register. Add int_load, int_store,
7600 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7601 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7602 for costs of RTL expressions.
7603 * config/i386/x86-tune-costs.h: Move costs of hard register
7604 moves to hard_register. Duplicate int_load, int_store,
7605 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7606 sse_load, sse_store for costs of RTL expressions.
7608 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7610 * target.def (setup_incoming_vararg_bounds): Remove.
7611 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7612 * doc/tm.texi: Regenerate.
7613 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7614 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7615 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7616 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7618 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7620 MSP430: Fix lines over 80 characters long in
7621 config/msp430/*.{c,h} files
7623 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7624 specifier in string.
7625 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7626 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7627 redundant old comment.
7628 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7629 Split line more than 80 characters long.
7630 * config/msp430/msp430.c (msp430_option_override): Likewise.
7631 (msp430_return_in_memory): Likewise.
7632 (msp430_gimplify_va_arg_expr): Likewise.
7633 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7634 (msp430_legitimate_constant): Likewise.
7635 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7636 (msp430_attr): Likewise.
7637 (msp430_data_attr): Likewise.
7638 (msp430_start_function): Likewise.
7639 (gen_prefix): Likewise.
7640 (msp430_init_sections): Likewise.
7641 (msp430_select_section): Likewise.
7642 (msp430_function_section): Likewise.
7643 (msp430_unique_section): Likewise.
7644 (msp430_output_aligned_decl_common): Likewise.
7645 (msp430_do_not_relax_short_jumps): Likewise.
7646 (msp430_init_builtins): Likewise.
7647 (msp430_expand_delay_cycles): Likewise.
7648 (msp430_expand_prologue): Likewise.
7649 (msp430_expand_epilogue): Likewise.
7650 (msp430_expand_helper): Likewise.
7651 (msp430_split_movsi): Likewise.
7652 (msp430_print_operand): Likewise.
7653 (msp430_return_addr_rtx): Likewise.
7654 (msp430x_extendhisi): Likewise.
7655 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7656 (ASM_SPEC): Likewise.
7657 Remove very obvious comments.
7658 (LIB_SPEC): Split line more than 80 characters long.
7659 (EH_RETURN_HANDLER_RTX): Likewise.
7660 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7662 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7664 MSP430: Fix whitespace errors and incorrect indentation in
7665 config/msp430/*.{c,h} files
7667 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7668 (msp430_select_hwmult_lib): Likewise.
7669 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7670 (msp430_extract_mcu_data): Likewise.
7671 (struct t_msp430_mcu_data): Likewise.
7672 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7673 before left square bracket.
7674 (msp430_option_override): Fix indentation.
7675 (msp430_hard_regno_nregs_with_padding): Likewise.
7676 (msp430_initial_elimination_offset): Likewise.
7677 (msp430_special_register_convention_p): Remove whitespace before left
7678 square bracket and after exclamation mark.
7679 (msp430_evaluate_arg): Likewise.
7680 (msp430_callee_copies): Fix indentation.
7681 (msp430_gimplify_va_arg_expr): Likewise.
7682 (msp430_function_arg_advance): Remove whitespace before left square
7684 (reg_ok_for_addr): Likewise.
7685 (msp430_preserve_reg_p): Likewise.
7686 (msp430_compute_frame_info): Likewise.
7687 (msp430_asm_output_addr_const_extra): Add space between function name
7688 and open parenthesis.
7689 (has_section_name): Fix indentation.
7690 (msp430_attr): Remove trailing whitespace.
7691 (msp430_section_attr): Likewise.
7692 (msp430_data_attr): Likewise.
7693 (struct msp430_attribute_table): Fix comment and whitespace.
7694 (msp430_start_function): Remove whitespace before left square bracket.
7695 Add space between function name and open parenthesis.
7696 (msp430_select_section): Remove trailing whitespace.
7697 (msp430_section_type_flags): Remove trailing whitespace.
7698 (msp430_unique_section): Remove space before closing parenthesis.
7699 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7700 (msp430_builtins): Remove whitespace before left square bracket.
7701 (msp430_init_builtins): Fix indentation.
7702 (msp430_expand_prologue): Remove whitespace before left square bracket.
7703 Remove space before closing parenthesis.
7704 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7705 (msp430_split_movsi): Remove space before closing parenthesis.
7706 (helper_function_name_mappings): Fix indentation.
7707 (msp430_use_f5_series_hwmult): Fix whitespace.
7708 (use_32bit_hwmult): Likewise.
7709 (msp430_no_hwmult): Likewise.
7710 (msp430_output_labelref): Remove whitespace before left square bracket.
7711 (msp430_print_operand_raw): Likewise.
7712 (msp430_print_operand_addr): Likewise.
7713 (msp430_print_operand): Add two spaces after '.' in comment.
7714 Fix trailing whitespace.
7715 (msp430x_extendhisi): Fix indentation.
7716 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7718 (PC_REGNUM): Likewise.
7719 (STACK_POINTER_REGNUM): Likewise.
7720 (CC_REGNUM): Likewise.
7722 2019-08-15 Richard Biener <rguenther@suse.de>
7725 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7727 (general_scalar_chain::make_vector_copies): Use it.
7729 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7731 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7733 2019-08-15 Martin Liska <mliska@suse.cz>
7735 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7736 operators with no arguments.
7737 (eliminate_unnecessary_stmts): Likewise here.
7739 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7741 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7742 <case COMPARE>: Revert 2019-08-14 change.
7743 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7744 for (TARGET_64BIT || mode != DImode).
7746 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7748 * tree-vrp.c (value_range_base::set): Merge in code from
7749 value_range_base::set_and_canonicalize.
7750 Enforce canonicalization at set time.
7751 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7752 (value_range_base::set_undefined): Inline call to set().
7753 (value_range_base::set_varying): Same.
7754 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7755 (vrp_val_max): New argument handle_pointers.
7756 (vrp_val_min): Same.
7757 (ranges_from_anti_range): Same.
7758 (extract_range_into_wide_ints): Use tree argument instead of sign
7760 (extract_range_from_multiplicative_op): Take in tree type instead
7761 of precision and sign. Adapt function for canonicalized ranges.
7762 (extract_range_from_binary_expr): Pass type to
7763 extract_range_from_multiplicative_op.
7764 Adapt for canonicalized ranges.
7765 (extract_range_from_unary_expr): Same.
7766 (value_range_base::intersect_helper): Adjust for canonicalized
7768 (value_range_base::union_helper): Same.
7769 (value_range_base::normalize_symbolics): New.
7770 * tree-vrp.h (class value_range_base): Remove
7771 set_and_canonicalize.
7772 New prototype for normalize_symbolics.
7773 (class value_range): Remove set_and_canonicalize.
7774 (vrp_val_min): Adjust prototype.
7775 (vrp_val_max): Same.
7777 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7778 instead of set_and_canonicalize.
7780 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7783 * tree-vect-stmts.c (vectorizable_call): Check that the function
7784 is a BUILT_IN_MD function before passing it to
7785 targetm.vectorize.builtin_md_vectorized_function.
7787 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7789 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7790 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7791 (aarch64_select_early_remat_modes): Use it.
7793 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7795 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7796 16 for SVE predicates even if they are fixed-length.
7798 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7800 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7801 operand order match the MOV /Z alias.
7803 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7805 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7806 the vector pattern as an aarch64_svpattern argument. Update the
7807 overloaded caller accordingly.
7808 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7809 (aarch64_output_sve_vector_inc_dec): Likewise.
7811 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7813 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7814 multiplication case, try to compute VG * (lowest set bit) directly
7815 rather than always basing the multiplication on VG. Use
7816 expand_mult for the multiplication if we can.
7818 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7820 * config/aarch64/aarch64-protos.h
7821 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7822 (aarch64_sve_inc_dec_immediate_p): Rename to...
7823 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7824 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7825 (aarch64_output_sve_scalar_inc_dec): Declare.
7826 (aarch64_output_sve_inc_dec_immediate): Rename to...
7827 (aarch64_output_sve_vector_inc_dec): ...this.
7828 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7829 (aarch64_output_sve_scalar_inc_dec): New functions.
7830 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7831 arguments. Only handle true ADDVL and ADDPL instructions;
7832 don't emit an INC or DEC.
7833 (aarch64_sve_inc_dec_immediate_p): Rename to...
7834 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7835 (aarch64_output_sve_inc_dec_immediate): Rename to...
7836 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7837 aarch64_sve_vector_inc_dec_immediate_p.
7838 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7839 (aarch64_sve_plus_immediate): New predicates.
7840 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7841 rather than aarch64_sve_addvl_addpl_immediate.
7842 (aarch64_sve_inc_dec_immediate): Rename to...
7843 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7844 aarch64_sve_vector_inc_dec_immediate_p.
7845 (aarch64_sve_add_operand): Update accordingly.
7846 * config/aarch64/constraints.md (Uai): New constraint.
7847 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7848 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7849 operand into a register if it satisfies aarch64_sve_plus_immediate.
7850 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7851 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7852 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7853 aarch64_output_sve_vector_inc_dec instead of
7854 aarch64_output_sve_inc_dec_immediate.
7856 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7858 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7859 (UNSPEC_REVW): New constants.
7860 (elem_bits): New mode attribute.
7861 (SVE_INT_UNARY): New int iterator.
7862 (optab): Handle UNSPEC_REV[BHW].
7863 (sve_int_op): New int attribute.
7864 (min_elem_bits): Handle VNx16QI and the predicate modes.
7865 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7866 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7867 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7868 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7869 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7870 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7871 unspecs based on the total width of the reversed data.
7872 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7873 reinterpret followed by a subreg on big-endian targets.
7875 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7876 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7878 * config/aarch64/aarch64-sve.md
7879 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7880 alternatives in which one of the inputs is in the same register
7883 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7885 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7886 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7888 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7890 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7891 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7893 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7894 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7896 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7897 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7898 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7900 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7901 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7903 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7904 Add an alternative that uses reversed shifts.
7906 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7908 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7911 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7913 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7914 a commutativity marker.
7916 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7917 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7919 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7920 (aarch64_prepare_sve_cond_int_fma): Declare.
7921 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7922 (aarch64_prepare_sve_int_fma): New functions.
7923 (aarch64_prepare_sve_cond_int_fma): Likewise.
7924 * config/aarch64/aarch64-sve.md
7925 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7926 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7927 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7928 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7929 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7930 (*madd<mode>): Rename to...
7931 (*fma<mode>4): ...this.
7932 (*msub<mode>): Rename to...
7933 (*fnma<mode>4): ...this.
7935 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7936 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7938 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7939 Print 2.0 naturally.
7940 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7941 * config/aarch64/predicates.md
7942 (aarch64_sve_float_negated_arith_immediate): New predicate,
7943 renamed from aarch64_sve_float_arith_with_sub_immediate.
7944 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7945 positive and negative constants.
7946 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7947 or an aarch64_sve_float_arith_with_sub_immediate.
7948 * config/aarch64/constraints.md (vsN): Use
7949 aarch64_sve_float_negated_arith_immediate.
7950 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7952 (sve_pred_fp_rhs2_immediate): New int attribute.
7953 * config/aarch64/aarch64-sve.md
7954 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7955 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7956 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7957 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7958 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7959 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7961 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7962 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7964 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7965 (*aarch64_cond_abd<SVE_F:mode>_3)
7966 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7968 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7969 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7971 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7972 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7974 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7975 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7977 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7978 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7979 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7980 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7982 * optabs.h (create_convert_operand_from): Expand comment.
7983 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7984 when mapping scalar rtxes to vector operands.
7985 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7986 ashiftrt and lshiftrt.
7987 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7988 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7989 (*cond_<optab><mode>_any_const): New patterns.
7991 2019-08-15 Martin Liska <mliska@suse.cz>
7994 * cgraph.c (cgraph_node::remove): When setting
7995 n->origin = NULL for all nested functions, reset
7998 2019-08-15 Martin Liska <mliska@suse.cz>
8000 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
8003 2019-08-15 Martin Liska <mliska@suse.cz>
8006 * passes.c (order): Remove.
8007 (uid_hash_t): Likewise).
8008 (remove_cgraph_node_from_order): Remove from set
8009 of pointers (cgraph_node *).
8010 (insert_cgraph_node_to_order): New.
8011 (duplicate_cgraph_node_to_order): New.
8012 (do_per_function_toporder): Register all 3 cgraph hooks.
8013 Skip removed_nodes now as we know about all of them.
8015 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
8017 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
8018 <case E_V8QImode>: Use vector_set path for
8019 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8020 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
8021 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8023 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
8025 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
8027 2019-08-14 Martin Sebor <msebor@redhat.com>
8029 PR tree-optimization/91294
8030 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
8031 source length as exact.
8033 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
8035 * doc/extend.texi: Add "noinit" attribute documentation.
8036 * doc/sourcebuild.texi: Add noinit effective target documentation.
8037 * varasm.c (default_section_type_flags): Add support for "noinit"
8039 (default_elf_select_section): Add support for "noinit" attribute.
8040 * config/msp430/msp430.c (msp430_attribute_table): Remove
8043 2019-08-14 Richard Biener <rguenther@suse.de>
8044 Uroš Bizjak <ubizjak@gmail.com>
8047 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
8049 (scalar_chain::smode): New member.
8050 (scalar_chain::vmode): Likewise.
8051 (dimode_scalar_chain): Rename to...
8052 (general_scalar_chain): ... this.
8053 (general_scalar_chain::general_scalar_chain): Take mode arguments.
8054 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
8055 base with TImode and V1TImode.
8056 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
8057 (general_scalar_chain::vector_const_cost): Adjust for SImode
8059 (general_scalar_chain::compute_convert_gain): Likewise. Add
8060 {S,U}{MIN,MAX} support.
8061 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
8062 (general_scalar_chain::make_vector_copies): Likewise. Handle
8063 non-DImode chains appropriately.
8064 (general_scalar_chain::convert_reg): Likewise.
8065 (general_scalar_chain::convert_op): Likewise.
8066 (general_scalar_chain::convert_insn): Likewise. Add
8067 fatal_insn_not_found if the result is not recognized.
8068 (convertible_comparison_p): Pass in the scalar mode and use that.
8069 (general_scalar_to_vector_candidate_p): Likewise. Rename from
8070 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
8071 (scalar_to_vector_candidate_p): Remove by inlining into single
8073 (general_remove_non_convertible_regs): Rename from
8074 dimode_remove_non_convertible_regs.
8075 (remove_non_convertible_regs): Remove by inlining into single caller.
8076 (convert_scalars_to_vector): Handle SImode and DImode chains
8077 in addition to TImode chains.
8078 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
8079 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
8080 (*<maxmin>di3_doubleword): Likewise.
8082 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8083 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8085 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
8086 (*cond_bic<mode>_any): New patterns.
8088 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8090 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
8091 take the equivalent mask, as well as a bit count.
8092 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
8093 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
8094 (aarch64_sve_pred_and_operand): New predicates.
8095 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
8097 * config/aarch64/aarch64-sve.md
8098 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
8099 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
8101 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8103 * config/aarch64/aarch64-sve.md
8104 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8105 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
8108 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8109 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8111 * config/aarch64/aarch64-sve.md
8112 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
8113 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
8115 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8116 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8118 * config/aarch64/aarch64-sve.md
8119 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
8120 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
8122 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8124 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
8125 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
8128 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8129 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8131 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
8133 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8134 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8136 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
8137 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
8138 (aarch64_print_operand): Add support for %I.
8139 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
8140 Bitcast floating-point constants to the corresponding integer constant.
8141 (aarch64_float_const_representable_p): Handle vectors as well
8143 (aarch64_expand_sve_vcond): Make sure that the operands are valid
8144 for the new vcond_mask_<mode><vpred> expander.
8145 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
8146 test aarch64_float_const_representable_p.
8147 (aarch64_sve_reg_or_dup_imm): New predicate.
8148 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
8149 gen_vcond_mask_<mode><vpred> instead of
8150 gen_aarch64_sve_dup<mode>_const.
8151 (vcond_mask_<mode><vpred>): Turn into a define_expand that
8152 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
8153 for operands 1 and 2 respectively. Force operand 2 into a
8154 register if operand 1 is a register. Fold old define_insn...
8155 (aarch64_sve_dup<mode>_const): ...and this define_insn...
8156 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
8157 floating-point constants that can be moved as integers. Add
8158 alternatives for MOV /M and FMOV /M.
8159 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
8160 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
8161 1 and 2 respectively.
8162 * config/aarch64/constraints.md (Ufc): Handle vectors as well
8164 (vss): New constraint.
8166 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8168 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
8169 (aarch64_sve_float_maxmin_operand): New predicates.
8170 * config/aarch64/constraints.md (vsB): New constraint.
8172 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
8173 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
8175 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
8176 Use aarch64_sve_float_maxmin_operand for operand 2.
8177 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
8178 Add alternatives for the constant forms.
8180 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8182 * config/aarch64/constraints.md (vsb): New constraint.
8183 (vsm): Generalize description.
8184 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
8186 (sve_imm_con): Handle smax, smin, umax and umin.
8187 (sve_imm_prefix): New code attribute.
8188 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
8189 (aarch64_sve_vsb_operand): New predicates.
8190 (aarch64_sve_mul_immediate): Rename to...
8191 (aarch64_sve_vsm_immediate): ...this.
8192 (aarch64_sve_mul_operand): Rename to...
8193 (aarch64_sve_vsm_operand): ...this.
8194 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
8195 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
8196 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
8197 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
8198 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
8199 add movprfx support for the immediate alternatives.
8200 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
8202 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
8205 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8207 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
8208 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
8209 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
8211 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8213 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
8214 (optab, sve_int_op): Handle them.
8215 * config/aarch64/aarch64-sve.md: Expand comment.
8217 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8219 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
8220 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
8221 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
8223 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8225 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
8226 (aarch64_expand_sve_const_pred_trn): New functions.
8227 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
8228 use the above functions when the parameter is true.
8229 (aarch64_expand_sve_const_pred): Update call accordingly.
8230 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
8232 (@aarch64_sve_<perm_insn><mode>): ...this.
8234 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8236 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
8238 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
8239 (aarch64_sve_emit_int_cmp): New functions.
8240 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
8241 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
8242 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
8243 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
8244 (UNSPEC_PRED_Z): New unspec.
8245 (set_clobber_cc_nzc): Delete.
8246 * config/aarch64/aarch64-sve.md: Add a block comment about
8248 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
8249 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
8250 the old pattern with that name. Use UNSPEC_PRED_Z instead of
8252 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
8253 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
8254 check for compatible predicates.
8255 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
8256 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
8257 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
8260 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8262 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
8263 * config/aarch64/aarch64-sve.md: Add a section describing it.
8264 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
8265 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
8266 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
8267 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
8268 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
8269 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
8270 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
8271 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
8272 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
8273 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
8274 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
8275 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
8276 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
8277 (aarch64_evpc_rev_local): Update accordingly.
8279 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8281 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
8283 (SVE_BHSI, SVE_SDI): Tweak comment.
8284 (SVE_HSDI): Likewise. Fix definition.
8285 (SVE_SDF): New mode iterator.
8286 (elem_bits): New mode attribute.
8287 (SVE_COND_FCVT): New int iterator.
8288 * config/aarch64/aarch64-sve.md
8289 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
8290 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
8291 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
8292 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8293 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8294 ...these new patterns.
8295 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
8296 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
8297 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
8299 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
8300 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
8301 ...these new patterns.
8302 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
8303 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
8304 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
8305 ...this new pattern.
8306 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
8307 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
8308 ...this new pattern.
8309 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
8311 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8313 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
8314 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
8315 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
8317 (optab, su): Handle them.
8318 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
8319 * config/aarch64/aarch64-sve.md
8320 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8321 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8322 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8323 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8324 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8325 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8326 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8327 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8328 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8330 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8331 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8332 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8333 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8334 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8335 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8336 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8337 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8338 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8339 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8340 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8341 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8342 of UNSPEC_FLOAT_CONVERT.
8343 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8344 aarch64_sve_extend<mode><Vwide>2.
8346 2019-08-14 Richard Biener <rguenther@suse.de>
8349 * config/i386/i386-features.c
8350 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8351 individual instruction gain. Fix reg-reg copy GRP cost. Use
8352 ix86_cost->sse_op for vector instruction costs.
8354 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8356 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8357 (cmp_op): Handle it.
8358 (SVE_COND_FP_CMP): Rename to...
8359 (SVE_COND_FP_CMP_I0): ...this.
8360 (SVE_FP_CMP): Remove.
8361 * config/aarch64/aarch64-sve.md
8362 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8363 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8364 using unspecs to represent the comparison.
8365 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8366 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8368 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8369 (aarch64_unspec_cond_code): Move after integer code. Handle
8371 (aarch64_emit_sve_predicated_cond): Replace with...
8372 (aarch64_emit_sve_fp_cond): ...this new function.
8373 (aarch64_emit_sve_or_conds): Replace with...
8374 (aarch64_emit_sve_or_fp_conds): ...this new function.
8375 (aarch64_emit_sve_inverted_cond): Replace with...
8376 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8377 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8379 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8381 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8382 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8383 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8384 SVE_HSD instead of SVE_SD.
8386 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8387 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8389 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8391 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8393 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8394 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8395 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8396 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8397 (*div<SVE_F:mode>3): Generalize to...
8398 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8400 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8401 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8403 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8405 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8407 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8409 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8411 * config/aarch64/aarch64-sve.md: Add a block comment about the
8412 handling of predicated FP operations.
8413 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8414 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8415 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8416 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8417 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8419 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8420 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8422 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8423 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8424 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8425 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8426 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8427 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8428 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8429 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8430 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8431 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8432 strictness operands. Use aarch64_sve_pred_dominates_p to check
8433 whether the predicate on the conditional operation is suitable
8434 for merging. Split patterns into the canonical equal-predicate form.
8435 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8436 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8438 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8439 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8441 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8442 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8443 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8445 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8446 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8449 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8450 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8452 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8453 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8454 actually has, rather than relying on REG_EQUAL notes.
8455 Make the insn operand order match the SVE operand order.
8456 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8457 the SVE operand order.
8459 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8461 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8462 (aarch64_emit_set_immediate): Likewise.
8463 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8464 (aarch64_pfalse_reg): Likewise.
8465 (aarch64_convert_sve_data_to_pred): New function.
8466 (aarch64_sve_move_pred_via_while): Take an optional target register
8467 and the required register mode.
8468 (aarch64_expand_sve_const_pred_1): New function.
8469 (aarch64_expand_sve_const_pred): Likewise.
8470 (aarch64_expand_mov_immediate): Build an all-true predicate
8471 if the significant bits of the immediate are all true. Use
8472 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8473 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8474 before register allocation.
8475 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8476 a VNx16BI PTRUE when splitting the memory alternative.
8477 (vec_duplicate<mode>): Update accordingly.
8478 (*pred_cmp<cmp_op><mode>): Rename to...
8479 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8481 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8483 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8484 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8485 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8486 (UNSPEC_PTEST): New unspec.
8487 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8488 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8489 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8490 * config/aarch64/aarch64-sve.md: Add a new section describing the
8491 handling of UNSPEC_PTEST.
8492 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8493 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8494 (ptest_ptrue<mode>): Replace with...
8495 (aarch64_ptest<mode>): ...this new pattern.
8496 (cbranch<mode>4): Update after above changes.
8497 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8499 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8500 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8501 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8503 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8506 * builtins.c (builtin_with_linkage_p): New function.
8507 * builtins.h (builtin_with_linkage_p): New function.
8508 * symtab.c (write_symbol): Remove redundant assert.
8509 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8510 Remove FIXME and use builtin_with_linkage_p.
8512 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8515 * tree-core.h (function_decl::function_code): Change type to
8517 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8518 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8519 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8520 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8522 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8523 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8524 (fndecl_built_in_p): Change the type of the "name" argument to
8526 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8527 after check for DECL_BUILT_IN_CLASS.
8528 * cgraphclones.c (build_function_decl_skip_args): Use
8529 set_decl_built_in_function.
8530 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8531 * ipa-split.c (split_function): Likewise.
8532 * langhooks.c (add_builtin_function_common): Likewise.
8533 * omp-simd-clone.c (simd_clone_create): Likewise.
8534 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8535 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8536 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8538 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8539 instead of DECL_FUNCTION_CODE.
8540 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8541 instead of DECL_FUNCTION_CODE.
8542 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8543 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8544 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8545 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8546 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8547 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8548 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8549 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8550 (alpha_gimple_fold_builtin): Likewise.
8551 * config/arc/arc.c (arc_expand_builtin): Likewise.
8552 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8553 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8554 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8555 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8556 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8557 * config/frv/frv.c (frv_expand_builtin): Likewise.
8558 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8559 (gcn_expand_builtin): Likewise.
8560 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8561 (fold_builtin_cpu): Likewise.
8562 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8563 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8564 (ix86_gimple_fold_builtin): Likewise.
8565 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8566 (ia64_expand_builtin): Likewise.
8567 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8568 * config/mips/mips.c (mips_expand_builtin): Likewise.
8569 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8570 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8571 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8572 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8573 * config/pa/pa.c (pa_expand_builtin): Likewise.
8574 * config/pru/pru.c (pru_expand_builtin): Likewise.
8575 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8576 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8578 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8579 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8580 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8581 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8582 (rs6000_builtin_reciprocal): Likewise.
8583 * config/rx/rx.c (rx_expand_builtin): Likewise.
8584 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8585 * config/s390/s390.c (s390_expand_builtin): Likewise.
8586 * config/sh/sh.c (sh_expand_builtin): Likewise.
8587 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8588 (sparc_fold_builtin): Likewise.
8589 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8590 * config/spu/spu.c (spu_expand_builtin): Likewise.
8591 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8592 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8593 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8594 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8595 (xtensa_expand_builtin): Likewise.
8597 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8600 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8601 before the DECL_FUNCTION_CODE.
8602 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8603 to check for a BUILT_IN_ALLOCA call.
8604 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8605 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8606 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8607 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8608 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8609 for BUILT_IN_NORMAL functions.
8610 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8611 test for BUILT_IN_TM_ABORT.
8612 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8613 to check for a BUILT_IN_STACK_RESTORE call.
8614 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8615 * tree-ssa-threadedge.c
8616 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8617 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8618 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8619 test for a BUILT_IN_NORMAL call instead of a negative test for
8620 an internal function call.
8622 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8624 * tree.h (build_vector_a_then_b): Declare.
8625 * tree.c (build_vector_a_then_b): New function.
8626 * fold-const-call.c (fold_while_ult): Likewise.
8627 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8628 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8629 (aarch64_svpattern): New enum.
8630 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8631 constants through aarch64_expand_mov_immediate.
8632 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8633 than general_operand as the predicate for operand 1.
8634 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8635 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8637 (simd_immediate_info::simd_immediate_info): New overload that
8638 takes a scalar_int_mode and an svpattern.
8639 (simd_immediate_info::u): Add a "pattern" field.
8640 (svpattern_token): New function.
8641 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8642 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8643 (aarch64_sve_move_pred_via_while): New functions.
8644 (aarch64_expand_mov_immediate): Try using
8645 aarch64_sve_move_pred_via_while for predicates that contain N ones
8646 followed by M zeros but that do not correspond to a VLnnn pattern.
8647 (aarch64_sve_pred_valid_immediate): New function.
8648 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8649 with PTRUE and PFALSE.
8650 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8653 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8655 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8657 (darwin_override_options): Likewise.
8658 * config/darwin.h: Likewise.
8659 * config/darwin.opt: Likewise.
8660 * config/i386/i386.c (output_pic_addr_const): Likewise.
8661 * config/rs6000/darwin.h: Likewise.
8662 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8663 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8664 ... this TARGET_MACHO_SYMBOL_STUBS.
8665 (FUNCTION_PROFILER):Likewise.
8666 * config/i386/i386.h: Likewise.
8668 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8670 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8671 <case E_V2SImode>: Use vec_extr path for
8672 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8673 <case E_V8QImode>: Ditto.
8674 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8675 Use SWI48 mode iterator. Use %k to output operand 0.
8676 (*mmx_pextrw): New insn pattern.
8677 (*mmx_pextrb): Ditto.
8678 (*mmx_pextrb_zext): Ditto.
8680 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8682 * target.def (libc_has_function, libc_has_fast_function): Improve
8683 documentation strings.
8684 * doc/tm.texi: Regenerate.
8686 2019-08-13 Caroline Tice <cmtice@google.com>
8689 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8690 vtv_end.o or vtv_end_preinit.o files if !static.
8692 2019-08-13 Olivier Hainque <hainque@adacore.com>
8694 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8696 2019-08-13 Olivier Hainque <hainque@adacore.com>
8698 * rtlanal.c (tablejump_casesi_pattern): New function, to
8699 determine if a tablejump insn is a casesi dispatcher. Extracted
8700 from patch_jump_insn.
8701 * rtl.h (tablejump_casesi_pattern): Declare.
8702 * cfgrtl.c (patch_jump_insn): Use it.
8703 * dwarf2cfi.c (create_trace_edges): Use it.
8705 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8708 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8709 operand is larger than a long int.
8711 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8713 * machmode.h (opt_mode::else_mode): New function.
8714 (opt_mode::else_blk): Use it.
8715 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8716 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8717 (aarch64_gen_stepped_int_parallel): Likewise.
8718 (aarch64_stepped_int_parallel_p): Likewise.
8719 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8721 * config/aarch64/aarch64.c
8722 (aarch64_expand_sve_widened_duplicate): Delete.
8723 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8724 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8725 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8726 argument. Use early returns in the !CONST_INT_P handling.
8727 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8728 than handling some inline.
8729 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8731 (aarch64_simd_container_mode): ...here.
8732 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8733 (aarch64_sve_ld1rq_operand_p): New functions.
8734 * config/aarch64/predicates.md (descending_int_parallel)
8735 (aarch64_sve_ld1rq_operand): New predicates.
8736 * config/aarch64/constraints.md (UtQ): New constraint.
8737 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8738 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8739 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8740 (@aarch64_sve_reinterpret<mode>): New expander.
8741 (*aarch64_sve_reinterpret<mode>): New pattern.
8742 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8743 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8744 (*sve_ld1rq<Vesize>): Replace with...
8745 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8747 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8749 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8752 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8754 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8755 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8756 (msp430_check_path_for_devices): New.
8757 (parse_devices_csv_1): New.
8758 (parse_devices_csv): New.
8759 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8760 MCU data in devices.csv before using the hard-coded data.
8761 Warn if devices.csv isn't found and the MCU wasn't found in the
8762 hard-coded data either.
8763 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8764 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8765 Search for devices.csv on -I and -L paths.
8766 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8767 msp430_set_driver_var.
8768 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8770 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8771 searched for devices.csv.
8772 (mwarn-devices-csv): Document option.
8774 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8776 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8777 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8778 Use a single Dn alternative instead of separate Dz and Dm
8779 alternatives. Use aarch64_output_sve_move_immediate.
8780 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8782 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8784 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8785 (aarch64_output_ptrue): Delete.
8787 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8789 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8791 (simd_immediate_info::value, simd_immediate_info::step)
8792 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8794 (simd_immediate_info::u): ...this new union.
8795 (simd_immediate_info::simd_immediate_info): Update accordingly.
8796 (aarch64_output_simd_mov_immediate): Likewise.
8797 (aarch64_output_sve_mov_immediate): Likewise.
8799 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8801 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8803 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8804 (msp430_select_cpu): New spec function.
8805 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8807 * config/msp430/msp430-devices.c: New file.
8808 * config/msp430/msp430-devices.h: New file.
8809 * config/msp430/msp430.c: Remove msp430_mcu_data.
8810 (msp430_option_override): Use msp430_extract_mcu_data to extract
8812 (msp430_use_f5_series_hwmult): Likewise.
8813 (use_32bit_hwmult): Likewise.
8814 (msp430_no_hwmult): Likewise.
8815 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8817 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8819 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8820 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8821 Remove hard-coded MCU multilib data.
8823 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8825 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8826 based on the mode instead of testing properties of it.
8828 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8830 * doc/md.texi: Document the x and y constraints for AArch64.
8831 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8832 (FP_LO8_REGS): New reg_class.
8833 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8834 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8835 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8836 * config/aarch64/predicates.md (aarch64_simd_register): Use
8837 FP_REGNUM_P instead of checking the classes manually.
8838 * config/aarch64/constraints.md (y): New constraint.
8840 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8842 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8843 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8844 * config/aarch64/aarch64-simd.md
8845 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8846 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8847 from the asm template.
8848 * config/aarch64/aarch64-sve.md
8849 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8850 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8851 from the asm template.
8852 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8853 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8854 from the asm template.
8855 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8857 2019-08-13 Martin Liska <mliska@suse.cz>
8859 * value-prof.c (gimple_ic_transform): Add new line.
8860 Print details with MSG_NOTE.
8862 2019-08-13 Martin Liska <mliska@suse.cz>
8864 * doc/invoke.texi: Document automatic detection of jobserver.
8865 * lto-wrapper.c (run_gcc): Detect jobserver always.
8867 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8869 * config/i386/i386-expand.c (ix86_expand_vector_set)
8870 <case E_V2SImode>: Use vec_merge path for
8871 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8872 <case E_V8QImode>: Ditto.
8873 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8874 (*mmx_pinsrb): Ditto.
8876 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8880 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8881 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8882 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8883 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8884 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8886 2019-08-12 Richard Biener <rguenther@suse.de>
8889 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8892 2019-08-12 Richard Biener <rguenther@suse.de>
8895 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8896 lang_mask option, always use CL_DRIVER.
8897 (get_options_from_collect_gcc_options): Adjust.
8898 (find_and_merge_options): Likewise.
8899 (run_gcc): Likewise.
8901 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8903 * ipa-predicate.c (add_condition): Restore inverted test.
8905 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8907 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8908 (enum omp_clause_device_type_kind): New enum.
8909 (struct tree_omp_clause): Add subcode.device_type_kind.
8910 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8911 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8912 for device_type clause.
8913 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8914 * tree-pretty-print.c (dump_omp_clause): Likewise.
8917 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8920 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8922 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8923 handling spilled pseudos.
8925 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8928 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8929 to preserve the contents of the original insns.
8931 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8933 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8934 (addsi3_compare_op2): Likewise.
8936 2019-08-09 Martin Liska <mliska@suse.cz>
8938 * alias.c (alias_ptr_types_compatible_p): Strengten
8939 type comparison in LTO mode.
8941 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8944 * tree-tailcall.c (find_tail_calls): Reject calls that might
8945 read from an escaped RESULT_DECL.
8947 2019-08-09 Martin Liska <mliska@suse.cz>
8949 * doc/invoke.texi: Document the option value.
8950 * lto-wrapper.c (run_gcc): Set auto_parallel
8951 only with -flto=auto.
8953 2019-08-09 Martin Liska <mliska@suse.cz>
8955 * opts.c (common_handle_option): Error for an invalid argument
8958 2019-08-09 Martin Liska <mliska@suse.cz>
8960 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8961 use dump_printf to report optimization.
8962 (sem_variable::merge): Likwise.
8963 (sem_item_optimizer::merge_classes): Use dump_printf to report
8966 2019-08-09 Martin Liska <mliska@suse.cz>
8968 * value-prof.c (gimple_divmod_fixed_value_transform):
8969 Use dump_printf_loc.
8970 (gimple_mod_pow2_value_transform): Likewise.
8971 (gimple_mod_subtract_transform): Likewise.
8972 (init_node_map): Likewise.
8973 (gimple_ic_transform): Likewise.
8974 (gimple_stringops_transform): Likewise.
8976 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8978 * doc/extend.texi: Add const qualifier to ld intrinsics.
8980 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8982 * config/rs6000/dfp.md (D64_D128): Rename to ...
8983 (DDTD): ... this, throughout.
8984 (dfp_suffix): Rename to ...
8985 (q): ... this, throughout.
8987 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8989 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8990 (dfp_suffix): Ditto.
8991 (adddd3, addtd3): Merge to ...
8992 (add<mode>3 for D64_D128): ... this.
8993 (subdd3, subtd3): Merge to ...
8994 (sub<mode>3 for D64_D128): ... this.
8995 (muldd3, multd3): Merge to ...
8996 (mul<mode>3 for D64_D128): ... this.
8997 (divdd3, divtd3): Merge to ...
8998 (div<mode>3 for D64_D128): ... this.
8999 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
9000 (*cmp<mode>_internal1 for D64_D128): ... this.
9001 (ftruncdd2, ftrunctd2): Merge to ...
9002 (ftrunc<mode>2 for D64_D128): ... this.
9003 (fixdddi2, fixtddi2): Merge to ...
9004 (fix<mode>di2 for D64_D128): ... this.
9006 2019-08-08 Jim Wilson <jimw@sifive.com>
9009 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
9010 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
9011 Pass into recursive call.
9012 (riscv_flatten_aggregate_argument): New arg. Pass to
9013 riscv_flatten_aggregate_field.
9014 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
9015 riscv_flatten_aggregate_argument twice, with false and true as last
9016 arg. Process result twice. Compare results and warn if different.
9017 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
9019 2019-08-08 Martin Liska <mliska@suse.cz>
9022 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
9023 * lto-wrapper.c (jobserver_active_p): Likewise.
9025 2019-08-08 Martin Liska <mliska@suse.cz>
9027 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
9028 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
9029 (create_version_clone_with_body): Likewise.
9031 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9033 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
9034 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
9035 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
9036 GOVD_EXPLICIT flags.
9037 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
9038 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
9039 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
9040 call install_var_field with mask 11 instead of 3.
9041 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
9042 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
9044 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9046 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
9047 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
9049 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9051 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
9052 MOVPRFX alternatives. Make the GPR alternatives more expensive
9055 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9057 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
9058 Disparage the GPR alternative relative to the FPR one.
9059 Fix handling of 8-bit and 16-bit FPR values.
9061 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9063 * config/aarch64/iterators.md (BITWISEV): Delete.
9064 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
9065 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
9066 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9067 UNSPEC_FMINNMV, UNSPEC_FMINV.
9068 (bit_reduc_op): Delete.
9069 (sve_int_op): New int attribute.
9070 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9071 UNSPEC_FMINNMV, UNSPEC_FMINV.
9072 * config/aarch64/aarch64-sve.md
9073 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9074 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9075 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
9076 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
9077 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
9078 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
9080 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
9081 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
9082 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
9083 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
9084 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
9087 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9089 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
9090 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
9091 (fms<mode>4, *fms<mode>4): Replace with...
9092 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
9093 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
9094 Use unspecs instead of rtx codes.
9095 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
9096 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
9098 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9100 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
9102 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
9103 * config/aarch64/aarch64-sve.md
9104 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
9105 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
9106 use a single unspec for the rhs.
9107 (*<su><maxmin><mode>3): Delete.
9108 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
9110 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9112 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
9113 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
9114 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
9115 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
9116 (optab, sve_fp_op): Handle them.
9117 (SVE_FP_UNARY): Delete.
9118 (optab): Remove sqrt entry.
9119 (sve_fp_op): Remove neg, abs and sqrt entries.
9120 (SVE_COND_FP_UNARY): New int iterator.
9121 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
9122 (*<frint_pattern><mode>2): Delete.
9123 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9124 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9125 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9126 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9128 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9130 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
9132 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9134 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
9135 (UNSPEC_COND_FADD): ...this.
9136 (UNSPEC_COND_SUB): Rename to...
9137 (UNSPEC_COND_FSUB): ...this.
9138 (UNSPEC_COND_MUL): Rename to...
9139 (UNSPEC_COND_FMUL): ...this.
9140 (UNSPEC_COND_DIV): Rename to...
9141 (UNSPEC_COND_FDIV): ...this.
9142 (UNSPEC_COND_MAX): Rename to...
9143 (UNSPEC_COND_FMAXNM): ...this.
9144 (UNSPEC_COND_MIN): Rename to...
9145 (UNSPEC_COND_FMINNM): ...this.
9146 (UNSPEC_COND_LT): Rename to...
9147 (UNSPEC_COND_FCMLT): ...this.
9148 (UNSPEC_COND_LE): Rename to...
9149 (UNSPEC_COND_FCMLE): ...this.
9150 (UNSPEC_COND_EQ): Rename to...
9151 (UNSPEC_COND_FCMEQ): ...this.
9152 (UNSPEC_COND_NE): Rename to...
9153 (UNSPEC_COND_FCMNE): ...this.
9154 (UNSPEC_COND_GE): Rename to...
9155 (UNSPEC_COND_FCMGE): ...this.
9156 (UNSPEC_COND_GT): Rename to...
9157 (UNSPEC_COND_FCMGT): ...this.
9158 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
9159 (sve_fp_op_rev): Update accordingly.
9160 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
9162 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9164 * config/aarch64/aarch64-sve.md: Reorganize contents and add
9166 * config/aarch64/check-sve-md.awk: New file.
9167 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
9168 (insn-conditions.md): Depend on it.
9170 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
9173 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
9174 (*negsi2_cmpz_zext): Ditto.
9176 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9178 * config/aarch64/iterators.md (commutative): Remove.
9180 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
9183 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
9184 processing COLLECT_GCC_OPTIONS.
9185 (run_gcc): Likewise.
9187 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
9189 PR tree-optimization/91109
9190 * lra-remat.c (update_scratch_ops): Remove assignment of the
9193 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9195 * data-streamer.h (streamer_write_poly_uint64): Declare.
9196 (streamer_read_poly_uint64): Likewise.
9197 * data-streamer-in.c (streamer_read_poly_uint64): New function.
9198 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
9199 * ipa-predicate.h (condition::size): Turn into a poly_int64.
9200 (add_condition): Take a poly_int64 size.
9201 * ipa-predicate.c (add_condition): Likewise.
9202 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
9203 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
9204 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
9205 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
9206 condition::size as a poly_int64.
9207 (unmodified_parm_1): Take a poly_int64 size pointer.
9208 (unmodified_parm): Likewise.
9209 (unmodified_parm_or_parm_agg_item): Likewise.
9210 (set_cond_stmt_execution_predicate): Update accordingly.
9211 (set_switch_stmt_execution_predicate): Likewise.
9212 (will_be_nonconstant_expr_predicate): Likewise.
9213 (will_be_nonconstant_predicate): Likewise.
9214 (inline_read_section): Stream condition::size as a poly_int.
9215 (ipa_fn_summary_write): Likewise.
9217 2019-08-07 Martin Liska <mliska@suse.cz>
9219 * fold-const.c (twoval_comparison_p): Replace int
9220 with bool as a return type.
9221 (simple_operand_p): Likewise.
9222 (operand_equal_p): Replace int with bool as a return type.
9223 * fold-const.h (operand_equal_p): Likewise.
9225 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9227 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
9228 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
9229 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9230 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
9231 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
9232 * tree-pretty-print.c (dump_omp_clause): Likewise.
9233 * tree-nested.c (convert_nonlocal_omp_clauses,
9234 convert_local_omp_clauses): Likewise.
9235 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9237 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
9238 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
9239 clause with array or reference to array types, no matter what type
9240 except for reference it has.
9242 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
9244 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
9246 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
9248 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
9249 (arch_canonicalize): Support rv32g and rv64g and fix error
9252 2019-08-06 Martin Liska <mliska@suse.cz>
9254 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
9255 and DECL_IS_OPERATOR_DELETE_P.
9257 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9259 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
9260 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
9261 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
9262 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
9263 (gimplify_omp_for): Don't do C++ random access iterator clause
9264 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
9265 don't predetermine the artificial iterator in case of C++ random
9266 access iterators as lastprivate, but private. For OMP_LOOP, force
9267 bind expr around simd body and force for_pre_body before the
9268 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
9269 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
9270 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
9271 diff var of C++ random access iterators. Handle
9272 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
9273 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
9274 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
9275 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
9276 * omp-low.c (lower_rec_input_clauses): For
9277 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
9278 variables instead of default constructing them.
9279 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
9280 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
9281 is_taskloop_ctx check from the assert to the guarding condition.
9283 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
9285 * config/riscv/multilib-generator: (canonical_order): New.
9286 (arch_canonicalize): Dito.
9287 Apply arch_canonicalize for alts.
9289 2019-08-05 Martin Sebor <msebor@redhat.com>
9291 * doc/extend.texi (Common Variable Attributes): Document alias
9294 2019-08-05 Marek Polacek <polacek@redhat.com>
9296 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
9297 * doc/invoke.texi: Document -Wcomma-subscript.
9299 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9301 * tree-core.h (tree_function_decl): Make function_code an
9302 independent field. Group the remaining bitfields into bytes
9303 and move decl_type so that it contines to be at a byte boundary.
9304 Leave 12 bits for future expansion.
9306 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9308 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
9309 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
9310 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
9313 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9315 * gimple.h (gimple_move_vops): Declare.
9316 * gimple.c (gimple_move_vops): New function
9317 * gimple-fold.c (replace_call_with_call_and_fold)
9318 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
9319 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9320 (gimple_fold_call): Use it.
9321 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9322 * tree-call-cdce.c (use_internal_fn): Likewise.
9323 * tree-if-conv.c (predicate_load_or_store): Likewise.
9324 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9325 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9326 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9327 (update_call_from_tree): Likewise.
9328 * tree-vect-stmts.c (vectorizable_load): Likewise.
9329 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9331 2019-08-05 Martin Liska <mliska@suse.cz>
9334 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9336 (eliminate_unnecessary_stmts): Likewise.
9338 2019-08-05 Richard Biener <rguenther@suse.de>
9341 * fold-const.c (get_array_ctor_element_at_index): Create
9342 offset_ints according to the sign of the index type and treat
9343 that as signed if it is obviously so.
9345 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9348 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9349 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9350 _mm256_storeu2_m128i): New function.
9352 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9354 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9355 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9357 2019-08-05 Alan Modra <amodra@gmail.com>
9360 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9361 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9363 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9365 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9366 bug that was fixed in Tcl 8.6.1.
9368 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9370 * config/rs6000/future.md: New file.
9371 * config/rs6000/rs6000.md: Include future.md.
9372 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9374 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9376 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9377 check to use targetm.slow_unaligned_access instead.
9379 * function.c (assign_param_data_one): Remove unused data members.
9381 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9383 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9384 build_distinct_type_copy.
9385 (simd_clone_adjust_argument_types): Ditto.
9386 (simd_clone_adjust): Call build_distinct_type_copy here.
9387 (expand_simd_clones): Ditto.
9389 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9392 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9394 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9396 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9397 from 'const void *'.
9398 (sort_locs_in_loop_postorder_cmp): Likewise.
9400 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9402 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9403 (hot-bb-count-ws-permille): Likewise.
9404 (hot-bb-frequency-fraction): Likewise.
9405 (unlikely-bb-count-fraction): Likewise.
9406 * params.def (hot-bb-count-fraction): Rework description.
9407 (hot-bb-count-ws-permille): Likewise.
9408 (hot-bb-frequency-fraction): Likewise.
9409 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9410 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9412 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9415 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9418 2019-08-02 Richard Biener <rguenther@suse.de>
9420 * vec.h (vec::sort): Add gcc_qsort_r support.
9421 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9422 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9423 to gcc_qsort_r style callback.
9424 (sort_locs_in_loop_postorder_cmp): Likewise.
9425 (analyze_memory_references): Use gcc_sort_r interfaces.
9426 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9428 2019-08-02 Martin Liska <mliska@suse.cz>
9431 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9432 to detect working job server.
9433 (driver::detect_jobserver): Test whether jobserver
9434 is active from GCC driver. That will prevent situation where
9435 GCC is invoked from a LD plugin and the linker already uses
9436 file descriptors suggested by make. That leads to a wrong
9438 * gcc.h (driver): Add detect_jobserver.
9439 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9440 not scanning for --jobserver-auth prefix.
9442 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9444 PR tree-optimization/91201
9445 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9446 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9449 2019-08-01 Martin Sebor <msebor@redhat.com>
9452 * tree.c (type_initializer_zero_p): Define.
9453 * tree.h (type_initializer_zero_p): New function.
9455 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9457 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9459 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9461 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9462 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9463 * predict.c (maybe_hot_count_p): Likewise.
9464 (maybe_hot_bb_p): Tweak comment.
9465 (maybe_hot_edge_p): Likewise.
9466 (probably_never_executed): Likewise. Minor tweak.
9467 (probably_never_executed_bb_p): Likewise.
9468 (unlikely_executed_edge_p): Likewise.
9469 (probably_never_executed_edge_p): Likewise.
9470 (optimize_function_for_size_p): Likewise.
9471 (optimize_function_for_speed_p): Likewise.
9472 (function_optimization_type): Likewise.
9473 (optimize_bb_for_size_p): Likewise.
9474 (optimize_bb_for_speed_p): Likewise.
9475 (bb_optimization_type): Likewise.
9476 (optimize_edge_for_size_p): Likewise.
9477 (optimize_edge_for_speed_p): Likewise.
9478 (optimize_insn_for_size_p): Likewise.
9479 (optimize_insn_for_speed_p): Likewise.
9480 (optimize_loop_for_size_p): Likewise.
9481 (optimize_loop_for_speed_p): Likewise.
9482 (optimize_loop_nest_for_speed_p): Likewise.
9483 (optimize_loop_nest_for_size_p): Likewise.
9484 (predictable_edge_p): Likewise.
9485 (handle_missing_profiles): Minor tweak.
9487 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9489 * config/rs6000/predicates.md (pcrel_external_address): Update
9492 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9495 * config/i386/mmx.md (usadv8qi): New expander.
9497 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9500 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9501 with reserved names that are in a system header.
9503 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9505 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9506 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9507 (*vec_extractv2si_0_zext): Ditto.
9508 (*vec_extractv2si_1): Add (rm,x) alternative.
9509 (*vec_extractv2si_1_zext): New insn pattern.
9510 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9513 2019-08-01 Richard Biener <rguenther@suse.de>
9515 * domwalk.c (bb_postorder): Remove static variable.
9516 (cmp_bb_postorder): Adjust.
9517 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9518 (dom_walker::walk): Adjust.
9520 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9522 * sort.cc (sort_r_ctx): New struct.
9523 (reorder23): Make templated on context type.
9525 (cmp1): Ditto. Adjust signature.
9528 [CHECKING_P] (cmp2to3): New static function. Use it...
9529 (gcc_qsort) [CHECKING_P]: ...here.
9530 (gcc_sort_r): New function.
9531 * system.h (sort_r_cmp_fn): New function typedef.
9532 (qsort_chk): Adjust signature.
9533 (gcc_sort_r): Declare.
9534 * vec.c (qsort_chk_error): Adjust.
9535 (qsort_chk): Adjust.
9537 2019-08-01 Richard Biener <rguenther@suse.de>
9539 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9540 (compute_antic): Localize it here.
9542 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9544 * common/config/riscv/riscv-common.c: Check -march string ends
9547 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9549 * ipa-devirt.c (type_warning_cmp): Make static.
9550 (decl_warning_cmp): Ditto.
9552 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9555 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9556 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9557 use of deleted rs6000_dejagnu_cpu_index variable.
9558 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9559 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9560 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9561 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9562 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9563 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9565 2019-07-31 Richard Biener <rguenther@suse.de>
9567 PR tree-optimization/91280
9568 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9569 Decompose MEM_REF manually for offset handling.
9571 2019-07-31 Richard Biener <rguenther@suse.de>
9573 PR tree-optimization/91293
9574 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9577 2019-07-31 Matt Thomas <matt@3am-software.com>
9578 Nick Hudson <nick@nthcliff.demon.co.uk>
9579 Matthew Green <mrg@eterna.com.au>
9580 Maya Rashish <coypu@sdf.org>
9582 * config.gcc (hppa*-*-netbsd*): New target.
9583 * config/pa/pa-netbsd.h: New file.
9584 * config/pa/pa32-netbsd.h: New file.
9586 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9588 PR tree-optimization/91201
9589 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9591 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9593 * config/gcn/gcn-valu.md
9594 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9595 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9596 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9597 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9598 struct ilist. Add nops for delayeduse insns.
9599 * config/gcn/gcn.md (delayeduse): New attribute.
9600 (*movbi): Remove s_waitcnt from stores.
9601 (*mov<mode>_insn): Likewise.
9602 (*movti_insn): Likewise. Add delayeduse attribute.
9603 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9604 (atomic_store<mode>): Remove or adjust s_waitcnt.
9606 2019-07-31 Richard Biener <rguenther@suse.de>
9608 * vr-values.h (vr_values::swap_vr_value): New.
9609 (vr_values::free_value_range): likewise.
9610 * vr-values.c (vr_values::swap_vr_value): Implement.
9611 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9612 Do not return a range or take a var.
9613 (evrp_range_analyzer::stack): Change back to recording a non-const
9615 * gimple-ssa-evrp-analyze.c
9616 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9618 (evrp_range_analyzer::pop_to_marker): Adjust.
9619 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9620 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9621 no longer needed value-range.
9623 2019-07-31 Martin Liska <mliska@suse.cz>
9625 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9626 have size and (or) alignment as 2nd and later arguments.
9627 Mark all of them as necessary.
9629 2019-07-31 Richard Biener <rguenther@suse.de>
9631 PR tree-optimization/91178
9632 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9635 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9637 PR tree-optimization/91201
9638 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9639 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9641 (reduc_plus_scal_<mode>): Improve formatting by introducing
9644 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9646 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9647 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9648 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9649 (aarch64_init_tme_builtins): New.
9650 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9651 (aarch64_expand_builtin_tme): New.
9652 (aarch64_expand_builtin): Handle TME builtins.
9653 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9654 __ARM_FEATURE_TME when enabled.
9655 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9656 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9658 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9659 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9661 (tstart, ttest, tcommit, tcancel): New instructions.
9662 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9663 (__tcancel, __ttest): New.
9664 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9665 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9666 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9667 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9668 * config/arm/types.md: Add new tme type attr.
9669 * doc/invoke.texi: Document "tme".
9671 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9673 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9674 warn_unused_result attribute.
9675 (cmse_check_address_range): Add warn_unused_result attribute.
9677 2019-07-31 Richard Biener <rguenther@suse.de>
9679 PR tree-optimization/91257
9680 * tree-vrp.c (union_ranges): Unify equality and less tests
9681 by using compare_values. Re-order cheap tests first.
9683 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9686 * gimplify.c (gimplify_omp_for): If for class iterator on
9687 distribute parallel for there is no data sharing clause
9688 on inner_for_stmt, look for private clause on combined
9689 parallel too and if found, move it to inner_for_stmt.
9691 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9693 * lra-int.h (lra_operand_data): Remove early_clobber field.
9694 (lra_insn_reg): Likewise.
9695 * lra.c (debug_operand_data): Update accordingly.
9696 (setup_operand_alternative): Likewise.
9697 (new_insn_reg): Likewise. Remove early_clobber parameter.
9698 (collect_non_operand_hard_regs): Update call accordingly.
9699 Don't assign to lra_insn_reg::early_clobber.
9700 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9701 and update calls to new_insn_reg.
9702 (lra_update_insn_regno_info): Update calls accordingly.
9703 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9704 alternative number as a parameter and test whether the operand
9705 is earlyclobbered in that particular alternative.
9706 (process_alt_operands): Update call accordingly. Use per-alternative
9707 checks for earyclobber here too.
9708 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9709 against zero for IRA_UNKNOWN_ALT.
9711 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9713 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9715 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9717 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9718 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9720 2019-07-30 Martin Liska <mliska@suse.cz>
9723 * cgraph.c (cgraph_edge::make_direct): Use
9724 edge->indirect_unknown_callee as edge->resolve_speculation can
9725 deallocate edge which is this pointer.
9727 2019-07-30 Richard Biener <rguenther@suse.de>
9729 PR tree-optimization/91257
9730 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9732 2019-07-30 Martin Liska <mliska@suse.cz>
9734 * doc/invoke.texi: Document new behavior.
9735 * lto-wrapper.c (cpuset_popcount): New function
9736 is a copy of libgomp/config/linux/proc.c.
9737 (init_num_threads): Likewise.
9738 (run_gcc): Automatically detect core count for -flto.
9739 (jobserver_active_p): New function.
9741 2019-07-30 Richard Biener <rguenther@suse.de>
9743 PR tree-optimization/91257
9744 * bitmap.h (bitmap_ior_into_and_free): Declare.
9745 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9746 whether to add the unliked element to the freelist.
9747 (bitmap_list_insert_element_after): Add defaulted param for
9748 an already allocated element.
9749 (bitmap_ior_into_and_free): New function.
9750 * tree-ssa-structalias.c (condense_visit): Reduce the
9751 ponts-to and edge bitmaps of the SCC members in a
9752 logarithmic fashion rather than all to one.
9754 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9756 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9757 parameter. When nonnull, make sure that the addition or subtraction
9758 has the same condition.
9759 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9760 for CFN_COND_MUL too.
9762 2019-07-30 Richard Biener <rguenther@suse.de>
9764 PR tree-optimization/91291
9765 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9768 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9771 * omp-low.c (global_nonaddressable_vars): New variable.
9772 (use_pointer_for_field): For global decls, if they are non-addressable,
9773 remember it in the global_nonaddressable_vars bitmap, if they are
9774 addressable and in the global_nonaddressable_vars bitmap, ignore their
9775 TREE_ADDRESSABLE bit.
9776 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9777 vars in global_nonaddressable_vars bitmap.
9778 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9781 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9782 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9783 comparison to unsigned HOST_WIDE_INT before shifting it left.
9785 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9787 * config/i386/i386.md (movstrict<mode>): Use register_operand
9788 predicate for operand 0. Add expander condition. Assert that
9789 operand 0 is a SUBREG RTX.
9790 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9791 Update operand constraints and insn condition.
9792 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9793 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9794 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9795 Update operand 0 constraints.
9796 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9798 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9800 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9801 when -m{code,data}-region are used without -mlarge.
9802 * config/msp430/msp430.c (msp430_option_override): Error when a
9803 non-default code or data region is used without -mlarge.
9804 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9805 attributes when they are used without -mlarge.
9807 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9810 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9812 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9815 * wide-int.h (generic_wide_int::sext_elt): New function.
9816 * inchash.h (hash::add_wide_int): Use it instead of elt.
9818 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9820 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9822 * config/arm/arm.md (<crc_variant>): Rename to...
9823 (arm_<crc_variant>): ... This.
9824 (<cdp>): Rename to...
9825 (arm_<cdp>): ... This.
9826 (<ldc>): Rename to...
9827 (arm_<ldc>): ... This.
9828 (<stc>): Rename to...
9829 (arm_<stc>): ... This.
9830 (<mcr>): Rename to...
9831 (arm_<mcr>): ... This.
9832 (<mrc>): Rename to...
9833 (arm_<mrc>): ... This.
9834 (<mcrr>): Rename to...
9835 (arm_<mcrr>): ... This.
9836 (<mrrc>): Rename to...
9837 (arm_<mrrc>): ... This.
9839 2019-07-29 Richard Biener <rguenther@suse.de>
9841 PR tree-optimization/91257
9842 * tree-ssa-sccvn.h (struct vn_avail): New.
9843 (struct vn_ssa_aux): Add avail member.
9844 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9845 member, add m_avail_freelist one.
9846 (rpo_elim::~rpo_elim): Remove.
9847 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9849 (rpo_elim::eliminate_push_avail): Likewise.
9850 (do_unwind): Likewise.
9851 (do_rpo_vn): Likewise.
9853 2019-07-29 Richard Biener <rguenther@suse.de>
9855 PR tree-optimization/91257
9856 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9857 most cases, instead call compare_values which handles the
9858 symbolic ranges we handle specially.
9859 (compare_values_warnv): Do not call operand_less_p but open-code
9860 the effective fold calls. Avoid converting so much.
9862 2019-07-29 Martin Liska <mliska@suse.cz>
9864 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9865 remove LHS of operator new call. It's handled latter.
9867 2019-07-29 Richard Biener <rguenther@suse.de>
9869 PR tree-optimization/91267
9870 * vr-values.c (vr_values::update_value_range): Add early return
9871 for effectively VARYING lattice entry.
9873 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9876 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9877 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9878 necessary if keep_all_vdefs_p is true.
9879 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9880 that keep_all_vdefs_p is false.
9881 (mark_all_reaching_defs_necessary): Likewise.
9882 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9884 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9886 * common.opt (Og): Change the initial value of flag_dse to 0.
9887 * opts.c (default_options_table): Move OPT_ftree_dse from
9888 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9889 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9890 entry before the OPT_ftree_sra entry.
9891 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9892 of flags disabled by Og.
9894 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9896 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9899 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9901 * doc/sourcebuild.texi (check-function-bodies): Document.
9903 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9905 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9906 VEC_DUPLICATE of a fixed-length vector even if the result
9907 is variable-length. Likewise fold a duplicate of a
9908 variable-length vector if the variable-length vector is
9909 itself a duplicate of a fixed-length sequence.
9910 (test_vector_ops_duplicate): Test more cases.
9912 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9914 * vector-builder.h (vector_builder): Add a shape template parameter.
9915 (vector_builder::new_unary_operation): New function, generalizing
9916 the old tree_vector_builder function.
9917 (vector_builder::new_binary_operation): Likewise.
9918 (vector_builder::binary_encoded_nelts): Likewise.
9919 * int-vector-builder.h (int_vector_builder): Update template
9920 parameters to vector_builder.
9921 (int_vector_builder::shape_nelts): New function.
9922 * rtx-vector-builder.h (rtx_vector_builder): Update template
9923 parameters to vector_builder.
9924 (rtx_vector_builder::shape_nelts): New function.
9925 (rtx_vector_builder::nelts_of): Likewise.
9926 (rtx_vector_builder::npatterns_of): Likewise.
9927 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9928 * tree-vector-builder.h (tree_vector_builder): Update template
9929 parameters to vector_builder.
9930 (tree_vector_builder::shape_nelts): New function.
9931 (tree_vector_builder::nelts_of): Likewise.
9932 (tree_vector_builder::npatterns_of): Likewise.
9933 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9934 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9935 (tree_vector_builder::new_binary_operation): Delete.
9936 (tree_vector_builder::binary_encoded_nelts): Likewise.
9937 * simplify-rtx.c: Include rtx-vector-builder.h.
9938 (distributes_over_addition_p): New function.
9939 (simplify_const_unary_operation)
9940 (simplify_const_binary_operation): Generalize handling of vector
9941 constants to include variable-length vectors.
9942 (test_vector_ops_series): Add more tests.
9944 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9947 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9948 than INDENTIFIER_POINTER.
9950 2019-07-28 Martin Liska <mliska@suse.cz>
9953 * cgraph.c (symbol_table::create_edge): Always allocate
9955 (symbol_table::free_edge): Store summary_id to
9956 edge_released_summary_ids if != -1;
9957 * cgraph.h (NEXT_FREE_NODE): Remove.
9958 (SET_NEXT_FREE_NODE): Likewise.
9959 (NEXT_FREE_EDGE): Likewise.
9960 (symbol_table::release_symbol): Store summary_id to
9961 cgraph_released_summary_ids if != -1;
9962 (symbol_table::allocate_cgraph_symbol): Always allocate
9965 2019-07-28 Alan Modra <amodra@gmail.com>
9967 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9970 2019-07-28 Alan Modra <amodra@gmail.com>
9973 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9975 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9976 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9977 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9979 2019-07-28 Alan Modra <amodra@gmail.com>
9982 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9983 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9984 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9985 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9986 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9987 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9988 in asm_default spec.
9989 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9990 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9992 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9994 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9996 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9999 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
10000 * config/aarch64/aarch64-option-extensions.def: Add new comments
10001 and restore easier to read options.
10003 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10005 * convert.c (convert_to_real_1): Move part of conversion code...
10006 * match.pd: ...To here.
10008 2019-07-26 Martin Jambor <mjambor@suse.cz>
10011 * ipa-inline-transform.c (check_speculations_1): New function.
10012 (push_all_edges_in_set_to_vec): Likewise.
10013 (check_speculations): Use check_speculations_1, new parameter
10015 (inline_call): Pass new_edges to check_speculations.
10016 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
10018 (speculation_useful_p): Early return true if edge is inlined, remove
10019 later checks for inline_failed.
10021 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
10023 PR rtl-optimization/91223
10024 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
10025 matching with INOUT operand.
10027 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10029 * stmt.c (expand_case): Try to narrow the index type if it's larger
10030 than a word. Tidy up.
10032 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10034 * cif-code.def (NEVER_CALL): New code.
10035 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
10036 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
10038 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
10040 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
10041 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10043 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10045 * ipa-devirt.c (add_type_duplicate): Fix return value.
10047 2019-07-25 Richard Biener <rguenther@suse.de>
10049 * tree-vrp.c (extract_range_from_multiplicative_op): Add
10050 type parameter and use it instead of guessing expression
10051 type from the first operand.
10052 (extract_range_from_binary_expr): Pass expr_type down.
10054 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10056 * config/arm/arm.md (SATrev): Change to code attribute.
10057 (*satsi_<SAT:code>): Adjust for the above.
10058 (*satsi_<SAT:code>_shift): Likewise.
10060 2019-07-25 Richard Biener <rguenther@suse.de>
10062 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
10063 Make value_range * temporary const.
10064 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
10066 (evrp_range_analyzer::record_ranges_from_): Likewise.
10067 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
10068 deal with having recorded a const one.
10069 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
10070 Return a const value_range *.
10071 (evrp_range_analyzer::pop_value_range): Likewise.
10072 (evrp_range_analyzer::stack): Record const value_range *s.
10073 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10075 * gimple-ssa-sprintf.c (get_int_range): Likewise.
10076 (format_integer): Likewise.
10077 (sprintf_dom_walker::handle_gimple_call): Likewise.
10078 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
10079 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
10080 (vrp_prop::get_value_range): Adjust.
10081 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
10082 modifying the lattice in-place.
10083 (vrp_prop::visit_stmt): Likewise.
10084 * vr-values.c (vr_values::get_lattice_entry): New private method.
10085 (vr_values::get_value_range): Wrap it and return a const
10087 (vr_values::set_def_to_varying): New.
10088 (vr_values::set_defs_to_varying): Use it.
10089 (vr_values::update_value_range): Likewise.
10090 (vr_values::vrp_stmt_computes_nonzero): Adjust.
10091 (values::op_with_constant_singleton_va): Likewise.
10092 (vr_values::extract_range_for_var_from_co): Likewise.
10093 (vr_values::extract_range_from_ssa_name): Likewise.
10094 (vr_values::extract_range_from_cond_expr): Likewise.
10095 (vr_values::extract_range_basic): Likewise.
10096 (compare_ranges): Take const value_range *, adjust.
10097 (compare_range_with_value): Likewise.
10098 (vrp_valueize): Adjust.
10099 (vrp_valueize_1): Likewise.
10100 (vr_values::get_vr_for_comparison): Return a const value_range *.
10101 (vr_values::compare_name_with_value): Adjust.
10102 (vr_values::compare_names): Likewise.
10103 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
10105 (vr_values::vrp_evaluate_conditional): Likewise.
10106 (find_case_label_ranges): Take a const value_range *.
10107 (vr_values::vrp_visit_switch_stmt): Adjust.
10108 (vr_values::extract_range_from_phi_node): Likewise.
10109 (vr_values::simplify_div_or_mod_using_ran): Likewise.
10110 (vr_values::simplify_abs_using_ranges): Likewise.
10111 (test_for_singularity): Take a const value_range *.
10112 (range_fits_type_p): Likewise.
10113 (vr_values::simplify_cond_using_ranges_1): Adjust.
10114 (vr_values::simplify_cond_using_ranges_2): Likewise.
10115 (vr_values::simplify_switch_using_ranges): Likewise.
10116 (vr_values::simplify_float_conversion_usi): Likewise.
10117 (vr_values::two_valued_val_range_p): Likewise.
10118 * vr-values.h (vr_values::get_value_range): Return a const
10120 (vr_values::set_def_to_varying): New.
10121 (vr_values::get_lattice_entry): New private method.
10122 (vr_values::get_vr_for_comparison): Return a const value_range *.
10124 2019-07-25 Martin Liska <mliska@suse.cz>
10125 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
10128 * common.opt: Add -fallocation-dce
10129 * gimple.c (gimple_call_operator_delete_p): New.
10130 * gimple.h (gimple_call_operator_delete_p): Likewise.
10131 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
10132 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
10133 DECL_IS_OPERATOR_DELETE_P.
10134 (mark_all_reaching_defs_necessary_1): Likewise.
10135 (propagate_necessity): Likewise.
10136 (eliminate_unnecessary_stmts): Handle
10137 gimple_call_operator_delete_p.
10138 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
10139 Add packing of OPERATOR_DELETE.
10140 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
10142 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
10143 (DECL_SET_IS_OPERATOR_DELETE): New.
10144 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
10146 2019-07-25 Martin Liska <mliska@suse.cz>
10148 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
10149 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
10150 * coverage.c (coverage_begin_function): Likewise.
10151 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
10152 * gimple.c (gimple_call_nonnull_result_p): Likewise.
10153 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
10154 (sem_item::hash_referenced_symbol_properties): Likewise.
10155 * lto-streamer-out.c (hash_tree): Likewise.
10156 * predict.c (expr_expected_value_1): Likewise.
10157 * tree-inline.c (expand_call_inline): Likewise.
10158 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
10159 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
10160 * tree-core.h (enum function_decl_type): New enum.
10161 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
10162 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
10163 (set_function_decl_type): Likewise.
10164 (DECL_IS_OPERATOR_NEW_P): New.
10165 (DECL_SET_IS_OPERATOR_NEW): Likewise.
10166 (DECL_LAMBDA_FUNCTION): Likewise.
10167 (DECL_LAMBDA_FUNCTION_P): Likewise.
10168 (DECL_IS_OPERATOR_NEW): Remove.
10169 (DECL_SET_LAMBDA_FUNCTION): Likewise.
10171 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
10173 * ipa-profile.c (get_most_common_single_value): Use
10174 get_nth_most_common_value.
10175 * profile.c (sort_hist_value): New function.
10176 (compute_value_histograms): Call sort_hist_value to sort the
10177 values after loading from disk.
10178 * value-prof.c (get_most_common_single_value): Rename to ...
10179 get_nth_most_common_value. Add input params n, return
10180 the n_th value and count.
10181 (gimple_divmod_fixed_value_transform): Use
10182 get_nth_most_common_value.
10183 (gimple_ic_transform): Likewise.
10184 (gimple_stringops_transform): Likewise.
10185 * value-prof.h (get_most_common_single_value): Add input params
10188 2019-07-25 Richard Biener <rguenther@suse.de>
10190 PR tree-optimization/91236
10191 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10192 size of CONSTRUCTOR write. Fix buffer size we pass to
10193 native_encode_expr.
10195 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10197 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
10198 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
10201 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10203 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
10204 explicitly disabled with --disable-initfini-array.
10206 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10208 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
10211 2019-07-24 Martin Sebor <msebor@redhat.com>
10213 PR tree-optimization/91183
10214 PR tree-optimization/86688
10215 * builtins.c (compute_objsize): Handle MEM_REF.
10216 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
10217 (get_min_string_length): Remove.
10218 (count_nonzero_bytes): New function.
10219 (handle_char_store): Rename...
10220 (handle_store): to this. Handle multibyte stores via integer types.
10221 (strlen_check_and_optimize_stmt): Adjust conditional and the called
10224 2019-07-24 Martin Sebor <msebor@redhat.com>
10227 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
10228 (diagnostic_report_diagnostic): Same.
10229 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
10230 (diagnostic_context::lang_mask): New data member.
10231 * ipa-pure-const.c (suggest_attribute): Use
10232 lang_hooks.option_lang_mask ().
10233 * opts-common.c (option_enabled): Handle new argument.
10234 (get_option_state): Pass an additional argument.
10235 * opts.c (print_filtered_help): Print supported languages for
10236 unsupported options. Adjust printing of current state.
10237 * opts.h (option_enabled): Add argument.
10238 * toplev.c (print_switch_values): Use lang_mask.
10239 (general_init): Set global_dc->lang_mask.
10241 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10244 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
10246 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
10248 * cgraphunit.c (symbol_table::compile): Start and stop
10249 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
10250 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
10252 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
10254 * gimplify.c (flag_instrument_functions_exclude_p): Include
10255 namespace/class information in the printable name.
10256 * opts.c (add_comma_separated_to_vector): Add NUL terminator
10257 to tokens entered into the vector.
10259 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
10261 * tree-nested.c (build_simple_mem_ref_notrap): New function.
10262 (get_static_chain): Call it instead of build_simple_mem_ref.
10263 (get_frame_field): Likewise.
10264 (get_nonlocal_debug_decl): Likewise.
10265 (convert_nonlocal_reference_op): Likewise.
10267 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
10269 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
10271 (arc_compute_frame_size): Millicode is disabled when compiling
10273 (arc_return_address_register): Likewise.
10274 (arc_compute_function_type): Likewise.
10275 (arc_compute_frame_size): Likewise.
10276 (secondary_reload_info): Likewise.
10277 (arc_get_unalign): Likewise.
10278 (arc_can_use_return_insn): Declare.
10279 * config/arc/arc.c (AUX_LP_START): Define
10280 (AUX_LP_END): Likewise.
10281 (arc_frame_info): Update gmask member to 64-bit datum.
10282 (GMASK_LEN): Update.
10283 (arc_compute_function_type): Make it static, move it forward.
10284 (arc_must_save_register): Update, consider the extra regs.
10285 (arc_compute_millicode_save_restore_regs): Update to use the 64
10287 (arc_compute_frame_size): Likewise.
10288 (arc_enter_leave_p): Likewise.
10289 (arc_save_callee_saves): Likewise.
10290 (arc_restore_callee_saves): Likewise.
10291 (arc_save_callee_enter): Likewise.
10292 (arc_restore_callee_leave): Likewise.
10293 (arc_save_callee_milli): Likewise.
10294 (arc_restore_callee_milli): Likewise.
10295 (arc_expand_prologue): Add new interrupt handling.
10296 (arc_return_address_register): Make it static, move it forward.
10297 (arc_expand_epilogue): Add new interrupt handling.
10298 (arc_get_unalign): Delete.
10299 (arc_epilogue_uses): Make sure we do not remove the extra
10300 saved/restored registers when interrupt.
10301 (arc_can_use_return_insn): New function.
10302 (push_reg): Likewise.
10303 (pop_reg): Likewise.
10304 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
10306 (arc_restore_callee_saves): Likewise, but restoring.
10307 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
10308 (R33_REG): Likewise.
10309 (R34_REG): Likewise.
10310 (R35_REG): Likewise.
10311 (R36_REG): Likewise.
10312 (R37_REG): Likewise.
10313 (R38_REG): Likewise.
10314 (R39_REG): Likewise.
10315 (R45_REG): Likewise.
10316 (R46_REG): Likewise.
10317 (R47_REG): Likewise.
10318 (R48_REG): Likewise.
10319 (R49_REG): Likewise.
10320 (R50_REG): Likewise.
10321 (R51_REG): Likewise.
10322 (R52_REG): Likewise.
10323 (R53_REG): Likewise.
10324 (R54_REG): Likewise.
10325 (R55_REG): Likewise.
10326 (R56_REG): Likewise.
10327 (R58_REG): Likewise.
10328 (type): Add rtie attribute.
10329 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10330 (movsi_insn): Accept moves to lp_count.
10331 (rtie): Update pattern.
10332 (simple_return): Simplify it, don't use this pattern as a return
10334 (arc600_rtie): New pattern.
10335 (p_return_i): Clean up.
10336 (return): Likewise.
10337 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10339 * config/arc/predicates.md (move_src_operand): Consider lp_count
10342 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10344 * config/s390/predicates.md (addv_const_operand): New predicate.
10345 * config/s390/s390-modes.def (CCO): New condition code mode.
10346 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10347 (s390_branch_condition_mask): Likewise.
10348 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10349 ("mulv<mode>4"): New expanders.
10350 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10351 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10352 pattern definitions.
10354 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10356 PR middle-end/91166
10357 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10358 (define_predicates): Add entry for uniform_vector_p.
10359 (vec_same_elem_p): New match pattern.
10361 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10364 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10365 * config/i386/darwin32-biarch.h .. to here.
10366 * config/i386/darwin64-biarch.h: Adjust comments.
10367 * config/rs6000/darwin32-biarch.h: Likewise.
10368 * config/rs6000/darwin64-biarch.h: Likewise.
10369 * config.gcc: Missed commit from r273746
10370 (*-*-darwin*): Don't include CPU t-darwin here.
10371 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10372 an error message if i686-darwin configuration is attempted for
10375 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10378 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10379 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10380 an error message if i686-darwin configuration is attempted for
10382 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10383 (powerpc-*-darwin*): Use biarch files where needed.
10384 (powerpc64-*-darwin*): Likewise.
10385 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10386 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10388 * config/i386/darwin32-biarch.h: New.
10389 * config/i386/darwin64.h: Rename.
10390 * config/i386/darwin64-biarch.h: To this.
10391 * config/i386/t-darwin: Rename.
10392 * config/i386/t-darwin32-biarch: To this.
10393 * config/i386/t-darwin64: Rename.
10394 * config/i386/t-darwin64-biarch: To this.
10395 * config/rs6000/darwin32-biarch.h: New.
10396 * config/rs6000/darwin64.h: Rename.
10397 * config/rs6000/darwin64-biarch.h: To this.
10398 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10400 * config/rs6000/t-darwin8: Rename.
10401 * config/rs6000/t-darwin32-biarch: To this.
10402 * config/rs6000/t-darwin64 Rename.
10403 * config/rs6000/t-darwin64-biarch: To this.
10405 2019-07-23 Martin Sebor <msebor@redhat.com>
10407 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10409 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10411 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10412 (rh): New alias for it.
10414 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10416 * gdbhooks.py: Pass replace=True to
10417 gdb.printing.register_pretty_printer.
10419 2019-07-23 Richard Biener <rguenther@suse.de>
10422 * lto-streamer-in.c (input_function): Drop inline-entry markers
10423 that ended up with an unknown location block.
10425 2019-07-23 Richard Biener <rguenther@suse.de>
10427 PR tree-optimization/83518
10428 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10429 init from a constant even when partial defs are already recorded.
10431 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10433 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10434 * config/i386/znver1.md: Enable patterns for znver2 and add store
10435 variants which use extra AGU unit.
10437 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10439 * config/i386/i386-options.c (ix86_option_override_internal): Default
10440 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10441 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10444 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10446 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10447 (znver2_costs): Update 256 bit SSE costs and multiplication.
10449 2019-07-23 Jan Beulich <jbeulich@suse.com>
10451 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10452 Require only AVX512F.
10453 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10454 alternative expanding to vpternlog.
10456 2019-07-23 Martin Liska <mliska@suse.cz>
10458 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10459 to -flto in dwarf producer string.
10461 2019-07-23 Richard Biener <rguenther@suse.de>
10463 * tree-cfg.c (label_for_bb): Remove global var.
10464 (main_block_label): Take label_for_bb as argument.
10465 (cleanup_dead_labels_eh): Likewise, adjust.
10466 (cleanup_dead_labels): Adjust.
10468 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10470 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10471 Configurations): Add documentation for __builtin_mtfsf.
10473 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10475 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10476 * config/riscv/riscv.c (riscv_constant_alignment): Use
10477 riscv_align_data_type.
10478 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10479 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10480 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10481 * config/riscv/riscv.opt (malign-data): New.
10482 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10484 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10486 * cgraph.c (dump_graphviz): New function.
10487 * cgraph.h (dump_graphviz): New function.
10488 * symtab.c (dump_graphviz): New function.
10490 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10492 * config/aarch64/aarch64-simd.md
10493 (*aarch64_simd_sra<mode>): New.
10494 * config/aarch64/iterators.md
10495 (SHIFTRT): New iterator.
10496 (sra_op): New attribute.
10498 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10500 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10501 callee-saved regs R4->R10 in an interrupt function that calls another
10504 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10506 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10507 (_mm_blendv_epi8): New.
10509 2019-07-22 Richard Biener <rguenther@suse.de>
10511 PR tree-optimization/91221
10512 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10513 restrict partial-def handling of empty constructors and
10514 memset to refs with known offset.
10516 2019-07-22 Jan Beulich <jbeulich@suse.com>
10518 * config/i386/sse.md (ternlogsuffix): New.
10519 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10521 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10523 2019-07-22 Martin Liska <mliska@suse.cz>
10525 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10527 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10529 2019-07-22 Martin Liska <mliska@suse.cz>
10531 * lto-section-in.c (lto_get_section_data):
10532 Use new function get_compression.
10533 * lto-streamer-out.c (produce_lto_section): Use
10534 set_compression to encode compression algorithm.
10535 * lto-streamer.h (struct lto_section): Do not
10536 use bitfields in the format.
10538 2019-07-22 Martin Liska <mliska@suse.cz>
10541 * opts-common.c (decode_cmdline_option): Decode
10542 argument of -Werror and check it for a wrong language.
10543 * opts-global.c (complain_wrong_lang): Remove such case.
10545 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10547 * config/arc/arc.c (prepare_move_operands): Always use an
10548 intermediate register when storing a TLS symbols.
10550 2019-07-22 Stafford Horne <shorne@gmail.com>
10552 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10555 2019-07-22 Stafford Horne <shorne@gmail.com>
10557 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10558 and munordered-float validations.
10559 * config/or1k/constraints.md (d): New register constraint.
10560 * config/or1k/predicates.md (fp_comparison_operator): New.
10561 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10563 (or1k_expand_compare): Normalize unordered comparisons.
10564 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10565 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10566 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10567 * config/or1k/or1k.md (type): Add fpu.
10568 (fpu): New instruction reservation.
10569 (F, f, fr, fi, FI, FOP, fop): New.
10570 (<fop><F:mode>3): New ALU instruction definition.
10571 (float<fi><F:mode>2): New conversion instruction definition.
10572 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10573 (fpcmpcc): New code iterator.
10574 (*sf_fp_insn): New instruction definition.
10575 (cstore<F:mode>4): New expand definition.
10576 (cbranch<F:mode>4): New expand definition.
10577 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10578 munordered-float): New options.
10579 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10582 2019-07-22 Stafford Horne <shorne@gmail.com>
10584 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10585 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10586 documenation to be more clear.
10587 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10589 * config/or1k/or1k.opt (mrori): New option.
10590 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10591 msfimm, mshftimm): Rewrite documentation to be more clear.
10592 * config/or1k/or1k.md (insn_support): Add ror and rori.
10593 (enabled): Add conditions for ror and rori.
10594 (rotrsi3): Replace condition for shftimm with ror and rori.
10596 2019-07-22 Stafford Horne <shorne@gmail.com>
10599 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10600 (extend<mode>si2): Update predicate.
10601 * config/or1k/predicates.md (volatile_mem_operand): New.
10602 (reg_or_mem_operand): New.
10604 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10606 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10607 * config/rs6000/rs6000-call.c: ... to here.
10609 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10611 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10614 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10616 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10618 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10620 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10622 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10624 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10625 (any_memory_operand): New predicate.
10626 (reg_or_mem_operand): Use it.
10628 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10631 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10633 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10635 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10636 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10638 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10640 * tree.def (OMP_LOOP): New tree code.
10641 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10642 (enum omp_clause_bind_kind): New enum.
10643 (struct tree_omp_clause): Add subcode.bind_kind.
10644 * tree.h (OMP_LOOP_CHECK): Rename to ...
10645 (OMP_LOOPING_CHECK): ... this.
10646 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10647 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10648 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10649 (OMP_CLAUSE_BIND_KIND): Define.
10650 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10651 bind clause entries.
10652 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10653 * tree-pretty-print.c (dump_omp_clause): Likewise.
10654 (dump_generic_node): Handle OMP_LOOP.
10655 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10656 (in_omp_construct): New variable.
10657 (is_gimple_stmt): Handle OMP_LOOP.
10658 (gimplify_scan_omp_clauses): For lastprivate don't set
10659 check_non_private if code == OMP_LOOP. For reduction clause
10660 on OMP_LOOP combined with parallel or teams propagate as shared
10661 on the combined construct. Handle OMP_CLAUSE_BIND.
10662 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10663 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10664 for constructs from a loop construct to gimplify_scan_omp_clauses.
10665 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10666 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10667 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10668 to match the implicit ORT_TARGET construct around whole body.
10669 Temporarily clear in_omp_construct when processing body.
10670 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10671 etc. temporarily set in_omp_construct when processing body.
10672 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10673 * omp-low.c (struct omp_context): Add loop_p.
10674 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10675 in that the original var might be private.
10676 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10677 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10678 addition of loop construct.
10679 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10681 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10682 lastprivate non-addressable iterator of a collapse(1) simd.
10684 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10686 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10689 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10691 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10692 refer to default conditions. Warn for the 'y' spec which is ignored
10693 by current linkers.
10695 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10697 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10698 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10699 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10700 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10701 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10702 init_cumulative_args, rs6000_promote_function_mode,
10703 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10704 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10705 rs6000_function_arg_boundary, rs6000_parm_offset,
10706 rs6000_parm_start, rs6000_arg_size,
10707 rs6000_darwin64_record_arg_advance_flush,
10708 rs6000_darwin64_record_arg_advance_recurse,
10709 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10710 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10711 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10712 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10713 rs6000_finish_function_arg, rs6000_function_arg,
10714 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10715 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10716 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10717 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10718 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10719 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10720 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10721 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10722 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10723 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10724 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10725 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10726 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10727 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10728 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10729 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10730 get_element_number, altivec_expand_vec_set_builtin,
10731 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10732 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10733 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10734 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10735 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10736 rs6000_expand_builtin, rs6000_vector_type,
10737 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10738 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10739 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10741 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10742 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10743 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10744 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10745 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10746 init_cumulative_args, rs6000_promote_function_mode,
10747 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10748 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10749 rs6000_function_arg_boundary, rs6000_parm_offset,
10750 rs6000_parm_start, rs6000_arg_size,
10751 rs6000_darwin64_record_arg_advance_flush,
10752 rs6000_darwin64_record_arg_advance_recurse,
10753 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10754 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10755 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10756 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10757 rs6000_finish_function_arg, rs6000_function_arg,
10758 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10759 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10760 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10761 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10762 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10763 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10764 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10765 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10766 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10767 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10768 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10769 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10770 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10771 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10772 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10773 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10774 get_element_number, altivec_expand_vec_set_builtin,
10775 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10776 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10777 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10778 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10779 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10780 rs6000_expand_builtin, rs6000_vector_type,
10781 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10782 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10783 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10784 to here from rs6000.c.
10785 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10786 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10787 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10788 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10789 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10790 rs6000_return_in_memory, rs6000_return_in_msb,
10791 rs6000_pass_by_reference, setup_incoming_varargs,
10792 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10793 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10794 rs6000_function_arg_padding, rs6000_function_arg,
10795 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10796 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10797 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10798 rs6000_passes_long_double, rs6000_passes_vector,
10799 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10800 altivec_builtin_mask_for_load) Add declarations.
10801 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10802 * config/config.gcc: Add new source file rs6000-call.c to garbage
10803 collector and extra_objs.
10805 2019-07-19 Jeff Law <law@redhat.com>
10807 PR tree-optimization/86061
10808 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10809 strncpy. Drop some trivial dead code.
10810 (maybe_trim_memstar_call): Handle strncpy.
10812 2019-07-19 Richard Biener <rguenther@suse.de>
10814 PR tree-optimization/91211
10815 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10816 memset encoding size.
10818 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10821 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10823 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10826 * ipa-inline.c (recursive_inlining): Fix limits check.
10828 2019-07-19 Richard Biener <rguenther@suse.de>
10830 PR tree-optimization/91200
10831 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10832 no PHI nodes in middle-bb.
10834 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10836 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10838 * config/aarch64/aarch64-option-extensions.def: Likewise.
10840 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10842 PR middle-end/91190
10843 * function.c (insert_temp_slot_address): Store into the hash table
10844 a copy of address to avoid RTL sharing issues.
10846 2019-07-19 Richard Biener <rguenther@suse.de>
10848 PR tree-optimization/91207
10850 2019-07-17 Richard Biener <rguenther@suse.de>
10852 PR tree-optimization/91178
10853 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10854 loads with a gap larger than the vector size always use
10856 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10857 avoid loading vectors that are only contained in the gap
10858 and thus are not needed.
10860 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10862 * config/i386/i386.md (*addqi_2_slp): Remove.
10863 (*<code>qi_2_slp): Ditto.
10865 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10867 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10868 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10869 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10870 Rename function from rs6000_prefixed_address.
10871 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10873 (TARGET_TOC): Likewise.
10874 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10876 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10878 (TARGET_TOC): Likewise.
10879 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10881 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10883 (TARGET_TOC): Likewise.
10884 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10885 check to require -mcmodel=medium for pc-relative addressing.
10886 (create_TOC_reference): Add assertion for TARGET_TOC.
10887 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10889 (rs6000_emit_move): Likewise.
10890 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10891 to 'TOC_alias_set'.
10892 (get_TOC_alias_set): Likewise.
10893 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10895 (rs6000_can_eliminate): Likewise.
10896 (rs6000_prefixed_address_mode_p): Rename function from
10897 rs6000_prefixed_address.
10898 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10899 TARGET_HAS_TOC and not pc-relative.
10900 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10901 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10903 (TARGET_TOC): Likewise.
10904 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10907 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10910 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10911 for operand 0. Do not use (match_dup) to match operand 1 with
10912 operand 0. Add check in insn constraint that either input operand
10913 matches operand 0. Use SWI12 mode iterator to also handle
10915 (*and<mode>_1_slp): Ditto.
10916 (*<code>qi_1_slp): Ditto.
10917 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10918 Do not use (match_dup) to match operand 1 with operand 0. Add
10919 check in insn constraint that operand 1 matches operand 0.
10920 Use SWI12 mode iterator to also handle HImode operands.
10921 (*ashl<mode>3_1_slp): Ditto.
10922 (*<shift_insn><mode>3_1_slp): Ditto.
10923 (*<rotate_insn><mode>3_1_slp): Ditto.
10925 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10927 * config/arm/arm-builtins.c
10928 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10929 (arm_expand_unop_builtin): Likewise.
10930 * config/arm/crypto.md
10931 (crypto_sha1h): Convert from define_insn to define_expand.
10932 (crypto_<crypto_pattern>): Likewise.
10933 (crypto_sha1h_lb): New define_insn.
10934 (crypto_<crypto_pattern>_lb): Likewise.
10936 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10939 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10940 (vsha1cq_u32): Likewise.
10941 (vsha1pq_u32): Likewise.
10942 (vsha1mq_u32): Likewise.
10943 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10945 (crypto_sha1c): Correct vec select.
10946 (crypto_sha1m): Likewise.
10947 (crypto_sha1p): Likewise.
10949 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10951 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10952 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10953 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10954 (subdi_zesidi_zesidi): Likewise.
10955 (negdi2_compare, negdi2_insn): Likewise.
10956 (negdi_extensidi): Likewise.
10957 (negdi_zero_extendsidi): Likewise.
10958 (arm_cmpdi_insn): Likewise.
10959 (subsi3_carryin): Use arm_borrow_operation.
10960 (subsi3_carryin_const): Likewise.
10961 (subsi3_carryin_const0): Likewise.
10962 (subsi3_carryin_compare): Likewise.
10963 (subsi3_carryin_compare_const): Likewise.
10964 (subsi3_carryin_compare_const0): Likewise.
10965 (subsi3_carryin_shift): Likewise.
10966 (rsbsi3_carryin_shift): Likewise.
10967 (negsi2_carryin_compare): Likewise.
10969 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10971 PR tree-optimization/91137
10972 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10973 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10974 Init, use and fini the above new field.
10975 (determine_base_object_1): New function.
10976 (determine_base_object): Reimplement using walk_tree.
10978 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10980 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10981 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10982 CLEANUP_FORCE_FAST_DCE is set.
10983 * ifcvt.c (rest_of_handle_if_conversion): Pass
10984 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10985 if-conversion succeeded.
10987 2019-07-18 Richard Biener <rguenther@suse.de>
10989 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10990 branches to make code less indented.
10992 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10994 PR middle-end/81824
10995 * attribs.c (decls_mismatched_attributes): Simplify the logic
10996 that avoids duplicates and false positives.
10998 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
11000 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
11001 data into data section when generating PIC code.
11002 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
11003 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
11004 generating code for SOM targets earlier than HP-UX 11. Otherwise,
11005 return 2 for SOM and 0 for other targets.
11007 2019-07-17 Jeff Law <law@redhat.com>
11009 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
11010 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
11011 avoid unexpected switch statement fallthru.
11013 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11015 * config/i386/i386.md (*add<dwi>3_doubleword):
11016 Remove redundant constraints.
11017 (*add<mode>_1): Ditto.
11020 (*addqi_1_slp): Ditto.
11021 (*add<mode>_2): Ditto.
11022 (*addv<mode>4): Ditto.
11023 (*sub<dwi>3_doubleword): Ditto.
11024 (*sub<mode>_1): Ditto.
11025 (*subqi_1_slp): Ditto.
11026 (*sub<mode>_2): Ditto.
11027 (*subv<mode>4): Ditto.
11028 (*sub<mode>_3): Ditto.
11029 (@add<mode>3_carry): Ditto.
11030 (@sub<mode>3_carry): Ditto.
11031 (*add<mode>3_cc_overflow_1): Ditto.
11032 (*add<mode>3_zext_cc_overflow_2): Ditto.
11034 (*and<mode>_1): Ditto.
11036 (*andqi_1_slp): Ditto.
11038 (*andqi_2_maybe_si): Ditto.
11039 (*and<mode>_2): Ditto.
11040 (*andqi_2_slp): Ditto.
11041 (*<code><mode>_1): Ditto.
11042 (*<code>qi_1): Ditto.
11043 (*<code>qi_1_slp): Ditto.
11044 (*<code><mode>_2): Ditto.
11045 (*<code>qi_2_slp): Ditto.
11047 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
11049 * alias.c (record_component_aliases): Do not simplify pointed-to
11050 types of ODR types.
11052 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11054 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
11055 partial reg stall on alternative 2.
11057 2019-07-17 Richard Biener <rguenther@suse.de>
11059 PR tree-optimization/91178
11060 * tree-ssa.c (release_defs_bitset): Iterate from higher to
11061 lower SSA names to avoid quadratic behavior in the common case.
11062 * tree-data-ref.c (split_constant_offset): Add limit argument
11063 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11064 (split_constant_offset_1): Add limit argument and use it to
11065 limit SSA def walking. Optimize the common plus/minus case.
11067 2019-07-17 Richard Biener <rguenther@suse.de>
11069 PR tree-optimization/91178
11070 * tree-vect-stmts.c (get_group_load_store_type): For SLP
11071 loads with a gap larger than the vector size always use
11073 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
11074 avoid loading vectors that are only contained in the gap
11075 and thus are not needed.
11077 2019-07-17 Richard Biener <rguenther@suse.de>
11079 PR tree-optimization/91180
11080 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
11081 computation for memset partial defs.
11083 2019-07-17 Jakub Jelinek <jakub@redhat.com>
11085 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
11086 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
11087 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
11088 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
11089 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
11090 * omp-grid.c (grid_process_grid_body,
11091 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
11092 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
11093 == GF_OMP_FOR_KIND_SIMD.
11094 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
11095 check_omp_nesting_restrictions, scan_omp_1_stmt,
11096 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
11097 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
11098 omp_find_scan): Likewise.
11099 * omp-expand.c (expand_omp_for): Likewise.
11100 * omp-general.c (omp_extract_for_data): Likewise.
11102 PR tree-optimization/91157
11103 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
11104 a vector boolean with scalar mode.
11105 (expand_vector_condition): Handle first operand being a vector boolean
11107 (expand_vector_operations_1): For comparisons, don't bail out early
11108 if the return type is vector boolean with scalar mode, but comparison
11109 operand type is not.
11111 2019-07-17 Richard Biener <rguenther@suse.de>
11113 PR tree-optimization/91181
11114 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
11115 IFN_LOADs as calls.
11117 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
11119 * config/i386/i386.md (*testdi_1): Match CCZmode for
11120 constants that might have the SImode sign bit set.
11121 (*testqi_1_maybe_si): Remove "!" constraint modifier.
11122 Use correct constraints for pentium pairing.
11123 (*test<mode>_1): Ditto.
11125 2019-07-16 Jeff Law <law@redhat.com>
11127 PR rtl-optimization/91173
11128 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
11129 SSA_NAME with a constant value, fold its value into the offset
11130 and clear the base before calling gen_addr_rtx.
11132 2019-07-16 Jakub Jelinek <jakub@redhat.com>
11134 PR rtl-optimization/91164
11135 * dse.c (rest_of_handle_dse): If dead edges have been purged,
11136 invalidate dominance info.
11138 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11140 * read-md.h (md_reader::record_potential_iterator_use): Add a
11141 file_location parameter.
11142 * read-rtl.c (attribute_use::loc): New field.
11143 (map_attr_string): Take a file_location parameter. Report cases
11144 in which attributes map to multiple distinct values.
11145 (apply_attribute_uses): Update call accordingly.
11146 (md_reader::handle_overloaded_name): Likewise.
11147 (md_reader::apply_iterator_to_string): Likewise. Skip empty
11149 (record_attribute_use): Take a file_location parameter.
11150 Initialize attribute_use::loc.
11151 (md_reader::record_potential_iterator_use): Take a file_location
11152 parameter. Update call to record_attribute_use.
11153 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
11154 (rtx_reader::read_rtx_code): Likewise.
11155 (rtx_reader::read_rtx_operand): Likewise. Record a location
11156 for implicitly-expanded empty strings.
11158 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11160 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
11161 Use file_location instead of separate fields.
11162 (md_reader::set_md_ptr_loc): Take a file_location instead of a
11163 separate filename and line number.
11164 * read-md.c (ptr_loc): As above.
11165 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
11166 (md_reader::fprint_md_ptr_loc): Likewise.
11167 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
11168 instead of a separate filename and line number.
11169 (md_reader::read_string): Update call accordingly.
11171 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11173 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
11174 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
11175 leaving the choice between SFDF and P implicit.
11176 (*mov<mode>_update2): Likewise.
11177 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
11178 rather than leaving the choice betweem IBM128 and GPR implicit.
11179 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
11180 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
11182 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
11183 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
11184 * config/rs6000/vsx.md
11185 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
11186 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
11187 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
11188 and VSX_EXTRACT_I implicit.
11190 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11192 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
11193 Explicitly use <MOVEP1:MODE> for the mode attribute.
11195 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
11198 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
11200 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
11203 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
11204 .machine directive.
11206 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
11208 * config/i386/i386.md (@test<mode>_ccno_1):
11209 Rename from test<mode>_ccno_1.
11210 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
11211 (*testqi_1_maybe_si): Remove modrm attribute.
11212 (*test<mode>_1): Ditto.
11213 * config/i386/i386-expand.c (ix86_split_idivmod): Use
11214 gen_test_ccno_1 and gen_extend_insn.
11216 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
11218 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
11221 2019-07-15 Richard Biener <rguenther@suse.de>
11223 PR middle-end/91162
11224 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
11225 node make sure to replace all uses with something valid.
11227 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
11229 PR tree-optimization/88497
11230 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
11231 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
11232 function undistribute_bitref_for_vector.
11233 (undistribute_bitref_for_vector): New function.
11234 (cleanup_vinfo_map): Likewise.
11235 (sort_by_mach_mode): Likewise.
11237 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
11239 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
11240 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
11241 and testdi_ccno_1 using SWI48 mode attribute.
11242 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
11243 x86_64_szext_general_operand.
11244 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
11245 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
11246 instead of genera_operand mode attribute.
11248 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
11250 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
11251 fopen and fclose to their respective types.
11252 (DotFn.invoke): Ditto.
11254 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
11256 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
11257 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
11258 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
11259 (array_index_predicate): Remove.
11260 (analyze_function_body): Account cost for variable ofsetted array
11262 (estimate_node_size_and_time): Do not compute array index hint.
11263 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
11264 (inline_read_section): Do not read array index hint.
11265 (ipa_fn_summary_write): Do not write array index hint.
11266 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
11267 * ipa-cp.c (hint_time_bonus): Remove.
11268 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
11269 (ipa_fnsummary): Remove array_index.
11270 * ipa-inline.c (want_inline_small_function_p): Do not use
11272 (edge_badness): Likewise.
11273 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
11275 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
11278 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
11279 superfluous "builtin function" phrasing.
11281 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
11283 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
11285 (aliasing_component_refs_walk): Break out from ...
11286 (aliasing_component_refs_p): ... here.
11288 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
11291 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
11292 "builtin function" phrasing.
11294 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11297 * recog.h (temporary_volatile_ok): New class.
11298 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
11299 volatile_ok temporarily to true using temporary_volatile_ok.
11300 * expr.c (emit_block_move_via_cpymem): Likewise.
11301 * optabs.c (maybe_legitimize_operand): Likewise.
11303 2019-07-13 Jakub Jelinek <jakub@redhat.com>
11305 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
11306 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
11307 uses inside of order(concurrent) constructs.
11308 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
11309 OMP_CLAUSE_ORDER is seen.
11310 * omp-low.c (struct omp_context): Add order_concurrent member.
11311 (scan_sharing_clauses): Set ctx->order_concurrent if
11312 OMP_CLAUSE_ORDER is seen.
11313 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
11314 of simd order(concurrent). Diagnose constructs not allowed inside of
11315 for order(concurrent).
11316 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
11317 complaining about static double setjmp (double); or class static
11318 methods or non-global namespace setjmps.
11319 (omp_runtime_api_call): New function.
11320 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11321 order(concurrent) loops.
11323 2019-07-12 Martin Sebor <msebor@redhat.com>
11325 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11326 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11327 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11328 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11330 2019-07-12 Jan Hubicka <jh@suse.cz>
11332 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11333 (indirect_refs_may_alias_p): ... here.
11334 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11335 mem refs in the access paths.
11337 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11339 PR tree-optimization/89430
11340 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11341 store elimination for local variable without address escape.
11343 2019-07-12 Jeff Law <law@redhat.com>
11345 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11346 for the ".far" section.
11348 2019-07-12 Richard Biener <rguenther@suse.de>
11350 PR tree-optimization/91145
11351 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11354 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11356 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11357 rather than this_state as the lowering context for the ELSE
11358 seq in a GIMPLE_EH_ELSE.
11360 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11362 * vector-builder.h (vector_builder::elt): Allow already-supplied
11363 elements to be read back before building is complete.
11365 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11367 PR rtl-optimization/91136
11368 * df-core.c (ACCESSING REFS): Fix typos in comment.
11369 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11370 the beginning of the block to the initial set of live registers.
11372 2019-07-12 Richard Biener <rguenther@suse.de>
11374 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11375 * fold-const.c (get_array_ctor_element_at_index): Add
11376 ctor_idx output parameter informing the caller where in
11377 the constructor the element was (not) found. Add early exit
11378 for when the ctor is sorted.
11379 * gimple-fold.c (fold_array_ctor_reference): Support constant
11380 folding across multiple array elements.
11382 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11384 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11385 doesn't have location, set the current location to the function's end.
11387 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11389 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11390 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11391 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11392 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11393 * config/aarch64/aarch64-simd.md
11394 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11395 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11396 * config/aarch64/aarch64-sve.md
11397 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11398 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11400 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11402 * doc/md.texi: Document that @ patterns can have different
11403 numbers of operands.
11404 * genemit.c (handle_overloaded_gen): Handle this case.
11405 * genopinit.c (handle_overloaded_gen): Likewise.
11406 * gensupport.c (replace_operands_with_dups): Iterate over
11407 the new rtx's format rather than the old one's.
11409 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11411 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11412 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11413 order clause entries.
11414 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11415 * tree-pretty-print.c (dump_omp_clause): Likewise.
11416 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11418 * omp-low.c (scan_sharing_clauses): Likewise.
11419 * tree-nested.c (convert_nonlocal_omp_clauses,
11420 convert_local_omp_clauses): Likewise.
11422 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11424 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11425 fallthrough target of current basic block isn't the placed
11428 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11431 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11432 (_mm512_storeu_epi64): Likewise.
11433 (_mm512_loadu_epi32): Likewise.
11434 (_mm512_storeu_epi32): Likewise.
11435 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11436 (_mm_storeu_epi64): Likewise.
11437 (_mm256_storeu_epi32): Likewise.
11438 (_mm_storeu_epi32): Likewise.
11440 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11442 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11444 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11446 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11449 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11452 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11453 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11454 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11455 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11456 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11457 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11459 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11460 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11461 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11463 (sse2_cvttpd2dq<mask_name>): Change into ...
11464 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11465 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11466 (*sse2_cvtpd2dq<mask_name>): Change into ...
11467 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11468 Add "C" constraint to const0_operand.
11469 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11470 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11474 * config/i386/i386-builtin-types.def
11475 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11476 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11477 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11478 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11479 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11480 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11481 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11482 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11483 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11484 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11485 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11486 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11487 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11488 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11489 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11490 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11491 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11492 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11493 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11494 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11495 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11496 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11497 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11498 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11499 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11500 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11501 __builtin_ia32_vpdpbusd_v4si_maskz,
11502 __builtin_ia32_vpdpbusds_v16si_mask,
11503 __builtin_ia32_vpdpbusds_v16si_maskz,
11504 __builtin_ia32_vpdpbusds_v8si_mask,
11505 __builtin_ia32_vpdpbusds_v8si_maskz,
11506 __builtin_ia32_vpdpbusds_v4si_mask,
11507 __builtin_ia32_vpdpbusds_v4si_maskz,
11508 __builtin_ia32_vpdpwssd_v16si_mask,
11509 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11510 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11511 __builtin_ia32_vpdpwssd_v4si_maskz,
11512 __builtin_ia32_vpdpwssds_v16si_mask,
11513 __builtin_ia32_vpdpwssds_v16si_maskz,
11514 __builtin_ia32_vpdpwssds_v8si_mask,
11515 __builtin_ia32_vpdpwssds_v8si_maskz,
11516 __builtin_ia32_vpdpwssds_v4si_mask,
11517 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11518 suffixed types rather than *_INT.
11519 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11520 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11521 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11522 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11523 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11524 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11526 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11528 * tree-vrp.c (intersect_ranges): If we know the intersection is
11529 empty, there is no need to conservatively add anything else to
11532 2019-07-11 Richard Biener <rguenther@suse.de>
11534 PR middle-end/91131
11535 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11536 when the object is volatile and we have not cleared it even though
11537 there are no nonzero elements.
11539 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11541 * config/rs6000/predicates.md (cint34_operand): Update
11542 SIGNED_34BIT_OFFSET_P call.
11543 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11544 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11545 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11546 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11547 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11549 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11550 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11551 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11552 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11553 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11555 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11557 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11558 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11559 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11560 (DEF_MIN_OSX_VERSION): New.
11562 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11564 * fold-const.c (fold_relational_const): Fix folding of
11565 vector-to-scalar NE_EXPRs.
11566 (test_vector_folding): Add more tests.
11568 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11571 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11572 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11573 (vec_setv2di_internal): Reexpress as...
11574 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11575 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11576 rather than gen_neon_vset_lane<mode>.
11578 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11581 * lra-constraints.c (process_alt_operands): Don't match user
11582 defined regs only if they are early clobbers.
11584 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11586 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11588 2019-07-10 Richard Biener <rguenther@suse.de>
11590 PR tree-optimization/91126
11591 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11592 native encoding offset for BYTES_BIG_ENDIAN.
11593 (vn_reference_lookup_3): Likewise.
11595 2019-07-10 Richard Biener <rguenther@suse.de>
11597 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11598 LHS whenever possible.
11600 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11602 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11603 from ...; work also on duplicated types.
11604 (nonoverlapping_component_refs_since_match): ... here
11605 (ncr_type_uid): Break out from ...
11606 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11608 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11609 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11611 2019-07-09 Martin Sebor <msebor@redhat.com>
11613 PR tree-optimization/90989
11614 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11615 optimization to just single character stores.
11617 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11619 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11620 Swap operands only once.
11622 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11624 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11625 for both call instructions.
11627 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11629 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11630 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11632 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11634 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11635 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11636 function from rs6000-logue.c back to rs6000.c.
11637 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11639 2019-07-09 Martin Sebor <msebor@redhat.com>
11642 * auto-profile.c: Change class-key of PODs to struct and others
11644 * basic-block.h: Same.
11645 * bitmap.c (bitmap_alloc): Same.
11647 * builtins.c (expand_builtin_prefetch): Same.
11648 (expand_builtin_interclass_mathfn): Same.
11649 (expand_builtin_strlen): Same.
11650 (expand_builtin_mempcpy_args): Same.
11651 (expand_cmpstr): Same.
11652 (expand_builtin___clear_cache): Same.
11653 (expand_ifn_atomic_bit_test_and): Same.
11654 (expand_builtin_thread_pointer): Same.
11655 (expand_builtin_set_thread_pointer): Same.
11656 * caller-save.c (setup_save_areas): Same.
11657 (replace_reg_with_saved_mem): Same.
11658 (insert_restore): Same.
11659 (insert_save): Same.
11660 (add_used_regs): Same.
11661 * cfg.c (get_bb_copy): Same.
11662 (set_loop_copy): Same.
11665 * cfgexpand.c (alloc_stack_frame_space): Same.
11666 (add_stack_var): Same.
11667 (add_stack_var_conflict): Same.
11668 (add_scope_conflicts_1): Same.
11669 (update_alias_info_with_stack_vars): Same.
11670 (expand_used_vars): Same.
11671 * cfghooks.c (redirect_edge_and_branch_force): Same.
11672 (delete_basic_block): Same.
11673 (split_edge): Same.
11674 (make_forwarder_block): Same.
11675 (force_nonfallthru): Same.
11676 (duplicate_block): Same.
11677 (lv_flush_pending_stmts): Same.
11678 * cfghooks.h: Same.
11679 * cfgloop.c (flow_loops_cfg_dump): Same.
11680 (flow_loop_nested_p): Same.
11681 (superloop_at_depth): Same.
11682 (get_loop_latch_edges): Same.
11683 (flow_loop_dump): Same.
11684 (flow_loops_dump): Same.
11685 (flow_loops_free): Same.
11686 (flow_loop_nodes_find): Same.
11687 (establish_preds): Same.
11688 (flow_loop_tree_node_add): Same.
11689 (flow_loop_tree_node_remove): Same.
11690 (flow_loops_find): Same.
11691 (find_subloop_latch_edge_by_profile): Same.
11692 (find_subloop_latch_edge_by_ivs): Same.
11693 (mfb_redirect_edges_in_set): Same.
11694 (form_subloop): Same.
11695 (merge_latch_edges): Same.
11696 (disambiguate_multiple_latches): Same.
11697 (disambiguate_loops_with_multiple_latches): Same.
11698 (flow_bb_inside_loop_p): Same.
11699 (glb_enum_p): Same.
11700 (get_loop_body_with_size): Same.
11701 (get_loop_body): Same.
11702 (fill_sons_in_loop): Same.
11703 (get_loop_body_in_dom_order): Same.
11704 (get_loop_body_in_custom_order): Same.
11705 (release_recorded_exits): Same.
11706 (get_loop_exit_edges): Same.
11707 (num_loop_branches): Same.
11708 (remove_bb_from_loops): Same.
11709 (find_common_loop): Same.
11710 (delete_loop): Same.
11711 (cancel_loop): Same.
11712 (verify_loop_structure): Same.
11713 (loop_preheader_edge): Same.
11714 (loop_exit_edge_p): Same.
11715 (single_exit): Same.
11716 (loop_exits_to_bb_p): Same.
11717 (loop_exits_from_bb_p): Same.
11718 (get_loop_location): Same.
11719 (record_niter_bound): Same.
11720 (get_estimated_loop_iterations_int): Same.
11721 (max_stmt_executions_int): Same.
11722 (likely_max_stmt_executions_int): Same.
11723 (get_estimated_loop_iterations): Same.
11724 (get_max_loop_iterations): Same.
11725 (get_max_loop_iterations_int): Same.
11726 (get_likely_max_loop_iterations): Same.
11727 * cfgloop.h (simple_loop_desc): Same.
11729 (loop_depth): Same.
11730 (loop_outer): Same.
11731 (loop_iterator::next): Same.
11732 (loop_outermost): Same.
11733 * cfgloopanal.c (mark_irreducible_loops): Same.
11734 (num_loop_insns): Same.
11735 (average_num_loop_insns): Same.
11736 (expected_loop_iterations_unbounded): Same.
11737 (expected_loop_iterations): Same.
11738 (mark_loop_exit_edges): Same.
11739 (single_likely_exit): Same.
11740 * cfgloopmanip.c (fix_bb_placement): Same.
11741 (fix_bb_placements): Same.
11742 (remove_path): Same.
11743 (place_new_loop): Same.
11745 (scale_loop_frequencies): Same.
11746 (scale_loop_profile): Same.
11747 (create_empty_if_region_on_edge): Same.
11748 (create_empty_loop_on_edge): Same.
11751 (fix_loop_placements): Same.
11752 (copy_loop_info): Same.
11753 (duplicate_loop): Same.
11754 (duplicate_subloops): Same.
11755 (loop_redirect_edge): Same.
11756 (can_duplicate_loop_p): Same.
11757 (duplicate_loop_to_header_edge): Same.
11758 (mfb_keep_just): Same.
11759 (has_preds_from_loop): Same.
11760 (create_preheader): Same.
11761 (create_preheaders): Same.
11762 (lv_adjust_loop_entry_edge): Same.
11763 (loop_version): Same.
11764 * cfgloopmanip.h: Same.
11766 * cgraphbuild.c: Same.
11767 * combine.c (make_extraction): Same.
11768 * config/i386/i386-features.c: Same.
11769 * config/i386/i386-features.h: Same.
11770 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11771 (ix86_emit_outlined_ms2sysv_restore): Same.
11772 (ix86_noce_conversion_profitable_p): Same.
11773 (ix86_init_cost): Same.
11774 (ix86_simd_clone_usable): Same.
11775 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11777 * coretypes.h: Same.
11778 * data-streamer-in.c (string_for_index): Change class-key of PODs
11779 to struct and others to class.
11780 (streamer_read_indexed_string): Same.
11781 (streamer_read_string): Same.
11782 (bp_unpack_indexed_string): Same.
11783 (bp_unpack_string): Same.
11784 (streamer_read_uhwi): Same.
11785 (streamer_read_hwi): Same.
11786 (streamer_read_gcov_count): Same.
11787 (streamer_read_wide_int): Same.
11788 * data-streamer.h (streamer_write_bitpack): Same.
11789 (bp_unpack_value): Same.
11790 (streamer_write_char_stream): Same.
11791 (streamer_write_hwi_in_range): Same.
11792 (streamer_write_record_start): Same.
11793 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11794 (add_cross_iteration_register_deps): Same.
11795 (build_intra_loop_deps): Same.
11796 * df-core.c (df_analyze): Same.
11797 (loop_post_order_compute): Same.
11798 (loop_inverted_post_order_compute): Same.
11799 * df-problems.c (df_rd_alloc): Same.
11800 (df_rd_simulate_one_insn): Same.
11801 (df_rd_local_compute): Same.
11802 (df_rd_init_solution): Same.
11803 (df_rd_confluence_n): Same.
11804 (df_rd_transfer_function): Same.
11805 (df_rd_free): Same.
11806 (df_rd_dump_defs_set): Same.
11807 (df_rd_top_dump): Same.
11808 (df_lr_alloc): Same.
11809 (df_lr_reset): Same.
11810 (df_lr_local_compute): Same.
11811 (df_lr_init): Same.
11812 (df_lr_confluence_n): Same.
11813 (df_lr_free): Same.
11814 (df_lr_top_dump): Same.
11815 (df_lr_verify_transfer_functions): Same.
11816 (df_live_alloc): Same.
11817 (df_live_reset): Same.
11818 (df_live_init): Same.
11819 (df_live_confluence_n): Same.
11820 (df_live_finalize): Same.
11821 (df_live_free): Same.
11822 (df_live_top_dump): Same.
11823 (df_live_verify_transfer_functions): Same.
11824 (df_mir_alloc): Same.
11825 (df_mir_reset): Same.
11826 (df_mir_init): Same.
11827 (df_mir_confluence_n): Same.
11828 (df_mir_free): Same.
11829 (df_mir_top_dump): Same.
11830 (df_word_lr_alloc): Same.
11831 (df_word_lr_reset): Same.
11832 (df_word_lr_init): Same.
11833 (df_word_lr_confluence_n): Same.
11834 (df_word_lr_free): Same.
11835 (df_word_lr_top_dump): Same.
11836 (df_md_alloc): Same.
11837 (df_md_simulate_one_insn): Same.
11838 (df_md_reset): Same.
11839 (df_md_init): Same.
11840 (df_md_free): Same.
11841 (df_md_top_dump): Same.
11842 * df-scan.c (df_insn_delete): Same.
11843 (df_insn_rescan): Same.
11844 (df_notes_rescan): Same.
11845 (df_sort_and_compress_mws): Same.
11846 (df_install_mws): Same.
11847 (df_refs_add_to_chains): Same.
11848 (df_ref_create_structure): Same.
11849 (df_ref_record): Same.
11850 (df_def_record_1): Same.
11851 (df_find_hard_reg_defs): Same.
11852 (df_uses_record): Same.
11853 (df_get_conditional_uses): Same.
11854 (df_get_call_refs): Same.
11855 (df_recompute_luids): Same.
11856 (df_get_entry_block_def_set): Same.
11857 (df_entry_block_defs_collect): Same.
11858 (df_get_exit_block_use_set): Same.
11859 (df_exit_block_uses_collect): Same.
11860 (df_mws_verify): Same.
11861 (df_bb_verify): Same.
11862 * df.h (df_scan_get_bb_info): Same.
11863 * doc/tm.texi: Same.
11864 * dse.c (record_store): Same.
11865 * dumpfile.h: Same.
11866 * emit-rtl.c (const_fixed_hasher::equal): Same.
11867 (set_mem_attributes_minus_bitpos): Same.
11868 (change_address): Same.
11869 (adjust_address_1): Same.
11870 (offset_address): Same.
11871 * emit-rtl.h: Same.
11872 * except.c (dw2_build_landing_pads): Same.
11873 (sjlj_emit_dispatch_table): Same.
11874 * explow.c (allocate_dynamic_stack_space): Same.
11875 (emit_stack_probe): Same.
11876 (probe_stack_range): Same.
11877 * expmed.c (store_bit_field_using_insv): Same.
11878 (store_bit_field_1): Same.
11879 (store_integral_bit_field): Same.
11880 (extract_bit_field_using_extv): Same.
11881 (extract_bit_field_1): Same.
11882 (emit_cstore): Same.
11883 * expr.c (emit_block_move_via_cpymem): Same.
11884 (expand_cmpstrn_or_cmpmem): Same.
11885 (set_storage_via_setmem): Same.
11886 (emit_single_push_insn_1): Same.
11887 (expand_assignment): Same.
11888 (store_constructor): Same.
11889 (expand_expr_real_2): Same.
11890 (expand_expr_real_1): Same.
11891 (try_casesi): Same.
11893 * function.c (try_fit_stack_local): Same.
11894 (assign_stack_local_1): Same.
11895 (assign_stack_local): Same.
11896 (cut_slot_from_list): Same.
11897 (insert_slot_to_list): Same.
11898 (max_slot_level): Same.
11899 (move_slot_to_level): Same.
11900 (temp_address_hasher::equal): Same.
11901 (remove_unused_temp_slot_addresses): Same.
11902 (assign_temp): Same.
11903 (combine_temp_slots): Same.
11904 (update_temp_slot_address): Same.
11905 (preserve_temp_slots): Same.
11906 * function.h: Same.
11908 * gcc-rich-location.h: Same.
11910 * genattrtab.c (check_attr_test): Same.
11911 (check_attr_value): Same.
11912 (convert_set_attr_alternative): Same.
11913 (convert_set_attr): Same.
11914 (check_defs): Same.
11915 (copy_boolean): Same.
11916 (get_attr_value): Same.
11917 (expand_delays): Same.
11918 (make_length_attrs): Same.
11920 (make_alternative_compare): Same.
11921 (simplify_test_exp): Same.
11922 (tests_attr_p): Same.
11923 (get_attr_order): Same.
11924 (clear_struct_flag): Same.
11926 (compares_alternatives_p): Same.
11929 (find_attrs_to_cache): Same.
11930 (write_test_expr): Same.
11931 (walk_attr_value): Same.
11932 (write_attr_get): Same.
11933 (eliminate_known_true): Same.
11934 (write_insn_cases): Same.
11935 (write_attr_case): Same.
11936 (write_attr_valueq): Same.
11937 (write_attr_value): Same.
11938 (write_dummy_eligible_delay): Same.
11939 (next_comma_elt): Same.
11941 (make_internal_attr): Same.
11942 (copy_rtx_unchanging): Same.
11943 (gen_insn_reserv): Same.
11944 (check_tune_attr): Same.
11945 (make_automaton_attrs): Same.
11946 (handle_arg): Same.
11947 * genextract.c (gen_insn): Same.
11948 (VEC_char_to_string): Same.
11949 * genmatch.c (print_operand): Same.
11951 (parser::parse_operation): Same.
11952 (parser::parse_capture): Same.
11953 (parser::parse_c_expr): Same.
11954 (parser::parse_simplify): Same.
11956 * genoutput.c (output_operand_data): Same.
11957 (output_get_insn_name): Same.
11958 (compare_operands): Same.
11959 (place_operands): Same.
11960 (process_template): Same.
11961 (validate_insn_alternatives): Same.
11962 (validate_insn_operands): Same.
11963 (gen_expand): Same.
11964 (note_constraint): Same.
11965 * genpreds.c (write_one_predicate_function): Same.
11966 (add_constraint): Same.
11967 (process_define_register_constraint): Same.
11968 (write_lookup_constraint_1): Same.
11969 (write_lookup_constraint_array): Same.
11970 (write_insn_constraint_len): Same.
11971 (write_reg_class_for_constraint_1): Same.
11972 (write_constraint_satisfied_p_array): Same.
11973 * genrecog.c (optimize_subroutine_group): Same.
11974 * gensupport.c (process_define_predicate): Same.
11975 (queue_pattern): Same.
11976 (remove_from_queue): Same.
11977 (process_rtx): Same.
11978 (is_predicable): Same.
11979 (change_subst_attribute): Same.
11980 (subst_pattern_match): Same.
11981 (alter_constraints): Same.
11982 (alter_attrs_for_insn): Same.
11983 (shift_output_template): Same.
11984 (alter_output_for_subst_insn): Same.
11985 (process_one_cond_exec): Same.
11987 (process_define_cond_exec): Same.
11988 (mnemonic_htab_callback): Same.
11989 (gen_mnemonic_attr): Same.
11990 (read_md_rtx): Same.
11991 * ggc-page.c: Same.
11992 * gimple-loop-interchange.cc (dump_reduction): Same.
11993 (dump_induction): Same.
11994 (loop_cand::~loop_cand): Same.
11995 (free_data_refs_with_aux): Same.
11996 (tree_loop_interchange::interchange_loops): Same.
11997 (tree_loop_interchange::map_inductions_to_loop): Same.
11998 (tree_loop_interchange::move_code_to_inner_loop): Same.
11999 (compute_access_stride): Same.
12000 (compute_access_strides): Same.
12001 (proper_loop_form_for_interchange): Same.
12002 (tree_loop_interchange_compute_ddrs): Same.
12003 (prune_datarefs_not_in_loop): Same.
12004 (prepare_data_references): Same.
12005 (pass_linterchange::execute): Same.
12006 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
12007 (unroll_jam_possible_p): Same.
12008 (fuse_loops): Same.
12009 (adjust_unroll_factor): Same.
12010 (tree_loop_unroll_and_jam): Same.
12011 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
12012 (loop_versioning::expensive_stmt_p): Same.
12013 (loop_versioning::version_for_unity): Same.
12014 (loop_versioning::dump_inner_likelihood): Same.
12015 (loop_versioning::find_per_loop_multiplication): Same.
12016 (loop_versioning::analyze_term_using_scevs): Same.
12017 (loop_versioning::record_address_fragment): Same.
12018 (loop_versioning::analyze_expr): Same.
12019 (loop_versioning::analyze_blocks): Same.
12020 (loop_versioning::prune_conditions): Same.
12021 (loop_versioning::merge_loop_info): Same.
12022 (loop_versioning::add_loop_to_queue): Same.
12023 (loop_versioning::decide_whether_loop_is_versionable): Same.
12024 (loop_versioning::make_versioning_decisions): Same.
12025 (loop_versioning::implement_versioning_decisions): Same.
12026 * gimple-ssa-evrp-analyze.c
12027 (evrp_range_analyzer::record_ranges_from_phis): Same.
12028 * gimple-ssa-store-merging.c (split_store::split_store): Same.
12029 (count_multiple_uses): Same.
12030 (split_group): Same.
12031 (imm_store_chain_info::output_merged_store): Same.
12032 (pass_store_merging::process_store): Same.
12033 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
12034 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
12036 (alloca_call_type): Same.
12037 (pass_walloca::execute): Same.
12038 * gimple-streamer-in.c (input_phi): Same.
12039 (input_gimple_stmt): Same.
12040 * gimple-streamer.h: Same.
12041 * godump.c (go_force_record_alignment): Same.
12042 (go_format_type): Same.
12043 (go_output_type): Same.
12044 (go_output_fndecl): Same.
12045 (go_output_typedef): Same.
12046 (keyword_hash_init): Same.
12047 (find_dummy_types): Same.
12048 * graph.c (draw_cfg_nodes_no_loops): Same.
12049 (draw_cfg_nodes_for_loop): Same.
12050 * hard-reg-set.h (hard_reg_set_iter_next): Same.
12051 * hsa-brig.c: Same.
12052 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
12053 * hsa-dump.c (dump_hsa_cfun): Same.
12054 * hsa-gen.c (gen_function_def_parameters): Same.
12055 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
12056 * input.c (dump_line_table_statistics): Same.
12057 (test_lexer): Same.
12059 * internal-fn.c (get_multi_vector_move): Same.
12060 (expand_load_lanes_optab_fn): Same.
12061 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
12062 (expand_GOMP_SIMT_EXIT): Same.
12063 (expand_GOMP_SIMT_LAST_LANE): Same.
12064 (expand_GOMP_SIMT_ORDERED_PRED): Same.
12065 (expand_GOMP_SIMT_VOTE_ANY): Same.
12066 (expand_GOMP_SIMT_XCHG_BFLY): Same.
12067 (expand_GOMP_SIMT_XCHG_IDX): Same.
12068 (expand_addsub_overflow): Same.
12069 (expand_neg_overflow): Same.
12070 (expand_mul_overflow): Same.
12071 (expand_call_mem_ref): Same.
12072 (expand_mask_load_optab_fn): Same.
12073 (expand_scatter_store_optab_fn): Same.
12074 (expand_gather_load_optab_fn): Same.
12075 * ipa-cp.c (ipa_get_parm_lattices): Same.
12076 (print_all_lattices): Same.
12077 (ignore_edge_p): Same.
12078 (build_toporder_info): Same.
12079 (free_toporder_info): Same.
12080 (push_node_to_stack): Same.
12081 (ipcp_lattice<valtype>::set_contains_variable): Same.
12082 (set_agg_lats_to_bottom): Same.
12083 (ipcp_bits_lattice::meet_with): Same.
12084 (set_single_call_flag): Same.
12085 (initialize_node_lattices): Same.
12086 (ipa_get_jf_ancestor_result): Same.
12087 (ipcp_verify_propagated_values): Same.
12088 (propagate_scalar_across_jump_function): Same.
12089 (propagate_context_across_jump_function): Same.
12090 (propagate_bits_across_jump_function): Same.
12091 (ipa_vr_operation_and_type_effects): Same.
12092 (propagate_vr_across_jump_function): Same.
12093 (set_check_aggs_by_ref): Same.
12094 (set_chain_of_aglats_contains_variable): Same.
12095 (merge_aggregate_lattices): Same.
12096 (agg_pass_through_permissible_p): Same.
12097 (propagate_aggs_across_jump_function): Same.
12098 (call_passes_through_thunk_p): Same.
12099 (propagate_constants_across_call): Same.
12100 (devirtualization_time_bonus): Same.
12101 (good_cloning_opportunity_p): Same.
12102 (context_independent_aggregate_values): Same.
12103 (gather_context_independent_values): Same.
12104 (perform_estimation_of_a_value): Same.
12105 (estimate_local_effects): Same.
12106 (value_topo_info<valtype>::add_val): Same.
12107 (add_all_node_vals_to_toposort): Same.
12108 (value_topo_info<valtype>::propagate_effects): Same.
12109 (ipcp_propagate_stage): Same.
12110 (ipcp_discover_new_direct_edges): Same.
12111 (same_node_or_its_all_contexts_clone_p): Same.
12112 (cgraph_edge_brings_value_p): Same.
12113 (gather_edges_for_value): Same.
12114 (create_specialized_node): Same.
12115 (find_more_scalar_values_for_callers_subset): Same.
12116 (find_more_contexts_for_caller_subset): Same.
12117 (copy_plats_to_inter): Same.
12118 (intersect_aggregates_with_edge): Same.
12119 (find_aggregate_values_for_callers_subset): Same.
12120 (cgraph_edge_brings_all_agg_vals_for_node): Same.
12121 (decide_about_value): Same.
12122 (decide_whether_version_node): Same.
12123 (spread_undeadness): Same.
12124 (identify_dead_nodes): Same.
12125 (ipcp_store_vr_results): Same.
12126 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
12127 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
12128 (redirect_to_unreachable): Same.
12129 (edge_set_predicate): Same.
12130 (evaluate_conditions_for_known_args): Same.
12131 (evaluate_properties_for_edge): Same.
12132 (ipa_fn_summary_t::duplicate): Same.
12133 (ipa_call_summary_t::duplicate): Same.
12134 (dump_ipa_call_summary): Same.
12135 (ipa_dump_fn_summary): Same.
12136 (eliminated_by_inlining_prob): Same.
12137 (set_cond_stmt_execution_predicate): Same.
12138 (set_switch_stmt_execution_predicate): Same.
12139 (compute_bb_predicates): Same.
12140 (will_be_nonconstant_expr_predicate): Same.
12141 (phi_result_unknown_predicate): Same.
12142 (analyze_function_body): Same.
12143 (compute_fn_summary): Same.
12144 (estimate_edge_devirt_benefit): Same.
12145 (estimate_edge_size_and_time): Same.
12146 (estimate_calls_size_and_time): Same.
12147 (estimate_node_size_and_time): Same.
12148 (remap_edge_change_prob): Same.
12149 (remap_edge_summaries): Same.
12150 (ipa_merge_fn_summary_after_inlining): Same.
12151 (ipa_fn_summary_generate): Same.
12152 (inline_read_section): Same.
12153 (ipa_fn_summary_read): Same.
12154 (ipa_fn_summary_write): Same.
12155 * ipa-fnsummary.h: Same.
12156 * ipa-hsa.c (ipa_hsa_read_section): Same.
12157 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
12158 * ipa-icf.c (sem_function::param_used_p): Same.
12159 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
12160 * ipa-inline.c (edge_badness): Same.
12161 (inline_small_functions): Same.
12162 * ipa-polymorphic-call.c
12163 (ipa_polymorphic_call_context::stream_out): Same.
12164 * ipa-predicate.c (predicate::remap_after_duplication): Same.
12165 (predicate::remap_after_inlining): Same.
12166 (predicate::stream_out): Same.
12167 * ipa-predicate.h: Same.
12168 * ipa-profile.c (ipa_profile_read_summary): Same.
12169 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
12170 (count_formal_params): Same.
12171 (ipa_dump_param): Same.
12172 (ipa_alloc_node_params): Same.
12173 (ipa_print_node_jump_functions_for_edge): Same.
12174 (ipa_print_node_jump_functions): Same.
12175 (ipa_load_from_parm_agg): Same.
12176 (get_ancestor_addr_info): Same.
12177 (ipa_compute_jump_functions_for_edge): Same.
12178 (ipa_analyze_virtual_call_uses): Same.
12179 (ipa_analyze_stmt_uses): Same.
12180 (ipa_analyze_params_uses_in_bb): Same.
12181 (update_jump_functions_after_inlining): Same.
12182 (try_decrement_rdesc_refcount): Same.
12183 (ipa_impossible_devirt_target): Same.
12184 (update_indirect_edges_after_inlining): Same.
12185 (combine_controlled_uses_counters): Same.
12186 (ipa_edge_args_sum_t::duplicate): Same.
12187 (ipa_write_jump_function): Same.
12188 (ipa_write_indirect_edge_info): Same.
12189 (ipa_write_node_info): Same.
12190 (ipa_read_edge_info): Same.
12191 (ipa_prop_read_section): Same.
12192 (read_replacements_section): Same.
12193 * ipa-prop.h (ipa_get_param_count): Same.
12194 (ipa_get_param): Same.
12195 (ipa_get_type): Same.
12196 (ipa_get_param_move_cost): Same.
12197 (ipa_set_param_used): Same.
12198 (ipa_get_controlled_uses): Same.
12199 (ipa_set_controlled_uses): Same.
12200 (ipa_get_cs_argument_count): Same.
12201 * ipa-pure-const.c (analyze_function): Same.
12202 (pure_const_read_summary): Same.
12204 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
12205 * ipa-split.c (test_nonssa_use): Same.
12206 (dump_split_point): Same.
12207 (dominated_by_forbidden): Same.
12208 (split_part_set_ssa_name_p): Same.
12209 (find_split_points): Same.
12210 * ira-build.c (finish_loop_tree_nodes): Same.
12211 (low_pressure_loop_node_p): Same.
12212 * ira-color.c (ira_reuse_stack_slot): Same.
12214 * ira.c (setup_reg_equiv): Same.
12215 (print_insn_chain): Same.
12217 * loop-doloop.c (doloop_condition_get): Same.
12219 (record_reg_sets): Same.
12220 (doloop_optimize): Same.
12221 * loop-init.c (loop_optimizer_init): Same.
12222 (fix_loop_structure): Same.
12223 * loop-invariant.c (merge_identical_invariants): Same.
12224 (compute_always_reached): Same.
12225 (find_exits): Same.
12226 (may_assign_reg_p): Same.
12227 (find_invariants_bb): Same.
12228 (find_invariants_body): Same.
12229 (replace_uses): Same.
12230 (can_move_invariant_reg): Same.
12231 (free_inv_motion_data): Same.
12232 (move_single_loop_invariants): Same.
12233 (change_pressure): Same.
12234 (mark_ref_regs): Same.
12235 (calculate_loop_reg_pressure): Same.
12236 * loop-iv.c (biv_entry_hasher::equal): Same.
12237 (iv_extend_to_rtx_code): Same.
12238 (check_iv_ref_table_size): Same.
12239 (clear_iv_info): Same.
12240 (latch_dominating_def): Same.
12241 (iv_get_reaching_def): Same.
12242 (iv_constant): Same.
12248 (get_biv_step): Same.
12250 (analyzed_for_bivness_p): Same.
12251 (record_biv): Same.
12252 (iv_analyze_biv): Same.
12253 (iv_analyze_expr): Same.
12254 (iv_analyze_def): Same.
12255 (iv_analyze_op): Same.
12256 (iv_analyze): Same.
12257 (iv_analyze_result): Same.
12259 (eliminate_implied_conditions): Same.
12260 (simplify_using_initial_values): Same.
12261 (shorten_into_mode): Same.
12262 (canonicalize_iv_subregs): Same.
12263 (determine_max_iter): Same.
12264 (check_simple_exit): Same.
12265 (find_simple_exit): Same.
12266 (get_simple_loop_desc): Same.
12267 * loop-unroll.c (report_unroll): Same.
12268 (decide_unrolling): Same.
12269 (unroll_loops): Same.
12270 (loop_exit_at_end_p): Same.
12271 (decide_unroll_constant_iterations): Same.
12272 (unroll_loop_constant_iterations): Same.
12273 (compare_and_jump_seq): Same.
12274 (unroll_loop_runtime_iterations): Same.
12275 (decide_unroll_stupid): Same.
12276 (unroll_loop_stupid): Same.
12277 (referenced_in_one_insn_in_loop_p): Same.
12278 (reset_debug_uses_in_loop): Same.
12279 (analyze_iv_to_split_insn): Same.
12280 * lra-eliminations.c (lra_debug_elim_table): Same.
12281 (setup_can_eliminate): Same.
12283 (lra_get_elimination_hard_regno): Same.
12284 (lra_eliminate_regs_1): Same.
12285 (eliminate_regs_in_insn): Same.
12286 (update_reg_eliminate): Same.
12287 (init_elimination): Same.
12288 (lra_eliminate): Same.
12290 * lra-lives.c (initiate_live_solver): Same.
12291 * lra-remat.c (create_remat_bb_data): Same.
12292 * lra-spills.c (lra_spill): Same.
12293 * lra.c (lra_set_insn_recog_data): Same.
12294 (lra_set_used_insn_alternative_by_uid): Same.
12295 (init_reg_info): Same.
12296 (expand_reg_info): Same.
12297 * lto-cgraph.c (output_symtab): Same.
12298 (read_identifier): Same.
12299 (get_alias_symbol): Same.
12300 (input_node): Same.
12301 (input_varpool_node): Same.
12303 (input_edge): Same.
12304 (input_cgraph_1): Same.
12305 (input_refs): Same.
12306 (input_symtab): Same.
12307 (input_offload_tables): Same.
12308 (output_cgraph_opt_summary): Same.
12309 (input_edge_opt_summary): Same.
12310 (input_cgraph_opt_section): Same.
12311 * lto-section-in.c (lto_free_raw_section_data): Same.
12312 (lto_create_simple_input_block): Same.
12313 (lto_free_function_in_decl_state_for_node): Same.
12314 * lto-streamer-in.c (lto_tag_check_set): Same.
12315 (lto_location_cache::revert_location_cache): Same.
12316 (lto_location_cache::input_location): Same.
12317 (lto_input_location): Same.
12318 (stream_input_location_now): Same.
12319 (lto_input_tree_ref): Same.
12320 (lto_input_eh_catch_list): Same.
12321 (input_eh_region): Same.
12322 (lto_init_eh): Same.
12323 (make_new_block): Same.
12325 (fixup_call_stmt_edges): Same.
12326 (input_struct_function_base): Same.
12327 (input_function): Same.
12328 (lto_read_body_or_constructor): Same.
12329 (lto_read_tree_1): Same.
12330 (lto_read_tree): Same.
12331 (lto_input_scc): Same.
12332 (lto_input_tree_1): Same.
12333 (lto_input_toplevel_asms): Same.
12334 (lto_input_mode_table): Same.
12335 (lto_reader_init): Same.
12336 (lto_data_in_create): Same.
12337 * lto-streamer-out.c (output_cfg): Same.
12338 * lto-streamer.h: Same.
12339 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12340 (generate_prolog_epilog): Same.
12341 (mark_loop_unsched): Same.
12342 (dump_insn_location): Same.
12343 (loop_canon_p): Same.
12344 (sms_schedule): Same.
12345 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12346 (expand_omp_for_generic): Same.
12347 (expand_omp_for_static_nochunk): Same.
12348 (expand_omp_for_static_chunk): Same.
12349 (expand_omp_simd): Same.
12350 (expand_omp_taskloop_for_inner): Same.
12351 (expand_oacc_for): Same.
12352 (expand_omp_atomic_pipeline): Same.
12353 (mark_loops_in_oacc_kernels_region): Same.
12354 * omp-offload.c (oacc_xform_loop): Same.
12355 * omp-simd-clone.c (simd_clone_adjust): Same.
12356 * optabs-query.c (get_traditional_extraction_insn): Same.
12357 * optabs.c (expand_vector_broadcast): Same.
12358 (expand_binop_directly): Same.
12359 (expand_twoval_unop): Same.
12360 (expand_twoval_binop): Same.
12361 (expand_unop_direct): Same.
12362 (emit_indirect_jump): Same.
12363 (emit_conditional_move): Same.
12364 (emit_conditional_neg_or_complement): Same.
12365 (emit_conditional_add): Same.
12366 (vector_compare_rtx): Same.
12367 (expand_vec_perm_1): Same.
12368 (expand_vec_perm_const): Same.
12369 (expand_vec_cond_expr): Same.
12370 (expand_vec_series_expr): Same.
12371 (maybe_emit_atomic_exchange): Same.
12372 (maybe_emit_sync_lock_test_and_set): Same.
12373 (expand_atomic_compare_and_swap): Same.
12374 (expand_atomic_load): Same.
12375 (expand_atomic_store): Same.
12376 (maybe_emit_op): Same.
12377 (valid_multiword_target_p): Same.
12378 (create_integer_operand): Same.
12379 (maybe_legitimize_operand_same_code): Same.
12380 (maybe_legitimize_operand): Same.
12381 (create_convert_operand_from_type): Same.
12382 (can_reuse_operands_p): Same.
12383 (maybe_legitimize_operands): Same.
12384 (maybe_gen_insn): Same.
12385 (maybe_expand_insn): Same.
12386 (maybe_expand_jump_insn): Same.
12387 (expand_insn): Same.
12388 * optabs.h (create_expand_operand): Same.
12389 (create_fixed_operand): Same.
12390 (create_output_operand): Same.
12391 (create_input_operand): Same.
12392 (create_convert_operand_to): Same.
12393 (create_convert_operand_from): Same.
12395 * poly-int.h: Same.
12396 * predict.c (optimize_insn_for_speed_p): Same.
12397 (optimize_loop_for_size_p): Same.
12398 (optimize_loop_for_speed_p): Same.
12399 (optimize_loop_nest_for_speed_p): Same.
12400 (get_base_value): Same.
12401 (predicted_by_loop_heuristics_p): Same.
12402 (predict_extra_loop_exits): Same.
12403 (predict_loops): Same.
12404 (predict_paths_for_bb): Same.
12405 (predict_paths_leading_to): Same.
12406 (propagate_freq): Same.
12407 (pass_profile::execute): Same.
12409 * profile-count.c (profile_count::differs_from_p): Same.
12410 (profile_probability::differs_lot_from_p): Same.
12411 * profile-count.h: Same.
12412 * profile.c (branch_prob): Same.
12413 * regrename.c (free_chain_data): Same.
12414 (mark_conflict): Same.
12415 (create_new_chain): Same.
12416 (merge_overlapping_regs): Same.
12417 (init_rename_info): Same.
12418 (merge_chains): Same.
12419 (regrename_analyze): Same.
12420 (regrename_do_replace): Same.
12421 (scan_rtx_reg): Same.
12422 (record_out_operands): Same.
12423 (build_def_use): Same.
12424 * regrename.h: Same.
12426 * reload1.c (init_reload): Same.
12427 (maybe_fix_stack_asms): Same.
12428 (copy_reloads): Same.
12429 (count_pseudo): Same.
12430 (count_spilled_pseudo): Same.
12432 (find_reload_regs): Same.
12433 (select_reload_regs): Same.
12434 (spill_hard_reg): Same.
12435 (fixup_eh_region_note): Same.
12436 (set_reload_reg): Same.
12437 (allocate_reload_reg): Same.
12438 (compute_reload_subreg_offset): Same.
12439 (reload_adjust_reg_for_icode): Same.
12440 (emit_input_reload_insns): Same.
12441 (emit_output_reload_insns): Same.
12442 (do_input_reload): Same.
12443 (inherit_piecemeal_p): Same.
12445 * sanopt.c (maybe_get_dominating_check): Same.
12446 (maybe_optimize_ubsan_ptr_ifn): Same.
12447 (can_remove_asan_check): Same.
12448 (maybe_optimize_asan_check_ifn): Same.
12449 (sanopt_optimize_walker): Same.
12450 * sched-deps.c (add_dependence_list): Same.
12451 (chain_to_prev_insn): Same.
12452 (add_insn_mem_dependence): Same.
12453 (create_insn_reg_set): Same.
12454 (maybe_extend_reg_info_p): Same.
12455 (sched_analyze_reg): Same.
12456 (sched_analyze_1): Same.
12457 (get_implicit_reg_pending_clobbers): Same.
12458 (chain_to_prev_insn_p): Same.
12459 (deps_analyze_insn): Same.
12460 (deps_start_bb): Same.
12461 (sched_free_deps): Same.
12463 (init_deps_reg_last): Same.
12465 * sched-ebb.c: Same.
12466 * sched-int.h: Same.
12467 * sched-rgn.c (add_branch_dependences): Same.
12468 (concat_insn_mem_list): Same.
12470 (sched_rgn_compute_dependencies): Same.
12471 * sel-sched-ir.c (reset_target_context): Same.
12472 (copy_deps_context): Same.
12473 (init_id_from_df): Same.
12474 (has_dependence_p): Same.
12475 (change_loops_latches): Same.
12476 (bb_top_order_comparator): Same.
12477 (make_region_from_loop_preheader): Same.
12478 (sel_init_pipelining): Same.
12479 (get_loop_nest_for_rgn): Same.
12480 (make_regions_from_the_rest): Same.
12481 (sel_is_loop_preheader_p): Same.
12482 * sel-sched-ir.h (inner_loop_header_p): Same.
12483 (get_all_loop_exits): Same.
12484 * selftest.h: Same.
12485 * sese.c (sese_build_liveouts): Same.
12486 (sese_insert_phis_for_liveouts): Same.
12487 * sese.h (defined_in_sese_p): Same.
12488 * sreal.c (sreal::stream_out): Same.
12490 * streamer-hooks.h: Same.
12491 * target-globals.c (save_target_globals): Same.
12492 * target-globals.h: Same.
12493 * target.def: Same.
12495 * targhooks.c (default_has_ifunc_p): Same.
12496 (default_empty_mask_is_expensive): Same.
12497 (default_init_cost): Same.
12498 * targhooks.h: Same.
12500 * tree-affine.c (aff_combination_mult): Same.
12501 (aff_combination_expand): Same.
12502 (aff_combination_constant_multiple_p): Same.
12503 * tree-affine.h: Same.
12504 * tree-cfg.c (build_gimple_cfg): Same.
12505 (replace_loop_annotate_in_block): Same.
12506 (replace_uses_by): Same.
12508 (dump_cfg_stats): Same.
12509 (gimple_duplicate_sese_region): Same.
12510 (gimple_duplicate_sese_tail): Same.
12511 (move_block_to_fn): Same.
12512 (replace_block_vars_by_duplicates): Same.
12513 (move_sese_region_to_fn): Same.
12514 (print_loops_bb): Same.
12515 (print_loop): Same.
12516 (print_loops): Same.
12518 (debug_loops): Same.
12519 * tree-cfg.h: Same.
12520 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12521 (chrec_fold_multiply_poly_poly): Same.
12522 (chrec_evaluate): Same.
12523 (chrec_component_in_loop_num): Same.
12524 (reset_evolution_in_loop): Same.
12525 (is_multivariate_chrec): Same.
12526 (chrec_contains_symbols): Same.
12527 (nb_vars_in_chrec): Same.
12528 (chrec_convert_1): Same.
12529 (chrec_convert_aggressive): Same.
12530 * tree-chrec.h: Same.
12531 * tree-core.h: Same.
12532 * tree-data-ref.c (dump_data_dependence_relation): Same.
12533 (canonicalize_base_object_address): Same.
12534 (data_ref_compare_tree): Same.
12535 (prune_runtime_alias_test_list): Same.
12536 (get_segment_min_max): Same.
12537 (create_intersect_range_checks): Same.
12538 (conflict_fn_no_dependence): Same.
12539 (object_address_invariant_in_loop_p): Same.
12540 (analyze_ziv_subscript): Same.
12541 (analyze_siv_subscript_cst_affine): Same.
12542 (analyze_miv_subscript): Same.
12543 (analyze_overlapping_iterations): Same.
12544 (build_classic_dist_vector_1): Same.
12545 (add_other_self_distances): Same.
12546 (same_access_functions): Same.
12547 (build_classic_dir_vector): Same.
12548 (subscript_dependence_tester_1): Same.
12549 (subscript_dependence_tester): Same.
12550 (access_functions_are_affine_or_constant_p): Same.
12551 (get_references_in_stmt): Same.
12552 (loop_nest_has_data_refs): Same.
12553 (graphite_find_data_references_in_stmt): Same.
12554 (find_data_references_in_bb): Same.
12555 (get_base_for_alignment): Same.
12556 (find_loop_nest_1): Same.
12557 (find_loop_nest): Same.
12558 * tree-data-ref.h (dr_alignment): Same.
12559 (ddr_dependence_level): Same.
12560 * tree-if-conv.c (fold_build_cond_expr): Same.
12561 (add_to_predicate_list): Same.
12562 (add_to_dst_predicate_list): Same.
12563 (phi_convertible_by_degenerating_args): Same.
12564 (idx_within_array_bound): Same.
12565 (all_preds_critical_p): Same.
12566 (pred_blocks_visited_p): Same.
12567 (predicate_bbs): Same.
12568 (build_region): Same.
12569 (if_convertible_loop_p_1): Same.
12570 (is_cond_scalar_reduction): Same.
12571 (predicate_scalar_phi): Same.
12572 (remove_conditions_and_labels): Same.
12573 (combine_blocks): Same.
12574 (version_loop_for_if_conversion): Same.
12575 (versionable_outer_loop_p): Same.
12576 (ifcvt_local_dce): Same.
12577 (tree_if_conversion): Same.
12578 (pass_if_conversion::gate): Same.
12579 * tree-if-conv.h: Same.
12580 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12581 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12583 (stmt_has_scalar_dependences_outside_loop): Same.
12584 (copy_loop_before): Same.
12585 (create_bb_after_loop): Same.
12586 (const_with_all_bytes_same): Same.
12587 (generate_memset_builtin): Same.
12588 (generate_memcpy_builtin): Same.
12589 (destroy_loop): Same.
12590 (build_rdg_partition_for_vertex): Same.
12591 (compute_access_range): Same.
12592 (data_ref_segment_size): Same.
12593 (latch_dominated_by_data_ref): Same.
12594 (compute_alias_check_pairs): Same.
12595 (fuse_memset_builtins): Same.
12596 (finalize_partitions): Same.
12597 (find_seed_stmts_for_distribution): Same.
12598 (prepare_perfect_loop_nest): Same.
12599 * tree-parloops.c (lambda_transform_legal_p): Same.
12600 (loop_parallel_p): Same.
12601 (reduc_stmt_res): Same.
12602 (add_field_for_name): Same.
12603 (create_call_for_reduction_1): Same.
12604 (replace_uses_in_bb_by): Same.
12605 (transform_to_exit_first_loop_alt): Same.
12606 (try_transform_to_exit_first_loop_alt): Same.
12607 (transform_to_exit_first_loop): Same.
12609 (gen_parallel_loop): Same.
12610 (gather_scalar_reductions): Same.
12611 (get_omp_data_i_param): Same.
12612 (try_create_reduction_list): Same.
12613 (oacc_entry_exit_single_gang): Same.
12614 (parallelize_loops): Same.
12615 * tree-pass.h: Same.
12616 * tree-predcom.c (determine_offset): Same.
12617 (last_always_executed_block): Same.
12618 (split_data_refs_to_components): Same.
12619 (suitable_component_p): Same.
12620 (valid_initializer_p): Same.
12621 (find_looparound_phi): Same.
12622 (insert_looparound_copy): Same.
12623 (add_looparound_copies): Same.
12624 (determine_roots_comp): Same.
12625 (predcom_tmp_var): Same.
12626 (initialize_root_vars): Same.
12627 (initialize_root_vars_store_elim_1): Same.
12628 (initialize_root_vars_store_elim_2): Same.
12629 (finalize_eliminated_stores): Same.
12630 (initialize_root_vars_lm): Same.
12631 (remove_stmt): Same.
12632 (determine_unroll_factor): Same.
12633 (execute_pred_commoning_cbck): Same.
12634 (base_names_in_chain_on): Same.
12635 (combine_chains): Same.
12636 (pcom_stmt_dominates_stmt_p): Same.
12637 (try_combine_chains): Same.
12638 (prepare_initializers_chain_store_elim): Same.
12639 (prepare_initializers_chain): Same.
12640 (prepare_initializers): Same.
12641 (prepare_finalizers_chain): Same.
12642 (prepare_finalizers): Same.
12643 (insert_init_seqs): Same.
12644 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12645 (compute_overall_effect_of_inner_loop): Same.
12646 (add_to_evolution_1): Same.
12647 (add_to_evolution): Same.
12648 (follow_ssa_edge_binary): Same.
12649 (follow_ssa_edge_expr): Same.
12650 (backedge_phi_arg_p): Same.
12651 (follow_ssa_edge_in_condition_phi_branch): Same.
12652 (follow_ssa_edge_in_condition_phi): Same.
12653 (follow_ssa_edge_inner_loop_phi): Same.
12654 (follow_ssa_edge): Same.
12655 (analyze_evolution_in_loop): Same.
12656 (analyze_initial_condition): Same.
12657 (interpret_loop_phi): Same.
12658 (interpret_condition_phi): Same.
12659 (interpret_rhs_expr): Same.
12660 (interpret_expr): Same.
12661 (interpret_gimple_assign): Same.
12662 (analyze_scalar_evolution_1): Same.
12663 (analyze_scalar_evolution): Same.
12664 (analyze_scalar_evolution_for_address_of): Same.
12665 (get_instantiated_value_entry): Same.
12666 (loop_closed_phi_def): Same.
12667 (instantiate_scev_name): Same.
12668 (instantiate_scev_poly): Same.
12669 (instantiate_scev_binary): Same.
12670 (instantiate_scev_convert): Same.
12671 (instantiate_scev_not): Same.
12672 (instantiate_scev_r): Same.
12673 (instantiate_scev): Same.
12674 (resolve_mixers): Same.
12675 (initialize_scalar_evolutions_analyzer): Same.
12676 (scev_reset_htab): Same.
12677 (scev_reset): Same.
12678 (derive_simple_iv_with_niters): Same.
12679 (simple_iv_with_niters): Same.
12680 (expression_expensive_p): Same.
12681 (final_value_replacement_loop): Same.
12682 * tree-scalar-evolution.h (block_before_loop): Same.
12683 * tree-ssa-address.h: Same.
12684 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12685 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12686 (record_edge_info): Same.
12687 * tree-ssa-live.c (var_map_base_fini): Same.
12688 (remove_unused_locals): Same.
12689 * tree-ssa-live.h: Same.
12690 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12691 (pass_ch_vect::execute): Same.
12692 (pass_ch::process_loop_p): Same.
12693 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12694 (movement_possibility): Same.
12695 (outermost_invariant_loop): Same.
12697 (determine_max_movement): Same.
12698 (invariantness_dom_walker::before_dom_children): Same.
12699 (move_computations): Same.
12700 (may_move_till): Same.
12701 (force_move_till_op): Same.
12702 (force_move_till): Same.
12703 (memref_free): Same.
12704 (record_mem_ref_loc): Same.
12705 (set_ref_stored_in_loop): Same.
12706 (mark_ref_stored): Same.
12707 (sort_bbs_in_loop_postorder_cmp): Same.
12708 (sort_locs_in_loop_postorder_cmp): Same.
12709 (analyze_memory_references): Same.
12710 (mem_refs_may_alias_p): Same.
12711 (find_ref_loc_in_loop_cmp): Same.
12712 (rewrite_mem_ref_loc::operator): Same.
12713 (first_mem_ref_loc_1::operator): Same.
12714 (sm_set_flag_if_changed::operator): Same.
12715 (execute_sm_if_changed_flag_set): Same.
12716 (execute_sm): Same.
12717 (hoist_memory_references): Same.
12718 (ref_always_accessed::operator): Same.
12719 (refs_independent_p): Same.
12720 (record_dep_loop): Same.
12721 (ref_indep_loop_p_1): Same.
12722 (ref_indep_loop_p): Same.
12723 (can_sm_ref_p): Same.
12724 (find_refs_for_sm): Same.
12725 (loop_suitable_for_sm): Same.
12726 (store_motion_loop): Same.
12727 (store_motion): Same.
12728 (fill_always_executed_in): Same.
12729 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12730 (estimated_unrolled_size): Same.
12731 (loop_edge_to_cancel): Same.
12732 (remove_exits_and_undefined_stmts): Same.
12733 (remove_redundant_iv_tests): Same.
12734 (unloop_loops): Same.
12735 (estimated_peeled_sequence_size): Same.
12736 (try_peel_loop): Same.
12737 (canonicalize_loop_induction_variables): Same.
12738 (canonicalize_induction_variables): Same.
12739 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12741 (stmt_after_inc_pos): Same.
12742 (contains_abnormal_ssa_name_p): Same.
12743 (niter_for_exit): Same.
12746 (find_givs_in_bb): Same.
12747 (find_induction_variables): Same.
12748 (find_interesting_uses_cond): Same.
12749 (outermost_invariant_loop_for_expr): Same.
12750 (idx_find_step): Same.
12751 (add_candidate_1): Same.
12752 (add_iv_candidate_derived_from_uses): Same.
12753 (alloc_use_cost_map): Same.
12754 (prepare_decl_rtl): Same.
12755 (generic_predict_doloop_p): Same.
12756 (computation_cost): Same.
12757 (determine_common_wider_type): Same.
12758 (get_computation_aff_1): Same.
12759 (get_use_type): Same.
12760 (determine_group_iv_cost_address): Same.
12762 (difference_cannot_overflow_p): Same.
12763 (may_eliminate_iv): Same.
12764 (determine_set_costs): Same.
12765 (cheaper_cost_pair): Same.
12766 (compare_cost_pair): Same.
12767 (iv_ca_cand_for_group): Same.
12768 (iv_ca_recount_cost): Same.
12769 (iv_ca_set_remove_invs): Same.
12770 (iv_ca_set_no_cp): Same.
12771 (iv_ca_set_add_invs): Same.
12772 (iv_ca_set_cp): Same.
12773 (iv_ca_add_group): Same.
12774 (iv_ca_cost): Same.
12775 (iv_ca_compare_deps): Same.
12776 (iv_ca_delta_reverse): Same.
12777 (iv_ca_delta_commit): Same.
12778 (iv_ca_cand_used_p): Same.
12779 (iv_ca_delta_free): Same.
12781 (iv_ca_free): Same.
12782 (iv_ca_dump): Same.
12783 (iv_ca_extend): Same.
12784 (iv_ca_narrow): Same.
12785 (iv_ca_prune): Same.
12786 (cheaper_cost_with_cand): Same.
12787 (iv_ca_replace): Same.
12788 (try_add_cand_for): Same.
12789 (get_initial_solution): Same.
12790 (try_improve_iv_set): Same.
12791 (find_optimal_iv_set_1): Same.
12792 (create_new_iv): Same.
12793 (rewrite_use_compare): Same.
12794 (remove_unused_ivs): Same.
12795 (determine_scaling_factor): Same.
12796 * tree-ssa-loop-ivopts.h: Same.
12797 * tree-ssa-loop-manip.c (create_iv): Same.
12798 (compute_live_loop_exits): Same.
12799 (add_exit_phi): Same.
12800 (add_exit_phis): Same.
12801 (find_uses_to_rename_use): Same.
12802 (find_uses_to_rename_def): Same.
12803 (find_uses_to_rename_in_loop): Same.
12804 (rewrite_into_loop_closed_ssa): Same.
12805 (check_loop_closed_ssa_bb): Same.
12806 (split_loop_exit_edge): Same.
12807 (ip_end_pos): Same.
12808 (ip_normal_pos): Same.
12809 (copy_phi_node_args): Same.
12810 (gimple_duplicate_loop_to_header_edge): Same.
12811 (can_unroll_loop_p): Same.
12812 (determine_exit_conditions): Same.
12813 (scale_dominated_blocks_in_loop): Same.
12814 (niter_for_unrolled_loop): Same.
12815 (tree_transform_and_unroll_loop): Same.
12816 (rewrite_all_phi_nodes_with_iv): Same.
12817 * tree-ssa-loop-manip.h: Same.
12818 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12819 (number_of_iterations_ne): Same.
12820 (assert_no_overflow_lt): Same.
12821 (assert_loop_rolls_lt): Same.
12822 (number_of_iterations_lt): Same.
12823 (adjust_cond_for_loop_until_wrap): Same.
12824 (tree_simplify_using_condition): Same.
12825 (simplify_using_initial_conditions): Same.
12826 (simplify_using_outer_evolutions): Same.
12827 (loop_only_exit_p): Same.
12828 (ssa_defined_by_minus_one_stmt_p): Same.
12829 (number_of_iterations_popcount): Same.
12830 (number_of_iterations_exit): Same.
12831 (find_loop_niter): Same.
12832 (finite_loop_p): Same.
12833 (chain_of_csts_start): Same.
12834 (get_val_for): Same.
12835 (loop_niter_by_eval): Same.
12836 (derive_constant_upper_bound_ops): Same.
12837 (do_warn_aggressive_loop_optimizations): Same.
12838 (record_estimate): Same.
12839 (get_cst_init_from_scev): Same.
12840 (record_nonwrapping_iv): Same.
12841 (idx_infer_loop_bounds): Same.
12842 (infer_loop_bounds_from_ref): Same.
12843 (infer_loop_bounds_from_array): Same.
12844 (infer_loop_bounds_from_pointer_arith): Same.
12845 (infer_loop_bounds_from_signedness): Same.
12846 (bound_index): Same.
12847 (discover_iteration_bound_by_body_walk): Same.
12848 (maybe_lower_iteration_bound): Same.
12849 (estimate_numbers_of_iterations): Same.
12850 (estimated_loop_iterations): Same.
12851 (estimated_loop_iterations_int): Same.
12852 (max_loop_iterations): Same.
12853 (max_loop_iterations_int): Same.
12854 (likely_max_loop_iterations): Same.
12855 (likely_max_loop_iterations_int): Same.
12856 (estimated_stmt_executions_int): Same.
12857 (max_stmt_executions): Same.
12858 (likely_max_stmt_executions): Same.
12859 (estimated_stmt_executions): Same.
12860 (stmt_dominates_stmt_p): Same.
12861 (nowrap_type_p): Same.
12862 (loop_exits_before_overflow): Same.
12863 (scev_var_range_cant_overflow): Same.
12864 (scev_probably_wraps_p): Same.
12865 (free_numbers_of_iterations_estimates): Same.
12866 * tree-ssa-loop-niter.h: Same.
12867 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12868 (idx_analyze_ref): Same.
12869 (analyze_ref): Same.
12870 (gather_memory_references_ref): Same.
12871 (mark_nontemporal_store): Same.
12872 (emit_mfence_after_loop): Same.
12873 (may_use_storent_in_loop_p): Same.
12874 (mark_nontemporal_stores): Same.
12875 (should_unroll_loop_p): Same.
12876 (volume_of_dist_vector): Same.
12877 (add_subscript_strides): Same.
12878 (self_reuse_distance): Same.
12879 (insn_to_prefetch_ratio_too_small_p): Same.
12880 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12881 (patch_loop_exit): Same.
12882 (find_or_create_guard_phi): Same.
12883 (easy_exit_values): Same.
12884 (connect_loop_phis): Same.
12885 (connect_loops): Same.
12886 (compute_new_first_bound): Same.
12887 (split_loop): Same.
12888 (tree_ssa_split_loops): Same.
12889 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12890 (is_maybe_undefined): Same.
12891 (tree_may_unswitch_on): Same.
12892 (simplify_using_entry_checks): Same.
12893 (tree_unswitch_single_loop): Same.
12894 (tree_unswitch_loop): Same.
12895 (tree_unswitch_outer_loop): Same.
12896 (empty_bb_without_guard_p): Same.
12897 (used_outside_loop_p): Same.
12898 (get_vop_from_header): Same.
12899 (hoist_guard): Same.
12900 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12901 (get_lsm_tmp_name): Same.
12902 * tree-ssa-loop.h: Same.
12903 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12904 (build_and_add_sum): Same.
12905 (no_side_effect_bb): Same.
12907 (linearize_expr): Same.
12908 (should_break_up_subtract): Same.
12909 (linearize_expr_tree): Same.
12910 * tree-ssa-scopedtables.c: Same.
12911 * tree-ssa-scopedtables.h: Same.
12912 * tree-ssa-structalias.c (condense_visit): Same.
12913 (label_visit): Same.
12914 (dump_pred_graph): Same.
12915 (perform_var_substitution): Same.
12916 (move_complex_constraints): Same.
12917 (remove_preds_and_fake_succs): Same.
12918 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12919 (determine_bb_domination_status): Same.
12920 (duplicate_thread_path): Same.
12921 (thread_through_all_blocks): Same.
12922 * tree-ssa-threadupdate.h: Same.
12923 * tree-streamer-in.c (streamer_read_string_cst): Same.
12924 (input_identifier): Same.
12925 (unpack_ts_type_common_value_fields): Same.
12926 (unpack_ts_block_value_fields): Same.
12927 (unpack_ts_translation_unit_decl_value_fields): Same.
12928 (unpack_ts_omp_clause_value_fields): Same.
12929 (streamer_read_tree_bitfields): Same.
12930 (streamer_alloc_tree): Same.
12931 (lto_input_ts_common_tree_pointers): Same.
12932 (lto_input_ts_vector_tree_pointers): Same.
12933 (lto_input_ts_poly_tree_pointers): Same.
12934 (lto_input_ts_complex_tree_pointers): Same.
12935 (lto_input_ts_decl_minimal_tree_pointers): Same.
12936 (lto_input_ts_decl_common_tree_pointers): Same.
12937 (lto_input_ts_decl_non_common_tree_pointers): Same.
12938 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12939 (lto_input_ts_field_decl_tree_pointers): Same.
12940 (lto_input_ts_function_decl_tree_pointers): Same.
12941 (lto_input_ts_type_common_tree_pointers): Same.
12942 (lto_input_ts_type_non_common_tree_pointers): Same.
12943 (lto_input_ts_list_tree_pointers): Same.
12944 (lto_input_ts_vec_tree_pointers): Same.
12945 (lto_input_ts_exp_tree_pointers): Same.
12946 (lto_input_ts_block_tree_pointers): Same.
12947 (lto_input_ts_binfo_tree_pointers): Same.
12948 (lto_input_ts_constructor_tree_pointers): Same.
12949 (lto_input_ts_omp_clause_tree_pointers): Same.
12950 (streamer_read_tree_body): Same.
12951 * tree-streamer.h: Same.
12952 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12953 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12954 (vect_analyze_possibly_independent_ddr): Same.
12955 (vect_analyze_data_ref_dependence): Same.
12956 (vect_compute_data_ref_alignment): Same.
12957 (vect_enhance_data_refs_alignment): Same.
12958 (vect_analyze_data_ref_access): Same.
12959 (vect_check_gather_scatter): Same.
12960 (vect_find_stmt_data_reference): Same.
12961 (vect_create_addr_base_for_vector_ref): Same.
12962 (vect_setup_realignment): Same.
12963 (vect_supportable_dr_alignment): Same.
12964 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12965 (adjust_phi_and_debug_stmts): Same.
12966 (vect_set_loop_mask): Same.
12967 (add_preheader_seq): Same.
12968 (vect_maybe_permute_loop_masks): Same.
12969 (vect_set_loop_masks_directly): Same.
12970 (vect_set_loop_condition_masked): Same.
12971 (vect_set_loop_condition_unmasked): Same.
12972 (slpeel_duplicate_current_defs_from_edges): Same.
12973 (slpeel_add_loop_guard): Same.
12974 (slpeel_can_duplicate_loop_p): Same.
12975 (create_lcssa_for_virtual_phi): Same.
12977 (vect_update_ivs_after_vectorizer): Same.
12978 (vect_gen_vector_loop_niters_mult_vf): Same.
12979 (slpeel_update_phi_nodes_for_loops): Same.
12980 (slpeel_update_phi_nodes_for_guard1): Same.
12981 (find_guard_arg): Same.
12982 (slpeel_update_phi_nodes_for_guard2): Same.
12983 (slpeel_update_phi_nodes_for_lcssa): Same.
12984 (vect_do_peeling): Same.
12985 (vect_create_cond_for_alias_checks): Same.
12986 (vect_loop_versioning): Same.
12987 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12988 (vect_inner_phi_in_double_reduction_p): Same.
12989 (vect_analyze_scalar_cycles_1): Same.
12990 (vect_fixup_scalar_cycles_with_patterns): Same.
12991 (vect_get_loop_niters): Same.
12992 (bb_in_loop_p): Same.
12993 (vect_get_max_nscalars_per_iter): Same.
12994 (vect_verify_full_masking): Same.
12995 (vect_compute_single_scalar_iteration_cost): Same.
12996 (vect_analyze_loop_form_1): Same.
12997 (vect_analyze_loop_form): Same.
12998 (vect_active_double_reduction_p): Same.
12999 (vect_analyze_loop_operations): Same.
13000 (neutral_op_for_slp_reduction): Same.
13001 (vect_is_simple_reduction): Same.
13002 (vect_model_reduction_cost): Same.
13003 (get_initial_def_for_reduction): Same.
13004 (get_initial_defs_for_reduction): Same.
13005 (vect_create_epilog_for_reduction): Same.
13006 (vectorize_fold_left_reduction): Same.
13007 (vectorizable_reduction): Same.
13008 (vectorizable_induction): Same.
13009 (vectorizable_live_operation): Same.
13010 (loop_niters_no_overflow): Same.
13011 (vect_get_loop_mask): Same.
13012 (vect_transform_loop_stmt): Same.
13013 (vect_transform_loop): Same.
13014 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
13015 (vect_determine_precisions): Same.
13016 (vect_pattern_recog_1): Same.
13017 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
13018 * tree-vect-stmts.c (stmt_vectype): Same.
13019 (process_use): Same.
13020 (vect_init_vector_1): Same.
13021 (vect_truncate_gather_scatter_offset): Same.
13022 (get_group_load_store_type): Same.
13023 (vect_build_gather_load_calls): Same.
13024 (vect_get_strided_load_store_ops): Same.
13025 (vectorizable_simd_clone_call): Same.
13026 (vectorizable_store): Same.
13027 (permute_vec_elements): Same.
13028 (vectorizable_load): Same.
13029 (vect_transform_stmt): Same.
13030 (supportable_widening_operation): Same.
13031 * tree-vectorizer.c (vec_info::replace_stmt): Same.
13032 (vec_info::free_stmt_vec_info): Same.
13033 (vect_free_loop_info_assumptions): Same.
13034 (vect_loop_vectorized_call): Same.
13035 (set_uid_loop_bbs): Same.
13036 (vectorize_loops): Same.
13037 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
13038 * tree.c (add_tree_to_fld_list): Same.
13039 (fld_type_variant_equal_p): Same.
13040 (fld_decl_context): Same.
13041 (fld_incomplete_type_of): Same.
13042 (free_lang_data_in_binfo): Same.
13043 (need_assembler_name_p): Same.
13044 (find_decls_types_r): Same.
13045 (get_eh_types_for_runtime): Same.
13046 (find_decls_types_in_eh_region): Same.
13047 (find_decls_types_in_node): Same.
13048 (assign_assembler_name_if_needed): Same.
13049 * value-prof.c (stream_out_histogram_value): Same.
13050 * value-prof.h: Same.
13051 * var-tracking.c (use_narrower_mode): Same.
13052 (prepare_call_arguments): Same.
13053 (vt_expand_loc_callback): Same.
13054 (resolve_expansions_pending_recursion): Same.
13055 (vt_expand_loc): Same.
13056 * varasm.c (const_hash_1): Same.
13057 (compare_constant): Same.
13058 (tree_output_constant_def): Same.
13059 (simplify_subtraction): Same.
13060 (get_pool_constant): Same.
13061 (output_constant_pool_2): Same.
13062 (output_constant_pool_1): Same.
13063 (mark_constants_in_pattern): Same.
13064 (mark_constant_pool): Same.
13065 (get_section_anchor): Same.
13066 * vr-values.c (compare_range_with_value): Same.
13067 (vr_values::extract_range_from_phi_node): Same.
13068 * vr-values.h: Same.
13069 * web.c (unionfind_union): Same.
13070 * wide-int.h: Same.
13072 2019-07-09 Martin Sebor <msebor@redhat.com>
13075 * align.h: Change class-key from class to struct and vice versa
13076 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
13077 * alloc-pool.h: Same.
13078 * asan.c (shadow_mem_size): Same.
13079 * auto-profile.c: Same.
13080 * basic-block.h: Same.
13082 * cfgexpand.c (set_rtl): Same.
13083 (expand_one_stack_var_at): Same.
13084 * cfghooks.h: Same.
13087 * config/i386/i386.h: Same.
13088 * df-problems.c (df_print_bb_index): Same.
13090 * df.h (df_single_use): Same.
13091 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
13092 (layout::annotation_line_showed_range_p): Same.
13093 (get_printed_columns): Same.
13094 (correction::ensure_terminated): Same.
13095 (line_corrections::~line_corrections): Same.
13098 * dump-context.h: Same.
13099 * dumpfile.h: Same.
13100 * dwarf2out.c: Same.
13101 * edit-context.c: Same.
13102 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
13104 * function.c (assign_stack_local): Same.
13105 * function.h: Same.
13107 * gcov.c (block_info::block_info): Same.
13108 * genattrtab.c: Same.
13109 * genextract.c: Same.
13110 * genmatch.c (comparison_code_p): Same.
13111 (id_base::id_base): Same.
13112 (decision_tree::print): Same.
13113 * genoutput.c: Same.
13114 * genpreds.c (write_one_predicate_function): Same.
13115 * genrecog.c (validate_pattern): Same.
13116 (find_operand_positions): Same.
13117 (optimize_subroutine_group): Same.
13118 (merge_pattern_transition::merge_pattern_transition): Same.
13119 (merge_pattern_info::merge_pattern_info): Same.
13120 (merge_state_result::merge_state_result): Same.
13121 (merge_into_state): Same.
13122 * gensupport.c: Same.
13123 * gensupport.h: Same.
13124 * ggc-common.c (init_ggc_heuristics): Same.
13125 * ggc-tests.c (test_union): Same.
13126 * gimple-loop-interchange.cc (dump_induction): Same.
13127 * gimple-loop-versioning.cc: Same.
13128 * gimple-match.h (gimple_match_cond::any_else): Same.
13129 * gimple-ssa-backprop.c: Same.
13130 * gimple-ssa-sprintf.c: Same.
13131 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
13133 (store_immediate_info::store_immediate_info): Same.
13134 (merged_store_group::apply_stores): Same.
13135 (get_location_for_stmts): Same.
13136 * gimple-ssa-strength-reduction.c: Same.
13137 * gimple-ssa-warn-alloca.c: Same.
13138 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
13139 * godump.c (go_type_decl): Same.
13140 * hash-map-tests.c (test_map_of_strings_to_int): Same.
13141 * hash-map.h: Same.
13142 * hash-set-tests.c (test_set_of_strings): Same.
13143 * hsa-brig.c: Same.
13144 * hsa-common.h: Same.
13145 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
13146 * input.c (assert_loceq): Same.
13149 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
13150 * ipa-fnsummary.h: Same.
13151 * ipa-inline.h: Same.
13152 * ipa-prop.h: Same.
13153 * ipa-split.c (visit_bb): Same.
13154 * ira-int.h (minmax_set_iter_next): Same.
13155 * loop-invariant.c: Same.
13157 * lra-eliminations.c: Same.
13159 * lra-lives.c (mark_regno_dead): Same.
13160 * lra-remat.c: Same.
13161 * lra-spills.c: Same.
13162 * lto-streamer.h: Same.
13163 * mem-stats.h: Same.
13164 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
13165 * omp-low.c (omp_clause_aligned_alignment): Same.
13166 * optabs-query.h (get_vcond_eq_icode): Same.
13168 * opts.c (wrap_help): Same.
13169 * poly-int.h: Same.
13170 * predict.c (predict_paths_leading_to_edge): Same.
13171 * pretty-print.h: Same.
13172 * profile-count.h: Same.
13174 * read-rtl-function.c: Same.
13177 * regrename.c: Same.
13178 * regrename.h: Same.
13180 * rtl-iter.h: Same.
13181 * rtl.h (costs_add_n_insns): Same.
13183 * sched-int.h: Same.
13184 * sel-sched-ir.h: Same.
13185 * selftest.h: Same.
13186 * sese.h (vec_find): Same.
13188 * target-globals.h: Same.
13189 * tree-affine.c (aff_combination_find_elt): Same.
13190 * tree-affine.h: Same.
13191 * tree-data-ref.h: Same.
13192 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
13193 * tree-predcom.c: Same.
13194 * tree-scalar-evolution.c (find_var_scev_info): Same.
13195 * tree-ssa-alias.h: Same.
13196 * tree-ssa-ccp.c: Same.
13197 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
13198 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
13199 (rewrite_mem_refs): Same.
13200 (execute_sm_if_changed): Same.
13201 (hoist_memory_references): Same.
13202 * tree-ssa-loop-ivopts.c (operator<=): Same.
13203 * tree-ssa-loop.h: Same.
13204 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
13205 * tree-ssa-structalias.c: Same.
13206 * tree-switch-conversion.h (cluster::cluster): Same.
13207 (simple_cluster::simple_cluster): Same.
13208 * tree-vect-patterns.c (type_conversion_p): Same.
13209 * tree-vectorizer.c (dump_stmt_cost): Same.
13210 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
13211 * tree.c (protected_set_expr_location): Same.
13212 * tree.h (desired_pro_or_demotion_p): Same.
13213 (fndecl_built_in_p): Same.
13214 * unique-ptr-tests.cc: Same.
13215 * var-tracking.c (delete_variable_part): Same.
13216 * varasm.c (assemble_real): Same.
13217 (tree_output_constant_def): Same.
13219 * wide-int-bitmask.h: Same.
13220 * wide-int.h (decompose): Same.
13222 2019-07-09 Richard Biener <rguenther@suse.de>
13224 PR tree-optimization/91114
13225 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
13226 find a vector type isn't fatal.
13228 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13230 * config/aarch64/aarch64-simd.md
13231 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
13232 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
13233 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
13234 (*aarch64_crypto_aese_fused,
13235 *aarch64_crypto_aesd_fused): Update to new definition.
13236 * config/aarch64/aarch64.c
13237 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
13239 2019-07-09 Richard Biener <rguenther@suse.de>
13241 * gimple-match.h (gimple_match_op::resimplify): New.
13242 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
13243 gimple_resimplify4, gimple_resimplify5): Remove.
13244 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
13245 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
13247 (gimple_match_op::resimplify): New.
13248 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
13249 according to availability. Use gimple_match_op::resimplify.
13251 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
13253 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
13255 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13257 * config/arm/crypto.md:
13258 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
13259 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
13260 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
13261 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
13263 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
13264 * config/arm/aarch-common-protos.h
13265 (aarch_crypto_can_dual_issue): Remove.
13266 * config/arm/aarch-common.c
13267 (aarch_crypto_can_dual_issue): Likewise.
13268 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
13269 * config/arm/cortex-a53.md: Likewise.
13270 * config/arm/cortex-a57.md: Likewise.
13271 * config/arm/iterators.md:
13272 (CRYPTO_BINARY): Redefine.
13273 (CRYPTO_UNARY): Removed.
13274 (CRYPTO_AES, CRYPTO_AESMC): New.
13276 2019-07-09 Richard Biener <rguenther@suse.de>
13278 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
13279 (vn_reference_lookup_3): If the main ref has no access path recorded
13280 but orig_ref has use it to do access-path based disambiguation.
13281 (vn_reference_lookup_pieces): Adjust.
13282 (vn_reference_lookup): Pass down original ref if we valueized.
13284 2019-07-09 Martin Liska <mliska@suse.cz>
13286 * doc/extend.texi: Document influence on loop
13289 2019-07-09 Martin Liska <mliska@suse.cz>
13291 * lto-compress.c (lto_normalized_zstd_level): Do not use
13292 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
13293 of libzstd. One can use 0 as a default compression level.
13295 2019-07-09 Martin Liska <mliska@suse.cz>
13297 * doc/invoke.texi: Add link from -fprofile-dir option.
13298 Use better wording for 'gcno filename'.
13300 2019-07-08 Martin Sebor <msebor@redhat.com>
13302 PR middle-end/71924
13303 PR middle-end/90549
13304 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
13306 (args_loc_t): New type.
13307 (args_loc_t, locmap_t): same.
13308 (diag_returned_locals): New function.
13309 (is_addr_local): Same.
13310 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
13311 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
13312 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
13314 2019-07-08 Jakub Jelinek <jakub@redhat.com>
13316 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
13317 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
13318 and casts in offset when different, both through gimple stmts
13319 and through trees. Rewritten using loops to minimize code duplication
13322 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13324 * emit-rtl.c (set_insn_locations): New function moved from...
13325 * function.c (set_insn_locations): ...here.
13326 * ira-emit.c (emit_moves): Propagate location of the first instruction
13327 to the inserted move instructions.
13328 * reg-stack.c (compensate_edge): Set the location if the sequence is
13329 inserted on the edge.
13330 * rtl.h (set_insn_locations): Declare.
13332 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13334 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13335 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13338 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13340 PR rtl-optimization/88233
13341 * common.opt (fsplit-wide-types-early): New option.
13342 * common/config/rs6000/rs6000-common.c
13343 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13345 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13346 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13347 flag_split_wide_types_early.
13348 (pass_data_lower_subreg3): New.
13349 (pass_lower_subreg3): New.
13350 (make_pass_lower_subreg3): New.
13351 * passes.def (pass_lower_subreg2): Move after the loop passes.
13352 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13353 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13354 the pass pipeline; its previous place is taken by ...
13355 (make_pass_lower_subreg3): ... this.
13357 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13359 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13360 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13362 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13364 * config/s390/constraints.md: Add new jsc constraint.
13365 * config/s390/predicates.md: New predicates.
13366 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13367 * config/s390/s390.c (s390_valid_shift_count): New function.
13368 (print_shift_count_operand): Use s390_valid_shift_count.
13369 (print_operand): Likewise.
13370 * config/s390/s390.md: Use new predicate.
13371 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13372 * config/s390/vector.md: Use new predicate.
13374 2019-07-08 Andrew Waterman <andrew@sifive.com>
13375 Jim Wilson <jimw@sifive.com>
13377 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13378 bitsize instead of BITS_PER_WORD.
13380 2019-07-08 Martin Liska <mliska@suse.cz>
13382 * collect2.c (defined): Revert to before r254460.
13383 (scan_prog_file): Revert to before r254460.
13385 2019-07-08 Richard Biener <rguenther@suse.de>
13387 PR tree-optimization/83518
13388 * tree-ssa-sccvn.c: Include splay-tree.h.
13389 (struct pd_range, struct pd_data): New.
13390 (struct vn_walk_cb_data): Add data to track partial definitions.
13391 (vn_walk_cb_data::~vn_walk_cb_data): New.
13392 (vn_walk_cb_data::push_partial_def): New.
13393 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13394 (vn_reference_lookup_2): When partial defs are registered give up.
13395 (vn_reference_lookup_3): Track partial defs for memset and
13396 constructor zeroing and for defs from constants.
13398 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13400 * doc/install.texi (bootstrap-Og): Document.
13402 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13404 * config/riscv/pic.md (*local_pic_load_s<mode>)
13405 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13406 referenced by <mode>, giving...
13407 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13408 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13409 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13410 use <X:MODE> for the mode attribute.
13412 2019-07-07 Jeff Law <law@redhat.com>
13414 PR tree-optimization/91090
13415 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13416 in handling of ranges to simplify switch statements.
13418 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13420 * config/darwin.c (darwin_override_options): Make a final check on PIC
13423 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13425 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13426 on for kernel code.
13428 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13431 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13432 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13433 instead of matching them to "l" output operands.
13435 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13437 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13438 and check whether addr.reg is nonnull before using it.
13440 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13442 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13443 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13444 variable(s). For conditional lastprivate look through outer
13445 GIMPLE_OMP_SCAN context.
13446 (lower_omp_1): For conditional lastprivate look through outer
13447 GIMPLE_OMP_SCAN context.
13449 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13450 member to combined_into_simd_safelen1.
13451 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13452 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13453 clauses if ctx->combined_into_simd_safelen1 put statements after the
13454 predicate conditionalized block rather than into it.
13456 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13458 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13460 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13461 Make the choice of <mode> explicit, giving...
13462 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13464 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13466 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13467 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13469 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13470 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13471 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13472 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13473 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13474 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13475 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13476 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13477 (*avx512f_scatterdi<mode>): Likewise.
13478 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13480 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13482 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13483 specify the mode iterator referenced by <mode>, giving...
13484 (*push1_h8300hs_<QHI:mode>): ...this.
13486 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13488 * config/gcn/gcn-valu.md
13489 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13490 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13491 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13492 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13493 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13494 but using the _exec comparison patterns.
13495 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13496 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13497 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13498 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13499 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13500 but using the _exec comparison patterns.
13502 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13504 * config/arm/sync.md
13505 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13506 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13507 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13508 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13509 <SIDI:cas_cmp_str>.
13511 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13513 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13514 (maybe_lookup_ctx): Add forward declaration.
13515 (omp_find_scan): Likewise. Walk into body of simd if composited
13516 with worksharing loop.
13517 (scan_omp_simd_scan): New function.
13518 (scan_omp_1_stmt): Call it.
13519 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13520 ctx->for_simd_scan_phase.
13521 (lower_rec_input_clauses): Do much less work for inscan reductions
13522 in ctx->for_simd_scan_phase is_simd regions.
13523 (lower_omp_scan): Set is_simd also on simd constructs composited
13524 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13525 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13526 emit their body after in simd constructs composited with worksharing
13528 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13530 * omp-low.c (omp_find_scan): Make static.
13531 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13532 the second loop, var2 represents the first partial sum and so needs
13533 to go before rprivb[ivar].
13535 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13537 * config/rs6000/rs6000-logue.c: Remove unused code.
13539 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13541 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13543 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13546 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13547 check with a frame laid out check.
13549 2019-07-05 Richard Biener <rguenther@suse.de>
13551 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13552 when comparing against a store with possibly the same value.
13554 2019-07-05 Richard Biener <rguenther@suse.de>
13556 PR tree-optimization/91091
13557 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13558 (walk_non_aliased_vuses): Likewise.
13559 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13560 (get_continuation_for_phi): New tbaa_p parameter and pass
13562 (walk_non_aliased_vuses): Likewise.
13563 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13564 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13565 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13567 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13568 (adjust_offsets_for_equal_base_address): New function.
13569 (vn_reference_lookup_3): Use it to catch more base equivalences.
13570 Handle and pass down tbaa_p flag.
13571 (vn_reference_lookup_pieces): Adjust.
13572 (vn_reference_lookup): Remove alias-set altering, instead pass
13573 down false as tbaa_p.
13575 2019-07-05 Richard Biener <rguenther@suse.de>
13577 PR tree-optimization/91091
13578 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13579 accesses can happen with -fno-strict-aliasing.
13581 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13583 * tree-ssa-alias.c (alias_stats): Add
13584 nonoverlapping_component_refs_since_match_p_must_overlap.
13585 (dump_alias_stats): Print it.
13586 (nonoverlapping_component_refs_since_match_p): Add early exit.
13587 (nonoverlapping_component_refs_p): Do not account early exit.
13589 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13591 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13592 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13593 (emit_eh_dispatch): Delete.
13594 (lower_catch): Emit the eh_dispatch manually and set the location of
13595 the first catch statement onto it.
13596 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13597 (lower_eh_dispatch): Propagate location.
13598 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13599 (eliminate_build): Likewise.
13601 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13603 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13604 phi nodes if possible.
13605 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13606 location info on the newly created statement.
13607 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13608 newly created increment if needed.
13610 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13612 PR middle-end/78884
13613 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13614 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13615 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13616 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13617 ctx->add_safelen1 is set.
13619 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13620 GOMP_loop_start at the start of second worksharing loop in a scan.
13621 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13622 worksharing loop in a scan even if there are conditional lastprivates,
13623 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13625 2019-07-04 Jan Hubicka <jh@suse.cz>
13627 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13628 Fix check for match in the ref walk.
13630 2019-07-04 Martin Liska <mliska@suse.cz>
13632 * tree-ssa-loop-niter.c
13633 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13634 (estimate_numbers_of_iterations):
13635 Support __builtin_expect_with_probability for analysis
13636 of # of loop iterations.
13638 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13640 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13641 * except.c: Likewise.
13642 * expr.c (expand_expr_real_1): Reject it.
13643 * gimplify.c (gimplify_expr): Gimplify it, within
13645 * tree-dump.c (dequeue_and_dump): Dump it.
13646 * tree-pretty-print.c (dump_generic_node): Likewise.
13647 * tree.c (block_may_fallthru): Handle it.
13648 * tree.def (EH_ELSE_EXPR): Introduce it.
13649 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13650 with GIMPLE_EH_ELSE as try/finally/else.
13652 2019-07-04 Richard Biener <rguenther@suse.de>
13655 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13656 parameter whether to disable GC collection.
13657 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13659 (execute_all_ipa_transforms): Likewise and pass it down.
13660 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13661 collection from applying IPA transforms.
13662 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13663 from applying IPA transforms.
13665 2019-07-04 Richard Biener <rguenther@suse.de>
13667 PR tree-optimization/90911
13668 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13669 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13670 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13671 scalar_loop_scaling.
13672 (vect_transform_loop): Scale scalar loop profile if needed.
13673 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13674 the loop copy from if-conversion adjust edge probabilities
13675 and scale the vectorized loop body profile, queue the scalar
13676 profile for updating after peeling.
13678 2019-07-04 Jan Hubicka <jh@suse.cz>
13680 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13681 parameters; return early for must-alias.
13682 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13683 outer types match, try nonoverlapping_component_refs
13684 if must-alias is not obvious.
13685 (indirect_refs_may_alias_p): Likewise.
13686 (refs_may_alias_p_2): Likewise.
13688 2019-07-04 Richard Biener <rguenther@suse.de>
13690 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13692 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13694 (struct vn_walk_cb_data): New callback data struct.
13695 (vn_reference_lookup_2): Adjust.
13696 (vn_reference_lookup_3): Likewise.
13697 (vn_reference_lookup_pieces): Likewise.
13698 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13699 (visit_reference_op_load): Adjust.
13701 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13703 PR tree-optimization/91063
13704 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13705 stmt from stmts sequence before calling vect_init_vector_1.
13708 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13711 * fwprop.c (reg_single_def_p): New function.
13712 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13713 (forward_propagate_into): New parameter reg_prop_only
13714 with default value false.
13715 Propagate def's src into loop only if SET_SRC and SET_DEST
13716 of def_set have single definitions.
13717 Likewise if reg_prop_only is set to true.
13718 (fwprop): New param fwprop_addr_p.
13719 Integrate fwprop_addr into fwprop.
13720 (fwprop_addr): Remove.
13721 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13723 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13724 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13725 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13727 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13729 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13730 in worksharing loop scans.
13732 PR tree-optimization/91074
13733 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13736 PR rtl-optimization/90756
13737 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13740 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13742 * config/aarch64/aarch64.md: Remove redundant constraints from
13743 define_expand but keep some patterns untouched if they are
13744 specially selected by TARGET_SECONDARY_RELOAD hook.
13745 * config/aarch64/aarch64-sve.md: Likewise.
13746 * config/aarch64/atomics.md: Remove redundant constraints from
13748 * config/aarch64/aarch64-simd.md: Likewise.
13750 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13752 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13753 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13754 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13756 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13759 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13761 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13762 (STARTFILE_SPEC): Split crt3 into a separate spec.
13763 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13764 (DARWIN_CRT2_SPEC): New.
13765 (DARWIN_CRT3_SPEC): New.
13766 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13767 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13768 (DARWIN_CRT3_SPEC): New.
13770 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13772 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13773 Change the RTL attribute "length" from "4" to "*" to allow the
13774 length attribute to be adjusted automatically for prefixed load,
13775 store, and add immediate instructions.
13776 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13778 (extendsi<mode>2, EXTSI iterator): Likewise.
13779 (movsi_internal1): Likewise.
13780 (movsi_from_sf): Likewise.
13781 (movdi_from_sf_zero_ext): Likewise.
13782 (mov<mode>_internal): Likewise.
13783 (movcc_internal1, QHI iterator): Likewise.
13784 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13785 (movsf_from_si): Likewise.
13786 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13787 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13788 (mov<mode>, FMOVE128 iterator): Likewise.
13789 (movdi_internal64): Likewise.
13790 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13792 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13793 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13794 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13795 (vsx_splat_v4sf): Likewise.
13797 2019-07-03 Mark Wielaard <mark@klomp.org>
13800 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13801 DW_AT_addr_base if there is actually a .debug_addr section with
13803 (output_addr_table): Add DWARF5 table header generation here after
13804 checking there are actually any addresses from...
13805 (dwarf2out_finish): ...here.
13807 2019-07-03 Richard Biener <rguenther@suse.de>
13809 PR middle-end/91069
13810 * match.pd (vec_perm -> bit_insert): Fix element read from
13813 2019-07-03 Martin Liska <mliska@suse.cz>
13815 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13816 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13818 * generic-match-head.c: Include dbgcnt.h.
13819 * gimple-match-head.c: Likewise.
13821 2019-07-03 Martin Liska <mliska@suse.cz>
13823 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13824 (GCOV_COUNTER_V_TOPN): New.
13825 (GCOV_COUNTER_V_INDIR): Use _topn.
13826 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13827 (GCOV_TOPN_VALUES): New.
13828 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13829 (GCOV_TOPN_VALUES_COUNTERS): New.
13830 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13832 (gimple_init_gcov_profiler): Rename variables from one_value
13834 (gimple_gen_one_value_profiler): Remove.
13835 (gimple_gen_topn_values_profiler): New function.
13836 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13837 names instead of SINGLE_VALUE.
13838 (stream_out_histogram_value): Likewise.
13839 (stream_in_histogram_value): Likewise.
13840 (get_most_common_single_value): Likewise.
13841 (gimple_divmod_fixed_value_transform): Likewise.
13842 (gimple_stringops_transform): Likewise.
13843 (gimple_divmod_values_to_profile): Likewise.
13844 (gimple_stringops_values_to_profile): Likewise.
13845 (gimple_find_values_to_profile): Likewise.
13846 * value-prof.h (enum hist_type): Rename to TOPN.
13847 (gimple_gen_one_value_profiler): Remove.
13848 (gimple_gen_topn_values_profiler): New.
13850 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13852 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13853 if it has the DW_AT_data_member_location attribute.
13855 2019-07-03 Richard Biener <rguenther@suse.de>
13857 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13860 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13862 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13863 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13864 (tlsdesc_small_sve_<mode>): Likewise.
13866 2019-07-03 Martin Liska <mliska@suse.cz>
13868 * Makefile.in: Define ZSTD_LIB.
13869 * common.opt: Adjust compression level
13870 to support also zstd levels.
13871 * config.in: Regenerate.
13872 * configure: Likewise.
13873 * configure.ac: Add --with-zstd and --with-zstd-include options
13875 * doc/install.texi: Mention zstd dependency.
13876 * gcc.c: Print supported LTO compression algorithms.
13877 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13878 (lto_compression_zstd): Likewise.
13879 (lto_uncompression_zstd): Likewise.
13880 (lto_end_compression): Dispatch in between zlib and zstd.
13881 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13882 (lto_uncompression_zlib): Make it static.
13883 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13884 * lto-section-in.c (lto_get_section_data): Pass info
13885 about used compression.
13886 * lto-streamer-out.c: By default use zstd when possible.
13887 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13888 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13890 2019-07-03 Martin Liska <mliska@suse.cz>
13892 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13893 * lto-section-out.c (lto_destroy_simple_output_block): Never
13894 compress LTO_section_lto section.
13895 * lto-streamer-out.c (produce_asm): Do not set major_version
13897 (lto_output_toplevel_asms): Likewise.
13898 (produce_lto_section): New function.
13899 (lto_output): Call produce_lto_section.
13900 (lto_write_mode_table): Do not set major_version and
13902 (produce_asm_for_decls): Likewise.
13903 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13905 (struct lto_header): Remove.
13906 (struct lto_section): New struct.
13907 (struct lto_simple_header): Do not inherit from lto_header.
13908 (struct lto_file_decl_data): Add lto_section_header field.
13910 2019-07-03 Martin Liska <mliska@suse.cz>
13912 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13914 * reg-stack.c (check_asm_stack_operands): Likewise.
13915 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13916 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13917 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13918 force_expand_binop.
13920 2019-07-03 Martin Liska <mliska@suse.cz>
13922 PR tree-optimization/90892
13923 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13924 in string constants.
13926 2019-07-03 Martin Liska <mliska@suse.cz>
13928 PR middle-end/90899
13929 * multiple_target.c (create_dispatcher_calls): Add to comdat
13930 group only if set for ifunc.
13932 2019-07-03 Martin Liska <mliska@suse.cz>
13935 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13936 Define local_object_name in outer scope in order to handle
13937 use-after-scope issue.
13939 2019-07-03 Martin Liska <mliska@suse.cz>
13941 * common.opt: Add fprofile-note.
13942 * coverage.c (coverage_init): Append the option
13944 * doc/invoke.texi: Document -fprofile-note.
13946 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13948 PR tree-optimization/91033
13949 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13950 vect_analyze_data_refs): Add bool * arguments.
13951 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13952 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13953 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13954 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13955 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13956 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13957 vect_analyze_data_refs caller.
13959 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13961 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13962 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13963 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13964 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13965 OMP_CLAUSE__SCANTEMP_ entry.
13966 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13967 * tree-pretty-print.c (dump_omp_clause): Likewise.
13968 * tree-nested.c (convert_nonlocal_omp_clauses,
13969 convert_local_omp_clauses): Likewise.
13970 * omp-general.h (struct omp_for_data): Add have_scantemp and
13971 have_nonctrl_scantemp members.
13972 * omp-general.c (omp_extract_for_data): Initialize them.
13973 * omp-low.c (struct omp_context): Add scan_exclusive member.
13974 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13975 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13976 ctx->scan_exclusive.
13977 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13978 of !ctx->scan_inclusive.
13979 (lower_rec_input_clauses): Simplify gimplification of dtors using
13980 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13981 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13982 loops. Don't add barrier for reduction_omp_orig_ref if
13983 ctx->scan_??xclusive.
13984 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13985 (lower_omp_scan): Use ctx->scan_exclusive instead
13986 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13987 reductions. Use new_vard != new_var instead of repeated
13988 omp_is_reference calls.
13989 (omp_find_scan, lower_omp_for_scan): New functions.
13990 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13992 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13993 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13994 and fd->have_scantemp.
13996 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13997 on worksharing loop propagate it as shared clause to containing
14000 * omp-expand.c (expand_omp_for_static_nochunk,
14001 expand_omp_for_static_chunk): For nowait worksharing loop with
14002 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
14005 2019-07-02 qing zhao <qing.zhao@oracle.com>
14007 PR preprocessor/90581
14008 * doc/cppopts.texi: Add document for -fmax-include-depth.
14009 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
14011 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
14013 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
14014 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
14015 (mmx_packssdw): Ditto.
14016 (mmx_punpckhbw): Ditto.
14017 (mmx_punpcklbw): Ditto.
14018 (mmx_punpckhwd): Ditto.
14019 (mmx_punpcklwd): Ditto.
14020 (mmx_punpckhdq): Ditto.
14021 (mmx_punpckldq): Ditto.
14022 (*vec_dupv4hi): Ditto.
14023 (*vec_dupv2si): Ditto.
14024 (mmx_pmovmskb): Ditto.
14025 * config/i386/sse.md (sse_cvtpi2ps): Use
14026 TARGET_SSE2 && SSE_REG_P in split condition.
14027 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
14028 TARGET_SSSE3 && SSE_REGNO_P in split condition.
14029 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
14030 (ssse3_pshufbv8qi3): Ditto.
14031 (ssse3_palignrdi): Ditto.
14033 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
14035 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
14036 with inlined save and restore.
14038 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
14040 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
14041 to be inserted on single successor edge of the entry block. Then call
14042 commit_edge_insertions instead of inserting the instructions manually.
14043 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
14044 RTL expansion and rebuild jump labels chain.
14046 2019-07-02 Richard Biener <rguenther@suse.de>
14048 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
14050 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14052 * tree.c (build_common_tree_nodes): Initialize them.
14053 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14054 Make declarations comments.
14055 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
14056 chrec_known): Remove definitions.
14057 (initialize_scalar_evolutions_analyzer): Remove.
14058 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
14059 * tree-streamer.c (preload_common_nodes): Do not preload
14060 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
14062 2019-07-02 Jan Hubicka <jh@suse.cz>
14064 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
14067 2019-07-02 Jan Hubicka <jh@suse.cz>
14069 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
14071 (nonoverlapping_component_refs_since_match_p): ... this one;
14072 handle also non-decl bases; return -1 if search gave up.
14073 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
14074 nonoverlapping_component_refs_of_decl_p_no_alias to
14075 nonoverlapping_component_refs_since_match_p_may_alias,
14076 nonoverlapping_component_refs_since_match_p_no_alias.
14077 (dump_alias_stats): Update dumping.
14078 (aliasing_matching_component_refs_p): Break out from ...;
14079 dispatch to nonoverlapping_component_refs_for_decl_p
14080 and nonoverlapping_component_refs_since_match_p.
14081 (aliasing_component_refs_p): ... here; call
14082 nonoverlapping_component_refs_p in scenarios where we can not
14083 precisely determine base match.
14084 (decl_refs_may_alias_p): Use
14085 nonoverlapping_component_refs_since_match_p.
14086 (indirect_ref_may_alias_decl_p): Do not call
14087 nonoverlapping_component_refs_p.
14088 (indirect_refs_may_alias_p): Likewise.
14090 2019-07-02 Jan Hubicka <jh@suse.cz>
14092 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
14093 to clobber of return value.
14095 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14097 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
14098 for is_neon_type instructions that have not already been categorized.
14100 2019-07-02 Richard Biener <rguenther@suse.de>
14102 PR tree-optimization/58483
14103 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
14104 for MEM_REF base hashing.
14105 (equal_mem_array_ref_p): Likewise for base comparison.
14107 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14109 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
14110 parameterized name.
14111 (signbit<mode>2): Use that name. Simplify.
14113 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
14115 PR middle-end/66726
14116 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
14117 Tune heuristic from PR71016 to allow MIN / MAX.
14119 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14121 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
14122 parameterized name.
14123 (abs<mode>2): Use that name. Simplify.
14125 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14127 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
14128 parameterized name.
14129 (neg<mode>2): Use that name. Simplify.
14131 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14133 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
14135 (abs<mode>2): Use that name. Simplify.
14137 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14139 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
14141 (neg<mode>2): Use that name. Simplify.
14143 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
14145 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
14146 ("enabled" attribute): Handle sse_noavx isa attribute.
14147 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
14148 Use TARGET_SSE && SSE_REGNO_P in split condition.
14149 (*vec_dupv2sf): Ditto.
14151 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14153 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
14155 (floatsi<mode>2): Use that name. Simplify.
14157 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14159 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
14160 parameterized name.
14161 (extenddf<mode>2_vsx): Make this a parameterized name.
14162 (extenddf<mode>2): Use those names. Simplify.
14164 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14166 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
14168 (eh_return): Use that name. Simplify.
14170 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14172 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
14173 (doloop_end): Use that name. Simplify.
14175 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14177 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
14178 parameterized name.
14179 (indirect_jump): Use that name. Simplify.
14181 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14183 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
14184 parameterized name.
14185 (abs<mode>2): Use that name. Simplify.
14187 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14189 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
14190 parameterized name.
14191 (fix_trunc<mode>si2): Use that name. Simplify.
14193 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14195 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
14196 (allocate_stack): Use that name. Simplify.
14198 2019-07-01 Martin Sebor <msebor@redhat.com>
14200 PR middle-end/90923
14201 * hash-map.h (hash_map::put): On insertion invoke element ctor.
14202 (hash_map::get_or_insert): Same. Reformat comment.
14203 * hash-set.h (hash_set::add): On insertion invoke element ctor.
14204 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14205 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14206 * hash-table.h (hash_table::operator=): Prevent copy assignment.
14207 (hash_table::hash_table (const hash_table&)): Use copy ctor
14208 instead of assignment to copy elements.
14210 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
14211 John David Anglin <danglin@gcc.gnu.org>
14214 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
14215 using saved frame pointer.
14217 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
14219 PR middle-end/64242
14220 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
14221 Add frame clobber and schedule blockage.
14223 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
14225 * doc/invoke.texi (Link Options): Further editorial changes to
14226 -flinker-output docs.
14228 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14230 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
14231 Load both operands of a PLUS into registers separately.
14233 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
14235 * config/s390/vector.md: Fix shift count operand printing.
14237 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14239 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
14241 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14243 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
14244 Use recog_data to test for an output operand.
14246 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14248 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
14249 exclude any others that are disparaged or that are bound to need
14251 (ira_get_dup_out_num): Expand comment.
14253 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14255 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
14256 constraint string for each operand/alternative combo. Only handle
14257 '%' at the start of constraint strings, and look for it outside
14260 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14262 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
14263 alternative_mask instead of HARD_REG_SET to represent a
14264 bitmask of alternatives.
14265 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14266 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
14268 2019-07-01 Martin Liska <mliska@suse.cz>
14270 * edit-context.c (test_applying_fixits_unreadable_file): Do not
14271 use () for a constructor call.
14272 (test_applying_fixits_line_out_of_range): Likewise.
14273 * ggc-page.c (alloc_page): Use (void *) for %p printf format
14275 (free_page): Likewise.
14277 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
14279 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
14280 parameter names to match usage (no functional change).
14281 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
14283 2019-07-01 Richard Biener <rguenther@suse.de>
14285 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
14287 (pass_fre::execute): Honor it.
14288 * passes.def: Adjust pass_fre invocations to allow iterating,
14289 add non-iterating pass_fre before late threading/dom.
14291 2019-07-01 Richard Biener <rguenther@suse.de>
14293 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
14294 TARGET_MEM_REF handling to also handle address-taken ones.
14296 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
14298 * doc/sourcebuild.texi (Effective-Target Keywords, Other
14299 hardware attributes): Document avx512vp2intersect.
14301 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14303 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
14304 (abs<mode>2): New expander.
14305 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
14306 Use CODE_FOR_ssse3_absv8qi2.
14307 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
14308 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
14310 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14312 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
14313 to sse, sse_noavx and avx. Update all uses.
14315 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14317 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
14318 (*mmx_<plusminus_insn><mode>3): Ditto.
14319 (*mmx_mulv4hi3"): Ditto.
14320 (*mmx_smulv4hi3_highpart): Ditto.
14321 (*mmx_umulv4hi3_highpart): Ditto.
14322 (*mmx_pmaddwd): Ditto.
14323 (*sse2_umulv1siv1di3): Ditto.
14324 (*mmx_<code>v4hi3): Ditto.
14325 (*mmx_<code>v8qi3): Ditto.
14326 (mmx_ashr<mode>3): Ditto.
14327 ("mmx_<shift_insn><mode>3): Ditto.
14328 (*mmx_eq<mode>3): Ditto.
14329 (mmx_gt<mode>3): Ditto.
14330 (mmx_andnot<mode>3): Ditto.
14331 (*mmx_<code><mode>3): Ditto.
14332 (*mmx_pinsrw): Ditto.
14333 (*mmx_pextrw): Ditto.
14334 (mmx_pshufw_1): Ditto.
14335 (*mmx_uavgv8qi3): Ditto.
14336 (*mmx_uavgv4hi3): Ditto.
14337 ("mmx_psadbw): Ditto.
14338 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14339 (sse_cvttps2pi): Ditto.
14340 (ssse3_pmaddubsw): Ditto.
14341 (*ssse3_pmulhrswv4hi3): Ditto.
14342 (ssse3_psign<mode>3): Ditto.
14344 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14346 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14347 adjustment for bit-fields to all aggregate types.
14349 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14351 * config/rs6000/predicates.md (pcrel_address): Use
14352 SYMBOL_REF_LOCAL_P to determine if a label is local.
14353 (pcrel_external_address): New predicate.
14354 (non_prefixed_mem_operand): Delete, predicate not used.
14355 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14356 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14358 (SYMBOL_REF_PCREL_P): Likewise.
14361 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14363 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14364 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14365 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14367 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14369 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14370 override on extra_headers.
14372 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14374 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14375 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14377 (darwin_driver_init): Likewise.
14379 2019-06-28 Jan Beulich <jbeulich@suse.com>
14381 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14382 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14383 Eliminate redundant alternative.
14385 2019-06-28 Jan Beulich <jbeulich@suse.com>
14387 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14388 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14389 Use vector_operand.
14391 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14393 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14394 having a lower cost regardless of the speed option.
14396 2019-06-28 Jan Beulich <jbeulich@suse.com>
14398 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14399 vector_operand plus, on both alternatives, "Bm" constraint.
14401 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14403 * config/arm/arm.md: Remove redundant constraints from
14404 define_expand but leave reload_inm and reload_outm patterns
14405 untouched since they need special constraints to work.
14406 * config/arm/arm-fixed.md: Remove redundant constraints from
14408 * config/arm/iwmmxt.md: Likewise.
14409 * config/arm/neon.md: Likewise.
14410 * config/arm/sync.md: Likewise.
14411 * config/arm/thumb1.md: Likewise.
14412 * config/arm/vec-common.md: Likewise.
14414 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14416 * doc/install.texi: Document --disable-tm-clone-registry.
14418 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14421 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14424 PR tree-optimization/91010
14425 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14426 return true. Otherwise, don't call operand_equal_p if offset1 or
14427 offset2 is NULL and just return false.
14429 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14431 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14432 user-specified float mode choice for kernel mode code.
14434 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14436 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14439 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14441 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14442 use longcall for 64b code.
14444 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14446 * builtins.c (get_memory_rtx): Fix comment.
14447 * optabs.def (movmem_optab): Change to cpymem_optab.
14448 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14449 (emit_block_move_hints): Change movmem to cpymem.
14450 * defaults.h: Change movmem to cpymem.
14451 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14452 (default_use_by_pieces_infrastructure_p): Ditto.
14453 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14454 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14456 * config/aarch64/aarch64.h: Change movmem to cpymem.
14457 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14458 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14459 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14461 * config/arc/arc-protos.h: Change movmem to cpymem.
14462 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14463 * config/arc/arc.h: Change movmem to cpymem in comment.
14464 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14465 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14466 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14467 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14468 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14469 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14470 * config/avr/avr-protos.h: Change movmem to cpymem.
14471 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14472 avr_out_movmem): Change movmem to cpymem.
14473 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14474 Change movmem to cpymem.
14475 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14476 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14477 Change movmem to cpymem.
14478 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14479 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14480 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14481 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14482 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14483 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14484 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14485 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14486 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14487 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14488 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14489 expand_small_cpymem_or_setmem,
14490 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14491 expand_set_or_cpymem_constant_prologue,
14492 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14493 * config/i386/i386-protos.h: Change movmem to cpymem.
14494 * config/i386/i386.h: Change movmem to cpymem in comment.
14495 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14496 (setmem<mode>): Change expansion function name.
14497 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14498 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14499 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14500 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14501 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14502 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14503 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14505 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14506 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14507 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14508 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14509 Change movmem to cpymem.
14510 * config/mips/mips.h: Change movmem to cpymem.
14511 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14512 * config/nds32/nds32-memory-manipulation.c
14513 (nds32_expand_movmemsi_loop_unknown_size,
14514 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14515 nds32_expand_movmemsi_unroll,
14516 nds32_expand_movmemsi): Change movmem to cpymem.
14517 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14518 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14519 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14520 (pa_adjust_insn_length): Change call to compute_movmem_length.
14521 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14522 movmemdi, movmemdi_prereload,
14523 movmemdi_postreload): Change movmem to cpymem.
14524 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14525 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14526 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14527 * config/riscv/riscv.h: Change movmem to cpymem.
14528 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14529 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14530 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14532 * config/s390/s390-protos.h: Change movmem to cpymem.
14533 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14534 s390_expand_insv): Change movmem to cpymem.
14535 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14536 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14537 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14538 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14539 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14540 for nonexistent function.
14541 * config/vax/vax.h: Change movmem to cpymem in comment.
14542 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14543 * config/visium/visium.h: Change movmem to cpymem in comment.
14544 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14545 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14546 * doc/md.texi: Change movmem to cpymem and update description to match.
14547 * doc/rtl.texi: Change movmem to cpymem.
14548 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14549 * doc/tm.texi: Regenerate.
14551 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14553 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14554 -fvariable-expansion-in-unroller by default.
14555 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14558 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14561 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14562 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14564 * config.gcc(rs6000-*-*): Define target_gtfiles.
14566 2019-06-27 Jan Hubicka <jh@suse.cz>
14568 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14569 (add_type_duplicate): When odr hash is not allocated, to nothing.
14570 (odr_based_tbaa_p): New function.
14571 (set_type_canonical_for_odr_type): New function.
14572 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14573 set_type_canonical_for_odr_type): New.
14574 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14575 ODR based TBAA are not equivalent to non-ODR types.
14577 2019-06-27 Martin Liska <mliska@suse.cz>
14579 PR tree-optimization/90974
14580 PR rtl-optimization/90975
14581 PR rtl-optimization/90976
14583 PR tree-optimization/91017
14584 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14586 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14587 initial commit of IRA.
14588 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14590 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14591 Remove unused mode1.
14592 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14595 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14598 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14599 instead of register_operand for operands[1], add m to its constraints
14600 if operands[2] uses "C" constraint. Ensure in condition that if
14601 operands[2] is not 0, then operands[1] is not a MEM. For last two
14602 alternatives, use unaligned loads instead of aligned if operands[1] is
14603 misaligned_operand.
14605 2019-06-27 Martin Liska <mliska@suse.cz>
14607 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14609 * bt-load.c (move_btr_def): Likewise.
14610 * builtins.c (expand_builtin_apply_args_1): Likewise.
14611 (expand_builtin_apply): Likewise.
14612 * cfgexpand.c (expand_asm_stmt): Likewise.
14613 (construct_init_block): Likewise.
14614 * cfghooks.c (verify_flow_info): Likewise.
14615 * cfgloopmanip.c (remove_path): Likewise.
14616 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14617 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14618 * combine.c (simplify_if_then_else): Likewise.
14619 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14620 (choose_basereg): Likewise.
14621 (ix86_expand_prologue): Likewise.
14622 (ix86_preferred_output_reload_class): Likewise.
14623 * cselib.c (cselib_record_sets): Likewise.
14624 * df-scan.c (df_scan_alloc): Likewise.
14625 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14626 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14627 * emit-rtl.c (try_split): Likewise.
14628 * graphite-scop-detection.c (assign_parameter_index_in_region):
14630 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14631 * ira-color.c (setup_profitable_hard_regs): Likewise.
14632 * ira.c (rtx_moveable_p): Likewise.
14633 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14634 * read-rtl.c (read_subst_mapping): Likewise.
14635 * regrename.c (scan_rtx): Likewise.
14636 * reorg.c (fill_slots_from_thread): Likewise.
14637 * tree-inline.c (tree_function_versioning): Likewise.
14638 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14639 * tree-ssa-sink.c (statement_sink_location): Likewise.
14640 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14641 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14642 (vect_create_epilog_for_reduction): Likewise.
14643 * tree.c (build_nonstandard_integer_type): Likewise.
14645 2019-06-27 Richard Biener <rguenther@suse.de>
14647 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14649 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14651 PR tree-optimization/89772
14652 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14653 out-of-bound accesses checking.
14655 2019-06-27 Martin Liska <mliska@suse.cz>
14657 PR tree-optimization/91014
14658 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14659 when LHS is NULL_TREE.
14661 2019-06-27 Martin Liska <mliska@suse.cz>
14663 * symbol-summary.h (traverse): Pass
14664 argument a to the call of callback.
14665 (gt_ggc_mx): Mark arguments as unused.
14666 (gt_pch_nx): Likewise.
14668 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14671 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14674 2019-06-26 Jeff Law <law@redhat.com>
14676 PR tree-optimization/90883
14677 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14678 (delete_dead_or_redundant_assignment): Likewise.
14680 PR tree-optimization/90883
14681 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14682 * tree-ssa-dse.c: Update various comments to distinguish between
14683 dead and redundant stores.
14684 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14685 (dse_optimize_redundant_stores): New function.
14686 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14687 Distinguish between dead and redundant calls in dump output. All
14689 (delete_dead_or_redundant_assignment): Similarly for assignments.
14690 (dse_optimize_stmt): Handle _CHK variants. For statements which
14691 store 0 into multiple memory locations, try to prove a subsequent
14692 store is redundant.
14694 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14697 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14698 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14700 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14702 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14703 (branch_islands): New extern.
14704 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14705 * config/rs6000/rs6000.c: .. here.
14707 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14709 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14710 (powerpc*-*-*) ... to here.
14712 2019-06-26 Jeff Law <law@redhat.com>
14714 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14715 memcpy, memmove and memset builtins.
14716 (maybe_trim_memstar_call): Likewise.
14718 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14720 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14722 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14724 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14726 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14728 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14730 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14732 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14735 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14737 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14739 2019-06-26 Richard Biener <rguenther@suse.de>
14742 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14744 2019-06-26 Richard Biener <rguenther@suse.de>
14746 * lto-streamer.h (lto_bitmap_alloc): Remove.
14747 (lto_bitmap_free): Likewise.
14748 * lto-streamer.c (lto_bitmap_alloc): Remove.
14749 (lto_bitmap_free): Likewise.
14750 (lto_obstack): Likewise.
14751 (lto_obstack_initialized): Likewise.
14752 * lto-streamer-out.c (lto_output): Use own obstack for local
14753 bitmap, free it consistently.
14755 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14758 * config/i386/sse.md
14759 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14760 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14761 insns if operands[2] is misaligned_operand.
14763 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14765 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14767 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14770 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14772 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14774 2019-06-26 Martin Liska <mliska@suse.cz>
14776 PR tree-optimization/90973
14777 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14778 epilogue_cost_vec instead of prologue_cost_vec for
14781 2019-06-26 Martin Liska <mliska@suse.cz>
14783 * bb-reorder.c (connect_better_edge_p): Add missing else
14784 statement in the middle of if-else statements.
14786 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14787 H.J. Lu <hongjiu.lu@intel.com>
14788 Olga Makhotina <olga.makhotina@intel.com>
14790 * common/config/i386/i386-common.c
14791 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14792 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14793 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14794 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14795 (ix86_handle_option): Handle -mavx512vp2intersect.
14796 * config/i386/avx512vp2intersectintrin.h: New.
14797 * config/i386/avx512vp2intersectvlintrin.h: New.
14798 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14799 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14800 AVX512VP2INTERSECT.
14801 * config/i386/i386-builtin-types.def: Add new types.
14802 * config/i386/i386-builtin.def: Add new builtins.
14803 * config/i386/i386-builtins.c: (enum processor_features): Add
14804 F_AVX512VP2INTERSECT.
14805 (static const _isa_names_table isa_names_table): Ditto.
14806 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14807 __AVX512VP2INTERSECT__.
14808 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14809 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14810 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14811 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14812 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14813 * config/i386/i386-options.c (ix86_target_string): Add
14814 -mavx512vp2intersect.
14815 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14816 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14817 P2HImode and P2QImode.
14818 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14819 number for P2QImode and P2HImode.
14820 (ix86_regmode_natural_size): New function.
14821 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14822 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14823 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14824 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14825 * config/i386/i386.opt: Add -mavx512vp2intersect.
14826 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14827 avx512vp2intersectvlintrin.h.
14828 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14829 (define_mode_iterator VI48_AVX512VP2VL): New.
14830 (avx512vp2intersect_2intersect<mode>,
14831 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14832 * config.gcc: Add avx512vp2intersectvlintrin.h and
14833 avx512vp2intersectintrin.h to extra_headers.
14834 * doc/invoke.texi: Document -mavx512vp2intersect.
14836 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14838 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14840 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14842 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14843 savres_routine_syms, savres_routine_name, morestack_ref,
14844 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14845 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14846 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14847 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14848 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14849 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14850 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14851 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14852 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14853 get_stack_clash_protection_probe_interval,
14854 get_stack_clash_protection_guard_size,
14855 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14856 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14857 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14858 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14859 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14860 gen_frame_mem_offset, rs6000_savres_routine_name,
14861 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14862 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14863 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14864 rs6000_global_entry_point_prologue_needed_p,
14865 rs6000_get_separate_components, rs6000_components_for_bb,
14866 rs6000_disqualify_components, rs6000_emit_prologue_components,
14867 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14868 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14869 rs6000_output_savres_externs, rs6000_output_function_prologue,
14870 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14871 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14872 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14873 rs6000_output_function_epilogue, gen_add3_const,
14874 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14875 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14877 (machine_function): Moved to rs6000.h.
14878 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14880 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14881 savres_routine_syms, savres_routine_name, morestack_ref,
14882 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14883 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14884 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14885 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14886 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14887 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14888 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14889 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14890 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14891 get_stack_clash_protection_probe_interval,
14892 get_stack_clash_protection_guard_size,
14893 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14894 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14895 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14896 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14897 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14898 gen_frame_mem_offset, rs6000_savres_routine_name,
14899 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14900 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14901 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14902 rs6000_global_entry_point_prologue_needed_p,
14903 rs6000_get_separate_components, rs6000_components_for_bb,
14904 rs6000_disqualify_components, rs6000_emit_prologue_components,
14905 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14906 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14907 rs6000_output_savres_externs, rs6000_output_function_prologue,
14908 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14909 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14910 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14911 rs6000_output_function_epilogue, gen_add3_const,
14912 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14913 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14914 to here from rs6000.c.
14915 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14916 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14917 quad_address_offset_p) Moved to here from rs6000.c.
14918 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14919 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14922 2019-06-25 Martin Liska <mliska@suse.cz>
14924 * hash-table.c (hashtab_chk_error): Move here from ...
14925 * hash-table.h (hashtab_chk_error): ... here.
14927 2019-06-25 Martin Liska <mliska@suse.cz>
14929 PR tree-optimization/90978
14930 * df-scan.c (df_update_entry_block_defs): Remove dead else
14932 (df_update_exit_block_uses): Likewise.
14934 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14935 Andrew Stubbs <ams@codesourcery.com>
14937 * config.gcc (thread_file): Set to gcn for AMD GCN.
14938 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14939 (TARGET_EMUTLS_VAR_INIT): New hook.
14941 2019-06-25 Martin Jambor <mjambor@suse.cz>
14944 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14946 2019-06-25 Richard Biener <rguenther@suse.de>
14948 PR tree-optimization/90930
14949 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14950 into parallel form in the last pass instance.
14952 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14954 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14955 (arc_legitimize_pic_address): Simplify and cleanup the function.
14956 (SYMBOLIC_CONST): Remove.
14957 (prepare_pic_move): Likewise.
14958 (prepare_move_operands): Handle complex mov cases here.
14959 (arc_legitimize_address_0): Remove call to
14960 arc_legitimize_pic_address.
14961 (arc_legitimize_address): Remove call to
14962 arc_legitimize_tls_address.
14963 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14964 (movhi_insn): Likewise.
14966 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14968 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14970 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14971 format of "__intN" types for UINTMAX_TYPE.
14972 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14973 format of "__intN" types for SIZETYPE.
14974 * tree.c (build_common_tree_nodes): Accept "__intN__"
14975 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14976 * doc/invoke.texi: Document that __intN__ disables pedantic
14979 2019-06-25 Jan Hubicka <jh@suse.cz>
14981 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14982 base2_alias_set is non-zero before doing TBAA based disambiguation.
14984 2019-06-25 Martin Liska <mliska@suse.cz>
14986 PR tree-optimization/90973
14987 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14988 of prologue and epilogue.
14990 2019-06-24 Jan Hubicka <jh@suse.cz>
14992 * ipa-utils.h (type_with_linkage_p): Verify that type is
14994 (odr_type_p): Remove extra return.
14995 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14996 hash STRING_FLAG only for arrays and integers.
14997 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14998 Update analogously.
14999 * tree-streamer-out.c (pack_ts_type_common_value_fields):
15001 * print-tree.c (print_node): Print cxx-odr-p
15003 * tree.c (need_assembler_name_p): Also check that type
15005 (verify_type_variant): Update verification of SRING_FLAG;
15006 also check CXX_ODR_P.
15007 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
15008 (TYPE_STRING_FLAG): Use it.
15009 (TYPE_CXX_ODR_P): New macro.
15010 * dwarf2out.c (gen_array_type_die): First check that type
15011 is an array and then test string flag.
15013 2019-06-24 Richard Biener <rguenther@suse.de>
15015 PR tree-optimization/90972
15016 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
15017 in common code, dealing with STRING_CST properly.
15019 2019-06-24 Richard Biener <rguenther@suse.de>
15021 PR tree-optimization/90930
15022 PR tree-optimization/90316
15023 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
15024 decrement of limit.
15026 2019-06-24 Martin Sebor <msebor@redhat.com>
15028 * tree-pretty-print.h: Remove unnecessary punctuation characters
15030 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
15032 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
15034 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
15035 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
15036 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
15038 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15040 * config/rs6000/darwin.h: Handle GCC target pragma.
15042 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15044 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
15046 2019-06-22 Jeff Law <law@redhat.com>
15048 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15050 2019-06-22 Jan Hubicka <jh@suse.cz>
15052 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
15053 give up on bitfields; continue searching for different refs
15056 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15058 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15059 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
15060 containing the offset as possible simd lane access. Look through
15061 widening conversion. Move the
15062 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
15064 2019-06-21 Richard Biener <rguenther@suse.de>
15066 PR tree-optimization/90930
15067 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
15068 flag on new stmts to avoid re-processing them.
15070 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
15072 PR c++/90875 - added -Wswitch-outside-range option
15073 * doc/invoke.texi (Wswitch-outside-range): Document.
15075 2019-06-21 Jeff Law <law@redhat.com>
15077 PR tree-optimization/90949
15078 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
15079 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
15081 2019-06-21 Richard Biener <rguenther@suse.de>
15084 * dwarf2out.c (prune_unused_types_walk): Always consider
15085 function-local extern declarations as used.
15087 2019-06-21 Richard Biener <rguenther@suse.de>
15089 PR tree-optimization/90913
15090 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
15091 the scalar variant of if-conversion versioning.
15093 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15095 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
15096 create another "omp scan inscan exclusive" array if
15097 !ctx->scan_inclusive.
15098 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
15099 (lower_omp_scan): Likewise.
15100 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
15101 2-bit bitfield for simd_lane_access_p member.
15102 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
15103 aux == (void *)-4 as simd lane access.
15104 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
15105 comment with permutations to show the canonical permutation order.
15106 (vectorizable_scan_store): Handle exclusive scan.
15107 (vectorizable_store): Call vectorizable_scan_store even for
15108 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
15110 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15111 "omp simd array" arrays with one byte elements.
15113 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
15115 * config/alpha/alpha.md (@unaligned_store<mode>):
15116 Rename from unaligned_store<mode>.
15117 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
15118 * config/alpha/sync.md (@load_locked_<mode>): Rename
15119 from load_locked_<mode>.
15120 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
15121 (@atomic_compare_and_swap<mode>_1): Rename
15122 from atomic_compare_and_swap<mode>_1.
15123 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
15124 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
15125 Use gen_reload_in_aligned and gen_unaligned_store.
15126 (emit_load_locked): Remove.
15127 (emit_store_conditional): Ditto.
15128 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
15129 (alpha_split_compare_and_swap): Ditto.
15130 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
15131 (alpha_split_compare_and_swap_12): Use gen_load_locked
15132 and gen_store_conditional.
15133 (alpha_split_atomic_exchange): Ditto.
15134 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
15135 (alpha_split_atomic_exchange_12): Use gen_load_locked
15136 and gen_store_conditional.
15138 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
15140 * config/aarch64/aarch64-errata.h: New file.
15141 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
15142 (CA53_ERR_843419_SPEC): Delete.
15143 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
15144 * config/aarch64/aarch64-linux.h: Likewise.
15145 * config/aarch64/aarch64-netbsd.h: Likewise.
15146 * config/aarch64/aarch64-freebsd.h: Likewise.
15148 2019-06-20 Marek Polacek <polacek@redhat.com>
15150 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
15152 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
15154 * config/rs6000/rs6000.md (isa attribute): Add support for
15155 for a future processor.
15157 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
15160 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
15161 standard scalar operation pattern for V2DF.
15162 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
15163 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
15164 (*ieee_<ieee_maxmin><mode>3): Likewise.
15165 (vec_setv2df_0): Likewise.
15167 2019-06-20 Jan Hubicka <jh@suse.cz>
15169 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
15170 parameter; it has no use in gimple memory model.
15171 (indirect_ref_may_alias_decl_p): Update.
15173 2019-06-20 Martin Liska <mliska@suse.cz>
15175 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
15178 2019-06-20 Jakub Jelinek <jakub@redhat.com>
15180 * tree-vect-stmts.c (enum scan_store_kind): New type.
15181 (scan_store_can_perm_p): Change last argument from int * to
15182 vec<enum scan_store_kind> *, record precisely which permutations
15183 need whole vector left shift or that plus VEC_COND_EXPR.
15184 (vectorizable_scan_store): Adjust caller, use whole vector left shift
15185 and additional VEC_COND_EXPR only for those iterations that need it.
15187 2019-06-20 Alexandre Oliva <oliva@adacore.com>
15189 * config.gcc: Fix ARM --with-fpu checking and error message.
15191 2019-06-19 Marek Polacek <polacek@redhat.com>
15193 PR c++/60364 - noreturn after first decl not diagnosed.
15194 * attribs.c (get_attribute_namespace): No longer static.
15195 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
15197 (attr_noreturn_exclusions): Make it extern.
15198 * attribs.h (get_attribute_namespace): Declare.
15199 * tree-inline.c (function_attribute_inlinable_p): Use
15200 get_attribute_name.
15202 2019-06-19 Martin Sebor <msebor@redhat.com>
15204 PR tree-optimization/90626
15205 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
15207 PR tree-optimization/90626
15208 * tree-ssa-strlen.c (strxcmp_unequal): New function.
15209 (handle_builtin_string_cmp): Call it.
15211 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15213 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
15214 and DARWIN_NOPIE_SPEC.
15215 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
15216 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
15217 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
15218 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
15219 (DARWIN_EXPORT_DYNAMIC): Delete.
15220 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
15221 and pie options processing to darwin.h.
15222 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
15224 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15226 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
15227 in computing the number of options to be moved.
15229 2019-06-19 Maya Rashish <coypu@sdf.org>
15231 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
15232 (CLEAR_INSN_CACHE) Use it.
15234 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
15236 * config/i386/i386.md (cmpstrnsi): Remove dead code.
15238 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
15240 PR middle-end/84521
15241 * builtins.c (expand_builtin_setjmp_setup): Save
15242 hard_frame_pointer_rtx.
15243 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
15245 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
15247 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
15249 (remove_reg_equal_offset_note): Remove unused function.
15250 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
15252 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15253 (arc_builtin_setjmp_frame_value): Remove function.
15254 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15255 (avr_builtin_setjmp_frame_value): Remove function.
15256 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15257 (ix86_builtin_setjmp_frame_value): Remove function.
15258 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
15259 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15260 (sparc_builtin_setjmp_frame_value): Remove function.
15261 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15262 (vax_builtin_setjmp_frame_value): Remove function.
15263 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
15264 pointer if has_nonlocal_label.
15266 2019-06-19 Jakub Jelinek <jakub@redhat.com>
15268 * doc/md.texi: Document vec_shl_<mode> pattern.
15269 * optabs.def (vec_shl_optab): New optab.
15270 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
15271 argument, if == vec_shl_optab, check for left whole vector shift
15272 pattern rather than right shift.
15273 (expand_vec_perm_const): Add vec_shl_optab support.
15274 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
15276 * tree-vect-generic.c (lower_vec_perm): Support permutations which
15277 can be handled by vec_shl_optab.
15278 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
15279 (check_scan_store): Use it.
15280 (vectorizable_scan_store): If target can't do normal permutations,
15281 try to use whole vector left shifts and if needed a VEC_COND_EXPR
15283 * config/i386/sse.md (vec_shl_<mode>): New expander.
15285 * omp-low.c (lower_rec_input_clauses): Handle references properly
15287 (lower_omp_scan): Likewise.
15289 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15291 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
15292 mem_mode is BLKmode.
15294 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
15297 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
15298 pointer adjustment for the case of no callee-saved registers and
15299 stack frame bigger than 128 bytes.
15301 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
15303 PR middle-end/90862
15304 * omp-low.c (check_omp_nesting_restrictions): Handle
15305 GF_OMP_TARGET_KIND_OACC_DECLARE.
15307 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
15309 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
15310 (@add<mode>3_carry): Rename from add<mode>3_carry.
15311 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
15312 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
15313 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
15314 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
15315 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
15316 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
15317 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
15318 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
15319 (cmpstrnsi): Use gen_cmp_1.
15320 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15321 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15322 (@umonitor_<mode>): Rename from umonitor_<mode>.
15323 * config/i386/i386-expand.c (ix86_expand_copysign):
15324 Use gen_copysign3_const and gen_copysign3_var.
15325 (ix86_expand_xorsign): Use gen_xorsign3_1.
15326 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15327 gen_sub3_carry_ccgz and gen_cmp1.
15328 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15329 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15330 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15331 (ix86_split_lshr): Ditto.
15332 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15334 2019-06-18 Jason Merrill <jason@redhat.com>
15336 * tree.c (build_constructor): Add MEM_STAT_DECL.
15338 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15340 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15341 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15342 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15343 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15344 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15345 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15346 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15347 Use CC_NZC instead of CC.
15348 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15349 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15350 (aarch64_print_operand): Handle E_CC_NZCmode.
15351 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15352 of gen_set_clobber_cc.
15354 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15356 * config/aarch64/aarch64-sve.md: Tabify file.
15358 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15360 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15361 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15362 * config/aarch64/aarch64-sve.md: Use it.
15364 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15366 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15367 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15368 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15369 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15370 (aarch64_expand_sve_vec_cmp_int): Use it.
15371 (aarch64_expand_sve_vec_cmp_float): Likewise.
15372 * config/aarch64/aarch64-sve.md: Likewise throughout.
15374 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15375 Kugan Vivekanandarajah <kuganv@linaro.org>
15377 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15378 (*cond_<optab><mode>_z): Fold into...
15379 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15380 operand 4 can be tied to operand 0 (either inherently or via RA).
15382 2019-06-18 Richard Biener <rguenther@suse.de>
15385 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15386 as if optimized away.
15388 2019-06-18 Tom de Vries <tdevries@suse.de>
15390 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15391 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15392 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15394 (define_insn "@set_softstack_<mode>"): ... this.
15395 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15396 (define_insn "@omp_simt_enter_<mode>"): ... this.
15397 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15398 (define_insn "@omp_simt_exit_<mode>"): ... this.
15400 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15402 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15403 vf parameter. Restore the previous iv step of nscalars_step,
15404 but give it iv_type rather than compare_type. Tweak code order
15405 to match the comments.
15406 (vect_set_loop_condition_masked): Update accordingly.
15407 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15408 for iv_precision. Tweak comment formatting.
15410 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15412 * config/darwin.c: Strip trailing whitespace.
15414 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15416 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15417 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15419 2019-06-18 Martin Jambor <mjambor@suse.cz>
15422 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15423 caller does not have flag_ipa_cp set.
15425 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15427 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15428 from "*fold_left_plus_<mode>", updated operands order.
15429 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15430 * internal-fn.c (mask_fold_left_direct): New define.
15431 (expand_mask_fold_left_optab_fn): Likewise.
15432 (direct_mask_fold_left_optab_supported_p): Likewise.
15433 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15434 * optabs.def (mask_fold_left_plus_optab): New optab.
15435 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15436 masked internal_fn for a reduction ifn.
15437 (vectorize_fold_left_reduction): Add support for masking reductions.
15439 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15441 PR middle-end/80791
15442 * target.def (predict_doloop_p): New hook.
15443 * targhooks.h (default_predict_doloop_p): New declaration.
15444 * targhooks.c (default_predict_doloop_p): New function.
15445 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15446 * doc/tm.texi: Regenerate.
15447 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15448 (TARGET_PREDICT_DOLOOP_P): New macro.
15449 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15451 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15453 * omp-low.c (struct omp_context): Add scan_inclusive field.
15454 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15456 (struct omplow_simd_context): Add lastlane member.
15457 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15458 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15460 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15461 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15462 (lower_omp_scan): New function.
15463 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15464 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15465 check 3rd argument if present rather than 2nd.
15466 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15467 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15469 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15470 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15472 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15473 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15474 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15476 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15477 IFN_GOMP_SIMD_LANE argument.
15478 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15479 encoded ->aux value.
15480 * tree-vect-stmts.c: Include attribs.h.
15481 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15482 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15484 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15485 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15487 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15490 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15491 (*nabs<mode>2_1): Ditto.
15492 (nabs sse-reg splitter): New splitter.
15493 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15495 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15497 PR bootstrap/90873.
15498 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15501 2019-06-17 Tom de Vries <tdevries@suse.de>
15503 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15504 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15505 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15507 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15509 (define_insn "omp_simt_enter_insn"): Rename to ...
15510 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15511 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15512 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15513 gen_omp_simt_enter_si.
15514 (define_expand "omp_simt_exit"): New.
15515 (define_insn "omp_simt_exit"): Rename to ...
15516 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15519 2019-06-17 Matthew Green <mrg@eterna.com.au>
15520 Maya Rashish <coypu@sdf.org>
15522 * config.gcc (aarch64*-*-netbsd*): New target.
15523 * config/aarch64/aarch64-netbsd.h: New file.
15524 * config/aarch64/t-aarch64-netbsd: Likewise.
15526 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15528 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15529 the access path from base to first VIEW_CONVERT_EXPR or
15532 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15534 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15535 access path on BIT_FIELD_REFs.
15537 2019-06-17 Martin Liska <mliska@suse.cz>
15540 * ipa-utils.h (odr_type_p): Remove dead code.
15542 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15544 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15545 alternative Solaris 11.4 format.
15546 * configure: Regenerate.
15548 2019-06-17 Tom de Vries <tdevries@suse.de>
15550 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15551 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15553 (define_insn "call_value_insn"): Rename to ...
15554 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15556 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15559 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15561 PR middle-end/64242
15562 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15563 frame clobbers and schedule block.
15564 (builtin_longjmp): Likewise.
15566 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15568 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15569 describe how to perform MSPABI compliant 64-bit shift.
15570 * config/msp430/msp430.md (ashldi3): New define_expand.
15571 (ashrdi3): New define_expand.
15572 (lshrdi3): New define_expand.
15574 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15576 * doc/sourcebuild.texi: Document new effective target keyword
15579 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15581 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15582 indirect_refs_may_alias_p): Revert accidental commits.
15584 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15585 at the end of structures.
15587 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15589 * config/darwin.c (machopic_indirect_call_target): Use renamed
15590 darwin_picsymbol_stubs to decide on output.
15591 (darwin_override_options): Handle darwin_picsymbol_stubs.
15592 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15593 (LD64_VERSION): Revise default.
15594 * config/darwin.opt: (mpic-symbol-stubs): New option.
15595 (darwin_picsymbol_stubs): New variable.
15596 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15597 rename to TARGET_MACHO_PICSYM_STUBS.
15598 * config/i386/i386.c (output_pic_addr_const): Likewise.
15599 * config/i386/i386.h Likewise.
15600 * config/rs6000/darwin.h: Likewise.
15601 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15602 darwin_picsymbol_stubs.
15604 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15606 * config/darwin.opt (prebind, noprebind, seglinkedit,
15607 noseglinkedit): Add RejectNegative.
15609 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15611 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15612 in my previous patch.
15614 2019-06-16 Tom de Vries <tdevries@suse.de>
15616 PR tree-optimization/89376
15617 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15619 2019-06-15 Maya Rashish <coypu@sdf.org>
15621 * doc/invoke.texi (Spec Files): Update location of the
15624 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15626 * doc/extend.texi (Common Function Attributes): Clarify
15627 no_sanitize. Fix grammar.
15629 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15631 * tree-ssa-alias.c (alias_stats): Add
15632 nonoverlapping_component_refs_p_may_alias,
15633 nonoverlapping_component_refs_p_no_alias,
15634 nonoverlapping_component_refs_of_decl_p_may_alias,
15635 nonoverlapping_component_refs_of_decl_p_no_alias.
15636 (dump_alias_stats): Dump them.
15637 (nonoverlapping_component_refs_of_decl_p): Add stats.
15638 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15641 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15643 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15644 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15646 (*anddi3_doubleword): Split before reload. Merge with
15647 anddi->zext pre-reload splitter.
15648 (*andndi3_doubleword): Split before reload.
15649 (*<code>di3_doubleword): Ditto.
15650 (*one_cmpldi2_doubleword): Ditto.
15652 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15654 PR middle-end/90779
15655 * gimplify.c: Include omp-offload.h and context.h.
15656 (gimplify_bind_expr): Add "omp declare target" attributes
15657 to static block scope variables inside of target region or target
15660 2019-06-15 Tom de Vries <tdevries@suse.de>
15662 PR tree-optimization/90009
15663 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15664 Return NULL if bb contains IFN_UNIQUE.
15666 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15668 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15669 (un): New define_mode_attr.
15670 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15671 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15672 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15674 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15676 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15678 * config/darwin.opt: Add RejectNegative where needed, reorder
15679 and add minimal functional descriptions.
15681 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15683 PR rtl-optimization/90765
15684 * calls.c (update_stack_alignment_for_call): New function.
15685 (expand_call): Call update_stack_alignment_for_call when
15686 outgoing parameter is passed in the stack.
15687 (emit_library_call_value_1): Likewise.
15688 * function.c (locate_and_pad_parm): Don't update
15689 stack_alignment_needed and preferred_stack_boundary.
15691 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15694 * config/i386/i386-features.c
15695 (dimode_scalar_chain::compute_convert_gain): Replace
15696 mmxsse_to_integer with sse_to_integer.
15697 * config/i386/i386.c (ix86_register_move_cost): Verify that
15698 moves between MMX and non-MMX units require secondary memory.
15699 Correct costs of moves between SSE and integer units.
15700 * config/i386/i386.h (processor_costs): Rename cost of moving
15701 SSE register to integer to sse_to_integer. Rename cost of
15703 2019-06-14 Matt Thomas <matt@3am-software.com>
15704 Matthew Green <mrg@eterna.com.au>
15705 Nick Hudson <skrll@netbsd.org>
15706 Maya Rashish <coypu@sdf.org>
15707 Richard Earnshaw <rearnsha@arm.com>
15709 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15710 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15711 * config/arm/netbsd-eabi.h: New file.
15712 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15714 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15715 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15716 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15717 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15719 2019-06-14 Richard Biener <rguenther@suse.de>
15721 * tree-loop-distribution.c (classify_partition): Return
15722 whether a reduction appeared in all partitions and do not
15723 stop builtin detection because of this.
15724 (distribute_loop): Sort a non-builtin partition last if
15725 there's a reduction in all partitions and make sure the
15726 partition prevailing as last is not a builtin.
15728 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15731 * ipa-prop.c (add_to_agg_contents_list): New function.
15732 (clobber_by_agg_contents_list_p): Likewise.
15733 (extract_mem_content): Likewise.
15734 (get_place_in_agg_contents_list): Delete.
15735 (determine_known_aggregate_parts): Renamed from
15736 determine_locally_known_aggregate_parts. New parameter
15739 2019-06-13 Martin Sebor <msebor@redhat.com>
15741 PR tree-optimization/90662
15742 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15745 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15748 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15749 dbase is not TARGET_MEM_REF.
15751 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15753 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15755 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15756 Do not generate DImode extends for 32bit targets.
15757 (and->zext post-reload splitter): Use gen_extend_insn
15758 instead of indirect functions.
15759 (anddi->zext pre-reload splitter): New.
15760 (*zext<mode>_doubleword_and): Remove.
15761 (*zext<mode>_doubleword): Ditto.
15762 (*zextsi_doubleword): Dittto.
15764 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15766 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15767 Use gen_sub3_insn instead of indirect function.
15768 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15770 (ix86_adjust_counter): Ditto.
15772 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15773 Lijia He <helijia@linux.ibm.com>
15775 PR tree-optimization/77820
15776 * tree-ssa-threadedge.c
15777 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15779 (thread_across_edge): Add call to
15780 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15782 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15784 * config/darwin-driver.c (validate_macosx_version_min): New.
15785 (darwin_default_min_version): Cleanup and validate supplied version.
15786 (darwin_driver_init): Likewise and push cleaned version into opts.
15788 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15790 PR tree-optimization/90869
15791 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15792 converts in MEM_REF referencing decl rather than view converts
15793 from decl type to MEM_REF type.
15795 2019-06-13 Richard Biener <rguenther@suse.de>
15797 PR tree-optimization/90856
15798 * tree-sra.c (build_ref_for_model): Only use
15799 build_reconstructed_reference when address-spaces are the same.
15801 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15803 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15804 wrap ei variable name in the declaration in ()s.
15805 (nvptx_single): Actually use mode_label variable. Formatting fix.
15807 2019-06-13 Richard Biener <rguenther@suse.de>
15809 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15810 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15811 also return the condition stmt.
15812 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15813 loop we can version and version that, reusing the loop version
15814 created by if-conversion instead of versioning again.
15816 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15818 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15820 * tree-vrp (value_range_base::may_contain_p): Call into
15821 value_inside_range.
15822 (value_inside_range): Make private inside value_range_base class.
15823 Take min/max from *this.
15824 (range_includes_p): Remove.
15825 * tree-vrp.h (value_range_base): Add value_inside_range.
15826 (range_includes_p): Remove.
15827 (range_includes_zero_p): Call may_contain_p.
15828 * vr-values.c (compare_range_with_value): Same.
15830 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15832 * doc/extend.texi (ARC Function Attributes): Update info.
15834 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15836 PR tree-optimization/89713
15837 * doc/invoke.texi (-ffinite-loops): Document new option.
15838 * common.opt (-ffinite-loops): New option.
15839 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15840 IFN_GOACC_LOOP calls as necessary.
15841 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15843 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15844 IFN_GOACC_LOOP call is not used.
15845 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15847 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15850 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15851 compare_type is not with Pmode size, we will create an IV with
15852 Pmode size with truncated use (i.e. converted to the correct type).
15853 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15854 (vect_iv_limit_for_full_masking): New. Factored out of
15855 vect_set_loop_condition_masked.
15856 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15857 (vect_iv_limit_for_full_masking): Declare.
15859 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15862 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15863 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15864 (get_alias_ptr_type_for_ptr_address): Likewise.
15865 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15866 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15867 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15870 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15872 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15874 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15876 * common/config/pru/pru-common.c: New file.
15877 * config.gcc: Add PRU target.
15878 * config/pru/alu-zext.md: New file.
15879 * config/pru/constraints.md: New file.
15880 * config/pru/predicates.md: New file.
15881 * config/pru/pru-opts.h: New file.
15882 * config/pru/pru-passes.c: New file.
15883 * config/pru/pru-pragma.c: New file.
15884 * config/pru/pru-protos.h: New file.
15885 * config/pru/pru.c: New file.
15886 * config/pru/pru.h: New file.
15887 * config/pru/pru.md: New file.
15888 * config/pru/pru.opt: New file.
15889 * config/pru/t-pru: New file.
15890 * doc/extend.texi: Document PRU pragmas.
15891 * doc/invoke.texi: Document PRU-specific options.
15892 * doc/md.texi: Document PRU asm constraints.
15894 2019-06-12 Martin Sebor <msebor@redhat.com>
15896 PR middle-end/90676
15897 * tree-pretty-print.c (dump_mem_ref): New function. Include
15898 MEM_REF type in output when different size than operand.
15899 (dump_generic_node): Move code to dump_mem_ref and call it.
15901 2019-06-12 Martin Sebor <msebor@redhat.com>
15903 PR tree-optimization/90662
15904 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15907 2019-06-12 Tom de Vries <tdevries@suse.de>
15909 PR tree-optimization/90009
15910 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15912 2019-06-12 Martin Liska <mliska@suse.cz>
15914 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15916 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15917 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15918 Do not sanitize created maps.
15920 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15922 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15923 value_range::singleton_p.
15924 * tree-vrp.c (value_range_constant_singleton): Remove.
15925 * tree-vrp.h (value_range_constant_singleton): Remove.
15926 * vr-values.c (vr_values::singleton): Use
15927 value_range::singleton_p.
15929 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15932 * cfgexpand.c (align_local_variable): Add really_expand argument,
15933 don't SET_DECL_ALIGN if it is false.
15934 (add_stack_var): Add really_expand argument, pass it through to
15935 align_local_variable.
15936 (expand_one_stack_var_1): Pass true as really_expand to
15937 align_local_variable.
15938 (expand_one_ssa_partition): Pass true as really_expand to
15940 (expand_one_var): Pass really_expand through to add_stack_var.
15942 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15944 * config/arm/iterators.md (VABAL): New int iterator.
15945 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15946 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15947 UNSPEC_VABAL_U values.
15949 2019-06-12 Martin Liska <mliska@suse.cz>
15951 * value-prof.c (stream_out_histogram_value): Only first value
15954 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15957 * symtab.c (symtab_node::set_section): Allow being called on aliases
15958 as long as they aren't analyzed yet.
15960 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15962 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15963 to `mips_set_text_contents_type' to indicate whether a
15964 non-debug insn follows.
15966 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15968 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15969 enabling -mpcrel by default.
15970 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15971 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15972 that the test against -mcpu=future is done first. Then test if
15973 -mprefixed-addr is on for -mpcrel.
15974 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15976 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15979 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15980 instead of and.u%d.
15982 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15984 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15986 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15988 PR c++/90449 - add -Winaccessible-base option.
15989 * doc/invoke.texi (Winaccessible-base): Document.
15991 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15993 PR tree-optimization/62041
15994 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15996 2019-06-11 Jason Merrill <jason@redhat.com>
15998 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15999 * tree.c (get_tree_code_name): Likewise.
16000 * print-tree.c (print_node): Only briefly print a node with an
16003 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16006 * trans-mem.c (tm_memopt_compute_available): Add assertion
16007 that blocks is not empty. Formatting fix.
16009 2019-06-11 Martin Liska <mliska@suse.cz>
16012 * hash-table.h: Extend create_gcc, add one parameter
16013 that is passed into hash_table::hash_table.
16015 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
16017 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
16019 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
16020 Emit clobber also for non-sse operations.
16021 (ix86_split_fp_absneg_operator): New function.
16022 * config/i386/i386.md (SSEMODEF): New mode iterator.
16023 (ssevecmodef): New mode attribute.
16024 (<code>tf2): Use absneg code iterator.
16025 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
16026 Add three-operand AVX alternatives.
16027 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
16028 Use absneg code iterator and X87MODEF mode iterator.
16029 (absneg fp_reg non-sse splitter): Call absneg code iterator
16030 and X87MODEF mode iterator.
16031 (absneg general_reg non-sse splitter): Use absneg code iterator
16032 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
16033 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
16034 code iterator. Add three-operand AVX alternative.
16035 (absneg sse_reg splitter): Use absneg code iterator
16036 and SSEMODEF mode iterator. Handle AVX operands.
16037 (absneg fp_reg splitter): Use absneg code iterator
16038 and MODEF mode iterator.
16039 (absneg general_reg splitter): Merge splitters using MODEF mode
16040 iterator. Use absneg code iterator. Call
16041 ix86_split_fp_absneg_operator.
16042 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
16043 Do not enable for non-sse modes before reload.
16044 (CSGNMODE): Remove.
16045 (CSGNVMODE): Ditto.
16046 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
16047 ssevecmodef mode attribute instaed of CSGNVMODE.
16048 (copysign<mode>3_const): Ditto.
16049 (copysign<mode>3_var): Ditto.
16050 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
16051 Use absneg code iterator. Simplify code using std::swap.
16052 * config/i386/predicates.md (absneg_operator): Remove.
16054 2019-06-10 Martin Sebor <msebor@redhat.com>
16056 * gimple-fold.c (get_range_strlen): Update comment that didn't
16057 make it into r267503 or related commits.
16059 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
16061 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
16062 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
16064 2019-06-10 Jakub Jelinek <jakub@redhat.com>
16066 * tree.def (OMP_SCAN): New tree code.
16067 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
16068 OMP_CLAUSE_EXCLUSIVE.
16069 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
16070 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
16071 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
16072 OMP_CLAUSE_{IN,EX}CLUSIVE.
16073 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16074 * tree-nested.c (convert_nonlocal_reference_stmt,
16075 convert_local_reference_stmt, convert_gimple_call): Handle
16077 * tree-pretty-print.c (dump_omp_clause): Handle
16078 OMP_CLAUSE_{IN,EX}CLUSIVE.
16079 (dump_generic_node): Handle OMP_SCAN.
16080 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
16081 * gimple.h (gomp_scan): New type.
16082 (is_a_helper <gomp_scan *>::test,
16083 is_a_helper <const gomp_scan *>::test): New templates.
16084 (gimple_build_omp_scan): Declare.
16085 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
16086 gimple_omp_scan_set_clauses): New inline functions.
16087 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
16088 * gimple.c (gimple_build_omp_scan): New function.
16089 (gimple_copy): Handle GIMPLE_OMP_SCAN.
16090 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
16091 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
16092 GIMPLE_OMP_TASKGROUP.
16093 (dump_gimple_omp_scan): New function.
16094 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
16095 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
16096 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
16097 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
16098 (is_gimple_stmt): Handle OMP_SCAN.
16099 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
16100 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16101 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
16102 mentioned in nested #pragma omp scan. Handle
16103 OMP_CLAUSE_{IN,EX}CLUSIVE.
16104 (gimplify_expr): Handle OMP_SCAN.
16105 * omp-low.c (check_omp_nesting_restrictions): For parent context,
16106 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
16108 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
16111 2019-06-10 Martin Liska <mliska@suse.cz>
16113 * ipa-cp.c (ignore_edge_p): New function.
16114 (build_toporder_info): Use it.
16115 * ipa-inline.c (ignore_edge_p): New function.
16116 (inline_small_functions): Use it.
16117 * ipa-pure-const.c (ignore_edge_for_nothrow):
16118 Verify opt_for_fn for caller and callee.
16119 (ignore_edge_for_pure_const): Likewise.
16120 * ipa-reference.c (ignore_edge_p): Extend to check
16122 * ipa-utils.c (searchc): Refactor.
16123 * ipa-utils.h: Fix coding style.
16125 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16127 * config/arc/arc.c (arc_rtx_costs): Update costs.
16129 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16131 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
16132 (arc_split_ior): Likewise.
16133 (arc_check_mov_const): Likewise.
16134 (arc_split_mov_const): Likewise.
16135 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
16136 (arc_rtx_costs): Replace check Crr with Cax constraint.
16137 (prepare_move_operands): Cleanup, remove unused code.
16138 (arc_split_ior): New function.
16139 (arc_check_ior_const): Likewise.
16140 (arc_split_mov_const): Likewise.
16141 (arc_check_mov_const): Likewise.
16142 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
16143 in define_insn_and_split pattern.
16144 (iorsi3): Likewise.
16145 (mulsi3_v2): Add new matching variant.
16146 (andsi3_i): Cleanup pattern.
16147 (rotrsi3_cnt1): Update pattern.
16148 (rotrsi3_cnt8): New pattern.
16149 (ashlsi2_cnt8): Likewise.
16150 (ashlsi2_cnt16): Likewise.
16151 * config/arc/constraints.md (C0p): Update constraint.
16153 (C0x): New pattern.
16154 (Cax): New pattern.
16156 2019-06-10 Martin Liska <mliska@suse.cz>
16158 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
16159 Update coding style.
16160 (sem_item_optimizer::dump_cong_classes):
16161 Print how many items are in a non-singular class. Improve
16164 2019-06-10 Martin Liska <mliska@suse.cz>
16166 * value-prof.c (dump_histogram_value): Change dump format.
16167 (gimple_mod_subtract_transform): Remove legacy comment.
16169 2019-06-10 Martin Liska <mliska@suse.cz>
16171 * value-prof.c (dump_histogram_value): Print histogram values
16174 2019-06-10 Martin Liska <mliska@suse.cz>
16176 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
16177 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
16178 * ipa-profile.c (ipa_profile_generate_summary):
16179 Use get_most_common_single_value.
16180 * tree-profile.c (gimple_init_gcov_profiler):
16181 Instrument with __gcov_one_value_profiler_v2
16182 and __gcov_indirect_call_profiler_v4.
16183 * value-prof.c (dump_histogram_value):
16184 Print all values for HIST_TYPE_SINGLE_VALUE.
16185 (stream_out_histogram_value): Update assert for
16187 (stream_in_histogram_value): Set number of
16188 counters for HIST_TYPE_SINGLE_VALUE.
16189 (get_most_common_single_value): New.
16190 (gimple_divmod_fixed_value_transform):
16191 Use get_most_common_single_value.
16192 (gimple_ic_transform): Likewise.
16193 (gimple_stringops_transform): Likewise.
16194 (gimple_find_values_to_profile): Set number
16195 of counters for HIST_TYPE_SINGLE_VALUE.
16196 * value-prof.h (get_most_common_single_value): New.
16198 2019-06-10 Martin Liska <mliska@suse.cz>
16200 * hash-map.h: Pass default value to hash_table ctor.
16201 * hash-table.h: Add default value to call of a ctor.
16203 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
16205 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
16206 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
16208 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
16211 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
16212 Call pa_output_function_label.
16213 (TARGET_ASM_FUNCTION_PROLOGUE): define.
16214 * config/pa/pa-protos.h (pa_output_function_label): Declare.
16215 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
16217 (pa_linux_output_function_prologue): Declare.
16218 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
16219 (pa_output_function_label): New.
16220 (pa_output_function_prologue): Revise to use pa_output_function_label.
16221 (pa_linux_output_function_prologue): New.
16222 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
16224 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
16226 * tree-vrp.h (value_range_base::intersect): New.
16227 (value_range::intersect_helper): Move from here...
16228 (value_range_base::intersect_helper): ...to here.
16229 * tree-vrp.c (value_range::intersect_helper): Rename to...
16230 (value_range_base::intersect_helper): ...this, and rewrite to
16231 return a value instead of modifying THIS in place.
16232 Also, move equivalence handling...
16233 (value_range::intersect): ...here, while calling intersect_helper.
16234 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
16236 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
16238 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
16240 2019-06-07 Jakub Jelinek <jakub@redhat.com>
16242 * Makefile.in (genprogerr): Add condmd.
16243 (genprog): Remove it here.
16245 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
16247 * doc/invoke.texi (AMD GCN Options): Add gfx906.
16249 2019-06-07 Richard Biener <rguenther@suse.de>
16252 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
16253 that appear after user labels.
16255 2019-06-07 Martin Liska <mliska@suse.cz>
16257 * cselib.c (cselib_init): Disable hash table
16259 * hash-set.h: Pass new default argument to m_table.
16260 * hash-table.c: Add global variable with hash table
16261 sanitization limit.
16262 * hash-table.h (Allocator>::hash_table): Add new argument
16264 (hashtab_chk_error): New.
16265 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
16266 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
16267 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
16269 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16271 * common.opt (flto-odr-type-merging): Ignore.
16272 * invoke.texi (-flto-odr-type-merging): Remove.
16273 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
16274 (can_be_vtable_hashed_p): Remove.
16275 (hash_odr_vtable): Remove.
16276 (odr_vtable_hasher::hash): Remove.
16277 (types_same_for_odr): Remove.
16278 (types_odr_comparable): Remove.
16279 (odr_vtable_hasher::equal): Remove.
16280 (odr_vtable_hash_type, odr_vtable_hash): Remove.
16281 (add_type_duplicate): Do not synchronize vtable and name hashtables.
16282 (get_odr_type): Do not use vtable hash.
16283 (dump_odr_type): Remove commented out code.
16284 (build_type_inheritance_graph): Do not allocate vtable hash.
16285 (rebuild_type_inheritance_graph): Do not delete vtable hash.
16286 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
16287 (odr_type_p): Likewise.
16288 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
16291 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16293 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
16294 immediately after same_types_for_tbaa_p returns -1 and continue
16295 looking for possible exact match; if matching types are arrays
16296 watch for partial overlaps.
16297 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
16298 (indirect_refs_may_alias_p): Do type based disambiguation first;
16301 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
16303 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
16305 2019-06-07 Martin Liska <mliska@suse.cz>
16307 * doc/invoke.texi: Remove param.
16308 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
16310 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
16311 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
16312 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
16313 * profile.c (instrument_values): Remove
16314 HIST_TYPE_INDIR_CALL_TOPN.
16315 * tree-profile.c (init_ic_make_global_vars):
16316 Always build __gcov_indirect_call only.
16317 (gimple_init_gcov_profiler): Remove usage
16318 of PARAM_INDIR_CALL_TOPN_PROFILE.
16319 (gimple_gen_ic_profiler): Likewise.
16320 * value-prof.c (dump_histogram_value): Likewise.
16321 (stream_in_histogram_value): Likewise.
16322 (gimple_indirect_call_to_profile): Likewise.
16323 (gimple_find_values_to_profile): Likewise.
16324 * value-prof.h (enum hist_type): Likewise.
16326 2019-06-07 Martin Liska <mliska@suse.cz>
16328 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16331 2019-06-07 Martin Liska <mliska@suse.cz>
16333 PR tree-optimization/78902
16334 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16335 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16336 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16337 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16338 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16339 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16340 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16341 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16342 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16343 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16344 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16345 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16346 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16348 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16349 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16350 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16351 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16352 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16353 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16354 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16355 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16356 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16357 warn_unused_result attribute.
16358 (BUILT_IN_STRDUP): Likewise.
16359 (BUILT_IN_STRNDUP): Likewise.
16360 (BUILT_IN_ALLOCA): Likewise.
16361 (BUILT_IN_CALLOC): Likewise.
16362 (BUILT_IN_MALLOC): Likewise.
16363 (BUILT_IN_REALLOC): Likewise.
16365 2019-06-06 Jim Wilson <jimw@sifive.com>
16368 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16369 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16370 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16372 2019-06-06 Martin Sebor <msebor@redhat.com>
16374 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16375 (handle_builtin_malloc): Remove trailing spaces.
16376 (handle_builtin_memset): Same.
16377 (handle_builtin_memcmp): Same.
16378 (compute_string_length): Same.
16379 (determine_min_objsize): Same.
16380 (handle_builtin_string_cmp): Same.
16381 (handle_char_store): Same. Break up excessively long line.
16383 2019-06-06 Martin Jambor <mjambor@suse.cz>
16385 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16388 2019-06-06 Martin Jambor <mjambor@suse.cz>
16390 * tree-sra.c (struct access): New field grp_same_access_path.
16391 (dump_access): Dump it.
16392 (build_reconstructed_reference): New function.
16393 (build_ref_for_model): Use it if possible.
16394 (path_comparable_for_same_access): New function.
16395 (same_access_path_p): Likewise.
16396 (sort_and_splice_var_accesses): Set the new flag.
16397 (analyze_access_subtree): Likewise.
16398 (propagate_subaccesses_across_link): Propagate zero value of the new
16399 flag down the access tree.
16401 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16403 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16404 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16405 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16406 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16409 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16411 PR tree-optimization/90332
16412 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16413 Handle VALS containing two vectors.
16414 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16416 (@aarch64_combinez<mode>): ... This.
16417 (*aarch64_combinez_be<mode>): Rename to...
16418 (@aarch64_combinez_be<mode>): ... This.
16419 (vec_init<mode><Vhalf>): New define_expand.
16420 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16422 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16424 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16425 library functions only when not optimizing for size.
16426 (ashlsi3): Likewise.
16427 (ashrhi3): Likewise.
16428 (ashrsi3): Likewise.
16429 (lshrhi3): Likewise.
16430 (lshrsi3): Likewise.
16432 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16434 PR rtl-optimization/88751
16435 * ira.c (ira): Use the number of the actually referenced registers
16436 when calculating the threshold.
16438 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16440 * configure: Regenerate.
16442 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16444 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16445 register if it is in memory, so the shift can be emulated with a rotate
16447 (ashrhi3): Likewise.
16448 (lshrhi3): Likewise.
16450 2019-06-06 Martin Liska <mliska@suse.cz>
16452 PR tree-optimization/87954
16453 * match.pd: Simplify mult where both arguments are 0 or 1.
16455 2019-06-06 Richard Biener <rguenther@suse.de>
16457 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16458 put equivalences on UNDEFINED ranges.
16459 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16460 Make sure to drop defs of stmts added during simplification
16463 2019-06-06 Richard Biener <rguenther@suse.de>
16465 * tree-ssa-structalias.c: Include tree-cfg.h.
16466 (make_heapvar): Do not make heap vars artificial.
16467 (find_func_aliases_for_builtin_call): Handle stack allocation
16469 (find_func_aliases): Delay processing of simple enough returns
16471 (set_uids_in_ptset): Adjust.
16472 (find_what_var_points_to): Likewise.
16473 (solve_constraints): Do not dump points-to sets here.
16474 (compute_points_to_sets): Post-process return statements,
16475 amending the escaped solution. Dump points-to sets afterwards.
16476 (ipa_pta_execute): Dump points-to sets.
16478 2019-06-06 Martin Liska <mliska@suse.cz>
16481 * doc/install.texi: Fix HTML headers and
16482 titles for 'Installing GCC' pages.
16484 2019-06-06 Martin Liska <mliska@suse.cz>
16486 * ipa-icf-gimple.h (dump_message_1): Remove.
16487 (dump_message): Likewise.
16488 (return_false_with_message_1): Print also file.
16489 (return_false_with_msg): Likewise.
16490 (return_with_result): Likewise.
16491 (return_with_debug): Likewise.
16492 * ipa-icf.c (sem_function::equals_private): Remove call
16495 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16497 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16498 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16499 memory operand for it.
16500 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16502 2019-06-05 Martin Sebor <msebor@redhat.com>
16504 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16505 Adjust quoting and hyphenation.
16506 * convert.c (convert_to_real_1): Same.
16507 * gcc.c (driver_wrong_lang_callback): Same.
16508 (driver::handle_unrecognized_options): Same.
16509 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16510 * opts-common.c (cmdline_handle_error): Same.
16511 (read_cmdline_option): Same.
16512 * opts-global.c (complain_wrong_lang): Same.
16513 (print_ignored_options): Same.
16514 (handle_common_deferred_options): Same.
16515 * pretty-print.h: Same.
16516 * print-rtl.c (debug_bb_n_slim): Same.
16517 * sched-rgn.c (make_pass_sched_fusion): Same.
16518 * tree-cfg.c (verify_gimple_assign_unary): Same.
16519 (verify_gimple_label): Same.
16520 * tree-ssa-operands.c (verify_ssa_operands): Same.
16521 * varasm.c (do_assemble_alias): Same.
16522 (assemble_alias): Same.
16524 2019-06-05 Richard Henderson <rth@twiddle.net>
16526 * config/alpha/alpha.c (direct_return): Move down after
16527 struct machine_function definition; use saved frame_size;
16529 (struct machine_function): Add sa_mask, sa_size, frame_size.
16530 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16531 (alpha_compute_frame_layout): ... new function.
16532 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16533 (alpha_initial_elimination_offset): Use saved sa_size.
16534 (alpha_vms_initial_elimination_offset): Likewise.
16535 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16536 (alpha_expand_prologue): Use saved frame data. Merge integer
16537 and fp register save loops.
16538 (alpha_expand_epilogue): Likewise.
16539 (alpha_start_function): Use saved frame data.
16540 * config/alpha/alpha-protos.h (direct_return): Update.
16541 (alpha_sa_size): Remove.
16543 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16545 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16546 multiplication by a power-of-two value.
16547 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16548 and turn the modulo operation into a masking operation.
16550 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16553 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16554 with VOIDmode inner operands.
16556 2019-06-05 Richard Biener <rguenther@suse.de>
16558 PR middle-end/90726
16559 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16560 turn an expression graph into a tree.
16562 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16564 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16566 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16567 treat it like explicit monotonic schedule modifier.
16568 (expand_omp_for): Initialize has_lastprivate_conditional.
16569 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16572 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16573 references, lookup in in hash map MEM_REF operand instead of the
16575 (lower_omp_1): When looking for lastprivate conditional assignments,
16576 handle MEM_REFs with REFERENCE_TYPE operands.
16578 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16579 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16580 and references a VLA. Handle references to non-VLAs if is_simd
16581 all privatization clauses like reductions.
16582 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16583 If omp_is_reference, use always omp simd arrays and set
16584 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16585 fails, emit reference initialization.
16587 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16590 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16591 _mm_mask_fpclass_sd_mask): New intrinsics.
16592 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16593 * config/i386/i386-builtin.def
16594 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16596 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16597 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16598 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16599 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16600 case QI_FTYPE_V2SF_INT): Ditto.
16601 * config/i386/sse.md
16602 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16603 Extended to insnstructions with mask operands.
16605 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16607 * config/rs6000/constraints.md (define_register_constraint "wp"):
16609 (define_register_constraint "wq"): Delete.
16610 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16611 (rs6000_init_hard_regno_mode_ok): Adjust.
16612 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16613 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16614 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16615 (define_mode_attr VSa): Delete.
16616 (define_mode_attr VSisa): New.
16617 (rest of file): Adjust.
16618 * doc/md.texi (Machine Constraints): Adjust.
16620 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16622 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16623 (define_attr "enabled"): Handle those new isa values.
16625 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16627 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16628 (define_mode_attr VSr5): Delete.
16629 (define_mode_attr VStype_sqrt): Delete.
16630 (define_mode_iterator VSX_SPDP): Delete.
16631 (define_mode_attr VS_spdp_res): Delete.
16632 (define_mode_attr VS_spdp_insn): Delete.
16633 (define_mode_attr VS_spdp_type): Delete.
16634 (*vsx_sqrt<mode>2): Adjust.
16635 (vsx_<VS_spdp_insn>): Delete, split to...
16636 (vsx_xscvdpsp): ... this. New. And...
16637 (vsx_xvcvspdp): ... this. New. And...
16638 (vsx_xvcvdpsp): ... this. New.
16640 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16642 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16644 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16645 (rest of file): Adjust.
16647 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16649 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16650 (vsx_extract_<mode>_var): Ditto.
16652 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16654 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16657 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16659 * config/rs6000/constraints.md (define_register_constraint "ww"):
16661 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16662 (rs6000_init_hard_regno_mode_ok): Adjust.
16663 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16664 RS6000_CONSTRAINT_ww.
16665 * config/rs6000/rs6000.md: Adjust.
16666 * config/rs6000/vsx.md: Adjust.
16667 * doc/md.texi (Machine Constraints): Adjust.
16669 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16671 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16672 (define_mode_attr sd): New.
16673 (define_mode_attr s): New.
16674 (define_mode_attr Ftrad): Delete.
16675 (define_mode_attr Fvsx): Delete.
16676 (define_mode_attr Fs): Delete.
16677 (rest of file): Use the new mode attributes.
16678 * config.rs6000/vsx.md: Use the new mode attributes.
16680 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16682 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16685 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16687 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16688 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16689 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16691 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16694 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16695 C++ with strict ANSI requirements.
16697 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16699 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16700 computations when step is 1.
16702 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16704 * config/rs6000/constraints.md (define_register_constraint "wf"):
16706 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16707 (rs6000_init_hard_regno_mode_ok): Adjust.
16708 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16709 RS6000_CONSTRAINT_wf.
16710 * config/rs6000/rs6000.md: Adjust.
16711 * config/rs6000/vsx.md: Adjust.
16712 * doc/md.texi (Machine Constraints): Adjust.
16714 2019-06-04 Andrew Pinski <apinski@marvell.com>
16716 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16719 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16721 * config/rs6000/constraints.md (define_register_constraint "wd"):
16723 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16724 (rs6000_init_hard_regno_mode_ok): Adjust.
16725 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16726 RS6000_CONSTRAINT_wd.
16727 * config/rs6000/rs6000.md: Adjust.
16728 * config/rs6000/vsx.md: Adjust.
16729 * doc/md.texi (Machine Constraints): Adjust.
16731 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16733 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16734 (rest of file): Adjust.
16736 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16738 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16739 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16740 (vsx_splat_<mode>_reg): Adjust.
16742 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16744 * config/rs6000/constraints.md (define_register_constraint "ws"):
16746 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16747 (rs6000_init_hard_regno_mode_ok): Adjust.
16748 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16749 RS6000_CONSTRAINT_ws.
16750 * config/rs6000/rs6000.md: Adjust.
16751 * config/rs6000/vsx.md: Adjust.
16752 * doc/md.texi (Machine Constraints): Adjust.
16754 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16756 * config/rs6000/constraints.md (define_register_constraint "wv"):
16758 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16759 (rs6000_init_hard_regno_mode_ok): Adjust.
16760 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16761 RS6000_CONSTRAINT_wv.
16762 * config/rs6000/rs6000.md: Adjust.
16763 * config/rs6000/vsx.md: Adjust.
16764 * doc/md.texi (Machine Constraints): Adjust.
16766 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16768 * config/rs6000/constraints.md (define_register_constraint "wi"):
16770 (define_register_constraint "wt"): Delete.
16771 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16772 (rs6000_init_hard_regno_mode_ok): Adjust.
16773 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16774 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16775 * config/rs6000/rs6000.md: Adjust.
16776 * config/rs6000/vsx.md: Adjust.
16777 * doc/md.texi (Machine Constraints): Adjust.
16779 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16781 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16783 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16784 default_elf_asm_output_external.
16786 2019-06-04 Martin Liska <mliska@suse.cz>
16788 * ipa-icf.c (INCLUDE_LIST): Remove.
16789 (sem_item_optimizer::execute): Remove call to init_wpa.
16790 * ipa-icf.h (init_wpa): Remove.
16792 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16794 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16795 conditional on combined for simd.
16796 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16798 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16799 constructs, don't remove lastprivate_conditional_map, but instead set
16800 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16801 to parent construct temporaries.
16802 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16803 like !ctx->lastprivate_conditional_map.
16804 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16805 use up->outer context instead of up.
16806 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16807 gimple_omp_for_combined_p.
16808 (expand_omp_for_static_nochunk): Likewise.
16809 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16810 probably moved over into expand_omp_for_generic rather than being copied
16813 2019-06-04 Martin Liska <mliska@suse.cz>
16815 * value-prof.c (dump_histogram_value): Fix typo.
16816 (gimple_mod_subtract_transform): Likewise.
16818 2019-06-04 Richard Biener <rguenther@suse.de>
16820 PR middle-end/90726
16821 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16822 (tree_contains_chrecs): Likewise.
16823 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16824 exponential behaivor from ...
16825 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16827 (expression_expensive_p): Avoid exponential behavior and compute
16828 expanded size, rejecting any expansion.
16829 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16830 (idx_contains_abnormal_ssa_name_p): Likewise.
16831 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16832 (contains_abnormal_ssa_name_p): Simplify and use
16833 walk_tree_without_duplicates.
16835 2019-06-04 Richard Biener <rguenther@suse.de>
16837 PR tree-optimization/90738
16839 2019-06-03 Richard Biener <rguenther@suse.de>
16841 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16842 full reference tree and record in ref->ref.
16843 (vn_reference_lookup_3): Pass in original ref to
16844 ao_ref_init_from_vn_reference.
16845 (vn_reference_lookup): Likewise.
16846 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16847 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16848 Handle non-decl bases in the original reference.
16850 2019-06-04 Martin Liska <mliska@suse.cz>
16852 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16853 number of references.
16854 (sem_item_optimizer::do_congruence_step):
16855 (sem_item_optimizer::worklist_push): Dump how references
16857 (sem_item_optimizer::worklist_pop): Use heap.
16858 (sem_item_optimizer::process_cong_reduction): Likewise.
16859 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16861 2019-06-04 Martin Liska <mliska@suse.cz>
16863 * ipa-icf.h (struct sem_usage_pair_hash): New.
16864 (sem_usage_pair_hash::hash): Likewise.
16865 (sem_usage_pair_hash::equal): Likewise.
16866 (struct sem_usage_hash): Likewise.
16867 * ipa-icf.c (sem_item::sem_item): Initialize
16868 referenced_by_count.
16869 (sem_item::add_reference): Register a reference
16870 in ref_map and not in target->usages.
16871 (sem_item::setup): Remove initialization of
16873 (sem_item::~sem_item): Remove usage of dead vectors.
16874 (sem_item::dump): Remove dump of references.
16875 (sem_item_optimizer::sem_item_optimizer): Initialize
16877 (sem_item_optimizer::read_section): Remove useless
16879 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16880 (sem_item_optimizer::build_graph): Pass m_references
16881 to ::add_reference.
16882 (sem_item_optimizer::verify_classes): Remove usage of dead
16884 (sem_item_optimizer::traverse_congruence_split): Return true
16885 when a class is split.
16886 (sem_item_optimizer::do_congruence_step_for_index): Use
16887 hash_map for look up of (sem_item *, index). That brings
16888 significant speed up.
16889 (sem_item_optimizer::do_congruence_step): Return true
16890 when a split is done.
16891 (congruence_class::is_class_used): Use referenced_by_count.
16893 2019-06-04 Alan Modra <amodra@gmail.com>
16896 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16899 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16901 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16902 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16903 (rs6000_secondary_reload_simple_move): Adjust.
16904 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16905 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16906 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16909 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16910 (floatunssi<mode>2_lfiwzx): Adjust.
16911 (fix_trunc<mode>si2_stfiwx): Adjust.
16912 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16913 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16914 (mfpgpr): Mark as deprecated.
16915 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16916 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16917 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16919 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16921 * config/rs6000/constraints.md (define_register_constraint "wg"):
16923 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16924 RS6000_CONSTRAINT_wg.
16925 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16926 (rs6000_init_hard_regno_mode_ok): Adjust.
16927 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16928 Delete "wg" alternatives.
16929 * doc/md.texi (Machine Constraints): Adjust.
16931 2019-06-03 Alan Modra <amodra@gmail.com>
16933 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16934 (get_uncond_jump_length): Assert length less than INT_MAX and
16937 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16939 PR middle-end/64242
16940 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16942 (expand_builtin_nonlocal_goto): Likewise.
16944 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16946 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16947 (aarch64_asm_output_external): Declare.
16948 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16949 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16950 (aarch64_asm_output_alias): New.
16951 (aarch64_asm_output_external): New.
16952 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16953 (ASM_OUTPUT_EXTERNAL): Define.
16955 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16956 * tree-vrp.h (value_range_base::nonzero_p): New.
16957 (value_range_base::set_nonnull): Rename to...
16958 (value_range_base::set_nonzero): ...this.
16959 (value_range_base::set_null): Rename to...
16960 (value_range_base::set_zero): ...this.
16961 (value_range::set_nonnull): Remove.
16962 (value_range::set_null): Remove.
16963 * tree-vrp.c (range_is_null): Remove.
16964 (range_is_nonnull): Remove.
16965 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16966 instead of range_is_*null.
16967 (extract_range_from_unary_expr): Same.
16968 (value_range_base::set_nonnull): Rename to...
16969 (value_range_base::set_nonzero): ...this.
16970 (value_range::set_nonnull): Remove.
16971 (value_range_base::set_null): Rename to...
16972 (value_range_base::set_zero): ...this.
16973 (value_range::set_null): Remove.
16974 (extract_range_from_binary_expr): Rename set_*null uses to
16976 (extract_range_from_unary_expr): Same.
16977 (union_helper): Same.
16978 * vr-values.c (get_value_range): Use set_*zero instead of
16980 (vr_values::extract_range_from_binary_expr): Same.
16981 (vr_values::extract_range_basic): Same.
16983 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16986 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16988 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16990 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16991 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16993 (aarch64_<su>abd<mode>_3): ... This.
16994 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16996 2019-06-03 Richard Biener <rguenther@suse.de>
16998 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16999 full reference tree and record in ref->ref.
17000 (vn_reference_lookup_3): Pass in original ref to
17001 ao_ref_init_from_vn_reference.
17002 (vn_reference_lookup): Likewise.
17003 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
17004 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17005 Handle non-decl bases in the original reference.
17007 2019-06-03 Martin Liska <mliska@suse.cz>
17009 * doc/generic.texi: Remove Java Trees.
17011 2019-06-03 Martin Liska <mliska@suse.cz>
17013 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
17014 returns 0 when operands are equal.
17016 2019-06-03 Richard Biener <rguenther@suse.de>
17018 PR tree-optimization/90716
17019 * tree-loop-distribution.c (destroy_loop): Process blocks in
17022 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17025 * vector-builder.h (vector_builder::count_dups): New method.
17026 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
17028 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
17029 (vec_init<mode><Vel>): New pattern.
17030 * config/aarch64/aarch64.c (emit_insr): New function.
17031 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
17032 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
17033 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
17034 (aarch64_sve_expand_vector_init): Define two overloaded functions.
17036 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17038 PR tree-optimization/90681
17039 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
17040 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
17041 special case for SLP, but fail on non-groupped loads.
17043 2019-06-03 Martin Liska <mliska@suse.cz>
17045 * cfg.c (debug): Use TDF_DETAILS for debug and
17046 print edge info only once.
17048 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
17051 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
17053 2019-06-01 Martin Sebor <msebor@redhat.com>
17055 PR middle-end/90694
17056 * tree-pretty-print.c (dump_generic_node): Add parentheses.
17058 2019-05-31 Jan Hubicka <jh@suse.cz>
17060 * alias.c: Include ipa-utils.h.
17061 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
17062 * ipa-devirt.c (prevailing_odr_type): New.
17063 * ipa-utils.h (previaling_odr_type): Declare.
17065 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
17066 Hongtao Liu <hongtao.liu@intel.com>
17069 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
17070 NOTE_INSN_DELETED_LABEL check.
17072 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
17073 Robert Suchanek <robert.suchanek@mips.com>
17075 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
17076 and 3rd operands of the fmadd/fmsub/maddv builtin.
17078 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17080 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
17081 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17082 on OMP_SIMD if not nested inside of worksharing loop that also has
17083 lastprivate conditional clause for the same decl.
17084 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
17085 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
17087 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
17089 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
17091 (lower_lastprivate_clauses): Likewise.
17092 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
17093 calling lower_rec_input_clauses.
17094 (lower_omp_for): Likewise.
17095 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
17096 clause on simd construct.
17097 * omp-expand.c (expand_omp_simd): Initialize cond_var if
17098 OMP_CLAUSE__CONDTEMP_ clause is present.
17100 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
17103 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
17106 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
17107 TEX_D32, TEX_D64 or TEX_D128.
17109 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17111 * match.pd (~(vec?cst1:cst2)): New transformation.
17113 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17115 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
17116 ((size_t)(A /[ex] B) CMP C): New transformation.
17118 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
17120 * doc/md.texi: Document define_insn_and_rewrite.
17121 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
17122 * gensupport.c (queue_elem): Update comment.
17123 (replace_operands_with_dups): New function.
17124 (gen_rewrite_sequence): Likewise.
17125 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
17126 * read-rtl.c (apply_subst_iterator): Likewise.
17127 (add_condition_to_rtx, named_rtx_p): Likewise.
17128 (rtx_reader::read_rtx_operand): Likewise.
17129 * config/aarch64/aarch64-sve.md
17130 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
17131 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
17132 define_insn_and_rewrite.
17133 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
17134 Remove separate define_split.
17136 2019-05-31 Jan Hubicka <jh@suse.cz>
17138 * tree-ssa-alias.c (type_has_components_p): New function.
17139 (aliasing_component_refs_p): Use it.
17141 2019-05-31 Martin Liska <mliska@suse.cz>
17143 * gdbhooks.py: Add const_tree to TreePrinter.
17145 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
17148 * common.opt (feliminate-unused-debug-symbols): Enable by default.
17149 * doc/invoke.texi (Debugging Options): Document new default of
17150 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
17152 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17154 PR tree-optimization/90671
17155 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
17156 template_block used to be empty on the first call, don't use
17157 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
17158 seq with bb_seq and set it with set_bb_seq.
17160 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
17162 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
17164 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17165 Michael Meissner <meissner@linux.ibm.com>
17167 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
17168 (prefixed_mem_operand): Likewise.
17169 (non_prefixed_mem_operand): Likewise.
17170 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
17172 * config/rs6000/rs6000.c (print_operand_address): Handle
17173 PC-relative addresses.
17174 (mode_supports_prefixed_address_p): New function.
17175 (rs6000_prefixed_address): New function.
17176 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
17177 (SYMBOL_REF_PCREL_P): Likewise.
17179 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17181 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
17182 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
17183 (gimplify_omp_for): If worksharing loop with lastprivate conditional
17184 is nested inside of parallel region, add _condtemp_ clause to both.
17185 * tree-nested.c (convert_nonlocal_omp_clauses,
17186 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
17188 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
17190 * omp-general.c (omp_extract_for_data): Compute it.
17191 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
17192 (lower_rec_input_clauses): Likewise.
17193 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
17194 clause is already present, just add one further one after it.
17195 (lower_lastprivate_clauses): Handle cond_ptr with array type.
17196 (lower_send_shared_vars): Clear _condtemp_ vars.
17197 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
17198 or section or taskgroup.
17199 * omp-expand.c (determine_parallel_type): Disallow combining only if
17200 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
17201 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
17202 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17203 expand_omp_for_static_chunk, expand_omp_for): Use
17204 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
17205 determine if a special set of API routines are needed and if condtemp
17206 needs to be initialized, while always initialize cond_var if
17207 fd->lastprivate_conditional is non-zero.
17209 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17210 Michael Meissner <meissner@linux.ibm.com>
17212 * config/rs6000/constraints.md (eI): New constraint.
17213 * config/rs6000/predicates.md (cint34_operand): New predicate.
17214 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
17215 (SIGNED_34BIT_OFFSET_P): Likewise.
17216 * doc/md.texi (eI): Document constraint.
17218 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
17220 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
17222 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17223 Michael Meissner <meissner@linux.ibm.com>
17225 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
17226 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
17227 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
17228 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
17229 (OTHER_FUTURE_MASKS): Likewise.
17230 (POWERPC_MASKS): Likewise.
17231 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
17232 specified without -mprefixed-addr or -mcpu=future. Error if
17233 -mprefixed-addr is specified without -mcpu=future.
17234 (rs6000_opt_masks): Add entry for prefixed-addr.
17235 * rs6000.opt (mprefixed-addr): New option.
17237 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
17239 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
17240 cfun->is_thunk check.
17242 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17244 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
17247 2019-05-30 Martin Liska <mliska@suse.cz>
17249 * gdbinit.in: Fix 'ptc' command. Add trt
17250 that prints TREE_TYPE($).
17252 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
17253 Alan Modra <amodra@gmail.com>
17255 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
17257 (rs6000_indirect_call_template_1): ...and here.
17258 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
17259 plt16_ha, plt16_lo, mtctr indirect calls. Use
17260 rs6000_pltseq_enum.
17261 (rs6000_decl_ok_for_sibcall): New function.
17262 (rs6000_function_ok_for_sibcall): Refactor.
17263 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
17264 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
17265 when pcrel. Reorganize.
17266 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
17267 * rs6000.h (rs6000_pltseq_enum): New enum.
17268 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
17269 (*pltseq_tocsave): Use rs6000_pltseq_enum.
17270 (*pltseq_plt16_ha): Likewise.
17271 (*pltseq_plt16_lo): Likewise.
17272 (*pltseq_mtctr): Likewise.
17273 (*pltseq_plt_pcrel): New insn.
17274 (*call_local_aix): Handle @notoc calls.
17275 (*call_value_local_aix): Likewise.
17276 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
17277 (*call_value_nonlocal_aix): Likewise.
17278 (*call_indirect_pcrel): New insn.
17279 (*call_value_indirect_pcrel): Likewise.
17281 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
17283 * config/i386/sse.md (*save_multiple<mode>): Rename from
17284 save_multiple<mode>.
17285 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
17286 (*restore_multiple_and_return<mode>): Rename from
17287 restore_multiple_and_return<mode>.
17288 (*restore_multiple_leave_return<mode>): Rename from
17289 restore_multiple_leave_return<mode>.
17291 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
17293 * config.gcc (rx-*-linux*): New target.
17294 * config/rx/elf.opt: New file.
17295 * config/rx/linux.h: Likewise.
17296 * config/rx/t-linux: Likewise.
17297 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
17299 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
17300 (ASM_APP_OFF): Likewise.
17301 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
17304 2019-05-29 Jan Hubicka <jh@suse.cz>
17306 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
17307 variants are pointer equivalent.
17309 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17311 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
17312 * config/aarch64/aarch64-sve2.md: New file.
17313 (<u>avg<mode>3_floor): New pattern.
17314 (<u>avg<mode>3_ceil): Likewise.
17315 (*<sur>h<addsub><mode>): Likewise.
17316 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
17317 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
17319 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17322 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17323 for var_opt_string printing. In cl_optimization_print_diff, print
17324 (null) instead of invoking undefined behavior if one of the
17325 var_opt_string pointers is NULL and use && instead of first || in the
17326 guarding condition. For var_target_other options, handle const char *
17327 target variables similarly to const char * optimize node variables.
17329 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17331 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17332 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17333 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17334 Add autib1716 and pacib1716 initialisation.
17335 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17336 for autib1716 and pacib1716.
17337 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17338 aarch64_post_cfi_startproc): Define.
17339 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17340 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17341 aarch64_handle_pac_ret_protection): Set default sign key to A.
17342 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17343 aarch64_expand_prologue): Add check for b-key.
17344 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17345 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17346 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17347 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17348 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17349 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17350 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17351 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17352 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17353 pauth_hint_num_a with pauth_hint_num.
17354 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17355 pauth_hint_num_a with pauth_hint_num.
17356 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17357 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17358 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17359 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17360 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17361 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17362 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17363 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17364 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17365 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17366 UNSPEC_AUTIA1716 respectively.
17367 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17368 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17369 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17370 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17371 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17372 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17374 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17376 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17377 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17378 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17379 explicit clause on combined parallel into implicit shared clause.
17380 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17381 and firstprivate if the decl has one too from combined parallel to
17382 the worksharing construct.
17384 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17385 Michael Meissner <meissner@linux.ibm.com>
17387 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17389 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17391 * rtl.h (LABEL_REF_P): New #define.
17393 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17395 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17397 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17399 * internal-fn.c: Marked mask_load_direct as vectorizable.
17400 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17401 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17402 combined even if masks different with allow_slp_p param.
17403 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17404 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17405 dissolve SLP-only vectorizable groups when SLP has been discarded.
17406 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17407 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17409 (vect_build_slp_tree_1): Fixed comment typo.
17410 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17411 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17412 loads for SLP only.
17413 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17415 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17417 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17419 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17420 Remove obsolete use_thunk reference.
17421 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17422 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17423 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17424 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17425 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17426 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17427 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17428 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17429 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17431 2019-05-28 Nathan Sidwell <nathan@acm.org>
17433 * tree.h (IDENTIFIER_ANON_P): New.
17434 (anon_aggrname_format, anon_aggname_p): Don't declare.
17435 (make_anon_name): Declare.
17436 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17437 (hash_tree): Likewise.
17438 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17439 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17440 (anon_cnt, make_anon_name): New.
17442 2019-05-28 Martin Liska <mliska@suse.cz>
17445 * opts-global.c (decode_options): Print help for all
17446 help_option_arguments.
17447 * opts.c (print_help): Add new argument.
17448 (common_handle_option): Remember all values into
17449 help_option_arguments.
17450 * opts.h (print_help): Add new argument.
17452 2019-05-28 Martin Liska <mliska@suse.cz>
17455 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17456 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17457 (func_checker::compare_bb): Call compare_loops.
17459 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17461 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17462 on sections construct.
17463 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17465 (lower_omp_sections): Handle lastprivate conditional.
17466 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17467 lastprivate_conditional_map.
17468 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17470 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17471 critical, taskgroup and section regions when looking for a region
17472 with non-NULL lastprivate_conditional_map.
17474 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17476 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17477 (*ix86_gen_sub3): Ditto.
17478 (*ix86_gen_sub3_carry): Ditto.
17479 (*ix86_gen_one_cmpl2): Ditto.
17480 (*ix86_gen_andsp): Ditto.
17481 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17482 (gen_and2_insn): New static function.
17483 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17484 Use gen_add3_insn instead of ix86_gen_add3.
17485 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17486 instead of ix86_gen_add3.
17487 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17488 Use gen_sub3_insn instead of ix86_gen_sub3.
17489 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17490 instead of ix86_gen_add3.
17491 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17492 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17493 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17494 * config/i386/i386-options.c (ix86_option_override_internal):
17495 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17496 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17498 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17500 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17501 and DW_OP_GNU_const_index opcodes.
17503 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17505 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17507 2019-05-27 Richard Biener <rguenther@suse.de>
17509 PR tree-optimization/90637
17510 * tree-ssa-sink.c (statement_sink_location): Honor the
17511 computed sink location for single-uses.
17513 2019-05-27 Richard Biener <rguenther@suse.de>
17515 PR middle-end/90610
17516 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17519 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17521 * config/i386/i386.md (@sub<mode>3_carry): Rename
17522 from sub<mode>3_carry.
17523 (@leave_<mode>): New expander.
17524 (*leave): Rename from leave.
17525 (*leave_rex64): Rename from leave_rex64.
17526 (@monitorx_<mode>): Rename from monitorx_<mode>.
17527 (@clzero_<mode>): Rename from clzero_<mode>.
17528 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17529 from sse3_monitor_<mode>.
17530 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17531 (*ix86_gen_leave): Ditto.
17532 (*ix86_gen_monitor): Ditto.
17533 (*ix86_gen_monitorx): Ditto.
17534 (*ix86_gen_clzero): Ditto.
17535 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17536 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17537 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17538 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17539 Use gen_sse3_monitor instead of ix86_gen_monitor.
17540 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17541 instead of ix86_gen_monitorx.
17542 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17543 instead of ix86_gen_clzero.
17544 * config/i386/i386-options.c (ix86_option_override_internal):
17545 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17546 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17548 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17550 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17551 Rename from tls_global_dynamic_64_<mode>.
17552 (@tls_local_dynamic_base_64_<mode>): Rename from
17553 tls_local_dynamic_base_64_<mode>.
17554 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17555 Remove indirect function.
17556 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17557 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17558 instead of ix86_gen_tls_global_dynamic_64.
17559 Use gen_tls_local_dynamic_base_64 instead of
17560 ix86_gen_tls_local_dynamic_base_64.
17561 * config/i386/i386-options.c (ix86_option_override_internal):
17562 Do not initialize ix86_gen_tls_global_dynamic_64 and
17563 ix86_gen_tls_local_dynamic_base_64.
17565 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17567 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17568 Rename from pro_epilogue_adjust_stack_<mode>_add.
17569 (@pro_epilogue_adjust_stack_sub_<mode>)
17570 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17571 (@allocate_stack_worker_probe_<mode>):
17572 Rename from allocate_stack_worker_probe_<mode>.
17573 (allocate_stack): Use gen_allocate_stack_worker_probe.
17574 (probe_stack): Use gen_probe_stack_1.
17575 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17576 (@adjust_stack_and_probe_<mode>): Rename from
17577 adjust_stack_and_probe<mode>.
17578 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17579 (stack_protect_set): Use gen_stack_protect_set_1.
17580 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17581 (stack_protect_test): Use gen_stack_protect_test_1.
17582 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17583 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17584 Remove indirect function.
17585 (*ix86_gen_adjust_stack_and_probe): Ditto.
17586 (*ix86_gen_probe_stack_range): Ditto.
17587 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17588 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17589 (ix86_adjust_stack_and_probe_stack_clash): Use
17590 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17591 (ix86_adjust_stack_and_probe): Ditto.
17592 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17593 of ix86_gen_probe_stack_range.
17594 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17595 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17596 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17597 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17598 CODE_FOR_stack_protect_test_{si,di}.
17599 * config/i386/i386-options.c (ix86_option_override_internal):
17600 Do not initialize ix86_gen_allocate_stack_worker,
17601 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17603 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17605 * doc/invoke.texi (Link Options): Many editorial changes around
17608 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17610 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17611 pre-Solaris 11 referene and most Studio compiler details.
17613 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17616 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17617 DImode to SImode in floating-point registers on 64-bit target.
17618 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17619 register_operand in xmpyu patterns.
17621 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17623 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17624 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17625 OMP_CLAUSE__REDUCTEMP_.
17626 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17627 OMP_CLAUSE__CONDTEMP_.
17628 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17629 * tree-pretty-print.c (dump_omp_clause): Likewise.
17630 * tree-nested.c (convert_nonlocal_omp_clauses,
17631 convert_local_omp_clauses): Likewise.
17632 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17633 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17634 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17636 (gimplify_omp_for): Warn and disable conditional modifier from
17637 lastprivate on loop iterators.
17638 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17640 * omp-general.c (omp_extract_for_data): Initialize it.
17641 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17643 (delete_omp_context): Delete it.
17644 (lower_lastprivate_conditional_clauses): New function.
17645 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17646 handle lastprivate conditional clauses.
17647 (lower_reduction_clauses): Add CLIST argument, emit it into
17648 the critical section if any.
17649 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17650 lower_reduction_clauses callers.
17651 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17652 to lower_lastprivate_clauses.
17653 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17654 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17655 clist into a critical section if not emitted there already by
17656 lower_reduction_clauses.
17657 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17659 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17660 conditional variables.
17661 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17663 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17664 expand_omp_for_static_chunk): Handle lastprivate conditional.
17665 (expand_omp_for): Handle fd.lastprivate_conditional like
17668 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17670 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17671 kernel does not exit cleanly.
17672 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17674 2019-05-24 Jason Merrill <jason@redhat.com>
17677 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17679 2019-05-24 Richard Biener <rguenther@suse.de>
17682 * tree-loop-distribution.c (struct partition): Add location
17684 (partition_alloc): Initialize all fields.
17685 (generate_memset_builtin): Use the location recorded in the
17686 partition for the generated call.
17687 (generate_memcpy_builtin): Likewise.
17688 (classify_partition): Record the location of a single store
17689 as location for the partition.
17691 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17693 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17696 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17699 * common/config/aarch64/aarch64-common.c
17700 (aarch64_rewrite_selected_cpu): Change local temporary variable
17701 type from unsigned long to uint64_t.
17702 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17703 aarch64_get_extension_string_for_isa_flags): Change declaration to
17704 match new definition by replacing unsigned long with uint64_t.
17706 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17709 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17710 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17711 Handle stack_protect_test_<mode> codegen similarly to corresponding
17714 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17716 * config/i386/darwin.h: Reject -mfentry*.
17717 * doc/sourcebuild.texi: Document mfentry target support.
17719 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17721 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17722 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17723 false for PC-relative functions.
17724 (rs6000_output_function_prologue): Change called function name to
17725 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17726 name,1" for PC-relative functions.
17727 (rs6000_elf_declare_function_name): Change called function name to
17728 rs6000_global_entry_point_prologue_needed_p.
17730 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17733 * config/i386/i386.c (gen_rtx_cost):
17734 Use ix86_tune_cost instead of ix86_cost.
17736 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17737 Michael Meissner <meissner@linux.ibm.com>
17738 Segher Boessenkool <segher@kernel.crashing.org>
17740 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17742 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17743 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17744 (rs6000_fndecl_pcrel_p): Likewise.
17745 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17746 error if -mpcrel is requested without -mcpu=future.
17747 (rs6000_opt_masks): Add entry for pcrel.
17748 (rs6000_fndecl_pcrel_p): New function.
17749 (rs6000_pcrel_p): Likewise.
17750 * config/rs6000/rs6000.opt (mpcrel): New option.
17751 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17753 2019-05-23 Jan Hubicka <jh@suse.cz>
17754 Martin Liska <mliska@suse.cz>
17756 PR tree-optimization/90576
17757 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17759 (aliasing_component_refs_p): Fix three way size compare conditional;
17760 give up earlier in case we can not decide on equivalence.
17762 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17763 Michael Meissner <meissner@linux.ibm.com>
17764 Segher Boessenkool <segher@kernel.crashing.org>
17766 * config.gcc: Add future cpu.
17767 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17768 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17770 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17771 (RS6000_CPU): New instantiation for future cpu.
17772 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17774 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17775 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17776 * config/rs6000/rs6000-tables.opt: Regenerate.
17777 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17778 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17779 (rs6000_machine_from_flags): Handle future cpu.
17780 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17781 PROCESSOR_POWER9 for now.
17782 (rs6000_adjust_cost): Likewise.
17783 (rs6000_issue_rate): Likewise.
17784 (rs6000_register_move_cost): Likewise.
17785 (rs6000_opt_masks): Add entry for future.
17786 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17787 (MASK_FUTURE): New #define.
17788 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17789 * config/rs6000/rs6000.opt (mfuture): New target option.
17790 * doc/invoke.texi (mcpu): Add future cpu.
17792 2019-05-23 Martin Liska <mliska@suse.cz>
17795 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17796 operation points to a temporary (pointed via tree_to_wide_ref)
17797 that is out of scope after the &.
17799 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17802 * doc/extend.texi (Function Names): Add missing word.
17804 2019-05-23 Richard Biener <rguenther@suse.de>
17806 PR tree-optimization/88440
17807 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17809 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17811 (generate_memcpy_builtin): Likewise.
17812 (distribute_loop): Pass in whether to only distribute patterns.
17813 (prepare_perfect_loop_nest): Also allow size optimization.
17814 (pass_loop_distribution::execute): When optimizing a loop
17815 nest for size allow pattern replacement.
17817 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17820 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17823 2019-05-23 Martin Liska <mliska@suse.cz>
17826 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17827 expression similarly to gimplify_decl_expr.
17829 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17831 * cse.c (cse_dump_path): s/dump_file/f.
17833 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17836 * diagnostic-format-json.cc: Include "selftest.h".
17837 (json_from_expanded_location): Only add "file" key for non-NULL
17839 (json_from_location_range): Don't add "start" and "finish"
17840 children if they are UNKNOWN_LOCATION.
17841 (selftest::test_unknown_location): New selftest.
17842 (selftest::test_bad_endpoints): New selftest.
17843 (selftest::diagnostic_format_json_cc_tests): New function.
17844 * json.cc (json::object::get): New function.
17845 (selftest::test_object_get): New selftest.
17846 (selftest::json_cc_tests): Call it.
17847 * json.h (json::object::get): New decl.
17848 * selftest-run-tests.c (selftest::run_tests): Call
17849 selftest::diagnostic_format_json_cc_tests.
17850 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17853 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17854 Andrew Stubbs <amd@codesourcery.com>
17856 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17857 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17858 (kernel): Rename to...
17859 (main_kernel): ... this.
17860 (load_image): Load _init_array and _fini_array kernels.
17861 (run): Add argument for kernel to run.
17862 (main): Run init_array_kernel before main_kernel, and
17863 fini_array_kernel after.
17864 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17865 amdgpu_hsa_kernel attribute on functions.
17866 (gcn_disable_constructors): Delete.
17867 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17868 * config/gcn/crt0.c (size_t): Define.
17869 (_init_array, _fini_array): New.
17870 (__preinit_array_start, __preinit_array_end,
17871 __init_array_start, __init_array_end,
17872 __fini_array_start, __fini_array_end): Declare weak references.
17874 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17876 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17878 2019-05-22 Jason Merrill <jason@redhat.com>
17880 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17882 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17885 * config/i386/i386-options.c (ix86_init_machine_status): Set
17886 stack_frame_required to true.
17887 * config/i386/i386.c (ix86_get_frame_size): New function.
17888 (ix86_frame_pointer_required): Replace get_frame_size with
17889 ix86_get_frame_size.
17890 (ix86_compute_frame_layout): Likewise.
17891 (ix86_find_max_used_stack_alignment): Changed to void. Set
17892 stack_frame_required.
17893 (ix86_finalize_stack_frame_flags): Always call
17894 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17895 ix86_get_frame_size.
17896 * config/i386/i386.h (machine_function): Add stack_frame_required.
17898 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17900 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17902 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17904 * common/config/aarch64/aarch64-common.c
17905 (struct aarch64_option_extension, struct processor_name_to_arch,
17906 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17907 aarch64_contains_opt,
17908 aarch64_get_extension_string_for_isa_flags): Change type of
17909 variables storing flags to uint64_t.
17910 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17911 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17912 * config/aarch64/aarch64.c (struct processor,
17913 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17914 aarch64_validate_march, aarch64_override_options,
17915 aarch64_option_print, aarch64_handle_attr_isa_flags,
17916 aarch64_declare_function_name, aarch64_start_file): Make flag
17917 variables uint64_t.
17918 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17919 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17920 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17921 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17922 * config/aarch64/driver-aarch64.c
17923 (struct aarch64_arch_extension, struct aarch64_core_data,
17924 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17925 flag variables uint64_t.
17926 * doc/invoke.texi: Add documentation for new arguments.
17928 2019-05-22 Richard Biener <rguenther@suse.de>
17930 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17932 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17934 2019-05-22 Martin Liska <mliska@suse.cz>
17937 * doc/extend.texi: Document the change.
17939 2019-05-22 Richard Biener <rguenther@suse.de>
17941 PR tree-optimization/90450
17942 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17943 (mem_ref_hasher::equal): Check it.
17944 (mem_ref_alloc): Initialize it.
17945 (gather_mem_refs_stmt): Set it.
17947 2019-05-22 Richard Biener <rguenther@suse.de>
17949 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17951 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17954 2019-05-22 Alan Modra <amodra@gmail.com>
17956 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17957 (ASM_CPU_SPEC): Conditionally add -many.
17958 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17959 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17960 (rs6000_file_start): ..extracted from here, and modified to
17962 (rs6000_output_function_prologue): Emit .machine as necessary.
17964 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17966 PR middle-end/90553
17967 * ira-lives.c (process_bb_node_lives): Consider defs
17968 for a call insn to be die before the call, not after.
17970 * function.c (assign_parm_setup_block): Raise alignment of
17971 stacked parameter only for STRICT_ALIGNMENT targets.
17973 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17975 * config/rs6000/constraints.md (define_register_constraint "wz"):
17977 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17978 RS6000_CONSTRAINT_wz.
17979 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17980 (rs6000_init_hard_regno_mode_ok): Adjust.
17981 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17982 * doc/md.texi (Machine Constraints): Adjust.
17984 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17986 * config/rs6000/constraints.md (define_register_constraint "wl"):
17988 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17989 RS6000_CONSTRAINT_wl.
17990 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17991 (rs6000_init_hard_regno_mode_ok): Adjust.
17992 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17993 * doc/md.texi (Machine Constraints): Adjust.
17995 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17997 * config/rs6000/constraints.md (define_register_constraint "wm"):
17999 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18000 RS6000_CONSTRAINT_wm.
18001 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18002 (rs6000_init_hard_regno_mode_ok): Adjust.
18003 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
18004 * doc/md.texi (Machine Constraints): Adjust.
18006 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18008 * config/rs6000/constraints.md (define_register_constraint "wk"):
18010 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18011 RS6000_CONSTRAINT_wk.
18012 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18013 (rs6000_init_hard_regno_mode_ok): Adjust.
18014 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
18015 * doc/md.texi (Machine Constraints): Adjust.
18017 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18019 * config/rs6000/constraints.md (define_register_constraint "wj"):
18021 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18022 RS6000_CONSTRAINT_wj.
18023 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18024 (rs6000_init_hard_regno_mode_ok): Adjust.
18025 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
18027 * config/rs6000/vsx.md: Ditto.
18028 * doc/md.texi (Machine Constraints): Adjust.
18030 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18032 * config/rs6000/constraints.md (define_register_constraint "wh"):
18034 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18035 RS6000_CONSTRAINT_wh.
18036 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18037 (rs6000_init_hard_regno_mode_ok): Adjust.
18038 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
18039 * doc/md.texi (Machine Constraints): Adjust.
18041 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18044 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
18045 Avoid calling gen_lowpart with CONST operand.
18047 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
18049 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
18050 field template_last_to_copy.
18051 (ssa_create_duplicates): Set it, and use it. Attempt to
18052 preserve more debug stmts.
18054 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18056 * config/i386/sse.md (VF1_AVX2): New mode iterator.
18057 (signbit<mode>2): New expander
18059 2019-05-21 James Clarke <jrtc27@jrtc27.com>
18062 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
18063 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
18065 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18067 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
18068 %ebx and %ecx bafore calling cpuid with leaf 1 or
18069 non-constant leaf argument.
18071 2019-05-21 Alan Modra <amodra@gmail.com>
18074 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
18075 power9 direct move cost.
18077 2019-05-21 Richard Biener <rguenther@suse.de>
18079 PR middle-end/90510
18080 * fold-const.c (fold_read_from_vector): New function.
18081 * fold-const.h (fold_read_from_vector): Declare.
18082 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
18083 single-element insert permutations. Canonicalize selector
18084 further and fix issue with last commit.
18086 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18088 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
18089 parameter with default value false to declaration.
18090 (split_edges_for_insertion): New inline function. Wrapper for
18091 split_critical_edges with for_edge_insertion_p = true.
18092 * tree-cfg.c (split_critical_edges): Don't split non-critical
18093 edges if for_edge_insertion_p is false. Fix whitespace.
18094 * tree-ssa-pre.c (pass_pre::execute): Call
18095 split_edges_for_insertion instead of split_critical_edges.
18096 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
18097 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
18098 (pass_data_sink_code): Update function name in the comment.
18100 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18102 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
18103 around is_value_included_in that knows how to handle BIT_AND_EXPR.
18104 (is_pred_expr_subset_of): Use the new function. Handle more cases where
18105 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
18108 2019-05-21 Martin Liska <mliska@suse.cz>
18110 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
18112 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
18113 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
18115 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18117 (rs6000_function_arg): Likewise.
18118 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
18119 (rs6000_expand_ternop_builtin): Use interval syntax.
18120 (get_element_number): Likewise.
18121 (altivec_expand_builtin): Likewise.
18122 (rs6000_get_function_versions_dispatcher): Quote target_clones.
18124 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18128 * function.h (struct function): Add calls_eh_return member.
18129 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
18130 gimplifying __builtin_eh_return call.
18131 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
18133 (expand_call_inline): Or in src_cfun->calls_eh_return into
18134 dst_cfun->calls_eh_return.
18135 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
18136 cfun->calls_eh_return.
18137 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
18138 * lto-streamer-out.c (output_struct_function_base): Write
18141 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
18143 PR rtl-optimization/43147
18144 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
18145 IX86_BUILTIN_SHUFPD.
18147 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18149 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
18150 (refs_may_alias_p_1): ... here; update stats.
18151 (refs_may_alias_p): Do not update stats here.
18153 2019-05-20 Richard Biener <rguenther@suse.de>
18155 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
18156 doesn't produce pointers.
18157 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
18158 the first operand points to.
18160 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18162 * tree-ssa-alias.c (compare_sizes): New function.
18163 (sompare_type_sizes): New function
18164 (aliasing_component_refs_p): Use it.
18165 (indirect_ref_may_alias_decl_p): Likewise.
18167 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18169 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
18171 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18173 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
18174 (LIBLSAN_EARLY_SPEC): Likewise.
18175 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
18177 2019-05-20 Martin Liska <mliska@suse.cz>
18179 * config/i386/i386.c (ix86_libc_has_fast_function):
18180 Add ATTRIBUTE_UNUSED for the argument.
18182 2019-05-20 Richard Biener <rguenther@suse.de>
18184 * gimple-match-head.c: Include vec-perm-indices.h.
18185 * generic-match-head.c: Likewise.
18186 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
18188 * fold-const.c (fold_vec_perm): Export.
18189 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
18190 (match.pd): ...here.
18192 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18194 * cfgloop.h (struct loop): Add simdlen member.
18195 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
18196 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
18197 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
18198 as new argument to autovectorize_vector_sizes target hook. If
18199 loop->simdlen, pick up vector size where the vectorization factor
18200 is equal to loop->simd, and if there is none, fall back to the first
18202 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
18204 * omp-low.c (omp_clause_aligned_alignment): Likewise.
18205 * omp-general.c (omp_max_vf): Likewise.
18206 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
18207 * tree-vect-slp.c (vect_slp_bb): Likewise.
18208 * target.def (autovectorize_vector_sizes): Add ALL argument and
18210 * doc/tm.texi: Adjust documentation.
18211 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
18212 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
18213 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
18215 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
18216 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
18217 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
18218 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
18219 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
18220 preferred vector size is not 512-bit or 256-bit, just put those
18221 unpreferred ones last.
18223 2019-05-20 Martin Liska <mliska@suse.cz>
18225 * targhooks.c (default_libc_has_fast_function): New function.
18226 * targhooks.h (default_libc_has_fast_function): Likewise.
18228 2019-05-20 Martin Liska <mliska@suse.cz>
18230 PR middle-end/90263
18231 * builtins.c (expand_builtin_memory_copy_args): When having a
18232 target with fast mempcpy implementation do now use memcpy.
18233 * config/i386/i386.c (ix86_libc_has_fast_function): New.
18234 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
18235 * doc/tm.texi: Likewise.
18236 * doc/tm.texi.in: Likewise.
18238 * expr.c (emit_block_move_hints): Add 2 new arguments.
18239 * expr.h (emit_block_move_hints): Bail out when libcall
18240 to memcpy would be used.
18242 2019-05-20 Martin Liska <mliska@suse.cz>
18244 * profile-count.c: Add vertical spacing in order
18245 to separate functions.
18246 * profile-count.h: Likewise.
18248 2019-05-20 Martin Liska <mliska@suse.cz>
18250 * profile-count.h: Do not use full qualified
18252 * profile-count.c (profile_count::to_frequency): Likewise.
18254 2019-05-20 Martin Liska <mliska@suse.cz>
18256 * profile-count.h (enum profile_quality): Use capital letters
18257 for enum value names. Use the adjusted names.
18258 * profile-count.c: Use the adjusted names.
18260 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18262 * config/rs6000/constraints.md (define_register_constraint "wH"):
18264 (define_register_constraint "wI"): Delete.
18265 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18266 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
18267 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18268 (rs6000_init_hard_regno_mode_ok): Adjust.
18269 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
18270 resp. "d", or with "wa" as appropriate, all with "p8v".
18271 * config/rs6000/vsx.md: Ditto.
18272 * doc/md.texi (Machine Constraints): Adjust.
18274 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18276 * config/rs6000/constraints.md (define_register_constraint "wy"):
18278 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18279 RS6000_CONSTRAINT_wy.
18280 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18281 (rs6000_init_hard_regno_mode_ok): Adjust.
18282 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
18283 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
18284 (define_mode_attr Fisa): New.
18285 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
18286 * doc/md.texi (Machine Constraints): Adjust.
18288 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18290 * config/rs6000/constraints.md (define_register_constraint "wu"):
18292 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18293 RS6000_CONSTRAINT_wu.
18294 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18295 (rs6000_init_hard_regno_mode_ok): Adjust.
18296 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
18298 (define_mode_attr Fa): Delete.
18299 * config/rs6000/vsx.md: Ditto.
18300 * doc/md.texi (Machine Constraints): Adjust.
18302 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18304 * config/rs6000/constraints.md (define_register_constraint "wJ"):
18306 (define_register_constraint "wK"): Delete.
18307 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18308 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
18309 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18310 (rs6000_init_hard_regno_mode_ok): Adjust.
18311 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
18312 Replace "wK" constraint by "wH" with "p9v".
18313 * config/rs6000/vsx.md: Ditto.
18314 * doc/md.texi (Machine Constraints): Adjust.
18316 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18318 * config/rs6000/constraints.md (define_register_constraint "wb"):
18320 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18321 RS6000_CONSTRAINT_wb.
18322 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18323 (rs6000_init_hard_regno_mode_ok): Adjust.
18324 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18325 * config/rs6000/vsx.md: Ditto.
18326 * doc/md.texi (Machine Constraints): Adjust.
18328 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18330 * config/rs6000/constraints.md (define_register_constraint "wo"):
18332 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18333 RS6000_CONSTRAINT_wo.
18334 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18335 (rs6000_init_hard_regno_mode_ok): Adjust.
18336 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18337 * config/rs6000/altivec.md: Ditto.
18338 * doc/md.texi (Machine Constraints): Adjust.
18340 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18342 * config/darwin-c.c (darwin_register_objc_includes): Do not
18343 prepend the sysroot when building gnu-runtime header search
18346 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18348 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18349 instead of direct output of the asm.
18351 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18353 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18354 argument to be type bool (was int before).
18355 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18356 at first use. Use type bool for some variables. Fix a theoretical
18357 eh_return bug for svr4.
18359 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18361 * config/rs6000/rs6000.md (isa): New attribute.
18362 (enabled): New attribute.
18364 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18366 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18367 assemble_start_function and assemble_end_function.
18369 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18371 PR middle-end/89433
18372 * omp-general.c (oacc_verify_routine_clauses): Change formal
18373 parameters. Add checking if already marked with an OpenACC
18374 'routine' directive. Adjust all users.
18376 PR middle-end/89433
18377 * omp-general.c (oacc_build_routine_dims): Move some of its
18379 (oacc_verify_routine_clauses): ... this new function.
18380 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18382 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18384 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18385 formating of picbase labels to match other ports.
18387 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18389 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18390 in the generated code.
18392 2019-05-16 Martin Sebor <msebor@redhat.com>
18394 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18395 identifiers, keywords, operators, and types in diagnostics. Correct
18396 quoting, spelling, and sentence capitalization issues.
18397 (expand_builtin_atomic_is_lock_free): Same.
18398 (fold_builtin_next_arg): Same.
18399 * cfgexpand.c (expand_one_var): Same.
18400 (tree_conflicts_with_clobbers_p): Same.
18401 (expand_asm_stmt): Same.
18402 (verify_loop_structure): Same.
18403 * cgraphunit.c (process_function_and_variable_attributes): Same.
18404 * collect-utils.c (collect_execute): Same.
18405 * collect2.c (maybe_run_lto_and_relink): Same.
18406 (is_lto_object_file): Same.
18407 (scan_prog_file): Same.
18408 * convert.c (convert_to_real_1): Same.
18409 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18410 * except.c (verify_eh_tree): Same.
18411 * gcc.c (execute): Same.
18412 (eval_spec_function): Same.
18413 (run_attempt): Same.
18414 (driver::set_up_specs): Same.
18415 (compare_debug_auxbase_opt_spec_function): Same.
18416 * gcov-tool.c (unlink_gcda_file): Same.
18418 (do_rewrite): Same.
18419 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18420 * gimplify.c (gimplify_asm_expr): Same.
18421 (gimplify_adjust_omp_clauses): Same.
18422 * hsa-gen.c (gen_hsa_addr_insns): Same.
18423 (gen_hsa_insns_for_load): Same.
18424 (gen_hsa_cmp_insn_from_gimple): Same.
18425 (gen_hsa_insns_for_operation_assignment): Same.
18426 (gen_get_level): Same.
18427 (gen_hsa_alloca): Same.
18428 (omp_simple_builtin::generate): Same.
18429 (gen_hsa_atomic_for_builtin): Same.
18430 (gen_hsa_insns_for_call): Same.
18431 * input.c (dump_location_info): Same.
18432 * ipa-devirt.c (compare_virtual_tables): Same.
18433 * ira.c (ira_setup_eliminable_regset): Same.
18434 * lra-assigns.c (lra_assign): Same.
18435 * lra-constraints.c (lra_constraints): Same.
18436 * lto-streamer-in.c (lto_input_mode_table): Same.
18437 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18438 (merge_and_complain): Same.
18439 (compile_offload_image): Same.
18440 (compile_images_for_offload_targets): Same.
18441 (debug_objcopy): Same.
18444 * opts.c (print_specific_help): Same.
18445 (parse_no_sanitize_attribute): Same.
18446 (print_help): Same.
18447 (handle_param): Same.
18448 * plugin.c (add_new_plugin): Same.
18449 (parse_plugin_arg_opt): Same.
18450 (try_init_one_plugin): Same.
18451 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18452 operators, and types in diagnostics. Correct quoting and spelling
18454 * read-rtl-function.c (parse_edge_flag_token): Same.
18455 (function_reader::parse_enum_value): Same.
18456 * reg-stack.c (check_asm_stack_operands): Same.
18457 * regcprop.c (validate_value_data): Same.
18458 * sched-rgn.c (make_pass_sched_fusion): Same.
18459 * stmt.c (check_unique_operand_names): Same.
18460 * targhooks.c (default_target_option_pragma_parse): Same.
18461 * tlink.c (recompile_files): Same.
18462 * toplev.c (process_options): Same.
18463 (do_compile): Same.
18464 * trans-mem.c (diagnose_tm_1): Same.
18465 (ipa_tm_scan_irr_block): Same.
18466 (ipa_tm_diagnose_transaction): Same.
18467 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18468 format a tree code name in a diagnostic.
18469 (verify_types_in_gimple_min_lval): Same.
18470 (verify_types_in_gimple_reference): Same.
18471 (verify_gimple_call): Same.
18472 (verify_gimple_assign_unary): Same.
18473 (verify_gimple_assign_binary): Same.
18474 (verify_gimple_assign_ternary): Same.
18475 (verify_gimple_assign_single): Same.
18476 (verify_gimple_switch): Same.
18477 (verify_gimple_label): Same.
18478 (verify_gimple_phi): Same.
18479 (verify_gimple_in_seq): Same.
18480 (verify_eh_throw_stmt_node): Same.
18481 (collect_subblocks): Same.
18482 (gimple_verify_flow_info): Same.
18483 (do_warn_unused_result): Same.
18484 * tree-inline.c (expand_call_inline): Same.
18485 * tree-into-ssa.c (update_ssa): Same.
18486 * tree.c (tree_int_cst_elt_check_failed): Same.
18487 (tree_vec_elt_check_failed): Same.
18488 (omp_clause_operand_check_failed): Same.
18489 (verify_type_variant): Same.
18490 (verify_type): Same.
18491 * value-prof.c (verify_histograms): Same.
18492 * varasm.c (assemble_start_function): Same.
18494 2019-05-16 Martin Sebor <msebor@redhat.com>
18496 * config/i386/i386-expand.c (get_element_number): Quote keywords
18497 and other internal names in diagnostics. Adjust other diagnostic
18498 formatting issues noted by -Wformat-diag.
18499 * config/i386/i386-features.c
18500 (ix86_mangle_function_version_assembler_name): Same.
18501 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18502 * config/i386/i386.c (ix86_function_type_abi): Same.
18503 (ix86_function_ms_hook_prologue): Same.
18504 (classify_argument): Same.
18505 (ix86_expand_prologue): Same.
18506 (ix86_md_asm_adjust): Same.
18507 (ix86_memmodel_check): Same.
18509 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18511 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18512 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18515 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18518 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18519 intrinsics without SSE/SSE2/SSSE3.
18520 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18522 (*mmx_uavgv8qi3): Likewise.
18524 2019-05-17 Richard Biener <rguenther@suse.de>
18526 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18527 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18529 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18531 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18532 vec_sldw insn pattern.
18534 2019-05-17 Richard Biener <rguenther@suse.de>
18536 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18538 2019-05-17 Martin Liska <mliska@suse.cz>
18541 * toplev.c (output_stack_usage): With LTO and sanitizer it
18542 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18543 has no file location.
18545 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18548 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18549 sz0 is equal to sz1, instead return false in that case.
18551 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18552 has non-constant expression, force sctx.lane and use two
18553 argument IFN_GOMP_SIMD_LANE instead of single argument.
18554 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18555 two argument IFN_GOMP_SIMD_LANE without lhs.
18556 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18558 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18560 (LOOP_REQUIRES_VERSIONING): Or in
18561 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18562 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18564 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18565 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18566 from simd if clause if needed.
18568 2019-05-16 Richard Biener <rguenther@suse.de>
18570 * tree-affine.c (expr_to_aff_combination): New function split
18572 (tree_to_aff_combination): ... here.
18573 (aff_combination_expand): Avoid building a GENERIC tree.
18575 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18577 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18578 assemble_start_function and assemble_end_function calls.
18579 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18580 assemble_start_function and assemble_end_function.
18581 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18582 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18583 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18584 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18585 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18586 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18587 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18588 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18589 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18590 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18591 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18592 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18594 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18595 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18596 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18597 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18598 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18599 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18600 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18601 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18602 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18603 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18604 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18605 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18606 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18607 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18609 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18610 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18611 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18613 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18615 * tree-ssa-alias.c (alias_stats): Add
18616 aliasing_component_refs_p_may_alias and
18617 aliasing_component_refs_p_no_alias.
18618 (dump_alias_stats): Print aliasing_component_refs_p stats.
18619 (aliasing_component_refs_p): Update stats.
18621 2019-05-16 Martin Liska <mliska@suse.cz>
18624 * multiple_target.c (expand_target_clones): Do not allow
18625 target_clones being used with a symbol that is an alias.
18627 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18629 PR tree-optimization/90394
18630 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18631 positives rather than ICE for cases where (code2 == NE_EXPR
18632 && code1 == BIT_AND_EXPR).
18634 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18637 * tree-core.h (struct tree_decl_common): Document
18638 decl_nonshareable_flag for PARM_DECLs.
18639 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18640 * calls.c (expand_call): Don't try tail call if caller
18641 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18642 passed on the stack and callee needs to pass any arguments on the
18644 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18645 else if instead of series of mutually exclusive ifs. Handle
18646 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18647 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18649 * lto-streamer.h (LTO_major_version): Bump to 9.
18651 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18653 PR tree-optimization/90106
18654 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18655 new parameter as new internal function call, also move it to new
18657 (use_internal_fn): Pass internal function call to
18658 shrink_wrap_one_built_in_call_with_conds.
18660 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18662 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18664 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18665 safelen_int and set loop->dont_vectorize.
18667 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18670 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18672 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18674 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18675 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18676 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18679 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18682 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18683 define_insn_and_split to support SSE emulation.
18684 (*vec_extractv2sf_0): Likewise.
18685 (*vec_extractv2sf_1): Likewise.
18686 (*vec_extractv2si_0): Likewise.
18687 (*vec_extractv2si_1): Likewise.
18688 (*vec_extractv2si_zext_mem): Likewise.
18689 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18690 (vec_extractv2sf_1 splitter): Likewise.
18691 (vec_extractv2sfsf): Likewise.
18692 (vec_setv2si): Likewise.
18693 (vec_extractv2si_1 splitter): Likewise.
18694 (vec_extractv2sisi): Likewise.
18695 (vec_setv4hi): Likewise.
18696 (vec_extractv4hihi): Likewise.
18697 (vec_setv8qi): Likewise.
18698 (vec_extractv8qiqi): Likewise.
18699 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18700 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18701 (vec_extractv2sisi): Likewise.
18702 (vec_extractv4hihi): Likewise.
18703 (vec_extractv8qiqi): Likewise.
18704 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18705 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18706 (vec_initv2sisi): Likewise.
18707 (vec_initv4hihi): Likewise.
18708 (vec_initv8qiqi): Likewise.
18709 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18710 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18711 (vec_setv4hi): Likewise.
18712 (vec_setv8qi): Likewise.
18714 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18717 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18718 TARGET_MMX_WITH_SSE.
18719 (MMXMODE:*mov<mode>_internal): Likewise.
18720 (MMXMODE:movmisalign<mode>): Likewise.
18722 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18725 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18726 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18727 (sse2_cvtpd2pi): Ditto.
18728 (sse2_cvttpd2pi): Ditto.
18729 (*vec_concatv2sf_sse4_1): Ditto.
18730 (*vec_concatv2sf_sse): Ditto.
18731 (*vec_concatv2si_sse4_1): Ditto.
18732 (*vec_concatv2si): Ditto.
18733 (*vec_concatv4si_0): Ditto.
18734 (*vec_concatv2di_0): Ditto.
18736 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18739 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18741 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18744 * config/i386/sse.md (ssse3_palignrdi): Changed to
18745 define_insn_and_split to support SSE emulation.
18747 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18750 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18752 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18755 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18756 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18759 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18762 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18763 or TARGET_MMX_WITH_SSE.
18764 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18766 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18769 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18771 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18774 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18775 Changed to define_insn_and_split to support SSE emulation.
18777 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18780 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18781 Changed to define_insn_and_split to support SSE emulation.
18783 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18786 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18787 (*mmx_<emms>): This.
18788 (mmx_<emms>): New expander.
18790 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18793 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18795 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18797 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18800 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18802 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18805 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18807 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18810 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18811 TARGET_MMX_WITH_SSE.
18812 (*mmx_uavgv4hi3): Add SSE emulation.
18814 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18817 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18818 and TARGET_MMX_WITH_SSE.
18819 (*mmx_uavgv8qi3): Add SSE emulation.
18821 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18824 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18825 maskmovdqu for __MMX_WITH_SSE__.
18827 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18830 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18831 TARGET_MMX and TARGET_MMX_WITH_SSE.
18832 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18834 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18837 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18838 define_insn_and_split to support SSE emulation.
18840 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18843 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18844 and TARGET_MMX_WITH_SSE.
18845 (mmx_<code>v8qi3): Likewise.
18846 (smaxmin:<code>v4hi3): New.
18847 (umaxmin:<code>v8qi3): Likewise.
18848 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18849 (umaxmin:*mmx_<code>v8qi3): Likewise.
18851 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18854 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18855 TARGET_MMX_WITH_SSE.
18856 (*mmx_pinsrw): Add SSE emulation.
18858 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18861 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18863 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18866 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18867 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18870 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18873 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18874 (sse_cvttps2pi): Likewise.
18876 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18879 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18880 TARGET_MMX_WITH_SSE.
18881 (mmx_pshufw_1): Add SSE emulation.
18882 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18883 TARGET_MMX_WITH_SSE to support SSE emulation.
18885 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18888 * config/i386/constraints.md (Yw): New constraint.
18889 * config/i386/mmx.md (*vec_dupv2si): Changed to
18890 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18891 support SSE emulation.
18893 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18896 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18897 TARGET_MMX_WITH_SSE.
18898 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18900 (mmx_gt<mode>3): Likewise.
18902 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18905 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18906 TARGET_MMX_WITH_SSE. Add SSE support.
18908 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18911 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18912 TARGET_MMX_WITH_SSE.
18913 (any_logic:<code><mode>3): New.
18914 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18917 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18920 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18921 TARGET_MMX_WITH_SSE. Add SSE emulation.
18922 (mmx_<shift_insn><mode>3): Likewise.
18923 (ashr<mode>3): New.
18924 (<shift_insn><mode>3): Likewise.
18926 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18929 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18930 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18932 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18935 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18936 TARGET_MMX_WITH_SSE.
18937 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18940 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18943 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18944 TARGET_MMX_WITH_SSE.
18946 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18949 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18952 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18953 (plusminus:mmx_<plusminus_insn><mode>3): Check
18954 TARGET_MMX_WITH_SSE.
18955 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18956 (<plusminus_insn><mode>3): New.
18957 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18958 (*mmx_<plusminus_insn><mode>3): Likewise.
18960 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18963 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18964 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18966 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18967 define_insn_and_split to support SSE emulation.
18968 (mmx_punpcklbw): Likewise.
18969 (mmx_punpckhwd): Likewise.
18970 (mmx_punpcklwd): Likewise.
18971 (mmx_punpckhdq): Likewise.
18972 (mmx_punpckldq): Likewise.
18974 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18975 Uros Bizjak <ubizjak@gmail.com>
18978 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18980 (ix86_split_mmx_pack): Likewise.
18981 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18983 (ix86_split_mmx_pack): Likewise.
18984 * config/i386/i386.md (mmx_isa): New.
18985 (enabled): Also check mmx_isa.
18986 * config/i386/mmx.md (any_s_truncate): New code iterator.
18987 (s_trunsuffix): New code attr.
18988 (mmx_packsswb): Removed.
18989 (mmx_packssdw): Likewise.
18990 (mmx_packuswb): Likewise.
18991 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18992 MMX packsswb/packuswb with SSE2.
18993 (mmx_packssdw): Likewise.
18994 * config/i386/predicates.md (register_mmxmem_operand): New.
18996 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18999 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19000 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
19001 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
19002 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
19003 (ix86_vector_mode_supported_p): Likewise.
19004 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
19006 2019-05-15 Martin Liska <mliska@suse.cz>
19008 PR middle-end/90478
19009 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19010 Check for overflow.
19012 2019-05-15 Richard Biener <rguenther@suse.de>
19014 * tree-into-ssa.c (pass_build_ssa::execute): Run
19015 update_address_taken before going into SSA.
19017 2019-05-15 Richard Biener <rguenther@suse.de>
19019 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
19020 as __BIT_FIELD_REF with type with -gimple.
19022 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
19024 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
19025 semantically equivalent branches (left over after prior refactorings).
19027 2019-05-15 Richard Biener <rguenther@suse.de>
19029 PR tree-optimization/88828
19030 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
19033 2019-05-14 Richard Biener <rguenther@suse.de>
19035 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
19036 as __VIEW_CONVERT with -gimple.
19038 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19041 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
19044 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19046 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
19047 define_split to become a define_insn_and_split.
19049 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19051 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
19053 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
19054 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
19055 (sibcall_epilogue): Adjust.
19056 (epilogue): Adjust.
19058 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19060 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
19061 to unsupported ones.
19062 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
19063 * config.host: Likewise.
19064 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
19065 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
19066 __svr4__]: Remove "brand" fallback.
19067 [!KSTAT_DATA_STRING]: Remove.
19068 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
19070 (comdat_group): Likewise.
19071 (set_have_as_tls): Likewise.
19072 (gcc_cv_target_dl_iterate_phdr): Likewise.
19073 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
19074 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
19075 * configure: Regenerate.
19076 * doc/install.texi: Simplify Solaris target triplets.
19077 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
19078 (Specific, *-*-solaris2*): Document Solaris 10 removal.
19079 Remove Solaris 10 references.
19080 Remove obsolete Solaris bug reference.
19081 (Specific, sparc-sun-solaris2.10): Remove.
19083 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
19085 * config/i386/i386.md (any_div): New code iterator.
19086 (paired_mod): New code attribute.
19087 (sgnprefix): Handle DIV and UDIV RTXes.
19089 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
19090 and udivmod<mode>4 patterns using any_div code iterator.
19091 (divmod splitters): Macroize splitters using any_div code iterator.
19092 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
19093 (*udivmodsi4_pow2_zext_2): Ditto.
19094 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
19095 and *udivmod<mode>4_noext patterns using any_div code iterator.
19096 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
19097 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
19098 patterns using any_div code iterator.
19099 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
19100 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
19101 patterns using any_div code iterator.
19102 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
19103 udivmodhiqi3 patterns using any_extend code iterator.
19105 2019-05-14 Richard Biener <rguenther@suse.de>
19106 H.J. Lu <hongjiu.lu@intel.com>
19108 PR tree-optimization/88828
19109 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
19110 permuting in a single non-constant element not extracted
19113 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
19115 * internal-fn.def (SIGNBIT): New.
19116 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
19118 (signbitv4sf2): Likewise.
19120 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
19123 * config/mips/mips.c (mips_split_move): Skip forward SRC into
19124 next insn when the SRC reg is dead.
19126 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
19128 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
19129 (alloc_cand_and_find_basis): Ditto.
19130 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
19131 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
19132 (create_add_imm_cand, slsr_process_cast): Ditto.
19133 (slsr_process_copy, replace_mult_candidate): Ditto.
19134 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
19135 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
19136 (pass_strength_reduction::execute): Init the first NULL element.
19138 2019-05-13 Nathan Sidwell <nathan@acm.org>
19140 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
19141 (run_attempt): Reformat line break.
19143 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
19146 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
19147 data registers in sibcall epilogues.
19148 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19150 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
19153 * configure.ac (--enable-frame-pointer):
19154 Disable by default for cygwin and mingw.
19155 * configure: Regenerate.
19157 2019-05-13 Nathan Sidwell <nathan@acm.org>
19159 * dwarf2out.c (breakout_comdat_types): Move comment to correct
19161 (const_ok_for_output_1): Balance parens around #if/#else/#endif
19162 (gen_member_die): Move abstract origin check earlier. Only VARs
19163 can be static_inline_p. Simplify splicing control flow.
19165 2019-05-13 Richard Biener <rguenther@suse.de>
19167 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
19169 (vect_build_slp_tree_1): Likewise.
19171 2019-05-13 Richard Biener <rguenther@suse.de>
19173 PR tree-optimization/90402
19174 * tree-if-conv.c (tree_if_conversion): Value number only
19175 the loop body by making the latch an exit of the region
19177 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
19179 (do_rpo_vn): Deal with multiple edges into the entry block
19180 that are not backedges inside the region by skipping PHIs
19181 of the entry block.
19183 2019-05-13 Richard Biener <rguenther@suse.de>
19185 PR tree-optimization/90316
19186 * tree-ssa-pre.c (insert_aux): Fold into ...
19187 (insert): ... this function. Use a RPO walk to reduce the
19188 number of required iterations.
19190 2019-05-13 Martin Liska <mliska@suse.cz>
19192 PR tree-optimization/90416
19193 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
19194 string instead of passing the second part as va_arg argument.
19196 2019-05-13 Martin Liska <mliska@suse.cz>
19198 PR gcov-profile/90380
19199 * gcov.c (handle_cycle): Do not support zero cycle count,
19200 it should not be possible.
19201 (path_contains_zero_cycle_arc): New function.
19202 (circuit): Ignore zero cycle arc counts.
19204 2019-05-13 Martin Liska <mliska@suse.cz>
19206 PR gcov-profile/90380
19207 * gcov.c (enum loop_type): Remove the enum and
19209 (handle_cycle): Assert that we should not reach
19211 (circuit): Use loop_found instead of a tri-state loop_type.
19212 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
19215 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19218 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
19219 (ix86_output_indirect_branch_via_reg): Use output mechanism
19220 accounting for __USER_LABEL_PREFIX__.
19221 (ix86_output_indirect_branch_via_push): Likewise.
19222 (ix86_output_function_return): Likewise.
19223 (ix86_output_indirect_function_return): Likewise.
19225 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
19227 * doc/md.texi: Document use of code attributes in rtx patterns.
19228 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
19229 * read-rtl.c (find_code): Split out search loops into...
19230 (maybe_find_code): ...this new function.
19231 (check_code_iterator): Make the error message more informative.
19232 (check_code_attribute): New function.
19233 (rtx_reader::rtx_alloc_for_name): Likewise.
19234 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
19235 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
19236 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
19237 <max_opp> directly as an rtx code instead of via a match_operator.
19238 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
19239 (<su>abd<mode>_3): Update accordingly.
19241 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19243 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
19244 is given, print the state of the EH "save world" computation for
19247 2019-05-11 Jakub Jelinek <jakub@redhat.com>
19250 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
19251 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19253 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
19255 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
19256 Use pinsrd for TARGET_SSE4_1.
19257 * config/i386/sse.md (movdi_to_sse): Ditto.
19259 2019-05-10 Richard Biener <rguenther@suse.de>
19261 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
19262 (do_rpo_vn): Initialize next_value_id.
19264 2019-05-10 Martin Liska <mliska@suse.cz>
19266 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19269 2019-05-10 Jakub Jelinek <jakub@redhat.com>
19271 PR tree-optimization/90385
19272 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
19273 arguments of the exit phis.
19276 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
19277 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
19279 (copy_tree_body_r): Likewise.
19280 (copy_fn): Set id.do_not_fold to true.
19282 2019-05-10 Martin Liska <mliska@suse.cz>
19284 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
19285 Reapply changes from r269790.
19287 2019-05-10 Martin Liska <mliska@suse.cz>
19289 PR middle-end/90340
19290 * doc/invoke.texi: New params.
19291 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
19292 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
19293 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19295 * tree-switch-conversion.h (struct jump_table_cluster):
19298 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
19300 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
19302 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
19304 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
19306 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
19308 PR rtl-optimization/88879
19309 * sel-sched.c (sel_target_adjust_priority): Remove assert.
19311 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
19314 * config/arm/arm.c (callee_saved_reg_p): Move before
19315 thumb_find_work_register.
19316 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
19317 thumb_find_work_register. Only call df_get_live_out once.
19318 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
19319 (thumb_find_work_register): Use
19320 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19321 algorithms to locate a spare call clobbered reg.
19323 2019-05-09 Martin Liska <mliska@suse.cz>
19325 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19326 and MAX_EXPR in GIMPLE FE format.
19328 2019-05-09 Martin Liska <mliska@suse.cz>
19330 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19331 * gimple-pretty-print.c (dump_gimple_bb_header):
19333 (pp_cfg_jump): Dump edge probability.
19334 * profile-count.c (profile_quality_as_string): Simplify
19335 with a static array.
19336 (parse_profile_quality): New function.
19337 (profile_count::dump): Simplify with a static array.
19338 (profile_count::from_gcov_type): Add new argument.
19339 * profile-count.h (parse_profile_quality): Likewise.
19340 * predict.h (set_hot_bb_threshold): New.
19341 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19343 * predict.c (get_hot_bb_threshold): Set from the new param.
19344 (set_hot_bb_threshold): New.
19346 2019-05-09 Richard Biener <rguenther@suse.de>
19348 PR tree-optimization/90395
19349 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19350 rewrite vector stores that throw internally.
19352 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19354 * cif-code.def (CHKP): Remove.
19357 * configure.ac (--enable-frame-pointer): Disable by default for
19359 * configure: Regenerate.
19361 2019-05-09 Alan Modra <amodra@gmail.com>
19364 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19365 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19366 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19367 cost for general <-> vsx when direct moves are available.
19368 Cost union classes at minimal cost for any reg in the class.
19369 Correct calculation for moves between vsx, float, and altivec.
19370 Don't return a low cost for moves between special regs. Don't
19371 use hard coded register numbers.
19372 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19373 (rs6000_ira_change_pseudo_allocno_class): New function.
19374 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19375 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19377 (movsi_internal1): Don't disparage vector alternatives.
19378 (mov<mode>_internal): Likewise, excepting alternative that
19380 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19381 we <- b alternative.
19383 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19386 PR tree-optimization/89060
19387 * tree-ssa-live.h (live_vars_map): New typedef.
19388 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19389 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19390 (struct compute_live_vars_data): New type.
19391 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19392 live_vars_at_stmt, destroy_live_vars): New functions.
19393 * tree-tailcall.c: Include tree-ssa-live.h.
19394 (live_vars, live_vars_vec): New global variables.
19395 (find_tail_calls): Perform variable life analysis before punting.
19396 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19397 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19399 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19400 Perform variable life analysis to select variables that really need
19402 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19403 instead set id->eh_landing_pad_dest and assert it is the same.
19404 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19406 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19407 Richard Earnshaw <rearnsha@arm.com>
19410 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19412 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19413 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19414 register if both the epilogue and prologue can use call-clobbered
19416 (thumb1_unexpanded_epilogue): Use
19417 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19418 picking temporaries for restoring high regs to match that of the
19419 prologue where possible.
19420 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19421 the list of work registers. Detect if the return address is still live
19422 at the end of the prologue and avoid using it for a work register if so.
19423 If the return address is not live, add LR to the list of pushable regs
19424 after the first pass.
19426 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19428 PR tree-optimization/90078
19429 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19430 (INFTY): Increase the value for infinite cost.
19431 (struct comp_cost): Promote type of members to int64_t.
19432 (infinite_cost): Don't set complexity in initialization.
19433 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19434 overflows to infinite_cost.
19435 (adjust_setup_cost): Promote type of parameter and cost computation
19437 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19439 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19440 cost computation to int64_t.
19441 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19442 int64_t's format specifier in dump.
19444 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19446 PR tree-optimization/90240
19447 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19448 with respect to scaling factor pre-computed for each basic block.
19449 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19450 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19451 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19452 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19453 live range for array of loop's basic blocks. Cleanup aux field of
19454 loop's basic blocks.
19456 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19458 PR tree-optimization/90356
19459 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19461 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19463 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19464 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19465 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19466 (ix86_handle_option): Handle -mavx512bf16.
19467 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19469 * config/i386/avx512bf16vlintrin.h: New.
19470 * config/i386/avx512bf16intrin.h: New.
19471 * config/i386/cpuid.h (bit_AVX512BF16): New.
19472 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19473 * config/i386/i386-builtin-types.def: Add new types.
19474 * config/i386/i386-builtin.def: Add new builtins.
19475 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19477 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19478 (ix86_option_override_internal): Handle BF16.
19479 (ix86_valid_target_attribute_inner_p): Ditto.
19480 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19481 * config/i386/i386-builtin.c (enum processor_features): Add
19483 (static const _isa_names_table isa_names_table): Ditto.
19484 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19485 (PTA_AVX512BF16): Ditto.
19486 * config/i386/i386.opt: Add -mavx512bf16.
19487 * config/i386/immintrin.h: Include avx512bf16intrin.h
19488 and avx512bf16vlintrin.h.
19489 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19490 avx512f_cvtneps2bf16_<mode><mask_name>,
19491 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19492 * config/i386/subst.md (mask_half): Add new subst.
19493 * doc/invoke.texi: Document -mavx512bf16.
19495 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19497 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19498 Delete declaration.
19499 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19500 (rs6000_debug_legitimize_reload_address): Delete.
19501 (rs6000_legitimize_reload_address_ptr): Delete.
19502 (rs6000_option_override_internal): Adjust.
19503 (mem_operand_gpr): Adjust comment.
19504 (legitimate_lo_sum_address_p): Ditto.
19505 (rs6000_legitimize_reload_address): Delete.
19506 (rs6000_debug_legitimize_reload_address): Delete.
19507 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19509 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19512 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19513 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19514 to compute vector element selector for both constant and variable
19517 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19519 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19520 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19521 ashrdi3_cvt using SWI48 mode iterator.
19523 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19525 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19526 (aarch64_<su>abd<mode>_3): Likewise.
19527 (*aarch64_<su>abd<mode>_3): New define_insn.
19528 (<sur>sad<vsi2qi>): New define_expand.
19529 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19530 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19531 (build_vect_cond_expr): Likewise.
19533 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19535 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19536 clobbers outside of accessible_reg_set.
19537 * config/i386/i386.c (ix86_conditional_register_usage):
19538 Disable register sets by clearing corresponding bits in
19539 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19540 call_used_regs and don't clear corresponding reg_names array members.
19542 2019-05-07 Richard Biener <rguenther@suse.de>
19544 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19545 not specified still compute a comp_vectype for invariant
19548 2019-05-07 Richard Biener <rguenther@suse.de>
19550 PR tree-optimization/90316
19551 * tree-ssa-pre.c (translate_vuse_through_block): When
19552 same_valid is NULL do not bother to search for a virtual
19554 (phi_translate_1): When operands changed we cannot keep
19555 the same value-number so do not bother to ask whether
19556 that's possible from translate_vuse_through_block.
19558 2019-05-07 Martin Liska <mliska@suse.cz>
19560 * bitmap.c (bitmap_register): Come up with
19561 alloc_descriptor_max_uid and assign it for
19563 (register_overhead): Use get_descriptor as
19565 (release_overhead): New.
19566 (bitmap_elem_to_freelist): Call it.
19567 (bitmap_elt_clear_from): Likewise.
19568 (bitmap_obstack_free): Likewise.
19569 (bitmap_move): Sensitively release memory.
19570 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19571 (bitmap_initialize): Initialize alloc_descriptor to zero.
19572 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19574 2019-05-07 Richard Biener <rguenther@suse.de>
19576 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19577 we build a SLP node. Remove max_size and limiting.
19578 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19580 2019-05-07 Richard Biener <rguenther@suse.de>
19582 PR tree-optimization/90316
19583 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19584 limit by reference.
19585 (walk_non_aliased_vuses): Take walking limit argument.
19586 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19587 walking if it is reached instead of just counting.
19588 (get_continuation_for_phi): Likewise.
19589 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19590 limiting to the callback.
19591 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19592 (vn_reference_lookup_3): Likewise.
19593 (vn_reference_lookup_pieces): Likewise.
19594 (vn_reference_lookup): Likewise.
19595 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19596 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19597 (avail_exprs_stack::lookup_avail_expr): Likewise.
19599 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19601 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19602 for comparaible types in the second direction even if first one
19603 hits incomparable type.
19605 2019-05-07 Richard Biener <rguenther@suse.de>
19608 * lto-wrapper.c (debug_objcopy): Use the original filename
19609 including archive offset for the filename used for -save-temps.
19611 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19613 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19616 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19617 Hongtao Liu <hongtao.liu@intel.com>
19621 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19622 Modified, original implementation isn't correct.
19624 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19626 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19627 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19628 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19629 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19630 (FRAME_POINTER_REGNUM): Change numbering.
19631 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19632 (alt_reg_names): Adjust.
19633 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19635 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19636 (DWARF_FRAME_REGISTERS): Delete.
19637 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19638 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19640 (REG_ALLOC_ORDER): Adjust.
19641 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19642 (REG_CLASS_CONTENTS): Adjust.
19643 (RETURN_ADDR_RTX): Change comment.
19644 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19646 (REGISTER_NAMES): Adjust.
19647 (ADDITIONAL_REGISTER_NAMES): Adjust.
19648 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19650 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19652 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19654 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19655 (DWARF_FRAME_REGISTERS): Adjust.
19656 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19658 (REG_ALLOC_ORDER): Adjust.
19659 (enum reg_class): Delete SPR_REGS.
19660 (REG_CLASS_NAMES): Delete SPR_REGS.
19661 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19662 (REGISTER_NAMES): Adjust.
19663 (ADDITIONAL_REGISTER_NAMES): Adjust.
19664 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19665 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19666 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19667 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19668 (htm_spr_regno): Delete.
19669 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19671 (rs6000_dbx_register_number): Adjust.
19673 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19675 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19677 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19679 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19680 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19682 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19684 PR tree-optimization/88709
19685 PR tree-optimization/90271
19686 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19687 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19688 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19690 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19691 of the store merging group is larger than
19692 PARAM_STORE_MERGING_MAX_SIZE parameter.
19693 (split_group): Add bzero_first argument. If set, always emit first
19694 the first store which must be = {} of the whole area and then for the
19695 rest of the stores consider all zero bytes as paddings.
19696 (imm_store_chain_info::output_merged_store): Check if first store
19697 is = {} of the whole area and if yes, determine which setting of
19698 bzero_first for split_group gives smaller number of stores. Adjust
19699 split_group callers.
19700 (lhs_valid_for_store_merging_p): Allow decls.
19701 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19703 (pass_store_merging::process_store): Likewise.
19705 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19708 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19709 handling of V1TImode.
19711 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19714 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19715 and enable_frame_pointer ...
19716 * configure.ac: ... here. Update help strings for
19717 --enable-frame-pointer.
19718 * configure: Regenerate.
19719 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19720 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19721 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19722 (USE_X86_64_FRAME_POINTER): Ditto.
19724 2019-05-06 Martin Liska <mliska@suse.cz>
19726 * config.gcc: Append to target_gtfiles and fix indentation.
19728 2019-05-06 Richard Biener <rguenther@suse.de>
19730 PR tree-optimization/90358
19731 * tree-vect-stmts.c (get_group_load_store_type): Properly
19732 detect unused upper half of load.
19733 (vectorizable_load): Likewise.
19735 2019-05-06 Richard Biener <rguenther@suse.de>
19737 PR tree-optimization/88828
19738 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19739 (simplify_vector_constructor): ...here. Handle constants in
19742 2019-05-06 Richard Biener <rguenther@suse.de>
19744 PR tree-optimization/90328
19745 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19746 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19747 is valid in the loop nest before using it.
19748 (initialize_data_dependence_relation): Adjust.
19749 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19750 loop as loop-nest to dr_may_alias_p.
19752 2019-05-06 Richard Biener <rguenther@suse.de>
19754 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19756 2019-05-06 Richard Biener <rguenther@suse.de>
19758 PR tree-optimization/90316
19759 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19760 compute target on demand.
19761 (get_continuation_for_phi): Remove code walking stmts to
19762 get to a target virtual operand which could end up being
19765 2019-05-06 Martin Liska <mliska@suse.cz>
19768 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19769 when -mabi is selected to a non-default version.
19771 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19772 Martin Liska <mliska@suse.cz>
19774 * Makefile.in: Add lto-dump.texi.
19775 * cgraph.h: Add new functions get_visibility_string and
19776 get_symtab_type_string.
19777 * doc/gcc.texi: Include lto-dump section.
19778 * doc/lto-dump.texi: New file.
19779 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19780 (parse_dump_option): Factor out this function.
19781 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19782 (parse_dump_option): Export the function.
19783 * symtab.c (symtab_node::get_visibility_string): New function.
19784 (symtab_node::get_symtab_type_string): Likewise.
19786 2019-05-06 Martin Liska <mliska@suse.cz>
19788 * config/i386/i386-builtins.c: New file.
19789 * config/i386/i386-builtins.h: New file.
19790 * config/i386/i386-expand.c: New file.
19791 * config/i386/i386-expand.h: New file.
19792 * config/i386/i386-features.c: New file.
19793 * config/i386/i386-features.h: New file.
19794 * config/i386/i386-options.c: New file.
19795 * config/i386/i386-options.h: New file.
19796 * config.gcc: Add new files into extra_objs and
19798 * config/i386/i386.c: Split content of the file
19799 into newly introduced files.
19800 * config/i386/i386.h: Declare common variables
19802 * config/i386/t-i386: Define dependencies for new files.
19804 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19807 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19808 Restrict 'all' variant to 32-bit configurations.
19809 (unaligned_loadhiu): Likewise.
19810 (unaligned_storehi): Likewise.
19811 (unaligned_storesi): Likewise.
19812 (unaligned_loadhis): Disable when compiling for thumb1.
19814 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19816 PR tree-optimization/90269
19817 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19820 2019-05-03 Martin Liska <mliska@suse.cz>
19822 * hash-map.h: Add is_empty function.
19823 * hash-set.h: Likewise.
19824 * hash-table.h: Likewise.
19825 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19826 elements () == 0 (and similar usages).
19827 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19828 * gimplify.c (gimplify_bind_expr): Likewise.
19829 (gimplify_switch_expr): Likewise.
19830 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19831 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19832 * postreload-gcse.c (dump_hash_table): Likewise.
19833 (gcse_after_reload_main): Likewise.
19834 * predict.c (combine_predictions_for_bb): Likewise.
19835 * tree-parloops.c (reduction_phi): Likewise.
19836 (separate_decls_in_region): Likewise.
19837 (transform_to_exit_first_loop): Likewise.
19838 (gen_parallel_loop): Likewise.
19839 (gather_scalar_reductions): Likewise.
19840 (try_create_reduction_list): Likewise.
19841 * var-tracking.c (dump_vars): Likewise.
19842 (emit_notes_for_changes): Likewise.
19843 (vt_emit_notes): Likewise.
19845 2019-05-03 Richard Biener <rguenther@suse.de>
19847 PR tree-optimization/90316
19848 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19851 2019-05-03 Richard Biener <rguenther@suse.de>
19853 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19854 peeling for gaps by loading only lower halves of vectors
19856 (vectorizable_load): Likewise.
19858 2019-05-03 Richard Biener <rguenther@suse.de>
19860 PR middle-end/89518
19861 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19863 2019-05-03 Richard Biener <rguenther@suse.de>
19865 PR middle-end/87314
19866 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19867 Handle STRING_CST vs DECL or STRING_CST.
19869 2019-05-03 Richard Biener <rguenther@suse.de>
19871 PR tree-optimization/88963
19872 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19873 vector loads feeding only BIT_FIELD_REFs to component
19874 loads. Rewrite stores fed by CONSTRUCTORs to component
19877 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19879 * opts.h (finish_options): Remove lang_mask argument.
19880 (print_help, help_option_argument): Declare.
19881 * opts.c (print_help): Remove forward declaration, no longer static.
19882 (finish_options): Remove lang_mask argument, don't call print_help
19884 * opts-global.c (decode_options): Adjust finish_option caller, call
19887 PR tree-optimization/90303
19888 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19889 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19891 2019-05-03 Richard Biener <rguenther@suse.de>
19893 PR tree-optimization/89698
19894 * gimple-fold.c (canonicalize_constructor_val): Early out
19895 for constants, handle unfolded INTEGER_CSTs as they appear in
19896 C++ virtual table ctors.
19898 2019-05-03 Richard Biener <rguenther@suse.de>
19900 * passes.c (execute_function_todo): Remove dead code.
19902 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19904 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19905 the internal register number, for any "real" register.
19907 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19909 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19910 correct numbers for TFHAR, TFIAR, TEXASR.
19912 2019-05-02 Richard Biener <rguenther@suse.de>
19914 PR tree-optimization/89653
19915 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19916 update-address-taken before the pass.
19917 * passes.def (pass_tree_loop_init): Put comment before it.
19919 2019-05-02 Richard Biener <rguenther@suse.de>
19921 PR tree-optimization/89509
19922 * tree-ssa-structalias.c (compute_dependence_clique): Look
19923 at the first subvar when determining whether it is restrict.
19925 2019-05-02 Richard Biener <rguenther@suse.de>
19927 PR tree-optimization/90273
19928 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19929 useless debug stmts.
19931 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19933 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19935 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19937 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19938 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19939 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19940 (vectorizable_reduction): Use the functions above to vectorize in a
19941 fully masked loop codes that don't have a conditional internal
19944 2019-05-02 Martin Liska <mliska@suse.cz>
19946 * cgraphclones.c: Call valid_attribute_p with 1 for
19948 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19949 it's for target attribute.
19950 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19951 Add new boolean argument.
19952 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19954 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19955 to ix86_valid_target_attribute_inner_p.
19956 (ix86_valid_target_attribute_p): Pass flags argument to
19957 ix86_valid_target_attribute_inner_p.
19958 (get_builtin_code_for_version): Use 0 as it's target attribute.
19960 2019-05-02 Martin Liska <mliska@suse.cz>
19962 * gcc.c (process_command): Add dummy file only
19964 * opts-global.c (decode_options): Pass lang_mask.
19965 * opts.c (print_help): New function.
19966 (finish_options): Print --help if help_option_argument
19968 (common_handle_option): Factor out content of OPT__help_
19970 * opts.h (finish_options): Add new argument.
19972 2019-05-02 Martin Liska <mliska@suse.cz>
19975 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19976 With -minline-all-stringops use inline expansion using 4B loop.
19977 * doc/invoke.texi: Document the change of
19978 -minline-all-stringops.
19980 2019-05-01 Jeff Law <law@redhat.com>
19982 PR tree-optimization/88797
19983 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19984 PHI feeds a conditional on the RHS of an assignment.
19986 2019-04-30 Andrew Waterman <andrew@sifive.com>
19987 Jim Wilson <jimw@sifive.com>
19989 * config/riscv/constraints.md (L): New.
19990 * config/riscv/predicates.md (lui_operand): New.
19991 (sfb_alu_operand): New.
19992 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19993 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19994 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19995 * config/riscv/risc.md (type): Add sfb_alu.
19996 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19997 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19998 (branch_zero<mode>): Delete.
19999 (mov<mode>cc): New.
20000 (mov<GPR:mode><X:mode>cc): Likewise.
20001 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
20003 2019-04-30 Nathan Sidwell <nathan@acm.org>
20005 * tree.h (MARK_TS_EXP): New.
20007 2019-04-30 Martin Liska <mliska@suse.cz>
20009 * opts.c (enable_warning_as_error): Provide hints
20010 for unknown options.
20012 2019-04-30 Martin Liska <mliska@suse.cz>
20015 * doc/invoke.texi: Add missing dash for gas-locview-support
20016 and gno-as-locview-support.
20018 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20021 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
20022 whitespace at the start of target attribute string.
20024 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20027 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
20028 Define __ARM_FEATURE_ATOMICS.
20030 2019-04-30 Martin Liska <mliska@suse.cz>
20032 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
20033 into built_in_function enum. Remove code for endp == 2 and
20034 use BUILT_IN_* constants.
20035 (gimple_fold_builtin): Call the function with fcode.
20037 2019-04-30 Martin Liska <mliska@suse.cz>
20039 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
20040 DECL_FUNCTION_CODE into ix86_builtins enum before
20041 the switch statement.
20043 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20045 PR tree-optimization/89475
20046 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
20049 2019-04-30 Martin Liska <mliska@suse.cz>
20051 PR translation/90274
20052 * opts.c (print_filtered_help): Wrap string in _(...).
20054 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
20056 PR tree-optimization/90240
20058 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20060 PR tree-optimization/90078
20061 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20062 checks for infinite_cost overflow.
20064 2019-04-29 Jeff Law <law@redhat.com>
20066 * passes.def: Move -Wrestrict pass after copy propagation.
20068 2019-04-29 Maya Rashish <coypu@sdf.org>
20070 * config.gcc (default_gnu_indirect_function): Default to yes
20071 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
20072 sparc*-*-netbsd*, x86_64-*-netbsd*.
20074 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
20076 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
20077 where cond2 is NE_EXPR.
20078 (is_value_included_in): Update comment.
20080 2019-04-29 Richard Biener <rguenther@suse.de>
20082 PR tree-optimization/90278
20083 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
20084 EH on comparison simplification.
20086 2019-04-29 Jason Merrill <jason@redhat.com>
20088 PR c++/82081 - tail call optimization breaks noexcept
20089 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
20090 nothrow function to a might-throw function into a tail call.
20092 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
20094 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
20095 (DDR_INNER_LOOP): Likewise.
20096 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
20097 (initialize_data_dependence_relation): Likewise.
20098 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
20100 2019-04-29 Jakub Jelinek <jakub@redhat.com>
20102 PR rtl-optimization/90257
20103 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
20107 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20111 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20114 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20117 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20119 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20121 2019-04-29 Richard Biener <rguenther@suse.de>
20123 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
20126 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
20128 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
20129 varasm.h, and netbsd-protos.h.
20131 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
20134 * config/i386/i386-protos.h (ix86_data_alignment): Change
20135 the second argument type to unsigned int.
20136 * config/i386/i386.c (ix86_data_alignment): Change "align"
20137 argument type to unsigned int.
20139 2019-04-27 Martin Liska <mliska@suse.cz>
20141 PR middle-end/90258
20142 * opt-suggestions.c (option_proposer::build_option_suggestions):
20143 When get_valid_option_values returns empty values, add the
20144 misspelling candidate.
20146 2019-04-26 Jim Wilson <jimw@sifive.com>
20148 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
20150 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
20151 Pass orig_mode to riscv_build_integer.
20152 (riscv_split_integer): Pass mode to riscv_move_integer.
20153 (riscv_legitimize_const_move): Likewise.
20154 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
20155 promoted_mode. Replace force_reg call with code to load constant into
20156 promoted reg and then subreg it for the store.
20157 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
20158 riscv_move_integer.
20160 2018-04-26 Eugene Sharygin <eush@ispras.ru>
20162 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
20165 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
20167 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
20168 commentary about the encoding of precision.
20170 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
20172 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
20173 * config/i386/t-freebsd64: New file.
20174 * config.gcc: Add the t-freebsd64 for multilib support.
20176 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
20178 * doc/extend.texi (vector_size): Add missing comma after @xref.
20180 2019-04-25 Jakub Jelinek <jakub@redhat.com>
20182 * BASE-VER: Set to 10.0.0.
20184 2019-04-25 Richard Biener <rguenther@suse.de>
20186 PR middle-end/89765
20187 * gimplify.c (gimplify_expr): Avoid turning a lvalue
20188 VIEW_CONVERT_EXPR into one operating on an rvalue.
20190 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
20193 * config/i386/i386.c (feature_priority): Moved to file scope.
20194 (processor_features): Likewise.
20195 (processor_model): Likewise.
20196 (_arch_names_table): Likewise.
20197 (arch_names_table): Likewise.
20198 (_feature_list): Removed.
20199 (feature_list): Likewise.
20200 (_isa_names_table): Moved to file scope. Add priority.
20201 (isa_names_table): Likewise.
20202 (get_builtin_code_for_version): Replace feature_list with
20203 isa_names_table. Update error message for P_ZERO priority.
20205 2019-04-25 Richard Biener <rguenther@suse.de>
20207 * tree-pass.h (make_pass_phi_only_cprop): Remove.
20208 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
20210 2019-04-24 Jeff Law <law@redhat.com>
20212 PR tree-optimization/90037
20213 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
20214 * passes.def: Replace all instance of phi-only cprop with the
20215 lattice propagator. Move propagation pass from after erroneous
20216 path isolation to before erroneous path isolation.
20217 * tree-ssa-phionlycprop.c: Remove.
20219 2019-04-24 Richard Biener <rguenther@suse.de>
20221 PR middle-end/90213
20222 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
20223 by size and BITS_PER_UNIT on poly-wide-ints.
20225 2019-04-25 Richard Biener <rguenther@suse.de>
20227 PR middle-end/90194
20228 * match.pd: Add pattern to simplify view-conversion of an
20231 2019-04-24 Clement Chigot <clement.chigot@atos.net>
20233 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
20234 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
20235 for Go on 32 bit AIX.
20236 * config/rs6000/aix72.h: Likewise.
20238 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20241 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
20242 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
20244 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
20247 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
20248 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
20249 for restored hard frame pointer.
20250 (s390_sched_dependencies_evaluation): Implement new target hook.
20251 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
20253 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
20255 * config/arc/arc-options.def: Fix typos and spelling mistakes.
20256 * config/arc/arc.c (arc_init): Cleanup warning message.
20257 (arc_override_options): Likewise.
20259 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20262 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
20263 a register if both if_true and if_false are MEMs.
20265 PR tree-optimization/90208
20266 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
20267 after labels of new_bb, not before them.
20269 PR tree-optimization/90211
20270 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
20271 which are not SSA_NAMEs.
20273 2018-04-23 Sudakshina Das <sudi.das@arm.com>
20275 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
20277 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
20279 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20281 PR rtl-optimization/87979
20282 * modulo-sched.c (sms_schedule): Start ii value "mii" should
20285 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20287 PR rtl-optimization/84032
20288 * modulo-sched.c (ps_insn_find_column): Change condition so that
20289 branch will always be the last insn in a row inside partial
20292 2019-04-23 Richard Biener <rguenther@suse.de>
20295 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
20296 dest_single_pred_p argument.
20297 (remove_forwarder_block): Adjust.
20298 (remove_forwarder_block_with_phi): Likewise.
20300 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20301 Bernd Edlinger <bernd.edlinger@hotmail.de>
20302 Jakub Jelinek <jakub@redhat.com>
20305 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
20306 if used with general-regs-only.
20307 (arm_conditional_register_usage): Don't add non-general regs if
20309 (arm_valid_target_attribute_rec): Handle general-regs-only.
20310 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
20312 (TARGET_HARD_FLOAT_SUB): Define.
20313 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
20314 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
20315 (TARGET_REALLY_IWMMXT2): Likewise.
20316 * config/arm/arm.opt: Add -mgeneral-regs-only.
20317 * doc/extend.texi: Document ARM general-regs-only target.
20318 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
20320 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20322 PR tree-optimization/90078
20323 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20324 checks for infinite_cost overflow.
20326 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20328 PR tree-optimization/90021
20329 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20330 and check univariate against it.
20331 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20332 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20334 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20338 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20341 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20344 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20346 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20348 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20350 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20351 names using operand format, rather than hard-wired.
20352 (speculation_barrier): Likewise.
20354 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20356 PR tree-optimization/88055
20357 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20358 (gen_one_condition): Use it if !HONOR_NANS.
20360 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20362 PR middle-end/90139
20363 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20364 assign_temp instead of gen_reg_rtx.
20366 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20368 PR translation/90118
20369 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20370 Add missing space before %<.
20372 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20374 PR rtl-optimization/87871
20375 * ira-lives.c (make_object_dead): Don't add conflicts to
20376 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20378 2019-04-18 Martin Sebor <msebor@redhat.com>
20380 PR middle-end/89797
20381 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20382 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20383 assuming type size fits in SHWI.
20385 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20388 * ipa-inline.c (flatten_function): New parameter UPDATE.
20389 (ipa_inline, early_inliner): Use it.
20391 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20393 * fold-const.c (int_const_binop): Return early on failure.
20395 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20397 PR middle-end/85164
20398 * combine.c (force_int_to_mode): Cast the argument rather than
20399 the result of known_alignment.
20400 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20402 2019-04-18 Richard Biener <rguenther@suse.de>
20405 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20407 (remove_forwarder_block): ... here.
20408 (remove_forwarder_block_with_phi): Also move debug stmts here.
20410 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20412 PR translation/79183
20413 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20414 inform where appropriate.
20416 2019-04-18 Richard Biener <rguenther@suse.de>
20418 * tree.c (get_qualified_type): Put found type variants at the
20419 head of the variant list.
20421 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20423 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20425 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20428 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20429 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20430 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20431 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20432 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20434 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20436 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20437 even for allocno's with no conflicts.
20438 (print_conflicts): Print an extra newline.
20440 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20442 * auto-inc-dec.c (attempt_change): Set the alignment of the
20443 temporary memory to that of the original.
20445 2019-04-17 Joao Moreira <jmoreira@suse.de>
20447 * targhooks.c (default_print_patchable_function_entry): Emit
20448 __patchable_function_entries section with writable flags to allow
20449 relocation resolution.
20451 2019-04-17 Jonny Grant <jg@jguk.org>
20453 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20455 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20457 PR middle-end/90095
20458 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20459 on lowpart SUBREGs.
20461 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20463 * config/arc/arc.c (arc_init): Format diagnostic string.
20464 (arc_override_options): Likewise.
20465 (check_if_valid_regno_const): Likewise.
20466 (arc_reorg): Likewise.
20468 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20471 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20473 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20475 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20476 (*movdi_update1): Use Pmode.
20477 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20478 (movdi_<mode>_update_stack): Rename to ...
20479 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20481 (*movsi_update1): Use Pmode.
20482 (*movsi_update2): Use Pmode.
20483 (movsi_update): Rename to ...
20484 (movsi_<mode>_update): ... this. Use Pmode.
20485 (movsi_update_stack): Fix condition.
20486 (*movhi_update1): Use Pmode. Fix argument to
20487 avoiding_indexed_address_p.
20488 (*movhi_update2): Ditto.
20489 (*movhi_update3): Ditto.
20490 (*movhi_update4): Ditto.
20491 (*movqi_update1): Ditto.
20492 (*movqi_update2): Ditto.
20493 (*movqi_update3): Ditto.
20494 (*movsf_update1, *movdf_update1): Merge, rename to...
20495 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20496 avoiding_indexed_address_p. Add "size" attribute.
20497 (*movsf_update2, *movdf_update2): Merge, rename to...
20498 (*mov<mode>_update2): This. Ditto.
20499 (*movsf_update3): Use Pmode. Fix argument to
20500 avoiding_indexed_address_p.
20501 (*movsf_update4): Ditto.
20502 (allocate_stack): Simplify condition. Adjust pattern names.
20504 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20507 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20508 whitespace at the start of target attribute string.
20510 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20513 * config/rs6000/power9.md: Add store forwarding bypass.
20515 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20518 * valtrack.c (dead_debug_insert_temp): Reset debug references
20519 to the return value of a call being removed.
20521 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20523 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20524 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20525 implement target hook.
20526 (arc_memory_move_cost): New function.
20527 (TARGET_REGISTER_MOVE_COST): Define.
20528 (TARGET_MEMORY_MOVE_COST): Likewise.
20529 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20530 (MEMORY_MOVE_COST): Likewise.
20532 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20534 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20535 (sibcall_value_insn): Likewise.
20536 * config/arc/constraints.md (Rs5): Remove.
20538 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20540 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20541 for last two fake registers.
20542 (arc_conditional_register_usage): Make sure fake frame and arg
20543 pointer regs are in general regs class.
20544 (FRAME_POINTER_MASK): Remove.
20545 (RETURN_ADDR_MASK): Remove.
20546 (arc_must_save_register): Use hard frame regnum.
20547 (frame_restore_reg): Use hard_frame_pointer_rtx.
20548 (arc_save_callee_saves): Likewise.
20549 (arc_restore_callee_saves): Likewise.
20550 (arc_save_callee_enter): Likewise.
20551 (arc_restore_callee_leave): Likewise.
20552 (arc_save_callee_milli): Likewise.
20553 (arc_eh_return_address_location): Likewise.
20554 (arc_check_multi): Use hard frame regnum.
20555 (arc_can_eliminate): Likewise.
20556 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20557 for register allocator.
20558 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20559 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20560 (FRAME_POINTER_REGNUM): Change it to a fake register.
20561 (HARD_FRAME_POINTER_REGNUM): Defined.
20562 (ARG_POINTER_REGNUM): Change it to a new fake register.
20563 (ELIMINABLE_REGS): Update.
20564 (REGISTER_NAMES): Update names.
20565 * config/arc/arc.md (LP_START): Remove.
20566 (LP_END): Likewise.
20567 (shift_si3_loop): Update pattern.
20569 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20571 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20572 to avoid delay slot scheduling.
20573 (arc_must_save_register): Don't save SP.
20574 * config/arc/arc.md (stack_tie): Remove.
20575 (UNSPEC_ARC_STKTIE): Likewise.
20577 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20578 Shiva Chen <shiva0217@gmail.com>
20580 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20581 code gen with large shift amount.
20583 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20585 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20588 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20591 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20592 print -m64/-mx32/-m32 if it is true.
20593 (ix86_debug_options, ix86_function_specific_print): Pass true as
20594 ADD_ABI_P to ix86_target_string.
20595 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20596 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20597 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20599 PR rtl-optimization/90082
20600 * dce.c (can_delete_call): New function.
20601 (deletable_insn_p, mark_insn): Use it.
20603 PR tree-optimization/90090
20604 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20606 (is_division_by_square): Likewise. Formatting fix.
20608 2019-04-16 Richard Biener <rguenther@suse.de>
20610 PR tree-optimization/56049
20611 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20612 equality check if alias-set zero will prevail.
20614 2019-04-15 Jeff Law <law@redhat.com>
20616 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20617 size and alignment as unsigned.
20619 2019-04-15 Richard Biener <rguenther@suse.de>
20622 * tree-loop-distribution.c (destroy_loop): Preserve correct
20625 2019-04-15 Richard Biener <rguenther@suse.de>
20627 PR tree-optimization/90071
20628 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20629 abnormal operands from def stmts.
20631 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20633 PR rtl-optimization/89794
20634 * combine.c (count_auto_inc): New function.
20635 (try_combine): Count how many auto_inc expressions there were in the
20636 original instructions. Ensure we have the same number in the new
20637 instructions. Remove the code that tried to ensure auto_inc side
20638 effects on i1 and i0 are not lost.
20640 2019-04-15 Richard Biener <rguenther@suse.de>
20643 * tree.h (auto_var_p): Declare.
20644 * tree.c (auto_var_p): New function, split out from ...
20645 (auto_var_in_fn_p): ... here.
20646 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20648 (new_var_info): Initialize it.
20649 (set_uids_in_ptset): Also set the shadow variable uid if required.
20650 (ipa_pta_execute): Postprocess points-to solutions assigning
20651 shadow variable uids for locals that may reach their containing
20652 function recursively.
20653 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20654 assert but instead check whether the points-to solution is
20657 2019-04-15 Martin Jambor <mjambor@suse.cz>
20660 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20663 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20665 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20667 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20668 Kito Cheng <kito.cheng@gmail.com>
20669 Shiva Chen <shiva0217@gmail.com>
20671 * config/nds32/nds32-md-auxiliary.c
20672 (nds32_legitimize_pic_address): Use new PIC pattern.
20673 (nds32_legitimize_tls_address): Use new TLS pattern.
20674 (nds32_output_symrel): New.
20675 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20676 (nds32_alloc_relax_group_id): Ditto.
20677 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20678 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20680 (nds32_group_tls_insn): Ditto.
20681 (nds32_group_float_insns): Ditto.
20682 * config/nds32/nds32.md (tls_le): New.
20685 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20687 * configure: Add nds32 target for dwarf2 debug_line checking.
20688 * configure.ac: Regenerated.
20690 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20693 * ipa-devirt.c (skip_in_fields_list_p): New.
20694 (odr_types_equivalent_p): Use it.
20696 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20699 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20700 instead of strncmp when checking for thumb and arm. Formatting fixes.
20702 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20704 * doc/install.texi: Document --with-target-system-zlib.
20706 2019-04-12 Martin Sebor <msebor@redhat.com>
20712 * targhooks.c (default_vector_alignment): Avoid assuming
20713 argument fits in SHWI.
20714 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20715 a shift expression.
20716 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20718 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20720 PR rtl-optimization/89965
20721 * dce.c: Include rtl-iter.h.
20722 (struct check_argument_load_data): New type.
20723 (check_argument_load): New function.
20724 (find_call_stack_args): Check for loads from stack slots still tracked
20725 in sp_bytes and punt if any is found.
20727 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20729 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20731 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20732 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20734 2019-04-12 Martin Liska <mliska@suse.cz>
20736 PR middle-end/89970
20737 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20739 (separate_attrs): Handle multiple 'default's.
20740 (expand_target_clones): Rework error handling code.
20742 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20745 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20746 mode of vector rather than mode of destination for move instruction.
20747 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20748 Use QI inner mode with V16QI vector mode.
20750 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20753 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20754 "invalid %%t operand" in output_operand_lossage message.
20756 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20758 * config/s390/predicates.md (permute_pattern_operand): New
20760 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20761 operand for the permute pattern.
20762 ("*vec_perm<mode>"): New insn definition.
20763 ("bswap<mode>"): Generate the permute pattern operand in the
20764 expander and perform the operand reloads for pre arch13 level
20766 ("*bswap<mode>_emu"): Rename to ...
20767 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20768 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20769 Add the USE operand for the permute pattern.
20770 ("*vec_set_bswap_vec<mode>"): Likewise.
20772 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20775 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20776 and gcc_unreachable if it fails, just call tree_to_uhwi which
20777 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20778 Start warning message with a lower-case letter. Formatting fixes.
20780 PR rtl-optimization/90026
20781 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20782 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20783 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20784 in cfglayout mode, use emit_barrier_after_bb.
20786 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20788 PR rtl-optimization/87763
20789 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20792 2019-04-11 Tom de Vries <tdevries@suse.de>
20794 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20795 max macro using statement expression.
20797 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20799 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20800 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20801 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20802 read_only_private_data_section using xcoff_private_rodata_section_name.
20803 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20805 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20808 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20810 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20812 PR rtl-optimization/89965
20813 * dce.c (sp_based_mem_offset): New function.
20814 (find_call_stack_args): Use sp_based_mem_offset.
20816 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20818 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20820 2019-04-11 Richard Biener <rguenther@suse.de>
20822 PR tree-optimization/90020
20823 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20824 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20825 * tree-ssa-pre.c (compute_avail): Use it to not put
20826 possibly trapping references after a call that might not
20827 return into EXP_GEN.
20828 * gcse.c (compute_hash_table_work): Do not elide
20829 marking a block containing a call if the call might not
20832 2019-04-11 Richard Biener <rguenther@suse.de>
20834 PR tree-optimization/90018
20835 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20836 Test both SLP and interleaving variants.
20838 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20840 * config/s390/8561.md: New file.
20841 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20842 Add arch13 cpu model.
20843 * config/s390/s390-opts.h (enum processor_type): Likewise.
20844 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20845 (s390_get_unit_mask): Likewise.
20846 (s390_is_fpd): Likewise.
20847 (s390_is_fxd): Likewise.
20848 * config/s390/s390.h (s390_tune_attr): Likewise.
20849 * config/s390/s390.md: Include arch13 pipeline description.
20850 * config/s390/s390.opt: Add arch13.
20852 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20854 PR rtl-optimization/87763
20855 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20857 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20859 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20861 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20862 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20863 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20864 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20866 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20868 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20869 "Although" in -fipa-icf documentation.
20871 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20872 of using multiple -g options.
20874 2019-04-10 Martin Liska <mliska@suse.cz>
20876 PR gcov-profile/89959
20877 * doc/gcov.texi: Make documentation of -x option
20880 2019-04-10 Richard Biener <rguenther@suse.de>
20882 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20884 (DR_GROUP_SAME_DR_STMT): Remove.
20885 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20886 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20887 replace with assert.
20888 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20889 (vect_record_grouped_load_vectors): Remove unreachable code.
20891 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20894 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20895 obsolete reference to N.
20897 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20899 PR middle-end/90025
20900 * expr.c (store_expr): Set properly size on the MEM passed to
20904 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20905 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20906 translation is needed, and when translation is needed, only append
20907 ... if the string length is hostsz or more bytes long. Avoid using
20910 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20913 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20914 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20916 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20917 differences directly.
20918 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20920 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20922 PR translation/90011
20923 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20925 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20927 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20928 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20929 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20930 trailing space from -gsplit-dwarf diagnostics.
20932 PR tree-optimization/89998
20933 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20934 instead of integer_type_node if possible, don't add ranges if return
20935 type is not compatible with int.
20936 * gimple-fold.c (gimple_fold_builtin_sprintf,
20937 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20940 2019-04-09 Martin Liska <mliska@suse.cz>
20942 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20943 * doc/install.texi: Document the new config.
20945 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20947 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20948 use gimple_expr_type for load and store calls. Skip over the
20949 condition argument in a conditional internal function.
20950 Protect use of TREE_INT_CST_LOW.
20952 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20955 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20956 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20957 trailing period from it too.
20959 2019-04-08 wu yuan <wuyuan5@huawei.com>
20961 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20962 * config/aarch64/aarch64.md : Add "tsv110.md"
20963 * config/aarch64/tsv110.md: New file.
20965 2019-04-08 Richard Biener <rguenther@suse.de>
20967 PR tree-optimization/90006
20968 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20971 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20974 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20976 (fma_root_node): Likewise.
20977 (func_fma_steering): Likewise.
20979 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20981 PR rtl-optimization/89865
20982 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20984 PR rtl-optimization/89865
20985 * config/i386/i386.md
20986 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20987 numbers not to clash with the additional operands[4].
20988 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20989 with extra register copy in the middle.
20991 2019-04-08 Martin Liska <mliska@suse.cz>
20993 PR gcov-profile/89961
20994 * doc/gcov.texi: Document data_file.
20995 * gcov.c (generate_results): Add data_info into JSON output.
20997 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20999 PR tree-optimization/89725
21000 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
21001 loop's chrec as invariant symbol.
21002 * tree-chrec.h (chrec_contains_symbols): New parameter.
21003 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
21004 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
21005 function of loops not in DDR's loop_nest.
21006 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
21008 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
21011 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
21014 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
21017 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
21018 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
21020 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
21022 * sched-deps.c (sched_macro_fuse_insns): Check return value of
21023 targetm.fixed_condition_code_regs.
21025 2019-04-05 Richard Biener <rguenther@suse.de>
21029 * tree-cfgcleanup.c (remove_forwarder_block): Always move
21030 debug bind stmts but reset them if they are not valid at the
21033 2019-04-05 Martin Liska <mliska@suse.cz>
21035 PR translation/89936
21036 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
21037 order to wrap keywords or arguments.
21038 * collect2.c (main): Likewise.
21039 (scan_prog_file): Likewise.
21040 (scan_libraries): Likewise.
21041 * common/config/riscv/riscv-common.c
21042 (riscv_subset_list::parsing_subset_version): Likewise.
21043 (riscv_subset_list::parse_std_ext): Likewise.
21044 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21046 * config/arm/arm.c (arm_option_override): Likewise.
21047 * config/cris/cris.c (cris_print_operand): Likewise.
21048 * config/darwin-c.c (darwin_pragma_options): Likewise.
21049 (darwin_pragma_unused): Likewise.
21050 (darwin_pragma_ms_struct): Likewise.
21051 * config/ft32/ft32.c (ft32_print_operand): Likewise.
21052 * config/i386/i386.c (print_reg): Likewise.
21053 (ix86_print_operand): Likewise.
21054 * config/i386/xm-djgpp.h: Likewise.
21055 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
21056 * config/m32c/m32c.c (m32c_option_override): Likewise.
21057 * config/msp430/msp430.c (msp430_option_override): Likewise.
21058 * config/nds32/nds32.c (nds32_option_override): Likewise.
21059 * config/nvptx/mkoffload.c (main): Likewise.
21060 * config/rx/rx.c (rx_print_operand): Likewise.
21061 (valid_psw_flag): Likewise.
21062 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
21063 (vms_pragma_nomember_alignment): Likewise.
21064 (vms_pragma_extern_model): Likewise.
21065 * lto-wrapper.c (compile_offload_image): Likewise.
21066 * omp-offload.c (oacc_parse_default_dims): Likewise.
21067 * symtab.c (symtab_node::verify_base): Likewise.
21068 * tlink.c (recompile_files): Likewise.
21069 (start_tweaking): Likewise.
21070 * tree-profile.c (parse_profile_filter): Likewise.
21072 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
21074 PR tree-optimization/89956
21075 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
21076 multiple negates of the same value.
21078 2019-04-04 Martin Sebor <msebor@redhat.com>
21080 PR middle-end/89957
21081 PR middle-end/89911
21082 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
21083 have the same precision since the function crashes otherwise.
21084 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
21085 has non-zero arguments.
21087 2019-04-04 Martin Sebor <msebor@redhat.com>
21089 PR middle-end/89934
21090 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
21091 out if the number of arguments is less than expected.
21093 2019-04-04 Jeff Law <law@redhat.com>
21095 PR rtl-optimization/89399
21096 * ree.c (combine_set_extension): Use single_set rather than
21097 digging into PATTERN for items on the candidate list.
21098 (combine_reaching_defs): Likewise.
21100 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
21102 PR rtl-optimization/46590
21103 * loop-invariant.c (find_defs): Move df_remove_problem and
21104 df_process_deferred_rescans to move_invariants.
21105 Move df_live_add_problem and df_live_set_all_dirty calls
21106 to move_invariants.
21107 (move_invariants): Likewise.
21108 (move_loop_invariants): Likewise, making the df_live calls
21109 conditional on -O. Remove the problem again if we added it
21112 2019-04-03 qing zhao <qing.zhao@oracle.com>
21114 PR tree-optimization/89730
21115 * ipa-inline.c (can_inline_edge_p): Delete the checking for
21116 -flive-patching=inline-only-static.
21117 (can_inline_edge_by_limits_p): Add the checking for
21118 -flive-patching=inline-only-static and grant always_inline
21119 even when -flive-patching=inline-only-static is specified.
21121 2019-04-03 Jeff Law <law@redhat.com>
21123 PR rtl-optimization/81025
21124 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
21126 2019-04-03 Richard Biener <rguenther@suse.de>
21128 PR tree-optimization/84101
21129 * tree-vect-stmts.c: Include explow.h for hard_function_value,
21130 regs.h for hard_regno_nregs.
21131 (cfun_returns): New helper.
21132 (vect_model_store_cost): When vectorizing a store to a decl
21133 we return and the function ABI returns in a multi-reg location
21134 account for the possible spilling that will happen.
21136 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
21138 * config/s390/s390.c (s390_legitimate_address_p): Reject long
21139 displacement addresses for vector mode operands.
21141 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
21143 * config/arc/arc.c (GMASK_LEN): Define.
21144 (arc_restore_callee_saves): Restore first blink when
21147 2019-04-03 Sudakshina Das <sudi.das@arm.com>
21149 * doc/extend.texi: Add deprecated comment on sign-return-address
21150 function attribute and add mbranch-protection.
21151 * doc/invoke.texi: Add bti to the options for mbranch-protection.
21153 2019-04-03 Richard Biener <rguenther@suse.de>
21156 * lto-wrapper.c (run_gcc): Avoid implicit rules making
21157 the all target phony.
21159 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
21163 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
21164 Return false for variable DImode shifts.
21165 (dimode_scalar_chain::compute_convert_gain): Do not handle
21166 register count operand in variable DImode shifts.
21167 (dimode_scalar_chain::make_vector_copies): Remove support to copy
21168 count argument of a variable shift instruction to a vector register.
21169 (dimode_scalar_chain::convert_reg): Remove support to convert
21170 count argument of a variable shift instruction.
21172 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21174 PR rtl-optimization/84206
21175 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
21176 iterating over loop headers.
21178 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21180 PR rtl-optimization/85876
21181 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
21182 beyond the original fence.
21184 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
21186 * config.gcc: Mark spu* targets as deprecated/obsolete.
21188 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21190 * config/s390/s390-builtin-types.def: New builtin function type
21191 definitions. Remove unused types.
21192 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
21193 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
21194 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
21195 overloaded builtins.
21196 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
21197 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
21198 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
21199 (vec_double, vec_signed, vec_unsigned): Define to use the new
21200 overloaded builtins.
21201 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
21204 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21206 * config/s390/s390-builtin-types.def: New builtin function type
21208 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
21209 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
21210 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
21211 (s390_vstrszh, s390_vstrszf): New low-level builtins.
21212 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
21213 constant definitions.
21214 * config/s390/vecintrin.h (vec_search_string_cc)
21215 (vec_search_string_until_zero_cc): New builtin name definitions.
21216 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
21218 ("vec_vstrs<mode>"): New insn definition.
21220 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21222 * config/s390/s390-builtin-types.def: Add new builtin function
21224 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
21225 New overloaded builtins.
21226 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
21228 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
21229 (UNSPEC_VEC_SLDBYTE): ... this.
21230 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
21231 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
21233 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
21234 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
21235 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
21237 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21239 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
21240 New insn definition.
21241 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
21242 * config/s390/vector.md (V_HW_HSD): ... here.
21244 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21246 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
21247 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
21248 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
21249 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
21250 New insn definitions.
21252 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21254 * config/s390/s390-builtin-types.def: Add new builtin function type.
21255 * config/s390/s390-builtins.def: Add overloaded builtin
21256 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
21257 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
21258 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
21259 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
21260 ("eltswap<mode>"): New expander.
21261 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
21264 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21266 * config/s390/s390-builtin-types.def: Add new builtin function types.
21267 * config/s390/s390-builtins.def: Add overloaded builtin
21268 s390_vec_revb. Add low-level builtins for vlbr and vstbr
21270 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
21271 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
21272 ("bswap<mode>"): New expander.
21273 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
21275 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21277 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
21278 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
21279 vector builtin version number in __VEC__.
21281 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21283 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
21285 (SFSI): New mode attribute.
21286 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
21287 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
21289 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
21290 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
21291 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
21292 ("floatsi<mode>2"): Add wcefb instruction.
21294 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21296 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
21297 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
21299 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
21300 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
21301 support 32 bit fp-int conversions. Rename to ...
21302 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21303 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21304 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
21305 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
21308 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21310 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
21311 if-then-else constructs if we can use the select instruction.
21312 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
21314 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21316 * config/s390/s390.md ("*popcountdi_arch13_cc")
21317 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
21319 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21320 Append _z196 to make it ...
21321 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21322 ("popcounthi2_z196"): ... this.
21323 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21324 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21326 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21328 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21329 certain compares for arch13 in order to make use of the condition
21330 code result produced by the new instructions.
21331 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21332 nxrk, and nxgrk instruction patterns.
21333 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21334 (inv_no): Add new code iterator together with some attributes.
21335 ("*andc_split_<mode>"): Disable splitter for arch13.
21336 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21337 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21338 ("*<ANDOR:bitops_name>c<GPR:mode>")
21339 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21340 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21341 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21342 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21344 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21346 * common/config/s390/s390-common.c (processor_flags_table): New
21348 * config.gcc: Support arch13 with the --with-arch= configure flag.
21349 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21350 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21351 * config/s390/s390.c (s390_get_sched_attrmask)
21352 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21353 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21354 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21355 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21356 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21358 * config/s390/s390.opt: Support arch13 as processor type in
21359 command line options.
21361 2019-04-02 Martin Liska <mliska@suse.cz>
21363 PR translation/89912
21364 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21365 Fix param description of graphite-max-arrays-per-scop.
21367 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21369 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21370 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21371 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21373 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21375 PR rtl-optimization/85412
21376 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21377 sel_sched_region_1, not after.
21379 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21381 PR rtl-optimization/86928
21382 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21383 compute_live if necessary.
21384 (sel_redirect_edge_and_branch): Likewise.
21386 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21388 PR rtl-optimization/89865
21389 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21390 register if it is a part of small class.
21392 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21394 PR rtl-optimization/87273
21395 * sel-sched-ir.c (merge_fences): Remove assert.
21397 2019-04-01 Richard Biener <rguenther@suse.de>
21399 PR tree-optimization/46590
21400 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21401 (dom_walker::m_reachability): Add in place of...
21402 (dom_walker::m_skip_unreachable_blocks): ...this.
21403 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21404 Move complex initialization ...
21405 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21406 lazily and initialize edge flags on each invocation.
21407 (dom_walker::bb_reachable): Use m_reachability.
21409 2019-04-01 Martin Liska <mliska@suse.cz>
21412 * opt-suggestions.c (option_proposer::build_option_suggestions):
21413 Add variant without any argument in order to provide better
21416 2019-04-01 Richard Biener <rguenther@suse.de>
21419 * gimple.c: Include langhooks.h.
21420 (gimple_get_alias_set): Treat enumeral types as the underlying
21423 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21424 Eric Botcazou <ebotcazou@adacore.com>
21426 PR rtl-optimization/89862
21427 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21428 that operates on the full registers for WORD_REGISTER_OPERATIONS
21431 2019-03-29 Jim Wilson <jimw@sifive.com>
21433 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21434 Clear MASK_RVC and then set if C subset supported.
21436 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21439 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21440 non-addressable complit into its initializer if it is volatile.
21442 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21444 * opts-common.c (integral_argument): Set errno properly in one case.
21446 2019-03-29 Martin Liska <mliska@suse.cz>
21448 * doc/invoke.texi: Remove -Wchkp from documentation.
21450 2019-03-29 Martin Liska <mliska@suse.cz>
21452 * dbgcnt.c (print_limit_reach): New function.
21455 2019-03-29 Martin Liska <mliska@suse.cz>
21457 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21458 (dbg_cnt_process_opt): Parse first tokens aas
21459 dbg_cnt_process_single_pair is also using strtok.
21461 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21463 PR rtl-optimization/87485
21464 * function.c (expand_function_end): Move stack_protect_epilogue
21465 before loading of return value into hard register(s).
21467 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21469 PR middle-end/89621
21470 * tree-inline.h (struct copy_body_data): Add
21471 dont_remap_vla_if_no_change flag.
21472 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21473 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21474 and remap_type_2 returns false.
21475 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21476 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21477 only from where it is copied to nested contexts.
21479 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21482 * config/i386/i386.md (RMW operation with LEA peephole):
21483 Use LEAMODE mode attribute instead of SWI mode iterator for
21486 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21489 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21490 Also process XEXP (src, 0) of a shift insn.
21492 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21494 PR middle-end/89725
21495 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21496 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21498 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21500 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21502 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21503 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21504 immediately after first one with df_analyze in between, but rather
21505 process all bbs, queueing ones that need second pass in a worklist,
21506 df_analyze, process queued debug insn changes and if second pass is
21507 needed, process bbs from worklist, df_analyze, process queued debug
21510 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21511 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21512 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21514 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21517 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21520 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21523 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21524 function for 32-bit MS_ABI.
21525 (function_value_ms_32): New function.
21527 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21529 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21530 (movdi): Call gen_movdi_symbol_save_scc.
21531 (gen_movdi_symbol_save_scc): New insn and split.
21533 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21535 PR rtl-optimization/89313
21536 * function.c (matching_constraint_num): New static function.
21537 (match_asm_constraints_1): Use it. Fixup white space and comment.
21538 Don't replace inputs with non-matching constraints which conflict
21539 with early clobber outputs.
21541 2019-03-27 Jeff Law <law@redhat.com>
21543 PR rtl-optimization/87761
21544 PR rtl-optimization/89826
21545 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21547 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21548 note problem to get REG_DEAD/REG_UNUSED notes updated.
21550 2019-03-27 Richard Biener <rguenther@suse.de>
21552 PR tree-optimization/89463
21553 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21554 queue edges to remove.
21555 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21556 dead stmts. Delay edge removal until PHIs are removed to
21557 make debug-stmt creation not confused by seemingly degenerate
21560 2019-03-27 Alan Modra <amodra@gmail.com>
21562 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21564 * config/rs6000/darwin.h: Likewise.
21565 * config/rs6000/rs6000.c: Likewise.
21567 2019-03-27 Alan Modra <amodra@gmail.com>
21569 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21570 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21572 2019-03-26 Andrew Waterman <andrew@sifive.com>
21573 Jim Wilson <jimw@sifive.com>
21575 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21576 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21577 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21578 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21579 (generic_alu): Add auipc to type list.
21580 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21581 (riscv_microarchitecture): Declare.
21582 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21583 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21585 (riscv_microarchitecture): New.
21586 (sifive_7_tune_info): New.
21587 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21588 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21590 (riscv_store_data_bypass_p): New.
21591 (riscv_option_override): Set riscv_microarchitecture from
21592 cpu->microarchitecture.
21593 * config/riscv/riscv.md: Include sifive-7.md.
21596 (auipc<mode>): Change type to auipc.
21597 (restore_stack_nonlocal): New.
21598 * config/riscv/sifive-7.md: New.
21599 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21601 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21604 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21605 Also process XEXP (src, 0) of a shift insn.
21607 2019-03-26 Richard Biener <rguenther@suse.de>
21609 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21610 (copy_debug_stmt): Likewise.
21611 (expand_call_inline): Likewise.
21612 (copy_bb): Avoid redundant lookup & set of gimple_block.
21613 * gimple-low.c (lower_gimple_return): Likewise.
21614 (lower_builtin_setjmp): Likewise.
21616 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21618 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21619 is constant 0, turn into static const data member initialized to false.
21620 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21621 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21623 2019-03-26 Jason Merrill <jason@redhat.com>
21624 Jakub Jelinek <jakub@redhat.com>
21626 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21628 (mem_alloc_description::release_object_overhead): Fix comment typos.
21629 * hash-table.h (hash_table::~hash_table): Call
21630 release_instance_overhead only if m_entries is non-NULL, otherwise
21631 call unregister_descriptor.
21633 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21635 PR tree-optimization/81740
21636 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21637 In case of outer loop vectorization, check for backward dependence
21638 at the inner loop if outer loop dependence is reversed.
21640 2019-03-26 Alan Modra <amodra@gmail.com>
21642 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21643 rs6000_vector_mem init. Correct wI and wJ comment.
21645 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21647 PR rtl-optimization/88347
21648 PR rtl-optimization/88423
21649 * sched-deps.c (sched_analyze_insn): Take into account that for
21650 tablejumps the barrier appears after a label and a jump_table_data.
21652 2019-03-25 Martin Sebor <msebor@redhat.com>
21655 * c-common.c (check_user_alignment): Rename local. Correct maximum
21656 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21657 convert it to UHWI when it fits.
21659 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21662 * dwarf2out.c (premark_used_variables): New function.
21663 (prune_unused_types_walk): Do not mark not premarked external
21665 (prune_unused_types): Call premark_used_variables.
21667 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21669 PR rtl-optimization/89676
21670 * lra-constraints.c (curr_insn_transform): Do match reload for
21671 early clobbers when the match was successful only for different
21674 2019-03-25 Martin Sebor <msebor@redhat.com>
21676 * doc/extend.texi (Common Type Attributes): Document vector_size.
21677 (Common Variable Attributes): Mention size constraint. Correct
21679 (Vector Extensions): Use @dfn when defining bas type. Clarify
21680 base type and size constraints.
21682 2019-03-25 Richard Biener <rguenther@suse.de>
21684 PR tree-optimization/89789
21685 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21686 changes from non-undefined back to undefined.
21688 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21690 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21691 heap string and a gc string, but since this variable is unknown to
21692 ggc the gc string might get reused and corrupted. Fixed by always
21693 using a heap string.
21695 2019-03-25 Richard Biener <rguenther@suse.de>
21697 PR tree-optimization/89779
21698 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21699 to remove IV defs, delay actual removal.
21700 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21701 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21702 very end, properly also reset loop control IV information.
21704 2019-03-25 Richard Biener <rguenther@suse.de>
21706 PR tree-optimization/89802
21707 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21708 move EH data to folded stmt.
21710 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21712 * config/s390/s390-builtin-types.def: Remove few unused types and
21713 fix sort order for others.
21715 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21717 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21718 expected and found types with -mdebug during builtin matching.
21720 2019-03-25 Richard Biener <rguenther@suse.de>
21722 PR middle-end/89790
21723 * fold-const.c (operand_equal_p): Revert last change with
21726 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21728 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21729 notes for the result of the __tls_get_addr calls.
21730 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21732 2019-03-24 Jeff Law <law@redhat.com>
21734 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21736 PR rtl-optimization/87761
21737 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21738 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21740 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21741 rescans. Reprocess blocks as needed, calling df_analyze before
21742 reprocessing. Always call df_analyze before fixing up debug bind
21745 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21747 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21750 2019-03-22 Andrew Pinski <apinski@marvell.com>
21752 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21753 attrribute for uxtw.
21755 2019-03-26 Jeff Law <law@redhat.com>
21757 PR rtl-optimization/87761
21758 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21759 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21760 (mips_split_move): Accept new INSN argument. Try to forward SRC
21761 into the next instruction.
21762 (mips_split_move_insn): Pass INSN through to mips_split_move.
21764 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21766 PR rtl-optimization/89676
21767 * lra-constraints.c (curr_insn_transform): Do match reload for
21768 early clobbers even if the match was successful.
21770 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21773 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21775 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21777 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21779 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21781 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21782 <avx512>_fmsub_<mode>_mask3<round_name>,
21783 <avx512>_fnmadd_<mode>_mask3<round_name>,
21784 <avx512>_fnmsub_<mode>_mask3<round_name>,
21785 avx512f_vmfmadd_<mode>_mask3<round_name>,
21786 avx512f_vmfmsub_<mode>_mask3<round_name>,
21787 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21788 instead of register_operand and %v instead of v for match_operand 1.
21789 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21790 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21791 <round_nimm_predicate> instead of register_operand and %v instead of v
21792 for match_operand 1.
21794 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21795 <avx512>_fmadd_<mode>_mask3<round_name>,
21796 <avx512>_fmsub_<mode>_mask<round_name>,
21797 <avx512>_fmsub_<mode>_mask3<round_name>,
21798 <avx512>_fnmadd_<mode>_mask<round_name>,
21799 <avx512>_fnmadd_<mode>_mask3<round_name>,
21800 <avx512>_fnmsub_<mode>_mask<round_name>,
21801 <avx512>_fnmsub_<mode>_mask3<round_name>,
21802 <avx512>_fmaddsub_<mode>_mask<round_name>,
21803 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21804 <avx512>_fmsubadd_<mode>_mask<round_name>,
21805 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21806 <round_nimm_predicate> instead of nonimmediate_operand.
21807 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21808 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21809 Use register_operand instead of <round_nimm_predicate> for the
21810 operand that needs to match output.
21811 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21812 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21813 Likewise. Formatting fixes.
21816 * config/i386/i386.c (enum ix86_builtins): Remove
21817 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21818 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21819 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21820 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21821 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21822 __builtin_ia32_vfmsubss3_mask3): New builtins.
21823 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21824 avx512f_vmfmadd_<mode>_mask3<round_name>,
21825 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21826 *avx512f_vmfmsub_<mode>_mask<round_name>,
21827 avx512f_vmfmsub_<mode>_mask3<round_name>,
21828 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21829 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21830 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21831 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21832 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21833 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21834 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21835 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21836 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21837 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21838 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21839 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21840 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21841 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21842 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21843 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21844 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21845 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21846 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21847 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21848 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21849 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21850 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21851 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21852 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21853 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21854 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21855 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21857 2019-03-21 Martin Sebor <msebor@redhat.com>
21859 PR tree-optimization/89350
21860 * builtins.c (compute_objsize): Also ignore offsets whose upper
21862 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21863 (builtin_memref::builtin_memref): Initialize new member.
21864 Allow EXPR to be null.
21865 (builtin_memref::extend_offset_range): Replace local with a member.
21866 Avoid assuming pointer offsets are unsigned.
21867 (builtin_memref::set_base_and_offset): Determine base object
21868 before computing offset range.
21869 (builtin_access::builtin_access): Handle memset.
21870 (builtin_access::generic_overlap): Replace local with a member.
21871 (builtin_access::strcat_overlap): Same.
21872 (builtin_access::overlap): Same.
21873 (maybe_diag_overlap): Same.
21874 (maybe_diag_access_bounds): Same.
21875 (wrestrict_dom_walker::check_call): Handle memset.
21876 (check_bounds_or_overlap): Same.
21878 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21879 Jakub Jelinek <jakub@redhat.com>
21882 * tree.c (fld_type_variant, fld_incomplete_type_of,
21883 fld_process_array_type): Call fld->pset.add and don't call
21884 add_tree_to_fld_list if it returns true.
21885 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21886 non-marked types from TYPE_NEXT_VARIANT list.
21887 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21889 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21891 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21892 to false, if true, don't alloc_entries during construction, but defer
21893 it to the first method that needs m_entries allocated.
21894 (hash_table::hash_table, hash_table::~hash_table,
21895 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21896 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21897 hash_table::clear_slot, hash_table::traverse_noresize,
21898 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21899 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21901 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21902 NO_INSERT instead of find_with_hash.
21903 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21904 hash_set::m_table): Add Lazy to template params of hash_table.
21905 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21906 * attribs.c (test_attribute_exclusions): Likewise.
21907 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21908 hash_set. Add tests for hash_set with Lazy = true.
21910 2019-03-21 Richard Biener <rguenther@suse.de>
21912 PR tree-optimization/89779
21913 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21914 checks with respect to released SSA names now having error_mark_node
21916 * fold-const.c (operand_equal_p): Likewise.
21918 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21921 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21923 (s390_optimize_register_info): Use global_not_special_regno_p to
21924 check for global regs.
21926 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21929 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21930 update this_alternative nor this_alternative_set.
21932 2019-03-19 Jim Wilson <jimw@sifive.com>
21935 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21936 align, size, offset. Use them to handle a BLKmode reference. Update
21938 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21940 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21942 PR rtl-optimization/89768
21943 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21944 instead of GEN_INT.
21945 (unroll_loop_runtime_iterations): Likewise.
21947 2019-03-19 Martin Sebor <msebor@redhat.com>
21949 PR tree-optimization/89644
21950 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21951 rather than endptr as an indicator of nul-termination.
21953 PR tree-optimization/89644
21954 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21955 arrays in determining sequence sizes in strncpy and stpncpy.
21957 2019-03-19 Martin Liska <mliska@suse.cz>
21959 PR middle-end/89737
21960 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21961 unlikely_edges if there's an edge that belongs to both these sets.
21963 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21966 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21967 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21968 go via a stack temporary.
21970 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21973 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21974 instead of gen_rtx_SUBREG.
21975 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21977 2019-03-19 Richard Biener <rguenther@suse.de>
21980 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21982 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21986 * tree.c (free_lang_data_in_decl): Do not free context of C++
21989 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21992 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21993 subs for the first alternative except when operands[3] is 1.
21996 * gimplify.c (gimplify_asm_expr): For output argument with
21997 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
22000 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
22002 PR rtl-optimization/89753
22003 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22004 explicit unrolling factor even more robust.
22006 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22009 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
22010 compensation use x2 += 1 instead of x2 -= -1 and when honoring
22011 signed zeros, do another copysign after the compensation.
22013 2019-03-18 Martin Sebor <msebor@redhat.com>
22015 PR tree-optimization/89720
22016 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
22017 more conservatively, the same as anti-range.
22019 2019-03-18 Richard Biener <rguenther@suse.de>
22021 PR middle-end/88945
22022 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
22023 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
22024 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
22025 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
22027 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
22029 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
22030 Extend queue to 1024 entries.
22031 Add "consumed" field.
22032 (gomp_print_output): Remove print_index parameter.
22033 Add final parameter.
22034 Change limit to unsigned.
22035 Use consumed field to implement circular buffer.
22036 Detect interrupted print in final pass.
22037 Flush output at the end.
22038 (run): Update gomp_print_output usage.
22039 (main): Initialize kernargs->output_data.consumed.
22041 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
22043 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
22044 calculation of the minimum number of scalar iterations for
22045 fully-predicated loops.
22047 2019-03-18 Martin Jambor <mjambor@suse.cz>
22049 PR tree-optimization/89546
22050 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
22051 any propagation to its children took place.
22053 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
22056 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
22057 parameter, and make use of it.
22058 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
22060 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22062 * config/arc/arc.opt (mcode-density-frame): Get the inital value
22063 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
22064 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22065 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22066 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
22067 match what the ops is doing.
22068 (push_multi_fp_blink): Likewise.
22069 * config/arc/arc.c (arc_override_options): Enable enter/leave when
22070 compiling for size and elf target.
22071 (arc_save_callee_enter): Adjust note to match what enter/leave
22074 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22076 * config/arc/arc.md (tst_movb): Fix constraint.
22078 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22080 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
22082 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22084 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
22085 * config/arc/arc.c (arc_conditional_register_usage): Remove all
22086 reg_alloc_order references.
22087 (size_alloc_order): Define.
22088 (arc_adjust_reg_alloc_order): New function.
22089 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
22091 (ADJUST_REG_ALLOC_ORDER): Define.
22092 (HONOR_REG_ALLOC_ORDER): Likewise.
22094 2019-03-18 Richard Biener <rguenther@suse.de>
22097 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
22098 loads and stores a bit more.
22100 2019-03-18 Richard Biener <rguenther@suse.de>
22103 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
22104 load pessimization to stores as well.
22106 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
22108 PR middle-end/86979
22109 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
22110 successor, use NULL as its av set.
22112 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
22114 PR rtl-optimization/89721
22115 * lra-constraints (invariant_p): Return false if side_effects_p holds.
22117 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
22120 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22121 When handling vec_extract, use modular arithmetic to allow
22122 constant selectors greater than vector length.
22123 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
22124 V1TImode vectors to have constant selector values greater than 0.
22125 Use modular arithmetic to compute vector index.
22126 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
22127 index for in-memory vectors. Correct code generation for
22128 in-register vectors.
22129 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
22132 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
22136 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
22139 2019-03-15 Jakub Jelinek <jakub@redhat.com>
22142 * tree.c (inchash::add_expr): Strip any location wrappers.
22143 * fold-const.c (operand_equal_p): Move stripping of location wrapper
22144 after hash verification.
22147 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
22148 SIGN_EXTEND and ZERO_EXTEND.
22150 2019-03-14 Jason Merrill <jason@redhat.com>
22151 Jakub Jelinek <jakub@redhat.com>
22153 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
22154 than if is_empty (*slot).
22155 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
22156 existing elt and for elt removal.
22157 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
22158 of already removed elt.
22160 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
22163 * config/i386/i386.c (remove_partial_avx_dependency): Handle
22164 REG_EH_REGION note.
22166 2019-03-14 Martin Liska <mliska@suse.cz>
22169 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
22171 2019-03-14 Richard Biener <rguenther@suse.de>
22174 * config/i386/i386.c (make_resolver_func): Properly set
22175 DECL_CONTEXT on the RESULT_DECL.
22176 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
22178 2019-03-14 Richard Biener <rguenther@suse.de>
22180 * gimple-pretty-print.c: Include cfgloop.h.
22181 (dump_gimple_phi): Adjust.
22182 (dump_gimple_bb_header): Dump loop header for GIMPLE.
22183 (pp_cfg_jump): Adjust.
22184 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
22185 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
22186 (lower_phi_internal_fn): Remove.
22187 (verify_gimple_call): Remove IFN_PHI special-casing.
22188 (dump_function_to_file): Dump IL state.
22189 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
22190 done to deal with PHI nodes being present in non-SSA state.
22192 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22195 * multiple_target.c (create_dispatcher_calls): Change
22196 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
22197 In the node->iterate_referring loop, push *ref rather than ref, call
22198 ref->remove_reference () and always pass 0 to iterate_referring.
22200 PR rtl-optimization/89679
22201 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
22202 would contain a paradoxical SUBREG.
22204 2019-03-14 Richard Biener <rguenther@suse.de>
22206 PR tree-optimization/89710
22207 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
22210 2019-03-14 Martin Liska <mliska@suse.cz>
22212 * coverage.c (coverage_begin_function): Stream also
22214 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
22215 documentation about function declaration location.
22216 * gcov-dump.c (tag_function): Print whole range
22217 of function declaration.
22218 * gcov.c (struct function_info): Add end_column field.
22219 (function_info::function_info): Initialize it.
22220 (output_json_intermediate_file): Output {start,end}_column
22222 (read_graph_file): Read end_column.
22224 2019-03-14 Richard Biener <rguenther@suse.de>
22226 PR middle-end/89698
22227 * fold-const.c (operand_equal_p): For INDIRECT_REF check
22228 that the access types are similar.
22230 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22232 PR tree-optimization/89703
22233 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
22234 aren't compatible also with builtin_decl_explicit. Check pure
22235 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
22236 and BUILT_IN_STPNCPY{,_CHK}.
22238 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
22241 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
22242 addr32 prefix to VSIB address for X32.
22243 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
22245 (*avx512pf_gatherpf<mode>df_mask): Likewise.
22246 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
22247 (*avx512pf_scatterpf<mode>df_mask): Likewise.
22248 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
22249 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
22250 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
22251 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
22252 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
22253 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
22254 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
22255 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
22256 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
22257 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
22258 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
22259 (*avx512f_scatterdi<mode>): Likewise.
22261 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
22264 * lra-constraints.c (inherit_in_ebb): Update
22265 potential_reload_hard_regs along with live_hard_regs.
22267 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22270 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
22272 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
22274 2019-03-13 Martin Sebor <msebor@redhat.com>
22276 PR tree-optimization/89662
22277 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
22280 2019-03-13 Richard Biener <rguenther@suse.de>
22282 PR middle-end/89677
22283 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
22284 throw FP expressions at tree-affine.
22286 2019-03-14 Richard Biener <rguenther@suse.de>
22288 * tree-pretty-print.c (dump_generic_node): For -gimple properly
22289 dump negative integer constants using _Literal (type) -num.
22291 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22293 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
22294 nonlocal_value member.
22296 PR middle-end/88588
22297 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
22298 (ipa_simd_modify_function_body): Handle PHIs.
22300 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22302 * config/s390/s390.c (s390_option_override_internal): Use more
22303 aggressive inlining parameters.
22305 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22307 * config/s390/3906.md: New file.
22308 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22309 (LONGRUNNING_THRESHOLD): Remove.
22310 (MAX_SCHED_MIX_SCORE): Decrease.
22311 (MAX_SCHED_MIX_DISTANCE): Decrease.
22312 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
22313 (struct s390_sched_state): New struct to hold scheduling state.
22314 (S390_SCHED_STATE_NORMAL): Remove.
22315 (S390_SCHED_STATE_CRACKED): Remove.
22316 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
22317 (s390_get_sched_attrmask): Use new attribute.
22318 (s390_get_unit_mask): Use new units.
22319 (s390_is_fpd): New function.
22320 (s390_is_fxd): New function.
22321 (s390_is_longrunning): New function.
22322 (s390_sched_score): Use new functions.
22323 (s390_sched_reorder): Likewise.
22324 (s390_sched_variable_issue): Rework and use new functions.
22325 (s390_sched_init): Use new functions.
22326 * config/s390/s390.h (s390_tune_attr): Add z14.
22327 * config/s390/s390.md: Add z14.
22329 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22331 * config/s390/2964.md: Update pipeline description.
22332 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22333 (LONGRUNNING_THRESHOLD): Remove.
22334 (LATENCY_FACTOR): Remove.
22335 (s390_get_unit_mask): Add unit.
22336 (s390_sched_score): Use fxd/fpd.
22337 (s390_sched_variable_issue): Use fxd/fpd.
22339 2019-03-12 Martin Liska <mliska@suse.cz>
22341 * config/i386/i386.c: Reword an error message.
22343 2019-03-12 Martin Jambor <mjambor@suse.cz>
22345 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22346 terminate with newline.
22348 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22351 * config/s390/s390.md (tabort): Use %wd instead of
22352 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22353 letters and periods.
22354 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22355 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22358 PR middle-end/89663
22359 * builtins.c (expand_builtin_int_roundingfn,
22360 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22361 gcc_unreachable if validate_arglist fails.
22363 2019-03-12 Richard Biener <rguenther@suse.de>
22365 PR tree-optimization/89664
22366 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22367 free the occurance tree after the early out.
22369 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22371 PR middle-end/89655
22373 * vr-values.c (vr_values::update_value_range): If
22374 old_vr->varying_p (), don't update it, make new_vr also VARYING
22377 2019-03-11 Martin Liska <mliska@suse.cz>
22379 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22380 Fix double string quoting.
22382 2019-03-11 Martin Liska <mliska@suse.cz>
22384 * collect-utils.c (collect_wait): Wrap apostrophes
22385 in gcc internal format with %'.
22386 * collect2.c (main): Likewise.
22387 (scan_prog_file): Likewise.
22388 (scan_libraries): Likewise.
22389 * config/i386/i386.c (ix86_expand_call): Likewise.
22390 (ix86_handle_interrupt_attribute): Likewise.
22391 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22392 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22393 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22394 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22395 * symtab.c (symtab_node::verify_base): Likewise.
22396 * tree-cfg.c (verify_gimple_label): Likewise.
22397 * tree.c (verify_type_variant): Likewise.
22399 2019-03-11 Martin Liska <mliska@suse.cz>
22401 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22402 in a string format message and fix GNU coding style.
22403 (expand_builtin_set_thread_pointer): Likewise.
22404 * common/config/aarch64/aarch64-common.c
22405 (aarch64_rewrite_selected_cpu): Likewise.
22406 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22407 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22408 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22409 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22410 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22411 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22412 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22413 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22414 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22415 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22417 * common/config/riscv/riscv-common.c
22418 (riscv_subset_list::parsing_subset_version): Likewise.
22419 (riscv_subset_list::parse_std_ext): Likewise.
22420 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22421 (riscv_subset_list::parse): Likewise.
22422 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22423 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22424 (aarch64_override_options_internal): Likewise.
22425 (aarch64_validate_mcpu): Likewise.
22426 (aarch64_validate_march): Likewise.
22427 (aarch64_validate_mtune): Likewise.
22428 (aarch64_override_options): Likewise.
22429 * config/alpha/alpha.c (alpha_option_override): Likewise.
22430 * config/arc/arc.c (arc_init): Likewise.
22431 (parse_mrgf_banked_regs_option): Likewise.
22432 (arc_override_options): Likewise.
22433 (arc_expand_builtin_aligned): Likewise.
22434 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22435 (arm_expand_builtin): Likewise.
22436 * config/arm/arm.c (arm_option_check_internal): Likewise.
22437 (arm_configure_build_target): Likewise.
22438 (arm_option_override): Likewise.
22439 (arm_options_perform_arch_sanity_checks): Likewise.
22440 (arm_handle_cmse_nonsecure_entry): Likewise.
22441 (arm_handle_cmse_nonsecure_call): Likewise.
22442 (arm_tls_referenced_p): Likewise.
22443 (thumb1_expand_prologue): Likewise.
22444 * config/avr/avr.c (avr_option_override): Likewise.
22445 * config/bfin/bfin.c (bfin_option_override): Likewise.
22446 * config/c6x/c6x.c (c6x_option_override): Likewise.
22447 * config/cr16/cr16.c (cr16_override_options): Likewise.
22448 * config/cris/cris.c (cris_option_override): Likewise.
22449 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22450 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22451 * config/darwin.c (darwin_override_options): Likewise.
22452 * config/frv/frv.c (frv_expand_builtin): Likewise.
22453 * config/h8300/h8300.c (h8300_option_override): Likewise.
22454 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22455 (ix86_option_override_internal): Likewise.
22456 (warn_once_call_ms2sysv_xlogues): Likewise.
22457 (ix86_expand_prologue): Likewise.
22458 (split_stack_prologue_scratch_regno): Likewise.
22459 (ix86_warn_parameter_passing_abi): Likewise.
22460 * config/ia64/ia64.c (fix_range): Likewise.
22461 * config/m68k/m68k.c (m68k_option_override): Likewise.
22462 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22463 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22464 (mips_set_compression_mode): Likewise.
22465 * config/mmix/mmix.c (mmix_option_override): Likewise.
22466 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22467 * config/msp430/msp430.c (msp430_option_override): Likewise.
22468 * config/nds32/nds32.c (nds32_option_override): Likewise.
22469 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22470 (nios2_option_override): Likewise.
22471 (nios2_expand_custom_builtin): Likewise.
22472 * config/nvptx/mkoffload.c (main): Likewise.
22473 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22474 * config/pa/pa.c (fix_range): Likewise.
22475 (pa_option_override): Likewise.
22476 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22477 (riscv_option_override): Likewise.
22478 * config/rl78/rl78.c (rl78_option_override): Likewise.
22479 * config/rs6000/aix61.h: Likewise.
22480 * config/rs6000/aix71.h: Likewise.
22481 * config/rs6000/aix72.h: Likewise.
22482 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22483 * config/rs6000/freebsd64.h: Likewise.
22484 * config/rs6000/linux64.h: Likewise.
22485 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22486 (rs6000_expand_zeroop_builtin): Likewise.
22487 (rs6000_expand_mtfsb_builtin): Likewise.
22488 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22489 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22490 (rs6000_invalid_builtin): Likewise.
22491 (rs6000_expand_split_stack_prologue): Likewise.
22492 * config/rs6000/rtems.h: Likewise.
22493 * config/rx/rx.c (valid_psw_flag): Likewise.
22494 (rx_expand_builtin): Likewise.
22495 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22496 * config/s390/s390.c (s390_expand_builtin): Likewise.
22497 (s390_function_profiler): Likewise.
22498 (s390_option_override_internal): Likewise.
22499 (s390_option_override): Likewise.
22500 * config/sh/sh.c (sh_option_override): Likewise.
22501 (sh_builtin_saveregs): Likewise.
22502 (sh_fix_range): Likewise.
22503 * config/sh/vxworks.h: Likewise.
22504 * config/sparc/sparc.c (sparc_option_override): Likewise.
22505 * config/spu/spu.c (spu_option_override): Likewise.
22506 (fix_range): Likewise.
22507 * config/visium/visium.c (visium_option_override): Likewise.
22508 (visium_handle_interrupt_attr): Likewise.
22509 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22510 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22511 (dbg_cnt_process_opt): Likewise.
22512 * dwarf2out.c (output_dwarf_version): Likewise.
22513 * except.c (expand_eh_return): Likewise.
22514 * gcc.c (defined): Likewise.
22515 (driver_handle_option): Likewise.
22516 (process_command): Likewise.
22517 (compare_files): Likewise.
22518 (driver::prepare_infiles): Likewise.
22519 (driver::do_spec_on_infiles): Likewise.
22520 (driver::maybe_run_linker): Likewise.
22521 * omp-offload.c (oacc_parse_default_dims): Likewise.
22522 * opts-global.c (handle_common_deferred_options): Likewise.
22523 * opts.c (parse_sanitizer_options): Likewise.
22524 (common_handle_option): Likewise.
22525 (enable_warning_as_error): Likewise.
22526 * passes.c (enable_disable_pass): Likewise.
22527 * plugin.c (parse_plugin_arg_opt): Likewise.
22528 (default_plugin_dir_name): Likewise.
22529 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22530 (default_pch_valid_p): Likewise.
22531 * toplev.c (init_asm_output): Likewise.
22532 (process_options): Likewise.
22533 (toplev::run_self_tests): Likewise.
22534 * tree-cfg.c (verify_gimple_call): Likewise.
22535 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22536 (tree_inlinable_function_p): Likewise.
22537 * var-tracking.c (vt_find_locations): Likewise.
22539 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22541 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22542 only on the else branch.
22544 2019-03-11 Martin Liska <mliska@suse.cz>
22546 * gcov.c (output_intermediate_json_line): Print function
22548 (output_json_intermediate_file): Add new argument.
22549 * doc/gcov.texi: Document the change.
22551 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22553 PR rtl-optimization/89588
22554 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22555 explicit unrolling factor more robust.
22557 2019-03-11 Richard Biener <rguenther@suse.de>
22559 PR tree-optimization/89649
22560 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22561 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22562 on the prolog and epilog loops.
22563 (vect_loop_versioning): Return copy of loop.
22564 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22565 on the non-vectorized version of the loop.
22567 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22570 * config/i386/sse.md (*vec_extractv2di_0_sse):
22571 Add (=r,x) alternative and corresponding splitter.
22573 2019-03-10 Martin Jambor <mjambor@suse.cz>
22575 PR tree-optimization/85762
22576 PR tree-optimization/87008
22577 PR tree-optimization/85459
22578 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22579 it points to if there is a type changing MEM_REF. Adjust all callers.
22580 (build_accesses_from_assign): Disable total scalarization if
22581 contains_vce_or_bfcref_p returns true through the new parameter, for
22584 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22587 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22588 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22591 * common.opt (fdiagnostics-show-labels,
22592 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22593 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22594 gas-locview-support, ginline-points, ginternal-reset-location-views):
22595 Terminate description text with a dot.
22596 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22597 * config/mcore/mcore.opt (m210, m340): Likewise.
22598 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22599 mnops=): Start description text with a capital letter.
22600 * config/arc/arc.opt (msize-level=): Likewise.
22601 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22602 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22603 mnewlib): Likewise.
22604 * config/ft32/ft32.opt (msim): Likewise.
22605 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22606 (mnodiv, mnopm): Terminate description text with a dot.
22607 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22609 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22611 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22614 PR rtl-optimization/89634
22615 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22616 are modified in BB_END (e->src) instruction.
22618 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22621 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22622 messages more amenable to translation, and improve wording.
22624 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22626 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22627 ud- and du-chains between phases.
22629 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22632 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22633 instead of POLY_INT_CST.
22635 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22637 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22640 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22645 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22646 (_mm_storeu_si64): Ditto.
22648 2019-03-08 Martin Liska <mliska@suse.cz>
22651 * config/i386/i386.c (ix86_option_override_internal): Disable
22652 jump tables when retpolines are used.
22654 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22657 * ipa-split.c (execute_split_functions): Do not split
22658 'noinline' or 'section' function.
22660 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22663 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22664 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22665 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22668 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22669 from diagnostics. Formatting fixes.
22672 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22673 warn_odr diagnostics.
22676 * lra-constraints.c (process_alt_operands): Avoid one space before
22677 " at the end of line and another after " on another line in a string
22679 * attribs.c (handle_dll_attribute): Likewise.
22680 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22682 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22683 warning_at or inform messages in G_() if there is no ?:.
22685 PR tree-optimization/89550
22686 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22687 returned true. Formatting fixes.
22688 (expand_builtin_strnlen): Formatting fixes.
22689 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22690 if warning_at returned true.
22691 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22693 2019-03-08 Richard Biener <rguenther@suse.de>
22695 PR middle-end/89578
22696 * cfgloop.h (struct loop): Add owned_clique field.
22697 * cfgloopmanip.c (copy_loop_info): Copy it.
22698 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22700 * tree-inline.c (copy_loops): Remap owned_clique.
22701 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22702 * lto-streamer-out.c (output_cfg): Likewise.
22704 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22707 * config/darwin.c: Include intl.h.
22708 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22709 composing the message out of two separate parts.
22711 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22714 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22715 doesn't start with a capital letter and doesn't end with a dot.
22716 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22717 with a capital letter.
22718 (ix86_mangle_function_version_assembler_name): Likewise.
22719 (ix86_generate_version_dispatcher_body): Likewise.
22720 (fold_builtin_cpu): Likewise.
22721 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22722 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22723 translators, wrap full type name in %qs.
22725 PR translation/79999
22726 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22727 depend clause with source (or sink) modifier.
22728 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22731 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22732 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22733 (avx512f_load<mode>_mask): New define_expand.
22734 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22735 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22736 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22737 __builtin_ia32_movess_mask): New builtins.
22738 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22739 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22740 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22741 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22743 2019-03-07 Martin Jambor <mjambor@suse.cz>
22746 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22747 for extern inline functions.
22749 2019-03-07 Martin Jambor <mjambor@suse.cz>
22752 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22753 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22754 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22755 have multiple callees. At the end check if declarations match as
22756 opposed to cgraph_nodes.
22758 2019-03-07 Martin Liska <mliska@suse.cz>
22760 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22761 which is equivalent to searching for this in clones chain.
22762 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22763 names with a neighbour and special case first node in a chain.
22765 2019-01-25 Jason Merrill <jason@redhat.com>
22767 PR c++/80916 - spurious "static but not defined" warning.
22768 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22769 for an internal symbol with DECL_EXTERNAL.
22771 2019-04-07 Richard Biener <rguenther@suse.de>
22773 PR middle-end/89618
22774 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22775 * tree-inline.c (copy_loops): Simplify.
22777 2019-03-07 Martin Liska <mliska@suse.cz>
22779 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22781 2019-03-07 Richard Biener <rguenther@suse.de>
22783 PR tree-optimization/89595
22784 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22785 stmt iterator as reference, take boolean output parameter to
22786 indicate whether the stmt was removed and thus the iterator
22788 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22789 stmts created by folding.
22791 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22794 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22797 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22799 PR rtl-optimization/88845
22800 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22802 * lra.c (remove_scratches_1): New function.
22803 (remove_scratches): Use it.
22804 (lra_emit_move): Likewise.
22806 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22808 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22809 unaligned_access variable.
22810 * config/arc/arc.c (arc_override_options): Set unaligned access
22811 default on for HS CPUs.
22812 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22814 2019-03-06 Martin Liska <mliska@suse.cz>
22816 PR gcov-profile/89577
22817 * doc/gcov.texi: Prefer to use --coverage.
22818 * doc/sourcebuild.texi: Likewise.
22820 2019-03-02 Jason Merrill <jason@redhat.com>
22822 PR c++/86485 - -Wmaybe-unused with empty class ?:
22823 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22825 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22828 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22831 PR middle-end/89590
22832 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22833 exactly one argument.
22835 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22836 Richard Sandiford <richard.sandiford@arm.com>
22838 PR tree-optimization/89570
22839 * match.pd (vec_cond into cond_op simplification): Don't use
22840 get_conditional_internal_fn, use as_internal_fn (cond_op).
22842 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22845 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22846 to decide when to split off a non-zero offset from a symbol.
22847 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22848 in function symbols.
22850 2019-03-05 Richard Biener <rguenther@suse.de>
22852 PR tree-optimization/89594
22853 * tree-if-conv.c (pass_if_conversion::execute): Handle
22854 case where .LOOP_VECTORIZED_FUNCTION was removed.
22856 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22859 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22860 instead alloca it only when needed with the needed size.
22862 PR tree-optimization/89570
22863 * match.pd (vec_cond into cond_op simplification): Guard with
22864 vectorized_internal_fn_supported_p test and #if GIMPLE.
22866 PR tree-optimization/89566
22867 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22868 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22869 Punt if get_user_idx_format succeeds, but idx_format argument is
22870 not provided or doesn't have pointer type, or if idx_args is above
22871 number of provided arguments.
22873 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22875 PR tree-optimization/89437
22876 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22878 2019-03-04 Richard Biener <rguenther@suse.de>
22880 PR middle-end/89572
22881 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22884 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22886 PR tree-optimization/89487
22887 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22888 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22889 (distribute_loop): Don't do runtime alias check if there is non-
22890 addressable data reference.
22891 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22892 is a register variable.
22894 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22897 * config/arm/arm.md (cmpsi2_addneg): Use
22898 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22899 If operands[2] is 0 or INT_MIN, force use of subs.
22900 (*compare_scc splitter): Use gen_int_mode.
22901 (*negscc): Likewise.
22902 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22904 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22905 Monk Chiang <sh.chiang04@gmail.com>
22907 * common/config/riscv/riscv-common.c: Include sstream.
22908 (riscv_subset_list::to_string): New.
22909 (riscv_arch_str): Likewise.
22910 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22911 * config.in: Regen.
22912 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22913 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22914 (riscv_emit_attribute): New.
22915 (riscv_file_start): Emit attribute if needed.
22916 (riscv_option_override): Init riscv_emit_attribute_p.
22917 * config/riscv/riscv.opt (mriscv-attribute): New option.
22918 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22919 * configure: Regen.
22920 * doc/install.texi: Document --with-riscv-attribute.
22921 * doc/invoke.texi: Document -mriscv-attribute.
22923 * common/config/riscv/riscv-common.c:
22924 Include config/riscv/riscv-protos.h.
22925 (INCLUDE_STRING): Defined.
22926 (RISCV_DONT_CARE_VERSION): Defined.
22927 (riscv_subset_t): Declare.
22928 (riscv_subset_t::riscv_subset_t): New.
22929 (riscv_subset_list): Declare.
22930 (riscv_subset_list::riscv_subset_list): New.
22931 (riscv_subset_list::~riscv_subset_list): Likewise.
22932 (riscv_subset_list::parsing_subset_version): Likewise.
22933 (riscv_subset_list::parse_std_ext): Likewise.
22934 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22935 (riscv_subset_list::add): Likewise.
22936 (riscv_subset_list::lookup): Likewise.
22937 (riscv_subset_list::xlen): Likewise.
22938 (riscv_subset_list::parse): Likewise.
22939 (riscv_supported_std_ext): Likewise.
22940 (current_subset_list): Likewise.
22941 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22944 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22946 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22947 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22948 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22950 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22952 PR rtl-optimization/85899
22953 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22954 fallthru edges leading to the exit block.
22956 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22959 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22960 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22962 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22964 PR tree-optimization/89535
22965 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22966 for each operand. Calculate the fallback choice for mask operands
22967 and pass it to vect_get_vec_def_for_operand.
22969 2019-03-01 Richard Biener <rguenther@suse.de>
22971 PR middle-end/89541
22972 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22973 get virtual operands.
22974 (get_expr_operands): Handle CONST_DECL like other decls.
22976 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22978 PR middle-end/89503
22979 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22980 on DECL_P and EXPR_P.
22982 2019-03-01 Richard Biener <rguenther@suse.de>
22984 PR middle-end/89497
22985 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22986 argument, defaulted to zero.
22987 * passes.c (execute_function_todo): Pass down SSA update flags
22988 to cleanup_tree_cfg.
22989 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22990 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22992 (cleanup_tree_cfg): Get and pass down SSA update flags.
22994 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22997 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22998 early_lto_debug argument.
23000 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
23002 PR tree-optimization/89536
23003 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
23004 only whether bit #0 of the value is 0 instead of the entire value.
23006 2019-02-28 Marek Polacek <polacek@redhat.com>
23008 PR c++/87068 - missing diagnostic with fallthrough statement.
23009 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
23010 at the end of a seq, save its location to walk_stmt_info.
23011 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
23014 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
23017 * tree.c (find_atomic_core_type): Move ahead in file.
23018 (check_base_type): Correctly compare alignments of atomic types.
23020 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
23023 * config/i386/i386.c (get_builtin_code_for_version): Identify
23024 Westmere from PCLMUL, instead of AES.
23026 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23029 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
23030 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
23033 2019-02-28 Tamar Christina <tamar.christina@arm.com>
23036 * config/aarch64/aarch64-option-extensions.def: Document it.
23037 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
23040 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23043 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
23044 builtins if they don't have a single scalar floating point argument.
23047 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
23049 PR rtl-optimization/89490
23050 * varasm.c (get_block_for_section): Bail out for mergeable sections.
23051 (default_use_anchors_for_symbol_p, output_object_block): Assert the
23052 block section is not mergeable.
23054 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23057 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
23058 old define_insn to ...
23059 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
23060 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
23061 Rename old define_insn to ...
23062 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
23063 (thumb2_casesi_internal_pic): New define_expand. Rename old
23065 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
23066 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
23067 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
23069 2019-02-27 Richard Biener <rguenther@suse.de>
23072 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
23074 2019-02-27 Richard Biener <rguenther@suse.de>
23076 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
23079 2019-02-27 Richard Biener <rguenther@suse.de>
23082 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
23083 parameter, prefix section name with .gnu.debuglto_ if true.
23084 (dwarf2out_finish): Pass false to output_comdat_type_unit.
23085 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
23087 2019-02-27 Richard Biener <rguenther@suse.de>
23090 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
23091 rather than on use_debug_types, doing what output_die does.
23092 (value_format): Likewise.
23094 2019-02-27 Martin Jambor <mjambor@suse.cz>
23095 Martin Sebor <msebor@redhat.com>
23097 * doc/invoke.texi (Warning Options): Reword description of
23098 -Wno-absolute-value.
23100 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23102 PR tree-optimization/89280
23103 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
23104 builtin_setjmp_setup_bb): New functions.
23105 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
23106 When visiting __builtin_setjmp_setup block, queue in special
23107 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
23108 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
23109 from visited after the loop if they don't have any visited successor
23112 2018-02-26 Steve Ellcey <sellcey@marvell.com>
23114 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
23116 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
23118 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23121 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
23122 with types other than sizetype/ssizetype.
23124 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23126 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
23127 (enum sparc_processor_type): ...this.
23128 (enum sparc_code_model_type): New enumeration type.
23129 (enum sparc_memory_model_type): Tweak comments.
23130 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
23132 (mcmodel): Use sparc_code_model enumeration and variable.
23133 (sparc_code_model): New enumeration.
23134 (mdebug): Add Undocumented marker.
23135 * config/sparc/sparc.h (enum cmodel): Delete.
23136 (sparc_cmodel): Likewise.
23137 (TARGET_CM_MEDLOW): Adjust to above renaming.
23138 (TARGET_CM_MEDMID): Likewise.
23139 (TARGET_CM_MEDANY): Likewise.
23140 (TARGET_CM_EMBMEDANY): Likewise.
23141 * config/sparc/sparc.c (sparc_cmodel): Delete.
23142 (sparc_option_override): Remove string/value mapping support for the
23143 code model. Move code and memory model support to after the handling
23144 of target flags. Do private machine setup last.
23145 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
23146 (sparc_legitimize_reload_address): Likewise.
23147 (sparc_output_mi_thunk): Likewise.
23148 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
23150 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23152 PR tree-optimization/89500
23153 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
23154 (handle_builtin_strlen): Remove noncst_bound variable. Always
23155 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
23156 cst if the first cst bytes starting at x are known to be non-zero,
23157 even if the string is not zero terminated. Don't try to modify
23158 *si for strnlen. Update strlen_to_stridx only for strlen or if
23159 we can prove strnlen returns the same value as strlen would.
23161 2019-02-26 Martin Liska <mliska@suse.cz>
23163 * alloc-pool.h (struct pool_usage): Remove extra
23165 * bitmap.h (struct bitmap_usage): Likewise.
23166 * ggc-common.c (struct ggc_usage): Likewise.
23167 * mem-stats.h (struct mem_usage): Likewise.
23168 (mem_alloc_description::dump): Print dash lines
23169 here and repeat header at the end of a table report.
23170 It's then more readable.
23171 * tree-phinodes.c (phinodes_print_statistics): Make
23172 horizontal alignment.
23173 * tree-ssanames.c (ssanames_print_statistics): Likewise.
23174 * vec.c (struct vec_usage): Remove extra print_dash_line.
23175 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
23177 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
23179 * doc/extend.texi (__builtin_object_size):
23180 Use @pxref instead of @xref inside parenthesis.
23181 (__builtin_has_attribute): Add missing comma after @xref.
23182 (__builtin_object_size): Ditto.
23183 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
23185 2019-02-26 Jeff Law <law@redhat.com>
23187 PR rtl-optimization/87761
23188 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
23189 detect obviously dead insns and delete them.
23191 2019-02-26 Richard Biener <rguenther@suse.de>
23193 PR tree-optimization/89505
23194 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
23195 to handle restrict pointed-to vars with multiple subvars
23198 2019-02-26 Richard Biener <rguenther@suse.de>
23200 PR tree-optimization/89489
23201 * tree-parloops.c (create_loop_fn): Copy over last_clique.
23203 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23205 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
23206 and move around comment.
23207 <BIT_AND_EXPR>: Likewise.
23208 <BIT_NOT_EXPR>: Add specific handling for boolean types.
23210 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23213 * config/i386/i386.c (remove_partial_avx_dependency): Call
23214 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
23215 after changing possibly many instructions to use that pseudo. Fix up
23216 insertion of v4sf_const0 setter at the start of bb.
23218 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23221 * doc/extend.texi (Variadic Pointer Args): New section.
23223 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23224 Martin Sebor <msebor@gmail.com>
23226 * common.opt (Wattribute-alias): Likewise.
23227 * doc/invoke.texi (Option Summary): List general form of
23228 -Wattribute-alias=. List positive form of -Wmissing-attributes.
23229 (-Wmissing-attributes): Invert entry, rewrite and correct default.
23230 Add cross-references.
23231 (-Wattribute-alias): Rewrite and correct default. Mention
23232 considered attributes (same as for -Wmissing-attributes).
23234 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
23236 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
23237 (_mm_cvtpd_ps): Likewise.
23238 (_mm_cvttpd_epi32): Likewise.
23241 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
23242 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
23245 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
23247 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23250 * common/config/aarch64/aarch64-common.c
23251 (struct aarch64_option_extension): Add is_synthetic.
23252 (all_extensions): Use it.
23253 (TARGET_OPTION_INIT_STRUCT): Define hook.
23254 (struct gcc_targetm_common): Moved to end.
23255 (all_extensions_by_on): New.
23256 (opt_ext_cmp, typedef opt_ext): New.
23257 (aarch64_option_init_struct): New.
23258 (aarch64_contains_opt): New.
23259 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
23260 * config/aarch64/aarch64-option-extensions.def
23261 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
23262 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
23263 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
23264 Set is_synthetic to false.
23265 (crypto): Set is_synthetic to true.
23266 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
23269 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23271 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23272 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
23273 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23274 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
23275 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
23276 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
23277 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
23278 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
23280 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
23281 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23282 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
23283 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
23284 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
23285 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
23286 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
23287 vfmlsl_laneq_high_f16): ... To this.
23288 * config/arm/neon.md: Update comments.
23290 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23292 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23293 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
23294 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23295 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
23296 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
23297 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
23298 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
23299 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
23301 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
23302 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23303 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
23304 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
23305 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
23306 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
23307 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
23308 vfmlslq_laneq_high_f16): ... To this.
23310 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
23312 PR rtl-optimization/86096
23313 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
23314 comparing mw_order values.
23316 2019-02-25 Jakub Jelinek <jakub@redhat.com>
23319 * config/arm/arm.md (*subsi3_carryin_const): Use
23320 arm_neg_immediate_operand predicate instead of
23321 arm_not_immediate_operand, "L" constraint instead of "K" and
23322 print it using %n2 instead of %B2.
23323 (*subsi3_carryin_const0): New define_insn.
23324 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23325 instead of arm_not_operand and "I" constraint instead of "K" and
23326 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23327 another match_operand and in the condition check that it is negation
23329 (*subsi3_carryin_compare_const0): New define_ins.
23330 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23331 *subsi3_carryin_const.
23332 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23333 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23336 * config/arm.vfp.md (*negdf2_vfp): Use
23337 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23338 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23340 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23342 PR rtl-optimization/89445
23343 * simplify-rtx.c (simplify_ternary_operation): Don't use
23344 simplify_merge_mask on operands that may trap.
23345 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23346 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23347 second operand is CONST_VECTOR, check if any element could be zero.
23348 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23349 their operands can trap.
23351 2019-02-23 Martin Sebor <msebor@redhat.com>
23353 * gimple-ssa-sprintf.c (target_strtol): Rename...
23354 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23355 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23356 check for range error.
23358 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23361 * opts-common.c (prune_options): Also prune joined switches
23362 with Negative and RejectNegative.
23363 * config/i386/i386.opt (march=): Add Negative(march=).
23364 (mtune=): Add Negative(mtune=).
23365 * doc/options.texi: Document Negative used together with Joined
23366 and RejectNegative.
23368 2019-02-22 Martin Sebor <msebor@redhat.com>
23370 * doc/extend.texi (Other Builtins): Add
23371 __builtin_is_constant_evaluated.
23373 2019-02-22 Richard Biener <rguenther@suse.de>
23375 PR tree-optimization/87609
23376 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23378 2019-02-22 Jeff Law <law@redhat.com>
23380 PR rtl-optimization/87761
23381 * config/mips/mips.md: Add new combiner pattern to recognize
23382 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23384 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23387 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23388 destination register in peepholes generating patterns for ADDS/SUBS.
23389 (add<mode>3_compare0,
23390 *addsi3_compare0_uxtw, add<mode>3_compareC,
23391 add<mode>3_compareV_imm, add<mode>3_compareV,
23392 *adds_<optab><ALLX:mode>_<GPI:mode>,
23393 *subs_<optab><ALLX:mode>_<GPI:mode>,
23394 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23395 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23396 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23397 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23398 sub<mode>3_compare1): Allow stack pointer for source register.
23399 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23401 2019-02-22 Martin Sebor <msebor@redhat.com>
23403 PR tree-optimization/88993
23404 PR tree-optimization/88853
23405 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23407 (sprintf_dom_walker::call_info::is_string_func): New helper.
23408 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23409 for formatted string functions.
23410 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23412 2019-02-22 Martin Sebor <msebor@redhat.com>
23415 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23416 unreachable subexpressions.
23418 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23419 Hongtao Liu <hongtao.liu@intel.com>
23420 Sunil K Pandey <sunil.k.pandey@intel.com>
23423 * config/i386/i386-passes.def: Add
23424 pass_remove_partial_avx_dependency.
23425 * config/i386/i386-protos.h
23426 (make_pass_remove_partial_avx_dependency): New.
23427 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23429 (pass_data_remove_partial_avx_dependency): New.
23430 (pass_remove_partial_avx_dependency): Likewise.
23431 (make_pass_remove_partial_avx_dependency): Likewise.
23432 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23433 (*extendsfdf2): Add avx_partial_xmm_update.
23434 (truncdfsf2): Likewise.
23435 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23436 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23438 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23440 PR middle-end/85598
23441 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23444 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23447 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23448 (PTA_SKYLAKE): Add PTA_AES.
23449 (PTA_GOLDMONT): Likewise.
23451 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23453 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23454 instruction if enabled.
23455 (aarch64_override_options): Remove reference to return address key.
23457 2019-02-22 Richard Biener <rguenther@suse.de>
23459 PR tree-optimization/89440
23460 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23461 not necessary assert.
23463 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23466 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23467 (oacc_replace_fn_attrib_attr): ... this new function.
23468 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23469 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23471 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23473 * config/arm/arm-cpus.in (ares): Rename to...
23474 (neoverse-n1): ... This. Add ares as alias.
23475 * config/arm/arm-tables.opt: Regenerate.
23476 * config/arm/arm-tune.md: Likewise.
23477 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23479 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23481 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23482 * config/aarch64/aarch64-tune.md: Regenerate.
23483 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23485 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23487 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23488 (neoversen1_tunings): ... This.
23489 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23490 (neoverse-n1): New CPU.
23491 * config/aarch64/aarch64-tune.md: Regenerate.
23492 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23494 2019-02-22 Richard Biener <rguenther@suse.de>
23496 PR middle-end/87609
23497 * cfghooks.h (dependence_hash): New typedef.
23498 (struct copy_bb_data): New type.
23499 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23500 (duplicate_block): Likewise.
23501 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23502 (copy_bbs): Create and pass down copy_bb_data.
23503 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23504 (rtl_duplicate_bb): Likewise.
23505 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23506 remap dependence info.
23508 2019-02-22 Richard Biener <rguenther@suse.de>
23510 PR tree-optimization/87609
23511 * tree-core.h (tree_base): Document special clique values.
23512 * tree-inline.c (remap_dependence_clique): Do not use the
23513 special clique value of one.
23514 (maybe_set_dependence_info): Use clique one.
23515 (clear_dependence_clique): New callback.
23516 (compute_dependence_clique): Clear clique one from all refs
23517 before assigning it (again).
23519 2019-02-21 Martin Sebor <msebor@redhat.com>
23521 * doc/extend.texi (__clear_cache): Correct signature.
23523 2019-02-21 Ian Lance Taylor <iant@golang.org>
23526 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23527 than output_constant_def.
23528 (add_constant_to_table): New static function.
23529 (output_constant_def): Call add_constant_to_table.
23530 (tree_output_constant_def): Likewise.
23532 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23535 * builtins.c (fold_builtin_arith_overflow): If first two args are
23536 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23539 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23542 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23543 error for -mindirect-branch/-mfunction-return with incompatible
23546 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23549 * constraints.md (q): Remove.
23550 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23553 2019-02-21 Martin Jambor <mjambor@suse.cz>
23556 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23557 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23558 (omp_adjust_for_condition): ...here. Added necessary parameters.
23559 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23560 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23561 proper values to new parameters of omp_adjust_for_condition.
23563 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23565 PR middle-end/89412
23566 * expr.c (expand_assignment): If result is a MEM, use change_address
23567 instead of simplify_gen_subreg.
23569 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23570 David Malcolm <dmalcolm@redhat.com>
23572 PR middle-end/89091
23573 * fold-const.c (decode_field_reference): Return NULL_TREE if
23574 lang_hooks.types.type_for_size returns NULL. Check it before
23575 overwriting *exp_. Use return NULL_TREE instead of return 0.
23577 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23579 PR middle-end/88074
23580 PR middle-end/89415
23581 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23584 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23587 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23588 TARGET_SSE in addition to TARGET_SSE_MATH.
23590 (ix86_excess_precision): Ditto.
23591 (ix86_float_exceptions_rounding_supported_p): Ditto.
23592 (use_rsqrt_p): Ditto.
23593 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23595 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23598 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23599 linenum_arith_t when determining if two adjacent line spans are
23600 close enough to merge.
23601 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23602 lines within each line_span.
23604 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23607 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23608 paradoxical SUBREGS.
23610 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23613 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23614 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23615 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23618 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23620 * config/gcn/gcn.c (print_operand): Fix typo.
23622 2019-02-19 Richard Biener <rguenther@suse.de>
23624 PR middle-end/88074
23625 * toplev.c (do_compile): Initialize mpfr's exponent range
23626 based on available float modes.
23628 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23630 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23631 as long as the epilogue isn't completed.
23633 2019-02-18 Martin Sebor <msebor@redhat.com>
23635 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23636 __has_cpp_attribute, and __has_include.
23638 2019-02-18 Martin Sebor <msebor@redhat.com>
23640 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23642 2019-02-18 Martin Sebor <msebor@redhat.com>
23644 PR middle-end/89294
23645 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23647 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23649 2019-02-18 Richard Biener <rguenther@suse.de>
23651 PR tree-optimization/89296
23652 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23653 of no-warning flag to cases that might emit the bogus warning.
23655 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23658 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23660 * config/arm/vfp.md (*movdi_vfp): Likewise.
23661 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23662 "q" constraint for operands[0].
23665 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23666 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23667 pattern in a temporary buffer.
23668 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23669 than 64-operands[2].
23672 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23673 s390_indirect_branch_settings): Define unconditionally.
23674 (s390_set_current_function): Likewise, but guard the whole body except
23675 the s390_indirect_branch_settings call with
23676 #if S390_USE_TARGET_ATTRIBUTE.
23677 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23679 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23680 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23681 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23682 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23683 HOST_WIDE_INT_1U instead of 1ULL.
23684 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23685 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23686 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23687 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23689 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23692 2019-02-18 Martin Jambor <mjambor@suse.cz>
23694 PR tree-optimization/89209
23695 * tree-sra.c (create_access_replacement): New optional parameter
23696 reg_tree. Use it as a type if non-NULL and access type is not of
23698 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23699 to create_access_replacement.
23700 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23701 Check lacc is non-NULL before attempting to re-create it on the RHS.
23703 2019-02-18 Martin Liska <mliska@suse.cz>
23706 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23708 (symbol_table::free_edge): Recycle m_summary_id.
23709 * cgraph.h (get_summary_id): New.
23710 (symbol_table::release_symbol): Set m_summary_id to -1
23712 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23713 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23714 function_summary to fast_function_summary.
23715 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23716 * ipa-pure-const.c (class funct_state_summary_t):
23717 Switch from function_summary to fast_function_summary.
23718 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23719 (class ipa_ref_opt_summary_t): Switch from function_summary
23720 to fast_function_summary.
23721 * symbol-summary.h (class function_summary_base): New class
23722 that is created from base of former function_summary.
23723 (function_summary_base::unregister_hooks): New.
23724 (class function_summary): Inherit from function_summary_base.
23725 (class call_summary_base): New class
23726 that is created from base of former call_summary.
23727 (class call_summary): Inherit from call_summary_base.
23728 (struct is_same): New.
23729 (class fast_function_summary): New summary class.
23730 (class fast_call_summary): New summary class.
23731 * vec.h (vec_safe_grow_cleared): New function.
23733 2019-02-18 Martin Liska <mliska@suse.cz>
23735 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23736 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23737 * doc/tm.texi: Document new target hook.
23738 * doc/tm.texi.in: Likewise.
23739 * target.def: Add new target macro.
23740 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23743 2019-02-17 Alan Modra <amodra@gmail.com>
23746 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23747 output reg on add insn.
23748 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23750 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23753 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23754 (PMULHRSW): Likewise.
23755 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23757 (ssse3_pmulhrswv4hi3): New expander.
23759 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23761 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23762 MMX. Add isa attribute.
23764 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23766 PR rtl-optimization/66152
23767 * builtins.h (c_readstr): Declare.
23768 * builtins.c (c_readstr): Remove forward declaration. Add
23769 null_terminated_p argument, if false, read all bytes from the
23770 string instead of stopping after '\0'.
23771 * expr.c (string_cst_read_str): New function.
23772 (store_expr): Use string_cst_read_str instead of
23773 builtin_strncpy_read_str. Try to store by pieces the whole
23774 exp_len first, and only if that fails, split it up into
23775 store by pieces followed by clear_storage. Formatting fix.
23777 * config/i386/i386.md (*movqi_internal): Remove static from
23778 buf variable. Use output_asm_insn (buf, operands); return "";
23779 instead of return buf;.
23780 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23781 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23782 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23784 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23786 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23787 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23788 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23789 (CC1_SPEC): Likewise.
23790 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23792 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23794 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23795 the base address on 64-bit strict-alignment platforms.
23797 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23799 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23801 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23803 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23805 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23807 PR rtl-optimization/88308
23808 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23809 on copied instruction.
23811 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23813 * final.c (insn_current_reference_address): Replace test on JUMP_P
23814 with test on jump_to_label_p.
23815 * config/visium/visium-passes.def: New file.
23816 * config/visium/t-visium (PASSES_EXTRA): Define.
23817 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23818 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23819 (TRAMPOLINE_ALIGNMENT): Define.
23820 * config/visium/visium.c (visium_option_override): Do not register
23821 the machine-specific reorg pass here.
23822 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23824 (output_branch): Adjust threshold for long branch instruction.
23825 * config/visium/visium.md (cpu): Move around.
23826 (length): Adjust for the GR6.
23828 2019-02-15 Richard Biener <rguenther@suse.de>
23829 Jakub Jelinek <jakub@redhat.com>
23831 PR tree-optimization/89278
23832 * tree-loop-distribution.c: Include tree-eh.h.
23833 (generate_memset_builtin, generate_memcpy_builtin): Call
23834 rewrite_to_non_trapping_overflow on builtin->size before passing it
23835 to force_gimple_operand_gsi.
23837 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23840 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23842 * opth-gen.awk: Likewise.
23844 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23846 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23847 Enable MMX, SSE and SSE2 by default.
23848 * config/i386/i386.c (ix86_option_override_internal): Do not
23849 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23851 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23853 PR rtl-optimization/89354
23854 * combine.c (make_extraction): Punt if extraction_mode is narrower
23857 2019-02-14 Maya Rashish <coypu@sdf.org>
23859 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23860 * config/netbsd-d.c: New file.
23861 * config/t-netbsd: Add netbsd-d.o
23863 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23865 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23866 affects_type_identity to true for aarch64_vector_pcs.
23867 (aarch64_comp_type_attributes): New function.
23868 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23870 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23873 * config/arm/iterators.md (ANY64): Add V4HF.
23875 2019-02-14 Martin Liska <mliska@suse.cz>
23877 PR rtl-optimization/89242
23878 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23879 process a transformation.
23881 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23883 PR tree-optimization/89314
23884 * fold-const.c (fold_binary_loc): Cast strlen argument to
23885 const char * before dereferencing it. Formatting fixes.
23887 PR middle-end/89284
23888 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23890 2019-02-13 Ian Lance Taylor <iant@golang.org>
23892 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23893 and set current index for other optimizations.
23895 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23897 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23898 nonimmediate_operand as operand 2 predicate.
23899 (vec_set<VF2_512_256:mode>_0): Ditto.
23900 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23901 (*vec_concatv2si): Remove alternative 2.
23902 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23903 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23904 (vec_concatv2di): Split alternatives 4,5,6 to ...
23905 (*vec_concatv2di_0) ... new pattern.
23907 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23910 * config/arm/arm.c (ldm_stm_operation_p) Set
23911 addr_reg_in_reglist correctly for first register.
23912 (load_multiple_sequence): Remove dead base check.
23913 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23915 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23918 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23919 Expose as @aarch64_pred_mov.
23920 * config/aarch64/aarch64.c (aarch64_classify_address):
23921 Use expand_insn which legitimizes operands.
23923 2019-02-13 Martin Liska <mliska@suse.cz>
23925 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23926 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23927 and pointer_offset fields.
23928 (initialize_argument_information): Remove usage of dead
23930 * cgraph.h (struct cgraph_thunk_info): Remove
23931 add_pointer_bounds_args.
23932 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23934 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23936 * config/i386/i386.c (ix86_function_arg_advance): Remove
23938 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23939 (def_builtin): Remove usage of dead fields.
23940 (ix86_add_new_builtins): Likewise.
23941 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23942 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23943 (sem_function::init): Likewise.
23944 (sem_variable::merge): Likewise.
23945 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23946 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23947 * lto-cgraph.c (lto_output_node): Likewise.
23948 (lto_output_varpool_node): Likewise.
23949 (input_node): Likewise.
23950 (input_varpool_node): Likewise.
23951 * lto-streamer-out.c (lto_output): Likewise.
23952 * tree-inline.c (expand_call_inline): Remove usage of
23954 * tree-inline.h (struct copy_body_data): Likewise.
23955 * varpool.c (varpool_node::dump): Likewise.
23957 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23959 PR middle-end/89303
23960 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23961 into pt->vars_contains_escaped_heap instead of setting
23962 pt->vars_contains_escaped_heap to it.
23964 PR middle-end/89281
23965 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23966 INTVAL (size), compare it to GET_MODE_MASK instead of
23967 1 << GET_MODE_BITSIZE.
23970 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23971 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23974 2019-02-13 Martin Liska <mliska@suse.cz>
23977 * cfgrtl.c (remove_barriers_from_footer): New function.
23978 (try_redirect_by_replacing_jump): Use it.
23979 (cfg_layout_redirect_edge_and_branch): Likewise.
23981 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23983 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23984 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23985 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23986 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23987 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23988 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23990 * config/rs6000/rs6000.c (builtin_function_type)
23991 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23992 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23993 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23994 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23995 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23997 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23999 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
24000 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
24002 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
24005 * config/i386/i386.md (*movoi_internal_avx): Revert revision
24006 268678 and revision 268657.
24007 (*movti_internal): Likewise.
24009 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
24012 * config/s390/s390.c (s390_decompose_address): Update comment.
24013 (s390_check_qrst_address): Reject invalid address forms after
24016 2019-02-12 Martin Liska <mliska@suse.cz>
24019 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
24020 we need default values of funct_state for a function that
24023 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
24025 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
24026 the object to pick the size of stores on strict-alignment platforms.
24028 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
24029 (*movdi_insn_sp32): Likewise.
24030 (*movdi_insn_sp64): Likewise.
24032 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
24035 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
24036 types that needs constructiong.
24037 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
24039 2019-02-12 Richard Biener <rguenther@suse.de>
24041 PR tree-optimization/89253
24042 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
24043 duplicate the loop.
24045 2019-02-11 David Malcolm <dmalcolm@redhat.com>
24048 * input.c (selftest::test_line_offset_overflow): New selftest.
24049 (selftest::input_c_tests): Call it.
24051 2019-02-11 Martin Sebor <msebor@redhat.com>
24053 PR tree-optimization/88771
24054 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
24055 when -Wstringop-overflow is set.
24056 (builtin_memref::builtin_memref): Adjust excessive upper bound
24057 only when lower bound is not excessive.
24058 (maybe_diag_overlap): Detect and diagnose excessive bounds via
24059 -Wstringop-ovefflow.
24060 (maybe_diag_offset_bounds): Rename...
24061 (maybe_diag_access_bounds): ...to this.
24062 (check_bounds_or_overlap): Adjust for name change above.
24064 2019-02-11 Martin Sebor <msebor@redhat.com>
24067 * builtins.c (max_object_size): Move from here...
24068 * builtins.h (max_object_size): ...and here...
24069 * tree.c (max_object_size): ...to here...
24070 * tree.h (max_object_size): ...and here.
24072 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
24074 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
24075 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
24076 for correct semantics.
24078 2019-02-11 Alan Modra <amodra@gmail.com>
24080 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
24081 -mlongcall and -mpltseq.
24082 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
24083 (RS/6000 and PowerPC Options <-mpltseq>): Document.
24084 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
24085 * config/rs6000/sysv4.opt (mpltseq): New option.
24086 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
24087 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
24088 support is lacking. Don't allow -mpltseq with -mbss-plt.
24089 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
24090 -mpltseq given for ELFv1.
24091 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
24092 Only use UNSPEC_PLTSEQ for inline PLT calls.
24093 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
24094 use UNSPEC_PLTSEQ for inline PLT calls.
24095 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
24096 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
24097 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
24098 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24099 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24100 (pltseq_mtctr_<mode>): Likewise.
24102 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24104 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
24106 * configure: Regenerate.
24108 2019-02-11 Jakub Jelinek <jakub@redhat.com>
24111 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
24114 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24116 * function.c (assign_parm_setup_block): Use the stored
24117 size, not the passed size, when allocating stack-space,
24118 also for a parameter with alignment larger than
24119 MAX_SUPPORTED_STACK_ALIGNMENT.
24121 2019-02-11 Martin Liska <mliska@suse.cz>
24124 * ipa-cp.c (build_toporder_info): Remove usage of a param.
24125 * ipa-inline.c (inline_small_functions): Likewise.
24126 * ipa-pure-const.c (propagate_pure_const): Likewise.
24127 (propagate_nothrow): Likewise.
24128 * ipa-reference.c (propagate): Likewise.
24129 * ipa-utils.c (struct searchc_env): Remove unused field.
24130 (searchc): Always search across AVAIL_INTERPOSABLE.
24131 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
24132 the only called IPA pure const can properly not propagate
24133 across interposable boundary.
24134 * ipa-utils.h (ipa_reduced_postorder): Remove param.
24136 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
24138 * config/nds32/nds32.md (call_internal, call_value_internal,
24139 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
24141 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24143 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
24146 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
24148 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
24151 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24153 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
24155 2019-02-10 Jakub Jelinek <jakub@redhat.com>
24157 PR tree-optimization/89268
24158 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
24159 if preds is non-NULL.
24161 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24164 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
24167 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24169 * config/nds32/nds32.md (trap): New pattern.
24171 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24173 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
24176 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24178 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
24181 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24183 * ipa-visibility.c (localize_node): Also do not localize
24184 LDPR_PREVAILING_DEF_IRONLY_EXP.
24186 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24189 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
24190 instead of type_with_linkage.
24192 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24195 * params.def (uninlined-function-insns, uninlined-function-time,
24196 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
24197 bound so we don't get overflows.
24199 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
24201 * config/rs6000/rs6000-string.c (expand_compare_loop,
24202 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
24205 2019-02-09 Jakub Jelinek <jakub@redhat.com>
24207 PR middle-end/89246
24208 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24209 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
24210 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
24212 2019-02-09 Alan Modra <amodra@gmail.com>
24215 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
24216 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
24219 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
24221 PR middle-end/88560
24222 * lra-constraints.c (process_alt_operands): Don't increase reject
24223 for memory when offset memory is required.
24225 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
24227 * config/s390/vector.md: Implement vector copysign.
24229 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24231 * expr.c (expand_constructor): Correct indentations.
24233 2019-02-08 Richard Biener <rguenther@suse.de>
24235 PR tree-optimization/89247
24236 * tree-if-conv.c: Include tree-cfgcleanup.h.
24237 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
24238 (tree_if_conversion): Pass through predicate vector.
24239 (pass_if_conversion::execute): Do CFG cleanup and SSA update
24240 inline, see if any if-converted loops we refrece in
24241 LOOP_VECTORIZED calls vanished and fixup.
24242 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
24244 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
24246 * config/s390/constraints.md (jdd): New constraint.
24248 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24251 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
24252 upper 16 vector registers without TARGET_AVX512VL.
24253 (*movti_internal): Likewise.
24255 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24257 PR rtl-optimization/89234
24258 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
24259 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
24260 (copy_reg_eh_region_note_backward): Likewise.
24262 2019-02-08 Richard Biener <rguenther@suse.de>
24264 PR middle-end/89223
24265 * tree-data-ref.c (initialize_matrix_A): Fail if constant
24266 doesn't fit in HWI.
24267 (analyze_subscript_affine_affine): Handle failure from
24268 initialize_matrix_A.
24270 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24272 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
24275 2019-02-07 David Malcolm <dmalcolm@redhat.com>
24277 PR tree-optimization/86637
24278 PR tree-optimization/89235
24279 * tree-vect-loop.c (optimize_mask_stores): Add an
24280 auto_purge_vect_location sentinel to ensure that vect_location is
24282 * tree-vectorizer.c
24283 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
24284 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
24285 to ensure that vect_location is purged on exit.
24286 (pass_slp_vectorize::execute): Likewise, replacing the manual
24288 * tree-vectorizer.h (class auto_purge_vect_location): New class.
24290 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24292 * config/aarch64/iterators.md (max_opp): New code_attr.
24293 (USMAX): New code iterator.
24294 * config/aarch64/predicates.md (aarch64_smin): New predicate.
24295 (aarch64_smax): Likewise.
24296 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
24297 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
24300 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
24303 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
24304 for TARGET_AVX512VL.
24305 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
24307 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
24309 * config/s390/s390-builtin-types.def: Add new types.
24310 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
24311 (s390_vec_xlw4): Make the memory operand into a const pointer.
24312 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
24314 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
24315 a new vector type with the alignment of the scalar memory operand.
24317 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
24318 Jakub Jelinek <jakub@redhat.com>
24321 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24322 arm_count_ldrdstrd_insns): New declarations.
24323 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24325 (valid_operands_ldrd_strd): New function.
24326 (arm_count_ldrdstrd_insns): New function.
24327 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24328 sets instead of single DImode set and define new insns to match this.
24330 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24332 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24333 Make it a C initializer.
24335 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24338 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24340 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24342 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24343 Use neon_dot<q> for type.
24344 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24346 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24348 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24349 Use neon_dot<q> for type.
24350 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24351 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24353 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24355 PR rtl-optimization/89225
24356 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24359 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24361 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24362 after restoring registers saved to allocate the frame on Windows.
24364 2019-02-06 Richard Biener <rguenther@suse.de>
24366 PR tree-optimization/89182
24367 * graphite.h (cached_scalar_evolution_in_region): Declare.
24368 * graphite.c (struct seir_cache_key): New.
24369 (struct sese_scev_hash): Likewise.
24370 (seir_cache): New global.
24371 (cached_scalar_evolution_in_region): New function.
24372 (graphite_transform_loops): Allocate and release seir_cache.
24373 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24374 cached_scalar_evolution_in_region.
24375 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24377 (scop_detection::graphite_can_represent_expr: Use
24378 cached_scalar_evolution_in_region.
24379 (scop_detection::stmt_simple_for_scop_p): Likewise.
24380 (find_params_in_bb): Likewise.
24381 (gather_bbs::before_dom_children): Likewise.
24382 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24383 (add_loop_constraints): Likewise.
24385 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24387 PR middle-end/89210
24388 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24389 operand to new_unary_operation only if both element types are integral
24390 and it isn't a widening conversion. Return NULL_TREE if
24391 new_unary_operation failed.
24393 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24396 * config/s390/s390.md: Remove load and test FP splitter.
24398 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24401 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24402 expand_compare_loop, expand_block_compare_gpr,
24403 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24404 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24405 #include "profile-count.h" and "predict.h" for types and functions
24406 needed to work with REG_BR_PROB notes.
24408 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24411 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24412 for the long branch case.
24414 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24417 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24418 can throw, non-call exceptions are enabled and we can't delete
24419 dead exceptions or alter cfg. Set must_clean if
24420 delete_insn_and_edges returns true, don't set it blindly for calls.
24421 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24423 PR rtl-optimization/89195
24424 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24425 of the original MEM.
24427 2019-02-05 Martin Liska <mliska@suse.cz>
24429 PR gcov-profile/89000
24430 * gcov.c (function_summary): Remove argument.
24431 (file_summary): New function.
24432 (print_usage): Replace tabs with spaces.
24433 (generate_results): Use new function file_summary.
24435 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24438 * optabs.c (prepare_cmp_insn): Pass x and y to
24439 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24441 2019-02-05 Richard Biener <rguenther@suse.de>
24443 PR middle-end/89150
24444 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24445 (struct bitmap_element): Drop chain_prev so we properly recurse on
24446 the prev member, supporting tree views.
24447 (struct bitmap_head): GTY skip the obstack member.
24449 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24452 * doc/extend.texi (Vector Extensions): Add an example of using vector
24453 types together with x86 intrinsics.
24455 2019-02-04 Alan Modra <amodra@gmail.com>
24457 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24458 str[] size to 160, and comment.
24460 2019-02-04 Alan Modra <amodra@gmail.com>
24462 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24463 (rs6000_pltseq_template): Guard output of TLS markers with
24464 TARGET_TLS_MARKERS.
24465 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24466 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24467 to use inline PLT sequences.
24468 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24469 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24470 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24472 2019-02-04 Martin Liska <mliska@suse.cz>
24475 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24476 out when ipa_fn_summaries does not contain entry for callee.
24478 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24480 * config/sparc/sparc.h: Remove superfluous blank lines.
24481 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24482 (got_register_rtx): ...this.
24483 (sparc_got): Adjust to above renaming.
24484 (sparc_tls_got): Likewise.
24485 (sparc_delegitimize_address): Likewise.
24486 (sparc_output_mi_thunk): Likewise.
24487 (sparc_init_pic_reg): Likewise.
24488 (save_local_or_in_reg_p): Fix test on the GOT register.
24489 (USE_HIDDEN_LINKONCE): Move around.
24490 (get_pc_thunk_name): Likewise.
24491 (gen_load_pcrel_sym): Likewise.
24492 (load_got_register): Likewise.
24494 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24496 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24497 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24499 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24501 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24502 into consideration.
24504 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24506 * config.gcc (with_nds32_lib, glibc):
24507 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24508 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24509 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24511 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24514 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24515 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24516 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24517 (*rcpsf2_sse): Ditto.
24518 (*rsqrtsf2_sse): Ditto.
24519 (sse4_1_round<mode<2): Ditto.
24521 2019-02-03 Richard Biener <rguenther@suse.de>
24524 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24527 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24529 PR middle-end/87887
24530 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24531 Punt with warning on aggregate return or argument types. Ignore
24532 type/mode checking for uniform arguments.
24534 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24536 * combine.c (try_combine): Do not print "Can't combine" messages unless
24537 printing failed combination attempts.
24539 2019-02-01 Martin Jambor <mjambor@suse.cz>
24542 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24543 segment and global segment variables before making them static.
24545 2019-02-01 Martin Jambor <mjambor@suse.cz>
24547 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24548 missed optimization dump with dump_enabled_p.
24550 2019-02-01 Richard Biener <rguenther@suse.de>
24552 PR middle-end/88597
24553 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24554 the instantiate cache.
24555 (instantiate_scev_binary): Elide second operand procesing
24556 if equal to the first.
24557 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24558 (chrec_contains_undetermined): Likewise.
24559 (tree_contains_chrecs): Likewise.
24561 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24563 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24565 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24567 PR tree-optimization/89143
24568 * wide-int-range.h (wide_int_range_absu): Declare.
24569 * wide-int-range.cc (wide_int_range_absu): New function.
24570 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24572 PR tree-optimization/88107
24573 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24574 instead of assertion that eh_region_outermost is non-NULL, if it
24575 is NULL, set *ALL to true and return NULL.
24576 (move_sese_region_to_fn): Adjust caller, if all is set, call
24577 duplicate_eh_regions with NULL region.
24579 2019-02-01 Richard Biener <rguenth@suse.de>
24581 PR rtl-optimization/88593
24582 * mode-switching.c (optimize_mode_switching): Free dominators before
24583 calling cleanup_cfg.
24585 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24587 PR tree-optimization/88932
24588 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24590 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24592 PR middle-end/89137
24593 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24594 bogus clang warning.
24596 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24599 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24600 alternative to avoid partial SSE register stall for TARGET_AVX.
24601 (truncdfsf2): Ditto.
24602 (sse4_1_round<mode>2): Ditto.
24604 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24606 PR tree-optimization/89008
24607 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24608 process anything of the form X * 0.
24610 2019-01-31 Richard Biener <rguenther@suse.de>
24612 PR tree-optimization/89135
24613 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24614 with abnormal preds.
24616 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24619 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24620 always_inline callees into no_sanitize_address callers.
24622 2019-01-31 Richard Biener <rguenther@suse.de>
24624 PR rtl-optimization/89115
24625 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24627 2019-01-30 Martin Sebor <msebor@redhat.com>
24630 * doc/extend.texi (cast to a union): Correct and expand.
24632 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24634 PR rtl-optimization/87246
24635 * lra-constraints.c (simplify_operand_subreg): Reload memory
24636 in subreg if the address became invalid.
24638 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24641 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24642 Disable for little-endian.
24644 2019-01-30 Richard Biener <rguenther@suse.de>
24646 PR rtl-optimization/89115
24647 * opts.c (default_options_optimization): Reduce
24648 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24649 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24652 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24654 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24655 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24656 type of vector element when vec_extract is implemented by direct
24659 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24661 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24663 2019-01-30 Richard Biener <rguenther@suse.de>
24665 PR tree-optimization/89111
24666 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24667 canonicalization to appropriately sized access types.
24669 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24672 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24673 for arguments to functions that are TU-local and shouldn't be
24674 referenced by assembly.
24676 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24678 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24681 2019-01-29 Martin Sebor <msebor@redhat.com>
24684 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24686 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24690 * omp-simd-clone.c (simd_clone_clauses_extract)
24691 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24692 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24694 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24696 * config.gcc: Force .init_array for ARC.
24698 2019-01-29 Richard Biener <rguenther@suse.de>
24701 * dwarf2out.c (collect_skeleton_dies): New helper.
24702 (copy_decls_for_unworthy_types): Call it.
24703 (build_abbrev_table): Assert we do not try to replace
24704 DW_AT_signature refs with local refs.
24706 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24708 PR middle-end/89002
24709 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24710 for lastprivate/linear IV, push gimplify context around gimplify_assign
24711 and, if it needed any temporaries, pop it into a gimple bind around the
24714 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24716 * common.opt (-Wattribute-alias): Remove "no-" from name.
24717 Make -Wattribute-alias command line option and
24718 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24720 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24723 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24724 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24726 (bmi2): Add missing @opindex.
24727 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24728 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24729 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24730 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24731 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24732 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24733 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24734 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24735 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24736 xsavec, xsaveopt and xsaves options.
24738 2019-01-28 Richard Biener <rguenther@suse.de>
24741 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24744 2019-01-28 Richard Biener <rguenther@suse.de>
24746 PR tree-optimization/88739
24747 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24748 BIT_FIELD_REFs only are applied to mode-precision operands
24749 when they are integral.
24750 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24751 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24752 BIT_FIELD_REFs of non-mode-precision integral operands.
24754 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24757 * config/i386/sse.md
24758 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24759 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24760 first constants in pairs are multiples of 2. Formatting fixes.
24761 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24762 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24763 first constants in each quadruple are multiples of 4. Formatting fixes.
24765 2019-01-26 Martin Jambor <mjambor@suse.cz>
24768 * tree-inline.c: Include tree-cfgcleanup.h.
24769 (delete_unreachable_blocks_update_callgraph): Move...
24770 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24771 ...here, make externally visible, make second argument bool, adjust
24773 * tree-cfgcleanup.c: Include cgraph.h.
24774 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24776 * ipa-prop.c: Include tree-cfgcleanup.h.
24777 (ipcp_transform_function): Call
24778 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24780 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24782 PR rtl-optimization/88846
24783 * ira.c (process_set_for_memref_referenced_p): New.
24784 (memref_referenced_p): Add new param. Use
24785 process_set_for_memref_referenced_p. Add new switch cases.
24786 (memref_used_between_p): Pass new arg to memref_referenced_p.
24788 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24791 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24792 argument ABI_BREAK. Set to true if the calculated alignment has
24793 changed in gcc-9. Check bit-fields for their base type alignment.
24794 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24795 (aarch64_function_arg_boundary): Likewise.
24796 (aarch64_gimplify_va_arg_expr): Likewise.
24798 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24800 PR middle-end/89037
24801 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24802 instead of accessing TREE_INT_CST_ELT directly.
24804 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24806 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24807 fenv_exceptions description.
24809 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24811 PR rtl-optimization/87763
24812 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24813 Allow SUBREG when matching CC_NZmode compare.
24815 2019-01-25 Richard Biener <rguenther@suse.de>
24817 PR tree-optimization/89049
24818 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24819 Look at the pattern stmt to determine if the stmt is vectorized.
24821 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24823 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24824 (pred_mov<mode>): Handle all-register forms using both a new
24825 alternative and a split.
24827 2019-01-25 Richard Biener <rguenther@suse.de>
24829 PR tree-optimization/86865
24830 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24831 Reject non-do-while loops.
24833 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24835 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24836 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24837 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24838 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24839 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24840 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24841 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24842 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24843 vlogical_operand, gpc_reg_operand, int_reg_operand,
24844 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24845 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24846 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24847 (save_world_operation, restore_world_operation, lmw_operation,
24848 stmw_operation): Use MEM_P and REG_P.
24849 (tie_operand): Use MEM_P.
24850 (vrsave_operation, crsave_operation): Use REG_P.
24851 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24852 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24853 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24854 (call_operand): Use HARD_REGISTER_P.
24855 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24857 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24858 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24859 quad_aligned_load_p, replace_swapped_aligned_store,
24860 recombine_lvx_pattern, replace_swapped_aligned_load,
24861 recombine_stvx_pattern): Use MEM_P.
24862 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24863 Use MEM_P and SYMBOL_REF_P.
24864 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24865 (insn_is_swappable_p): Use REG_P and MEM_P.
24866 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24867 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24869 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24870 Use CONST_DOUBLE_P.
24871 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24873 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24874 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24875 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24876 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24878 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24879 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24880 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24881 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24882 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24883 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24884 rs6000_split_logical_di): Use CONST_INT_P.
24885 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24886 REG_P and SYMBOL_REF_P.
24887 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24888 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24889 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24890 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24891 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24892 (small_data_operand, print_operand_address): Use CONST_INT_P and
24894 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24895 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24896 Use HARD_REGISTER_NUM_P.
24897 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24898 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24899 SUBREG_P and SYMBOL_REF_P.
24900 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24901 and HARD_REGISTER_NUM_P.
24902 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24904 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24905 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24907 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24908 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24909 find_addr_reg): Use REG_P.
24910 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24911 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24912 (offsettable_ok_by_alignment, constant_pool_expr_p,
24913 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24914 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24915 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24916 rs6000_assemble_integer, create_TOC_reference,
24917 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24918 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24919 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24920 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24921 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24922 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24923 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24924 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24925 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24926 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24927 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24928 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24929 and cbranch<mode>4): Use CONST_INT_P.
24930 (multiple define_splits): Use REG_P and SUBREG_P.
24931 (define_expands call, call_value): Use MEM_P.
24932 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24933 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24934 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24935 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24936 and HARD_REGISTER_NUM_P.
24937 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24939 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24941 PR rtl-optimization/88948
24942 * rtl.h (prepare_copy_insn): New prototype.
24943 * gcse.c (prepare_copy_insn): New function, split out from
24944 process_insert_insn.
24945 (process_insert_insn): Use prepare_copy_insn.
24946 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24947 instead of gen_move_insn.
24949 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24952 * config/i386/i386.c (ix86_pic_register_p): Return true for
24953 UNSPEC_SET_GOT too.
24955 PR tree-optimization/88964
24956 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24957 punt if HONOR_SNANS (chrec).
24959 PR middle-end/89015
24960 * tree-nested.c (convert_nonlocal_reference_stmt,
24961 convert_local_reference_stmt, convert_tramp_reference_stmt,
24962 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24963 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24964 or GIMPLE_OMP_TASK.
24966 PR tree-optimization/89027
24967 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24968 for "omp simd array" variables.
24970 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24973 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24974 force the alignment of m_val.
24976 2019-01-24 Richard Biener <rguenther@suse.de>
24979 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24980 When in "legacy" debug mode make sure to reset self-origins.
24982 2019-01-24 Martin Liska <mliska@suse.cz>
24984 PR gcov-profile/88994
24985 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24986 result will be always smaller or equal to the original.
24987 * gcov.c (mangle_name): Fix else branch where we should
24988 also copy to PTR and shift the pointer.
24990 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24992 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24993 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24995 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24997 * common/config/i386/i386-common.c
24998 (OPTION_MASK_ISA_ENQCMD_SET,
24999 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
25000 (ix86_handle_option): Handle -menqcmd.
25001 * config.gcc (enqcmdintrin.h): New header file.
25002 * config/i386/cpuid.h (bit_ENQCMD): New bit.
25003 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25005 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
25007 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
25008 __builtin_ia32_enqcmds): New builtins.
25009 * config/i386/i386-c.c (__ENQCMD__): New macro.
25010 * config/i386/i386-option.c (ix86_target_string): Add
25012 (ix86_valid_target_attribute_inner_p): Likewise.
25013 * config/i386/i386-expand.c
25014 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
25015 IX86_BUILTIN_ENQCMDS.
25016 * config/i386/i386.h (TARGET_ENQCMD): New.
25017 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
25018 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
25019 (movdir64b_<mode>): Parameterize to enable share expansion code
25020 with ENQCMD in function ix86_expand_builtin.
25021 * config/i386/i386.opt: Add -menqcmd.
25022 * config/i386/immintrin.h: Include enqcmdintrin.h.
25023 * config/i386/enqcmdintrin.h: New intrinsic file.
25024 * doc/invoke.texi: Add -menqcmd.
25026 2019-01-23 Bin Cheng <bin.cheng@arm.com>
25027 Steve Ellcey <sellcey@marvell.com>
25030 * recog.c (address_operand): Return false on wrong mode for address.
25031 (constrain_operands): Check for mode with 'p' constraint.
25033 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
25036 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
25037 Disparage MMX alternative.
25038 (sse2_cvtpd2pi): Ditto.
25039 (sse2_cvttpd2pi): Ditto.
25041 2019-01-23 David Malcolm <dmalcolm@redhat.com>
25044 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
25045 use-after-free of the result of
25046 aarch64_get_extension_string_for_isa_flags.
25048 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25051 * doc/extend.texi: Document break and continue behavior in
25052 statement expressions.
25054 2019-01-23 Richard Biener <rguenther@suse.de>
25056 PR tree-optimization/89008
25057 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
25058 not leave another stray operand.
25060 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25062 * BASE-VER: Bump to 9.0.1.
25064 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
25066 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
25067 thunk that returns by reference, use the type of the return object
25068 of the thunk instead of that of the alias to build the dereference.
25070 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
25072 * config/arc/atomic.md: Add operand to DMB instruction.
25074 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25076 PR tree-optimization/88964
25077 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
25078 build_zero_cst instead of build_int_cst. Return false for loop
25079 invariants which honor signed zeros.
25081 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
25083 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
25085 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25088 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
25089 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
25090 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
25092 PR middle-end/88968
25093 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
25094 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
25097 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
25098 Disable for little endian.
25100 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25103 * config/arm/arm.c (arm_needs_double_word_align): Check
25104 DECL_BIT_FIELD_TYPE.
25106 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
25107 H.J. Lu <hongjiu.lu@intel.com>
25110 * config/i386/i386-builtin.def: Add mask2 to all builtin
25111 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
25113 * config/i386/i386.c (BDESC): Add mask2 to the definition.
25114 (BDESC_FIRST): Likewise.
25115 (define_builtin): Add an argument for mask2. Updated to handle
25116 both ix86_isa_flags and ix86_isa_flags2.
25117 (define_builtin_const): Likewise.
25118 (define_builtin_pure): Likewise.
25119 (define_builtin2): Deleted.
25120 (define_builtin_const2): Likewise.
25121 (builtin_description): Add a member, mask2.
25122 (bdesc_*): Add mask2 to builtin initializations.
25123 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
25124 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
25126 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
25128 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
25131 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
25134 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25137 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
25138 alignment is dominated by a bitfield with 64-bit aligned base type.
25139 (arm_function_arg): Emit a warning if the alignment has changed since
25140 earlier GCC releases.
25141 (arm_function_arg_boundary): Likewise.
25142 (arm_setup_incoming_varargs): Likewise.
25144 2019-01-22 Richard Biener <rguenther@suse.de>
25146 PR tree-optimization/88862
25147 * graphite-scop-detection.c
25148 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
25150 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
25152 * doc/extend.tex (AMD GCN Function Attributes): New section.
25153 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
25154 * doc/invoke.texi (AMD GCN Options): New section.
25155 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
25157 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
25159 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
25160 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
25162 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25164 PR tree-optimization/88044
25165 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
25166 is false in the first iteration, but !every_iteration, return false
25167 instead of true with niter->niter zero.
25169 PR rtl-optimization/88904
25170 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
25171 any nonequal registers before processing BB_END (b).
25174 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
25176 (expand_binop_directly, expand_doubleword_clz,
25177 expand_doubleword_popcount, expand_ctz, expand_ffs,
25178 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
25180 PR rtl-optimization/49429
25182 PR rtl-optimization/86334
25184 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
25185 addressable from here...
25186 (emit_block_op_via_libcall): ... to here.
25188 2019-01-22 Richard Biener <rguenther@suse.de>
25190 * tree-vect-loop.c (vect_analyze_loop_operations): Use
25191 auto_vec for cost vector to fix memleak.
25192 (vectorize_fold_left_reduction): Properly gather SLP defs.
25193 (vectorizable_comparison): Do not swap operands to properly
25196 2019-01-22 Alan Modra <amodra@gmail.com>
25199 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
25200 stays a reg. Allow a const_int.
25201 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
25202 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
25203 (IS_NOMARK_TLSGETADDR): Define.
25204 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
25205 (rs6000_output_tlsargs): New function.
25206 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
25207 __tls_get_addr call takes an arg.
25208 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
25209 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
25211 (call_value_nonlocal_sysv): ..or here, delete split.
25212 (tls_gdld_nomark): Delete.
25213 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
25214 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
25215 (call_value_nonlocal_sysv): Likewise.
25216 (call_value_nonlocal_sysv_secure): Likewise.
25217 (call_value_nonlocal_aix): Likewise.
25218 (call_value_indirect_aix): Likewise.
25219 (call_value_indirect_elfv2): Likewise.
25220 (call_value_local32, call_value_local64): Disable for no-mark tls.
25221 (call_value_local_aix): Likewise.
25223 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
25226 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
25227 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
25229 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
25231 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
25232 string contents as hash_map keys.
25234 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25237 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
25238 for rvalue context. Handle rvalues correctly. Use min_align_of_type
25239 instead of TYPE_ALIGN.
25240 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
25241 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
25242 pointer from TYPE_STUB_DECL.
25244 2019-01-21 Richard Biener <rguenther@suse.de>
25246 PR tree-optimization/88934
25247 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
25248 at the possibly non-constant operand.
25249 (vect_get_constant_vectors): Adjust.
25251 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
25254 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
25255 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
25256 instead of _X86INTRIN_H_INCLUDED.
25257 * onfig/i386/clwbintrin.h: Likewise.
25258 * config/i386/pkuintrin.h: Likewise.
25259 * config/i386/prfchwintrin.h: Likewise.
25260 * config/i386/rdseedintrin.h: Likewise.
25261 * config/i386/wbnoinvdintrin.h: Likewise.
25262 * config/i386/xsavecintrin.h: Likewise.
25263 * config/i386/xsavesintrin.h: Likewise.
25264 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
25265 * config/i386/xsaveintrin.h: Likewise.
25266 * config/i386/xsaveoptintrin.h: Likewise.
25267 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
25268 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
25269 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
25270 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
25271 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
25272 * config/i386/immintrin.h: Here.
25274 2019-01-20 Martin Jambor <mjambor@suse.cz>
25277 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
25278 with aa_walk_budget.
25279 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
25280 aa_walk_budget_p parameter.
25281 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
25282 walk. Updated all callers.
25283 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
25284 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
25286 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
25287 parameter info. Extract info from fbi. Pass fbi to recursive calls
25288 and to unmodified_parm.
25289 (phi_result_unknown_predicate): New parameter fbi, removed parameter
25290 info, updated call to will_be_nonconstant_expr_predicate.
25291 (param_change_prob): New parameter fbi, limit AA walking.
25292 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
25293 calls to various above functions.
25294 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
25295 parameter. Use it to limit AA walking.
25296 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
25297 fbi, limit AA walk.
25298 (detect_type_change): New parameter fbi, pass it on to
25299 detect_type_change_from_memory_writes.
25300 (detect_type_change_ssa): Likewise.
25301 (aa_overwalked): Removed.
25302 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
25303 accordingly, adjust to the neew AA limiting scheme.
25304 (parm_ref_data_preserved_p): Likewise.
25305 (ipa_compute_jump_functions_for_edge): Adjust call to
25307 (ipa_analyze_call_uses): Likewise.
25308 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
25309 (ipa_analyze_node): Initialize aa_walk_budget.
25310 (ipcp_transform_function): Likewise.
25311 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
25312 to get_dynamic_type.
25314 2019-01-19 Jakub Jelinek <jakub@redhat.com>
25316 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
25317 outside of #if CHECKING_P code.
25319 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25321 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25322 New function, split out from...
25323 (loop_versioning::analyze_stride): ...here.
25324 (loop_versioning::find_per_loop_multiplication): Use gassign.
25325 (loop_versioning::analyze_term_using_scevs): Return a success code.
25326 (loop_versioning::analyze_arbitrary_term): New function.
25327 (loop_versioning::analyze_address_fragment): Use
25328 analyze_arbitrary_term if all else fails.
25330 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25333 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25336 2019-01-18 Richard Biener <rguenther@suse.de>
25338 PR tree-optimization/88903
25339 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25340 scalar stmts a SLP shift amount is composed of when detecting
25343 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25346 * config/arm/arm-cpus.in (mp): New feature.
25347 (sec): New feature.
25348 (fgroup ARMv7ve): Add mp and sec features.
25349 (arch armv7-a): Add options to allow mp and sec extensions.
25350 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25351 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25352 extenstions to the base architecture.
25353 (cpu cortex-a8): Add sec extension to the base architecture.
25354 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25355 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25356 variants down to the base v7-a varaint.
25357 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25358 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25359 of permitted extensions for -march=armv7-a and for
25360 -mcpu=generic-armv7-a.
25362 2019-01-18 Martin Liska <mliska@suse.cz>
25364 * params.def: Fix comment.
25365 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25367 (gimple_gen_ic_func_profiler): Likewise.
25369 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25371 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25372 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25373 and put in error checks for stack protector guard options.
25374 (aarch64_stack_protect_guard): New.
25375 (TARGET_STACK_PROTECT_GUARD): Define.
25376 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25377 (reg_stack_protect_address<mode>): New.
25378 (stack_protect_set): Adjust for SSP_GLOBAL.
25379 (stack_protect_test): Likewise.
25380 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25381 (-mstack-protector-guard): Likewise.
25382 (-mstack-protector-guard-offset): Likewise.
25384 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25386 PR tree-optimization/86214
25387 * tree-inline.h (struct copy_body_data): Add
25388 add_clobbers_to_eh_landing_pads member.
25389 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25390 (copy_edges_for_bb): Call it if EH edge destination is <
25391 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25392 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25393 if flag_stack_reuse != SR_NONE and clear it afterwards.
25395 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25398 * doc/install.texi (with-multilib-list): Document for aarch64.
25400 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25403 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25404 (("..."))) with ("...").
25406 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25408 * doc/extend.texi (Built-in Functions for Memory Model Aware
25409 Atomic Operations): Document atomic fetch and nand.
25411 2019-01-18 Martin Liska <mliska@suse.cz>
25412 Richard Biener <rguenther@suse.de>
25414 PR middle-end/88587
25415 * cgraph.h (create_version_clone_with_body): Add new argument
25417 * cgraphclones.c (cgraph_node::create_version_clone): Add
25418 DECL_ATTRIBUTES to a newly created decl. And call
25419 valid_attribute_p so that proper cl_target_optimization_node
25420 is set for the newly created declaration.
25421 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25423 (expand_target_clones): Do not call valid_attribute_p, it must
25425 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25428 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25431 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25432 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25433 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25435 2019-01-17 Martin Sebor <msebor@redhat.com>
25437 PR middle-end/88273
25438 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25439 Handle anti-ranges the same as no range at all.
25441 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25443 * config/aarch64/aarch64.c (cgraph.h): New include.
25444 (intl.h): New include.
25445 (supported_simd_type): New function.
25446 (currently_supported_simd_type): Ditto.
25447 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25448 (aarch64_simd_clone_adjust): Ditto.
25449 (aarch64_simd_clone_usable): Ditto.
25450 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25451 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25452 (TARGET_SIMD_CLONE_USABLE): Ditto.
25453 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25454 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25457 2019-01-17 Martin Sebor <msebor@redhat.com>
25459 PR tree-optimization/88800
25460 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25461 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25462 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25463 redundant argument. Add new argument and issue diagnostics under
25464 its control. Detect out-of-bounds access even with warnings
25466 (check_bounds_or_overlap): Change return type. Add argument.
25467 (wrestrict_dom_walker::check_call): Adjust.
25468 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25469 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25470 check_bounds_or_overlap's return value.
25471 (handle_builtin_stxncpy): Same.
25472 (handle_builtin_strcat): Same.
25474 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25475 Kwok Cheung Yeung <kcy@codesourcery.com>
25476 Julian Brown <julian@codesourcery.com>
25477 Tom de Vries <tom@codesourcery.com>
25479 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25481 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25483 * doc/sourcebuild.texi: Document dg-require-effective-target
25484 llvm_binutils and offload_gcn.
25486 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25487 Kwok Cheung Yeung <kcy@codesourcery.com>
25488 Julian Brown <julian@codesourcery.com>
25489 Tom de Vries <tom@codesourcery.com>
25491 * doc/sourcebuild.texi: Document dg-required-effective-target
25494 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25495 Kwok Cheung Yeung <kcy@codesourcery.com>
25496 Julian Brown <julian@codesourcery.com>
25497 Tom de Vries <tom@codesourcery.com>
25498 Jan Hubicka <hubicka@ucw.cz>
25499 Martin Jambor <mjambor@suse.cz>
25501 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25502 * configure.ac: Check for dlopen.
25503 * configure: Regenerate.
25505 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25506 Kwok Cheung Yeung <kcy@codesourcery.com>
25507 Julian Brown <julian@codesourcery.com>
25508 Tom de Vries <tom@codesourcery.com>
25509 Jan Hubicka <hubicka@ucw.cz>
25510 Martin Jambor <mjambor@suse.cz>
25512 * common/config/gcn/gcn-common.c: New file.
25513 * config/gcn/driver-gcn.c: New file.
25514 * config/gcn/gcn-builtins.def: New file.
25515 * config/gcn/gcn-hsa.h: New file.
25516 * config/gcn/gcn-modes.def: New file.
25517 * config/gcn/gcn-opts.h: New file.
25518 * config/gcn/gcn-passes.def: New file.
25519 * config/gcn/gcn-protos.h: New file.
25520 * config/gcn/gcn-run.c: New file.
25521 * config/gcn/gcn-tree.c: New file.
25522 * config/gcn/gcn.c: New file.
25523 * config/gcn/gcn.h: New file.
25524 * config/gcn/gcn.opt: New file.
25525 * config/gcn/t-gcn-hsa: New file.
25527 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25528 Kwok Cheung Yeung <kcy@codesourcery.com>
25529 Julian Brown <julian@codesourcery.com>
25530 Tom de Vries <tom@codesourcery.com>
25531 Jan Hubicka <hubicka@ucw.cz>
25532 Martin Jambor <mjambor@suse.cz>
25534 * config/gcn/constraints.md: New file.
25535 * config/gcn/gcn-valu.md: New file.
25536 * config/gcn/gcn.md: New file.
25537 * config/gcn/predicates.md: New file.
25539 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25541 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25542 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25543 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25544 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25546 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25549 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25550 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25551 it and document registers.
25553 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25555 * config/aarch64/aarch64.c (ares_tunings): Define.
25556 * config/aarch64/aarch64-cores.def (ares): Use the above.
25558 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25562 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25564 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25565 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25566 (_mm512_maskz_fixupimm_round_pd): Ditto.
25567 (_mm512_fixupimm_round_ps): Ditto.
25568 (_mm512_maskz_fixupimm_round_ps): Ditto.
25569 (_mm_fixupimm_round_sd): Ditto.
25570 (_mm_maskz_fixupimm_round_sd): Ditto.
25571 (_mm_fixupimm_round_ss): Ditto.
25572 (_mm_maskz_fixupimm_round_ss): Ditto.
25573 (_mm512_fixupimm_pd): Ditto.
25574 (_mm512_maskz_fixupimm_pd): Ditto.
25575 (_mm512_fixupimm_ps): Ditto.
25576 (_mm512_maskz_fixupimm_ps): Ditto.
25577 (_mm_fixupimm_sd): Ditto.
25578 (_mm_maskz_fixupimm_sd): Ditto.
25579 (_mm_fixupimm_ss): Ditto.
25580 (_mm_maskz_fixupimm_ss): Ditto.
25581 (_mm512_mask_fixupimm_round_pd): Update builtin.
25582 (_mm512_mask_fixupimm_round_ps): Ditto.
25583 (_mm_mask_fixupimm_round_sd): Ditto.
25584 (_mm_mask_fixupimm_round_ss): Ditto.
25585 (_mm512_mask_fixupimm_pd): Ditto.
25586 (_mm512_mask_fixupimm_ps): Ditto.
25587 (_mm_mask_fixupimm_sd): Ditto.
25588 (_mm_mask_fixupimm_ss): Ditto.
25589 * config/i386/avx512vlintrin.h:
25590 (_mm256_fixupimm_pd): Update parameters and builtin.
25591 (_mm256_maskz_fixupimm_pd): Ditto.
25592 (_mm256_fixupimm_ps): Ditto.
25593 (_mm256_maskz_fixupimm_ps): Ditto.
25594 (_mm_fixupimm_pd): Ditto.
25595 (_mm_maskz_fixupimm_pd): Ditto.
25596 (_mm_fixupimm_ps): Ditto.
25597 (_mm_maskz_fixupimm_ps): Ditto.
25598 (_mm256_mask_fixupimm_pd): Update builtin.
25599 (_mm256_mask_fixupimm_ps): Ditto.
25600 (_mm_mask_fixupimm_pd): Ditto.
25601 (_mm_mask_fixupimm_ps): Ditto.
25602 * config/i386/i386-builtin-types.def: Add new types and remove
25604 * config/i386/i386-builtin.def: Update builtin definitions.
25605 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25606 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25607 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25608 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25609 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25610 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25611 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25612 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25613 * config/i386/subst.md:
25614 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25615 (round_saeonly_sd_mask_op4): Ditto.
25616 (round_saeonly_expand_operand5): Ditto.
25617 (round_saeonly_expand): Update.
25619 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25623 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25625 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25626 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25627 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25628 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25629 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25630 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25631 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25633 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25637 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25640 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25641 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25642 instead of UNSPEC_FIXUPIMM.
25644 2019-01-17 Richard Biener <rguenther@suse.de>
25647 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25648 and friends for the LTO part of debug info.
25650 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25652 PR tree-optimization/86214
25653 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25656 PR rtl-optimization/88870
25657 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25658 throw if we can't alter the cfg or delete dead exceptions.
25659 (mark_insn): Don't call find_call_stack_args for such calls.
25661 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25663 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25664 prototypes for vec_st.
25665 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25666 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25667 mainly on signed/unsigned long long and double.
25669 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25672 * combine.c (delete_noop_moves): Convert to "bool" return,
25673 returning true if any edges are eliminated.
25674 (combine_instructions): Also return true if delete_noop_moves
25677 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25679 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25680 correct max nunits for endian swap.
25681 (aarch64_expand_fcmla_builtin): Correct subreg code.
25682 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25683 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25686 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25688 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25689 Handle split indirect COMPLEX_TYPE arguments.
25691 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25694 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25695 bit is set by add and compare.
25696 (CC_ADC): New CC_MODE.
25697 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25698 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25699 comparison. Add detection for CC_ADCmode.
25700 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25702 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25703 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25704 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25705 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25706 to eliminate the need for zero-extending the operands.
25707 (add<mode>3_compareC_imm): Delete. Merge into ...
25708 (add<mode>3_compareC): ... this. Restructure the comparison to
25709 eliminate the need for zero-extending the operands.
25710 (add<mode>3_carryin): Use LTU for the overflow detection.
25711 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25712 Reexpress comparison for overflow.
25713 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25714 (add<mode>3_carryinC): Likewise.
25715 (add<mode>3_carryinV): Use LTU for carry between partials.
25716 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25717 handling of CC_Cmode and add CC_ADCmode.
25718 (aarch64_borrow_operation): Likewise.
25720 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25722 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25723 Remove patternmode.
25724 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25725 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25726 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25727 Remove endianness conversion.
25729 2019-01-16 Martin Liska <mliska@suse.cz>
25731 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25733 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25735 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25736 (path_prefix_reset): Move up in the source file.
25737 (find_fortran_preinclude_file): Make complex search for the
25738 fortran header files.
25740 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25742 * godump.c (go_output_typedef): When outputting a typedef, refer
25743 to the underlying type by its name and not its structure.
25745 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25748 * tree.c (build_function_type): Assert that arg_types is not
25751 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25753 PR inline-asm/52813
25754 * doc/extend.texi: Document that listing the stack pointer in the
25755 clobber list of an asm is a deprecated feature.
25756 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25757 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25758 warning instead of an error for clobbers of the stack pointer.
25759 Add a note explaining why.
25761 2019-01-15 Richard Biener <rguenther@suse.de>
25764 * dwarf2out.c (gen_member_die): Do not generate inheritance
25767 2019-01-15 Richard Biener <rguenther@suse.de>
25769 PR tree-optimization/88855
25770 * tree-if-conv.c (combine_blocks): Collect
25771 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25773 2019-01-15 Tom de Vries <tdevries@suse.de>
25776 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25777 lhs == NULL_TREE for gang-level reduction.
25779 2019-01-15 Richard Biener <rguenther@suse.de>
25780 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25783 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25784 return true if SSA_NAME is already marked in visited bitmap.
25785 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25787 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25789 PR tree-optimization/88775
25790 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25791 equal == 0 equality pointer comparisons some more if compared in
25792 integral types and either one points to an automatic var and the
25793 other to a global, or we can prove at least one points to the middle
25794 or both point to start or both point to end.
25796 2019-01-14 Andi Kleen <ak@linux.intel.com>
25798 * Makefile.in: Lower autofdo sampling rate by 10x.
25799 * Makefile.tpl: Dito.
25801 2019-01-14 Tom Honermann <tom@honermann.net>
25803 * defaults.h: Define CHAR8_TYPE.
25805 2019-01-14 Martin Sebor <msebor@redhat.com>
25808 * doc/extend.texi (Darwin Format Checks): Clarify.
25810 2019-01-14 Richard Biener <rguenther@suse.de>
25812 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25813 whether we are in (simplify ...) or (match ...) context.
25815 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25817 PR rtl-optimization/88796
25818 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25819 * cfgexpand.c (stack_protect_prologue): Initialize
25820 crtl->stack_protect_guard_decl.
25821 * function.c (stack_protect_epilogue): Use it instead of calling
25822 targetm.stack_protect_guard again.
25823 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25824 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25825 crtl->stack_protect_guard_decl.
25826 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25827 on the returned MEM_EXPR.
25829 2019-01-12 Tom de Vries <tdevries@suse.de>
25831 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25832 vector length using -fopenacc-dim.
25834 2019-01-12 Tom de Vries <tdevries@suse.de>
25836 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25837 lengths into account.
25839 2019-01-12 Svante Signell <svante.signell@gmail.com>
25841 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25842 (TARGET_CAN_SPLIT_STACK): Define.
25843 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25845 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25847 * params.def (inline-unit-growth): Set to 40.
25849 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25851 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25853 2019-01-12 Tom de Vries <tdevries@suse.de>
25855 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25856 region calling vector-partitionable routine, set default_vector_length
25859 2019-01-12 Tom de Vries <tdevries@suse.de>
25861 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25862 variable default_vector_length.
25864 2019-01-12 Tom de Vries <tdevries@suse.de>
25866 PR middle-end/88703
25867 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25868 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25871 2019-01-12 Tom de Vries <tdevries@suse.de>
25873 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25874 (nvptx_goacc_validate_dims): Add used parameter.
25875 * doc/tm.texi: Regenerate.
25876 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25877 argument to call to targetm.goacc.validate_dims.
25878 (default_goacc_validate_dims): Add used
25880 * target.def (validate_dims): Add used parameter in DEFHOOK.
25881 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25883 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25885 PR middle-end/85956
25887 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25889 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25890 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25891 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25892 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25894 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25896 PR rtl-optimization/87305
25898 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25899 for little endian pseudos used as paradoxical subreg.
25901 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25903 PR tree-optimization/88693
25904 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25905 for STRING_CSTs that don't contain any NUL characters in the first
25906 TREE_STRING_LENGTH bytes.
25908 2019-01-11 Alan Modra <amodra@gmail.com>
25912 * genattrtab.c (min_fn): Don't translate values.
25913 (min_attr_value): Return INT_MAX when the value can't be calculated.
25914 Return minimum among any values that can be calculated.
25915 (max_attr_value): Adjust.
25917 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25919 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25921 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25923 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25924 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25925 (aarch64_return_call_with_max_clobbers): New function.
25926 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25927 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25929 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25930 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25931 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25932 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25933 * cselib.c (cselib_process_insn): Add argument to
25934 targetm.hard_regno_call_part_clobbered call.
25935 * ira-conflicts.c (ira_build_conflicts): Ditto.
25936 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25937 * lra-constraints.c (inherit_reload_reg): Ditto.
25938 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25939 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25940 argument. Call targetm.return_call_with_max_clobbers.
25941 Add argument to targetm.hard_regno_call_part_clobbered call.
25942 (calls_have_same_clobbers_p): New function.
25943 (process_bb_lives): Add call_insn and last_call_insn variables.
25944 Pass call_insn to check_pseudos_live_through_calls.
25945 Modify if stmt to check targetm.return_call_with_max_clobbers.
25946 Update setting of flush variable.
25947 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25949 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25950 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25951 targetm.hard_regno_call_part_clobbered call.
25952 * reginfo.c (choose_hard_reg_mode): Ditto.
25953 * regrename.c (check_new_reg_p): Ditto.
25954 * reload.c (find_equiv_reg): Ditto.
25955 * reload1.c (emit_reload_insns): Ditto.
25956 * sched-deps.c (deps_analyze_insn): Ditto.
25957 * sel-sched.c (init_regs_for_mode): Ditto.
25958 (mark_unavailable_hard_regs): Ditto.
25959 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25960 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25961 (return_call_with_max_clobbers): New target function.
25962 * doc/tm.texi: Regenerate.
25963 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25964 * hooks.c (hook_bool_uint_mode_false): Change to
25965 hook_bool_insn_uint_mode_false.
25966 * hooks.h (hook_bool_uint_mode_false): Ditto.
25968 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25970 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25971 (aarch64_remove_extra_call_preserved_regs): New function.
25972 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25973 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25974 * doc/tm.texi: Regenerate.
25975 * final.c (get_call_reg_set_usage): Call new hook.
25976 * target.def (remove_extra_call_preserved_regs): New hook.
25977 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25978 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25980 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25983 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25984 inside of pass_combine_1 dump rather than pass_profile_1.
25986 2019-01-11 Tom de Vries <tdevries@suse.de>
25988 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25989 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25990 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25991 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25994 2019-01-11 Tom de Vries <tdevries@suse.de>
25996 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25998 2019-01-11 Jan Beulich <jbeulich@suse.com>
26000 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
26001 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
26002 sse2_cvtsi2sd): Add {l}.
26003 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
26006 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26009 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
26011 (*float<floatunssuffix>v2div2sf2): New define_insn.
26012 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
26013 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
26014 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
26015 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
26016 match_operands with "const0_operand" "C".
26018 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26020 * config/aarch64/aarch64-builtins.c
26021 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
26022 (aarch64_init_simd_builtins): ...Here
26024 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
26026 PR rtl-optimization/87305
26028 (setup_live_pseudos_and_spill_after_risky_transforms): Check
26029 allocation for big endian pseudos used as paradoxical subregs and
26030 spill them if it is wrong.
26031 * lra-constraints.c (lra_constraints): Add a comment.
26033 2019-01-10 Richard Biener <rguenther@suse.de>
26035 PR tree-optimization/88792
26036 * tree-ssa-pre.c (get_representative_for): Do not return a
26039 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26041 PR middle-end/84877
26043 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
26044 (assign_parm_setup_block): Do the argument slot realignment here
26047 2019-01-10 Stefan Agner <stefan@agner.ch>
26050 * config/arm/arm.c (arm_option_override_internal): Force
26051 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
26053 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26056 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
26059 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26061 * config/arm/arm-builtins.c
26062 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
26063 (MAC_LANE_PAIR_QUALIFIERS): New.
26064 (arm_expand_builtin_args): Use it.
26065 (arm_expand_builtin_1): Likewise.
26066 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
26067 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
26068 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
26069 * config/arm/arm_neon.h:
26070 (vcadd_rot90_f16): New.
26071 (vcaddq_rot90_f16): New.
26072 (vcadd_rot270_f16): New.
26073 (vcaddq_rot270_f16): New.
26076 (vcmla_lane_f16): New.
26077 (vcmla_laneq_f16): New.
26078 (vcmlaq_lane_f16): New.
26079 (vcmlaq_laneq_f16): New.
26080 (vcmla_rot90_f16): New.
26081 (vcmlaq_rot90_f16): New.
26082 (vcmla_rot90_lane_f16): New.
26083 (vcmla_rot90_laneq_f16): New.
26084 (vcmlaq_rot90_lane_f16): New.
26085 (vcmlaq_rot90_laneq_f16): New.
26086 (vcmla_rot180_f16): New.
26087 (vcmlaq_rot180_f16): New.
26088 (vcmla_rot180_lane_f16): New.
26089 (vcmla_rot180_laneq_f16): New.
26090 (vcmlaq_rot180_lane_f16): New.
26091 (vcmlaq_rot180_laneq_f16): New.
26092 (vcmla_rot270_f16): New.
26093 (vcmlaq_rot270_f16): New.
26094 (vcmla_rot270_lane_f16): New.
26095 (vcmla_rot270_laneq_f16): New.
26096 (vcmlaq_rot270_lane_f16): New.
26097 (vcmlaq_rot270_laneq_f16): New.
26098 (vcadd_rot90_f32): New.
26099 (vcaddq_rot90_f32): New.
26100 (vcadd_rot270_f32): New.
26101 (vcaddq_rot270_f32): New.
26104 (vcmla_lane_f32): New.
26105 (vcmla_laneq_f32): New.
26106 (vcmlaq_lane_f32): New.
26107 (vcmlaq_laneq_f32): New.
26108 (vcmla_rot90_f32): New.
26109 (vcmlaq_rot90_f32): New.
26110 (vcmla_rot90_lane_f32): New.
26111 (vcmla_rot90_laneq_f32): New.
26112 (vcmlaq_rot90_lane_f32): New.
26113 (vcmlaq_rot90_laneq_f32): New.
26114 (vcmla_rot180_f32): New.
26115 (vcmlaq_rot180_f32): New.
26116 (vcmla_rot180_lane_f32): New.
26117 (vcmla_rot180_laneq_f32): New.
26118 (vcmlaq_rot180_lane_f32): New.
26119 (vcmlaq_rot180_laneq_f32): New.
26120 (vcmla_rot270_f32): New.
26121 (vcmlaq_rot270_f32): New.
26122 (vcmla_rot270_lane_f32): New.
26123 (vcmla_rot270_laneq_f32): New.
26124 (vcmlaq_rot270_lane_f32): New.
26125 (vcmlaq_rot270_laneq_f32): New.
26126 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
26127 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
26128 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
26129 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
26130 vcmlaq_lane270): New.
26131 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
26132 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
26133 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
26134 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
26135 (arm_option_reconfigure_globals): Use them.
26136 * config/arm/iterators.md (VDF, VQ_HSF): New.
26137 (VCADD, VCMLA): New.
26138 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
26139 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
26141 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
26142 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
26144 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26146 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
26147 Add qualifier_lane_pair_index.
26148 (emit-rtl.h): Include.
26149 (TYPES_QUADOP_LANE_PAIR): New.
26150 (aarch64_simd_expand_args): Use it.
26151 (aarch64_simd_expand_builtin): Likewise.
26152 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
26154 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
26155 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
26156 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
26157 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
26158 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
26159 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
26160 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
26161 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
26162 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
26163 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
26164 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
26165 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
26166 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
26167 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
26168 Add __ARM_FEATURE_COMPLEX.
26169 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
26170 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
26171 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
26172 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
26173 fcmlaq_lane270): New.
26174 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
26175 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
26176 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
26177 * config/aarch64/arm_neon.h:
26178 (vcadd_rot90_f16): New.
26179 (vcaddq_rot90_f16): New.
26180 (vcadd_rot270_f16): New.
26181 (vcaddq_rot270_f16): New.
26184 (vcmla_lane_f16): New.
26185 (vcmla_laneq_f16): New.
26186 (vcmlaq_lane_f16): New.
26187 (vcmlaq_rot90_lane_f16): New.
26188 (vcmla_rot90_laneq_f16): New.
26189 (vcmla_rot90_lane_f16): New.
26190 (vcmlaq_rot90_f16): New.
26191 (vcmla_rot90_f16): New.
26192 (vcmlaq_laneq_f16): New.
26193 (vcmla_rot180_laneq_f16): New.
26194 (vcmla_rot180_lane_f16): New.
26195 (vcmlaq_rot180_f16): New.
26196 (vcmla_rot180_f16): New.
26197 (vcmlaq_rot90_laneq_f16): New.
26198 (vcmlaq_rot270_laneq_f16): New.
26199 (vcmlaq_rot270_lane_f16): New.
26200 (vcmla_rot270_laneq_f16): New.
26201 (vcmlaq_rot270_f16): New.
26202 (vcmla_rot270_f16): New.
26203 (vcmlaq_rot180_laneq_f16): New.
26204 (vcmlaq_rot180_lane_f16): New.
26205 (vcmla_rot270_lane_f16): New.
26206 (vcadd_rot90_f32): New.
26207 (vcaddq_rot90_f32): New.
26208 (vcaddq_rot90_f64): New.
26209 (vcadd_rot270_f32): New.
26210 (vcaddq_rot270_f32): New.
26211 (vcaddq_rot270_f64): New.
26215 (vcmla_lane_f32): New.
26216 (vcmla_laneq_f32): New.
26217 (vcmlaq_lane_f32): New.
26218 (vcmlaq_laneq_f32): New.
26219 (vcmla_rot90_f32): New.
26220 (vcmlaq_rot90_f32): New.
26221 (vcmlaq_rot90_f64): New.
26222 (vcmla_rot90_lane_f32): New.
26223 (vcmla_rot90_laneq_f32): New.
26224 (vcmlaq_rot90_lane_f32): New.
26225 (vcmlaq_rot90_laneq_f32): New.
26226 (vcmla_rot180_f32): New.
26227 (vcmlaq_rot180_f32): New.
26228 (vcmlaq_rot180_f64): New.
26229 (vcmla_rot180_lane_f32): New.
26230 (vcmla_rot180_laneq_f32): New.
26231 (vcmlaq_rot180_lane_f32): New.
26232 (vcmlaq_rot180_laneq_f32): New.
26233 (vcmla_rot270_f32): New.
26234 (vcmlaq_rot270_f32): New.
26235 (vcmlaq_rot270_f64): New.
26236 (vcmla_rot270_lane_f32): New.
26237 (vcmla_rot270_laneq_f32): New.
26238 (vcmlaq_rot270_lane_f32): New.
26239 (vcmlaq_rot270_laneq_f32): New.
26240 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
26241 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
26242 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
26243 (FCADD, FCMLA): New.
26245 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
26247 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26251 * config/pa/pa.c: Change "can not" to "cannot".
26252 * gimple-ssa-evrp-analyze.c: Likewise.
26253 * ipa-icf.c: Likewise.
26254 * ipa-polymorphic-call.c: Likewise.
26255 * ipa-pure-const.c: Likewise.
26256 * lra-constraints.c: Likewise.
26257 * lra-remat.c: Likewise.
26258 * reload1.c: Likewise.
26259 * reorg.c: Likewise.
26260 * tree-ssa-uninit.c: Likewise.
26262 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26266 * Makefile.in: Mechanically replace "can not" with "cannot".
26267 * alias.c: Likewise.
26268 * builtins.c: Likewise.
26269 * calls.c: Likewise.
26270 * cgraph.c: Likewise.
26271 * cgraph.h: Likewise.
26272 * cgraphclones.c: Likewise.
26273 * cgraphunit.c: Likewise.
26274 * combine-stack-adj.c: Likewise.
26275 * combine.c: Likewise.
26276 * common/config/i386/i386-common.c: Likewise.
26277 * config/aarch64/aarch64.c: Likewise.
26278 * config/alpha/sync.md: Likewise.
26279 * config/arc/arc.c: Likewise.
26280 * config/arc/predicates.md: Likewise.
26281 * config/arm/arm-c.c: Likewise.
26282 * config/arm/arm.c: Likewise.
26283 * config/arm/arm.h: Likewise.
26284 * config/arm/arm.md: Likewise.
26285 * config/arm/cortex-r4f.md: Likewise.
26286 * config/csky/csky.c: Likewise.
26287 * config/csky/csky.h: Likewise.
26288 * config/darwin-f.c: Likewise.
26289 * config/epiphany/epiphany.md: Likewise.
26290 * config/i386/i386.c: Likewise.
26291 * config/i386/sol2.h: Likewise.
26292 * config/m68k/m68k.c: Likewise.
26293 * config/mcore/mcore.h: Likewise.
26294 * config/microblaze/microblaze.md: Likewise.
26295 * config/mips/20kc.md: Likewise.
26296 * config/mips/sb1.md: Likewise.
26297 * config/nds32/nds32.c: Likewise.
26298 * config/nds32/predicates.md: Likewise.
26299 * config/pa/pa.c: Likewise.
26300 * config/rs6000/e300c2c3.md: Likewise.
26301 * config/rs6000/rs6000.c: Likewise.
26302 * config/s390/s390.h: Likewise.
26303 * config/sh/sh.c: Likewise.
26304 * config/sh/sh.md: Likewise.
26305 * config/spu/vmx2spu.h: Likewise.
26306 * cprop.c: Likewise.
26307 * dbxout.c: Likewise.
26308 * df-scan.c: Likewise.
26309 * doc/cfg.texi: Likewise.
26310 * doc/extend.texi: Likewise.
26311 * doc/fragments.texi: Likewise.
26312 * doc/gty.texi: Likewise.
26313 * doc/invoke.texi: Likewise.
26314 * doc/lto.texi: Likewise.
26315 * doc/md.texi: Likewise.
26316 * doc/objc.texi: Likewise.
26317 * doc/rtl.texi: Likewise.
26318 * doc/tm.texi: Likewise.
26320 * emit-rtl.c: Likewise.
26321 * emit-rtl.h: Likewise.
26322 * except.c: Likewise.
26323 * expmed.c: Likewise.
26324 * expr.c: Likewise.
26325 * fold-const.c: Likewise.
26326 * genautomata.c: Likewise.
26327 * gimple-fold.c: Likewise.
26328 * hard-reg-set.h: Likewise.
26329 * ifcvt.c: Likewise.
26330 * ipa-comdats.c: Likewise.
26331 * ipa-cp.c: Likewise.
26332 * ipa-devirt.c: Likewise.
26333 * ipa-fnsummary.c: Likewise.
26334 * ipa-icf.c: Likewise.
26335 * ipa-inline-transform.c: Likewise.
26336 * ipa-inline.c: Likewise.
26337 * ipa-polymorphic-call.c: Likewise.
26338 * ipa-profile.c: Likewise.
26339 * ipa-prop.c: Likewise.
26340 * ipa-pure-const.c: Likewise.
26341 * ipa-reference.c: Likewise.
26342 * ipa-split.c: Likewise.
26343 * ipa-visibility.c: Likewise.
26345 * ira-build.c: Likewise.
26346 * ira-color.c: Likewise.
26347 * ira-conflicts.c: Likewise.
26348 * ira-costs.c: Likewise.
26349 * ira-int.h: Likewise.
26350 * ira-lives.c: Likewise.
26353 * loop-invariant.c: Likewise.
26354 * loop-unroll.c: Likewise.
26355 * lower-subreg.c: Likewise.
26356 * lra-assigns.c: Likewise.
26357 * lra-constraints.c: Likewise.
26358 * lra-eliminations.c: Likewise.
26359 * lra-lives.c: Likewise.
26360 * lra-remat.c: Likewise.
26361 * lra-spills.c: Likewise.
26363 * lto-cgraph.c: Likewise.
26364 * lto-streamer-out.c: Likewise.
26365 * postreload-gcse.c: Likewise.
26366 * predict.c: Likewise.
26367 * profile-count.h: Likewise.
26368 * profile.c: Likewise.
26369 * recog.c: Likewise.
26371 * reload.c: Likewise.
26372 * reload1.c: Likewise.
26373 * reorg.c: Likewise.
26374 * resource.c: Likewise.
26375 * rtl.def: Likewise.
26377 * rtlanal.c: Likewise.
26378 * sched-deps.c: Likewise.
26379 * sched-ebb.c: Likewise.
26380 * sched-rgn.c: Likewise.
26381 * sel-sched-ir.c: Likewise.
26382 * sel-sched.c: Likewise.
26383 * shrink-wrap.c: Likewise.
26384 * simplify-rtx.c: Likewise.
26385 * symtab.c: Likewise.
26386 * target.def: Likewise.
26387 * toplev.c: Likewise.
26388 * tree-call-cdce.c: Likewise.
26389 * tree-cfg.c: Likewise.
26390 * tree-complex.c: Likewise.
26391 * tree-core.h: Likewise.
26392 * tree-eh.c: Likewise.
26393 * tree-inline.c: Likewise.
26394 * tree-loop-distribution.c: Likewise.
26395 * tree-nrv.c: Likewise.
26396 * tree-profile.c: Likewise.
26397 * tree-sra.c: Likewise.
26398 * tree-ssa-alias.c: Likewise.
26399 * tree-ssa-dce.c: Likewise.
26400 * tree-ssa-dom.c: Likewise.
26401 * tree-ssa-forwprop.c: Likewise.
26402 * tree-ssa-loop-im.c: Likewise.
26403 * tree-ssa-loop-ivcanon.c: Likewise.
26404 * tree-ssa-loop-ivopts.c: Likewise.
26405 * tree-ssa-loop-niter.c: Likewise.
26406 * tree-ssa-phionlycprop.c: Likewise.
26407 * tree-ssa-phiopt.c: Likewise.
26408 * tree-ssa-propagate.c: Likewise.
26409 * tree-ssa-threadedge.c: Likewise.
26410 * tree-ssa-threadupdate.c: Likewise.
26411 * tree-ssa-uninit.c: Likewise.
26412 * tree-ssanames.c: Likewise.
26413 * tree-streamer-out.c: Likewise.
26414 * tree.c: Likewise.
26415 * tree.h: Likewise.
26416 * vr-values.c: Likewise.
26418 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26420 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26421 (ix86_split_xorsign): Ditto.
26422 * config/i386/i386.c (ix86_expand_xorsign): New function.
26423 (ix86_split_xorsign): Ditto.
26424 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26425 (xorsign<mode>3): New expander.
26426 (xorsign<mode>3_1): New insn_and_split pattern.
26427 * config/i386/sse.md (xorsign<mode>3): New expander.
26429 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26431 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26432 (*tablejump_sp64): Likewise.
26433 (*tablejump<P:mode>): ...this.
26434 (*call_address_sp32): Merge into...
26435 (*call_address_sp64): Likewise.
26436 (*call_address<P:mode>): ...this.
26437 (*call_symbolic_sp32): Merge into...
26438 (*call_symbolic_sp64): Likewise.
26439 (*call_symbolic<P:mode>): ...this.
26440 (call_value): Remove constraint and add predicate.
26441 (*call_value_address_sp32): Merge into...
26442 (*call_value_address_sp64): Likewise.
26443 (*call_value_address<P:mode>): ...this.
26444 (*call_value_symbolic_sp32): Merge into...
26445 (*call_value_symbolic_sp64): Likewise.
26446 (*call_value_symbolic<P:mode>): ...this.
26447 (*sibcall_symbolic_sp32): Merge into...
26448 (*sibcall_symbolic_sp64): Likewise.
26449 (*sibcall_symbolic<P:mode>): ...this.
26450 (sibcall_value): Remove constraint and add predicate.
26451 (*sibcall_value_symbolic_sp32): Merge into...
26452 (*sibcall_value_symbolic_sp64): Likewise.
26453 (*sibcall_value_symbolic<P:mode>): ...this.
26454 (window_save): Minor tweak.
26455 (*branch_sp32): Merge into...
26456 (*branch_sp64): Likewise.
26457 (*branch<P:mode>): ...this.
26459 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26460 James Clarke <jrtc27@jrtc27.com>
26463 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26464 consistently in TLS address generation and adjust code to the renaming
26465 of patterns. Mark calls to __tls_get_addr as const.
26466 * config/sparc/sparc.md (tgd_hi22): Turn into...
26467 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26468 (tgd_lo10): Turn into...
26469 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26470 (tgd_add32): Merge into...
26471 (tgd_add64): Likewise.
26472 (tgd_add<P:mode>): ...this and use Pmode throughout.
26473 (tldm_hi22): Turn into...
26474 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26475 (tldm_lo10): Turn into...
26476 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26477 (tldm_add32): Merge into...
26478 (tldm_add64): Likewise.
26479 (tldm_add<P:mode>): ...this and use Pmode throughout.
26480 (tldm_call32): Merge into...
26481 (tldm_call64): Likewise.
26482 (tldm_call<P:mode>): ...this and use Pmode throughout.
26483 (tldo_hix22): Turn into...
26484 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26485 (tldo_lox10): Turn into...
26486 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26487 (tldo_add32): Merge into...
26488 (tldo_add64): Likewise.
26489 (tldo_add<P:mode>): ...this and use Pmode throughout.
26490 (tie_hi22): Turn into...
26491 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26492 (tie_lo10): Turn into...
26493 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26494 (tie_ld64): Use DImode throughout.
26495 (tie_add32): Merge into...
26496 (tie_add64): Likewise.
26497 (tie_add<P:mode>): ...this and use Pmode throughout.
26498 (tle_hix22_sp32): Merge into...
26499 (tle_hix22_sp64): Likewise.
26500 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26501 (tle_lox22_sp32): Merge into...
26502 (tle_lox22_sp64): Likewise.
26503 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26504 (*tldo_ldub_sp32): Merge into...
26505 (*tldo_ldub_sp64): Likewise.
26506 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26507 (*tldo_ldub1_sp32): Merge into...
26508 (*tldo_ldub1_sp64): Likewise.
26509 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26510 (*tldo_ldub2_sp32): Merge into...
26511 (*tldo_ldub2_sp64): Likewise.
26512 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26513 (*tldo_ldsb1_sp32): Merge into...
26514 (*tldo_ldsb1_sp64): Likewise.
26515 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26516 (*tldo_ldsb2_sp32): Merge into...
26517 (*tldo_ldsb2_sp64): Likewise.
26518 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26519 (*tldo_ldub3_sp64): Use DImode throughout.
26520 (*tldo_ldsb3_sp64): Likewise.
26521 (*tldo_lduh_sp32): Merge into...
26522 (*tldo_lduh_sp64): Likewise.
26523 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26524 (*tldo_lduh1_sp32): Merge into...
26525 (*tldo_lduh1_sp64): Likewise.
26526 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26527 (*tldo_ldsh1_sp32): Merge into...
26528 (*tldo_ldsh1_sp64): Likewise.
26529 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26530 (*tldo_lduh2_sp64): Use DImode throughout.
26531 (*tldo_ldsh2_sp64): Likewise.
26532 (*tldo_lduw_sp32): Merge into...
26533 (*tldo_lduw_sp64): Likewise.
26534 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26535 (*tldo_lduw1_sp64): Use DImode throughout.
26536 (*tldo_ldsw1_sp64): Likewise.
26537 (*tldo_ldx_sp64): Likewise.
26538 (*tldo_stb_sp32): Merge into...
26539 (*tldo_stb_sp64): Likewise.
26540 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26541 (*tldo_sth_sp32): Merge into...
26542 (*tldo_sth_sp64): Likewise.
26543 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26544 (*tldo_stw_sp32): Merge into...
26545 (*tldo_stw_sp64): Likewise.
26546 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26547 (*tldo_stx_sp64): Use DImode throughout.
26549 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26551 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26552 check configure option to set BTI and Return Address Signing.
26553 * configure.ac: Add --enable-standard-branch-protection and
26554 --disable-standard-branch-protection.
26555 * configure: Regenerated.
26556 * doc/install.texi: Document the same.
26558 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26559 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26561 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26562 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26563 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26565 * config/aarch64/aarch64-bti-insert.c: New file.
26566 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26568 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26570 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26571 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26572 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26573 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26575 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26577 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26578 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26579 Disable bti for -mbranch-protection=none.
26580 (aarch64_handle_standard_branch_protection): Enable bti for
26581 -mbranch-protection=standard.
26582 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26583 -mbranch-protection.
26584 (aarch64_bti_enabled): Check if bti is enabled.
26585 * config/aarch64/aarch64.opt: Declare target variable.
26586 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26588 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26590 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26591 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26592 (aarch64_expand_epilogue): Likewise.
26593 (aarch64_output_mi_thunk): Likewise.
26594 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26595 TAILCALL_ADDR_REGS to x16 and x17.
26596 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26598 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26600 * config/aarch64/aarch64-option-extensions.def: Define
26601 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26602 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26603 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26604 (AARCH64_FL_PREDRES): New.
26605 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26606 AARCH64_FL_PREDRES by default.
26607 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26609 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26611 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26613 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26614 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26615 * doc/invoke.texi: Document ARMv8.5-A.
26617 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26619 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26620 (xorsign<mode>3): Likewise.
26622 2019-01-09 Jelinek <jakub@redhat.com>
26624 PR middle-end/88758
26625 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26626 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26628 PR rtl-optimization/88331
26629 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26630 not currently_expanding_to_rtl.
26632 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26634 * doc/invoke.texi (-Os): Remove trailing spaces.
26635 (-finline-functions): Remove reference to -O2.
26637 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26639 PR rtl-optimization/79593
26640 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26642 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26643 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26645 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26648 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26652 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26653 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26655 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26658 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26659 ix86_avx_u128_mode_entry.
26661 2019-01-08 Martin Liska <mliska@suse.cz>
26663 PR tree-optimization/88753
26664 * tree-switch-conversion.c (switch_conversion::build_one_array):
26665 Come up with local variable constructor. Convert first to
26666 type of constructor values.
26668 2019-01-08 Richard Biener <rguenther@suse.de>
26670 PR tree-optimization/86554
26671 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26672 rpo_avail): Move earlier.
26673 (visit_nary_op): When value-numbering to expressions
26674 with different overflow behavior make sure there's an
26675 available expression on the path.
26677 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26679 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26680 aarch64_parse_branch_protection,
26681 struct aarch64_branch_protect_type,
26682 aarch64_handle_no_branch_protection,
26683 aarch64_handle_standard_branch_protection,
26684 aarch64_validate_mbranch_protection,
26685 aarch64_handle_pac_ret_protection,
26686 aarch64_handle_attr_branch_protection,
26687 accepted_branch_protection_string,
26688 aarch64_pac_ret_subtypes,
26689 aarch64_branch_protect_types,
26690 aarch64_handle_pac_ret_leaf): Define.
26691 (aarch64_override_options_after_change_1, aarch64_override_options):
26692 Add check for accepted_branch_protection_string.
26693 (aarch64_option_save): Save accepted_branch_protection_string.
26694 (aarch64_option_restore): Save accepted_branch_protection_string.
26695 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26696 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26697 msign-return-address.
26698 * doc/invoke.texi: Add mbranch-protection.
26700 2019-01-08 Alan Modra <amodra@gmail.com>
26703 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26704 Delete "unknownp" parameter. Adjust callers. Handle
26705 CONST_INT, PLUS, MINUS, and MULT.
26706 (attr_value_aligned): Renamed from or_attr_value.
26707 (min_attr_value): Return INT_MIN for unhandled rtl case..
26708 (min_fn): ..and translate to INT_MAX here.
26709 (write_length_unit_log): Modify to cope without "unknown".
26710 (write_attr_value): Handle IF_THEN_ELSE.
26712 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26714 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26715 optimization for masked stores.
26717 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26719 PR middle-end/88567
26720 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26721 output vector directly to duplicate_and_interleave instead of
26722 going through a temporary. Postpone insertion of ctor_seq to
26723 the end of the loop.
26725 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26728 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26729 unsigned_p. Handle signed and unsigned overflow correction as
26731 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26733 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26735 (add<mode>3_compareV_imm): Make this callable for expanding.
26736 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26737 aarch64_plus_operand for operand 2.
26738 (subv<GPI:mode>_insn): New insn pattern.
26739 (subv<GPI:mode>_imm): Likewise.
26740 (negv<GPI:mode>3): New expand pattern.
26741 (negv<GPI:mode>_insn): New insn pattern.
26742 (negv<GPI:mode>_cmp_only): Likewise.
26743 (cmpv<GPI:mode>_insn): Likewise.
26744 (subvti4): Use register_operand for operand 1. Update call to
26745 aarch64_expand_subvti.
26746 (usubvti4): Likewise.
26747 (negvti3): New expand pattern.
26748 (negdi_carryout): New insn pattern.
26749 (negvdi_carryinV): New insn pattern.
26750 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26751 version the named version.
26752 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26754 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26756 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26758 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26759 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26760 (sub<mode>3_carryinCV): Delete.
26761 (sub<GPI:mode>3_carryinV): New expand pattern.
26762 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26764 2019-01-07 Richard Biener <rguenther@suse.de>
26766 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26767 of tree_operand_hash.
26769 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26771 PR tree-optimization/88598
26772 * tree.h (single_nonzero_element): Declare.
26773 * tree.c (single_nonzero_element): New function.
26774 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26775 if I is the only nonzero element of CST.
26777 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26779 PR tree-optimization/88598
26780 * tree.h (initializer_each_zero_or_onep): Declare.
26781 * tree.c (initializer_each_zero_or_onep): New function.
26782 (signed_or_unsigned_type_for): Handle float types too.
26783 (unsigned_type_for, signed_type_for): Update comments accordingly.
26784 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26785 x & { 0 or -1, 0 or -1, ... }.
26787 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26789 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26790 with x86_64-pc-linux-gnu.
26792 2019-01-07 Tom de Vries <tdevries@suse.de>
26795 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26797 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26800 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26802 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26803 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26804 TARGET_AVX512F as condition.
26807 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26808 const_not_ok_for_debug_p target hook.
26809 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26810 on UNSPEC and subexpressions thereof if all subexpressions of the
26811 UNSPEC are CONSTANT_P.
26813 PR tree-optimization/88676
26814 * tree-ssa-phiopt.c (two_value_replacement): New function.
26815 (tree_ssa_phiopt_worker): Call it.
26818 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26819 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26822 * tree-vect-generic.c: Include insn-config.h and recog.h.
26823 (expand_vector_piecewise): Add defaulted ret_type argument,
26824 if non-NULL, use that in preference to type for the result type.
26825 (expand_vector_parallel): Formatting fix.
26826 (do_vec_conversion, do_vec_narrowing_conversion,
26827 expand_vector_conversion): New functions.
26828 (expand_vector_operations_1): Call expand_vector_conversion
26829 for VEC_CONVERT ifn calls.
26830 * internal-fn.def (VEC_CONVERT): New internal function.
26831 * internal-fn.c (expand_VEC_CONVERT): New function.
26832 * fold-const-call.c (fold_const_vec_convert): New function.
26833 (fold_const_call): Use it for CFN_VEC_CONVERT.
26834 * doc/extend.texi (__builtin_convertvector): Document.
26836 2019-01-07 Tom de Vries <tdevries@suse.de>
26838 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26839 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26840 vector_red_partition, vector_red_sym): New global variables.
26841 (nvptx_option_override): Initialize vector_red_sym.
26842 (nvptx_declare_function_name): Restore red_partition register.
26843 (nvptx_file_end): Emit code to declare the vector reduction variables.
26844 (nvptx_output_red_partition): New function.
26845 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26846 large vector reductions.
26847 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26848 (nvptx_init_builtins): Add VECTOR_ADDR.
26849 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26850 Handle nvptx_expand_shared_addr.
26851 (nvptx_get_shared_red_addr): Add vector argument and handle large
26853 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26855 (nvptx_goacc_reduction_init): Likewise.
26856 (nvptx_goacc_reduction_fini): Likewise.
26857 (nvptx_goacc_reduction_teardown): Likewise.
26858 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26859 init,fini,teardown}.
26860 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26861 (nvptx_set_current_function): Init vector_red_partition.
26862 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26863 (nvptx_red_partition): New insn.
26864 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26866 2019-01-07 Tom de Vries <tdevries@suse.de>
26869 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26872 2019-01-07 Tom de Vries <tdevries@suse.de>
26874 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26875 (nvptx_option_override): Init oacc_bcast_partition.
26876 (nvptx_init_oacc_workers): New function.
26877 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26878 (nvptx_needs_shared_bcast): New function.
26879 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26880 to propagate state.
26881 (nvptx_shared_propagate): Initialize vector bcast partition and
26882 synchronization state.
26883 (nvptx_single): Generalize to enable vectors to use shared-memory
26884 to propagate state.
26885 (nvptx_process_pars): Likewise.
26886 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26887 * config/nvptx/nvptx.h (struct machine_function): Add
26888 bcast_partition and sync_bar members.
26890 2019-01-07 Tom de Vries <tdevries@suse.de>
26892 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26893 (nvptx_apply_dim_limits): New function.
26894 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26897 2019-01-07 Tom de Vries <tdevries@suse.de>
26899 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26900 as late as possible.
26902 2019-01-07 Tom de Vries <tdevries@suse.de>
26904 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26905 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26906 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26907 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26908 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26910 2019-01-07 Tom de Vries <tdevries@suse.de>
26912 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26914 2019-01-07 Tom de Vries <tdevries@suse.de>
26916 * omp-offload.c (oacc_get_min_dim): New function.
26917 * omp-offload.h (oacc_get_min_dim): Declare.
26919 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26922 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26923 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26925 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26929 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26931 * ipa-inline.c (edge_badness): Use inlined_time instead of
26932 inline_summaries->get.
26934 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26936 * opts.c (enable_fdo_optimizations): Enable
26937 version-loops-for-strides, loop-interchange, unrol-and-jam
26938 and tree-loop-distribution.
26939 * invoke.texi: Document newly enabled options.
26941 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26943 * doc/invoke.texi (max-inline-insns-small): New parameters.
26944 * ipa-inline.c (want_early_inline_function_p): simplify.
26945 (want_inline_small_function_p): Fix pasto from previous patch;
26946 use max-inline-insns-small bound.
26947 * params.def (max-inline-insns-small): New param.
26948 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26949 variables correctly.
26951 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26953 * doc/invoke.texi: Document max-inline-insns-size,
26954 uninlined-function-insns, uninlined-function-time,
26955 uninlined-thunk-insns and uninlined-thunk-time.
26956 * params.def: Add max-inline-insns-size,
26957 uninlined-function-insns, uninlined-function-time,
26958 uninlined-thunk-insns and uninlined-thunk-time.
26959 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26961 * ipa-inline.c (can_inline_edge_by_limits_p,
26962 want_inline_small_function_p): Use new parameters.
26964 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26966 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26968 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26970 PR middle-end/82564
26972 * expr.c (expand_assignment): For calls returning VLA structures
26973 if to_rtx is not a MEM, force it into a stack temporary.
26976 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26977 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26978 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26979 subexpressions of both operands.
26980 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26981 subrtxes are CONSTANT_P.
26982 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26983 2018-11-09 changes.
26985 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26987 * params.def (hot-bb-count-ws-permille): Set to 990.
26989 2019-01-04 Martin Sebor <msebor@redhat.com>
26992 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26995 2019-01-04 Martin Sebor <msebor@redhat.com>
26998 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
27000 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27002 * gdbinit.in: Turn off pagination for the skip commands, restore
27003 it to previous state afterwards.
27005 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27008 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
27009 of GET_MODE (opN) as modes of the libcall arguments.
27011 2019-01-04 Jan Beulich <jbeulich@suse.com>
27013 * config/i386/sse.md
27014 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
27015 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
27016 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27017 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27018 avx512f_vmcmp<mode>3<round_saeonly_name>,
27019 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
27020 avx512f_maskcmp<mode>3,
27021 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27022 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27023 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27024 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27025 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27026 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27027 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27028 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27029 <avx512>_testm<mode>3<mask_scalar_merge_name>,
27030 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
27031 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
27032 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
27033 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
27034 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
27035 avx512cd_maskb_vec_dup<mode>,
27036 avx512cd_maskw_vec_dup<mode>,
27037 avx512dq_fpclass<mode><mask_scalar_merge_name>,
27038 avx512dq_vmfpclass<mode>,
27039 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
27042 2019-01-03 Martin Sebor <msebor@redhat.com>
27044 PR tree-optimization/88659
27045 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
27047 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
27049 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
27050 unaligned vsx and avoid lxvd2x/stxvd2x.
27051 (gen_lvx_v4si_move): New function.
27053 2019-01-03 Tom de Vries <tdevries@suse.de>
27055 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
27056 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
27058 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
27060 2019-01-03 Tom de Vries <tdevries@suse.de>
27062 * config/nvptx/nvptx.c (struct offload_attrs): New.
27063 (populate_offload_attrs): New function. Factor mask extraction out of
27064 nvptx_reorg. Add extraction of dimensions.
27065 (nvptx_reorg): Use populate_offload_attrs.
27067 2019-01-03 Tom de Vries <tdevries@suse.de>
27069 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
27070 cases for oacc_min_dims_p and routine_p. Add asserts for
27071 oacc_default_dims_p and offload_region_p.
27073 2019-01-03 Tom de Vries <tdevries@suse.de>
27075 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
27076 factored out of ...
27077 (nvptx_goacc_validate_dims): ... here.
27079 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27081 PR tree-optimization/85574
27082 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
27084 (struct ssa_equip_hash_traits): Declare.
27085 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
27087 2019-01-03 Jakub Jelinek <jakub@redhat.com>
27090 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
27091 change it to qualified_type.
27093 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27095 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
27096 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
27098 2019-01-02 Martin Sebor <msebor@redhat.com>
27099 Jeff Law <law@redhat.com>
27101 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
27102 (get_range_strlen_tree): Update appropriately.
27104 * gimple-fold.h (get_range_strlen): Drop unused last argument.
27106 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
27107 rather than set_range_info.
27108 * tree-ssa-strlen.c (set_strlen_range): Extracted from
27109 maybe_set_strlen_range. Handle potentially boundary crossing
27110 cases more conservatively.
27111 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
27112 Call set_strlen_range.
27113 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
27115 PR middle-end/88663
27116 * gimple-fold.c (get_range_strlen): Update prototype to no longer
27117 need the flexp argument.
27118 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
27119 from calls to get_range_strlen. Update comments. Just update
27120 VAL for an unterminated const char array and let the reset of the
27121 code handle it normally. No longer try to set *flexp. Adjust
27123 (get_range_strlen): Update for the new get_range_strlen API.
27124 (get_maxval_strlen): Similarly.
27125 (gimple_fold_builtin_strlen): Handle update meaning of return value
27126 from get_range_strlen.
27127 * gimple-ssa-sprintf.c (get_string_length): Update for the new
27128 get_range_strlen API.
27130 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
27133 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
27134 false at WPA time when body was removed.
27136 2019-01-02 Martin Liska <mliska@suse.cz>
27138 PR tree-optimization/88650
27139 * predict.c (set_even_probabilities): Calculate probability
27140 remainer only when really used.
27142 2019-01-02 Richard Biener <rguenther@suse.de>
27144 PR middle-end/88651
27145 * tree-data-ref.c (analyze_subscript_affine_affine): Use
27146 widest_ints when mangling max_stmt_execution results.
27148 2019-01-02 Richard Biener <rguenther@suse.de>
27150 PR tree-optimization/88621
27151 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
27152 bitfields when canoncalizing.
27154 2019-01-02 Richard Biener <rguenther@suse.de>
27157 * config/i386/x86-tune-costs.h (intel_cost): Adjust
27158 cost of cheap SSE instruction.
27160 2019-01-02 Richard Biener <rguenther@suse.de>
27163 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
27164 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
27166 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
27167 set after UIDs before splitting them.
27169 2019-01-01 Martin Sebor <msebor@redhat.com>
27170 Jeff Law <law@redhat.com>
27172 * gimple-fold.c (get_range_strlen_tree): Record if the computed
27173 length is optimistic. If it is, then arrange to compute the
27174 conservative length as well.
27176 * gimple-fold.h (get_range_strlen): Update prototype.
27177 * builtins.c (check_access): Update call to get_range_strlen to use
27178 c_strlen_data pointer. Change various variable accesses to instead
27179 pull data from the c_strlen_data structure.
27180 (check_strncat_sizes, expand_builtin_strncat): Likewise.
27181 * calls.c (maybe_warn_nonstring_arg): Likewise.
27182 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
27183 minimum length if maximum lengh is unknown.
27184 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
27185 that used c_strlen, it's no longer needed. Restructure slightly.
27186 (format_string): Set unlikely range appropriately.
27187 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
27189 (get_range_strlen): Accept c_strlen_data pointer for external
27190 call sites as well. Pass through to call to internal get_range_strlen.
27191 Adjust minlen, maxlen and maxbound as needed.
27192 (get_maxval_strlen): Update comments.
27193 (gimple_fold_builtin_strlen): Update call to get_range_strlen
27194 to use c_strlen_data pointer. Change variable accesses to instead
27195 use c_strlen_data data members.
27197 * gimple-fold.c (get_range_strlen): Update prototype.
27198 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
27199 local variables. Use pdata to return information to caller.
27200 Update calls to get_range_strlen. Update pdata->maxbound.
27201 (get_range_strlen -- static version): Similarly.
27202 (get_range_strlen -- extern version): Update for internal
27203 get_range_strlen API change. Convert to external data format.
27204 (get_maxval_strlen): Similarly.
27206 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
27208 * coverage.c (get_coverage_counts): Use current_function_decl.
27209 * profile.c (read_thunk_profile): New function.
27210 (branch_prob): Add THUNK parameter.
27211 * tree-profile.c (tree_profiling): Handle thunks.
27212 * value-prof.c (init_node_map): Handle thunks.
27213 * value-prof.h (branch_prob): Upate prototype.
27214 (read_thunk_profile): Declare.
27216 2019-01-01 Jakub Jelinek <jakub@redhat.com>
27218 Update copyright years.
27220 * gcc.c (process_command): Update copyright notice dates.
27221 * gcov-dump.c (print_version): Ditto.
27222 * gcov.c (print_version): Ditto.
27223 * gcov-tool.c (print_version): Ditto.
27224 * gengtype.c (create_file): Ditto.
27225 * doc/cpp.texi: Bump @copying's copyright year.
27226 * doc/cppinternals.texi: Ditto.
27227 * doc/gcc.texi: Ditto.
27228 * doc/gccint.texi: Ditto.
27229 * doc/gcov.texi: Ditto.
27230 * doc/install.texi: Ditto.
27231 * doc/invoke.texi: Ditto.
27233 Copyright (C) 2019 Free Software Foundation, Inc.
27235 Copying and distribution of this file, with or without modification,
27236 are permitted in any medium without royalty provided the copyright
27237 notice and this notice are preserved.