1 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
4 return CC_Zmode if comparing against a constant where one word is
6 (arm_gen_compare_reg): Split DImode handling to ...
7 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8 against simple constants.
9 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
11 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
13 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
14 (rsbsi3_carryin_shift_alt): Likewise.
16 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
18 * config/arm/arm.md (negscc_borrow): New pattern.
19 (mov_negscc): Don't split if the insn would match negscc_borrow.
20 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
21 (thumb2_mov_negscc_strict_it): Likewise.
23 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
25 * config/arm/arm.c (arm_insn_cost): New function.
26 (TARGET_INSN_COST): Override default definition.
28 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
30 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
33 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
35 * config/arm/arm.c (strip_carry_operation): New function.
36 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
39 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
41 * config/arm/predicates.md (arm_carry_operation): New special
43 * config/arm/iterators.md (LTUGEU): Delete iterator.
44 (cnb): Delete code attribute.
45 (optab): Delete ltu and geu elements.
46 * config/arm/arm.md (addsi3_carryin): Renamed from
47 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
48 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
49 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
50 (addsi3_carryin_clobercc): Similarly.
51 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
54 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
56 * config/arm/arm.md (arm_subdi3): Delete insn.
57 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
59 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
61 * config/arm/arm-modes.def (CC_RSB): New CC mode.
62 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
63 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
65 (maybe_get_arm_condition_code): Handle CC_RSBmode.
66 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
68 (subdi3): Rewrite to early-expand the sub-operations.
69 (rsb_im_compare): New pattern.
71 (negdi2_insn): Delete.
72 (arm_negsi2): Correct type attribute to alu_imm.
73 (negsi2_0compare): New insn pattern.
74 (negsi2_carryin): New insn pattern.
76 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
78 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
81 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
83 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
84 to match canonical form.
86 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
88 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
89 (extend<mode>di2): Likewise.
91 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
93 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
94 * config/arm/arm.c (arm_decompose_di_binop): New function.
95 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
96 If not generating Thumb-1 code, decompose the operation into 32-bit
98 * add0si_carryin_<optab>: New pattern.
100 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
102 * arm.md (adddi3): Only accept register operands.
103 (arm_adddi3): Convert to simple insn with no split. Do not accept
105 (adddi_sesidi_di): Delete patern.
106 (adddi_zesidi_di): Likewise.
107 (uaddv<mode>4): Use LTU as condition for branch.
108 (adddi3_compareV): Convert to simple insn with no split.
109 (addsi3_compareV_upper): Delete pattern.
110 (adddi3_compareC): Convert to simple insn with no split. Correct
111 flags setting expression.
112 (addsi3_compareC_upper): Delete pattern.
113 (addsi3_compareC): Correct flags setting expression.
114 (subdi3_compare1): Convert to simple insn with no split.
115 (subsi3_carryin_compare): Delete pattern.
116 (arm_subdi3): Convert to simple insn with no split.
117 (subdi_zesidi): Delete pattern.
118 (subdi_di_sesidi): Delete pattern.
119 (subdi_zesidi_di): Delete pattern.
120 (subdi_sesidi_di): Delete pattern.
121 (subdi_zesidi_zesidi): Delete pattern.
122 (negvdi3): Use s_register_operand.
123 (negdi2_compare): Convert to simple insn with no split.
124 (negdi2_insn): Likewise.
125 (negsi2_carryin_compare): Delete pattern.
126 (negdi_zero_extendsidi): Delete pattern.
127 (arm_cmpdi_insn): Convert to simple insn with no split.
128 (negdi2): Don't call gen_negdi2_neon.
129 * config/arm/neon.md (adddi3_neon): Delete pattern.
130 (subdi3_neon): Delete pattern.
131 (negdi2_neon): Delete pattern.
132 (splits for negdi2_neon): Delete splits.
134 2019-10-18 Jakub Jelinek <jakub@redhat.com>
137 * ggc-page.c (release_pages): Read g->alloc_size before free rather
140 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
142 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
143 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
144 new multilib variants and new mappings.
146 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
149 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
151 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
152 Richard Sandiford <richard.sandiford@arm.com>
155 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
156 and define hashmap traits for it.
157 (loop_vec_info::scalar_cond_masked_set): New member.
158 (vect_record_loop_mask): Adjust prototype.
159 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
161 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
162 vect_record_loop_mask.
163 (vectorizable_live_operation): Likewise.
164 (vect_record_loop_mask): New param scalar_mask. Add entry
165 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
166 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
167 Pass it as last arg to vect_record_loop_mask.
168 (vectorizable_call): Pass scalar_mask as last arg to
169 vect_record_loop_mask.
170 (vectorizable_store): Likewise.
171 (vectorizable_load): Likewise.
172 (vectorizable_condition): Check if another part of vectorized code
173 applies loop_mask to condition or to it's inverse, and if yes,
174 apply loop_mask to result of vector comparison.
176 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
178 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
180 2019-10-18 Jakub Jelinek <jakub@redhat.com>
182 PR tree-optimization/92056
183 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
184 before calling compute_builtin_object_size.
186 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
189 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
190 (movdi_low_st): Delete.
191 * config/rs6000/rs6000.c
192 (darwin_rs6000_legitimate_lo_sum_const_p): New.
193 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
194 * config/rs6000/rs6000.md (movsi_low): Delete.
196 2019-10-17 Jason Merrill <jason@redhat.com>
198 * gimplify.h (get_initialized_tmp_var): Add default argument to
200 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
201 NULL post_p argument.
202 * targhooks (std_gimplify_va_arg_expr): Likewise.
204 2019-10-17 Richard Biener <rguenther@suse.de>
206 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
207 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
208 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
209 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
210 * tree-vect-loop.c (vect_is_simple_reduction): Set
211 STMT_VINFO_REDUC_CODE.
212 (vectorizable_reduction): Remove dead and redundant code, use
213 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
215 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
217 Fix breakage introduced by r276985.
219 * config/avr/avr.c (avr_option_override): Remove set of
220 PARAM_ALLOW_STORE_DATA_RACES.
221 * common/config/avr/avr-common.c (avr_option_optimization_table)
222 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
224 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
226 * config/i386/i386.h (processor_costs): Add clear_ratio.
227 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
228 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
229 of 6 and move_ratio in all cost models.
231 2019-10-17 Richard Biener <rguenther@suse.de>
233 * tree-vect-loop.c (check_reduction_path): Compute reduction
235 (vect_is_simple_reduction): Remove special-case of single-stmt
236 reduction path detection.
238 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
240 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
242 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
244 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
245 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
246 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
247 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
248 New combine patterns.
249 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
251 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
253 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
255 * tree-vrp.c (value_range_base::dump): Display +INF for both
256 pointers and integers when appropriate.
258 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
260 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
261 when to use versioning threshold.
263 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
265 * tree-vect-loop.c (determine_peel_for_niter): New function contained
266 outlined code from ...
267 (vect_analyze_loop_2): ... here.
269 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
271 * tree-vect-loop.c (vect_transform_loop): Move code from here...
272 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
273 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
275 2019-10-17 Richard Biener <rguenther@suse.de>
277 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
278 (vect_is_simple_reduction): Move all validity checks ...
279 (vectorizable_reduction): ... here. Compute whether we
280 need a fold-left reduction here.
281 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
282 both overloads, check needs_fold_left_reduction_p directly.
283 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
285 2019-10-17 Richard Biener <rguenther@suse.de>
287 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
288 TARGET_MEM_REF creation.
290 2019-10-17 Richard Biener <rguenther@suse.de>
292 PR tree-optimization/92129
293 * tree-vect-loop.c (vectorizable_reduction): Also fail
294 on GIMPLE_SINGLE_RHS.
296 2019-10-17 Jakub Jelinek <jakub@redhat.com>
298 PR tree-optimization/92056
299 * tree-object-size.c (cond_expr_object_size): Return early if then_
300 processing resulted in unknown size.
302 PR tree-optimization/92115
303 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
304 temporary if it could trap.
306 2019-10-17 Richard Biener <rguenther@suse.de>
309 * dwarf2out.c (gen_formal_parameter_die): Also try to match
310 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
312 2019-10-16 Jakub Jelinek <jakub@redhat.com>
314 * tree-ssa-strlen.c (maybe_invalidate): Use
315 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
317 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
318 Jim Wilson <jimw@sifive.com>
320 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
321 regs to SIBCALL_REGS.
322 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
323 passing regs to SIBCALL_REGS.
325 2019-10-16 Martin Sebor <msebor@redhat.com>
327 PR tree-optimization/83821
328 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
329 the length of a string when available.
330 (handle_builtin_memset) Add argument.
331 (handle_store, strlen_check_and_optimize_call): Same.
332 (check_and_optimize_stmt): Same. Pass it to callees.
334 2019-10-16 Martin Sebor <msebor@redhat.com>
336 PR tree-optimization/91996
337 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
339 (compare_nonzero_chars): Add an overload.
340 (count_nonzero_bytes): Add an argument. Call overload above.
341 Handle non-constant lengths in some range.
342 (handle_store): Add an argument.
343 (check_and_optimize_stmt): Pass an argument to handle_store.
345 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
347 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
349 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
351 * config/mips/mips.c (mips_expand_builtin_insn): Force the
352 operands which correspond to the same input-output register to
353 have the same pseudo assigned to them.
355 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
357 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
359 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
361 * config/aarch64/aarch64.c (aarch64_classify_symbol):
362 Apply reasonable limit to symbol offsets.
364 2019-10-16 Richard Biener <rguenther@suse.de>
366 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
367 (vect_is_simple_reduction): Delay checking to
368 vectorizable_reduction and relax the checking.
369 (vectorizable_reduction): Check we have a simple use. Check
370 for bogus condition reductions.
371 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
372 are looking at the last stmt in a pattern sequence when
373 filling in backedge PHI values.
375 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
376 Jiufu Guo <guojiufu@linux.ibm.com>
379 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
380 the callee explicitly disables some isa_flags the caller is using.
382 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
384 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
386 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
388 * genmodes.c (mode_data::order): New field.
389 (blank_mode): Update accordingly.
390 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
391 (make_vector_modes): Likewise.
392 (VECTOR_MODES): Update use accordingly.
393 (cmp_modes): Sort by the new order field ahead of sorting by size.
394 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
395 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
396 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
397 (aarch64_classify_vector_mode): Handle the new partial modes.
398 (aarch64_vl_bytes): New function.
399 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
400 when counting the number of registers in an SVE mode.
401 (aarch64_class_max_nregs): Likewise.
402 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
404 (aarch64_classify_address): Treat partial vectors analogously
406 (aarch64_print_address_internal): Consolidate the printing of
407 MUL VL addresses, using aarch64_vl_bytes as the number of
408 bytes represented by "VL".
409 (aarch64_vector_mode_supported_p): Reject partial vector modes.
411 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
413 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
414 rather than known_lt when choosing frame layouts.
416 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
418 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
419 that all the adjustments add up to the full frame size.
420 Use crtl->outgoing_args_size directly as the final adjustment
423 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
425 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
426 "frame" reference instead of always referring directly to
427 "cfun->machine->frame".
429 2019-10-16 Richard Biener <rguenther@suse.de>
431 PR tree-optimization/92119
432 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
433 against missing bswap lhs.
435 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
438 * poly-int.h (constant_lower_bound_with_limit): New function.
439 (constant_upper_bound_with_limit): Likewise.
440 * doc/poly-int.texi: Document them.
441 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
442 into the worst-case INTEGER_CST bounds.
444 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
447 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
448 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
449 * ipa-predicat.h (struct expr_eval_op): New struct.
450 (expr_eval_ops): New typedef.
451 (struct condition): Add type and param_ops fields, remove size field.
452 (add_condition): Replace size parameter with type parameter, add
454 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
455 (predicate::add_clause): Add comparisons on type and param_ops.
456 (dump_condition): Add debug dump for param_ops.
457 (remap_after_inlining): Adjust call arguments to add_condition.
458 (add_condition): Replace size parameter with type parameter, add
459 param_ops parameter. Unshare constant value used in conditions.
460 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
461 parameter expressions using param_ops.
462 (decompose_param_expr): New function.
463 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
464 to replace call to unmodified_parm_or_parm_agg_item.
465 (set_switch_stmt_execution_predicate): Likewise.
466 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
468 (inline_read_section): Read param_ops from summary stream.
469 (ipa_fn_summary_write): Write param_ops to summary stream.
471 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
473 PR rtl-optimization/92107
474 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
477 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
479 * config/darwin.c: Update description of fix and continue.
481 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
483 * config/darwin.c (darwin_binds_local_p): Update to call
484 default_binds_local_p_3 () directly. amend comments.
486 2019-10-15 Richard Biener <rguenther@suse.de>
488 * lto-streamer-out.c (lto_variably_modified_type_p): New.
489 (tree_is_indexable): Use it.
490 * tree-streamer-out.c (pack_ts_type_common_value_fields):
491 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
492 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
494 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
496 * config/msp430/msp430.md (zero_extendqipsi2): New.
497 (zero_extendqisi2): Optimize case where src register and base dst
498 register are the same.
499 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
500 (zero_extendpsisi2): Optimize r->m case.
501 Add unnamed insn patterns to catch insns combine searches for when
502 optimizing pointer manipulation.
504 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
506 * config/msp430/msp430.md: Group zero_extend* insns together.
508 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
510 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
512 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
514 (msp430_subreg): Likewise.
515 (msp430_split_addsi): Likewise.
516 (msp430_print_operand_addr): Likewise.
517 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
518 (USE_STORE_POST_INCREMENT): Define.
519 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
520 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
521 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
522 (msp430_general_dst_operand): New.
523 (msp430_general_dst_nonv_operand): New.
524 (msp430_nonsubreg_operand): Remove.
525 (msp430_nonsubreg_dst_operand): New.
526 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
527 of defunct msp430_nonsubreg_operand.
528 (msp430_nonsubregnonpostinc_or_imm_operand): New.
530 2019-10-15 Richard Biener <rguenther@suse.de>
532 PR tree-optimization/91929
533 * tree-ssa-pre.c (pre_expr_d::loc): New member.
534 (get_or_alloc_expr_for_name): Initialize it.
535 (get_or_alloc_expr_for_constant): Likewise.
536 (phi_translate_1): Copy it.
537 (create_expression_by_pieces): Use the original location
538 of the expression for the inserted stmt.
539 (compute_avail): Record the location of the stmt for the
542 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
544 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
545 before using tree_to_uhwi.
547 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
549 * config/s390/s390.md: Run %a0:DI splitters only after reload.
551 2019-10-15 Richard Biener <rguenther@suse.de>
553 PR tree-optimization/92094
554 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
555 do not adjust the reduction definition def type.
556 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
557 defines the latch argument of the PHI.
559 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
562 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
563 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
564 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
565 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
566 _mm_maskz_roundscale_round_sd): New intrinsics.
567 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
568 __builtin_ia32_rndscales?_mask_round builtins instead of
569 __builtin_ia32_rndscales?_round.
570 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
571 __builtin_ia32_rndscalesd_round): Remove.
572 (__builtin_ia32_rndscaless_mask_round,
573 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
575 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
576 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
577 ... this, adjust and add subst atrributes to make it maskable.
579 2019-10-15 Richard Biener <rguenther@suse.de>
582 * common.opt (fallow-store-data-races): New.
583 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
584 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
585 * doc/invoke.texi (fallow-store-data-races): Document.
586 (--param allow-store-data-races): Remove docs.
587 * opts.c (default_options_table): Enable -fallow-store-data-races
589 (default_options_optimization): Do not enable --param
590 allow-store-data-races at -Ofast.
591 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
592 instead of PARAM_ALLOW_STORE_DATA_RACES.
593 * tree-ssa-loop-im.c (execute_sm): Likewise.
595 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
597 PR tree-optimization/92085
598 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
599 instead of calling it unconditionally after
600 delete_dead_or_redundant_assignment and fix indentation.
602 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
604 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
606 (*fmsub<SDF:mode>4): Likewise.
607 *fnmsub<SDF:mode>4): Likewise.
608 (*fnmadd<SDF:mode>4): Likewise.
610 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
612 * doc/tree-ssa.texi: Update renamed macro name.
614 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
616 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
619 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
621 * config/darwin.c: Use unsigned ints for the picbase label
622 counters, initialise the vars explicitly.
623 (update_pic_label_number_if_needed): Move a variable declaration
624 to where it's needed.
625 (machopic_output_function_base_name): Use a more strict checking
626 assert, and and unsigned int for the picbase label counter.
627 (machopic_get_function_picbase): Likewise.
629 2019-10-14 Richard Biener <rguenther@suse.de>
632 * dse.c (scan_insn): Use param max_active_local_stores.
633 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
634 based on optimization level.
635 * loop-invariant.c (move_loop_invariants): Adjust
636 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
637 * opts.c (default_options_optimization): Do not adjust
638 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
639 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
641 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
643 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
645 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
647 * config/arm/arm.c (arm_option_override): Don't override sched
650 2019-10-14 Richard Biener <rguenther@suse.de>
652 PR tree-optimization/92069
653 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
654 cycles do not set vect_nested_cycle on the latch definition.
656 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
658 * function-abi.h (expr_callee_abi): Declare.
659 * function-abi.cc (expr_callee_abi): New function.
661 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
663 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
665 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
666 non-zero being represented as [1,MAX].
668 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
670 * tree-sra.c (dump_access): Add missing braces.
672 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
674 * config/darwin.c (machopic_indirection_name): Rework the
675 function to emit linker-visible symbols only for indirections
676 in the data section. Clean up the code and update comments.
678 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
680 * config/darwin.c (machopic_indirect_data_reference): Remove
683 2019-10-13 Nathan Sidwell <nathan@acm.org>
685 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
687 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
689 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
692 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
694 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
695 so non-virutal are before virutals.
696 (output_function): Avoid body modifications.
698 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
700 * config/pa/pa.c (pa_output_call): Load descriptor address to register
701 %r22. Load function address before global pointer.
702 (pa_attr_length_indirect_call): Adjust length of inline versions of
704 (pa_output_indirect_call): Remove fast inline version of $$dyncall
705 before normal cases. Update inline $$dyncall sequences to preserve
706 function descriptor address in register %r22.
707 (TRAMPOLINE_CODE_SIZE): Adjust.
708 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
709 register %r22 contains trampoline address.
710 (pa_trampoline_init): Adjust offsets.
711 (pa_trampoline_adjust_address): Likewise.
712 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
714 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
717 * config/darwin.c (machopic_indirection): New field to flag
718 non-lazy-symbol-pointers in the data section.
719 (machopic_indirection_name): Compute if an indirection should
720 appear in the data section.
721 (machopic_output_data_section_indirection): New callback split
722 from machopic_output_indirection.
723 (machopic_output_stub_indirection): Likewise.
724 (machopic_output_indirection): Retain the code for non-lazy
725 symbol pointers in their regular section.
726 (machopic_finish): Use the new callbacks to order the indirection
729 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
731 * config/darwin-protos.h (machopic_finish): Delete.
732 * config/darwin.c (machopic_finish): Make static.
734 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
736 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
737 sections when building kernel extension code.
739 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
741 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
744 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
746 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
749 2019-10-12 Jakub Jelinek <jakub@redhat.com>
752 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
753 <case VEC_COND_EXPR>: Return false with *handled = false.
754 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
755 recursing on the first operand.
756 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
757 instead of tree_could_trap_p.
758 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
760 2019-10-11 Jim Wilson <jimw@sifive.com>
762 PR rtl-optimization/91860
763 * combine.c (subst): If new_rtx is a constant, also check for
764 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
766 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
768 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
769 INTVAL when calling store_bit_field.
771 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
773 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
776 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
778 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
779 vectorizable_live_operation.
780 (vectorizable_live_operation): Adjust parameters.
781 * tree-vect-stmts.c (vect_init_vector,
782 vect_gen_widened_results_half): Fix typo in function comment.
783 (can_vectorize_live_stmts): Adjust function comment.
784 Adjust parameters. Adjust call to vectorizable_live_operation.
785 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
786 (vect_transform_stmt): Adjust function comment. Adjust call to
787 can_vectorize_live_stmts.
788 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
790 2019-10-11 Richard Biener <rguenther@suse.de>
792 PR tree-optimization/90883
793 PR tree-optimization/91091
794 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
795 alias-sets both for recording VN table entries and continuing
796 walking after translating through copies. Handle same-sized
797 reads from SSA names by returning the plain SSA name.
798 (eliminate_dom_walker::eliminate_stmt): Properly handle
799 non-size precision stores in redundant store elimination.
801 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
803 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
804 (ggc_collect): Dump later to not interfere with release_page dump.
805 (ggc_trim): New function.
806 * ggc-none.c (ggc_trim): New.
807 * ggc.h (ggc_trim): Declare.
809 2019-10-11 Richard Biener <rguenther@suse.de>
811 PR tree-optimization/92066
812 PR tree-optimization/92046
813 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
814 Fix bogus cost model check.
816 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
818 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
819 (LANG_HOOKS_DECLS): Add it.
820 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
821 update comment for omp_is_optional_argument.
822 * omp-general.c (omp_is_allocatable_or_ptr): New.
823 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
824 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
825 Fortran's optional arguments and allocatable/pointer scalars
826 with use_device_addr.
828 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
831 * config/s390/2827.md: Add new opcodes.
832 * config/s390/2964.md: Likewise.
833 * config/s390/3906.md: Likewise.
834 * config/s390/8561.md: Likewise.
835 * config/s390/s390-builtins.def (s390_vfchesb): Use
836 the new vec_cmpgev4sf_quiet_nocc.
837 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
838 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
839 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
840 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
841 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
842 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
843 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
844 * config/s390/s390-modes.def (CCSFPS): New mode.
845 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
846 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
847 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
848 (s390_expand_vec_compare): Use non-signaling patterns where
850 (s390_reverse_condition): Support CCSFPS.
851 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
852 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
853 (asm_fcmp_op): Likewise.
854 (*smaxv2df3_vx): Use pattern for quiet comparison.
855 (*sminv2df3_vx): Likewise.
856 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
857 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
858 (vec_cmpgt<mode>_quiet_nocc): Likewise.
859 (vec_cmplt<mode>_quiet_nocc): New expander.
860 (vec_cmpge<mode>_quiet_nocc): New pattern.
861 (vec_cmple<mode>_quiet_nocc): New expander.
862 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
863 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
864 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
865 (*vec_cmpge<mode>_signaling_nocc): Likewise.
866 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
867 (vec_cmpungt<mode>): New expander.
868 (vec_cmpunge<mode>): Likewise.
869 (vec_cmpuneq<mode>): Use quiet patterns.
870 (vec_cmpltgt<mode>): Allow only on z14+.
871 (vec_cmpordered<mode>): Use quiet patterns.
872 (vec_cmpunordered<mode>): Likewise.
873 (VEC_CMP_EXPAND): Add ungt and unge.
875 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
877 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
879 * lto-streamer-out.c: Include tree-dfa.h.
880 (output_cfg): Do not use cfun.
881 (lto_prepare_function_for_streaming): New.
882 (output_function): Do not push cfun; do not initialize loop optimizer.
883 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
884 * passes.c (ipa_write_summaries): Use it.
885 (ipa_write_optimization_summaries): Do not modify bodies.
886 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
887 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
888 * tree-ssa-dse.c (pass_dse::execute): Update use of
889 renumber_gimple_stmt_uids.
890 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
892 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
894 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
895 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
897 2019-10-10 Joseph Myers <joseph@codesourcery.com>
899 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
901 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
902 Also define DFP macros for these conditions.
903 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
904 DEC128_SUBNORMAL_MIN): Do not define.
905 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
906 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
908 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
909 Sandra Loosemore <sandra@codesourcery.com>
912 * doc/lto.texi (IPA): Reference to the IPA passes.
913 * doc/passes.texi (Pass manager): Add node IPA passes and
914 description for each IPA pass.
916 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
918 * ipa-reference.c: Do not include splay-tree.h
919 (reference_vars_to_consider): Turn to hash map.
920 (get_static_name, ipa_init, analyze_function, propagate,
921 stream_out_bitmap, ipa_reference_write_optimization_summary,
922 ipa_reference_write_optimization_summary): Update.
924 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
926 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
928 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
930 * config/darwin.c: Lookup Objective C metadata and force indirection
933 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
935 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
937 (mem_operand_gpr): Add check for prefixed addresses.
938 (mem_operand_ds_form): Add check for prefixed addresses.
939 (rs6000_legitimate_offset_address_p): If we support prefixed
940 addresses, check for a 34-bit offset instead of 16-bit.
941 (rs6000_legitimate_address_p): Add check for prefixed addresses.
942 Do not allow load/store with update if the address is prefixed.
943 (rs6000_mode_dependent_address): If we support prefixed
944 addresses, check for a 34-bit offset instead of 16-bit.
946 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
949 * config/s390/vector.md (vcond_comparison_operator): New
951 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
953 2019-10-10 David Malcolm <dmalcolm@redhat.com>
956 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
958 * configure.ac (--with-documentation-root-url): New option.
959 * configure: Regenerate.
960 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
961 option URL, add it as a new string field of the diagnostic option.
962 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
963 (print_option_information): If get_option_url is non-NULL, call
964 it, and if the result is non-NULL, potentially emit an escape
965 sequence to markup the option text with the resulting URL.
966 * diagnostic.h (diagnostic_context::get_option_url): New callback.
967 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
968 example of JSON output.
969 * opts-diagnostic.h (get_option_url): New decl.
970 * opts.c (get_option_url): New function.
971 * toplev.c (general_init): Initialize the get_option_url callback.
973 2019-10-10 David Malcolm <dmalcolm@redhat.com>
976 * common.opt (fdiagnostics-urls=): New option.
977 (diagnostic-url.h): Add SourceInclude.
978 (diagnostic_url_rule): New enum.
979 * diagnostic-color.c: Include "diagnostic-url.h".
980 (diagnostic_urls_enabled_p): New function.
981 * diagnostic-url.h: New file.
982 * diagnostic.c: Include "diagnostic-url.h".
983 (diagnostic_urls_init): New function.
984 * diagnostic.h (diagnostic_urls_init): New decl.
985 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
986 -fdiagnostics-urls to the list.
987 (-fdiagnostics-urls): New option.
988 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
989 (driver::global_initializations): Call diagnostic_urls_init.
990 * opts-global.c (init_options_once): Likewise.
991 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
992 * pretty-print.c (pretty_printer::pretty_printer): Initialize
994 (pp_begin_url): New function.
995 (pp_end_url): New function.
996 (selftest::test_urls): New selftest.
997 (selftest::pretty_print_c_tests): Call it.
998 * pretty-print.h (pretty_printer::show_urls): New field.
999 (pp_begin_url): New decl.
1000 (pp_end_url): New decl.
1002 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
1005 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
1007 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
1010 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
1011 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
1012 also for TARGET_FPU_SH4_300.
1013 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
1015 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
1016 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
1017 (*negsf2_i): Split into ...
1018 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
1019 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
1020 (**abssf2_i): Split into ...
1021 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
1022 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
1023 (*negdf2_i): Split into ...
1024 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
1025 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
1026 (**abssf2_i): Split into ...
1027 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
1029 2019-10-10 Richard Biener <rguenther@suse.de>
1032 * opts.c (finish_options): Do not influence global --params
1033 from options that are adjustable per function.
1034 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1035 Apply --param adjustment based on active cost-model.
1036 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
1037 further store-sinking when vectorization or if-conversion
1040 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1043 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
1044 rather than ggc_alloc_cleared to alloc symbol table.
1045 * toplev.c (general_init): Likewise.
1046 * cgraph.h (symbol_table): Explicitly construct every field.
1048 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1050 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
1052 * config.gcc: Add z15 as option for --with-arch and --with-tune
1054 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
1055 error reporting for unsupported builtins.
1056 * config/s390/s390-opts.h (enum processor_type): Rename
1057 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
1058 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
1059 * config/s390/driver-native.c (s390_host_detect_local_cpu):
1061 * config/s390/s390-builtins.def: Likewise.
1062 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
1063 (s390_expand_builtin): Add missing check for unsupported builtins.
1064 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
1065 (s390_rtx_costs): Likewise.
1066 (s390_get_sched_attrmask): Rename arch13 to z15.
1067 (s390_get_unit_mask): Likewise.
1068 (s390_is_fpd): Likewise.
1069 (s390_is_fxd): Likewise.
1070 * config/s390/s390.h (enum processor_flags): Likewise.
1071 * config/s390/s390.md: Likewise.
1072 * config/s390/vector.md: Likewise.
1073 * config/s390/vx-builtins.md: Likewise.
1074 * config/s390/s390.opt: Add z15 to processor_type value.
1076 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1079 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
1081 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
1082 ("split_stack_data", "split_stack_call")
1083 ("split_stack_call_<mode>", "split_stack_cond_call")
1084 ("split_stack_cond_call_<mode>"): Remove.
1085 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
1087 * config/s390/s390.c (s390_output_split_stack_data): New function.
1088 (s390_expand_split_stack_prologue): Use the merged expander.
1090 2019-10-09 Martin Sebor <msebor@redhat.com>
1092 PR tree-optimization/90879
1093 * builtins.c (check_access): Avoid using maxbound when null.
1094 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
1095 * doc/invoke.texi (-Wstring-compare): Document new warning option.
1096 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
1098 (get_range_strlen): Overwrite initial maxbound when non-null.
1099 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
1101 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
1102 (used_only_for_zero_equality): New function.
1103 (handle_builtin_memcmp): Call it.
1104 (determine_min_objsize): Return an integer instead of tree.
1105 (get_len_or_size, strxcmp_eqz_result): New functions.
1106 (maybe_warn_pointless_strcmp): New function.
1107 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
1108 between a longer string and a smaller array.
1109 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
1111 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1113 * config/darwin.c (darwin_override_options): Make the check for
1114 Objective-C ABI version more specific for 64bit code.
1116 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1118 * config/darwin.c (machopic_indirect_data_reference): Set flag to
1119 indicate that the new symbol is an indirection.
1120 (machopic_indirect_call_target): Likewise.
1121 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
1122 (MACHO_SYMBOL_INDIRECTION_P): New.
1123 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
1125 2019-10-08 Jason Merrill <jason@redhat.com>
1127 * doc/invoke.texi: Document -fconcepts-ts.
1129 2019-10-09 Richard Biener <rguenther@suse.de>
1131 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
1132 allow stmts other than GIMPLE_ASSIGN in nested cycles.
1134 2019-10-08 Richard Biener <rguenther@suse.de>
1136 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
1137 (_stmt_vec_info::force_single_cycle): Likewise.
1138 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
1139 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
1140 * tree-vect-loop.c (vectorizable_reduction): Set
1141 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
1142 (vect_transform_reduction): Use them to remove redundant code.
1143 (vect_transform_cycle_phi): Likewise.
1145 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
1147 PR tree-optimization/90836
1148 * gcc/match.pd (popcount): New pattern.
1150 2019-10-08 Martin Sebor <msebor@redhat.com>
1154 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
1155 again once nbytes has been set. Set the access size when not yet set.
1157 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1159 * config/darwin.c (machopic_select_section): Remove dead code for
1160 old Objective-C section selection method, replace with unreachable.
1162 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1164 * config/darwin.c (machopic_indirect_data_reference): Check for
1165 required indirections before making direct access to defined
1167 (machopic_output_indirection): Place the indirected pointes for
1168 required indirections into the non-lazy symbol pointers section.
1169 (darwin_encode_section_info):
1170 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
1171 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
1173 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
1176 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
1177 instead of ALL_SSE_REG to check if function call preserves some
1178 256-bit SSE registers.
1180 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1182 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
1183 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
1184 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
1186 2019-10-08 Richard Biener <rguenther@suse.de>
1188 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
1189 (_stmt_vec_info::is_reduc_info): Add.
1190 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
1191 (vectorizable_condition): Remove.
1192 (vectorizable_shift): Likewise.
1193 (vectorizable_reduction): Adjust.
1194 (info_for_reduction): New.
1195 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
1196 (vect_analyze_scalar_cycles_1): ... here.
1197 (vect_analyze_loop_operations): Adjust.
1198 (needs_fold_left_reduction_p): Simplify for single caller.
1199 (vect_is_simple_reduction): Likewise. Remove stmt restriction
1200 for nested cycles not part of double reductions.
1201 (vect_model_reduction_cost): Pass in the reduction type.
1202 (info_for_reduction): New function.
1203 (vect_create_epilog_for_reduction): Use it, access reduction
1204 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
1205 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1206 (vectorize_fold_left_reduction): Remove pointless assert.
1207 (vectorizable_reduction): Analyze the full reduction when
1208 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
1209 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
1210 stmt code-generation to vectorizable_* in most cases. Verify
1211 code-generation only for cases handled by
1212 vect_transform_reductuon.
1213 (vect_transform_reduction): Use info_for_reduction to get at
1214 reduction meta. Simplify.
1215 (vect_transform_cycle_phi): Likewise.
1216 (vectorizable_live_operation): Likewise.
1217 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
1218 at the PHI node for STMT_VINFO_REDUC_TYPE.
1219 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
1220 longer necessary code.
1221 * tree-vect-stmts.c (vectorizable_shift): Make static again.
1222 (vectorizable_condition): Likewise. Get at reduction related
1223 info via info_for_reduction.
1224 (vect_analyze_stmt): Adjust.
1225 (vect_transform_stmt): Likewise.
1226 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1227 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1229 2019-10-08 Joseph Myers <joseph@codesourcery.com>
1231 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
1232 -fno-fp-int-builtin-inexact default for C2X.
1234 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1235 Richard Biener <rguenther@suse.de>
1237 PR tree-optimization/91532
1238 * tree-if-conv.c: Include tree-ssa-dse.h.
1239 (ifcvt_local_dce): Change param from bb to loop,
1240 and call dse_classify_store.
1241 (tree_if_conversion): Pass loop instead of loop->header as arg
1243 * tree-ssa-dse.c: Include tree-ssa-dse.h.
1244 (delete_dead_or_redundant_assignment): Remove static qualifier from
1245 declaration, and add prototype in tree-ssa-dse.h.
1246 (dse_store_status): Move to tree-ssa-dse.h.
1247 (dse_classify_store): Remove static qualifier and add new tree param
1248 stop_at_vuse, and add prototype in tree-ssa-dse.h.
1249 * tree-ssa-dse.h: New header.
1251 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1253 * config/darwin.c (machopic_output_indirection): Don't put
1254 hidden symbol indirections into the .data section, use the
1255 non-lazy symbol pointers section as normal.
1256 (darwin_encode_section_info): Record if a symbol is hidden.
1257 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
1258 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
1260 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1262 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
1263 predicates instead of accessing bits directly.
1264 (machopic_indirect_call_target): Likewise.
1265 (machopic_output_indirection): Likewise.
1266 (darwin_encode_section_info): Improve description. Use renamed
1267 symbol flags. Use predicate macros for variables and functions.
1269 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
1270 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
1271 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
1272 (MACHO_SYMBOL_VARIABLE_P): New.
1273 (MACHO_SYMBOL_DEFINED_P):New.
1274 (MACHO_SYMBOL_STATIC_P): New.
1275 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
1276 (SYMBOL_FLAG_SUBT_DEP): New.
1277 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
1279 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1281 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
1282 (msp430_expand_epilogue): Likewise.
1283 * config/msp430/predicates.md: Likewise.
1284 * config/msp430/msp430.md: Likewise.
1285 Replace blocks of 8 spaces with tabs.
1287 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1289 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
1290 * config/msp430/msp430.c (msp430_split_addsi): New.
1291 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
1292 a block of C code for splitting addsi.
1294 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
1296 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
1297 ix86_expand_rounddf_32): Reorder functions.
1298 * config/i386/i386-protos.h: Update.
1300 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1302 * config.in: Regenerate.
1303 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
1304 Add new "Yx" constraint.
1305 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
1307 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
1309 * config/msp430/msp430.c (msp430_option_override): Allow the lower
1310 code/data region to be selected in the small memory model.
1311 (msp430_section_attr): Don't warn if the "section" and "lower"
1312 attributes are used together.
1313 (msp430_handle_generic_attribute): Likewise.
1314 (msp430_var_in_low_mem): New function.
1315 (TARGET_ENCODE_SECTION_INFO): Define.
1316 (msp430_encode_section_info): New function.
1317 (gen_prefix): Return early in the small memory model.
1318 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
1319 ".lower" prefix if -m{code,data}-region=lower have been passed.
1320 (msp430_output_aligned_decl_common): Emit common symbols when
1321 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
1323 (TARGET_ASM_FILE_END): Define.
1324 (msp430_file_end): New function.
1325 (msp430_do_not_relax_short_jumps): Allow relaxation when
1326 function will be in the lower region.
1327 (msp430_op_not_in_high_mem): New function.
1328 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
1329 the 'X' operand selector.
1330 Clarify comment for 'x' operand selector.
1331 * config/msp430/msp430.h (LINK_SPEC): Propagate
1332 -m{code,data}-region to the linker via spec function
1333 msp430_propagate_region_opt.
1334 (msp430_propagate_region_opt): New prototype.
1335 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
1336 (SYMBOL_FLAG_LOW_MEM): Define.
1337 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
1339 (zero_extendqihi2): Fix operand number used by "%X" selector.
1340 (zero_extendqisi2): Likewise.
1341 (zero_extendhisi2): Likewise.
1342 (movqi): Use "Yx" constraint in place of "%X" operand selector.
1347 (addhi3_cy): Likewise.
1348 (addchi4_cy): Likewise.
1352 (bic<mode>3): Likewise.
1353 (and<mode>3): Likewise.
1354 (ior<mode>3): Likewise.
1355 (xor<mode>3): Likewise.
1356 (slli_1): Add missing "%X" operand selector.
1364 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1366 (cbranchhi4_real): Likewise.
1367 (cbranchqi4_reversed): Likewise.
1368 (cbranchhi4_reversed): Likewise.
1369 (*bitbranch<mode>4): Likewise.
1370 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1371 * config/msp430/msp430.opt (mcode-region=): Set default to
1372 MSP430_REGION_LOWER. Improve docstring.
1373 (mdata-region=): Likewise.
1374 (muse-lower-region-prefix): New option.
1375 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1376 mdata-region=none multilib.
1377 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1378 mdata-region=none multilib.
1379 MULTILIB_EXCEPTIONS: Remove.
1380 MULTILIB_REQUIRED: Define.
1381 * configure: Regenerate.
1382 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1383 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1384 * doc/extend.texi: Clarify comment for {upper,lower,either}
1385 function attributes.
1386 Add separate description for "lower" variable attribute.
1388 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1391 * optabs-tree.c (vcond_icode_p): New function.
1392 (vcond_eq_icode_p): Likewise.
1393 (expand_vec_cond_expr_p): Use vcond_icode_p and
1395 * optabs.c (can_vcond_compare_p): New function.
1396 * optabs.h (can_vcond_compare_p): Likewise.
1398 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1401 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1402 caller passes a non-trapping condition.
1403 (is_gimple_condexpr): Allow trapping conditions.
1404 (is_gimple_condexpr_1): New helper function.
1405 (is_gimple_condexpr_for_cond): New function, acts like old
1407 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1408 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1409 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1410 * gimplify.c (gimplify_cond_expr): Use
1411 is_gimple_condexpr_for_cond.
1412 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1413 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1415 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1416 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1417 is_gimple_condexpr_for_cond, remove pointless tmp check
1418 (forward_propagate_into_cond): Remove pointless tmp check.
1420 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1422 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1423 match that of other gsi_next_* functions. Adjust the comment.
1424 (gsi_start_nonvirtual_phis): New function.
1425 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1426 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1428 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1430 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1431 setjmp situation here. Fix a verb's ending: "the exact variables or
1432 elements for which there are warnings depends" -> "... depend".
1434 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1436 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1438 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1440 * ipa-prop.c (ipa_vr::nonzero_p): New.
1441 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1443 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1444 * tree-vrp.c (range_has_numeric_bounds_p): New.
1445 (range_int_cst_p): Use range_has_numeric_bounds_p.
1446 (get_range_op_handler): New.
1447 (supported_types_p): New.
1448 (defined_ranges_p): New.
1449 (drop_undefines_to_varying): New.
1450 (range_fold_binary_symbolics_p): New.
1451 (range_fold_unary_symbolics_p): New.
1452 (range_fold_unary_expr): Extract out into above functions.
1453 (range_fold_binary_expr): Same.
1454 (value_range_base::normalize_addresses): New.
1455 (value_range_base::normalize_symbolics): Normalize addresses.
1456 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1458 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1460 * tree-vrp.c (value_range_base::singleton_p): Use
1461 value_range_base::num_pairs instead of vrp_val_is* to check
1462 if a range has one sub-range.
1464 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1466 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1467 DEF is not a true earlyclobber but is tied to a specific input
1468 operand, and so is effectively earlyclobber wrt inputs that have
1470 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1472 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1474 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1475 (pod_mode): Mark operators likewise.
1476 (scalar_int_mode): Mark non-default constructors and
1477 operators with CONSTEXPR.
1478 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1479 (fixed_size_mode): Likewise.
1481 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1484 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1485 and wrap the unspec_volatile in a parallel.
1486 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1487 the unspec_volatile.
1488 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1489 unspec_volatile to be wrapped in a parallel.
1490 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1491 (ix86_add_reg_usage_to_vzerouppers): New functions.
1492 (rest_of_handle_insert_vzeroupper): Use them to add register
1493 usage information to the vzeroupper instructions.
1495 2019-10-07 Richard Biener <rguenther@suse.de>
1497 PR tree-optimization/91975
1498 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1501 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1503 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1504 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1506 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1508 * config/darwin.c (darwin_override_options): Adjust objective-c
1509 ABI version error messages to avoid punctuation and contracted
1512 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1514 * ipa-inline.c: Fix type; compute size rather than self_size
1515 for size of caller function.
1517 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1520 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1521 choose const_data section for constants with relocations.
1522 (machopic_select_section): Pass relocation flag to
1523 darwin_rodata_section ().
1525 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1527 PR tree-optimization/91734
1528 * generic-match-head.c: Include fold-const-call.h.
1529 * match.pd (sqrt(x) cmp c): Check the boundary value and
1530 in case inexact computation of c*c affects comparison of the boundary,
1531 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1532 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1533 for -frounding-math. For c2, try the next smaller or larger floating
1534 point constant depending on comparison code and if it has the same
1535 sqrt as c2, use it instead of c2.
1537 2019-10-04 Martin Sebor <msebor@redhat.com>
1540 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1541 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1542 uninitialized objects.
1544 2019-10-04 Martin Sebor <msebor@redhat.com>
1546 * builtins.c (compute_objsize): Add an argument.
1547 * tree-object-size.c (addr_object_size): Same.
1548 (compute_builtin_object_size): Same.
1549 * tree-object-size.h (compute_builtin_object): Same.
1551 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1553 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1555 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1557 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1559 2019-10-04 Martin Jambor <mjambor@suse.cz>
1561 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1562 fntype when switching to calling memcpy instead of memset.
1564 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1566 * hash-table.h (hash_table::empty_slow): Don't assign
1567 size_t values to int variables.
1569 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1571 * expr.c (convert_mode_scalar): Remove shadowing local var.
1572 (emit_block_move): Rename local vars.
1573 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1574 (emit_push_insn): Rename local vars.
1575 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1576 shadowing local vars.
1577 (store_constructor): Remove shadowing local vars. Rename local var.
1578 (store_field, expand_cond_expr_using_cmove,
1579 expand_expr_real_2): Remove shadowing local vars.
1580 (expand_expr_real_1,
1581 do_store_flag): Remove shadowing local vars. Rename local vars.
1583 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1585 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1587 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1589 * genmatch.c (commutate): Rename local var.
1590 (lower_cond): Reuse local var.
1591 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1592 dt_operand::gen, dt_operand::gen_gimple_expr,
1593 dt_simplify::gen): Add a param. Rename generated vars.
1594 (decision_tree::insert_operand,
1595 (capture_info::walk_match, capture_info::walk_result,
1596 capture_info::walk_c_expr): Rename local vars.
1597 (expr::gen_transform): Rename generated vars.
1598 Use snprintf. Rename local vars.
1599 (capture::gen_transform, dt_operand::get_name,
1600 dt_operand::gen_opname): Rename generated vars.
1601 (write_predicate): Adjust call to gen_kids.
1602 (parser::get_internal_capture_id): Rename generated vars.
1603 (parser::parse_expr): Rename local vars.
1604 (parser::parse_if): Remove local var.
1605 (parser::parse_pattern, add_operator): Rename local vars.
1607 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1609 * builtins.def (DEF_C2X_BUILTIN): New macro.
1610 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1611 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1612 (strndup): Use DEF_C2X_BUILTIN.
1613 * coretypes.h (enum function_class): Add function_c2x_misc.
1615 2019-10-04 Maya Rashish <coypu@sdf.org>
1617 * ira-color.c (update_costs_from_allocno): Call
1618 ira_init_register_move_cost_if_necessary.
1620 2019-10-04 Jeff Law <law@redhat.com>
1622 * config/h8300/h8300.md (cpymemsi): Disable.
1623 (movmd, movmd_internal_<mode>, movstr, movsd):
1624 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1625 (movmd splitter, movsd splitter): Likewise.
1627 * range-op.cc (range_tests): Avoid two tests when ints and
1628 shorts are the same size.
1630 2019-10-04 Richard Biener <rguenther@suse.de>
1633 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1636 2019-10-04 Richard Biener <rguenther@suse.de>
1638 PR tree-optimization/91982
1639 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1640 against EXTRACT_LAST_REDUCTION.
1641 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1643 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1645 * range-op.o (value_range_from_overflowed_bounds): Rename from
1646 adjust_overflow_bound.
1647 (value_range_with_overflow): Rename from
1648 create_range_with_overflow.
1649 (create_possibly_reversed_range): Adjusted for above renames.
1650 (operator_*::wi_fold): Same.
1651 (cross_product_operator::wi_cross_productor): Same.
1653 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1655 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1656 -Wshadow=compatible-local): Fix description.
1657 Add an example where -Wshadow=compatible-local does not
1660 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1662 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1664 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1665 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1667 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1669 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1670 can_move_by_pieces issue.
1672 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1675 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1676 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1677 is available and the user has not set one on the command line.
1679 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1682 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1683 instead of REGNO equality check on addr.reg.
1685 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1687 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1688 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1689 * doc/invoke.texi (inline-heuristics-hint-percent,
1690 inline-heuristics-hint-percent-O2): Document.
1691 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1693 (can_inline_edge_by_limits_p): Use it.
1695 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1697 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1698 to print CONST_DOUBLEs.
1700 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1702 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1703 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1704 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1706 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1708 * Makefile.in (OBJS): Add range.o and range-op.o.
1709 Remove wide-int-range.o.
1710 * function-tests.c (test_ranges): New.
1711 (function_tests_c_tests): Call test_ranges.
1712 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1713 range_fold_unary_expr instead of extract_range_from_unary_expr.
1714 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1715 * range-op.cc: New file.
1716 * range-op.h: New file.
1717 * range.cc: New file.
1718 * range.h: New file.
1719 * selftest.h (range_tests): New prototype.
1720 * ssa.h: Include range.h.
1721 * tree-vrp.c (value_range_base::value_range_base): New
1723 (value_range_base::singleton_p): Do not call
1724 ranges_from_anti_range until sure we will need to.
1725 (value_range_base::type): Rename gcc_assert to
1726 gcc_checking_assert.
1727 (vrp_val_is_max): New argument.
1728 (vrp_val_is_min): Same.
1729 (wide_int_range_set_zero_nonzero_bits): Move from
1731 (extract_range_into_wide_ints): Remove.
1732 (extract_range_from_multiplicative_op): Remove.
1733 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1734 from extract_range_from_binary_expr.
1735 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1736 from extract_range_from_binary_expr.
1737 (extract_range_from_binary_expr): Remove.
1738 (normalize_for_range_ops): New.
1739 (range_fold_binary_expr): New.
1740 (range_fold_unary_expr): New.
1741 (value_range_base::num_pairs): New.
1742 (value_range_base::lower_bound): New.
1743 (value_range_base::upper_bound): New.
1744 (value_range_base::upper_bound): New.
1745 (value_range_base::contains_p): New.
1746 (value_range_base::invert): New.
1747 (value_range_base::union_): New.
1748 (value_range_base::intersect): New.
1749 (range_compatible_p): New.
1750 (value_range_base::operator==): New.
1751 (determine_value_range_1): Call range_fold_*expr instead of
1752 extract_range_from_*expr.
1753 * tree-vrp.h (class value_range_base): Add new constructors.
1754 Add methods for union_, intersect, operator==, contains_p,
1755 num_pairs, lower_bound, upper_bound, invert.
1756 (vrp_val_is_min): Add handle_pointers argument.
1757 (vrp_val_is_max): Same.
1758 (extract_range_from_unary_expr): Remove.
1759 (extract_range_from_binary_expr): Remove.
1760 (range_fold_unary_expr): New.
1761 (range_fold_binary_expr): New.
1762 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1763 range_fold_binary_expr instead of extract_range_from_binary_expr.
1764 (vr_values::extract_range_basic): Same.
1765 (vr_values::extract_range_from_unary_expr): Call
1766 range_fold_unary_expr instead of extract_range_from_unary_expr.
1767 * wide-int-range.cc: Remove.
1768 * wide-int-range.h: Remove.
1770 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1772 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1773 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1774 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1775 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1778 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1780 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1781 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1782 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1783 * glimits.h: Likewise.
1785 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1787 PR rtl-optimization/91976
1788 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1789 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1790 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1792 2019-10-02 Martin Sebor <msebor@redhat.com>
1794 PR tree-optimization/80936
1795 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1797 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1799 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1800 instead of reg_class_contents[ALL_REGS].
1802 2019-09-30 Jason Merrill <jason@redhat.com>
1804 Add some hash_map_safe_* functions like vec_safe_*.
1805 * hash-map.h (default_hash_map_size): New variable.
1806 (create_ggc): Use it as default argument.
1807 (hash_map_maybe_create, hash_map_safe_get)
1808 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1810 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1812 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1813 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1814 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1815 (can_inline_edge_by_limits_p): Use it.
1816 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1817 (want_inline_small_function_p): Use O2 bounds.
1818 (edge_badness): LIkewise.
1819 * opts.c (default_options): Add OPT_finline_functions.
1820 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1821 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1823 * doc/invoke.texi (-finline-functions): Update documentation.
1824 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1825 inline-min-speedup-O2): Document.
1826 (early-inlining-insns-O2): Simplify docs.
1828 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1830 PR rtl-optimization/87047
1831 * ifcvt.c (average_cost): New static function. Use it...
1832 (noce_process_if_block): ... here.
1834 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1836 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1837 * config/rs6000/rs6000-string.c (expand_block_move): Add
1839 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1840 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1842 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1844 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1845 (expand_builtin_memcpy): Use might_overlap parm.
1846 (expand_builtin_mempcpy_args): Use might_overlap parm.
1847 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1848 (expand_builtin_memory_copy_args): Add might_overlap parm.
1849 * expr.c (emit_block_move_via_cpymem): Rename to
1850 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1851 or movmem optab as appropriate.
1852 (emit_block_move_hints): Add might_overlap parm, do the right
1853 thing for might_overlap==true.
1854 * expr.h (emit_block_move_hints): Update prototype.
1856 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1858 * tree-eh.h (unsplit_eh_edges): Declare.
1859 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1860 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1861 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1862 (struct store_immediate_info): Add lp_nr field.
1863 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1864 initialize lp_nr with it.
1865 (struct merged_store_group): Add lp_nr and only_constants fields.
1866 (merged_store_group::merged_store_group): Initialize them.
1867 (merged_store_group::can_be_merged_into): Deal with them.
1868 (pass_store_merging): Rename terminate_and_release_chain into
1869 terminate_and_process_chain.
1870 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1871 renaming and remove useless assertions.
1872 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1873 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1874 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1875 instead of always recomputing it and compare lp_nr.
1876 (imm_store_chain_info::output_merged_store): If the group is in an
1877 active EH region, register new stores if they can throw. Moreover,
1878 if the insertion has created new basic blocks, adjust the PHI nodes
1879 of the post landing pad.
1880 (imm_store_chain_info::output_merged_stores): If the original stores
1881 are in an active EH region, deregister them.
1882 (lhs_valid_for_store_merging_p): Prettify.
1883 (adjust_bit_pos): New function extracted from...
1884 (mem_valid_for_store_merging): ...here. Use it for the base address
1885 and also for the offset if it is the addition of a constant.
1886 (lp_nr_for_store): New function.
1887 (pass_store_merging::process_store): Change return type to bool.
1888 Call lp_nr_for_store to initialize the store info. Propagate the
1889 return status of various called functions to the return value.
1890 (store_valid_for_store_merging_p): New predicate.
1891 (enum basic_block_status): New enumeration.
1892 (get_status_for_store_merging): New function.
1893 (pass_store_merging::execute): If the function can throw and catch
1894 non-call exceptions, unsplit the EH edges on entry and clean up the
1895 CFG on exit if something changed. Call get_status_for_store_merging
1896 for every basic block and keep the chains open across basic blocks
1897 when possible. Terminate and process open chains at the end, if any.
1899 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1901 * reginfo.c (globalize_reg): Fix shadowed variable in
1904 2019-10-02 Martin Jambor <mjambor@suse.cz>
1906 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1907 do not compute some stuff when set.
1908 (cgraph_node::create_edge): Likewise.
1909 (cgraph_node::create_indirect_edge): Renamed last parameter to
1910 coning_p and flipped its meaning, don't even calculate
1911 inline_failed when set.
1912 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1913 (symbol_table::::create_edge): Likewise.
1914 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1916 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1917 call graph edge creating functions.
1919 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1922 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1925 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1927 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1929 2019-10-02 Richard Biener <rguenther@suse.de>
1931 * tree-vectorizer.h (vect_transform_reduction): Declare.
1932 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1933 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1934 stmt transform to ...
1935 (vect_transform_reduction): ... this.
1937 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1939 * omp-low.c (lower_omp_target): Dereference optional argument
1940 to work with the right pointer.
1942 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1944 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1946 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1947 * langhooks.h (omp_is_optional_argument): New hook.
1948 * omp-general.c (omp_is_optional_argument): New.
1949 * omp-general.h (omp_is_optional_argument): New declaration.
1950 * omp-low.c (lower_omp_target): Create temporary for received value
1951 and take the address for new_var if the original variable was a
1952 DECL_BY_REFERENCE. Use size of referenced object when a
1953 pass-by-reference optional argument used as argument to firstprivate.
1955 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1957 PR tree-optimization/91940
1958 * tree-vect-patterns.c: Include tree-vector-builder.h and
1960 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1961 unpromoting the argument back to uint16_t, or by converting into a
1962 rotate, or into shifts plus ior.
1964 2019-10-02 Richard Biener <rguenther@suse.de>
1966 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1968 (vect_transform_cycle_phi): Declare.
1969 * tree-vect-stmts.c (vect_transform_stmt): Call
1970 vect_transform_cycle_phi.
1971 * tree-vect-loop.c (vectorizable_reduction): Split out
1972 PHI transformation stage to ...
1973 (vect_transform_cycle_phi): ... here.
1975 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1978 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1979 eliminable registers.
1980 (make_hard_regno_live): Likewise, and don't make them live.
1982 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1984 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1985 Call pp_emit_prefix.
1986 (layout::print_source_line): Likewise.
1987 (layout::start_annotation_line): Likewise.
1988 (diagnostic_show_locus): Remove call to temporarily clear the
1990 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1991 interaction of pp_set_prefix with rulers and fix-it hints.
1992 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1993 prefix when calling diagnostic_show_locus, rather than destroying
1995 (print_parseable_fixits): Temporarily clear prefix.
1996 * pretty-print.c (pp_format): Save and restore line_length, rather
1997 than assuming it is zero.
1998 (pp_output_formatted_text): Remove assertion that line_length is
2001 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2003 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
2005 (nonoverlapping_refs_since_match_p): ... this; handle also
2007 (alias_stats): Update stats.
2008 (dump_alias_stats): Likewise.
2009 (cheap_array_ref_low_bound): New function.
2010 (aliasing_matching_component_refs_p): Add partial_overlap
2012 pass it to nonoverlapping_refs_since_match_p.
2013 (aliasing_component_refs_walk): Update call of
2014 aliasing_matching_component_refs_p
2015 (nonoverlapping_array_refs_p): New function.
2016 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
2017 indirect_refs_may_alias_p): Update calls of
2018 nonoverlapping_refs_since_match_p.
2020 2019-10-01 Maya Rashish <coypu@sdf.org>
2023 * ira-color.c (allocno_copy_cost_saving): Call
2024 ira_init_register_move_cost_if_necessary.
2026 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
2028 * Makefile.in (gnat_install_lib): New variable.
2029 * configure.ac: Substitute it.
2030 * configure: Regenerate.
2032 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2035 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
2036 is matched with non-C++ type
2038 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2040 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
2043 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2045 * doc/invoke.texi (early-inlining-insns-O2): Document.
2046 (early-inlining-insns): Update.
2047 * params.def (early-inlining-insns-O2): New bound.
2048 (early-inlining-insns): Update docs.
2049 * ipa-inline.c (want_early_inline_function_p): Use new bound.
2051 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
2054 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
2055 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
2056 a memory access insn.
2058 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
2060 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
2063 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2066 * config/s390/s390.c (s390_expand_vec_compare): Use
2067 gen_vec_cmpordered and gen_vec_cmpunordered.
2068 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
2069 vec_unordered): Delete.
2070 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
2071 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
2072 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
2073 (vec_cmp<code>): Generic dispatcher.
2075 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2078 * config/s390/vector.md (V_HW): Add V1TI in order to make
2079 vcond$a$b generate vcondv1tiv1tf.
2081 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2083 PR rtl-optimization/91948
2084 * ira-build.c (ira_create_allocno): Initialize
2085 ALLOCNO_CROSSED_CALLS_ABIS.
2086 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
2087 than regno to ira_need_caller_save_p.
2089 2019-10-01 Alexandre Oliva <oliva@adacore.com>
2091 * config/i386/i386-options.c
2092 (ix86_recompute_optlev_based_flags): New, moved out of...
2093 (ix86_option_override_internal): ... this. Call it.
2094 (ix86_override_options_after_change): Call it here too.
2097 * dwarf2out.c (override_type_for_decl_p): New.
2098 (gen_variable_die): Use it.
2100 2019-10-01 Richard Biener <rguenther@suse.de>
2102 * tree-vect-loop.c (vectorizable_reduction): Move variables
2103 to where they are used.
2105 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2107 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
2108 (build_def_use): Use PC instead of CC0 in a comment.
2110 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2112 * rtl.def (CLOBBER_HIGH): Delete.
2113 * doc/rtl.texi (clobber_high): Remove documentation.
2114 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
2115 (reg_is_clobbered_by_clobber_high): Delete.
2116 (gen_hard_reg_clobber_high): Likewise.
2117 * alias.c (record_set): Remove CLOBBER_HIGH handling.
2118 * cfgexpand.c (expand_gimple_stmt): Likewise.
2119 * combine-stack-adj.c (single_set_for_csa): Likewise.
2120 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
2121 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
2122 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
2123 * cse.c (invalidate_reg): Remove clobber_high parameter.
2124 (invalidate): Update call accordingly.
2125 (canonicalize_insn): Remove CLOBBER_HIGH handling.
2126 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
2127 (count_reg_usage, insn_live_p): Likewise.
2128 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
2129 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
2130 (cselib_invalidate_rtx_note_stores): Update call accordingly.
2131 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
2132 (cselib_invalidate_regno, cselib_process_insn): Likewise.
2133 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
2134 (mark_nonreg_stores_2): Likewise.
2135 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
2136 (df_get_call_refs): Likewise.
2137 * dwarf2out.c (mem_loc_descriptor): Likewise.
2138 * emit-rtl.c (verify_rtx_sharing): Likewise.
2139 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
2140 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
2141 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
2142 * genemit.c (gen_exp, gen_insn): Likewise.
2143 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
2144 * haifa-sched.c (haifa_classify_rtx): Likewise.
2145 * ira-build.c (create_insn_allocnos): Likewise.
2146 * ira-costs.c (scan_one_insn): Likewise.
2147 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
2148 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
2149 * jump.c (mark_jump_label_1): Likewise.
2150 * lra-int.h (lra_insn_reg::clobber_high): Delete.
2151 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
2153 (mark_not_eliminable): Likewise.
2154 * lra-lives.c (process_bb_lives): Likewise.
2155 * lra.c (new_insn_reg): Remove clobber_high parameter.
2156 (collect_non_operand_hard_regs): Likewise. Update call to new
2157 insn_reg. Remove CLOBBER_HIGH handling.
2158 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
2159 to collect_non_operand_hard_regs.
2160 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
2161 Update call to new_insn_reg.
2162 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
2163 * postreload.c (reload_cse_simplify, reload_combine_note_use)
2164 (move2add_note_store): Likewise.
2165 * print-rtl.c (print_pattern): Likewise.
2166 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
2167 (if_test_bypass_p): Likewise.
2168 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
2169 * reginfo.c (reg_scan_mark_refs): Likewise.
2170 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
2171 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
2172 (forget_old_reloads_1): Likewise.
2173 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
2174 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
2175 (dbr_schedule): Likewise.
2176 * resource.c (update_live_status, mark_referenced_resources)
2177 (mark_set_resources): Likewise.
2178 * rtl.c (copy_rtx): Likewise.
2179 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
2180 (note_pattern_stores): Likewise.
2181 (reg_is_clobbered_by_clobber_high): Delete.
2182 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
2183 CLOBBER_HIGH handling.
2185 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2188 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
2189 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
2190 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2191 Handle ARM_PCS_TLSDESC.
2192 (aarch64_tlsdesc_abi_id): New function.
2193 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
2194 rtx instead of a list of clobbers and clobber_highs.
2195 (tlsdesc_small_<mode>): Update accordingly.
2197 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2199 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
2200 extra callee_abi argument.
2201 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
2202 Insert a CALLEE_ABI unspec into the call pattern as the second
2203 element in the PARALLEL.
2204 (aarch64_simd_call_p): Delete.
2205 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
2206 the new CALLEE_ABI element of the PARALLEL.
2207 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
2208 from the function type, if given.
2209 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
2210 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
2211 when passed the function_arg_info end marker.
2212 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
2213 final argument of gen_sibcall.
2214 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
2215 (call): Make operand 2 a const_int_operand and pass it to expand_call.
2216 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
2218 (call_value): Likewise operand 3.
2219 (sibcall): Likewise operand 2. Place the unspec before rather than
2221 (sibcall_value): Likewise operand 3.
2222 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
2223 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
2224 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
2226 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
2228 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2230 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
2231 choose_hard_reg_mode.
2232 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2234 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2236 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
2237 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
2238 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
2240 2019-09-30 David Malcolm <dmalcolm@redhat.com>
2242 * diagnostic-show-locus.c (line_label::line_label): Initialize
2244 (line_label::comparator): Reverse the sort order by m_state_idx,
2245 so that when the list is walked backwards the labels appear in
2246 order of insertion into the rich_location.
2247 (line_label::m_has_vbar): New field.
2248 (layout::print_any_labels): When dealing with multiple labels at
2249 the same line and column, only print vertical bars for the one
2250 with the highest label_line.
2251 (selftest::test_one_liner_labels): Update test for multiple labels
2252 to expect the labels to be in the order of insertion into the
2253 rich_location. Add a test for many such labels, where the column
2254 numbers are out-of-order relative to the insertion order.
2256 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2258 * config/i386/i386.h (ix86_frame::expensive_p): New field.
2259 (ix86_frame::expensive_count): Likewise.
2260 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
2261 of use_fast_prologue_epilogue robust against incidental changes
2264 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2267 * config/s390/vector.md (vec_unordered<mode>): Call
2268 gen_vec_ordered<mode>.
2270 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
2272 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
2273 New pattern for ASRD.
2274 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
2275 * internal-fn.def (IFN_DIV_POW2): New internal function.
2276 * optabs.def (sdiv_pow2_optab): New optab.
2277 * tree-vect-patterns.c (vect_recog_divmod_pattern):
2278 Modify pattern to support new operation.
2279 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
2280 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
2281 Document new target selector.
2283 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2285 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
2286 to test whether we're compiling a vector PCS function and to test
2287 whether the function needs to save a particular register.
2288 Remove the vector PCS handling of df_set_regs_ever_live.
2289 (aarch64_components_for_bb): Use crtl->abi to test whether
2290 the function needs to save a particular register.
2291 (aarch64_process_components): Use crtl->abi to test whether
2292 we're compiling a vector PCS function.
2293 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
2294 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
2296 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2298 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
2300 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
2301 whether the block calls a function that clobbers more registers
2302 than the current function is allowed to.
2303 (aarch64_use_simple_return_insn_p): Delete.
2304 * config/aarch64/aarch64.md (simple_return): Remove condition.
2306 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2308 * function-abi.h (function_abi_aggregator): New class.
2309 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
2311 * ira.c (update_equiv_regs_prescan): New function. Call
2312 set_paradoxical_subreg here rather than...
2313 (update_equiv_regs): ...here.
2314 (ira): Call update_equiv_regs_prescan.
2316 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2318 * hard-reg-set.h (regs_invalidated_by_call): Only define if
2320 (call_used_or_fixed_regs): Likewise.
2321 (call_used_or_fixed_reg_p): Likewise.
2322 * reginfo.c (regs_invalidated_by_call): New macro.
2324 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2326 * shrink-wrap.c: Include function-abi.h.
2327 (requires_stack_frame_p): Use crtl->abi to test whether the
2328 current function can use a register without saving it first.
2330 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2332 * sel-sched-ir.h (_def::crosses_call): Replace with...
2333 (_def::crossed_call_abis): ..this new field.
2334 (def_list_add): Take a mask of ABIs instead of a crosses_call
2336 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
2337 of _def accordingly.
2338 * sel-sched.c: Include function-abi.h.
2339 (hard_regs_data::regs_for_call_clobbered): Delete.
2340 (reg_rename::crosses_call): Replace with...
2341 (reg_rename::crossed_call_abis): ...this new field.
2342 (fur_static_params::crosses_call): Replace with...
2343 (fur_static_params::crossed_call_abis): ...this new field.
2344 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
2345 (init_hard_regs_data): Use crtl->abi to test which registers the
2346 current function would need to save before it uses them.
2347 (mark_unavailable_hard_regs): Update handling of call-clobbered
2348 registers, using call_clobbers_in_region to find out which registers
2349 might be call-clobbered (but without taking -fipa-ra into account
2350 for now). Remove separate handling of partially call-clobbered
2352 (verify_target_availability): Use crossed_call_abis instead of
2354 (get_spec_check_type_for_insn, find_used_regs): Likewise.
2355 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
2357 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2359 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2360 function to test whether a register is fully or partly clobbered.
2362 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2364 * rtlanal.c: Include function-abi.h.
2365 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2366 function and clobbers_reg_p to test whether the register
2368 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2369 to get the ABI of the called function and full_reg_clobbers to
2370 get the set of fully call-clobbered registers. Warn about the
2371 pitfalls of using this mode.
2373 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2375 * reload.c: Include function-abi.h.
2376 (find_equiv_reg): Use clobbers_reg_p to test whether either
2377 of the equivalent registers is clobbered by a call.
2378 * reload1.c: Include function-abi.h.
2379 (reg_reloaded_call_part_clobbered): Delete.
2380 (reload): Use crtl->abi to test which registers would need
2381 saving in the prologue before use.
2382 (find_reg): Likewise.
2383 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2384 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2385 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2387 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2389 * regrename.h (du_head::call_clobber_mask): New field.
2390 (du_head::need_caller_save_reg): Replace with...
2391 (du_head::call_abis): ...this new field.
2392 * regrename.c: Include function-abi.h.
2393 (call_clobbered_in_chain_p): New function.
2394 (check_new_reg_p): Use crtl->abi when deciding whether a register
2395 is free for use after RA. Use call_clobbered_in_chain_p to test
2396 whether a candidate register would be clobbered by a call.
2397 (find_rename_reg): Don't add call-clobber conflicts here.
2398 (rename_chains): Check call_abis instead of need_caller_save_reg.
2399 (merge_chains): Update for changes to du_head.
2400 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2401 target. Record the ABI identifier in call_abis and the set of
2402 fully or partially clobbered registers in call_clobber_mask.
2403 Add fully-clobbered registers to hard_conflicts here rather
2404 than in find_rename_reg.
2405 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2406 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2407 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2409 * config/c6x/c6x.c: Likewise.
2411 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2413 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2414 mode of the register when deciding whether it is no longer
2415 available after a call.
2417 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2419 * recog.c: Include function-abi.h.
2420 (peep2_find_free_register): Use crtl->abi when deciding whether
2421 a register is free for use after RA.
2423 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2425 * postreload-gcse.c: Include regs.h and function-abi.h.
2426 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2427 call insn target. Conservatively assume that partially-clobbered
2428 registers are altered.
2430 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2432 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2433 when deciding whether a register is free for use after RA.
2434 (reload_combine): Remove unnecessary use of fixed_reg_set.
2435 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2436 call insn target. Use reg_mode when testing whether a register
2437 is no longer available.
2439 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2441 * target.def (return_call_with_max_clobbers): Delete.
2442 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2443 * doc/tm.texi: Regenerate.
2444 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2445 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2446 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2447 (lra_reg::call_insn): Delete.
2448 * lra.c: Include function-abi.h.
2449 (initialize_lra_reg_info_element): Don't initialize the fields above.
2450 (lra): Use crtl->abi to test whether the current function needs to
2451 save a register in the prologue. Remove special pre-inheritance
2452 lra_create_live_ranges pass for flag_ipa_ra.
2453 * lra-assigns.c: Include function-abi.h
2454 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2455 function needs to save a register in the prologue.
2456 (lra_assign): Assert that registers aren't allocated to a
2457 conflicting register, rather than checking only for overlaps
2458 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2459 and for registers that are not live across a call.
2460 * lra-constraints.c (last_call_for_abi): New variable.
2461 (full_and_partial_call_clobbers): Likewise.
2462 (setup_next_usage_insn): Remove the register from
2463 full_and_partial_call_clobbers.
2464 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2465 whether the register needs a caller save.
2466 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2467 of call_used_or_fixed_regs.
2468 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2469 full_and_partial_call_clobbers.
2470 * lra-lives.c (check_pseudos_live_through_calls): Replace
2471 last_call_used_reg_set and call_insn arguments with an abi argument.
2472 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2473 as the set of conflicting registers.
2474 (calls_have_same_clobbers_p): Delete.
2475 (process_bb_lives): Track the ABI of the last call instead of an
2476 insn/HARD_REG_SET pair. Update calls to
2477 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2478 the set of registers that could be clobbered by an EH edge.
2479 Include partially-clobbered as well as fully-clobbered registers.
2480 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2481 * lra-remat.c: Include function-abi.h.
2482 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2483 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2484 registers and bitmap_view to combine them into dead_regs.
2485 (call_used_input_regno_present_p): Take a function_abi argument
2486 and use it to test whether a register is call-clobbered.
2487 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2488 call insn target. Update tje call to call_used_input_regno_present_p.
2489 (do_remat): Likewise.
2490 (lra_remat): Remove the initialization of call_used_regs_arr_len
2491 and call_used_regs_arr.
2493 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2495 * loop-iv.c: Include regs.h and function-abi.h.
2496 (simplify_using_initial_values): Use insn_callee_abi to get the
2497 ABI of the call insn target. Conservatively assume that
2498 partially-clobbered registers are altered.
2500 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2502 * function-abi.h (call_clobbers_in_region): Declare.
2503 (call_clobbered_in_region_p): New function.
2504 * function-abi.cc (call_clobbers_in_region): Likewise.
2505 * ira-int.h: Include function-abi.h.
2506 (ira_allocno::crossed_calls_abis): New field.
2507 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2508 (ira_need_caller_save_regs): New function.
2509 (ira_need_caller_save_p): Likewise.
2510 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2511 of call_used_or_fixed_regs.
2512 (do_reload): Use crtl->abi to test whether the current function
2513 needs to save a register in the prologue. Count registers that
2514 need to be saved rather than registers that don't.
2515 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2516 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2517 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2518 (propagate_some_info_from_allocno): Likewise.
2519 (copy_info_to_removed_store_destinations): Likewise.
2520 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2521 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2522 (ira_build): Use ira_need_caller_save_regs instead of
2523 call_used_or_fixed_regs.
2524 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2525 whether the current function would need to save a register
2527 (calculate_spill_cost): Likewise.
2528 (allocno_reload_assign): Use ira_need_caller_save_regs and
2529 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2530 * ira-conflicts.c (ira_build_conflicts): Use
2531 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2532 as the set of call-clobbered registers. Remove the
2533 call_used_or_fixed_regs mask from the calculation of
2534 temp_hard_reg_set and mask its use instead. Remove special
2535 handling of partially-clobbered registers.
2536 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2537 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2538 calculate the set of conflicting registers for calls that
2539 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2540 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2541 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2542 Use eh_edge_abi to calculate the set of registers that could
2543 be clobbered by an EH edge. Include partially-clobbered as
2544 well as fully-clobbered registers.
2546 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2548 * haifa-sched.c: Include function-abi.h.
2549 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2550 the function would need to save a register before using it.
2552 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2554 * gcse.c: Include function-abi.h.
2555 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2556 the call insn target. Invalidate partially call-clobbered
2557 registers as well as fully call-clobbered ones.
2559 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2561 * function.c (aggregate_value_p): Work out which ABI the
2562 function is using before testing which registers are at least
2563 partly preserved by a call.
2565 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2567 * early-remat.c: Include regs.h and function-abi.h.
2568 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2570 (early_remat::restrict_remat_for_unavail_regs): New function.
2571 (early_remat::restrict_remat_for_call): Likewise.
2572 (early_remat::process_block): Before calling emit_remat_insns
2573 for a previous call in the block, invalidate any candidates
2574 that would clobber call-preserved registers.
2575 (early_remat::emit_remat_insns_for_block): Likewise for the
2576 final call in a block. Do the same thing for live-in registers
2577 when calling emit_remat_insns at the head of a block.
2579 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2581 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2582 whether the current function needs to save at least part of a
2583 register before using it.
2584 (df_get_exit_block_use_set): Likewise for epilogue restores.
2586 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2588 * df-problems.c: Include regs.h and function-abi.h.
2589 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2590 sparse_invalidated_by_eh and dense_invalidated_by_call to
2591 dense_invalidated_by_eh.
2592 (df_print_bb_index): Update accordingly.
2593 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2594 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2595 that are clobbered by an EH edge. Clobber partially-clobbered
2596 registers as well as fully-clobbered ones.
2597 (df_md_confluence_n): Likewise.
2598 (df_rd_local_compute): Likewise. Update for changes to
2600 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2601 of registers that are clobbered by an EH edge. Includde partially-
2602 clobbered registers as well as fully-clobbered ones.
2604 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2606 * cselib.c (cselib_process_insn): If we know what mode a
2607 register was set in, check whether it is clobbered in that
2608 mode by a call. Only fall back to reg_raw_mode if that fails.
2610 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2612 * cse.c: Include regs.h and function-abi.h.
2613 (invalidate_for_call): Take the call insn as an argument.
2614 Use insn_callee_abi to get the ABI of the call and invalidate
2615 partially clobbered registers as well as fully clobbered ones.
2616 (cse_insn): Update call accordingly.
2618 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2620 * combine.c: Include function-abi.h.
2621 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2622 of the target of call insns. Invalidate partially-clobbered
2623 registers as well as fully-clobbered ones.
2625 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2627 * cfgloopanal.c: Include regs.h and function-abi.h.
2628 (init_set_costs): Use default_function_abi to test whether
2629 a general register is call-clobbered.
2631 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2633 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2634 instead of the call-clobbered sets.
2636 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2638 * caller-save.c (setup_save_areas): Remove redundant |s of
2640 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2641 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2644 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2646 * rtl.h (predefined_function_abi): Declare.
2647 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2648 instead of a boolean call_save flag.
2649 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2651 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2652 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2653 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2654 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2655 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2656 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2657 * reginfo.c (init_reg_modes_target): Likewise.
2658 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2659 instead of a boolean call_save flag.
2660 * targhooks.c: Include function-abi.h.
2661 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2662 using eh_edge_abi to choose the mode.
2664 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2666 * target.def (hard_regno_call_part_clobbered): Take an ABI
2667 identifier instead of an rtx_insn.
2668 * doc/tm.texi: Regenerate.
2669 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2670 (hook_bool_uint_uint_mode_false): New function.
2671 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2672 (hook_bool_uint_uint_mode_false): New function.
2673 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2674 Take an ABI identifier instead of an rtx_insn.
2675 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2676 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2677 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2678 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2679 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2681 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2682 * cselib.c: Include function-abi.h.
2683 (cselib_process_insn): Update call to
2684 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2685 to get the appropriate ABI identifier.
2686 * function-abi.cc (predefined_function_abi::initialize): Update call
2687 to targetm.hard_regno_call_part_clobbered.
2688 * ira-conflicts.c (ira_build_conflicts): Likewise.
2689 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2690 * lra-constraints.c: Include function-abi.h.
2691 (need_for_call_save_p): Update call to
2692 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2693 to get the appropriate ABI identifier.
2694 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2695 * regcprop.c (copyprop_hardreg_forward_1): Update call
2696 to targetm.hard_regno_call_part_clobbered.
2697 * reginfo.c (choose_hard_reg_mode): Likewise.
2698 * regrename.c (check_new_reg_p): Likewise.
2699 * reload.c (find_equiv_reg): Likewise.
2700 * reload1.c (emit_reload_insns): Likewise.
2701 * sched-deps.c: Include function-abi.h.
2702 (deps_analyze_insn): Update call to
2703 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2704 to get the appropriate ABI identifier.
2705 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2706 call to targetm.hard_regno_call_part_clobbered.
2707 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2709 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2711 * config/i386/i386.c: Include function-abi.h.
2712 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2713 if they preserve some 256-bit or 512-bit SSE registers.
2715 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2717 * target.def (insn_callee_abi): New hook.
2718 (remove_extra_call_preserved_regs): Delete.
2719 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2720 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2721 * doc/tm.texi: Regenerate.
2722 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2723 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2724 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2726 (aarch64_remove_extra_call_preserved_regs): Delete.
2727 (aarch64_insn_callee_abi): New function.
2728 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2729 (TARGET_INSN_CALLEE_ABI): New macro.
2730 * rtl.h (get_call_fndecl): Declare.
2731 (cgraph_rtl_info): Fix formatting. Tweak comment for
2732 function_used_regs. Remove function_used_regs_valid.
2733 * rtlanal.c (get_call_fndecl): Moved from final.c
2734 * function-abi.h (insn_callee_abi): Declare.
2735 (target_function_abi_info): Mention insn_callee_abi.
2736 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2737 way to get_call_reg_set_usage did.
2738 (insn_callee_abi): New function.
2739 * regs.h (get_call_reg_set_usage): Delete.
2740 * final.c: Include function-abi.h.
2741 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2742 function_used_regs before the main loop rather than afterwards.
2743 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2744 if function_used_regs ends up not being useful.
2745 (get_call_fndecl): Move to rtlanal.c
2746 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2747 * caller-save.c: Include function-abi.h.
2748 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2749 instead of get_call_reg_set_usage.
2750 * cfgcleanup.c: Include function-abi.h.
2751 (old_insns_match_p): Use insn_callee_abi instead of
2752 get_call_reg_set_usage.
2753 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2755 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2757 * df-scan.c: Include function-abi.h.
2758 (df_get_call_refs): Use insn_callee_abi instead of
2759 get_call_reg_set_usage.
2760 * ira-lives.c: Include function-abi.h.
2761 (process_bb_node_lives): Use insn_callee_abi instead of
2762 get_call_reg_set_usage.
2763 * lra-lives.c: Include function-abi.h.
2764 (process_bb_lives): Use insn_callee_abi instead of
2765 get_call_reg_set_usage.
2766 * postreload.c: Include function-abi.h.
2767 (reload_combine): Use insn_callee_abi instead of
2768 get_call_reg_set_usage.
2769 * regcprop.c: Include function-abi.h.
2770 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2771 get_call_reg_set_usage.
2772 * resource.c: Include function-abi.h.
2773 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2774 instead of get_call_reg_set_usage.
2775 * var-tracking.c: Include function-abi.h.
2776 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2777 get_call_reg_set_usage.
2779 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2781 * target.def (fntype_abi): New target hook.
2782 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2783 * doc/tm.texi: Regenerate.
2784 * target.h (predefined_function_abi): Declare.
2785 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2787 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2788 * config/aarch64/aarch64.c: Include function-abi.h.
2789 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2790 (TARGET_FNTYPE_ABI): Define.
2792 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2794 * Makefile.in (OBJS): Add function-abi.o.
2795 (GTFILES): Add function-abi.h.
2796 * function-abi.cc: New file.
2797 * function-abi.h: Likewise.
2798 * emit-rtl.h (rtl_data::abi): New field.
2799 * function.c: Include function-abi.h.
2800 (prepare_function_start): Initialize crtl->abi.
2801 * read-rtl-function.c: Include regs.h and function-abi.h.
2802 (read_rtl_function_body): Initialize crtl->abi.
2803 (read_rtl_function_body_from_file_range): Likewise.
2804 * reginfo.c: Include function-abi.h.
2805 (init_reg_sets_1): Initialize default_function_abi.
2806 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2807 when making a register global.
2808 * target-globals.h (this_target_function_abi_info): Declare.
2809 (target_globals::function_abi_info): New field.
2810 (restore_target_globals): Copy it.
2811 * target-globals.c: Include function-abi.h.
2812 (default_target_globals): Initialize the function_abi_info field.
2813 (target_globals): Allocate it.
2814 (save_target_globals): Free it.
2816 2019-09-30 Nick Clifton <nickc@redhat.com>
2819 * config/frv/frv.c (frv_register_move_cost): Add break statements
2820 to avoid falling through to the wrong cases. Tidy code.
2822 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2824 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2825 For multi-registers modes, test how big each register part is.
2827 2019-09-30 Nick Clifton <nickc@redhat.com>
2830 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2831 (TARGET_ASM_SELECT_SECTION): Remove definition.
2832 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2834 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2836 * emit-rtl.c (init_raw_REG): New function.
2837 (gen_raw_REG): Use init_raw_REG.
2838 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2840 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2841 * rtl.h (rtx_init): New function.
2842 (rtx_alloca): New function.
2843 (init_raw_REG): New function.
2844 (alloca_raw_REG): New macro.
2846 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2848 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2849 (pcrel_local_address): Replace pcrel_address predicate, use the
2850 new function address_to_insn_form.
2851 (pcrel_external_address): Replace with new implementation using
2852 address_to_insn_form..
2853 (prefixed_mem_operand): Delete predicate which is now unused.
2854 (pcrel_external_mem_operand): Delete predicate which is now
2856 * config/rs6000/rs6000-protos.h (enum insn_form): New
2858 (enum non_prefixed_form): New enumeration.
2859 (address_to_insn_form): New declaration.
2860 (prefixed_load_p): New declaration.
2861 (prefixed_store_p): New declaration.
2862 (prefixed_paddi_p): New declaration.
2863 (rs6000_asm_output_opcode): New declaration.
2864 (rs6000_final_prescan_insn): Move declaration and update calling
2866 (address_is_prefixed): New helper inline function.
2867 * config/rs6000/rs6000.c(print_operand_address): Check for either
2868 PC-relative local symbols or PC-relative external symbols.
2869 (rs6000_emit_move): Support loading PC-relative addresses.
2870 (mode_supports_prefixed_address_p): Delete, no longer used.
2871 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2872 (address_to_insn_form): New function to decode an address format.
2873 (reg_to_non_prefixed): New function to identify what the
2874 non-prefixed memory instruction format is for a register.
2875 (prefixed_load_p): New function to identify prefixed loads.
2876 (prefixed_store_p): New function to identify prefixed stores.
2877 (prefixed_paddi_p): New function to identify prefixed load
2879 (next_insn_prefixed_p): New static state variable.
2880 (rs6000_final_prescan_insn): New function to determine if an insn
2881 uses a prefixed instruction.
2882 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2883 prefixed instruction.
2884 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2885 (ASM_OUTPUT_OPCODE): New target hook.
2886 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2887 prefixed instructions.
2888 (prefixed_length): New insn attribute for the size of prefixed
2890 (non_prefixed_length): New insn attribute for the size of
2891 non-prefixed instructions.
2892 (pcrel_local_addr): New insn to load up a local PC-relative
2894 (pcrel_extern_addr): New insn to load up an external PC-relative
2896 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2897 GPR and loading a 128-bit floating point type to a GPR.
2899 2019-09-30 Richard Biener <rguenther@suse.de>
2901 * gimple.c (gimple_get_lhs): For PHIs return the result.
2902 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2903 SLP instance as argument.
2904 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2905 double-reduction PHIs with vectorizable_lc_phi.
2906 (vect_analyze_loop_operations): Adjust.
2907 (vect_create_epilog_for_reduction): Remove all code not dealing
2908 with reduction LC PHI or epilogue generation.
2909 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2910 for live stmts of reductions.
2911 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2912 do not handle defs that are not vect_internal_def.
2913 (can_vectorize_live_stmts): Adjust.
2914 (vect_analyze_stmt): When the vectorized stmt defined a value
2915 used on backedges adjust the backedge uses of vectorized PHIs.
2917 2019-09-30 Martin Jambor <mjambor@suse.cz>
2920 * tree-inline.c (force_value_to_type): New function.
2921 (setup_one_parameter): Use force_value_to_type to convert type.
2922 * tree-inline.c (force_value_to_type): Declare.
2923 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2924 with register type mismatches.
2926 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2928 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2930 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2931 * config/rs6000/t-freebsd64: Make use of the above define and build
2932 the 32-bit libraries with secure-plt.
2934 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2937 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2938 gen_int_mode instead of GEN_INT.
2940 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2942 * config/darwin.c (gen_macho_low): Amend to include the mode
2944 (machopic_indirect_data_reference): Amend gen_macho_low call
2945 to include mode argument
2946 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2947 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2948 the macho_high expander and two define_insn entries.
2950 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2953 * optc-save-gen.awk: Fix up printing string option differences.
2955 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2957 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2958 vec_perm cost to 1 for non-Power7 VSX architectures.
2960 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2962 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2963 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2964 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2966 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2968 * config/darwin.c (gen_macho_high): Amend to include the mode
2970 (machopic_indirect_data_reference): Amend gen_macho_high call
2971 to include mode argument.
2972 (machopic_legitimize_pic_address): Likewise.
2973 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2974 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2975 the macho_high expander and two define_insn entries.
2977 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2980 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2982 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2985 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2986 std::string::compare instead of std::string::find.
2988 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2990 * configure: Regenerate.
2992 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2995 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2996 variables as shared.
2998 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
3000 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
3001 replaces the expander and two define_insn entries.
3002 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
3004 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
3006 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3008 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
3009 (fibonacci_heap::nodes): Likewise.
3010 (fibonacci_heap::min_key): Likewise.
3011 (fibonacci_heap::min): Likewise.
3013 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3015 * cgraph.c (cgraph_node::get_fun): Make const.
3016 * cgraph.h (cgraph_node::get_fun): Likewise.
3018 2019-09-27 Jakub Jelinek <jakub@redhat.com>
3021 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
3024 2019-09-27 Richard Biener <rguenther@suse.de>
3026 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
3027 (STMT_VINFO_REDUC_FN): Likewise.
3028 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3029 STMT_VINFO_REDUC_FN.
3030 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
3031 for condition reductions.
3032 (vect_create_epilog_for_reduction): Compute all required state
3033 from the stmt to be vectorized.
3034 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
3035 invocation and remove then dead code. For single def-use chains
3036 record only a single vector stmt.
3038 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3040 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
3041 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
3042 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
3043 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
3044 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
3045 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
3046 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
3047 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
3048 (aarch64_general_builtin_rsqrt): Declare.
3049 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
3051 (aarch64_mangle_builtin_type): Rename to...
3052 (aarch64_general_mangle_builtin_type): ...this.
3053 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
3054 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
3055 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
3056 aarch64_general_add_builtin instead of add_builtin_function.
3057 (aarch64_init_builtins): Rename to...
3058 (aarch64_general_init_builtins): ...this. Use
3059 aarch64_general_add_builtin instead of add_builtin_function.
3060 (aarch64_builtin_decl): Rename to...
3061 (aarch64_general_builtin_decl): ...this and remove the unused
3063 (aarch64_expand_builtin): Rename to...
3064 (aarch64_general_expand_builtin): ...this and remove the unused
3066 (aarch64_builtin_rsqrt): Rename to...
3067 (aarch64_general_builtin_rsqrt): ...this.
3068 (aarch64_fold_builtin): Rename to...
3069 (aarch64_general_fold_builtin): ...this. Take the function subcode
3070 and return type as arguments. Remove the "ignored" argument.
3071 (aarch64_gimple_fold_builtin): Rename to...
3072 (aarch64_general_gimple_fold_builtin): ...this. Take the function
3073 subcode and gcall as arguments, and return the new function call.
3074 * config/aarch64/aarch64.c (aarch64_init_builtins)
3075 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
3076 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
3077 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
3078 instead of aarch64_builtin_rsqrt.
3079 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
3080 instead of aarch64_mangle_builtin_type.
3082 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3084 * target.def (check_builtin_call): New target hook.
3085 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
3086 * doc/tm.texi: Regenerate.
3088 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3090 PR tree-optimization/91909
3091 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
3092 reduc_index parameter. When handling COND_REDUCTION, make sure
3093 that the reduction phi operand is in the correct arm of the
3095 (vectorizable_reduction): Pass reduc_index to the above.
3097 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
3099 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
3100 New combine pattern.
3102 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
3104 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
3105 loop instruction into new basic block before the loop when basic
3106 block that precedes the loop is empty.
3108 2019-09-26 Jakub Jelinek <jakub@redhat.com>
3110 * function.c (gimplify_parameters): Use build_clobber function.
3111 * tree-ssa.c (execute_update_addresses_taken): Likewise.
3112 * tree-inline.c (expand_call_inline): Likewise.
3113 * tree-sra.c (clobber_subtree): Likewise.
3114 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
3115 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
3116 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
3117 lower_omp_target): Likewise.
3118 * omp-expand.c (expand_omp_for_generic): Likewise.
3119 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
3121 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
3123 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
3124 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
3125 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
3126 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
3127 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
3128 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
3129 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
3130 LD_ELEMREV_V16QI): Use the PURE attribute.
3132 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
3134 * config/rs6000/darwin.md: Replace the expanders for
3135 load_macho_picbase and reload_macho_picbase with use of '@'
3136 and <mode> in their respective define_insns.
3137 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
3138 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
3139 Pmode to gen_load_macho_picbase.
3140 * config/rs6000/rs6000.md: Likewise.
3142 2019-09-25 Richard Biener <rguenther@suse.de>
3144 PR tree-optimization/91896
3145 * tree-vect-loop.c (vectorizable_reduction): The single
3146 def-use cycle optimization cannot apply when there's more
3147 than one pattern stmt involved.
3149 2019-09-26 Richard Biener <rguenther@suse.de>
3151 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
3152 loop-closed PHIs that are vect_internal_def.
3153 (vect_create_epilog_for_reduction): Exit early for nested cycles.
3155 (vectorizable_lc_phi): New.
3156 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
3157 (vect_transform_stmt): Likewise.
3158 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
3159 (vectorizable_lc_phi): Declare.
3161 2019-09-26 Richard Biener <rguenther@suse.de>
3163 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
3164 vectorizable_reduction for vect_double_reduction_def.
3165 (vect_transform_loop): Likewise.
3166 (vect_create_epilog_for_reduction): Move double-reduction
3167 PHI creation and preheader argument setting of PHIs ...
3168 (vectorizable_reduction): ... here. Also process
3169 vect_double_reduction_def PHIs, creating the vectorized
3170 PHI nodes, remembering the scalar adjustment computed for
3171 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
3172 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
3173 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
3174 Initialize STMT_VINFO_REDUC_CODE.
3175 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
3176 (_stmt_vec_info::reduc_code): Likewise.
3177 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
3178 (STMT_VINFO_REDUC_CODE): Likewise.
3180 2019-09-26 Matt Turner <mattst88@gmail.com>
3183 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
3184 (mtune=): Add Negative(mtune=).
3185 (mcpu=): Add Negative(mcpu=).
3186 * config/arm/arm.opt: Likewise.
3188 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3190 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3191 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
3193 * config/arm/arm_acle.h: Define builtins for the above.
3194 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
3195 (simd32_op): Handle the above.
3196 * config/arm/unspecs.md: Define unspecs for the above.
3198 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3200 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3201 (arm_<sup>xtb16): Likewise.
3202 (arm_usada8): Likewise.
3203 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
3204 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
3205 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
3206 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
3207 __sxtb16, __uxtab16, __uxtb16): Define.
3208 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3209 * config/arm/unspecs.md: Define unspecs for the above.
3210 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
3211 (USXTB16): Likewise.
3212 (simd32_op): New int_attribute.
3213 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
3214 * doc/sourcebuild.exp (arm_simd32_ok): Document.
3216 2019-09-26 Martin Jambor <mjambor@suse.cz>
3218 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
3221 2019-09-26 Martin Jambor <mjambor@suse.cz>
3223 * ipa-sra.c (process_scan_results): Fix continue condition.
3225 2019-09-26 Martin Liska <mliska@suse.cz>
3227 PR tree-optimization/91885
3228 * tree-vectorizer.c (try_vectorize_loop_1): Add
3229 TODO_update_ssa_only_virtuals similarly to what slp pass does.
3231 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
3233 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
3234 aarch64_plus_immediate rather than aarch64_uimm12_shift
3235 to test for valid PLUS immediates.
3237 2019-09-25 Martin Jambor <mjambor@suse.cz>
3239 * tree-sra.c (no_accesses_p): Remove.
3240 (no_accesses_representant): Likewise.
3242 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3244 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
3246 (vaba_s16): Likewise.
3247 (vaba_s32): Likewise.
3248 (vaba_u8): Likewise.
3249 (vaba_u16): Likewise.
3250 (vaba_u32): Likewise.
3251 (vabal_high_s8): Likewise.
3252 (vabal_high_s16): Likewise.
3253 (vabal_high_s32): Likewise.
3254 (vabal_high_u8): Likewise.
3255 (vabal_high_u16): Likewise.
3256 (vabal_high_u32): Likewise.
3257 (vabal_s8): Likewise.
3258 (vabal_s16): Likewise.
3259 (vabal_s32): Likewise.
3260 (vabal_u8): Likewise.
3261 (vabal_u16): Likewise.
3262 (vabal_u32): Likewise.
3263 (vabaq_s8): Likewise.
3264 (vabaq_s16): Likewise.
3265 (vabaq_s32): Likewise.
3266 (vabaq_u8): Likewise.
3267 (vabaq_u16): Likewise.
3268 (vabaq_u32): Likewise.
3269 (vabd_s8): Likewise.
3270 (vabd_s16): Likewise.
3271 (vabd_s32): Likewise.
3272 (vabd_u8): Likewise.
3273 (vabd_u16): Likewise.
3274 (vabd_u32): Likewise.
3275 (vabdl_high_s8): Likewise.
3276 (vabdl_high_s16): Likewise.
3277 (vabdl_high_s32): Likewise.
3278 (vabdl_high_u8): Likewise.
3279 (vabdl_high_u16): Likewise.
3280 (vabdl_high_u32): Likewise.
3281 (vabdl_s8): Likewise.
3282 (vabdl_s16): Likewise.
3283 (vabdl_s32): Likewise.
3284 (vabdl_u8): Likewise.
3285 (vabdl_u16): Likewise.
3286 (vabdl_u32): Likewise.
3287 (vabdq_s8): Likewise.
3288 (vabdq_s16): Likewise.
3289 (vabdq_s32): Likewise.
3290 (vabdq_u8): Likewise.
3291 (vabdq_u16): Likewise.
3292 (vabdq_u32): Likewise.
3293 (vaddlv_s8): Likewise.
3294 (vaddlv_s16): Likewise.
3295 (vaddlv_u8): Likewise.
3296 (vaddlv_u16): Likewise.
3297 (vaddlvq_s8): Likewise.
3298 (vaddlvq_s16): Likewise.
3299 (vaddlvq_s32): Likewise.
3300 (vaddlvq_u8): Likewise.
3301 (vaddlvq_u16): Likewise.
3302 (vaddlvq_u32): Likewise.
3303 (vcvtx_f32_f64): Likewise.
3304 (vcvtx_high_f32_f64): Likewise.
3305 (vcvtxd_f32_f64): Likewise.
3306 (vmla_n_f32): Likewise.
3307 (vmla_n_s16): Likewise.
3308 (vmla_n_s32): Likewise.
3309 (vmla_n_u16): Likewise.
3310 (vmla_n_u32): Likewise.
3311 (vmla_s8): Likewise.
3312 (vmla_s16): Likewise.
3313 (vmla_s32): Likewise.
3314 (vmla_u8): Likewise.
3315 (vmla_u16): Likewise.
3316 (vmla_u32): Likewise.
3317 (vmlal_high_n_s16): Likewise.
3318 (vmlal_high_n_s32): Likewise.
3319 (vmlal_high_n_u16): Likewise.
3320 (vmlal_high_n_u32): Likewise.
3321 (vmlal_high_s8): Likewise.
3322 (vmlal_high_s16): Likewise.
3323 (vmlal_high_s32): Likewise.
3324 (vmlal_high_u8): Likewise.
3325 (vmlal_high_u16): Likewise.
3326 (vmlal_high_u32): Likewise.
3327 (vmlal_n_s16): Likewise.
3328 (vmlal_n_s32): Likewise.
3329 (vmlal_n_u16): Likewise.
3330 (vmlal_n_u32): Likewise.
3331 (vmlal_s8): Likewise.
3332 (vmlal_s16): Likewise.
3333 (vmlal_s32): Likewise.
3334 (vmlal_u8): Likewise.
3335 (vmlal_u16): Likewise.
3336 (vmlal_u32): Likewise.
3337 (vmlaq_n_f32): Likewise.
3338 (vmlaq_n_s16): Likewise.
3339 (vmlaq_n_s32): Likewise.
3340 (vmlaq_n_u16): Likewise.
3341 (vmlaq_n_u32): Likewise.
3342 (vmlaq_s8): Likewise.
3343 (vmlaq_s16): Likewise.
3344 (vmlaq_s32): Likewise.
3345 (vmlaq_u8): Likewise.
3346 (vmlaq_u16): Likewise.
3347 (vmlaq_u32): Likewise.
3348 (vmls_n_f32): Likewise.
3349 (vmls_n_s16): Likewise.
3350 (vmls_n_s32): Likewise.
3351 (vmls_n_u16): Likewise.
3352 (vmls_n_u32): Likewise.
3353 (vmls_s8): Likewise.
3354 (vmls_s16): Likewise.
3355 (vmls_s32): Likewise.
3356 (vmls_u8): Likewise.
3357 (vmls_u16): Likewise.
3358 (vmls_u32): Likewise.
3359 (vmlsl_high_n_s16): Likewise.
3360 (vmlsl_high_n_s32): Likewise.
3361 (vmlsl_high_n_u16): Likewise.
3362 (vmlsl_high_n_u32): Likewise.
3363 (vmlsl_high_s8): Likewise.
3364 (vmlsl_high_s16): Likewise.
3365 (vmlsl_high_s32): Likewise.
3366 (vmlsl_high_u8): Likewise.
3367 (vmlsl_high_u16): Likewise.
3368 (vmlsl_high_u32): Likewise.
3369 (vmlsl_n_s16): Likewise.
3370 (vmlsl_n_s32): Likewise.
3371 (vmlsl_n_u16): Likewise.
3372 (vmlsl_n_u32): Likewise.
3373 (vmlsl_s8): Likewise.
3374 (vmlsl_s16): Likewise.
3375 (vmlsl_s32): Likewise.
3376 (vmlsl_u8): Likewise.
3377 (vmlsl_u16): Likewise.
3378 (vmlsl_u32): Likewise.
3379 (vmlsq_n_f32): Likewise.
3380 (vmlsq_n_s16): Likewise.
3381 (vmlsq_n_s32): Likewise.
3382 (vmlsq_n_u16): Likewise.
3383 (vmlsq_n_u32): Likewise.
3384 (vmlsq_s8): Likewise.
3385 (vmlsq_s16): Likewise.
3386 (vmlsq_s32): Likewise.
3387 (vmlsq_u8): Likewise.
3388 (vmlsq_u16): Likewise.
3389 (vmlsq_u32): Likewise.
3390 (vmovl_high_s8): Likewise.
3391 (vmovl_high_s16): Likewise.
3392 (vmovl_high_s32): Likewise.
3393 (vmovl_high_u8): Likewise.
3394 (vmovl_high_u16): Likewise.
3395 (vmovl_high_u32): Likewise.
3396 (vmovl_s8): Likewise.
3397 (vmovl_s16): Likewise.
3398 (vmovl_s32): Likewise.
3399 (vmovl_u8): Likewise.
3400 (vmovl_u16): Likewise.
3401 (vmovl_u32): Likewise.
3402 (vmovn_high_s16): Likewise.
3403 (vmovn_high_s32): Likewise.
3404 (vmovn_high_s64): Likewise.
3405 (vmovn_high_u16): Likewise.
3406 (vmovn_high_u32): Likewise.
3407 (vmovn_high_u64): Likewise.
3408 (vmovn_s16): Likewise.
3409 (vmovn_s32): Likewise.
3410 (vmovn_s64): Likewise.
3411 (vmovn_u16): Likewise.
3412 (vmovn_u32): Likewise.
3413 (vmovn_u64): Likewise.
3414 (vmull_high_n_s16): Likewise.
3415 (vmull_high_n_s32): Likewise.
3416 (vmull_high_n_u16): Likewise.
3417 (vmull_high_n_u32): Likewise.
3418 (vmull_high_p8): Likewise.
3419 (vmull_high_s8): Likewise.
3420 (vmull_high_s16): Likewise.
3421 (vmull_high_s32): Likewise.
3422 (vmull_high_u8): Likewise.
3423 (vmull_high_u16): Likewise.
3424 (vmull_high_u32): Likewise.
3425 (vmull_n_s16): Likewise.
3426 (vmull_n_s32): Likewise.
3427 (vmull_n_u16): Likewise.
3428 (vmull_n_u32): Likewise.
3429 (vmull_p8): Likewise.
3430 (vmull_s8): Likewise.
3431 (vmull_s16): Likewise.
3432 (vmull_s32): Likewise.
3433 (vmull_u8): Likewise.
3434 (vmull_u16): Likewise.
3435 (vmull_u32): Likewise.
3436 (vpadal_s8): Likewise.
3437 (vpadal_s16): Likewise.
3438 (vpadal_s32): Likewise.
3439 (vpadal_u8): Likewise.
3440 (vpadal_u16): Likewise.
3441 (vpadal_u32): Likewise.
3442 (vpadalq_s8): Likewise.
3443 (vpadalq_s16): Likewise.
3444 (vpadalq_s32): Likewise.
3445 (vpadalq_u8): Likewise.
3446 (vpadalq_u16): Likewise.
3447 (vpadalq_u32): Likewise.
3448 (vpaddl_s8): Likewise.
3449 (vpaddl_s16): Likewise.
3450 (vpaddl_s32): Likewise.
3451 (vpaddl_u8): Likewise.
3452 (vpaddl_u16): Likewise.
3453 (vpaddl_u32): Likewise.
3454 (vpaddlq_s8): Likewise.
3455 (vpaddlq_s16): Likewise.
3456 (vpaddlq_s32): Likewise.
3457 (vpaddlq_u8): Likewise.
3458 (vpaddlq_u16): Likewise.
3459 (vpaddlq_u32): Likewise.
3460 (vpaddq_s8): Likewise.
3461 (vpaddq_s16): Likewise.
3462 (vpaddq_s32): Likewise.
3463 (vpaddq_s64): Likewise.
3464 (vpaddq_u8): Likewise.
3465 (vpaddq_u16): Likewise.
3466 (vpaddq_u32): Likewise.
3467 (vpaddq_u64): Likewise.
3468 (vqdmulh_n_s16): Likewise.
3469 (vqdmulh_n_s32): Likewise.
3470 (vqdmulhq_n_s16): Likewise.
3471 (vqdmulhq_n_s32): Likewise.
3472 (vqmovn_high_s16): Likewise.
3473 (vqmovn_high_s32): Likewise.
3474 (vqmovn_high_s64): Likewise.
3475 (vqmovn_high_u16): Likewise.
3476 (vqmovn_high_u32): Likewise.
3477 (vqmovn_high_u64): Likewise.
3478 (vqmovun_high_s16): Likewise.
3479 (vqmovun_high_s32): Likewise.
3480 (vqmovun_high_s64): Likewise.
3481 (vqrdmulh_n_s16): Likewise.
3482 (vqrdmulh_n_s32): Likewise.
3483 (vqrdmulhq_n_s16): Likewise.
3484 (vqrdmulhq_n_s32): Likewise.
3485 (vrsqrte_u32): Likewise.
3486 (vrsqrteq_u32): Likewise.
3487 (vtst_p8): Likewise.
3488 (vtst_p16): Likewise.
3489 (vtst_p64): Likewise.
3490 (vtstq_p8): Likewise.
3491 (vtstq_p16): Likewise.
3492 (vtstq_p64): Likewise.
3493 (vaddlv_s32): Likewise.
3494 (vaddlv_u32): Likewise.
3495 (vqtbl1_p8): Likewise.
3496 (vqtbl1_s8): Likewise.
3497 (vqtbl1_u8): Likewise.
3498 (vqtbl1q_p8): Likewise.
3499 (vqtbl1q_s8): Likewise.
3500 (vqtbl1q_u8): Likewise.
3501 (vqtbx1_s8): Likewise.
3502 (vqtbx1_u8): Likewise.
3503 (vqtbx1_p8): Likewise.
3504 (vqtbx1q_s8): Likewise.
3505 (vqtbx1q_u8): Likewise.
3506 (vqtbx1q_p8): Likewise.
3507 (vtbl1_s8): Likewise.
3508 (vtbl1_u8): Likewise.
3509 (vtbl1_p8): Likewise.
3510 (vtbl2_s8): Likewise.
3511 (vtbl2_u8): Likewise.
3512 (vtbl2_p8): Likewise.
3513 (vtbl3_s8): Likewise.
3514 (vtbl3_u8): Likewise.
3515 (vtbl3_p8): Likewise.
3516 (vtbl4_s8): Likewise.
3517 (vtbl4_u8): Likewise.
3518 (vtbl4_p8): Likewise.
3519 (vtbx2_s8): Likewise.
3520 (vtbx2_u8): Likewise.
3521 (vtbx2_p8): Likewise.
3522 (vld1_f32): Likewise.
3523 (vld1_f64): Likewise.
3524 (vld1_p8): Likewise.
3525 (vld1_p16): Likewise.
3526 (vld1_p64): Likewise.
3527 (vld1_s8): Likewise.
3528 (vld1_s16): Likewise.
3529 (vld1_s32): Likewise.
3530 (vld1_s64): Likewise.
3531 (vld1_u8): Likewise.
3532 (vld1_u16): Likewise.
3533 (vld1_u32): Likewise.
3534 (vld1_u64): Likewise.
3535 (vld1q_f32): Likewise.
3536 (vld1q_f64): Likewise.
3537 (vld1q_p8): Likewise.
3538 (vld1q_p16): Likewise.
3539 (vld1q_p64): Likewise.
3540 (vld1q_s8): Likewise.
3541 (vld1q_s16): Likewise.
3542 (vld1q_s32): Likewise.
3543 (vld1q_s64): Likewise.
3544 (vld1q_u8): Likewise.
3545 (vld1q_u16): Likewise.
3546 (vld1q_u32): Likewise.
3547 (vld1q_u64): Likewise.
3548 (vpmax_s8): Likewise.
3549 (vpmax_s16): Likewise.
3550 (vpmax_s32): Likewise.
3551 (vpmax_u8): Likewise.
3552 (vpmax_u16): Likewise.
3553 (vpmax_u32): Likewise.
3554 (vpmaxq_s8): Likewise.
3555 (vpmaxq_s16): Likewise.
3556 (vpmaxq_s32): Likewise.
3557 (vpmaxq_u8): Likewise.
3558 (vpmaxq_u16): Likewise.
3559 (vpmaxq_u32): Likewise.
3560 (vpmax_f32): Likewise.
3561 (vpmaxq_f32): Likewise.
3562 (vpmaxq_f64): Likewise.
3563 (vpmaxqd_f64): Likewise.
3564 (vpmaxs_f32): Likewise.
3565 (vpmaxnm_f32): Likewise.
3566 (vpmaxnmq_f32): Likewise.
3567 (vpmaxnmq_f64): Likewise.
3568 (vpmaxnmqd_f64): Likewise.
3569 (vpmaxnms_f32): Likewise.
3570 (vpmin_s8): Likewise.
3571 (vpmin_s16): Likewise.
3572 (vpmin_s32): Likewise.
3573 (vpmin_u8): Likewise.
3574 (vpmin_u16): Likewise.
3575 (vpmin_u32): Likewise.
3576 (vpminq_s8): Likewise.
3577 (vpminq_s16): Likewise.
3578 (vpminq_s32): Likewise.
3579 (vpminq_u8): Likewise.
3580 (vpminq_u16): Likewise.
3581 (vpminq_u32): Likewise.
3582 (vpmin_f32): Likewise.
3583 (vpminq_f32): Likewise.
3584 (vpminq_f64): Likewise.
3585 (vpminqd_f64): Likewise.
3586 (vpmins_f32): Likewise.
3587 (vpminnm_f32): Likewise.
3588 (vpminnmq_f32): Likewise.
3589 (vpminnmq_f64): Likewise.
3590 (vpminnmqd_f64): Likewise.
3591 (vpminnms_f32): Likewise.
3592 (vmla_f32): Likewise.
3593 (vmlaq_f32): Likewise.
3594 (vmlaq_f64): Likewise.
3595 (vmls_f32): Likewise.
3596 (vmlsq_f32): Likewise.
3597 (vmlsq_f64): Likewise.
3598 (vqtbl2_s8): Likewise.
3599 (vqtbl2_u8): Likewise.
3600 (vqtbl2_p8): Likewise.
3601 (vqtbl2q_s8): Likewise.
3602 (vqtbl2q_u8): Likewise.
3603 (vqtbl2q_p8): Likewise.
3604 (vqtbl3_s8): Likewise.
3605 (vqtbl3_u8): Likewise.
3606 (vqtbl3_p8): Likewise.
3607 (vqtbl3q_s8): Likewise.
3608 (vqtbl3q_u8): Likewise.
3609 (vqtbl3q_p8): Likewise.
3610 (vqtbl4_s8): Likewise.
3611 (vqtbl4_u8): Likewise.
3612 (vqtbl4_p8): Likewise.
3613 (vqtbl4q_s8): Likewise.
3614 (vqtbl4q_u8): Likewise.
3615 (vqtbl4q_p8): Likewise.
3616 (vqtbx2_s8): Likewise.
3617 (vqtbx2_u8): Likewise.
3618 (vqtbx2_p8): Likewise.
3619 (vqtbx2q_s8): Likewise.
3620 (vqtbx2q_u8): Likewise.
3621 (vqtbx2q_p8): Likewise.
3622 (vqtbx3_s8): Likewise.
3623 (vqtbx3_u8): Likewise.
3624 (vqtbx3_p8): Likewise.
3625 (vqtbx3q_s8): Likewise.
3626 (vqtbx3q_u8): Likewise.
3627 (vqtbx3q_p8): Likewise.
3628 (vqtbx4_s8): Likewise.
3629 (vqtbx4_u8): Likewise.
3630 (vqtbx4_p8): Likewise.
3631 (vqtbx4q_s8): Likewise.
3632 (vqtbx4q_u8): Likewise.
3633 (vqtbx4q_p8): Likewise.
3634 (vrev16_p8): Likewise.
3635 (vrev16_s8): Likewise.
3636 (vrev16_u8): Likewise.
3637 (vrev16q_p8): Likewise.
3638 (vrev16q_s8): Likewise.
3639 (vrev16q_u8): Likewise.
3640 (vrev32_p8): Likewise.
3641 (vrev32_p16): Likewise.
3642 (vrev32_s8): Likewise.
3643 (vrev32_s16): Likewise.
3644 (vrev32_u8): Likewise.
3645 (vrev32_u16): Likewise.
3646 (vrev32q_p8): Likewise.
3647 (vrev32q_p16): Likewise.
3648 (vrev32q_s8): Likewise.
3649 (vrev32q_s16): Likewise.
3650 (vrev32q_u8): Likewise.
3651 (vrev32q_u16): Likewise.
3652 (vrev64_f32): Likewise.
3653 (vrev64_p8): Likewise.
3654 (vrev64_p16): Likewise.
3655 (vrev64_s8): Likewise.
3656 (vrev64_s16): Likewise.
3657 (vrev64_s32): Likewise.
3658 (vrev64_u8): Likewise.
3659 (vrev64_u16): Likewise.
3660 (vrev64_u32): Likewise.
3661 (vrev64q_f32): Likewise.
3662 (vrev64q_p8): Likewise.
3663 (vrev64q_p16): Likewise.
3664 (vrev64q_s8): Likewise.
3665 (vrev64q_s16): Likewise.
3666 (vrev64q_s32): Likewise.
3667 (vrev64q_u8): Likewise.
3668 (vrev64q_u16): Likewise.
3669 (vrev64q_u32): Likewise.
3670 (vsha1cq_u32): Likewise.
3671 (vsha1mq_u32): Likewise.
3672 (vsha1pq_u32): Likewise.
3673 (vsha1h_u32): Likewise.
3674 (vsha1su0q_u32): Likewise.
3675 (vsha1su1q_u32): Likewise.
3676 (vsha256hq_u32): Likewise.
3677 (vsha256h2q_u32): Likewise.
3678 (vsha256su0q_u32): Likewise.
3679 (vsha256su1q_u32): Likewise.
3680 (vmull_p64): Likewise.
3681 (vmull_high_p64): Likewise.
3682 (vsqrt_f32): Likewise.
3683 (vsqrtq_f32): Likewise.
3684 (vsqrt_f64): Likewise.
3685 (vsqrtq_f64): Likewise.
3686 (vst1_f32): Likewise.
3687 (vst1_f64): Likewise.
3688 (vst1_p8): Likewise.
3689 (vst1_p16): Likewise.
3690 (vst1_p64): Likewise.
3691 (vst1_s8): Likewise.
3692 (vst1_s16): Likewise.
3693 (vst1_s32): Likewise.
3694 (vst1_s64): Likewise.
3695 (vst1_u8): Likewise.
3696 (vst1_u16): Likewise.
3697 (vst1_u32): Likewise.
3698 (vst1_u64): Likewise.
3699 (vst1q_f32): Likewise.
3700 (vst1q_f64): Likewise.
3701 (vst1q_p8): Likewise.
3702 (vst1q_p16): Likewise.
3703 (vst1q_p64): Likewise.
3704 (vst1q_s8): Likewise.
3705 (vst1q_s16): Likewise.
3706 (vst1q_s32): Likewise.
3707 (vst1q_s64): Likewise.
3708 (vst1q_u8): Likewise.
3709 (vst1q_u16): Likewise.
3710 (vst1q_u32): Likewise.
3711 (vst1q_u64): Likewise.
3712 (vst1_s64_x2): Likewise.
3713 (vst1_u64_x2): Likewise.
3714 (vst1_f64_x2): Likewise.
3715 (vst1_s8_x2): Likewise.
3716 (vst1_p8_x2): Likewise.
3717 (vst1_s16_x2): Likewise.
3718 (vst1_p16_x2): Likewise.
3719 (vst1_s32_x2): Likewise.
3720 (vst1_u8_x2): Likewise.
3721 (vst1_u16_x2): Likewise.
3722 (vst1_u32_x2): Likewise.
3723 (vst1_f16_x2): Likewise.
3724 (vst1_f32_x2): Likewise.
3725 (vst1_p64_x2): Likewise.
3726 (vst1q_s8_x2): Likewise.
3727 (vst1q_p8_x2): Likewise.
3728 (vst1q_s16_x2): Likewise.
3729 (vst1q_p16_x2): Likewise.
3730 (vst1q_s32_x2): Likewise.
3731 (vst1q_s64_x2): Likewise.
3732 (vst1q_u8_x2): Likewise.
3733 (vst1q_u16_x2): Likewise.
3734 (vst1q_u32_x2): Likewise.
3735 (vst1q_u64_x2): Likewise.
3736 (vst1q_f16_x2): Likewise.
3737 (vst1q_f32_x2): Likewise.
3738 (vst1q_f64_x2): Likewise.
3739 (vst1q_p64_x2): Likewise.
3740 (vst1_s64_x3): Likewise.
3741 (vst1_u64_x3): Likewise.
3742 (vst1_f64_x3): Likewise.
3743 (vst1_s8_x3): Likewise.
3744 (vst1_p8_x3): Likewise.
3745 (vst1_s16_x3): Likewise.
3746 (vst1_p16_x3): Likewise.
3747 (vst1_s32_x3): Likewise.
3748 (vst1_u8_x3): Likewise.
3749 (vst1_u16_x3): Likewise.
3750 (vst1_u32_x3): Likewise.
3751 (vst1_f16_x3): Likewise.
3752 (vst1_f32_x3): Likewise.
3753 (vst1_p64_x3): Likewise.
3754 (vst1q_s8_x3): Likewise.
3755 (vst1q_p8_x3): Likewise.
3756 (vst1q_s16_x3): Likewise.
3757 (vst1q_p16_x3): Likewise.
3758 (vst1q_s32_x3): Likewise.
3759 (vst1q_s64_x3): Likewise.
3760 (vst1q_u8_x3): Likewise.
3761 (vst1q_u16_x3): Likewise.
3762 (vst1q_u32_x3): Likewise.
3763 (vst1q_u64_x3): Likewise.
3764 (vst1q_f16_x3): Likewise.
3765 (vst1q_f32_x3): Likewise.
3766 (vst1q_f64_x3): Likewise.
3767 (vst1q_p64_x3): Likewise.
3768 (vst2_s64): Likewise.
3769 (vst2_u64): Likewise.
3770 (vst2_f64): Likewise.
3771 (vst2_s8): Likewise.
3772 (vst2_p8): Likewise.
3773 (vst2_s16): Likewise.
3774 (vst2_p16): Likewise.
3775 (vst2_s32): Likewise.
3776 (vst2_u8): Likewise.
3777 (vst2_u16): Likewise.
3778 (vst2_u32): Likewise.
3779 (vst2_f16): Likewise.
3780 (vst2_f32): Likewise.
3781 (vst2_p64): Likewise.
3782 (vst2q_s8): Likewise.
3783 (vst2q_p8): Likewise.
3784 (vst2q_s16): Likewise.
3785 (vst2q_p16): Likewise.
3786 (vst2q_s32): Likewise.
3787 (vst2q_s64): Likewise.
3788 (vst2q_u8): Likewise.
3789 (vst2q_u16): Likewise.
3790 (vst2q_u32): Likewise.
3791 (vst2q_u64): Likewise.
3792 (vst2q_f16): Likewise.
3793 (vst2q_f32): Likewise.
3794 (vst2q_f64): Likewise.
3795 (vst2q_p64): Likewise.
3796 (vst3_s64): Likewise.
3797 (vst3_u64): Likewise.
3798 (vst3_f64): Likewise.
3799 (vst3_s8): Likewise.
3800 (vst3_p8): Likewise.
3801 (vst3_s16): Likewise.
3802 (vst3_p16): Likewise.
3803 (vst3_s32): Likewise.
3804 (vst3_u8): Likewise.
3805 (vst3_u16): Likewise.
3806 (vst3_u32): Likewise.
3807 (vst3_f16): Likewise.
3808 (vst3_f32): Likewise.
3809 (vst3_p64): Likewise.
3810 (vst3q_s8): Likewise.
3811 (vst3q_p8): Likewise.
3812 (vst3q_s16): Likewise.
3813 (vst3q_p16): Likewise.
3814 (vst3q_s32): Likewise.
3815 (vst3q_s64): Likewise.
3816 (vst3q_u8): Likewise.
3817 (vst3q_u16): Likewise.
3818 (vst3q_u32): Likewise.
3819 (vst3q_u64): Likewise.
3820 (vst3q_f16): Likewise.
3821 (vst3q_f32): Likewise.
3822 (vst3q_f64): Likewise.
3823 (vst3q_p64): Likewise.
3824 (vst4_s64): Likewise.
3825 (vst4_u64): Likewise.
3826 (vst4_f64): Likewise.
3827 (vst4_s8): Likewise.
3828 (vst4_p8): Likewise.
3829 (vst4_s16): Likewise.
3830 (vst4_p16): Likewise.
3831 (vst4_s32): Likewise.
3832 (vst4_u8): Likewise.
3833 (vst4_u16): Likewise.
3834 (vst4_u32): Likewise.
3835 (vst4_f16): Likewise.
3836 (vst4_f32): Likewise.
3837 (vst4_p64): Likewise.
3838 (vst4q_s8): Likewise.
3839 (vst4q_p8): Likewise.
3840 (vst4q_s16): Likewise.
3841 (vst4q_p16): Likewise.
3842 (vst4q_s32): Likewise.
3843 (vst4q_s64): Likewise.
3844 (vst4q_u8): Likewise.
3845 (vst4q_u16): Likewise.
3846 (vst4q_u32): Likewise.
3847 (vst4q_u64): Likewise.
3848 (vst4q_f16): Likewise.
3849 (vst4q_f32): Likewise.
3850 (vst4q_f64): Likewise.
3851 (vst4q_p64): Likewise.
3852 (vtbx4_s8): Likewise.
3853 (vtbx4_u8): Likewise.
3854 (vtbx4_p8): Likewise.
3855 (vtrn_f32): Likewise.
3856 (vtrn_p8): Likewise.
3857 (vtrn_p16): Likewise.
3858 (vtrn_s8): Likewise.
3859 (vtrn_s16): Likewise.
3860 (vtrn_s32): Likewise.
3861 (vtrn_u8): Likewise.
3862 (vtrn_u16): Likewise.
3863 (vtrn_u32): Likewise.
3864 (vtrnq_f32): Likewise.
3865 (vtrnq_p8): Likewise.
3866 (vtrnq_p16): Likewise.
3867 (vtrnq_s8): Likewise.
3868 (vtrnq_s16): Likewise.
3869 (vtrnq_s32): Likewise.
3870 (vtrnq_u8): Likewise.
3871 (vtrnq_u16): Likewise.
3872 (vtrnq_u32): Likewise.
3873 (vrsqrte_f16): Likewise.
3874 (vrsqrteq_f16): Likewise.
3875 (vsqrt_f16): Likewise.
3876 (vsqrtq_f16): Likewise.
3877 (vabd_f16): Likewise.
3878 (vabdq_f16): Likewise.
3879 (vpadd_f16): Likewise.
3880 (vpaddq_f16): Likewise.
3881 (vpmax_f16): Likewise.
3882 (vpmaxq_f16): Likewise.
3883 (vpmaxnm_f16): Likewise.
3884 (vpmaxnmq_f16): Likewise.
3885 (vpmin_f16): Likewise.
3886 (vpminq_f16): Likewise.
3887 (vpminnm_f16): Likewise.
3888 (vpminnmq_f16): Likewise.
3889 (vrsqrts_f16): Likewise.
3890 (vrsqrtsq_f16): Likewise.
3892 2019-09-25 Richard Biener <rguenther@suse.de>
3894 PR tree-optimization/91896
3895 * tree-vect-loop.c (vectorizable_reduction): The single
3896 def-use cycle optimization cannot apply when there's more
3897 than one pattern stmt involved.
3899 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3901 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3902 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3903 (reload_macho_picbase_<mode>): Likewise.
3905 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3907 * config/rs6000/rs6000.md: Move darwin.md include until
3908 after the definition of the mode iterators.
3910 2019-09-23 Martin Sebor <msebor@redhat.com>
3912 PR tree-optimization/91570
3913 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3914 non-constant minlen, maxlen and maxbound.
3916 2019-09-24 Richard Biener <rguenther@suse.de>
3918 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3920 (_stmt_vec_info::cond_reduc_code): ... this.
3921 (_stmt_vec_info::induc_cond_initial_val): Add.
3922 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3923 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3924 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3925 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3926 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3928 (vect_create_epilog_for_reduction): Drop special
3929 induction condition reduction params, pass in reduction code
3931 (vectorizable_reduction): Perform condition reduction kind
3932 selection only at analysis time. Adjust passing on state.
3934 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3936 * config/aarch64/aarch64.md (mov<mode>): Don't call
3937 aarch64_split_dimode_const_store on volatile MEM.
3939 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3941 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3942 Update hwcap string for fp16fml.
3944 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3947 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3948 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3950 2019-09-24 Martin Liska <mliska@suse.cz>
3952 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3953 instead of if-elseif-elseif-...
3954 * gimple-expr.c (extract_ops_from_tree): Likewise.
3955 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3956 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3958 2019-09-24 Martin Jambor <mjambor@suse.cz>
3961 * ipa-param-manipulation.c (carry_over_param): Make a method of
3962 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3963 in case of a context mismatch.
3964 (ipa_param_body_adjustments::common_initialization): Adjust call to
3966 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3967 private method carry_over_param.
3969 2019-09-24 Martin Jambor <mjambor@suse.cz>
3972 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3974 2019-09-24 Richard Biener <rguenther@suse.de>
3976 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3979 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3981 * config/arm/t-arm (arm-builtins.o): Add dependency on
3982 arm_acle_builtins.def.
3984 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3987 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3988 canonical CONST_INTs. Use gen_rtvec.
3990 2019-09-23 Richard Biener <rguenther@suse.de>
3992 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3993 avoid adjusting by + 0 or * 1.
3994 (vect_create_epilog_for_reduction): Get reduction code only
3995 when necessary. Deal with adjustment_def only when necessary.
3997 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3999 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
4002 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4005 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
4008 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
4010 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
4011 code. Merge code blocks with common conditionals. Use declared
4012 macro instead of a magic number for PIC level.
4014 2019-09-21 Martin Sebor <msebor@redhat.com>
4017 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
4018 Simplify computation of the offset of the referenced subobject.
4020 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
4022 * config/darwin.c (machopic_legitimize_pic_address): Check
4025 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4027 * ira-conflicts.c (can_use_same_reg_p): New function.
4028 (process_reg_shuffles): Take an insn parameter. Ignore cases
4029 in which input operand op_num could seemingly never be allocated
4030 to the same register as the destination.
4031 (add_insn_allocno_copies): Update call to process_reg_shuffles.
4033 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4035 * simplify-rtx.c (neg_const_int): Replace with...
4036 (neg_poly_int_rtx): ...this new function.
4037 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
4038 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
4039 (simplify_plus_minus): Likewise for constant terms here.
4041 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
4043 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
4044 HOST_WIDE_PRINT_UNSIGNED.
4046 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
4048 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
4051 2019-09-20 Maya Rashish <coypu@sdf.org>
4054 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
4055 Define to speculation_safe_value_not_needed.
4057 2019-09-20 Richard Biener <rguenther@suse.de>
4058 Uros Bizjak <ubizjak@gmail.com>
4061 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
4063 (general_scalar_chain::convert_op): Force not suitable memory
4064 operands to a register.
4066 2019-09-20 Richard Biener <rguenther@suse.de>
4068 PR tree-optimization/91821
4069 * tree-vect-loop.c (check_reduction_path): Check we can compute
4071 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
4072 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
4073 operands in canonical order.
4074 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4075 STMT_VINFO_REDUC_IDX.
4076 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
4077 (STMT_VINFO_REDUC_IDX): Likewise.
4079 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
4082 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4084 2019-09-20 Richard Biener <rguenther@suse.de>
4086 PR tree-optimization/91822
4087 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
4089 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
4090 for reduc_index in nested cycles, adjust vectorizable_condition
4092 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
4094 (vect_analyze_stmt): Adjust.
4095 (vect_transform_stmt): Likewise.
4097 2019-09-20 Richard Biener <rguenther@suse.de>
4100 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
4101 Ensure there's a sequence point between allocating the new register
4102 and passing a reference to a reg via regno_reg_rtx.
4104 2019-09-20 Martin Jambor <mjambor@suse.cz>
4106 * coretypes.h (cgraph_edge): Declare.
4107 * ipa-param-manipulation.c: Rewrite.
4108 * ipa-param-manipulation.h: Likewise.
4109 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
4110 (OBJS): Added ipa-sra.o.
4111 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
4112 and ref_p, added fields param_adjustments and performed_splits.
4113 (struct cgraph_clone_info): Remove ags_to_skip and
4114 combined_args_to_skip, new field param_adjustments.
4115 (cgraph_node::create_clone): Changed parameters to use
4116 ipa_param_adjustments.
4117 (cgraph_node::create_virtual_clone): Likewise.
4118 (cgraph_node::create_virtual_clone_with_body): Likewise.
4119 (tree_function_versioning): Likewise.
4120 (cgraph_build_function_type_skip_args): Removed.
4121 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
4122 using ipa_param_adjustments.
4123 (clone_of_p): Likewise.
4124 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
4125 (build_function_decl_skip_args): Likewise.
4126 (duplicate_thunk_for_node): Adjust parameters using
4127 ipa_param_body_adjustments, copy param_adjustments instead of
4129 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
4130 (cgraph_node::create_virtual_clone): Likewise.
4131 (cgraph_node::create_version_clone_with_body): Likewise.
4132 (cgraph_materialize_clone): Likewise.
4133 (symbol_table::materialize_all_clones): Likewise.
4134 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
4135 ipa_replace_map check.
4136 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
4137 (initialize_node_lattices): Make aware that some parameters might have
4138 already been removed.
4139 (want_remove_some_param_p): New function.
4140 (create_specialized_node): Convert to using ipa_param_adjustments and
4141 deal with possibly pre-existing adjustments.
4142 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
4143 (output_node_opt_summary): Do not stream removed fields. Stream
4144 parameter adjustments instead of argumetns to skip.
4145 (input_node_opt_summary): Likewise.
4146 (input_node_opt_summary): Likewise.
4147 * lto-section-in.c (lto_section_name): Added ipa-sra section.
4148 * lto-streamer.h (lto_section_type): Likewise.
4149 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
4151 (copy_decl_to_var): Declare.
4152 * tree-inline.c (update_clone_info): Do not remap old_tree.
4153 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
4154 statements, walk all extra generated statements and remap their
4156 (redirect_all_calls): Add killed SSA names to a hash set.
4157 (remap_ssa_name): Do not remap killed SSA names.
4158 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
4159 half of functionality moved to ipa_param_body_adjustments.
4160 (copy_decl_to_var): Make exported.
4161 (copy_body): Destroy killed_new_ssa_names hash set.
4162 (expand_call_inline): Remap performed splits.
4163 (update_clone_info): Likewise.
4164 (tree_function_versioning): Simplify tree_map processing. Updated to
4165 accept ipa_param_adjustments and use ipa_param_body_adjustments.
4166 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
4167 for the new interface.
4168 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
4169 (simd_clone_compute_base_data_type): Likewise.
4170 (simd_clone_init_simd_arrays): Adjust for the new interface.
4171 (simd_clone_adjust_argument_types): Likewise.
4172 (struct modify_stmt_info): Likewise.
4173 (ipa_simd_modify_stmt_ops): Likewise.
4174 (ipa_simd_modify_function_body): Likewise.
4175 (simd_clone_adjust): Likewise.
4176 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
4177 (type_internals_preclude_sra_p): Make public.
4178 * tree-sra.h: New file.
4179 * ipa-inline-transform.c (save_inline_function_body): Update to
4180 refelct new tree_function_versioning signature.
4181 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
4182 ipa_param_adjustments to get current parameter indices.
4183 (ipcp_modif_dom_walker::before_dom_children): Likewise.
4184 (ipcp_update_bits): Likewise.
4185 (ipcp_update_vr): Likewise.
4186 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
4187 * ipa-sra.c: New file.
4188 * multiple_target.c (create_target_clone): Update to reflet new type
4189 of create_version_clone_with_body.
4190 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
4191 tree_function_versioning.
4192 (modify_function): Update to reflect new type of
4193 tree_function_versioning.
4194 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
4195 * passes.def: Remove old IPA-SRA and add new one.
4196 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
4197 (make_pass_ipa_sra): Declare.
4198 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
4200 * doc/invoke.texi (ipa-sra-max-replacements): New.
4202 2019-09-19 Martin Sebor <msebor@redhat.com>
4205 * builtins.c (component_size): Correct trailing array computation,
4206 rename to component_ref_size and move...
4207 (compute_objsize): Adjust.
4208 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
4209 (builtin_access::strict): Do not consider memmove.
4210 (builtin_access::write_off): New function.
4211 (builtin_memref::builtin_memref): Initialize refsize.
4212 (builtin_memref::set_base_and_offset): Adjust refoff and compute
4214 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
4216 (builtin_access::builtin_access): Initialize dstoff to destination
4217 refeence offset here instead of in maybe_diag_overlap. Adjust
4218 referencess even to unrelated objects. Adjust sizrange of bounded
4219 string functions to reflect bound. For strcat, adjust destination
4220 sizrange by that of source.
4221 (builtin_access::strcat_overlap): Adjust offsets and sizes
4222 to reflect the increase in destination sizrange above.
4223 (builtin_access::overlap): Do not set dstoff here but instead
4224 in builtin_access::builtin_access.
4225 (check_bounds_or_overlap): Use builtin_access::write_off.
4226 (maybe_diag_access_bounds): Add argument. Add informational notes.
4227 (dump_builtin_memref, dump_builtin_access): New functions.
4228 * tree.c (component_ref_size): ...to here.
4229 * tree.h (component_ref_size): Declare.
4230 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
4231 nul in the size of the source string.
4233 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
4236 * doc/cpp.texi: Document support for extended characters in
4238 * doc/cppopts.texi: Likewise.
4240 2019-09-19 Richard Biener <rguenther@suse.de>
4242 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
4243 (check_reduction_path): New overload having the path as result.
4244 (vect_is_simple_reduction): From the detected reduction
4245 path build a SLP reduction chain if possible.
4247 2019-09-19 Richard Biener <rguenther@suse.de>
4250 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
4251 Force operand to a register if it isn't nonimmediate_operand.
4253 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4255 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
4256 * config/arm/iterators.md (optab): Add and, ior, xor entries.
4257 (logical_op): Remove code attribute.
4258 (logical_OP): Likewise.
4260 2019-09-19 Martin Liska <mliska@suse.cz>
4262 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
4265 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
4267 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
4270 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
4271 for NE comparison of TImode values.
4272 (aarch64_emit_load_exclusive): Add support for TImode.
4273 (aarch64_emit_store_exclusive): Likewise.
4274 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
4275 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
4276 Change iterator from ALLI to ALLI_TI.
4277 (@atomic_compare_and_swap<JUST_TI>): New.
4278 (@atomic_compare_and_swap<JUST_TI>_lse): New.
4279 (aarch64_load_exclusive_pair): New.
4280 (aarch64_store_exclusive_pair): New.
4281 * config/aarch64/iterators.md (JUST_TI): New.
4283 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
4284 strong_zero_p for aarch64_track_speculation; unify some code paths;
4285 use aarch64_gen_compare_reg instead of open-coding.
4287 * config/aarch64/aarch64.opt (-moutline-atomics): New.
4288 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
4289 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
4290 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
4291 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
4292 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
4293 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
4294 (atomic_<atomic_op><ALLI>): Likewise.
4295 (atomic_fetch_<atomic_op><ALLI>): Likewise.
4296 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
4297 * doc/invoke.texi: Document -moutline-atomics.
4299 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
4301 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
4302 trivial predicate for condition branch.
4303 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
4305 (compute_bb_predicates): Update predicate based on post-dominating
4307 (analyze_function_body): Calculate post-dominating information.
4309 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4311 * tree-vectorizer.h (vectorizable_condition): Take an int
4312 reduction index instead of a boolean flag.
4313 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4314 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
4315 reductions if the reduction accumulator is the "then" rather
4316 than the "else" value.
4317 (vect_analyze_stmt): Update call accordingly.
4318 (vect_transform_stmt): Likewise.
4319 * tree-vect-loop.c (vectorizable_reduction): Likewise,
4320 asserting that the index is > 0.
4322 2019-09-19 Martin Liska <mliska@suse.cz>
4324 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
4325 (sort_congruence_classes_by_decl_uid): Likewise.
4326 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
4328 (sem_item_optimizer::merge_classes): Likewise.
4330 2019-09-19 Richard Biener <rguenther@suse.de>
4332 PR tree-optimization/91812
4333 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
4336 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4338 * defaults.h (TARGET_UNIT): New macro.
4339 (target_unit): New type.
4340 * rtl.h (native_encode_rtx, native_decode_rtx)
4341 (native_decode_vector_rtx, subreg_size_lsb): Declare.
4342 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
4343 * rtlanal.c (subreg_lsb_1): Delete.
4344 (subreg_size_lsb): New function.
4345 * simplify-rtx.c: Include rtx-vector-builder.h
4346 (simplify_immed_subreg): Delete.
4347 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
4348 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
4350 (simplify_subreg): Use them.
4351 (test_vector_subregs_modes, test_vector_subregs_repeating)
4352 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
4353 (test_vector_subregs): New functions.
4354 (test_vector_ops): Call test_vector_subregs for integer vector
4355 modes with at least 2 elements.
4357 2019-09-19 Richard Biener <rguenther@suse.de>
4359 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4360 LOOP_VINFO_OPERANDS_SWAPPED.
4361 (parloops_is_simple_reduction): Likewise.
4362 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4363 initialize operands_swapped.
4364 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4365 (vect_is_slp_reduction): Do not swap operands.
4366 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4367 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4369 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4372 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4373 Add avx_partial_xmm_update.
4375 2019-09-18 Jim Wilson <jimw@sifive.com>
4378 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4379 (riscv_move_integer): Likewise.
4380 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4381 riscv_move_integer arg.
4382 (riscv_legitimize_move): Likewise.
4383 (riscv_force_temporary): New parameter in_splitter. Don't call
4385 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4387 (riscv_add_offset): Likewise.
4388 (riscv_split_symbol): New parameter in_splitter. Pass to
4389 riscv_force_temporary.
4390 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4392 (riscv_move_integer): New parameter in_splitter. New local
4393 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4395 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4396 riscv_split_symbol, and riscv_force_temporary args.
4397 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4398 riscv_move_integer arg.
4399 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4401 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4404 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4405 hard register store cost to 6.
4407 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4410 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4411 pseudo register store cost from 3 to 6 to make it the same as
4414 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4417 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4418 (one_cmpldi2): Likewise.
4419 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4420 of the constant parts is simple.
4421 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4422 (logical_op): Add new code attribute.
4423 (logical_OP): Likewise.
4424 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4425 (arm_iordi_operand): Add predicate.
4426 (arm_xordi_operand): Add predicate.
4428 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4430 * config/arm/arm.md (maddsidi4): Remove expander.
4431 (mulsidi3adddi): Remove pattern.
4432 (mulsidi3adddi_v6): Likewise.
4433 (mulsidi3_nov6): Likewise.
4434 (mulsidi3_v6): Likewise.
4435 (umulsidi3): Remove expander.
4436 (umulsidi3_nov6): Remove pattern.
4437 (umulsidi3_v6): Likewise.
4438 (umulsidi3adddi): Likewise.
4439 (umulsidi3adddi_v6): Likewise.
4440 (<Us>mulsidi3): Add combined expander.
4441 (<Us>maddsidi4): Likewise.
4442 (<US>mull): Add combined umull and smull pattern.
4443 (<US>mlal): Likewise.
4444 * config/arm/iterators.md (Us): Add new iterator.
4446 2019-09-18 Richard Biener <rguenther@suse.de>
4448 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4450 (vectorize_fold_left_reduction): Remove assert.
4451 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4452 operand in position 2. Remove assert.
4454 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4456 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4457 (smulsi3_highpart_nov6): Remove pattern.
4458 (smulsi3_highpart_v6): Likewise.
4459 (umulsi3_highpart): Likewise.
4460 (umulsi3_highpart_nov6): Likewise.
4461 (umulsi3_highpart_v6): Likewise.
4462 (<US>mull_high): Add new combined multiply pattern.
4464 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4466 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4467 (arm_mulsi3_v6): Likewise.
4468 (mulsi3addsi_v6): Likewise.
4469 (mulsi3subsi): Likewise.
4470 (mul): Add new multiply pattern.
4474 2019-09-18 Richard Biener <rguenther@suse.de>
4476 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4477 (parloops_valid_reduction_input_p): Copy from
4478 valid_reduction_input_p.
4479 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4480 (parloops_needs_fold_left_reduction_p): Copy from
4481 needs_fold_left_reduction_p.
4482 (parloops_is_simple_reduction): Copy from
4483 vect_is_simple_reduction.
4484 (parloops_force_simple_reduction): Copy from
4485 vect_force_simple_reduction.
4486 (gather_scalar_reductions): Adjust.
4487 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4488 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4490 2019-09-18 Richard Biener <rguenther@suse.de>
4492 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4493 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4495 (vect_create_epilog_for_reduction): Remove dead code.
4497 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4499 * varasm.c (assemble_real): Generate canonical const_ints.
4501 2019-09-18 Richard Biener <rguenther@suse.de>
4504 * lto-streamer-in.c (input_eh_regions): Move EH init to
4505 lto_materialize_function.
4506 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4509 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4511 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4514 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4516 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4517 of checking specifically for INTEGER_CST.
4519 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4521 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4522 sizes instead of uhwi sizes.
4524 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4526 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4527 (add_const_value_attribute): Handle CONST_POLY_INT.
4529 2019-09-18 Martin Liska <mliska@suse.cz>
4531 * dbgcnt.def (store_merging): New counter.
4532 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4533 Use it in store merging.
4535 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4537 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4539 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4540 * config/arm/arm.c (arm_sched_variable_issue): New function.
4541 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4543 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4545 * config/arm/types.md (no_reservation): New reservation.
4546 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4548 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4549 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4550 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4551 * config/arm/arm1020e.md (1020alu_op): Likewise.
4552 * config/arm/arm1026ejs.md (alu_op): Likewise.
4553 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4554 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4555 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4556 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4557 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4558 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4559 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4560 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4561 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4562 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4563 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4564 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4565 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4566 * config/arm/fa526.md (526_alu_op): Likewise.
4567 * config/arm/fa606te.md (606te_alu_op): Likewise.
4568 * config/arm/fa626te.md (626te_alu_op): Likewise.
4569 * config/arm/fa726te.md (726te_alu_op): Likewise.
4570 * config/arm/xgene1.md (xgene1_nop): Likewise.
4572 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4574 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4575 "no_insn" to "branch".
4577 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4579 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4581 2019-09-17 Richard Biener <rguenther@suse.de>
4584 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4585 was missing generate locations only once.
4587 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4590 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4592 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4593 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4594 for switch default case using range analysis information.
4596 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4599 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4600 mode attributed is supported by FDPIC.
4602 2019-09-17 Richard Biener <rguenther@suse.de>
4604 PR tree-optimization/91790
4605 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4606 use the correct DR for setting up realignment.
4608 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4611 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4612 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4613 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4614 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4616 2019-09-16 Jason Merrill <jason@redhat.com>
4618 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4620 2019-09-16 Martin Liska <mliska@suse.cz>
4622 * gimple-fold.c (or_comparisons_1): Remove rules moved
4624 * match.pd: ... here.
4626 2019-09-16 Martin Liska <mliska@suse.cz>
4628 * gimple-fold.c (or_comparisons_1): Remove rules
4630 * match.pd: ... here.
4632 2019-09-16 Martin Liska <mliska@suse.cz>
4634 * genmatch.c (dt_node::append_simplify): Do not print
4635 warning when we have duplicate patterns belonging
4636 to a same simplify rule.
4637 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4638 (maybe_fold_comparisons_from_match_pd): Handle
4639 tcc_comparison as a results.
4640 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4642 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4643 Qi Feng <ffengqi@linux.ibm.com>
4646 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4647 (x > y && x == XXX_MIN): Optimize into 'false'.
4648 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4649 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4650 (x < y && x == XXX_MAX): Optimize into 'false'.
4651 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4652 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4653 (x <= y || x != XXX_MIN): Optimize into 'true'.
4654 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4655 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4656 (x >= y || x != XXX_MAX): Optimize into 'true'.
4657 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4659 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4660 Martin Liska <mliska@suse.cz>
4662 * gimple-fold.c (and_comparisons_1): Add type as first
4664 (and_var_with_comparison): Likewise.
4665 (and_var_with_comparison_1): Likewise.
4666 (or_comparisons_1): Likewise.
4667 (or_var_with_comparison): Likewise.
4668 (or_var_with_comparison_1): Likewise.
4669 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4670 (maybe_fold_or_comparisons): Likewise.
4671 (maybe_fold_comparisons_from_match_pd): New.
4672 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4673 (maybe_fold_or_comparisons): Likewise.
4674 * gimple.c (gimple_size): Make it public and add num_ops argument.
4675 (gimple_init): New function.
4676 (gimple_alloc): Call gimple_init.
4677 * gimple.h (gimple_size): New.
4678 (gimple_init): Likewise.
4679 * tree-if-conv.c (fold_or_predicates): Pass type.
4680 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4681 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4682 (optimize_vec_cond_expr): Likewise.
4683 (ovce_extract_ops): Return type of conditional expression.
4684 * tree-ssanames.c (init_ssa_name_imm_use): New.
4685 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4686 * tree-ssanames.h (init_ssa_name_imm_use): New.
4688 2019-09-16 Richard Biener <rguenther@suse.de>
4690 PR tree-optimization/91756
4691 PR tree-optimization/87132
4692 * tree-ssa-alias.h (enum translate_flags): New.
4693 (get_continuation_for_phi): Use it instead of simple bool flag.
4694 (walk_non_aliased_vuses): Likewise.
4695 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4696 (get_continuation_for_phi): When looking across backedges only
4697 disallow valueization.
4698 (walk_non_aliased_vuses): Adjust.
4699 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4702 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4705 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4706 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4707 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4708 * target.def (have_count_reg_decr_p): New hook.
4709 (doloop_cost_for_generic): Likewise.
4710 (doloop_cost_for_address): Likewise.
4711 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4712 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4713 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4714 * doc/tm.texi: Regenerate.
4715 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4717 (record_group): Init doloop_p.
4718 (add_candidate_1): Add optional argument doloop, change the handlings
4720 (add_candidate): Likewise.
4721 (generic_predict_doloop_p): Update attribute.
4722 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4723 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4724 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4726 (get_computation_cost): Update for doloop IV cand extra cost.
4727 (determine_group_iv_cost_cond): Update for doloop IV cand.
4728 (determine_iv_cost): Likewise.
4729 (ivopts_estimate_reg_pressure): Likewise.
4730 (may_eliminate_iv): Update handlings for doloop IV cand.
4731 (add_iv_candidate_for_doloop): New function.
4732 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4733 (iv_ca_set_no_cp): Update for doloop IV cand.
4734 (iv_ca_set_cp): Likewise.
4735 (iv_ca_dump): Dump register cost.
4736 (find_doloop_use): New function.
4737 (analyze_and_mark_doloop_use): Likewise.
4738 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4740 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4743 * cse.c (cse_insn): Do not replace anything with a
4746 2019-09-13 Ian Lance Taylor <iant@golang.org>
4748 * doc/invoke.texi (Optimize Options): Fix typo.
4750 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4752 PR tree-optimization/89386
4753 * config/i386/sse.md (smulhrs<mode>3): New expander.
4754 (smulhrsv4hi3): Ditto.
4756 2019-09-12 Richard Biener <rguenther@suse.de>
4758 PR tree-optimization/91750
4759 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4760 in the type of the evolution.
4762 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4764 PR tree-optimization/89386
4765 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4766 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4767 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4768 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4769 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4770 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4771 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4772 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4773 (su, r): Handle the unspecs above.
4774 (bt): New int attribute.
4775 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4776 * internal-fn.c (first_commutative_argument): Commutativity info for
4778 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4779 (umulhrs_optab): New optabs.
4780 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4781 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4782 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4784 (vect_vect_recog_func_ptrs): Add it.
4786 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4788 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4791 2019-09-11 Nathan Sidwell <nathan@acm.org>
4793 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4794 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4796 2019-09-11 Richard Biener <rguenther@suse.de>
4798 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4799 * lto-wrapper.c (merge_and_complain): Pick up -g.
4800 (append_compiler_options): Likewise.
4801 (run_gcc): Re-instantiate handling -g0 at link-time.
4802 * doc/invoke.texi (flto): Document debug info generation.
4804 2019-09-11 Richard Biener <rguenther@suse.de>
4806 PR tree-optimization/90387
4807 * vr-values.c (vr_values::extract_range_basic): After inlining
4808 simplify non-constant __builtin_constant_p to false.
4810 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4812 PR rtl-optimization/89795
4813 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4814 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4816 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4818 PR tree-optimization/91723
4819 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4820 instead of pointer equality when checking if argument vectypes are
4824 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4825 of get_nonzero_bits, only call it for integral types.
4827 2019-09-11 Richard Biener <rguenther@suse.de>
4830 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4832 * match.pd: Add flag_unsafe_math_optimizations check
4833 before deciding on the widest type in a binary math operation.
4835 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4837 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4838 and CALL_REALLY_USED_REGISTERS must be defined, and that
4839 CALL_REALLY_USED_REGISTERS is preferred.
4840 * doc/tm.texi: Regenerate.
4841 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4842 (call_really_used_regs): Likewise.
4843 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4844 CALL_REALLY_USED_REGISTERS are defined.
4845 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4846 initial value if defined.
4847 (initial_call_really_used_regs): Delete.
4848 (saved_call_really_used_regs): Likewise.
4849 (CALL_REALLY_USED_REGNO_P): Likewise.
4850 (init_reg_sets): Remove handling of call_really_used_regs.
4851 (save_register_info, restore_register_info, globalize_reg): Likewise.
4852 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4853 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4854 outside operand_reg_set.
4855 (fix_register): Don't change call_used_regs if
4856 CALL_REALLY_USED_REGISTERS is defined.
4857 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4858 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4859 instead of call_really_used_regs.
4860 (csky_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/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4864 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4865 making a register fixed.
4866 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4867 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4868 instead of call_really_used_regs.
4869 (m32r_conditional_register_usage): Don't set call_used_regs when
4870 making a register fixed.
4871 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4872 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4873 instead of call_really_used_regs.
4874 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4875 (mips_cfun_call_saved_reg_p): Likewise.
4876 (mips_swap_registers): Remove the old handling of call_used_regs
4877 and change the handling of call_really_used_regs to use call_used_regs
4879 (mips_conditional_register_usage): Likewise.
4880 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4881 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4882 instead of call_really_used_regs.
4883 (mn10300_get_live_callee_saved_regs): Likewise.
4884 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4885 (mn10300_conditional_register_usage): Don't set call_used_regs when
4886 making a register fixed.
4887 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4888 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4889 Remove the old handling of call_used_regs and change the handling
4890 of call_really_used_regs to use call_used_regs instead.
4891 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4892 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4893 instead of call_really_used_regs.
4894 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4895 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4896 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4897 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4898 (s390_conditional_register_usage): Remove the old handling of
4899 call_used_regs and change the handling of call_really_used_regs
4900 to use call_used_regs instead.
4901 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4902 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4903 (sh_fix_range, reg_unused_after): Likewise.
4904 (sh_conditional_register_usage): Remove the old handling of
4905 call_used_regs and change the handling of call_really_used_regs
4906 to use call_used_regs instead.
4907 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4908 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4909 call_used_regs when making a register fixed.
4910 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4911 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4912 call_used_regs when making a register fixed.
4913 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4914 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4915 set call_used_regs when making a register fixed.
4916 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4917 * config/visium/visium.c (visium_conditional_register_usage): Remove
4918 the old handling of call_used_regs and change the handling of
4919 call_really_used_regs to use call_used_regs instead.
4921 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4923 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4924 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4925 * reginfo.c (call_used_regs): New macro.
4927 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4929 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4931 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4932 (bpf_expand_epilogue): Likewise.
4933 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4934 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4935 (ft32_expand_epilogue): Likewise.
4936 * config/i386/i386.c (ix86_save_reg): Likewise.
4937 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4938 (moxie_expand_epilogue): Likewise.
4939 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4940 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4941 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4943 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4945 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4946 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4947 instead of testing call_used_regs directly.
4948 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4949 (aarch64_components_for_bb): Likewise.
4950 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4951 * config/arc/arc.c (arc_must_save_register): Likewise.
4952 (arc_epilogue_uses): Likewise.
4953 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4954 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4955 (arm_compute_save_reg0_reg12_mask): Likewise.
4956 (arm_compute_save_core_reg_mask): Likewise.
4957 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4958 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4959 (cmse_nonsecure_entry_clear_before_return): Likewise.
4960 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4961 (arm_expand_epilogue): Likewise.
4962 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4963 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4964 (_reg_unused_after): Likewise.
4965 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4966 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4967 (add_to_reg, hwloop_optimize): Likewise.
4968 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4969 (bpf_expand_epilogue): Likewise.
4970 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4971 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4972 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4973 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4974 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4975 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4976 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4977 * config/frv/frv.c (frv_stack_info): Likewise.
4978 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4979 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4980 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4981 (move_callee_saved_registers): Likewise.
4982 * config/h8300/h8300.c (byte_reg): Likewise.
4983 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4984 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4985 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4986 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4987 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4988 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4989 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4990 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4991 * config/m32c/m32c.c (need_to_save): Likewise.
4992 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4993 * config/mcore/mcore.c (calc_live_regs): Likewise.
4994 * config/microblaze/microblaze.c (microblaze_must_save_register):
4996 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4997 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4998 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4999 (mmix_expand_epilogue): Likewise.
5000 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
5001 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
5002 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
5003 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
5004 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
5005 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
5006 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
5007 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
5008 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
5009 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
5010 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
5011 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
5012 * config/rl78/rl78.c (need_to_save): Likewise.
5013 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
5014 (rs6000_stack_info, generate_set_vrsave): Likewise.
5015 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
5016 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
5017 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5018 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5019 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
5020 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
5021 (save_local_or_in_reg_p): Likewise.
5022 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
5023 (xstormy16_epilogue_uses): Likewise.
5024 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
5025 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
5026 * config/v850/v850.c (compute_register_save_size): Likewise.
5027 * config/vax/vax.c (vax_expand_prologue): Likewise.
5028 * config/visium/visium.c (visium_save_reg_p): Likewise.
5029 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
5030 * cselib.c (cselib_process_insn): Likewise.
5031 * df-scan.c (df_get_entry_block_def_set): Likewise.
5032 * function.c (aggregate_value_p): Likewise.
5033 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
5034 * ira-lives.c (process_bb_node_lives): Likewise.
5035 * ira.c (do_reload): Likewise.
5036 * lra-lives.c (process_bb_lives): Likewise.
5037 * lra-remat.c (lra_remat): Likewise.
5038 * lra.c (lra): Likewise.
5039 * postreload.c (reload_combine_recognize_pattern): Likewise.
5040 (reload_cse_move2add): Likewise.
5041 * recog.c (peep2_find_free_register): Likewise.
5042 * regrename.c (check_new_reg_p): Likewise.
5043 * reload.c (find_equiv_reg): Likewise.
5044 * reload1.c (reload, find_reg): Likewise.
5045 * sel-sched.c (init_hard_regs_data): Likewise.
5047 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5049 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
5050 regs_invalidated_by_call & ~fixed_reg_set instead of
5051 call_used_or_fixed_regs & ~fixed_reg_set.
5052 * config/sh/sh.c (output_stack_adjust): Likewise.
5054 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5056 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
5057 (call_used_reg_set): Delete.
5058 (call_used_or_fixed_regs): New macro.
5059 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
5060 of call_used_reg_set.
5061 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
5062 instead of call_used_regs.
5063 (save_call_clobbered_regs): Likewise.
5064 * cfgcleanup.c (old_insns_match_p): Likewise.
5065 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
5066 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5068 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5069 * config/sh/sh.c (output_stack_adjust): Likewise.
5070 * final.c (collect_fn_hard_reg_usage): Likewise.
5071 * ira-build.c (ira_build): Likewise.
5072 * ira-color.c (calculate_saved_nregs): Likewise.
5073 (allocno_reload_assign, calculate_spill_cost): Likewise.
5074 * ira-conflicts.c (ira_build_conflicts): Likewise.
5075 * ira-costs.c (ira_tune_allocno_costs): Likewise.
5076 * ira-lives.c (process_bb_node_lives): Likewise.
5077 * ira.c (setup_reg_renumber): Likewise.
5078 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
5079 * lra-constraints.c (need_for_call_save_p): Likewise.
5080 (need_for_split_p, inherit_in_ebb): Likewise.
5081 * lra-lives.c (process_bb_lives): Likewise.
5082 * lra-remat.c (call_used_input_regno_present_p): Likewise.
5083 * postreload.c (reload_combine): Likewise.
5084 * regrename.c (find_rename_reg): Likewise.
5085 * reload1.c (reload_as_needed): Likewise.
5086 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5087 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5088 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5090 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5092 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
5093 (no_caller_save_reg_set): Delete.
5094 * caller-save.c (init_caller_save): Don't initialize it.
5095 * ira-conflicts.c (ira_build_conflicts): Calculate
5096 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
5098 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5100 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
5101 (target_hard_regs::x_savable_regs): New field.
5102 (call_fixed_reg_set): Delete.
5103 (savable_regs): New macro,
5104 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
5105 (init_reg_sets_1): Likewise. Initialize savable_regs.
5106 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
5107 for all registers. Set savable_regs instead of call_fixed_reg_set.
5108 (setup_save_areas, save_call_clobbered_regs): Replace uses of
5109 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
5110 * config/sh/sh.c (output_stack_adjust): Likewise.
5112 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5114 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
5115 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
5116 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
5118 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5120 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
5121 * rtlanal.c (get_call_rtx_from): Likewise.
5122 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
5123 than the pattern to get_call_rtx_from.
5124 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
5125 an rtx_insn * instead of an rtx.
5126 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
5128 2019-09-10 Martin Liska <mliska@suse.cz>
5130 * common.opt: Use newly added WarnRemoved.
5131 * config/aarch64/aarch64.opt: Likewise.
5132 * config/arm/arm.opt: Likewise.
5133 * config/i386/i386.opt: Likewise.
5134 * config/ia64/ia64.opt: Likewise.
5135 * config/rs6000/rs6000.opt: Likewise.
5136 * doc/options.texi: Document WarnRemoved properly.
5137 * dwarf2out.c (gen_producer_string): Handle renamed
5138 OPT_SPECIAL_warn_removed.
5139 * lto-opts.c (lto_write_options): Likewise.
5140 * lto-wrapper.c (merge_and_complain): Likewise.
5141 * opts-common.c (decode_cmdline_option): Likewise.
5142 (prune_options): Likewise.
5143 (read_cmdline_option): Likewise.
5144 (control_warning_option): Likewise.
5145 * opts.c (print_filtered_help): Likewise.
5146 * optc-gen.awk: Parse for WarnRemoved and make usage
5147 of Deprecated an error.
5148 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
5150 2019-09-10 Arnaud Charlet <charlet@adacore.com>
5152 * doc/install.texi: Fix syntax for html generation.
5154 2019-09-10 Jakub Jelinek <jakub@redhat.com>
5157 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
5158 the shift type to type.
5160 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5162 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
5164 (stack_protect_combined_test_insn): Likewise.
5166 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5167 Mickaël Guêné <mickael.guene@st.com>
5169 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
5170 * config/arm/arm.md (FDPIC_REGNUM): New constant.
5171 (load_tp_soft_fdpic): New pattern.
5172 (load_tp_soft): Disable in FDPIC mode.
5174 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5175 Mickaël Guêné <mickael.guene@st.com>
5177 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
5178 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
5179 (arm_call_tls_get_addr): Add FDPIC support.
5180 (legitimize_tls_address): Likewise.
5181 (arm_emit_tls_decoration): Likewise.
5183 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5184 Mickaël Guêné <mickael.guene@st.com>
5186 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
5188 (arm_trampoline_init): Likewise.
5189 (arm_trampoline_adjust_address): Likewise.
5190 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
5192 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5193 Mickaël Guêné <mickael.guene@st.com>
5195 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
5196 (legitimize_pic_address): Enforce binding rules on function
5197 pointers in FDPIC mode.
5198 (arm_assemble_integer): Likewise.
5200 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5201 Mickaël Guêné <mickael.guene@st.com>
5203 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
5204 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
5207 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5208 Mickaël Guêné <mickael.guene@st.com>
5210 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
5213 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5214 Mickaël Guêné <mickael.guene@st.com>
5216 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
5218 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
5220 * config/arm/arm.c (arm_option_override): Define pic register to
5222 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
5223 have no decl or go through PLT.
5224 (calculate_pic_address_constant): New function.
5225 (legitimize_pic_address): Call calculate_pic_address_constant.
5226 (arm_load_pic_register): Handle TARGET_FDPIC.
5227 (arm_is_segment_info_known): New function.
5228 (arm_pic_static_addr): Add support for FDPIC.
5229 (arm_load_function_descriptor): New function.
5230 (arm_emit_call_insn): Add support for FDPIC.
5231 (arm_assemble_integer): Add support for FDPIC.
5232 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
5233 Define. (FDPIC_REGNUM): New define.
5234 * config/arm/arm.md (call): Add support for FDPIC.
5235 (call_value): Likewise.
5236 (restore_pic_register_after_call): New pattern.
5237 (untyped_call): Disable if FDPIC.
5238 (untyped_return): Likewise.
5239 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
5241 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5242 Mickaël Guêné <mickael.guene@st.com>
5244 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
5245 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
5246 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
5247 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
5248 (CC1_SPEC): Use FDPIC_CC1_SPEC.
5249 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
5250 * config/arm/uclinuxfdpiceabi.h: New file.
5252 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5254 * config.gcc: Handle *-*-uclinuxfdpiceabi.
5256 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5257 Mickaël Guêné <mickael.guene@st.com>
5259 * config/arm/arm.opt: Add -mfdpic option.
5260 * doc/invoke.texi: Add documentation for -mfdpic.
5262 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5264 * expmed.c (extract_bit_field): Update function comment
5266 * expr.c (expand_expr_real): Update function comment
5268 (expand_misaligned_mem_ref): New helper function.
5269 (expand_expr_real_2): Use expand_misaligned_mem_ref.
5270 Remove duplicate assignment to "base" at case MEM_REF.
5271 Remove a shadowed variable "unsignedp" at case VCE.
5273 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5275 * regset.h (regs_invalidated_by_call_regset): Delete.
5276 (fixed_reg_set_regset): Likewise.
5277 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
5278 (fixed_reg_set_regset, persistent_obstack): Likewise.
5279 (init_reg_sets_1, globalize_reg): Update accordingly.
5280 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
5281 instead of a bitmap.
5282 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
5283 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
5284 instead of regs_invalidated_by_call_regset.
5285 (df_lr_confluence_n, df_md_confluence_n): Likewise.
5286 * df-scan.c (df_scan_start_dump): Likewise.
5287 * dse.c (copy_fixed_regs): Likewise.
5288 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
5290 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5292 * array-traits.h: New file.
5293 * coretypes.h (array_traits, bitmap_view): New types.
5294 * bitmap.h: Include "array-traits.h"
5295 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5296 (base_bitmap_view, bitmap_view): New classes.
5297 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5298 * hard-reg-set.h: Include array-traits.h.
5299 (array_traits<HARD_REG_SET>): New struct.
5300 * regset.h (IOR_REG_SET_HRS): New macro.
5301 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
5302 rather than iterating over each hard register.
5303 * sched-deps.c (sched_analyze_insn): Likewise.
5304 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
5306 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5308 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
5309 instead of a HARD_REG_SET *.
5310 * ira-build.c (ior_hard_reg_conflicts): Likewise.
5311 (ira_build): Update call accordingly.
5312 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
5314 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5316 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
5317 (HARD_REG_SET::operator!=): Likewise.
5318 (hard_reg_set_equal_p): Delete.
5319 * cfgcleanup.c (old_insns_match_p): Use == instead of
5320 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
5321 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
5322 (add_allocno_hard_regs_to_forest): Likewise.
5323 (setup_allocno_available_regs_num): Likewise.
5324 * ira.c (setup_pressure_classes): Likewise.
5325 (setup_allocno_and_important_classes): Likewise.
5326 (setup_reg_class_relations): Likewise.
5327 * lra-lives.c (process_bb_lives): Likewise.
5328 * reg-stack.c (change_stack, convert_regs_1): Likewise.
5330 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5332 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
5333 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5334 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
5335 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
5337 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
5338 * ira.c (setup_reg_renumber): Likewise.
5339 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5340 * regrename.c (regrename_find_superclass): Likewise.
5341 * reload1.c (find_reg): Likewise.
5343 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5345 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
5346 * caller-save.c (setup_save_areas): Use "&~" instead of
5347 AND_COMPL_HARD_REG_SET.
5348 (save_call_clobbered_regs): Likewise.
5349 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5351 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5352 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5353 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
5354 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5355 (mips_conditional_register_usage): Likewise.
5356 * config/sh/sh.c (output_stack_adjust): Likewise.
5357 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5358 (setup_profitable_hard_regs): Likewise.
5359 (get_conflict_and_start_profitable_regs): Likewise.
5360 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5361 (ira_build_conflicts): Likewise.
5362 * ira-costs.c (restrict_cost_classes): Likewise.
5363 (setup_regno_cost_classes_by_aclass): Likewise.
5364 * ira-lives.c (process_bb_node_lives): Likewise.
5365 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5366 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5367 (setup_allocno_and_important_classes, setup_class_translate_array)
5368 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5370 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5371 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5372 (process_alt_operands, inherit_in_ebb): Likewise.
5373 * lra-eliminations.c (update_reg_eliminate): Likewise.
5374 * lra-lives.c (process_bb_lives): Likewise.
5375 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5376 * resource.c (find_dead_or_set_registers): Likewise.
5377 (mark_target_live_regs): Likewise.
5378 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5379 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5380 (implicit_clobber_conflict_p): Likewise.
5381 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5382 (try_shrink_wrapping): Likewise.
5384 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5386 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5387 (HARD_REG_SET::operator|=): Likewise.
5388 (IOR_HARD_REG_SET): Delete.
5389 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5391 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5392 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5393 * final.c (collect_fn_hard_reg_usage): Likewise.
5394 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5395 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5396 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5397 (propagate_some_info_from_allocno): Likewise.
5398 (copy_info_to_removed_store_destinations): Likewise.
5399 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5400 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5401 (fast_allocation): Likewise.
5402 * ira-conflicts.c (ira_build_conflicts): Likewise.
5403 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5404 (process_bb_node_lives): Likewise.
5405 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5406 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5407 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5408 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5409 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5410 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5411 (process_bb_lives): Likewise.
5412 * lra-spills.c (assign_spill_hard_regs): Likewise.
5413 * postreload.c (reload_combine): Likewise.
5414 * reginfo.c (init_reg_sets_1): Likewise.
5415 * regrename.c (merge_overlapping_regs, find_rename_reg)
5416 (merge_chains): Likewise.
5417 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5418 (find_reload_regs, finish_spills, choose_reload_regs_init)
5419 (emit_reload_insns): Likewise.
5420 * reorg.c (redundant_insn): Likewise.
5421 * resource.c (find_dead_or_set_registers, mark_set_resources)
5422 (mark_target_live_regs): Likewise.
5423 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5424 * sched-deps.c (sched_analyze_insn): Likewise.
5425 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5426 (find_best_reg_for_expr): Likewise.
5427 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5429 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5431 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5432 (HARD_REG_SET::operator&): Likewise.
5433 (AND_HARD_REG_SET): Delete.
5434 * caller-save.c (setup_save_areas): Use "&" instead of
5436 (save_call_clobbered_regs): Likewise.
5437 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5438 * config/m32c/m32c.c (reduce_class): Likewise.
5439 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5440 * final.c (get_call_reg_set_usage): Likewise.
5441 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5442 (setup_left_conflict_sizes_p): Likewise.
5443 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5444 (ira_build_conflicts): Likewise.
5445 * ira-costs.c (restrict_cost_classes): Likewise.
5446 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5447 (setup_reg_class_relations): Likewise.
5448 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5449 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5450 * resource.c (find_dead_or_set_registers): Likewise.
5451 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5453 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5455 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5456 (COMPL_HARD_REG_SET): Delete.
5457 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5458 of COMPL_HARD_REG_SET.
5459 (try_rename_operands): Likewise.
5460 * config/sh/sh.c (push_regs): Likewise.
5461 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5462 * lra-constraints.c (contains_reg_p): Likewise.
5463 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5465 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5467 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5468 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5469 of COPY_HARD_REG_SET.
5470 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5471 (epiphany_conditional_register_usage): Likewise.
5472 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5473 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5474 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5475 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5476 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5477 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5478 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5479 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5480 * config/sh/sh.c (output_stack_adjust): Likewise.
5481 * final.c (collect_fn_hard_reg_usage): Likewise.
5482 (get_call_reg_set_usage): Likewise.
5483 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5484 (ira_flattening): Likewise.
5485 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5486 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5487 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5488 (ira_reassign_pseudos): Likewise.
5489 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5490 (ira_build_conflicts): Likewise.
5491 * ira-costs.c (restrict_cost_classes): Likewise.
5492 (setup_regno_cost_classes_by_aclass): Likewise.
5493 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5494 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5495 (setup_stack_reg_pressure_class, setup_pressure_classes)
5496 (setup_allocno_and_important_classes, setup_class_translate_array)
5497 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5498 (ira_setup_eliminable_regset): Likewise.
5499 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5500 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5501 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5502 (process_alt_operands, inherit_in_ebb): Likewise.
5503 * lra-lives.c (process_bb_lives): Likewise.
5504 * lra-spills.c (assign_spill_hard_regs): Likewise.
5505 * lra.c (lra): Likewise.
5506 * mode-switching.c (new_seginfo): Likewise.
5507 * postreload.c (reload_combine): Likewise.
5508 * reg-stack.c (straighten_stack): Likewise.
5509 * reginfo.c (save_register_info, restore_register_info): Likewise.
5510 (init_reg_sets_1, record_subregs_of_mode): Likewise
5511 * regrename.c (create_new_chain, rename_chains): Likewise.
5512 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5513 (find_reload_regs): Likewise.
5514 * resource.c (find_dead_or_set_registers): Likewise.
5515 (mark_target_live_regs): Likewise.
5516 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5518 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5520 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5521 (note_pattern_stores): Declare.
5522 (note_stores): Take an rtx_insn *.
5523 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5524 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5525 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5526 (note_stores): Take an rtx_insn * as argument and process
5527 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5528 (note_pattern_stores): ...this.
5529 (find_first_parameter_load): Pass the insn rather than
5530 its pattern to note_stores.
5531 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5532 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5533 (insert_one_insn): Likewise.
5534 * combine.c (combine_instructions): Likewise.
5535 (likely_spilled_retval_p): Likewise.
5536 (try_combine): Use note_pattern_stores instead of note_stores.
5537 (record_dead_and_set_regs): Pass the insn rather than its pattern
5539 (reg_dead_at_p): Likewise.
5540 * config/bfin/bfin.c (workaround_speculation): Likewise.
5541 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5543 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5544 instead of note_stores.
5545 (frv_optimize_membar_local): Pass the insn rather than its pattern
5547 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5548 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5549 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5550 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5551 (mips_reorg_process_insns): Likewise.
5552 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5553 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5555 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5556 its pattern to note_stores.
5557 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5559 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5560 the insn to note_stores.
5561 (prescan_insns_for_dce): Update call accordingly.
5562 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5564 * df-problems.c (can_move_insns_across): Likewise.
5565 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5566 * function.c (assign_parm_setup_reg): Likewise.
5567 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5568 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5569 (single_set_gcse): Likewise.
5570 * ira.c (validate_equiv_mem): Likewise.
5571 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5573 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5574 pattern to note_stores.
5575 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5576 * loop-iv.c (simplify_using_initial_values): Likewise.
5577 * mode-switching.c (optimize_mode_switching): Likewise.
5578 * optabs.c (emit_libcall_block_1): Likewise.
5579 (expand_atomic_compare_and_swap): Likewise.
5580 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5581 (record_opr_changes): Likewise. Remove explicit handling of
5582 CALL_INSN_FUNCTION_USAGE.
5583 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5584 * regcprop.c (kill_clobbered_values): Likewise.
5585 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5587 * regrename.c (build_def_use): Likewise.
5588 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5589 for mark_not_eliminable.
5590 (reload_as_needed): Pass the insn rather than its pattern
5592 (emit_output_reload_insns): Likewise.
5593 * resource.c (mark_target_live_regs): Likewise.
5594 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5595 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5596 instead of note_stores.
5597 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5598 its pattern to note_stores.
5599 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5600 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5602 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5604 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5605 than a #define. Use a structure rather than an array as the
5606 fallback definition. Remove special cases for low array sizes.
5607 (const_hard_reg_set): New typedef.
5608 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5609 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5610 (hard_reg_set_empty_p): Likewise.
5611 (SET_HARD_REG_BIT): Use a function rather than a macro to
5612 handle the case in which HARD_REG_SET is a structure.
5613 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5614 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5615 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5616 (IOR_COMPL_HARD_REG_SET): Likewise.
5617 (hard_reg_set_iterator::pset): Constify the pointer target.
5618 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5619 of a "const HARD_REG_SET". Update the handling of non-integer
5621 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5622 * reload.h: Likewise.
5623 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5624 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5625 of a "const HARD_REG_SET".
5626 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5627 (range_in_hard_reg_set_p): Likewise.
5628 * ira-costs.c (restrict_cost_classes): Likewise.
5629 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5630 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5631 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5632 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5633 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5634 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5635 take an unsigned int and open-code the HARD_REG_SET operations.
5637 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5639 * Makefile.in (OBJS): Remove bt-load.o.
5640 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5641 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5642 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5643 document that the option no longer does anything.
5644 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5645 * target.def (branch_target_register_class): Delete.
5646 (branch_target_register_callee_saved): Likewise.
5647 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5648 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5649 * doc/tm.texi: Regenerate.
5650 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5651 (make_pass_branch_target_load_optimize2): Likewise.
5652 * passes.def (pass_branch_target_load_optimize1): Likewise.
5653 (pass_branch_target_load_optimize2): Likewise.
5654 * targhooks.h (default_branch_target_register_class): Likewise.
5655 * targhooks.c (default_branch_target_register_class): Likewise.
5656 * opt-suggestions.c (test_completion_valid_options): Remove
5657 -fbtr-bb-exclusive from the list of test options.
5658 * bt-load.c: Remove.
5660 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5662 * match.pd: Add flag_unsafe_math_optimizations check
5663 before deciding on the widest type in a binary math operation.
5665 2019-09-09 Martin Liska <mliska@suse.cz>
5667 * config/i386/i386.opt: Update comment of removed
5668 options that are preserved only for backward
5671 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5674 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5678 * config/i386/avxintrin.h (__v32qs): New typedef.
5679 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5682 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5684 * doc/invoke.texi (Option Summary): Cover eBPF.
5685 (eBPF Options): New section.
5686 * doc/extend.texi (BPF Built-in Functions): Likewise.
5687 (BPF Kernel Helpers): Likewise.
5689 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5691 * config.gcc: Support for bpf-*-* targets.
5692 * common/config/bpf/bpf-common.c: New file.
5693 * config/bpf/t-bpf: Likewise.
5694 * config/bpf/predicates.md: Likewise.
5695 * config/bpf/constraints.md: Likewise.
5696 * config/bpf/bpf.opt: Likewise.
5697 * config/bpf/bpf.md: Likewise.
5698 * config/bpf/bpf.h: Likewise.
5699 * config/bpf/bpf.c: Likewise.
5700 * config/bpf/bpf-protos.h: Likewise.
5701 * config/bpf/bpf-opts.h: Likewise.
5702 * config/bpf/bpf-helpers.h: Likewise.
5703 * config/bpf/bpf-helpers.def: Likewise.
5705 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5707 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5710 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5712 * opt-functions.awk (integer_range_info): Make sure values are in
5713 numeric context before operating with them.
5715 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5717 * genemit.c (gen_split): Print the filename and line number where the
5718 splitter (or peephole2) was defined, to the dump file.
5720 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5722 PR tree-optimization/91665
5723 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5724 incompatible with the type of PHI result.
5726 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5729 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5730 gen_unaligned_storedi for 4-byte aligned addresses.
5732 2019-09-06 Jim Wilson <jimw@sifive.com>
5734 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5737 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5739 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5741 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5743 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5744 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5746 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5749 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5750 cost of SSE->integer and integer->SSE moves from 2 to 6.
5753 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5755 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5756 before testing TYPE_TRANSPARENT_AGGR.
5757 * calls.c (initialize_argument_information, load_register_parameters):
5760 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5762 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5764 (cmp_ior): Likewise.
5766 2019-09-06 Martin Liska <mliska@suse.cz>
5768 * doc/match-and-simplify.texi: Separate tuples with ;.
5770 2019-09-06 Martin Liska <mliska@suse.cz>
5773 * Makefile.in: Remove tlink.o.
5774 * collect2.c (do_link): New function isolated
5777 * collect2.h (do_tlink): Remove declaration of do_tlink.
5778 * doc/extend.texi: Remove documentation of -frepo.
5779 * doc/invoke.texi: Likewise.
5780 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5783 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5784 Jim Wilson <jimw@sifive.com>
5787 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5788 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5789 paradoxical_subreg_p (operands[0]).
5790 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5791 use as intermediate value.
5793 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5795 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5796 (sync_compare_and_swap<mode>_insn): Likewise.
5798 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5801 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5802 without movmisalign optab.
5804 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5809 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5810 types, use type of their first field instead of type of
5813 2019-09-05 Richard Biener <rguenther@suse.de>
5815 PR rtl-optimization/91656
5816 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5819 2019-09-05 Richard Biener <rguenther@suse.de>
5822 * tree-inline.c (declare_return_variable): Mark the return
5823 slot as addressable after building an address of it.
5825 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5827 * doc/install.texi: Update and clarify requirements to build GNAT.
5829 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5832 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5833 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5834 call to be in memory.
5835 (pass_expand::execute): Call discover_nonconstant_array_refs before
5836 setting currently_expanding_to_rtl.
5838 2019-09-04 Caroline Tice <cmtice@google.com>
5840 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5843 2019-09-04 Marek Polacek <polacek@redhat.com>
5845 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5847 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5850 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5851 for QI and HImode moves between SSE and general registers.
5853 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5856 * doc/invoke.texi: Document -Wenum-conversion.
5858 2019-09-04 Richard Biener <rguenther@suse.de>
5860 PR rtl-optimization/36262
5861 * postreload-gcse.c: Include intl.h and gcse.h.
5862 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5863 to avoid linear list walk.
5864 (record_last_mem_set_info): Gate off if not computing transparentness.
5865 (get_bb_avail_insn): If transparentness isn't computed give up
5867 (gcse_after_reload_main): Skip compute_transp and extended PRE
5868 if gcse_or_cprop_is_too_expensive says so.
5870 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5872 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5874 (msp430_select_section): Handle decls with the "noinit" attribute with
5875 default_elf_select_section.
5876 Handle SECCAT_RODATA_MERGE_* section types with
5877 default_elf_select_section.
5878 Add comments about handling of unsupported section types.
5879 (msp430_section_type_flags): Remove handling of the noinit section.
5881 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5883 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5884 conflicting msp430-specific attributes.
5885 (msp430_section_attr): Likewise.
5886 Add warnings about conflicts with generic "noinit" and "section"
5888 Fix grammar in -mlarge error message.
5889 (msp430_data_attr): Rename to msp430_persist_attr.
5890 Add warnings about conflicts with generic "noinit" and "section"
5892 Add warning for when variable is not initialized.
5893 Chain conditionals which prevent the attribute being added.
5894 (ATTR_EXCL): New helper.
5895 (attr_reent_exclusions): New exclusion table.
5896 (attr_naked_exclusions): Likewise.
5897 (attr_crit_exclusions): Likewise.
5898 (attr_lower_exclusions): Likewise.
5899 (attr_upper_exclusions): Likewise.
5900 (attr_either_exclusions): Likewise.
5901 (attr_persist_exclusions): Likewise.
5902 (msp430_attribute_table): Update with exclusion rules.
5903 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5906 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5908 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5909 (msp430_handle_generic_attribute): New function.
5910 * doc/tm.texi: Regenerate.
5911 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5912 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5913 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5914 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5916 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5918 PR tree-optimization/91504
5919 * match.pd: Add ((~a & b) ^a) --> (a | b).
5921 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5924 * config/i386/i386-expand.c (split_double_mode): If there is more than
5925 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5926 already split matching MEM operand instead of calling adjust_address
5929 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5931 * config.gcc: Obsolete spu target. Remove references to spu.
5932 * configure.ac: Remove references to spu.
5933 * configure: Regenerate.
5934 * config/spu/: Remove directory.
5935 * common/config/spu/: Remove directory.
5937 * doc/extend.texi: Remove references to spu.
5938 * doc/invoke.texi: Likewise.
5939 * doc/md.texi: Likewise.
5940 * doc/sourcebuild.texi: Likewise.
5942 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5947 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5948 and SSA_NAME referring to CONSTANT_P correctly.
5950 2019-09-03 Richard Biener <rguenther@suse.de>
5952 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5953 (vn_nary_op_insert): Likewise.
5954 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5955 (vn_nary_op_lookup): Likewise.
5956 (vn_nary_op_insert): Likewise.
5958 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5960 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5961 (*op0, 1) instead of XEXP (*op1, 0).
5963 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5965 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5966 (aarch64_fjcvtzs): New define_insn.
5967 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5968 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5970 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5971 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5972 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5973 __ARM_FEATURE_JCVT where appropriate.
5974 * config/aarch64/arm_acle.h (__jcvt): Define.
5976 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5978 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5979 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5980 (aarch64_<frintnzs_op><mode>): New define_insn.
5981 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5982 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5983 __ARM_FEATURE_FRINT when appropriate.
5984 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5985 frint32x, frint64z, frint64x.
5986 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5987 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5988 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5989 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5990 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5991 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5992 * config/aarch64/iterators.md (VSFDF): Define.
5993 (FRINTNZX): Likewise.
5994 (frintnzs_op): Likewise.
5996 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5998 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5999 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
6001 * config/aarch64/aarch64-tune.md: Regenerated.
6002 * doc/invoke.texi: Document the new processors.
6004 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6006 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
6010 (sve2-sm4): Likewise.
6012 (svesha3): Likewise.
6013 (svebitperm): Likewise.
6015 2019-09-03 Jakub Jelinek <jakub@redhat.com>
6016 Richard Biener <rguenther@suse.de>
6018 PR tree-optimization/91597
6019 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
6020 BIT_AND_EXPR optimization for pointers, even if both operand
6021 ranges don't include NULL, the result can be NULL.
6023 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6026 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
6027 (non_mem_decl_p): ...this.
6028 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
6029 (expand_assignment): Call mem_ref_referes_to_non_mem_p
6030 unconditionally as before.
6032 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6035 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
6036 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
6037 * tree.def (LTGT_EXPR): Likewise.
6038 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
6040 2019-09-02 Jakub Jelinek <jakub@redhat.com>
6043 * fold-const.c (range_check_type): For enumeral and boolean
6044 type, pass 1 to type_for_size langhook instead of
6045 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
6046 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
6047 (build_range_check): Don't call unsigned_type_for for pointer types.
6048 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
6049 range_check_type result.
6051 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6053 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
6054 (replace_ref): Do not replace a chain of only two candidates which are
6055 valid memory references.
6057 2019-09-02 Martin Liska <mliska@suse.cz>
6059 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
6060 Bail out when we'll end up with the same number of clusters as
6062 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
6063 (jump_table_cluster::can_be_handled): Remove the guard
6064 as it's already handled in ::is_enabled. Allocate output
6065 after early bail out.
6067 2019-09-02 Martin Liska <mliska@suse.cz>
6069 PR gcov-profile/91601
6070 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
6071 (path_contains_zero_or_negative_cycle_arc): ... this and handle
6072 also negative edges.
6073 (circuit): Handle also negative edges as they can happen
6076 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
6079 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
6080 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
6081 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
6083 2019-09-01 Jakub Jelinek <jakub@redhat.com>
6086 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
6087 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
6088 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
6092 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
6093 GIMPLE_ASM TREE_LIST operands.
6095 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6097 * doc/generic.texi (Unary and Binary Expressions): Mark up
6098 an instance of TYPE_MIN.
6100 2019-08-31 Stafford Horne <shorne@gmail.com>
6102 * config/or1k/constraints.md (t): New constraint.
6103 * config/or1k/or1k.h (GOT_REGS): New register class.
6104 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
6106 2019-08-30 Jim Wilson <jimw@sifive.com>
6108 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
6109 and -fpic and -mplt then disable -msave-restore and warn.
6111 2019-08-30 Martin Sebor <msebor@redhat.com>
6114 * tree-ssa-strlen.c (handle_store): Use a fallback location if
6115 the statement doesn't have one.
6116 * gimple-pretty-print.c (percent_G_format): Same.
6119 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
6120 before using them to validate MEM_REF offset.
6122 2019-08-30 Marek Polacek <polacek@redhat.com>
6124 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
6126 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6128 * config/arm/arm.md (unaligned_loaddi,
6129 unaligned_storedi): New unspec insn patterns.
6130 * config/arm/neon.md (unaligned_storev8qi): Likewise.
6131 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
6132 and unaligned_storedi for 4-byte aligned memory.
6133 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
6134 4-byte aligned memory.
6136 2019-08-30 Martin Jambor <mjambor@suse.cz>
6138 tree-optimization/91579
6139 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
6140 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
6142 (arg_needs_copy_p): Removed.
6143 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
6145 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
6147 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6149 * config/i386/i386-features.c
6150 (general_scalar_chain::compute_convert_gain):
6151 Correct cost for double-word shifts.
6152 (general_scalar_to_vector_candidate_p): Reject count operands
6153 greater or equal to mode bitsize.
6155 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6157 * config/i386/i386.c (inline_secondary_memory_needed): Return true
6158 for moves between SSE and non-general registers and between
6159 mask and non-general registers.
6160 (ix86_register_move_cost): Remove stalled comment.
6162 2019-08-29 Richard Biener <rguenther@suse.de>
6164 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6165 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
6167 2019-08-29 Richard Biener <rguenther@suse.de>
6170 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6171 Do not emit scalar copies for debug-insns, instead replace
6172 their uses with the reg copy used in the chain or reset them
6173 if there is a reaching definition outside of the chain as well.
6175 2019-08-29 Jakub Jelinek <jakub@redhat.com>
6178 * config/i386/i386-expand.c (expand_vec_perm_movs,
6179 expand_vec_perm_blend, expand_vec_perm_vpermil,
6180 expand_vec_perm_pshufb, expand_vec_perm_1,
6181 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
6182 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
6183 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
6184 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
6185 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
6186 comments - replace ix86_expand_vec_perm_builtin_1 with
6187 ix86_expand_vec_perm_const_1.
6188 (expand_vec_perm2_vperm2f128_vblend): New function.
6189 (ix86_expand_vec_perm_const_1): New forward declaration. Call
6190 expand_vec_perm2_vperm2f128_vblend as last resort.
6191 (canonicalize_perm): Formatting fix.
6193 PR tree-optimization/91351
6194 * tree-cfg.c (generate_range_test): Use range_check_type instead of
6196 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
6197 range_check_type returns NULL.
6198 * tree-switch-conversion.c (switch_conversion::build_one_array):
6199 Use range_check_type instead of unsigned_type_for, don't perform
6200 linear opt if it returns NULL.
6201 (bit_test_cluster::find_bit_tests): Formatting fix.
6202 (bit_test_cluster::emit): Use range_check_type instead of
6204 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
6207 2019-08-29 Richard Biener <rguenther@suse.de>
6209 PR tree-optimization/91568
6210 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
6211 (vect_update_max_nunits): Add overload for poly_uint64.
6212 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
6213 (vect_build_slp_tree): Record max_nunits into the subtree
6214 and merge it upwards.
6215 (vect_print_slp_tree): Print max_nunits.
6217 2019-08-28 Marek Polacek <polacek@redhat.com>
6219 Implement P1152R4: Deprecating some uses of volatile.
6221 * doc/invoke.texi: Document -Wvolatile.
6223 2019-08-28 Marek Polacek <polacek@redhat.com>
6225 PR c++/91360 - Implement C++20 P1143R2: constinit.
6226 * doc/invoke.texi: Document -Wc++20-compat.
6228 2019-08-28 Martin Sebor <msebor@redhat.com>
6230 PR tree-optimization/91457
6231 * builtins.c (component_size): New function.
6232 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
6233 * builtins.h (compute_objsize): Add argument.
6234 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
6235 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
6236 (vrp_prop::check_mem_ref): Same.
6237 (vrp_prop::search_for_addr_array): Set no-warning bit.
6238 (check_array_bounds): Same.
6240 2019-08-28 Martin Sebor <msebor@redhat.com>
6243 * opts-common.c (option_enabled): Correct checking for language
6246 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
6248 * config/i386/i386.c (ix86_register_move_cost): Do not
6249 limit the cost of moves to/from XMM register to minimum 8.
6251 2019-08-28 Martin Jambor <mjambor@suse.cz>
6254 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
6255 checking assert a normal assert to test it really is redundant.
6256 * ipa-prop.c (compute_complex_assign_jump_func): Removed
6258 (update_jump_functions_after_inlining): Removed combining unary
6259 arithmetic operations with an ancestor jump function.
6260 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
6263 2019-08-28 Richard Biener <rguenther@suse.de>
6265 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
6268 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6269 Richard Biener <rguenther@suse.de>
6271 * expr.c (expand_assignment): Handle misaligned DECLs.
6272 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
6273 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
6275 (assign_parm_setup_stack): Allocate properly aligned stack slots.
6276 * varasm.c (build_constant_desc): Align constants of misaligned types.
6277 * config/arm/predicates.md (aligned_operand): New predicate.
6278 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
6279 aligned_operand to check restrictions on memory addresses.
6280 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
6281 * config/arm/vec-common.md (mov<VALL>): Likewise.
6283 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6286 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
6287 V_128 iterator instead of VI_128.
6289 2019-08-28 Martin Liska <mliska@suse.cz>
6291 PR tree-optimization/90970
6292 * builtins.c (check_access): Remove assignment to maxread
6293 as it hasn't been used since when it was introduced in r255755.
6295 2019-08-27 Martin Sebor <msebor@redhat.com>
6297 PR tree-optimization/91567
6298 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
6300 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
6303 2019-08-27 Jeff Law <law@redhat.com>
6305 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
6306 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
6308 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
6311 * config/i386/i386-features.c (convert_scalars_to_vector):
6312 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
6313 crtl->stack_realign_processed. Update crtl->drap_reg by calling
6314 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
6315 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
6317 2019-08-27 Richard Biener <rguenther@suse.de>
6319 * config/i386/i386-features.h
6320 (general_scalar_chain::~general_scalar_chain): Add.
6321 (general_scalar_chain::insns_conv): New bitmap.
6322 (general_scalar_chain::n_sse_to_integer): New.
6323 (general_scalar_chain::n_integer_to_sse): Likewise.
6324 (general_scalar_chain::make_vector_copies): Adjust signature.
6325 * config/i386/i386-features.c
6326 (general_scalar_chain::general_scalar_chain): Outline,
6327 initialize new members.
6328 (general_scalar_chain::~general_scalar_chain): New.
6329 (general_scalar_chain::mark_dual_mode_def): Record insns
6330 we need to insert conversions at and count them.
6331 (general_scalar_chain::compute_convert_gain): Account
6332 for conversion instructions at chain boundary.
6333 (general_scalar_chain::make_vector_copies): Generate a single
6334 copy for a def by a specific insn.
6335 (general_scalar_chain::convert_registers): First populate
6336 defs_map, then make copies at out-of chain insns.
6338 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
6340 * config/arm/arm.md (stack_protect_set_insn): Add security-related
6342 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
6344 2019-08-27 Martin Liska <mliska@suse.cz>
6346 * cgraph.c (cgraph_node::remove): Remove dead assignment before
6348 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
6349 Enclose in anonymous namespace.
6350 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
6351 hard_register initialization in braces.
6352 * tree-vrp.h (value_range_base::supports_type_p): Return false
6353 for function with boolean return type.
6355 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
6357 * config/i386/i386.c (emit_i387_cw_initialization)
6358 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6360 2019-08-26 Martin Sebor <msebor@redhat.com>
6363 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6364 (sprintf_dom_walker): Remove class.
6365 (get_int_range): Make argument const.
6366 (directive::fmtfunc, directive::set_precision): Same.
6367 (format_none): Same.
6368 (build_intmax_type_nodes): Same.
6369 (adjust_range_for_overflow): Same.
6370 (format_floating): Same.
6371 (format_character): Same.
6372 (format_string): Same.
6373 (format_plain): Same.
6374 (get_int_range): Cast away constness.
6375 (format_integer): Same.
6376 (get_string_length): Call get_range_strlen_dynamic. Handle
6377 null lendata.maxbound.
6378 (should_warn_p): Adjust argument scope qualifier.
6380 (format_directive): Same.
6381 (parse_directive): Same.
6382 (is_call_safe): Same.
6383 (try_substitute_return_value): Same.
6384 (sprintf_dom_walker::handle_printf_call): Rename...
6385 (handle_printf_call): ...to this. Initialize target to host charmap
6386 here instead of in pass_sprintf_length::execute.
6387 (struct call_info): Make global.
6388 (sprintf_dom_walker::compute_format_length): Make global.
6389 (sprintf_dom_walker::handle_gimple_call): Same.
6390 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6391 * print-rtl.c (print_pattern): Reduce the number of spaces to
6392 avoid -Wformat-truncation.
6393 * tree-pass.h (make_pass_warn_printf): New function.
6394 * tree-ssa-strlen.c (strlen_optimize): New variable.
6395 (get_string_length): Add comments.
6396 (get_range_strlen_dynamic): New function.
6397 (check_and_optimize_call): New function.
6398 (handle_integral_assign): New function.
6399 (strlen_check_and_optimize_stmt): Factor code out into
6400 strlen_check_and_optimize_call and handle_integral_assign.
6401 (strlen_dom_walker::evrp): New member.
6402 (strlen_dom_walker::before_dom_children): Use evrp member.
6403 (strlen_dom_walker::after_dom_children): Use evrp member.
6404 (printf_strlen_execute): New function.
6405 (pass_strlen::gate): Update to handle printf calls.
6406 (dump_strlen_info): New function.
6407 (pass_data_warn_printf): New variable.
6408 (pass_warn_printf): New class.
6409 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6410 (handle_printf_call): Same.
6411 * tree-vrp.c (value_range_base::type): Adjust assertion.
6412 * vr-values.c (vr_values::update_value_range): Use type of the first
6413 argument rather than the second.
6415 2019-08-26 Richard Biener <rguenther@suse.de>
6417 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6419 (convert_scalars_to_vector): Do not call it.
6421 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6422 Uros Bizjak <ubizjak@gmail.com>
6424 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6425 CASE_MATHFN_FLOATN for roundeven.
6426 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6428 (ix86_mode_needed): Likewise.
6429 (ix86_mode_after): Likewise.
6430 (ix86_mode_entry): Likewise.
6431 (ix86_mode_exit): Likewise.
6432 (ix86_emit_mode_set): Likewise.
6433 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6434 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6435 (ix86_entity): Add I387_ROUNDEVEN.
6436 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6437 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6438 (define_int_iterator): Likewise.
6439 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6440 (define_constant): Define ROUND_ROUNDEVEN mode.
6441 (define_attr): Add roundeven mode for i387_cw.
6442 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6443 * internal-fn.def (ROUNDEVEN): New builtin function.
6444 * optabs.def (roundeven_optab): New optab.
6446 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6448 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6450 * builtins.def: Added function definitions for roundeven function
6452 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6453 function call. Adjust condition for floor, ceil, trunc and round.
6454 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6455 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6456 (integer_valued_real_call_p): Added case for roundeven function.
6457 * real.c (is_even): New function. Returns true if real number is even,
6458 otherwise returns false.
6459 (is_halfway_below): New function. Returns true if real number is
6460 halfway between two integers, else return false.
6461 (real_roundeven): New function. Round real number to nearest integer,
6462 rounding halfway cases towards even.
6463 * real.h (real_value): Added descriptive comments. Added function
6464 declaration for roundeven function.
6465 * doc/extend.texi (Other Builtins): List roundeven variants among
6466 functions which can be handled as builtins.
6468 2019-08-26 Richard Biener <rguenther@suse.de>
6472 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6474 (general_scalar_chain::replace_with_subreg): Remove.
6475 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6476 (general_scalar_chain::convert_reg): Adjust signature.
6477 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6478 iterate over all defs of a reg.
6479 (general_scalar_chain::replace_with_subreg): Remove.
6480 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6481 (general_scalar_chain::make_vector_copies): Populate defs_map,
6482 place copy only after defs that are used as vectors in the chain.
6483 (general_scalar_chain::convert_reg): Emit a copy for a specific
6484 def in a specific instruction.
6485 (general_scalar_chain::convert_op): All reg uses are converted here.
6486 (general_scalar_chain::convert_insn): Emit copies for scalar
6487 uses of defs here. Replace uses with the copies we created.
6488 Replace and convert the def. Adjust REG_DEAD notes, remove
6489 REG_EQUIV/EQUAL notes.
6490 (general_scalar_chain::convert_registers): Only handle copies
6491 into the chain here.
6493 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6495 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6497 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6499 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6500 Add nop_convert case.
6501 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6502 Fold all statements if requested.
6503 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6504 Allow to fold all statements.
6505 * tree-vrp.c (class vrp_folder):
6506 Let substitute_and_fold_engine fold all statements.
6508 2019-08-26 Richard Biener <rguenther@suse.de>
6510 PR tree-optimization/91526
6511 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6512 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6513 TODO_update_address_taken.
6515 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6517 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6520 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6522 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6523 machine mode for unspec_volatile operand.
6525 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6527 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6528 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6529 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6530 (prefer_neon_for_64bits): Remove.
6531 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6532 (tune_params): Remove PREF_NEON_64_FALSE uses.
6533 (arm_option_override): Remove prefer_neon selection code.
6534 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6535 * gcc/config/arm/arm-protos.h (tune_params): Remove
6536 prefer_neon_for_64bits.
6537 (prefer_neon_for_64bits): Remove.
6539 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6542 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6543 and issue any diagnostics needed before collecting the pre-PCH
6546 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6549 * common.opt (fexcess-precision=): Add Optimization flag. Use
6550 flag_excess_precision variable instead of
6551 flag_excess_precision_cmdline.
6552 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6554 (flag_excess_precision): Don't define.
6555 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6556 flag_excess_precision_cmdline. Remove comment.
6557 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6558 and x_flag_excess_precision instead of
6559 frontend_set_flag_excess_precision_cmdline and
6560 x_flag_excess_precision_cmdline.
6561 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6562 x_flag_excess_precision_cmdline.
6563 * toplev.c (init_excess_precision): Remove.
6564 (lang_dependent_init_target): Don't call it.
6566 2019-08-23 Martin Liska <mliska@suse.cz>
6568 * lto-wrapper.c (run_gcc): When setting jobserver
6569 set also parallel to 1. This was done so before r273908.
6571 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6573 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6574 (cortex-a76ae): Likewise.
6575 (cortex-a77): Likewise
6576 * config/arm/arm-tables.opt: Regenerate.
6577 * config/arm/arm-tune.md: Likewise.
6578 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6579 cortex-a77 CPU options.
6581 2019-08-23 Martin Liska <mliska@suse.cz>
6583 * profile.c (instrument_values): Do not set
6585 * tree-profile.c (gimple_gen_interval_profiler): Remove
6587 (gimple_gen_pow2_profiler): Likewise.
6588 (gimple_gen_topn_values_profiler): Likewise.
6589 (gimple_gen_ic_profiler): Likewise.
6590 (gimple_gen_time_profiler): Likewise.
6591 (gimple_gen_average_profiler): Likewise.
6592 (gimple_gen_ior_profiler): Likewise.
6593 * value-prof.c (dump_histogram_value): Use default
6594 in switch statement instead of HIST_TYPE_MAX.
6595 (stream_in_histogram_value): Likewise.
6596 (gimple_duplicate_stmt_histograms): Do not
6597 use NULL for implicitly set arguments.
6598 (gimple_divmod_values_to_profile): Do not use
6600 (gimple_indirect_call_to_profile): Likewise.
6601 (gimple_find_values_to_profile): Use implicit
6602 function call arguments.
6603 * value-prof.h (gimple_alloc_histogram_value):
6605 (gimple_gen_interval_profiler): Remove last argument.
6606 (gimple_gen_pow2_profiler): Likewise.
6607 (gimple_gen_topn_values_profiler): Likewise.
6608 (gimple_gen_ic_profiler): Likewise.
6609 (gimple_gen_time_profiler): Likewise.
6610 (gimple_gen_average_profiler): Likewise.
6611 (gimple_gen_ior_profiler): Likewise.
6613 2019-08-22 Martin Sebor <msebor@redhat.com>
6616 * builtins.c (c_strlen): Rename argument and introduce new local.
6617 Set no-warning bit on original argument.
6618 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6619 Fold empty and zero constructors into empty strings.
6620 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6621 for missing initializers.
6622 * tree.c (build_string_literal): Handle optional argument.
6623 * tree.h (build_string_literal): Add defaulted argument.
6624 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6625 no-warning bit on original expression.
6627 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6630 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6631 and UNSPEC_DARN_RAW.
6632 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6634 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6635 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6636 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6638 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6640 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6641 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6642 * config/rs6000/rs6000.md (unspec): ... here.
6643 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6644 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6645 cmpeqb, *cmpeqb_internal): Delete, move to...
6646 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6647 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6648 cmpeqb, *cmpeqb_internal): ... here.
6650 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6652 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6653 intrinsics if __ARM_FP.
6654 Use __ARM_FEATURE_CRC32 ifdef guard.
6656 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6658 * config/arm/arm.md (neon_for_64bits): Remove.
6659 (avoid_neon_for_64bits): Remove.
6660 (arm_adddi3): Always split early.
6661 (arm_subdi3): Always split early.
6662 (negdi2): Remove Neon expansion.
6663 (split zero_extend): Split before reload.
6664 (split sign_extend): Split before reload.
6666 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6668 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6669 (qhs_extenddi_cstr): Likewise.
6670 * config/arm/arm.md (ashldi3): Always expand early.
6671 (ashlsi3): Likewise.
6672 (ashrsi3): Likewise.
6673 (zero_extend<mode>di2): Remove Neon variants.
6674 (extend<mode>di2): Likewise.
6675 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6676 (signed_shift_di3_neon): Likewise.
6677 (unsigned_shift_di3_neon): Likewise.
6678 (ashrdi3_neon_imm_noclobber): Likewise.
6679 (lshrdi3_neon_imm_noclobber): Likewise.
6680 (<shift>di3_neon): Likewise.
6681 (split extend): Remove DI extend split patterns.
6683 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6685 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6686 (split not): Add DImode not splitter.
6687 (anddi3): Remove pattern.
6688 (anddi3_insn): Likewise.
6689 (anddi_zesidi_di): Likewise.
6690 (anddi_sesdi_di): Likewise.
6691 (anddi_notdi_di): Likewise.
6692 (anddi_notzesidi_di): Likewise.
6693 (anddi_notsesidi_di): Likewise.
6695 (iordi3_insn): Likewise.
6696 (iordi_zesidi_di): Likewise.
6697 (iordi_sesidi_di): Likewise.
6699 (xordi3_insn): Likewise.
6700 (xordi_sesidi_di): Likewise.
6701 (xordi_zesidi_di): Likewise.
6702 (one_cmpldi2): Likewise.
6703 (one_cmpldi2_insn): Likewise.
6704 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6705 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6707 (iwmmxt_xordi3): Likewise.
6708 (iwmmxt_anddi3): Likewise.
6709 * config/arm/neon.md (orndi3_neon): Remove pattern.
6710 (anddi_notdi_di): Likewise.
6711 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6712 (arm_iordi_operand_neon): Likewise.
6713 (arm_xordi_operand_neon): Likewise.
6714 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6715 (iordi_notzesidi_di): Likewise.
6716 (iordi_notdi_zesidi): Likewise.
6717 (iordi_notsesidi_di): Likewise.
6719 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6721 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6723 (iorsi3_compare0_scratch): Likewise.
6725 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6727 * config/aarch64/aarch64-simd-builtins.def:
6730 * config/aarch64/aarch64-simd.md:
6731 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6732 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6733 (aarch64_ld1_x4_<mode>): Likewise.
6734 (aarch64_st1_x4_<mode>): Likewise.
6735 * config/aarch64/arm_neon.h:
6736 (vld1_s8_x4): New function.
6737 (vld1q_s8_x4): Likewise.
6738 (vld1_s16_x4): Likewise.
6739 (vld1q_s16_x4): Likewise.
6740 (vld1_s32_x4): Likewise.
6741 (vld1q_s32_x4): Likewise.
6742 (vld1_u8_x4): Likewise.
6743 (vld1q_u8_x4): Likewise.
6744 (vld1_u16_x4): Likewise.
6745 (vld1q_u16_x4): Likewise.
6746 (vld1_u32_x4): Likewise.
6747 (vld1q_u32_x4): Likewise.
6748 (vld1_f16_x4): Likewise.
6749 (vld1q_f16_x4): Likewise.
6750 (vld1_f32_x4): Likewise.
6751 (vld1q_f32_x4): Likewise.
6752 (vld1_p8_x4): Likewise.
6753 (vld1q_p8_x4): Likewise.
6754 (vld1_p16_x4): Likewise.
6755 (vld1q_p16_x4): Likewise.
6756 (vld1_s64_x4): Likewise.
6757 (vld1_u64_x4): Likewise.
6758 (vld1_p64_x4): Likewise.
6759 (vld1q_s64_x4): Likewise.
6760 (vld1q_u64_x4): Likewise.
6761 (vld1q_p64_x4): Likewise.
6762 (vld1_f64_x4): Likewise.
6763 (vld1q_f64_x4): Likewise.
6764 (vst1_s8_x4): Likewise.
6765 (vst1q_s8_x4): Likewise.
6766 (vst1_s16_x4): Likewise.
6767 (vst1q_s16_x4): Likewise.
6768 (vst1_s32_x4): Likewise.
6769 (vst1q_s32_x4): Likewise.
6770 (vst1_u8_x4): Likewise.
6771 (vst1q_u8_x4): Likewise.
6772 (vst1_u16_x4): Likewise.
6773 (vst1q_u16_x4): Likewise.
6774 (vst1_u32_x4): Likewise.
6775 (vst1q_u32_x4): Likewise.
6776 (vst1_f16_x4): Likewise.
6777 (vst1q_f16_x4): Likewise.
6778 (vst1_f32_x4): Likewise.
6779 (vst1q_f32_x4): Likewise.
6780 (vst1_p8_x4): Likewise.
6781 (vst1q_p8_x4): Likewise.
6782 (vst1_p16_x4): Likewise.
6783 (vst1q_p16_x4): Likewise.
6784 (vst1_s64_x4): Likewise.
6785 (vst1_u64_x4): Likewise.
6786 (vst1_p64_x4): Likewise.
6787 (vst1q_s64_x4): Likewise.
6788 (vst1q_u64_x4): Likewise.
6789 (vst1q_p64_x4): Likewise.
6790 (vst1_f64_x4): Likewise.
6791 (vst1q_f64_x4): Likewise.
6793 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6795 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6797 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6798 Richard Sandiford <richard.sandiford@arm.com>
6801 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6802 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6804 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6807 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6808 in reg if it fails aarch64_plus_operand predicate.
6810 2019-08-21 Richard Biener <rguenther@suse.de>
6812 PR tree-optimization/91482
6813 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6814 BUILT_IN_ASSUME_ALIGNED calls.
6816 2019-08-21 Richard Biener <rguenther@suse.de>
6820 * config/i386/i386-features.c
6821 (general_scalar_chain::make_vector_copies): Copy stack temporary
6822 rtx when using it multiple times.
6823 (general_scalar_chain::convert_reg): Likewise.
6825 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6827 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6829 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6831 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6832 catch more redundant zero initialization cases.
6833 (dse_dom_walker::dse_optimize_stmt): Likewise.
6835 2019-08-20 Richard Biener <rguenther@suse.de>
6838 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6839 by collect2 when targetm.have_ctors_dtors which avoids dragging
6840 in temporary filenames from LTO input objects.
6842 2019-08-20 Richard Biener <rguenther@suse.de>
6844 PR tree-optimization/37242
6845 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6846 to (T)a + (T)b if we know that a + b does not overflow.
6848 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6850 PR rtl-optimization/91347
6851 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6852 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6854 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6856 * calls.h (function_arg_info): Add a pass_by_reference field,
6857 defaulting to false.
6858 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6859 when applying pass-by-reference semantics.
6860 (initialize_argument_information): Likewise.
6861 (emit_library_call_value_1): Likewise.
6862 * function.c (assign_parm_data_one): Remove passed_pointer field.
6863 (assign_parm_find_data_types): Don't set it.
6864 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6865 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6866 arg.pass_by_reference instead of passed_pointer.
6868 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6870 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6871 into a single function_arg_info, updating its fields when we
6872 apply pass-by-reference and promotion semantics. Use the
6873 function_arg_info to track the mode rather than keeping it in
6874 a separate local variable.
6875 (initialize_argument_information): Likewise. Base the final
6876 arg_to_skip on this new function_arg_info rather than creating
6877 a new one from scratch.
6879 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6881 * function.c (assign_parm_data_one): Replace passed_type,
6882 promoted_mode and named_arg with a function_arg_info field.
6883 (assign_parm_find_data_types): Remove local variables and
6884 assign directly to "data". Make data->passed_mode shadow
6885 data->arg.mode until promotion, then assign the promoted
6886 mode to data->arg.mode.
6887 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6888 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6889 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6890 (assign_parm_setup_block, assign_parm_setup_reg)
6891 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6892 arg.mode instead of promoted_mode, arg.type instead of passed_type
6893 and arg.named instead of named_arg. Use data->arg for
6894 function_arg_info structures that had the field values passed_type,
6895 promoted_mode and named_arg. Base other function_arg_infos on
6896 data->arg, changing the necessary properties.
6898 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6900 * calls.h (apply_pass_by_reference_rules): Declare.
6901 * calls.c (apply_pass_by_reference_rules): New function.
6902 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6903 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6904 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6905 * function.c (assign_parm_find_data_types): Likewise.
6906 * var-tracking.c (prepare_call_arguments): Likewise.
6908 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6910 * target.def (must_pass_in_stack): Take a function_arg_info instead
6911 of a mode and a type.
6912 * doc/tm.texi: Regenerate.
6913 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6914 instead of a mode and a type.
6915 (must_pass_in_stack_var_size_or_pad): Likewise.
6916 * calls.c (must_pass_in_stack_var_size): Likewise.
6917 (must_pass_in_stack_var_size_or_pad): Likewise.
6918 (initialize_argument_information): Update call to
6919 targetm.calls.must_pass_in_stack.
6920 (must_pass_va_arg_on_stack): Likewise.
6921 * function.c (assign_parm_find_entry_rtl): Likewise.
6922 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6923 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6924 (alpha_function_arg_advance): Likewise.
6925 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6926 (cr16_function_arg_advance): Likewise.
6927 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6928 (cris_arg_partial_bytes): Likewise.
6929 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6930 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6931 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6932 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6933 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6934 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6935 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6936 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6937 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6938 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6939 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6940 instead of a mode and a type.
6941 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6942 (fr30_num_arg_regs): Likewise.
6943 (fr30_setup_incoming_varargs): Update calls accordingly.
6944 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6945 (fr30_function_arg_advance): Likewise.
6946 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6947 instead of a mode and a type.
6948 * config/gcn/gcn.c (num_arg_regs): Likewise.
6949 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6950 num_arg_regs and targetm.calls.must_pass_in_stack.
6951 (gcn_arg_partial_bytes): Likewise.
6952 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6953 function_arg_info instead of a mode and a type.
6954 (classify_argument): Update call accordingly.
6955 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6956 function_arg_info instead of a mode and a type.
6957 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6959 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6960 (rs6000_parm_needs_stack): Update call accordingly.
6961 (setup_incoming_varargs): Likewise.
6963 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6965 * target.def (callee_copies): Take a function_arg_info instead
6966 of a mode, type and named flag.
6967 * doc/tm.texi: Regenerate.
6968 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6969 instead of a mode, type and named flag.
6970 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6971 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6972 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6973 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6974 instead of a mode, type and named flag.
6975 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6976 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6977 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6978 * calls.h (reference_callee_copied): Take a function_arg_info
6979 instead of a mode, type and named flag.
6980 * calls.c (reference_callee_copied): Likewise.
6981 (initialize_argument_information): Update call accordingly.
6982 (emit_library_call_value_1): Likewise.
6983 * function.c (gimplify_parameters): Likewise.
6984 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6985 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6986 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6987 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6988 (TARGET_CALLEE_COPIES): Define to
6989 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6990 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6991 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6992 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6993 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6994 instead of a mode, type and named flag.
6995 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6996 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6997 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6998 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6999 * config/msp430/msp430.c (msp430_callee_copies): Delete.
7000 (TARGET_CALLEE_COPIES): Define to
7001 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
7002 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
7003 instead of a mode, type and named flag.
7004 * config/sh/sh.c (sh_callee_copies): Likewise.
7005 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
7006 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7007 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7009 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7011 * target.def (function_arg_advance): Take a function_arg_info instead
7012 of a mode, type and named flag.
7013 * doc/tm.texi: Regenerate.
7014 * targhooks.h (default_function_arg_advance): Take a function_arg_info
7015 instead of a mode, type and named flag.
7016 * targhooks.c (default_function_arg_advance): Likewise.
7017 * calls.c (initialize_argument_information): Update call to
7018 targetm.calls.function_arg_advance.
7019 (emit_library_call_value_1): Likewise.
7020 * dse.c (get_call_args): Likewise.
7021 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7022 * function.c (assign_parms, gimplify_parameters): Likewise.
7023 * var-tracking.c (prepare_call_arguments): Likewise.
7024 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
7025 function_arg_info instead of a mode, type and named flag.
7026 (aarch64_setup_incoming_varargs): Update call accordingly.
7027 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
7028 function_arg_info instead of a mode, type and named flag.
7029 (alpha_setup_incoming_varargs): Update call accordingly.
7030 * config/arc/arc.c (arc_function_arg_advance): Take a
7031 function_arg_info instead of a mode, type and named flag.
7032 (arc_setup_incoming_varargs): Update call accordingly.
7033 * config/arm/arm.c (arm_function_arg_advance): Take a
7034 function_arg_info instead of a mode, type and named flag.
7035 (cmse_func_args_or_return_in_stack): Update call accordingly.
7036 (arm_function_ok_for_sibcall): Likewise.
7037 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7038 * config/avr/avr.c (avr_function_arg_advance): Take a
7039 function_arg_info instead of a mode, type and named flag.
7040 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
7041 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
7042 (c6x_call_saved_register_used): Update call accordingly.
7043 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
7044 function_arg_info instead of a mode, type and named flag.
7045 * config/cris/cris.c (cris_function_arg_advance): Likewise.
7046 * config/csky/csky.c (csky_function_arg_advance): Likewise.
7047 (csky_setup_incoming_varargs): Update call accordingly.
7048 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
7049 function_arg_info instead of a mode, type and named flag.
7050 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
7051 * config/frv/frv.c (frv_function_arg_advance): Likewise.
7052 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
7053 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
7054 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
7055 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
7056 (ix86_setup_incoming_varargs): Update call accordingly.
7057 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
7058 function_arg_info instead of a mode, type and named flag.
7059 (ia64_setup_incoming_varargs): Update call accordingly.
7060 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
7061 function_arg_info instead of a mode, type and named flag.
7062 (iq2000_expand_prologue): Update call accordingly.
7063 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
7064 function_arg_info instead of a mode, type and named flag.
7065 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
7066 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
7067 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7068 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
7069 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
7071 (microblaze_expand_prologue): Update call accordingly.
7072 * config/mips/mips.c (mips_function_arg_advance): Take a
7073 function_arg_info instead of a mode, type and named flag.
7074 (mips_setup_incoming_varargs): Update call accordingly.
7075 (mips_output_args_xfer): Likewise.
7076 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
7077 function_arg_info instead of a mode, type and named flag.
7078 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
7079 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
7080 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
7081 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
7082 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
7083 (nios2_setup_incoming_varargs): Update call accordingly.
7084 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
7085 function_arg_info instead of a mode, type and named flag.
7086 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
7087 * config/pa/pa.c (pa_function_arg_advance): Likewise.
7088 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
7089 * config/pru/pru.c (pru_function_arg_advance): Likewise.
7090 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
7091 (riscv_setup_incoming_varargs): Update call accordingly.
7092 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
7093 function_arg_info instead of a mode, type and named flag.
7094 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
7096 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
7097 (rs6000_parm_needs_stack): Update call accordingly.
7098 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
7099 instead of a mode, type and named flag.
7100 * config/s390/s390.c (s390_function_arg_advance): Likewise.
7101 (s390_call_saved_register_used): Update call accordingly.
7102 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
7103 instead of a mode, type and named flag.
7104 (sh_output_mi_thunk): Update call accordingly.
7105 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
7106 function_arg_info instead of a mode, type and named flag.
7107 * config/spu/spu.c (spu_function_arg_advance): Likewise.
7108 (spu_setup_incoming_varargs): Update call accordingly.
7109 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
7110 function_arg_info instead of a mode, type and named flag.
7111 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
7112 (tilegx_setup_incoming_varargs): Update call accordingly.
7113 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
7114 function_arg_info instead of a mode, type and named flag.
7115 (tilegx_setup_incoming_varargs): Update call accordingly.
7116 * config/v850/v850.c (v850_function_arg_advance): Take a
7117 function_arg_info instead of a mode, type and named flag.
7118 * config/vax/vax.c (vax_function_arg_advance): Likewise.
7119 * config/visium/visium.c (visium_function_arg_advance): Likewise.
7120 (visium_setup_incoming_varargs): Update call accordingly.
7121 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
7122 function_arg_info instead of a mode, type and named flag.
7124 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7126 * target.def (function_arg, function_incoming_arg): Take a
7127 function_arg_info instead of a mode, tree and named flag.
7128 * doc/tm.texi: Regenerate.
7129 * targhooks.h (default_function_arg): Take a function_arg_info
7130 instead of a mode, tree and named flag.
7131 (default_function_incoming_arg): Likewise.
7132 * targhooks.c (default_function_arg): Likewise.
7133 (default_function_incoming_arg): Likewise.
7134 * calls.h (function_arg_info::end_marker_p): New function.
7135 (function_arg_info::end_marker): Likewise.
7136 * calls.c (prepare_call_address, initialize_argument_information)
7137 (expand_call, emit_library_call_value_1): Update calls to
7138 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
7139 * dse.c: Include calls.h.
7140 (get_call_args): Update call to targetm.calls.function_arg.
7141 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7142 * var-tracking.c (prepare_call_arguments): Likewise.
7143 * function.c (assign_parm_find_entry_rtl): Update call to
7144 targetm.calls.function_incoming_arg.
7145 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
7146 function_arg_info instead of a mode, tree and named flag.
7147 * config/alpha/alpha.c (alpha_function_arg): Likewise.
7148 * config/arc/arc.c (arc_function_arg): Likewise.
7149 * config/arm/arm.c (arm_function_arg): Likewise.
7150 (cmse_func_args_or_return_in_stack): Update call accordingly.
7151 (arm_function_ok_for_sibcall): Likewise.
7152 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7153 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
7154 instead of a mode, tree and named flag.
7155 * config/bfin/bfin.c (bfin_function_arg): Likewise.
7156 * config/c6x/c6x.c (c6x_function_arg): Likewise.
7157 (c6x_call_saved_register_used): Update call accordingly.
7158 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
7159 instead of a mode, tree and named flag.
7160 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
7161 (cris_function_arg_1): Likewise.
7162 * config/csky/csky.c (csky_function_arg): Likewise.
7163 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
7164 * config/fr30/fr30.c (fr30_function_arg): Likewise.
7165 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
7166 (frv_function_arg_1): Likewise.
7167 * config/ft32/ft32.c (ft32_function_arg): Likewise.
7168 * config/gcn/gcn.c (gcn_function_arg): Likewise.
7169 * config/h8300/h8300.c (h8300_function_arg): Likewise.
7170 * config/i386/i386.c (ix86_function_arg): Likewise.
7171 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
7172 (ia64_function_arg_1): Likewise.
7173 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
7174 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
7176 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
7177 instead of a mode, tree and named flag.
7178 * config/m32c/m32c.c (m32c_function_arg): Likewise.
7179 * config/m32r/m32r.c (m32r_function_arg): Likewise.
7180 * config/m68k/m68k.c (m68k_function_arg): Likewise.
7181 * config/mcore/mcore.c (mcore_function_arg): Likewise.
7182 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
7183 (microblaze_expand_prologue): Update call accordingly.
7184 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
7185 instead of a mode, tree and named flag.
7186 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
7187 (mmix_function_arg_1): Likewise.
7188 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
7189 * config/moxie/moxie.c (moxie_function_arg): Likewise.
7190 * config/msp430/msp430.c (msp430_function_arg): Likewise.
7191 * config/nds32/nds32.c (nds32_function_arg): Likewise.
7192 * config/nios2/nios2.c (nios2_function_arg): Likewise.
7193 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
7194 (nvptx_function_incoming_arg): Likewise.
7195 * config/or1k/or1k.c (or1k_function_arg): Likewise.
7196 * config/pa/pa.c (pa_function_arg): Likewise.
7197 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
7198 * config/pru/pru.c (pru_function_arg): Likewise.
7199 * config/riscv/riscv.c (riscv_function_arg): Likewise.
7200 * config/rl78/rl78.c (rl78_function_arg): Likewise.
7201 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
7202 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
7203 (rs6000_parm_needs_stack): Update call accordingly.
7204 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
7205 instead of a mode, tree and named flag.
7206 * config/s390/s390.c (s390_function_arg): Likewise.
7207 (s390_call_saved_register_used): Update call accordingly.
7208 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
7209 instead of a mode, tree and named flag.
7210 (sh_output_mi_thunk): Update call accordingly.
7211 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
7212 (sparc_function_incoming_arg): Take a function_arg_info instead of
7213 a mode, tree and named flag.
7214 * config/spu/spu.c (spu_function_arg): Likewise.
7215 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
7216 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
7217 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
7218 * config/v850/v850.c (v850_function_arg): Likewise.
7219 * config/vax/vax.c (vax_function_arg): Likewise.
7220 * config/visium/visium.c (visium_function_arg): Likewise.
7221 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
7222 (xtensa_function_incoming_arg): Likewise.
7224 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7226 * target.def (setup_incoming_varargs): Take a function_arg_info
7227 instead of a mode and tree.
7228 * doc/tm.texi: Regenerate.
7229 * targhooks.h (default_setup_incoming_varargs): Take a
7230 function_arg_info instead of a mode and tree.
7231 * targhooks.c (default_setup_incoming_varargs): Likewise.
7232 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
7233 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
7234 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
7235 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
7236 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
7237 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
7238 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
7239 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
7241 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
7242 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
7243 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
7244 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
7245 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7246 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
7247 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7248 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7249 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7250 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
7251 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7252 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
7253 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
7254 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
7255 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
7256 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
7257 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
7258 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7259 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
7260 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
7261 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
7262 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7263 * function.c (assign_parms_setup_varargs): Update call to
7264 targetm.calls.setup_incoming_varargs.
7266 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7268 * target.def (pass_by_reference): Take a function_arg_info instead
7269 of a mode, type and named flag.
7270 * doc/tm.texi: Regenerate.
7271 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
7273 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
7274 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
7275 function_arg_info instead of a mode, type and named flag.
7276 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
7277 * calls.h (pass_by_reference): Take a function_arg_info instead of a
7278 mode, type and named flag.
7279 * calls.c (pass_by_reference): Likewise.
7280 (pass_va_arg_by_reference): Update call accordingly.
7281 (initialize_argument_information): Likewise.
7282 (emit_library_call_value_1): Likewise.
7283 * function.c (assign_parm_find_data_types): Likewise.
7284 * var-tracking.c (prepare_call_arguments): Likewise.
7285 * stor-layout.c: Include calls.h.
7286 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
7287 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
7288 function_arg_info instead of a mode, type and named flag.
7289 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
7290 * config/arc/arc.c (arc_pass_by_reference): Likewise.
7291 * config/arm/arm.c (arm_pass_by_reference): Likewise.
7292 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
7293 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
7294 (c6x_call_saved_register_used): Update call to pass_by_reference.
7295 * config/cris/cris.c (cris_pass_by_reference): Take a
7296 function_arg_info instead of a mode, type and named flag.
7297 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
7298 function_arg_info instead of a mode, type and named flag.
7299 (epiphany_arg_partial_bytes): Update call accordingly.
7300 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
7301 function_arg_info instead of a mode, type and named flag.
7302 (ft32_arg_partial_bytes): Update call accordingly.
7303 * config/i386/i386.c (ix86_pass_by_reference): Take a
7304 function_arg_info instead of a mode, type and named flag.
7305 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7306 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
7307 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
7308 (m32r_return_in_memory): Update call accordingly.
7309 * config/mips/mips.c (mips_pass_by_reference): Take a
7310 function_arg_info instead of a mode, type and named flag.
7311 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
7312 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7313 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
7314 (moxie_arg_partial_bytes): Update call accordingly.
7315 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
7316 function_arg_info instead of a mode, type and named flag.
7317 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
7318 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
7319 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7320 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
7321 (riscv_return_in_memory): Update call accordingly.
7322 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
7323 function_arg_info instead of a mode, type and named flag.
7324 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
7325 (rs6000_parm_needs_stack): Update call to pass_by_reference.
7326 * config/s390/s390.c (s390_pass_by_reference): Take a
7327 function_arg_info instead of a mode, type and named flag.
7328 (s390_call_saved_register_used): Update call accordingly.
7329 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
7330 instead of a mode, type and named flag.
7331 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
7332 * config/spu/spu.c (spu_pass_by_reference): Likewise.
7333 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
7334 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
7335 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7336 * config/visium/visium.c (visium_pass_by_reference): Likewise.
7338 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7340 * target.def (arg_partial_bytes): Take a function_arg_info instead
7341 of a mode, type and named flag.
7342 * doc/tm.texi: Regenerate.
7343 * target.h (function_arg_info): Declare.
7344 * calls.h (function_arg_info): New class.
7345 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7346 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
7347 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7348 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
7349 * calls.c (initialize_argument_information): Update call to
7350 targetm.calls.partial_bytes.
7351 (emit_library_call_value_1): Likewise.
7352 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7353 * function.c (assign_parm_find_entry_rtl): Likewise.
7354 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
7355 function_arg_info instead of a mode, type and named flag.
7356 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
7357 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7358 (cmse_func_args_or_return_in_stack): Update accordingly.
7359 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7360 function_arg_info instead of a mode, type and named flag.
7361 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7362 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7363 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7364 * config/fr30/fr30.c: Include calls.h.
7365 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7366 type and named flag.
7367 * config/frv/frv.c: Include calls.h.
7368 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7369 type and named flag.
7370 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7371 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7372 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7373 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7374 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7375 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7376 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7378 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7379 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7380 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7381 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7382 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7383 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7384 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7385 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7386 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7387 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7388 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7389 (rs6000_parm_needs_stack): Update call accordingly.
7390 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7391 function_arg_info instead of a mode, type and named flag.
7392 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7393 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7395 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7397 * calls.h (must_pass_va_arg_in_stack): Declare.
7398 * calls.c (must_pass_va_arg_in_stack): New function.
7399 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7400 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7401 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7403 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7405 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7407 * calls.h (pass_va_arg_by_reference): Declare.
7408 * calls.c (pass_va_arg_by_reference): New function.
7409 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7410 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7411 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7412 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7413 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7414 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7415 (mips_gimplify_va_arg_expr): Likewise.
7416 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7417 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7418 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7419 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7420 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7421 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7422 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7423 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7424 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7425 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7426 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7428 2019-08-20 Richard Biener <rguenther@suse.de>
7431 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7432 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7433 (convert_scalars_to_vector): Add timode_p parameter and use it
7434 to guard TImode-only operation.
7435 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7436 (pass_stv::execute): Pass down timode_p.
7438 2019-08-20 Lili Cui <lili.cui@intel.com>
7440 * common/config/i386/i386-common.c
7441 (processor_names): Add tigerlake and cooperlake.
7442 (processor_alias_table): Add tigerlake and cooperlake.
7443 * config.gcc: Add -march=tigerlake and cooperlake.
7444 * config/i386/driver-i386.c
7445 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7446 Add "has_avx" to classify processor.
7447 * config/i386/i386-builtins.c (processor_model) :
7448 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7449 (arch_names_table): Add tigerlake and cooperlake.
7450 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7451 and PROCESSOR_COOPERLAKE.
7452 * config/i386/i386-c.c
7453 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7454 * config/i386/i386-options.c
7455 (m_TIGERLAKE) : Define.
7456 (m_COOPERLAKE) : Ditto.
7457 (m_CORE_AVX512): Ditto.
7458 (processor_cost_table): Add cascadelake.
7459 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7460 * config/i386/i386.h
7461 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7462 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7463 (PTA_MOVDIRI): Ditto.
7464 (PTA_MOVDIR64B): Ditto.
7465 (PTA_COOPERLAKE) : Ditto.
7466 (PTA_TIGERLAKE) : Ditto.
7467 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7468 * doc/extend.texi: Add tigerlake and cooperlake.
7469 * doc/invoke.texi: Add tigerlake and cooperlake.
7471 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7473 * doc/install.texi (Specific, alpha): Remove note to use
7474 binutils 2.11.2 or later.
7476 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7479 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7482 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7484 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7485 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7486 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7487 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7488 * config/aarch64/constraints.md (Dt): New constraint
7489 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7491 2019-08-19 Richard Biener <rguenther@suse.de>
7493 PR tree-optimization/91403
7494 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7495 cases we can handle with tail-recursion...
7496 (follow_ssa_edge_expr): ... here. Do so.
7498 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7501 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7502 implemented for -fsanitize=kernel-address, and merge check logic
7503 with -fsanitize=address.
7505 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7507 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7508 for cpu and machine. Factor 64/32b builtins.
7510 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7512 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7513 gone, point to sourceforge.net.
7515 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7517 * doc/ux.texi (User Experience Guidelines): Update reference.
7519 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7521 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7524 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7526 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7527 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7529 2019-08-16 Martin Sebor <msebor@redhat.com>
7531 * tree.def (TYPE_SIZE): Clarify.
7532 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7534 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7536 PR tree-optimization/91109
7537 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7538 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7539 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7541 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7543 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7544 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7545 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7546 (uavg<mode>3_ceil): New expander.
7547 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7548 mode iterator when creating CONST1_RTX.
7549 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7550 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7551 mode iterator for const1_operand predicate.
7553 2019-08-16 Richard Biener <rguenther@suse.de>
7555 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7556 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7558 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7559 (analyze_evolution_in_loop): Likewise.
7560 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7561 (follow_ssa_edge_expr): ... here. Refactor code.
7563 2019-08-16 Richard Biener <rguenther@suse.de>
7566 * config/i386/i386-features.c
7567 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7569 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7572 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7573 only if subst_name matches curr_attr string.
7575 2019-08-16 Richard Biener <rguenther@suse.de>
7577 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7578 stmt at gsi_p, instead replace it with a NOP removed later.
7579 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7580 that became dead because of that.
7582 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7584 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7585 for which we can't represent a range.
7586 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7588 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7589 Set VR_UNDEFINED if type is not supported.
7590 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7591 * tree-vrp.c (value_range_base::check): Assert that a varying has
7593 (value_range_base::equal_p): Early bail for undefines.
7594 (value_range_base::set_varying): Accept a type.
7595 (value_range::set_varying): Same.
7596 (value_range_base::type): VARYING can have a type, while UNDEFINE
7598 (value_range_base::dump): Print type for VARYING nodes.
7599 (value_range_base::set): Add type to VARYING.
7600 (extract_range_from_multiplicative_op): Pass type to set_varying.
7601 (extract_range_from_binary_expr): Same.
7602 (value_range_base::intersect_helper): Same.
7603 (value_range_base::union_helper): Same.
7604 (value_range_base::normalize_symbolics): Same.
7605 (determine_value_range_1): Same.
7606 * tree-vrp.h (class value_range_base): Add type to set_varying.
7607 Add prototype for dump(void).
7608 Add prototype for supports_type_p.
7609 (class value_range): Add type to set_varying.
7610 Add prototype for dump(void).
7611 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7613 (vr_values::get_lattice_entry): Set varying even if propagation
7615 Pass type to set_varying.
7616 (vr_values::get_value_range): Remove vr_const_varying.
7617 Reallocate the lattice if needed.
7618 (vr_values::update_value_range): Pass type to set_varying.
7619 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7620 (vr_values::extract_range_from_binary_expr): Same.
7621 (vr_values::extract_range_from_unary_expr): Same.
7622 (vr_values::extract_range_from_cond_expr): Same.
7623 (vr_values::check_for_binary_op_overflow): Same.
7624 (vr_values::extract_range_basic): Same.
7625 (vr_values::extract_range_from_assignment): Same.
7626 (vr_values::vr_values): Increase size of num_vr_values.
7627 (vr_values::extract_range_from_phi_node): Pass type to
7630 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7633 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7634 for costs of hard register moves.
7635 (ix86_register_move_cost): Likewise.
7636 * config/i386/i386.h (processor_costs): Move costs of hard
7637 register moves to hard_register. Add int_load, int_store,
7638 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7639 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7640 for costs of RTL expressions.
7641 * config/i386/x86-tune-costs.h: Move costs of hard register
7642 moves to hard_register. Duplicate int_load, int_store,
7643 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7644 sse_load, sse_store for costs of RTL expressions.
7646 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7648 * target.def (setup_incoming_vararg_bounds): Remove.
7649 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7650 * doc/tm.texi: Regenerate.
7651 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7652 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7653 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7654 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7656 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7658 MSP430: Fix lines over 80 characters long in
7659 config/msp430/*.{c,h} files
7661 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7662 specifier in string.
7663 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7664 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7665 redundant old comment.
7666 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7667 Split line more than 80 characters long.
7668 * config/msp430/msp430.c (msp430_option_override): Likewise.
7669 (msp430_return_in_memory): Likewise.
7670 (msp430_gimplify_va_arg_expr): Likewise.
7671 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7672 (msp430_legitimate_constant): Likewise.
7673 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7674 (msp430_attr): Likewise.
7675 (msp430_data_attr): Likewise.
7676 (msp430_start_function): Likewise.
7677 (gen_prefix): Likewise.
7678 (msp430_init_sections): Likewise.
7679 (msp430_select_section): Likewise.
7680 (msp430_function_section): Likewise.
7681 (msp430_unique_section): Likewise.
7682 (msp430_output_aligned_decl_common): Likewise.
7683 (msp430_do_not_relax_short_jumps): Likewise.
7684 (msp430_init_builtins): Likewise.
7685 (msp430_expand_delay_cycles): Likewise.
7686 (msp430_expand_prologue): Likewise.
7687 (msp430_expand_epilogue): Likewise.
7688 (msp430_expand_helper): Likewise.
7689 (msp430_split_movsi): Likewise.
7690 (msp430_print_operand): Likewise.
7691 (msp430_return_addr_rtx): Likewise.
7692 (msp430x_extendhisi): Likewise.
7693 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7694 (ASM_SPEC): Likewise.
7695 Remove very obvious comments.
7696 (LIB_SPEC): Split line more than 80 characters long.
7697 (EH_RETURN_HANDLER_RTX): Likewise.
7698 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7700 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7702 MSP430: Fix whitespace errors and incorrect indentation in
7703 config/msp430/*.{c,h} files
7705 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7706 (msp430_select_hwmult_lib): Likewise.
7707 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7708 (msp430_extract_mcu_data): Likewise.
7709 (struct t_msp430_mcu_data): Likewise.
7710 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7711 before left square bracket.
7712 (msp430_option_override): Fix indentation.
7713 (msp430_hard_regno_nregs_with_padding): Likewise.
7714 (msp430_initial_elimination_offset): Likewise.
7715 (msp430_special_register_convention_p): Remove whitespace before left
7716 square bracket and after exclamation mark.
7717 (msp430_evaluate_arg): Likewise.
7718 (msp430_callee_copies): Fix indentation.
7719 (msp430_gimplify_va_arg_expr): Likewise.
7720 (msp430_function_arg_advance): Remove whitespace before left square
7722 (reg_ok_for_addr): Likewise.
7723 (msp430_preserve_reg_p): Likewise.
7724 (msp430_compute_frame_info): Likewise.
7725 (msp430_asm_output_addr_const_extra): Add space between function name
7726 and open parenthesis.
7727 (has_section_name): Fix indentation.
7728 (msp430_attr): Remove trailing whitespace.
7729 (msp430_section_attr): Likewise.
7730 (msp430_data_attr): Likewise.
7731 (struct msp430_attribute_table): Fix comment and whitespace.
7732 (msp430_start_function): Remove whitespace before left square bracket.
7733 Add space between function name and open parenthesis.
7734 (msp430_select_section): Remove trailing whitespace.
7735 (msp430_section_type_flags): Remove trailing whitespace.
7736 (msp430_unique_section): Remove space before closing parenthesis.
7737 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7738 (msp430_builtins): Remove whitespace before left square bracket.
7739 (msp430_init_builtins): Fix indentation.
7740 (msp430_expand_prologue): Remove whitespace before left square bracket.
7741 Remove space before closing parenthesis.
7742 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7743 (msp430_split_movsi): Remove space before closing parenthesis.
7744 (helper_function_name_mappings): Fix indentation.
7745 (msp430_use_f5_series_hwmult): Fix whitespace.
7746 (use_32bit_hwmult): Likewise.
7747 (msp430_no_hwmult): Likewise.
7748 (msp430_output_labelref): Remove whitespace before left square bracket.
7749 (msp430_print_operand_raw): Likewise.
7750 (msp430_print_operand_addr): Likewise.
7751 (msp430_print_operand): Add two spaces after '.' in comment.
7752 Fix trailing whitespace.
7753 (msp430x_extendhisi): Fix indentation.
7754 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7756 (PC_REGNUM): Likewise.
7757 (STACK_POINTER_REGNUM): Likewise.
7758 (CC_REGNUM): Likewise.
7760 2019-08-15 Richard Biener <rguenther@suse.de>
7763 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7765 (general_scalar_chain::make_vector_copies): Use it.
7767 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7769 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7771 2019-08-15 Martin Liska <mliska@suse.cz>
7773 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7774 operators with no arguments.
7775 (eliminate_unnecessary_stmts): Likewise here.
7777 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7779 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7780 <case COMPARE>: Revert 2019-08-14 change.
7781 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7782 for (TARGET_64BIT || mode != DImode).
7784 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7786 * tree-vrp.c (value_range_base::set): Merge in code from
7787 value_range_base::set_and_canonicalize.
7788 Enforce canonicalization at set time.
7789 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7790 (value_range_base::set_undefined): Inline call to set().
7791 (value_range_base::set_varying): Same.
7792 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7793 (vrp_val_max): New argument handle_pointers.
7794 (vrp_val_min): Same.
7795 (ranges_from_anti_range): Same.
7796 (extract_range_into_wide_ints): Use tree argument instead of sign
7798 (extract_range_from_multiplicative_op): Take in tree type instead
7799 of precision and sign. Adapt function for canonicalized ranges.
7800 (extract_range_from_binary_expr): Pass type to
7801 extract_range_from_multiplicative_op.
7802 Adapt for canonicalized ranges.
7803 (extract_range_from_unary_expr): Same.
7804 (value_range_base::intersect_helper): Adjust for canonicalized
7806 (value_range_base::union_helper): Same.
7807 (value_range_base::normalize_symbolics): New.
7808 * tree-vrp.h (class value_range_base): Remove
7809 set_and_canonicalize.
7810 New prototype for normalize_symbolics.
7811 (class value_range): Remove set_and_canonicalize.
7812 (vrp_val_min): Adjust prototype.
7813 (vrp_val_max): Same.
7815 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7816 instead of set_and_canonicalize.
7818 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7821 * tree-vect-stmts.c (vectorizable_call): Check that the function
7822 is a BUILT_IN_MD function before passing it to
7823 targetm.vectorize.builtin_md_vectorized_function.
7825 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7827 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7828 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7829 (aarch64_select_early_remat_modes): Use it.
7831 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7833 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7834 16 for SVE predicates even if they are fixed-length.
7836 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7838 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7839 operand order match the MOV /Z alias.
7841 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7843 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7844 the vector pattern as an aarch64_svpattern argument. Update the
7845 overloaded caller accordingly.
7846 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7847 (aarch64_output_sve_vector_inc_dec): Likewise.
7849 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7851 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7852 multiplication case, try to compute VG * (lowest set bit) directly
7853 rather than always basing the multiplication on VG. Use
7854 expand_mult for the multiplication if we can.
7856 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7858 * config/aarch64/aarch64-protos.h
7859 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7860 (aarch64_sve_inc_dec_immediate_p): Rename to...
7861 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7862 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7863 (aarch64_output_sve_scalar_inc_dec): Declare.
7864 (aarch64_output_sve_inc_dec_immediate): Rename to...
7865 (aarch64_output_sve_vector_inc_dec): ...this.
7866 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7867 (aarch64_output_sve_scalar_inc_dec): New functions.
7868 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7869 arguments. Only handle true ADDVL and ADDPL instructions;
7870 don't emit an INC or DEC.
7871 (aarch64_sve_inc_dec_immediate_p): Rename to...
7872 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7873 (aarch64_output_sve_inc_dec_immediate): Rename to...
7874 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7875 aarch64_sve_vector_inc_dec_immediate_p.
7876 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7877 (aarch64_sve_plus_immediate): New predicates.
7878 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7879 rather than aarch64_sve_addvl_addpl_immediate.
7880 (aarch64_sve_inc_dec_immediate): Rename to...
7881 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7882 aarch64_sve_vector_inc_dec_immediate_p.
7883 (aarch64_sve_add_operand): Update accordingly.
7884 * config/aarch64/constraints.md (Uai): New constraint.
7885 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7886 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7887 operand into a register if it satisfies aarch64_sve_plus_immediate.
7888 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7889 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7890 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7891 aarch64_output_sve_vector_inc_dec instead of
7892 aarch64_output_sve_inc_dec_immediate.
7894 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7896 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7897 (UNSPEC_REVW): New constants.
7898 (elem_bits): New mode attribute.
7899 (SVE_INT_UNARY): New int iterator.
7900 (optab): Handle UNSPEC_REV[BHW].
7901 (sve_int_op): New int attribute.
7902 (min_elem_bits): Handle VNx16QI and the predicate modes.
7903 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7904 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7905 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7906 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7907 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7908 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7909 unspecs based on the total width of the reversed data.
7910 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7911 reinterpret followed by a subreg on big-endian targets.
7913 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7914 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7916 * config/aarch64/aarch64-sve.md
7917 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7918 alternatives in which one of the inputs is in the same register
7921 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7923 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7924 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7926 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7928 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7929 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7931 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7932 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7934 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7935 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7936 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7938 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7939 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7941 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7942 Add an alternative that uses reversed shifts.
7944 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7946 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7949 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7951 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7952 a commutativity marker.
7954 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7955 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7957 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7958 (aarch64_prepare_sve_cond_int_fma): Declare.
7959 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7960 (aarch64_prepare_sve_int_fma): New functions.
7961 (aarch64_prepare_sve_cond_int_fma): Likewise.
7962 * config/aarch64/aarch64-sve.md
7963 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7964 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7965 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7966 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7967 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7968 (*madd<mode>): Rename to...
7969 (*fma<mode>4): ...this.
7970 (*msub<mode>): Rename to...
7971 (*fnma<mode>4): ...this.
7973 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7974 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7976 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7977 Print 2.0 naturally.
7978 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7979 * config/aarch64/predicates.md
7980 (aarch64_sve_float_negated_arith_immediate): New predicate,
7981 renamed from aarch64_sve_float_arith_with_sub_immediate.
7982 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7983 positive and negative constants.
7984 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7985 or an aarch64_sve_float_arith_with_sub_immediate.
7986 * config/aarch64/constraints.md (vsN): Use
7987 aarch64_sve_float_negated_arith_immediate.
7988 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7990 (sve_pred_fp_rhs2_immediate): New int attribute.
7991 * config/aarch64/aarch64-sve.md
7992 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7993 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7994 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7995 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7996 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7997 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7999 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8000 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8002 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
8003 (*aarch64_cond_abd<SVE_F:mode>_3)
8004 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
8006 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8007 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8009 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
8010 (*aarch64_cond_<su>abd<mode>_any): New patterns.
8012 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8013 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8015 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
8016 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
8017 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
8018 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
8020 * optabs.h (create_convert_operand_from): Expand comment.
8021 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
8022 when mapping scalar rtxes to vector operands.
8023 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
8024 ashiftrt and lshiftrt.
8025 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
8026 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
8027 (*cond_<optab><mode>_any_const): New patterns.
8029 2019-08-15 Martin Liska <mliska@suse.cz>
8032 * cgraph.c (cgraph_node::remove): When setting
8033 n->origin = NULL for all nested functions, reset
8036 2019-08-15 Martin Liska <mliska@suse.cz>
8038 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
8041 2019-08-15 Martin Liska <mliska@suse.cz>
8044 * passes.c (order): Remove.
8045 (uid_hash_t): Likewise).
8046 (remove_cgraph_node_from_order): Remove from set
8047 of pointers (cgraph_node *).
8048 (insert_cgraph_node_to_order): New.
8049 (duplicate_cgraph_node_to_order): New.
8050 (do_per_function_toporder): Register all 3 cgraph hooks.
8051 Skip removed_nodes now as we know about all of them.
8053 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
8055 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
8056 <case E_V8QImode>: Use vector_set path for
8057 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8058 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
8059 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8061 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
8063 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
8065 2019-08-14 Martin Sebor <msebor@redhat.com>
8067 PR tree-optimization/91294
8068 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
8069 source length as exact.
8071 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
8073 * doc/extend.texi: Add "noinit" attribute documentation.
8074 * doc/sourcebuild.texi: Add noinit effective target documentation.
8075 * varasm.c (default_section_type_flags): Add support for "noinit"
8077 (default_elf_select_section): Add support for "noinit" attribute.
8078 * config/msp430/msp430.c (msp430_attribute_table): Remove
8081 2019-08-14 Richard Biener <rguenther@suse.de>
8082 Uroš Bizjak <ubizjak@gmail.com>
8085 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
8087 (scalar_chain::smode): New member.
8088 (scalar_chain::vmode): Likewise.
8089 (dimode_scalar_chain): Rename to...
8090 (general_scalar_chain): ... this.
8091 (general_scalar_chain::general_scalar_chain): Take mode arguments.
8092 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
8093 base with TImode and V1TImode.
8094 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
8095 (general_scalar_chain::vector_const_cost): Adjust for SImode
8097 (general_scalar_chain::compute_convert_gain): Likewise. Add
8098 {S,U}{MIN,MAX} support.
8099 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
8100 (general_scalar_chain::make_vector_copies): Likewise. Handle
8101 non-DImode chains appropriately.
8102 (general_scalar_chain::convert_reg): Likewise.
8103 (general_scalar_chain::convert_op): Likewise.
8104 (general_scalar_chain::convert_insn): Likewise. Add
8105 fatal_insn_not_found if the result is not recognized.
8106 (convertible_comparison_p): Pass in the scalar mode and use that.
8107 (general_scalar_to_vector_candidate_p): Likewise. Rename from
8108 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
8109 (scalar_to_vector_candidate_p): Remove by inlining into single
8111 (general_remove_non_convertible_regs): Rename from
8112 dimode_remove_non_convertible_regs.
8113 (remove_non_convertible_regs): Remove by inlining into single caller.
8114 (convert_scalars_to_vector): Handle SImode and DImode chains
8115 in addition to TImode chains.
8116 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
8117 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
8118 (*<maxmin>di3_doubleword): Likewise.
8120 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8121 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8123 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
8124 (*cond_bic<mode>_any): New patterns.
8126 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8128 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
8129 take the equivalent mask, as well as a bit count.
8130 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
8131 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
8132 (aarch64_sve_pred_and_operand): New predicates.
8133 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
8135 * config/aarch64/aarch64-sve.md
8136 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
8137 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
8139 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8141 * config/aarch64/aarch64-sve.md
8142 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8143 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
8146 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8147 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8149 * config/aarch64/aarch64-sve.md
8150 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
8151 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
8153 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8154 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8156 * config/aarch64/aarch64-sve.md
8157 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
8158 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
8160 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8162 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
8163 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
8166 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8167 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8169 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
8171 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8172 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8174 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
8175 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
8176 (aarch64_print_operand): Add support for %I.
8177 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
8178 Bitcast floating-point constants to the corresponding integer constant.
8179 (aarch64_float_const_representable_p): Handle vectors as well
8181 (aarch64_expand_sve_vcond): Make sure that the operands are valid
8182 for the new vcond_mask_<mode><vpred> expander.
8183 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
8184 test aarch64_float_const_representable_p.
8185 (aarch64_sve_reg_or_dup_imm): New predicate.
8186 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
8187 gen_vcond_mask_<mode><vpred> instead of
8188 gen_aarch64_sve_dup<mode>_const.
8189 (vcond_mask_<mode><vpred>): Turn into a define_expand that
8190 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
8191 for operands 1 and 2 respectively. Force operand 2 into a
8192 register if operand 1 is a register. Fold old define_insn...
8193 (aarch64_sve_dup<mode>_const): ...and this define_insn...
8194 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
8195 floating-point constants that can be moved as integers. Add
8196 alternatives for MOV /M and FMOV /M.
8197 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
8198 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
8199 1 and 2 respectively.
8200 * config/aarch64/constraints.md (Ufc): Handle vectors as well
8202 (vss): New constraint.
8204 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8206 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
8207 (aarch64_sve_float_maxmin_operand): New predicates.
8208 * config/aarch64/constraints.md (vsB): New constraint.
8210 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
8211 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
8213 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
8214 Use aarch64_sve_float_maxmin_operand for operand 2.
8215 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
8216 Add alternatives for the constant forms.
8218 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8220 * config/aarch64/constraints.md (vsb): New constraint.
8221 (vsm): Generalize description.
8222 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
8224 (sve_imm_con): Handle smax, smin, umax and umin.
8225 (sve_imm_prefix): New code attribute.
8226 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
8227 (aarch64_sve_vsb_operand): New predicates.
8228 (aarch64_sve_mul_immediate): Rename to...
8229 (aarch64_sve_vsm_immediate): ...this.
8230 (aarch64_sve_mul_operand): Rename to...
8231 (aarch64_sve_vsm_operand): ...this.
8232 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
8233 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
8234 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
8235 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
8236 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
8237 add movprfx support for the immediate alternatives.
8238 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
8240 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
8243 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8245 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
8246 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
8247 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
8249 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8251 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
8252 (optab, sve_int_op): Handle them.
8253 * config/aarch64/aarch64-sve.md: Expand comment.
8255 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8257 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
8258 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
8259 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
8261 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8263 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
8264 (aarch64_expand_sve_const_pred_trn): New functions.
8265 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
8266 use the above functions when the parameter is true.
8267 (aarch64_expand_sve_const_pred): Update call accordingly.
8268 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
8270 (@aarch64_sve_<perm_insn><mode>): ...this.
8272 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8274 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
8276 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
8277 (aarch64_sve_emit_int_cmp): New functions.
8278 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
8279 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
8280 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
8281 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
8282 (UNSPEC_PRED_Z): New unspec.
8283 (set_clobber_cc_nzc): Delete.
8284 * config/aarch64/aarch64-sve.md: Add a block comment about
8286 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
8287 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
8288 the old pattern with that name. Use UNSPEC_PRED_Z instead of
8290 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
8291 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
8292 check for compatible predicates.
8293 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
8294 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
8295 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
8298 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8300 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
8301 * config/aarch64/aarch64-sve.md: Add a section describing it.
8302 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
8303 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
8304 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
8305 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
8306 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
8307 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
8308 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
8309 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
8310 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
8311 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
8312 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
8313 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
8314 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
8315 (aarch64_evpc_rev_local): Update accordingly.
8317 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8319 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
8321 (SVE_BHSI, SVE_SDI): Tweak comment.
8322 (SVE_HSDI): Likewise. Fix definition.
8323 (SVE_SDF): New mode iterator.
8324 (elem_bits): New mode attribute.
8325 (SVE_COND_FCVT): New int iterator.
8326 * config/aarch64/aarch64-sve.md
8327 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
8328 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
8329 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
8330 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8331 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8332 ...these new patterns.
8333 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
8334 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
8335 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
8337 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
8338 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
8339 ...these new patterns.
8340 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
8341 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
8342 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
8343 ...this new pattern.
8344 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
8345 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
8346 ...this new pattern.
8347 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
8349 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8351 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
8352 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
8353 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
8355 (optab, su): Handle them.
8356 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
8357 * config/aarch64/aarch64-sve.md
8358 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8359 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8360 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8361 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8362 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8363 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8364 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8365 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8366 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8368 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8369 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8370 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8371 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8372 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8373 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8374 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8375 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8376 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8377 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8378 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8379 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8380 of UNSPEC_FLOAT_CONVERT.
8381 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8382 aarch64_sve_extend<mode><Vwide>2.
8384 2019-08-14 Richard Biener <rguenther@suse.de>
8387 * config/i386/i386-features.c
8388 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8389 individual instruction gain. Fix reg-reg copy GRP cost. Use
8390 ix86_cost->sse_op for vector instruction costs.
8392 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8394 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8395 (cmp_op): Handle it.
8396 (SVE_COND_FP_CMP): Rename to...
8397 (SVE_COND_FP_CMP_I0): ...this.
8398 (SVE_FP_CMP): Remove.
8399 * config/aarch64/aarch64-sve.md
8400 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8401 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8402 using unspecs to represent the comparison.
8403 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8404 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8406 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8407 (aarch64_unspec_cond_code): Move after integer code. Handle
8409 (aarch64_emit_sve_predicated_cond): Replace with...
8410 (aarch64_emit_sve_fp_cond): ...this new function.
8411 (aarch64_emit_sve_or_conds): Replace with...
8412 (aarch64_emit_sve_or_fp_conds): ...this new function.
8413 (aarch64_emit_sve_inverted_cond): Replace with...
8414 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8415 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8417 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8419 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8420 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8421 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8422 SVE_HSD instead of SVE_SD.
8424 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8425 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8427 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8429 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8431 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8432 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8433 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8434 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8435 (*div<SVE_F:mode>3): Generalize to...
8436 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8438 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8439 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8441 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8443 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8445 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8447 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8449 * config/aarch64/aarch64-sve.md: Add a block comment about the
8450 handling of predicated FP operations.
8451 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8452 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8453 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8454 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8455 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8457 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8458 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8460 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8461 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8462 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8463 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8464 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8465 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8466 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8467 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8468 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8469 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8470 strictness operands. Use aarch64_sve_pred_dominates_p to check
8471 whether the predicate on the conditional operation is suitable
8472 for merging. Split patterns into the canonical equal-predicate form.
8473 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8474 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8476 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8477 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8479 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8480 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8481 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8483 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8484 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8487 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8488 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8490 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8491 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8492 actually has, rather than relying on REG_EQUAL notes.
8493 Make the insn operand order match the SVE operand order.
8494 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8495 the SVE operand order.
8497 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8499 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8500 (aarch64_emit_set_immediate): Likewise.
8501 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8502 (aarch64_pfalse_reg): Likewise.
8503 (aarch64_convert_sve_data_to_pred): New function.
8504 (aarch64_sve_move_pred_via_while): Take an optional target register
8505 and the required register mode.
8506 (aarch64_expand_sve_const_pred_1): New function.
8507 (aarch64_expand_sve_const_pred): Likewise.
8508 (aarch64_expand_mov_immediate): Build an all-true predicate
8509 if the significant bits of the immediate are all true. Use
8510 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8511 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8512 before register allocation.
8513 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8514 a VNx16BI PTRUE when splitting the memory alternative.
8515 (vec_duplicate<mode>): Update accordingly.
8516 (*pred_cmp<cmp_op><mode>): Rename to...
8517 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8519 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8521 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8522 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8523 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8524 (UNSPEC_PTEST): New unspec.
8525 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8526 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8527 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8528 * config/aarch64/aarch64-sve.md: Add a new section describing the
8529 handling of UNSPEC_PTEST.
8530 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8531 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8532 (ptest_ptrue<mode>): Replace with...
8533 (aarch64_ptest<mode>): ...this new pattern.
8534 (cbranch<mode>4): Update after above changes.
8535 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8537 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8538 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8539 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8541 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8544 * builtins.c (builtin_with_linkage_p): New function.
8545 * builtins.h (builtin_with_linkage_p): New function.
8546 * symtab.c (write_symbol): Remove redundant assert.
8547 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8548 Remove FIXME and use builtin_with_linkage_p.
8550 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8553 * tree-core.h (function_decl::function_code): Change type to
8555 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8556 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8557 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8558 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8560 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8561 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8562 (fndecl_built_in_p): Change the type of the "name" argument to
8564 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8565 after check for DECL_BUILT_IN_CLASS.
8566 * cgraphclones.c (build_function_decl_skip_args): Use
8567 set_decl_built_in_function.
8568 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8569 * ipa-split.c (split_function): Likewise.
8570 * langhooks.c (add_builtin_function_common): Likewise.
8571 * omp-simd-clone.c (simd_clone_create): Likewise.
8572 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8573 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8574 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8576 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8577 instead of DECL_FUNCTION_CODE.
8578 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8579 instead of DECL_FUNCTION_CODE.
8580 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8581 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8582 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8583 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8584 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8585 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8586 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8587 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8588 (alpha_gimple_fold_builtin): Likewise.
8589 * config/arc/arc.c (arc_expand_builtin): Likewise.
8590 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8591 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8592 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8593 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8594 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8595 * config/frv/frv.c (frv_expand_builtin): Likewise.
8596 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8597 (gcn_expand_builtin): Likewise.
8598 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8599 (fold_builtin_cpu): Likewise.
8600 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8601 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8602 (ix86_gimple_fold_builtin): Likewise.
8603 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8604 (ia64_expand_builtin): Likewise.
8605 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8606 * config/mips/mips.c (mips_expand_builtin): Likewise.
8607 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8608 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8609 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8610 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8611 * config/pa/pa.c (pa_expand_builtin): Likewise.
8612 * config/pru/pru.c (pru_expand_builtin): Likewise.
8613 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8614 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8616 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8617 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8618 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8619 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8620 (rs6000_builtin_reciprocal): Likewise.
8621 * config/rx/rx.c (rx_expand_builtin): Likewise.
8622 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8623 * config/s390/s390.c (s390_expand_builtin): Likewise.
8624 * config/sh/sh.c (sh_expand_builtin): Likewise.
8625 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8626 (sparc_fold_builtin): Likewise.
8627 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8628 * config/spu/spu.c (spu_expand_builtin): Likewise.
8629 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8630 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8631 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8632 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8633 (xtensa_expand_builtin): Likewise.
8635 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8638 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8639 before the DECL_FUNCTION_CODE.
8640 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8641 to check for a BUILT_IN_ALLOCA call.
8642 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8643 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8644 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8645 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8646 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8647 for BUILT_IN_NORMAL functions.
8648 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8649 test for BUILT_IN_TM_ABORT.
8650 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8651 to check for a BUILT_IN_STACK_RESTORE call.
8652 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8653 * tree-ssa-threadedge.c
8654 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8655 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8656 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8657 test for a BUILT_IN_NORMAL call instead of a negative test for
8658 an internal function call.
8660 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8662 * tree.h (build_vector_a_then_b): Declare.
8663 * tree.c (build_vector_a_then_b): New function.
8664 * fold-const-call.c (fold_while_ult): Likewise.
8665 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8666 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8667 (aarch64_svpattern): New enum.
8668 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8669 constants through aarch64_expand_mov_immediate.
8670 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8671 than general_operand as the predicate for operand 1.
8672 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8673 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8675 (simd_immediate_info::simd_immediate_info): New overload that
8676 takes a scalar_int_mode and an svpattern.
8677 (simd_immediate_info::u): Add a "pattern" field.
8678 (svpattern_token): New function.
8679 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8680 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8681 (aarch64_sve_move_pred_via_while): New functions.
8682 (aarch64_expand_mov_immediate): Try using
8683 aarch64_sve_move_pred_via_while for predicates that contain N ones
8684 followed by M zeros but that do not correspond to a VLnnn pattern.
8685 (aarch64_sve_pred_valid_immediate): New function.
8686 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8687 with PTRUE and PFALSE.
8688 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8691 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8693 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8695 (darwin_override_options): Likewise.
8696 * config/darwin.h: Likewise.
8697 * config/darwin.opt: Likewise.
8698 * config/i386/i386.c (output_pic_addr_const): Likewise.
8699 * config/rs6000/darwin.h: Likewise.
8700 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8701 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8702 ... this TARGET_MACHO_SYMBOL_STUBS.
8703 (FUNCTION_PROFILER):Likewise.
8704 * config/i386/i386.h: Likewise.
8706 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8708 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8709 <case E_V2SImode>: Use vec_extr path for
8710 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8711 <case E_V8QImode>: Ditto.
8712 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8713 Use SWI48 mode iterator. Use %k to output operand 0.
8714 (*mmx_pextrw): New insn pattern.
8715 (*mmx_pextrb): Ditto.
8716 (*mmx_pextrb_zext): Ditto.
8718 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8720 * target.def (libc_has_function, libc_has_fast_function): Improve
8721 documentation strings.
8722 * doc/tm.texi: Regenerate.
8724 2019-08-13 Caroline Tice <cmtice@google.com>
8727 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8728 vtv_end.o or vtv_end_preinit.o files if !static.
8730 2019-08-13 Olivier Hainque <hainque@adacore.com>
8732 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8734 2019-08-13 Olivier Hainque <hainque@adacore.com>
8736 * rtlanal.c (tablejump_casesi_pattern): New function, to
8737 determine if a tablejump insn is a casesi dispatcher. Extracted
8738 from patch_jump_insn.
8739 * rtl.h (tablejump_casesi_pattern): Declare.
8740 * cfgrtl.c (patch_jump_insn): Use it.
8741 * dwarf2cfi.c (create_trace_edges): Use it.
8743 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8746 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8747 operand is larger than a long int.
8749 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8751 * machmode.h (opt_mode::else_mode): New function.
8752 (opt_mode::else_blk): Use it.
8753 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8754 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8755 (aarch64_gen_stepped_int_parallel): Likewise.
8756 (aarch64_stepped_int_parallel_p): Likewise.
8757 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8759 * config/aarch64/aarch64.c
8760 (aarch64_expand_sve_widened_duplicate): Delete.
8761 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8762 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8763 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8764 argument. Use early returns in the !CONST_INT_P handling.
8765 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8766 than handling some inline.
8767 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8769 (aarch64_simd_container_mode): ...here.
8770 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8771 (aarch64_sve_ld1rq_operand_p): New functions.
8772 * config/aarch64/predicates.md (descending_int_parallel)
8773 (aarch64_sve_ld1rq_operand): New predicates.
8774 * config/aarch64/constraints.md (UtQ): New constraint.
8775 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8776 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8777 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8778 (@aarch64_sve_reinterpret<mode>): New expander.
8779 (*aarch64_sve_reinterpret<mode>): New pattern.
8780 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8781 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8782 (*sve_ld1rq<Vesize>): Replace with...
8783 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8785 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8787 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8790 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8792 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8793 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8794 (msp430_check_path_for_devices): New.
8795 (parse_devices_csv_1): New.
8796 (parse_devices_csv): New.
8797 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8798 MCU data in devices.csv before using the hard-coded data.
8799 Warn if devices.csv isn't found and the MCU wasn't found in the
8800 hard-coded data either.
8801 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8802 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8803 Search for devices.csv on -I and -L paths.
8804 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8805 msp430_set_driver_var.
8806 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8808 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8809 searched for devices.csv.
8810 (mwarn-devices-csv): Document option.
8812 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8814 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8815 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8816 Use a single Dn alternative instead of separate Dz and Dm
8817 alternatives. Use aarch64_output_sve_move_immediate.
8818 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8820 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8822 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8823 (aarch64_output_ptrue): Delete.
8825 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8827 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8829 (simd_immediate_info::value, simd_immediate_info::step)
8830 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8832 (simd_immediate_info::u): ...this new union.
8833 (simd_immediate_info::simd_immediate_info): Update accordingly.
8834 (aarch64_output_simd_mov_immediate): Likewise.
8835 (aarch64_output_sve_mov_immediate): Likewise.
8837 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8839 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8841 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8842 (msp430_select_cpu): New spec function.
8843 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8845 * config/msp430/msp430-devices.c: New file.
8846 * config/msp430/msp430-devices.h: New file.
8847 * config/msp430/msp430.c: Remove msp430_mcu_data.
8848 (msp430_option_override): Use msp430_extract_mcu_data to extract
8850 (msp430_use_f5_series_hwmult): Likewise.
8851 (use_32bit_hwmult): Likewise.
8852 (msp430_no_hwmult): Likewise.
8853 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8855 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8857 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8858 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8859 Remove hard-coded MCU multilib data.
8861 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8863 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8864 based on the mode instead of testing properties of it.
8866 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8868 * doc/md.texi: Document the x and y constraints for AArch64.
8869 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8870 (FP_LO8_REGS): New reg_class.
8871 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8872 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8873 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8874 * config/aarch64/predicates.md (aarch64_simd_register): Use
8875 FP_REGNUM_P instead of checking the classes manually.
8876 * config/aarch64/constraints.md (y): New constraint.
8878 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8880 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8881 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8882 * config/aarch64/aarch64-simd.md
8883 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8884 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8885 from the asm template.
8886 * config/aarch64/aarch64-sve.md
8887 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8888 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8889 from the asm template.
8890 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8891 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8892 from the asm template.
8893 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8895 2019-08-13 Martin Liska <mliska@suse.cz>
8897 * value-prof.c (gimple_ic_transform): Add new line.
8898 Print details with MSG_NOTE.
8900 2019-08-13 Martin Liska <mliska@suse.cz>
8902 * doc/invoke.texi: Document automatic detection of jobserver.
8903 * lto-wrapper.c (run_gcc): Detect jobserver always.
8905 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8907 * config/i386/i386-expand.c (ix86_expand_vector_set)
8908 <case E_V2SImode>: Use vec_merge path for
8909 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8910 <case E_V8QImode>: Ditto.
8911 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8912 (*mmx_pinsrb): Ditto.
8914 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8918 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8919 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8920 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8921 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8922 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8924 2019-08-12 Richard Biener <rguenther@suse.de>
8927 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8930 2019-08-12 Richard Biener <rguenther@suse.de>
8933 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8934 lang_mask option, always use CL_DRIVER.
8935 (get_options_from_collect_gcc_options): Adjust.
8936 (find_and_merge_options): Likewise.
8937 (run_gcc): Likewise.
8939 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8941 * ipa-predicate.c (add_condition): Restore inverted test.
8943 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8945 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8946 (enum omp_clause_device_type_kind): New enum.
8947 (struct tree_omp_clause): Add subcode.device_type_kind.
8948 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8949 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8950 for device_type clause.
8951 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8952 * tree-pretty-print.c (dump_omp_clause): Likewise.
8955 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8958 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8960 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8961 handling spilled pseudos.
8963 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8966 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8967 to preserve the contents of the original insns.
8969 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8971 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8972 (addsi3_compare_op2): Likewise.
8974 2019-08-09 Martin Liska <mliska@suse.cz>
8976 * alias.c (alias_ptr_types_compatible_p): Strengten
8977 type comparison in LTO mode.
8979 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8982 * tree-tailcall.c (find_tail_calls): Reject calls that might
8983 read from an escaped RESULT_DECL.
8985 2019-08-09 Martin Liska <mliska@suse.cz>
8987 * doc/invoke.texi: Document the option value.
8988 * lto-wrapper.c (run_gcc): Set auto_parallel
8989 only with -flto=auto.
8991 2019-08-09 Martin Liska <mliska@suse.cz>
8993 * opts.c (common_handle_option): Error for an invalid argument
8996 2019-08-09 Martin Liska <mliska@suse.cz>
8998 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8999 use dump_printf to report optimization.
9000 (sem_variable::merge): Likwise.
9001 (sem_item_optimizer::merge_classes): Use dump_printf to report
9004 2019-08-09 Martin Liska <mliska@suse.cz>
9006 * value-prof.c (gimple_divmod_fixed_value_transform):
9007 Use dump_printf_loc.
9008 (gimple_mod_pow2_value_transform): Likewise.
9009 (gimple_mod_subtract_transform): Likewise.
9010 (init_node_map): Likewise.
9011 (gimple_ic_transform): Likewise.
9012 (gimple_stringops_transform): Likewise.
9014 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9016 * doc/extend.texi: Add const qualifier to ld intrinsics.
9018 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9020 * config/rs6000/dfp.md (D64_D128): Rename to ...
9021 (DDTD): ... this, throughout.
9022 (dfp_suffix): Rename to ...
9023 (q): ... this, throughout.
9025 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9027 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
9028 (dfp_suffix): Ditto.
9029 (adddd3, addtd3): Merge to ...
9030 (add<mode>3 for D64_D128): ... this.
9031 (subdd3, subtd3): Merge to ...
9032 (sub<mode>3 for D64_D128): ... this.
9033 (muldd3, multd3): Merge to ...
9034 (mul<mode>3 for D64_D128): ... this.
9035 (divdd3, divtd3): Merge to ...
9036 (div<mode>3 for D64_D128): ... this.
9037 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
9038 (*cmp<mode>_internal1 for D64_D128): ... this.
9039 (ftruncdd2, ftrunctd2): Merge to ...
9040 (ftrunc<mode>2 for D64_D128): ... this.
9041 (fixdddi2, fixtddi2): Merge to ...
9042 (fix<mode>di2 for D64_D128): ... this.
9044 2019-08-08 Jim Wilson <jimw@sifive.com>
9047 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
9048 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
9049 Pass into recursive call.
9050 (riscv_flatten_aggregate_argument): New arg. Pass to
9051 riscv_flatten_aggregate_field.
9052 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
9053 riscv_flatten_aggregate_argument twice, with false and true as last
9054 arg. Process result twice. Compare results and warn if different.
9055 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
9057 2019-08-08 Martin Liska <mliska@suse.cz>
9060 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
9061 * lto-wrapper.c (jobserver_active_p): Likewise.
9063 2019-08-08 Martin Liska <mliska@suse.cz>
9065 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
9066 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
9067 (create_version_clone_with_body): Likewise.
9069 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9071 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
9072 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
9073 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
9074 GOVD_EXPLICIT flags.
9075 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
9076 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
9077 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
9078 call install_var_field with mask 11 instead of 3.
9079 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
9080 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
9082 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9084 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
9085 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
9087 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9089 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
9090 MOVPRFX alternatives. Make the GPR alternatives more expensive
9093 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9095 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
9096 Disparage the GPR alternative relative to the FPR one.
9097 Fix handling of 8-bit and 16-bit FPR values.
9099 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9101 * config/aarch64/iterators.md (BITWISEV): Delete.
9102 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
9103 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
9104 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9105 UNSPEC_FMINNMV, UNSPEC_FMINV.
9106 (bit_reduc_op): Delete.
9107 (sve_int_op): New int attribute.
9108 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9109 UNSPEC_FMINNMV, UNSPEC_FMINV.
9110 * config/aarch64/aarch64-sve.md
9111 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9112 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9113 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
9114 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
9115 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
9116 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
9118 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
9119 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
9120 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
9121 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
9122 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
9125 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9127 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
9128 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
9129 (fms<mode>4, *fms<mode>4): Replace with...
9130 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
9131 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
9132 Use unspecs instead of rtx codes.
9133 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
9134 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
9136 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9138 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
9140 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
9141 * config/aarch64/aarch64-sve.md
9142 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
9143 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
9144 use a single unspec for the rhs.
9145 (*<su><maxmin><mode>3): Delete.
9146 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
9148 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9150 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
9151 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
9152 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
9153 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
9154 (optab, sve_fp_op): Handle them.
9155 (SVE_FP_UNARY): Delete.
9156 (optab): Remove sqrt entry.
9157 (sve_fp_op): Remove neg, abs and sqrt entries.
9158 (SVE_COND_FP_UNARY): New int iterator.
9159 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
9160 (*<frint_pattern><mode>2): Delete.
9161 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9162 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9163 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9164 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9166 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9168 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
9170 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9172 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
9173 (UNSPEC_COND_FADD): ...this.
9174 (UNSPEC_COND_SUB): Rename to...
9175 (UNSPEC_COND_FSUB): ...this.
9176 (UNSPEC_COND_MUL): Rename to...
9177 (UNSPEC_COND_FMUL): ...this.
9178 (UNSPEC_COND_DIV): Rename to...
9179 (UNSPEC_COND_FDIV): ...this.
9180 (UNSPEC_COND_MAX): Rename to...
9181 (UNSPEC_COND_FMAXNM): ...this.
9182 (UNSPEC_COND_MIN): Rename to...
9183 (UNSPEC_COND_FMINNM): ...this.
9184 (UNSPEC_COND_LT): Rename to...
9185 (UNSPEC_COND_FCMLT): ...this.
9186 (UNSPEC_COND_LE): Rename to...
9187 (UNSPEC_COND_FCMLE): ...this.
9188 (UNSPEC_COND_EQ): Rename to...
9189 (UNSPEC_COND_FCMEQ): ...this.
9190 (UNSPEC_COND_NE): Rename to...
9191 (UNSPEC_COND_FCMNE): ...this.
9192 (UNSPEC_COND_GE): Rename to...
9193 (UNSPEC_COND_FCMGE): ...this.
9194 (UNSPEC_COND_GT): Rename to...
9195 (UNSPEC_COND_FCMGT): ...this.
9196 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
9197 (sve_fp_op_rev): Update accordingly.
9198 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
9200 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9202 * config/aarch64/aarch64-sve.md: Reorganize contents and add
9204 * config/aarch64/check-sve-md.awk: New file.
9205 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
9206 (insn-conditions.md): Depend on it.
9208 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
9211 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
9212 (*negsi2_cmpz_zext): Ditto.
9214 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9216 * config/aarch64/iterators.md (commutative): Remove.
9218 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
9221 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
9222 processing COLLECT_GCC_OPTIONS.
9223 (run_gcc): Likewise.
9225 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
9227 PR tree-optimization/91109
9228 * lra-remat.c (update_scratch_ops): Remove assignment of the
9231 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9233 * data-streamer.h (streamer_write_poly_uint64): Declare.
9234 (streamer_read_poly_uint64): Likewise.
9235 * data-streamer-in.c (streamer_read_poly_uint64): New function.
9236 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
9237 * ipa-predicate.h (condition::size): Turn into a poly_int64.
9238 (add_condition): Take a poly_int64 size.
9239 * ipa-predicate.c (add_condition): Likewise.
9240 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
9241 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
9242 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
9243 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
9244 condition::size as a poly_int64.
9245 (unmodified_parm_1): Take a poly_int64 size pointer.
9246 (unmodified_parm): Likewise.
9247 (unmodified_parm_or_parm_agg_item): Likewise.
9248 (set_cond_stmt_execution_predicate): Update accordingly.
9249 (set_switch_stmt_execution_predicate): Likewise.
9250 (will_be_nonconstant_expr_predicate): Likewise.
9251 (will_be_nonconstant_predicate): Likewise.
9252 (inline_read_section): Stream condition::size as a poly_int.
9253 (ipa_fn_summary_write): Likewise.
9255 2019-08-07 Martin Liska <mliska@suse.cz>
9257 * fold-const.c (twoval_comparison_p): Replace int
9258 with bool as a return type.
9259 (simple_operand_p): Likewise.
9260 (operand_equal_p): Replace int with bool as a return type.
9261 * fold-const.h (operand_equal_p): Likewise.
9263 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9265 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
9266 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
9267 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9268 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
9269 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
9270 * tree-pretty-print.c (dump_omp_clause): Likewise.
9271 * tree-nested.c (convert_nonlocal_omp_clauses,
9272 convert_local_omp_clauses): Likewise.
9273 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9275 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
9276 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
9277 clause with array or reference to array types, no matter what type
9278 except for reference it has.
9280 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
9282 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
9284 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
9286 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
9287 (arch_canonicalize): Support rv32g and rv64g and fix error
9290 2019-08-06 Martin Liska <mliska@suse.cz>
9292 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
9293 and DECL_IS_OPERATOR_DELETE_P.
9295 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9297 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
9298 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
9299 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
9300 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
9301 (gimplify_omp_for): Don't do C++ random access iterator clause
9302 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
9303 don't predetermine the artificial iterator in case of C++ random
9304 access iterators as lastprivate, but private. For OMP_LOOP, force
9305 bind expr around simd body and force for_pre_body before the
9306 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
9307 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
9308 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
9309 diff var of C++ random access iterators. Handle
9310 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
9311 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
9312 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
9313 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
9314 * omp-low.c (lower_rec_input_clauses): For
9315 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
9316 variables instead of default constructing them.
9317 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
9318 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
9319 is_taskloop_ctx check from the assert to the guarding condition.
9321 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
9323 * config/riscv/multilib-generator: (canonical_order): New.
9324 (arch_canonicalize): Dito.
9325 Apply arch_canonicalize for alts.
9327 2019-08-05 Martin Sebor <msebor@redhat.com>
9329 * doc/extend.texi (Common Variable Attributes): Document alias
9332 2019-08-05 Marek Polacek <polacek@redhat.com>
9334 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
9335 * doc/invoke.texi: Document -Wcomma-subscript.
9337 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9339 * tree-core.h (tree_function_decl): Make function_code an
9340 independent field. Group the remaining bitfields into bytes
9341 and move decl_type so that it contines to be at a byte boundary.
9342 Leave 12 bits for future expansion.
9344 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9346 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
9347 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
9348 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
9351 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9353 * gimple.h (gimple_move_vops): Declare.
9354 * gimple.c (gimple_move_vops): New function
9355 * gimple-fold.c (replace_call_with_call_and_fold)
9356 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
9357 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9358 (gimple_fold_call): Use it.
9359 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9360 * tree-call-cdce.c (use_internal_fn): Likewise.
9361 * tree-if-conv.c (predicate_load_or_store): Likewise.
9362 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9363 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9364 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9365 (update_call_from_tree): Likewise.
9366 * tree-vect-stmts.c (vectorizable_load): Likewise.
9367 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9369 2019-08-05 Martin Liska <mliska@suse.cz>
9372 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9374 (eliminate_unnecessary_stmts): Likewise.
9376 2019-08-05 Richard Biener <rguenther@suse.de>
9379 * fold-const.c (get_array_ctor_element_at_index): Create
9380 offset_ints according to the sign of the index type and treat
9381 that as signed if it is obviously so.
9383 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9386 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9387 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9388 _mm256_storeu2_m128i): New function.
9390 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9392 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9393 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9395 2019-08-05 Alan Modra <amodra@gmail.com>
9398 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9399 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9401 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9403 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9404 bug that was fixed in Tcl 8.6.1.
9406 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9408 * config/rs6000/future.md: New file.
9409 * config/rs6000/rs6000.md: Include future.md.
9410 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9412 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9414 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9415 check to use targetm.slow_unaligned_access instead.
9417 * function.c (assign_param_data_one): Remove unused data members.
9419 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9421 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9422 build_distinct_type_copy.
9423 (simd_clone_adjust_argument_types): Ditto.
9424 (simd_clone_adjust): Call build_distinct_type_copy here.
9425 (expand_simd_clones): Ditto.
9427 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9430 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9432 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9434 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9435 from 'const void *'.
9436 (sort_locs_in_loop_postorder_cmp): Likewise.
9438 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9440 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9441 (hot-bb-count-ws-permille): Likewise.
9442 (hot-bb-frequency-fraction): Likewise.
9443 (unlikely-bb-count-fraction): Likewise.
9444 * params.def (hot-bb-count-fraction): Rework description.
9445 (hot-bb-count-ws-permille): Likewise.
9446 (hot-bb-frequency-fraction): Likewise.
9447 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9448 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9450 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9453 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9456 2019-08-02 Richard Biener <rguenther@suse.de>
9458 * vec.h (vec::sort): Add gcc_qsort_r support.
9459 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9460 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9461 to gcc_qsort_r style callback.
9462 (sort_locs_in_loop_postorder_cmp): Likewise.
9463 (analyze_memory_references): Use gcc_sort_r interfaces.
9464 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9466 2019-08-02 Martin Liska <mliska@suse.cz>
9469 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9470 to detect working job server.
9471 (driver::detect_jobserver): Test whether jobserver
9472 is active from GCC driver. That will prevent situation where
9473 GCC is invoked from a LD plugin and the linker already uses
9474 file descriptors suggested by make. That leads to a wrong
9476 * gcc.h (driver): Add detect_jobserver.
9477 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9478 not scanning for --jobserver-auth prefix.
9480 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9482 PR tree-optimization/91201
9483 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9484 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9487 2019-08-01 Martin Sebor <msebor@redhat.com>
9490 * tree.c (type_initializer_zero_p): Define.
9491 * tree.h (type_initializer_zero_p): New function.
9493 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9495 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9497 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9499 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9500 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9501 * predict.c (maybe_hot_count_p): Likewise.
9502 (maybe_hot_bb_p): Tweak comment.
9503 (maybe_hot_edge_p): Likewise.
9504 (probably_never_executed): Likewise. Minor tweak.
9505 (probably_never_executed_bb_p): Likewise.
9506 (unlikely_executed_edge_p): Likewise.
9507 (probably_never_executed_edge_p): Likewise.
9508 (optimize_function_for_size_p): Likewise.
9509 (optimize_function_for_speed_p): Likewise.
9510 (function_optimization_type): Likewise.
9511 (optimize_bb_for_size_p): Likewise.
9512 (optimize_bb_for_speed_p): Likewise.
9513 (bb_optimization_type): Likewise.
9514 (optimize_edge_for_size_p): Likewise.
9515 (optimize_edge_for_speed_p): Likewise.
9516 (optimize_insn_for_size_p): Likewise.
9517 (optimize_insn_for_speed_p): Likewise.
9518 (optimize_loop_for_size_p): Likewise.
9519 (optimize_loop_for_speed_p): Likewise.
9520 (optimize_loop_nest_for_speed_p): Likewise.
9521 (optimize_loop_nest_for_size_p): Likewise.
9522 (predictable_edge_p): Likewise.
9523 (handle_missing_profiles): Minor tweak.
9525 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9527 * config/rs6000/predicates.md (pcrel_external_address): Update
9530 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9533 * config/i386/mmx.md (usadv8qi): New expander.
9535 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9538 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9539 with reserved names that are in a system header.
9541 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9543 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9544 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9545 (*vec_extractv2si_0_zext): Ditto.
9546 (*vec_extractv2si_1): Add (rm,x) alternative.
9547 (*vec_extractv2si_1_zext): New insn pattern.
9548 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9551 2019-08-01 Richard Biener <rguenther@suse.de>
9553 * domwalk.c (bb_postorder): Remove static variable.
9554 (cmp_bb_postorder): Adjust.
9555 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9556 (dom_walker::walk): Adjust.
9558 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9560 * sort.cc (sort_r_ctx): New struct.
9561 (reorder23): Make templated on context type.
9563 (cmp1): Ditto. Adjust signature.
9566 [CHECKING_P] (cmp2to3): New static function. Use it...
9567 (gcc_qsort) [CHECKING_P]: ...here.
9568 (gcc_sort_r): New function.
9569 * system.h (sort_r_cmp_fn): New function typedef.
9570 (qsort_chk): Adjust signature.
9571 (gcc_sort_r): Declare.
9572 * vec.c (qsort_chk_error): Adjust.
9573 (qsort_chk): Adjust.
9575 2019-08-01 Richard Biener <rguenther@suse.de>
9577 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9578 (compute_antic): Localize it here.
9580 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9582 * common/config/riscv/riscv-common.c: Check -march string ends
9585 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9587 * ipa-devirt.c (type_warning_cmp): Make static.
9588 (decl_warning_cmp): Ditto.
9590 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9593 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9594 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9595 use of deleted rs6000_dejagnu_cpu_index variable.
9596 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9597 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9598 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9599 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9600 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9601 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9603 2019-07-31 Richard Biener <rguenther@suse.de>
9605 PR tree-optimization/91280
9606 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9607 Decompose MEM_REF manually for offset handling.
9609 2019-07-31 Richard Biener <rguenther@suse.de>
9611 PR tree-optimization/91293
9612 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9615 2019-07-31 Matt Thomas <matt@3am-software.com>
9616 Nick Hudson <nick@nthcliff.demon.co.uk>
9617 Matthew Green <mrg@eterna.com.au>
9618 Maya Rashish <coypu@sdf.org>
9620 * config.gcc (hppa*-*-netbsd*): New target.
9621 * config/pa/pa-netbsd.h: New file.
9622 * config/pa/pa32-netbsd.h: New file.
9624 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9626 PR tree-optimization/91201
9627 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9629 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9631 * config/gcn/gcn-valu.md
9632 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9633 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9634 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9635 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9636 struct ilist. Add nops for delayeduse insns.
9637 * config/gcn/gcn.md (delayeduse): New attribute.
9638 (*movbi): Remove s_waitcnt from stores.
9639 (*mov<mode>_insn): Likewise.
9640 (*movti_insn): Likewise. Add delayeduse attribute.
9641 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9642 (atomic_store<mode>): Remove or adjust s_waitcnt.
9644 2019-07-31 Richard Biener <rguenther@suse.de>
9646 * vr-values.h (vr_values::swap_vr_value): New.
9647 (vr_values::free_value_range): likewise.
9648 * vr-values.c (vr_values::swap_vr_value): Implement.
9649 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9650 Do not return a range or take a var.
9651 (evrp_range_analyzer::stack): Change back to recording a non-const
9653 * gimple-ssa-evrp-analyze.c
9654 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9656 (evrp_range_analyzer::pop_to_marker): Adjust.
9657 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9658 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9659 no longer needed value-range.
9661 2019-07-31 Martin Liska <mliska@suse.cz>
9663 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9664 have size and (or) alignment as 2nd and later arguments.
9665 Mark all of them as necessary.
9667 2019-07-31 Richard Biener <rguenther@suse.de>
9669 PR tree-optimization/91178
9670 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9673 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9675 PR tree-optimization/91201
9676 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9677 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9679 (reduc_plus_scal_<mode>): Improve formatting by introducing
9682 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9684 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9685 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9686 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9687 (aarch64_init_tme_builtins): New.
9688 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9689 (aarch64_expand_builtin_tme): New.
9690 (aarch64_expand_builtin): Handle TME builtins.
9691 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9692 __ARM_FEATURE_TME when enabled.
9693 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9694 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9696 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9697 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9699 (tstart, ttest, tcommit, tcancel): New instructions.
9700 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9701 (__tcancel, __ttest): New.
9702 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9703 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9704 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9705 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9706 * config/arm/types.md: Add new tme type attr.
9707 * doc/invoke.texi: Document "tme".
9709 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9711 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9712 warn_unused_result attribute.
9713 (cmse_check_address_range): Add warn_unused_result attribute.
9715 2019-07-31 Richard Biener <rguenther@suse.de>
9717 PR tree-optimization/91257
9718 * tree-vrp.c (union_ranges): Unify equality and less tests
9719 by using compare_values. Re-order cheap tests first.
9721 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9724 * gimplify.c (gimplify_omp_for): If for class iterator on
9725 distribute parallel for there is no data sharing clause
9726 on inner_for_stmt, look for private clause on combined
9727 parallel too and if found, move it to inner_for_stmt.
9729 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9731 * lra-int.h (lra_operand_data): Remove early_clobber field.
9732 (lra_insn_reg): Likewise.
9733 * lra.c (debug_operand_data): Update accordingly.
9734 (setup_operand_alternative): Likewise.
9735 (new_insn_reg): Likewise. Remove early_clobber parameter.
9736 (collect_non_operand_hard_regs): Update call accordingly.
9737 Don't assign to lra_insn_reg::early_clobber.
9738 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9739 and update calls to new_insn_reg.
9740 (lra_update_insn_regno_info): Update calls accordingly.
9741 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9742 alternative number as a parameter and test whether the operand
9743 is earlyclobbered in that particular alternative.
9744 (process_alt_operands): Update call accordingly. Use per-alternative
9745 checks for earyclobber here too.
9746 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9747 against zero for IRA_UNKNOWN_ALT.
9749 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9751 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9753 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9755 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9756 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9758 2019-07-30 Martin Liska <mliska@suse.cz>
9761 * cgraph.c (cgraph_edge::make_direct): Use
9762 edge->indirect_unknown_callee as edge->resolve_speculation can
9763 deallocate edge which is this pointer.
9765 2019-07-30 Richard Biener <rguenther@suse.de>
9767 PR tree-optimization/91257
9768 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9770 2019-07-30 Martin Liska <mliska@suse.cz>
9772 * doc/invoke.texi: Document new behavior.
9773 * lto-wrapper.c (cpuset_popcount): New function
9774 is a copy of libgomp/config/linux/proc.c.
9775 (init_num_threads): Likewise.
9776 (run_gcc): Automatically detect core count for -flto.
9777 (jobserver_active_p): New function.
9779 2019-07-30 Richard Biener <rguenther@suse.de>
9781 PR tree-optimization/91257
9782 * bitmap.h (bitmap_ior_into_and_free): Declare.
9783 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9784 whether to add the unliked element to the freelist.
9785 (bitmap_list_insert_element_after): Add defaulted param for
9786 an already allocated element.
9787 (bitmap_ior_into_and_free): New function.
9788 * tree-ssa-structalias.c (condense_visit): Reduce the
9789 ponts-to and edge bitmaps of the SCC members in a
9790 logarithmic fashion rather than all to one.
9792 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9794 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9795 parameter. When nonnull, make sure that the addition or subtraction
9796 has the same condition.
9797 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9798 for CFN_COND_MUL too.
9800 2019-07-30 Richard Biener <rguenther@suse.de>
9802 PR tree-optimization/91291
9803 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9806 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9809 * omp-low.c (global_nonaddressable_vars): New variable.
9810 (use_pointer_for_field): For global decls, if they are non-addressable,
9811 remember it in the global_nonaddressable_vars bitmap, if they are
9812 addressable and in the global_nonaddressable_vars bitmap, ignore their
9813 TREE_ADDRESSABLE bit.
9814 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9815 vars in global_nonaddressable_vars bitmap.
9816 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9819 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9820 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9821 comparison to unsigned HOST_WIDE_INT before shifting it left.
9823 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9825 * config/i386/i386.md (movstrict<mode>): Use register_operand
9826 predicate for operand 0. Add expander condition. Assert that
9827 operand 0 is a SUBREG RTX.
9828 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9829 Update operand constraints and insn condition.
9830 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9831 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9832 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9833 Update operand 0 constraints.
9834 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9836 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9838 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9839 when -m{code,data}-region are used without -mlarge.
9840 * config/msp430/msp430.c (msp430_option_override): Error when a
9841 non-default code or data region is used without -mlarge.
9842 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9843 attributes when they are used without -mlarge.
9845 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9848 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9850 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9853 * wide-int.h (generic_wide_int::sext_elt): New function.
9854 * inchash.h (hash::add_wide_int): Use it instead of elt.
9856 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9858 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9860 * config/arm/arm.md (<crc_variant>): Rename to...
9861 (arm_<crc_variant>): ... This.
9862 (<cdp>): Rename to...
9863 (arm_<cdp>): ... This.
9864 (<ldc>): Rename to...
9865 (arm_<ldc>): ... This.
9866 (<stc>): Rename to...
9867 (arm_<stc>): ... This.
9868 (<mcr>): Rename to...
9869 (arm_<mcr>): ... This.
9870 (<mrc>): Rename to...
9871 (arm_<mrc>): ... This.
9872 (<mcrr>): Rename to...
9873 (arm_<mcrr>): ... This.
9874 (<mrrc>): Rename to...
9875 (arm_<mrrc>): ... This.
9877 2019-07-29 Richard Biener <rguenther@suse.de>
9879 PR tree-optimization/91257
9880 * tree-ssa-sccvn.h (struct vn_avail): New.
9881 (struct vn_ssa_aux): Add avail member.
9882 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9883 member, add m_avail_freelist one.
9884 (rpo_elim::~rpo_elim): Remove.
9885 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9887 (rpo_elim::eliminate_push_avail): Likewise.
9888 (do_unwind): Likewise.
9889 (do_rpo_vn): Likewise.
9891 2019-07-29 Richard Biener <rguenther@suse.de>
9893 PR tree-optimization/91257
9894 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9895 most cases, instead call compare_values which handles the
9896 symbolic ranges we handle specially.
9897 (compare_values_warnv): Do not call operand_less_p but open-code
9898 the effective fold calls. Avoid converting so much.
9900 2019-07-29 Martin Liska <mliska@suse.cz>
9902 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9903 remove LHS of operator new call. It's handled latter.
9905 2019-07-29 Richard Biener <rguenther@suse.de>
9907 PR tree-optimization/91267
9908 * vr-values.c (vr_values::update_value_range): Add early return
9909 for effectively VARYING lattice entry.
9911 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9914 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9915 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9916 necessary if keep_all_vdefs_p is true.
9917 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9918 that keep_all_vdefs_p is false.
9919 (mark_all_reaching_defs_necessary): Likewise.
9920 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9922 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9924 * common.opt (Og): Change the initial value of flag_dse to 0.
9925 * opts.c (default_options_table): Move OPT_ftree_dse from
9926 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9927 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9928 entry before the OPT_ftree_sra entry.
9929 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9930 of flags disabled by Og.
9932 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9934 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9937 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9939 * doc/sourcebuild.texi (check-function-bodies): Document.
9941 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9943 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9944 VEC_DUPLICATE of a fixed-length vector even if the result
9945 is variable-length. Likewise fold a duplicate of a
9946 variable-length vector if the variable-length vector is
9947 itself a duplicate of a fixed-length sequence.
9948 (test_vector_ops_duplicate): Test more cases.
9950 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9952 * vector-builder.h (vector_builder): Add a shape template parameter.
9953 (vector_builder::new_unary_operation): New function, generalizing
9954 the old tree_vector_builder function.
9955 (vector_builder::new_binary_operation): Likewise.
9956 (vector_builder::binary_encoded_nelts): Likewise.
9957 * int-vector-builder.h (int_vector_builder): Update template
9958 parameters to vector_builder.
9959 (int_vector_builder::shape_nelts): New function.
9960 * rtx-vector-builder.h (rtx_vector_builder): Update template
9961 parameters to vector_builder.
9962 (rtx_vector_builder::shape_nelts): New function.
9963 (rtx_vector_builder::nelts_of): Likewise.
9964 (rtx_vector_builder::npatterns_of): Likewise.
9965 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9966 * tree-vector-builder.h (tree_vector_builder): Update template
9967 parameters to vector_builder.
9968 (tree_vector_builder::shape_nelts): New function.
9969 (tree_vector_builder::nelts_of): Likewise.
9970 (tree_vector_builder::npatterns_of): Likewise.
9971 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9972 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9973 (tree_vector_builder::new_binary_operation): Delete.
9974 (tree_vector_builder::binary_encoded_nelts): Likewise.
9975 * simplify-rtx.c: Include rtx-vector-builder.h.
9976 (distributes_over_addition_p): New function.
9977 (simplify_const_unary_operation)
9978 (simplify_const_binary_operation): Generalize handling of vector
9979 constants to include variable-length vectors.
9980 (test_vector_ops_series): Add more tests.
9982 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9985 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9986 than INDENTIFIER_POINTER.
9988 2019-07-28 Martin Liska <mliska@suse.cz>
9991 * cgraph.c (symbol_table::create_edge): Always allocate
9993 (symbol_table::free_edge): Store summary_id to
9994 edge_released_summary_ids if != -1;
9995 * cgraph.h (NEXT_FREE_NODE): Remove.
9996 (SET_NEXT_FREE_NODE): Likewise.
9997 (NEXT_FREE_EDGE): Likewise.
9998 (symbol_table::release_symbol): Store summary_id to
9999 cgraph_released_summary_ids if != -1;
10000 (symbol_table::allocate_cgraph_symbol): Always allocate
10003 2019-07-28 Alan Modra <amodra@gmail.com>
10005 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
10008 2019-07-28 Alan Modra <amodra@gmail.com>
10011 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
10013 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
10014 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
10015 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
10017 2019-07-28 Alan Modra <amodra@gmail.com>
10020 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
10021 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
10022 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
10023 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
10024 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
10025 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
10026 in asm_default spec.
10027 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
10028 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
10030 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
10032 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
10034 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10037 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
10038 * config/aarch64/aarch64-option-extensions.def: Add new comments
10039 and restore easier to read options.
10041 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10043 * convert.c (convert_to_real_1): Move part of conversion code...
10044 * match.pd: ...To here.
10046 2019-07-26 Martin Jambor <mjambor@suse.cz>
10049 * ipa-inline-transform.c (check_speculations_1): New function.
10050 (push_all_edges_in_set_to_vec): Likewise.
10051 (check_speculations): Use check_speculations_1, new parameter
10053 (inline_call): Pass new_edges to check_speculations.
10054 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
10056 (speculation_useful_p): Early return true if edge is inlined, remove
10057 later checks for inline_failed.
10059 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
10061 PR rtl-optimization/91223
10062 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
10063 matching with INOUT operand.
10065 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10067 * stmt.c (expand_case): Try to narrow the index type if it's larger
10068 than a word. Tidy up.
10070 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10072 * cif-code.def (NEVER_CALL): New code.
10073 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
10074 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
10076 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
10078 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
10079 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10081 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10083 * ipa-devirt.c (add_type_duplicate): Fix return value.
10085 2019-07-25 Richard Biener <rguenther@suse.de>
10087 * tree-vrp.c (extract_range_from_multiplicative_op): Add
10088 type parameter and use it instead of guessing expression
10089 type from the first operand.
10090 (extract_range_from_binary_expr): Pass expr_type down.
10092 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10094 * config/arm/arm.md (SATrev): Change to code attribute.
10095 (*satsi_<SAT:code>): Adjust for the above.
10096 (*satsi_<SAT:code>_shift): Likewise.
10098 2019-07-25 Richard Biener <rguenther@suse.de>
10100 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
10101 Make value_range * temporary const.
10102 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
10104 (evrp_range_analyzer::record_ranges_from_): Likewise.
10105 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
10106 deal with having recorded a const one.
10107 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
10108 Return a const value_range *.
10109 (evrp_range_analyzer::pop_value_range): Likewise.
10110 (evrp_range_analyzer::stack): Record const value_range *s.
10111 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10113 * gimple-ssa-sprintf.c (get_int_range): Likewise.
10114 (format_integer): Likewise.
10115 (sprintf_dom_walker::handle_gimple_call): Likewise.
10116 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
10117 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
10118 (vrp_prop::get_value_range): Adjust.
10119 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
10120 modifying the lattice in-place.
10121 (vrp_prop::visit_stmt): Likewise.
10122 * vr-values.c (vr_values::get_lattice_entry): New private method.
10123 (vr_values::get_value_range): Wrap it and return a const
10125 (vr_values::set_def_to_varying): New.
10126 (vr_values::set_defs_to_varying): Use it.
10127 (vr_values::update_value_range): Likewise.
10128 (vr_values::vrp_stmt_computes_nonzero): Adjust.
10129 (values::op_with_constant_singleton_va): Likewise.
10130 (vr_values::extract_range_for_var_from_co): Likewise.
10131 (vr_values::extract_range_from_ssa_name): Likewise.
10132 (vr_values::extract_range_from_cond_expr): Likewise.
10133 (vr_values::extract_range_basic): Likewise.
10134 (compare_ranges): Take const value_range *, adjust.
10135 (compare_range_with_value): Likewise.
10136 (vrp_valueize): Adjust.
10137 (vrp_valueize_1): Likewise.
10138 (vr_values::get_vr_for_comparison): Return a const value_range *.
10139 (vr_values::compare_name_with_value): Adjust.
10140 (vr_values::compare_names): Likewise.
10141 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
10143 (vr_values::vrp_evaluate_conditional): Likewise.
10144 (find_case_label_ranges): Take a const value_range *.
10145 (vr_values::vrp_visit_switch_stmt): Adjust.
10146 (vr_values::extract_range_from_phi_node): Likewise.
10147 (vr_values::simplify_div_or_mod_using_ran): Likewise.
10148 (vr_values::simplify_abs_using_ranges): Likewise.
10149 (test_for_singularity): Take a const value_range *.
10150 (range_fits_type_p): Likewise.
10151 (vr_values::simplify_cond_using_ranges_1): Adjust.
10152 (vr_values::simplify_cond_using_ranges_2): Likewise.
10153 (vr_values::simplify_switch_using_ranges): Likewise.
10154 (vr_values::simplify_float_conversion_usi): Likewise.
10155 (vr_values::two_valued_val_range_p): Likewise.
10156 * vr-values.h (vr_values::get_value_range): Return a const
10158 (vr_values::set_def_to_varying): New.
10159 (vr_values::get_lattice_entry): New private method.
10160 (vr_values::get_vr_for_comparison): Return a const value_range *.
10162 2019-07-25 Martin Liska <mliska@suse.cz>
10163 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
10166 * common.opt: Add -fallocation-dce
10167 * gimple.c (gimple_call_operator_delete_p): New.
10168 * gimple.h (gimple_call_operator_delete_p): Likewise.
10169 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
10170 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
10171 DECL_IS_OPERATOR_DELETE_P.
10172 (mark_all_reaching_defs_necessary_1): Likewise.
10173 (propagate_necessity): Likewise.
10174 (eliminate_unnecessary_stmts): Handle
10175 gimple_call_operator_delete_p.
10176 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
10177 Add packing of OPERATOR_DELETE.
10178 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
10180 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
10181 (DECL_SET_IS_OPERATOR_DELETE): New.
10182 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
10184 2019-07-25 Martin Liska <mliska@suse.cz>
10186 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
10187 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
10188 * coverage.c (coverage_begin_function): Likewise.
10189 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
10190 * gimple.c (gimple_call_nonnull_result_p): Likewise.
10191 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
10192 (sem_item::hash_referenced_symbol_properties): Likewise.
10193 * lto-streamer-out.c (hash_tree): Likewise.
10194 * predict.c (expr_expected_value_1): Likewise.
10195 * tree-inline.c (expand_call_inline): Likewise.
10196 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
10197 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
10198 * tree-core.h (enum function_decl_type): New enum.
10199 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
10200 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
10201 (set_function_decl_type): Likewise.
10202 (DECL_IS_OPERATOR_NEW_P): New.
10203 (DECL_SET_IS_OPERATOR_NEW): Likewise.
10204 (DECL_LAMBDA_FUNCTION): Likewise.
10205 (DECL_LAMBDA_FUNCTION_P): Likewise.
10206 (DECL_IS_OPERATOR_NEW): Remove.
10207 (DECL_SET_LAMBDA_FUNCTION): Likewise.
10209 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
10211 * ipa-profile.c (get_most_common_single_value): Use
10212 get_nth_most_common_value.
10213 * profile.c (sort_hist_value): New function.
10214 (compute_value_histograms): Call sort_hist_value to sort the
10215 values after loading from disk.
10216 * value-prof.c (get_most_common_single_value): Rename to ...
10217 get_nth_most_common_value. Add input params n, return
10218 the n_th value and count.
10219 (gimple_divmod_fixed_value_transform): Use
10220 get_nth_most_common_value.
10221 (gimple_ic_transform): Likewise.
10222 (gimple_stringops_transform): Likewise.
10223 * value-prof.h (get_most_common_single_value): Add input params
10226 2019-07-25 Richard Biener <rguenther@suse.de>
10228 PR tree-optimization/91236
10229 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10230 size of CONSTRUCTOR write. Fix buffer size we pass to
10231 native_encode_expr.
10233 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10235 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
10236 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
10239 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10241 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
10242 explicitly disabled with --disable-initfini-array.
10244 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10246 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
10249 2019-07-24 Martin Sebor <msebor@redhat.com>
10251 PR tree-optimization/91183
10252 PR tree-optimization/86688
10253 * builtins.c (compute_objsize): Handle MEM_REF.
10254 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
10255 (get_min_string_length): Remove.
10256 (count_nonzero_bytes): New function.
10257 (handle_char_store): Rename...
10258 (handle_store): to this. Handle multibyte stores via integer types.
10259 (strlen_check_and_optimize_stmt): Adjust conditional and the called
10262 2019-07-24 Martin Sebor <msebor@redhat.com>
10265 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
10266 (diagnostic_report_diagnostic): Same.
10267 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
10268 (diagnostic_context::lang_mask): New data member.
10269 * ipa-pure-const.c (suggest_attribute): Use
10270 lang_hooks.option_lang_mask ().
10271 * opts-common.c (option_enabled): Handle new argument.
10272 (get_option_state): Pass an additional argument.
10273 * opts.c (print_filtered_help): Print supported languages for
10274 unsupported options. Adjust printing of current state.
10275 * opts.h (option_enabled): Add argument.
10276 * toplev.c (print_switch_values): Use lang_mask.
10277 (general_init): Set global_dc->lang_mask.
10279 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10282 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
10284 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
10286 * cgraphunit.c (symbol_table::compile): Start and stop
10287 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
10288 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
10290 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
10292 * gimplify.c (flag_instrument_functions_exclude_p): Include
10293 namespace/class information in the printable name.
10294 * opts.c (add_comma_separated_to_vector): Add NUL terminator
10295 to tokens entered into the vector.
10297 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
10299 * tree-nested.c (build_simple_mem_ref_notrap): New function.
10300 (get_static_chain): Call it instead of build_simple_mem_ref.
10301 (get_frame_field): Likewise.
10302 (get_nonlocal_debug_decl): Likewise.
10303 (convert_nonlocal_reference_op): Likewise.
10305 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
10307 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
10309 (arc_compute_frame_size): Millicode is disabled when compiling
10311 (arc_return_address_register): Likewise.
10312 (arc_compute_function_type): Likewise.
10313 (arc_compute_frame_size): Likewise.
10314 (secondary_reload_info): Likewise.
10315 (arc_get_unalign): Likewise.
10316 (arc_can_use_return_insn): Declare.
10317 * config/arc/arc.c (AUX_LP_START): Define
10318 (AUX_LP_END): Likewise.
10319 (arc_frame_info): Update gmask member to 64-bit datum.
10320 (GMASK_LEN): Update.
10321 (arc_compute_function_type): Make it static, move it forward.
10322 (arc_must_save_register): Update, consider the extra regs.
10323 (arc_compute_millicode_save_restore_regs): Update to use the 64
10325 (arc_compute_frame_size): Likewise.
10326 (arc_enter_leave_p): Likewise.
10327 (arc_save_callee_saves): Likewise.
10328 (arc_restore_callee_saves): Likewise.
10329 (arc_save_callee_enter): Likewise.
10330 (arc_restore_callee_leave): Likewise.
10331 (arc_save_callee_milli): Likewise.
10332 (arc_restore_callee_milli): Likewise.
10333 (arc_expand_prologue): Add new interrupt handling.
10334 (arc_return_address_register): Make it static, move it forward.
10335 (arc_expand_epilogue): Add new interrupt handling.
10336 (arc_get_unalign): Delete.
10337 (arc_epilogue_uses): Make sure we do not remove the extra
10338 saved/restored registers when interrupt.
10339 (arc_can_use_return_insn): New function.
10340 (push_reg): Likewise.
10341 (pop_reg): Likewise.
10342 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
10344 (arc_restore_callee_saves): Likewise, but restoring.
10345 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
10346 (R33_REG): Likewise.
10347 (R34_REG): Likewise.
10348 (R35_REG): Likewise.
10349 (R36_REG): Likewise.
10350 (R37_REG): Likewise.
10351 (R38_REG): Likewise.
10352 (R39_REG): Likewise.
10353 (R45_REG): Likewise.
10354 (R46_REG): Likewise.
10355 (R47_REG): Likewise.
10356 (R48_REG): Likewise.
10357 (R49_REG): Likewise.
10358 (R50_REG): Likewise.
10359 (R51_REG): Likewise.
10360 (R52_REG): Likewise.
10361 (R53_REG): Likewise.
10362 (R54_REG): Likewise.
10363 (R55_REG): Likewise.
10364 (R56_REG): Likewise.
10365 (R58_REG): Likewise.
10366 (type): Add rtie attribute.
10367 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10368 (movsi_insn): Accept moves to lp_count.
10369 (rtie): Update pattern.
10370 (simple_return): Simplify it, don't use this pattern as a return
10372 (arc600_rtie): New pattern.
10373 (p_return_i): Clean up.
10374 (return): Likewise.
10375 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10377 * config/arc/predicates.md (move_src_operand): Consider lp_count
10380 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10382 * config/s390/predicates.md (addv_const_operand): New predicate.
10383 * config/s390/s390-modes.def (CCO): New condition code mode.
10384 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10385 (s390_branch_condition_mask): Likewise.
10386 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10387 ("mulv<mode>4"): New expanders.
10388 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10389 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10390 pattern definitions.
10392 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10394 PR middle-end/91166
10395 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10396 (define_predicates): Add entry for uniform_vector_p.
10397 (vec_same_elem_p): New match pattern.
10399 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10402 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10403 * config/i386/darwin32-biarch.h .. to here.
10404 * config/i386/darwin64-biarch.h: Adjust comments.
10405 * config/rs6000/darwin32-biarch.h: Likewise.
10406 * config/rs6000/darwin64-biarch.h: Likewise.
10407 * config.gcc: Missed commit from r273746
10408 (*-*-darwin*): Don't include CPU t-darwin here.
10409 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10410 an error message if i686-darwin configuration is attempted for
10413 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10416 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10417 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10418 an error message if i686-darwin configuration is attempted for
10420 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10421 (powerpc-*-darwin*): Use biarch files where needed.
10422 (powerpc64-*-darwin*): Likewise.
10423 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10424 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10426 * config/i386/darwin32-biarch.h: New.
10427 * config/i386/darwin64.h: Rename.
10428 * config/i386/darwin64-biarch.h: To this.
10429 * config/i386/t-darwin: Rename.
10430 * config/i386/t-darwin32-biarch: To this.
10431 * config/i386/t-darwin64: Rename.
10432 * config/i386/t-darwin64-biarch: To this.
10433 * config/rs6000/darwin32-biarch.h: New.
10434 * config/rs6000/darwin64.h: Rename.
10435 * config/rs6000/darwin64-biarch.h: To this.
10436 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10438 * config/rs6000/t-darwin8: Rename.
10439 * config/rs6000/t-darwin32-biarch: To this.
10440 * config/rs6000/t-darwin64 Rename.
10441 * config/rs6000/t-darwin64-biarch: To this.
10443 2019-07-23 Martin Sebor <msebor@redhat.com>
10445 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10447 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10449 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10450 (rh): New alias for it.
10452 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10454 * gdbhooks.py: Pass replace=True to
10455 gdb.printing.register_pretty_printer.
10457 2019-07-23 Richard Biener <rguenther@suse.de>
10460 * lto-streamer-in.c (input_function): Drop inline-entry markers
10461 that ended up with an unknown location block.
10463 2019-07-23 Richard Biener <rguenther@suse.de>
10465 PR tree-optimization/83518
10466 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10467 init from a constant even when partial defs are already recorded.
10469 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10471 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10472 * config/i386/znver1.md: Enable patterns for znver2 and add store
10473 variants which use extra AGU unit.
10475 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10477 * config/i386/i386-options.c (ix86_option_override_internal): Default
10478 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10479 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10482 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10484 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10485 (znver2_costs): Update 256 bit SSE costs and multiplication.
10487 2019-07-23 Jan Beulich <jbeulich@suse.com>
10489 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10490 Require only AVX512F.
10491 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10492 alternative expanding to vpternlog.
10494 2019-07-23 Martin Liska <mliska@suse.cz>
10496 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10497 to -flto in dwarf producer string.
10499 2019-07-23 Richard Biener <rguenther@suse.de>
10501 * tree-cfg.c (label_for_bb): Remove global var.
10502 (main_block_label): Take label_for_bb as argument.
10503 (cleanup_dead_labels_eh): Likewise, adjust.
10504 (cleanup_dead_labels): Adjust.
10506 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10508 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10509 Configurations): Add documentation for __builtin_mtfsf.
10511 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10513 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10514 * config/riscv/riscv.c (riscv_constant_alignment): Use
10515 riscv_align_data_type.
10516 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10517 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10518 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10519 * config/riscv/riscv.opt (malign-data): New.
10520 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10522 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10524 * cgraph.c (dump_graphviz): New function.
10525 * cgraph.h (dump_graphviz): New function.
10526 * symtab.c (dump_graphviz): New function.
10528 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10530 * config/aarch64/aarch64-simd.md
10531 (*aarch64_simd_sra<mode>): New.
10532 * config/aarch64/iterators.md
10533 (SHIFTRT): New iterator.
10534 (sra_op): New attribute.
10536 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10538 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10539 callee-saved regs R4->R10 in an interrupt function that calls another
10542 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10544 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10545 (_mm_blendv_epi8): New.
10547 2019-07-22 Richard Biener <rguenther@suse.de>
10549 PR tree-optimization/91221
10550 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10551 restrict partial-def handling of empty constructors and
10552 memset to refs with known offset.
10554 2019-07-22 Jan Beulich <jbeulich@suse.com>
10556 * config/i386/sse.md (ternlogsuffix): New.
10557 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10559 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10561 2019-07-22 Martin Liska <mliska@suse.cz>
10563 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10565 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10567 2019-07-22 Martin Liska <mliska@suse.cz>
10569 * lto-section-in.c (lto_get_section_data):
10570 Use new function get_compression.
10571 * lto-streamer-out.c (produce_lto_section): Use
10572 set_compression to encode compression algorithm.
10573 * lto-streamer.h (struct lto_section): Do not
10574 use bitfields in the format.
10576 2019-07-22 Martin Liska <mliska@suse.cz>
10579 * opts-common.c (decode_cmdline_option): Decode
10580 argument of -Werror and check it for a wrong language.
10581 * opts-global.c (complain_wrong_lang): Remove such case.
10583 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10585 * config/arc/arc.c (prepare_move_operands): Always use an
10586 intermediate register when storing a TLS symbols.
10588 2019-07-22 Stafford Horne <shorne@gmail.com>
10590 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10593 2019-07-22 Stafford Horne <shorne@gmail.com>
10595 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10596 and munordered-float validations.
10597 * config/or1k/constraints.md (d): New register constraint.
10598 * config/or1k/predicates.md (fp_comparison_operator): New.
10599 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10601 (or1k_expand_compare): Normalize unordered comparisons.
10602 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10603 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10604 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10605 * config/or1k/or1k.md (type): Add fpu.
10606 (fpu): New instruction reservation.
10607 (F, f, fr, fi, FI, FOP, fop): New.
10608 (<fop><F:mode>3): New ALU instruction definition.
10609 (float<fi><F:mode>2): New conversion instruction definition.
10610 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10611 (fpcmpcc): New code iterator.
10612 (*sf_fp_insn): New instruction definition.
10613 (cstore<F:mode>4): New expand definition.
10614 (cbranch<F:mode>4): New expand definition.
10615 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10616 munordered-float): New options.
10617 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10620 2019-07-22 Stafford Horne <shorne@gmail.com>
10622 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10623 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10624 documenation to be more clear.
10625 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10627 * config/or1k/or1k.opt (mrori): New option.
10628 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10629 msfimm, mshftimm): Rewrite documentation to be more clear.
10630 * config/or1k/or1k.md (insn_support): Add ror and rori.
10631 (enabled): Add conditions for ror and rori.
10632 (rotrsi3): Replace condition for shftimm with ror and rori.
10634 2019-07-22 Stafford Horne <shorne@gmail.com>
10637 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10638 (extend<mode>si2): Update predicate.
10639 * config/or1k/predicates.md (volatile_mem_operand): New.
10640 (reg_or_mem_operand): New.
10642 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10644 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10645 * config/rs6000/rs6000-call.c: ... to here.
10647 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10649 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10652 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10654 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10656 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10658 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10660 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10662 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10663 (any_memory_operand): New predicate.
10664 (reg_or_mem_operand): Use it.
10666 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10669 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10671 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10673 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10674 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10676 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10678 * tree.def (OMP_LOOP): New tree code.
10679 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10680 (enum omp_clause_bind_kind): New enum.
10681 (struct tree_omp_clause): Add subcode.bind_kind.
10682 * tree.h (OMP_LOOP_CHECK): Rename to ...
10683 (OMP_LOOPING_CHECK): ... this.
10684 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10685 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10686 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10687 (OMP_CLAUSE_BIND_KIND): Define.
10688 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10689 bind clause entries.
10690 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10691 * tree-pretty-print.c (dump_omp_clause): Likewise.
10692 (dump_generic_node): Handle OMP_LOOP.
10693 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10694 (in_omp_construct): New variable.
10695 (is_gimple_stmt): Handle OMP_LOOP.
10696 (gimplify_scan_omp_clauses): For lastprivate don't set
10697 check_non_private if code == OMP_LOOP. For reduction clause
10698 on OMP_LOOP combined with parallel or teams propagate as shared
10699 on the combined construct. Handle OMP_CLAUSE_BIND.
10700 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10701 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10702 for constructs from a loop construct to gimplify_scan_omp_clauses.
10703 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10704 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10705 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10706 to match the implicit ORT_TARGET construct around whole body.
10707 Temporarily clear in_omp_construct when processing body.
10708 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10709 etc. temporarily set in_omp_construct when processing body.
10710 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10711 * omp-low.c (struct omp_context): Add loop_p.
10712 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10713 in that the original var might be private.
10714 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10715 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10716 addition of loop construct.
10717 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10719 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10720 lastprivate non-addressable iterator of a collapse(1) simd.
10722 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10724 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10727 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10729 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10730 refer to default conditions. Warn for the 'y' spec which is ignored
10731 by current linkers.
10733 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10735 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10736 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10737 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10738 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10739 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10740 init_cumulative_args, rs6000_promote_function_mode,
10741 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10742 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10743 rs6000_function_arg_boundary, rs6000_parm_offset,
10744 rs6000_parm_start, rs6000_arg_size,
10745 rs6000_darwin64_record_arg_advance_flush,
10746 rs6000_darwin64_record_arg_advance_recurse,
10747 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10748 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10749 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10750 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10751 rs6000_finish_function_arg, rs6000_function_arg,
10752 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10753 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10754 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10755 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10756 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10757 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10758 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10759 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10760 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10761 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10762 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10763 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10764 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10765 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10766 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10767 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10768 get_element_number, altivec_expand_vec_set_builtin,
10769 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10770 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10771 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10772 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10773 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10774 rs6000_expand_builtin, rs6000_vector_type,
10775 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10776 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10777 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10779 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10780 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10781 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10782 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10783 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10784 init_cumulative_args, rs6000_promote_function_mode,
10785 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10786 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10787 rs6000_function_arg_boundary, rs6000_parm_offset,
10788 rs6000_parm_start, rs6000_arg_size,
10789 rs6000_darwin64_record_arg_advance_flush,
10790 rs6000_darwin64_record_arg_advance_recurse,
10791 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10792 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10793 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10794 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10795 rs6000_finish_function_arg, rs6000_function_arg,
10796 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10797 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10798 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10799 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10800 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10801 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10802 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10803 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10804 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10805 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10806 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10807 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10808 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10809 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10810 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10811 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10812 get_element_number, altivec_expand_vec_set_builtin,
10813 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10814 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10815 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10816 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10817 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10818 rs6000_expand_builtin, rs6000_vector_type,
10819 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10820 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10821 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10822 to here from rs6000.c.
10823 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10824 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10825 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10826 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10827 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10828 rs6000_return_in_memory, rs6000_return_in_msb,
10829 rs6000_pass_by_reference, setup_incoming_varargs,
10830 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10831 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10832 rs6000_function_arg_padding, rs6000_function_arg,
10833 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10834 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10835 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10836 rs6000_passes_long_double, rs6000_passes_vector,
10837 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10838 altivec_builtin_mask_for_load) Add declarations.
10839 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10840 * config/config.gcc: Add new source file rs6000-call.c to garbage
10841 collector and extra_objs.
10843 2019-07-19 Jeff Law <law@redhat.com>
10845 PR tree-optimization/86061
10846 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10847 strncpy. Drop some trivial dead code.
10848 (maybe_trim_memstar_call): Handle strncpy.
10850 2019-07-19 Richard Biener <rguenther@suse.de>
10852 PR tree-optimization/91211
10853 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10854 memset encoding size.
10856 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10859 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10861 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10864 * ipa-inline.c (recursive_inlining): Fix limits check.
10866 2019-07-19 Richard Biener <rguenther@suse.de>
10868 PR tree-optimization/91200
10869 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10870 no PHI nodes in middle-bb.
10872 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10874 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10876 * config/aarch64/aarch64-option-extensions.def: Likewise.
10878 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10880 PR middle-end/91190
10881 * function.c (insert_temp_slot_address): Store into the hash table
10882 a copy of address to avoid RTL sharing issues.
10884 2019-07-19 Richard Biener <rguenther@suse.de>
10886 PR tree-optimization/91207
10888 2019-07-17 Richard Biener <rguenther@suse.de>
10890 PR tree-optimization/91178
10891 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10892 loads with a gap larger than the vector size always use
10894 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10895 avoid loading vectors that are only contained in the gap
10896 and thus are not needed.
10898 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10900 * config/i386/i386.md (*addqi_2_slp): Remove.
10901 (*<code>qi_2_slp): Ditto.
10903 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10905 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10906 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10907 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10908 Rename function from rs6000_prefixed_address.
10909 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10911 (TARGET_TOC): Likewise.
10912 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10914 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10916 (TARGET_TOC): Likewise.
10917 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10919 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10921 (TARGET_TOC): Likewise.
10922 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10923 check to require -mcmodel=medium for pc-relative addressing.
10924 (create_TOC_reference): Add assertion for TARGET_TOC.
10925 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10927 (rs6000_emit_move): Likewise.
10928 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10929 to 'TOC_alias_set'.
10930 (get_TOC_alias_set): Likewise.
10931 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10933 (rs6000_can_eliminate): Likewise.
10934 (rs6000_prefixed_address_mode_p): Rename function from
10935 rs6000_prefixed_address.
10936 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10937 TARGET_HAS_TOC and not pc-relative.
10938 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10939 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10941 (TARGET_TOC): Likewise.
10942 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10945 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10948 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10949 for operand 0. Do not use (match_dup) to match operand 1 with
10950 operand 0. Add check in insn constraint that either input operand
10951 matches operand 0. Use SWI12 mode iterator to also handle
10953 (*and<mode>_1_slp): Ditto.
10954 (*<code>qi_1_slp): Ditto.
10955 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10956 Do not use (match_dup) to match operand 1 with operand 0. Add
10957 check in insn constraint that operand 1 matches operand 0.
10958 Use SWI12 mode iterator to also handle HImode operands.
10959 (*ashl<mode>3_1_slp): Ditto.
10960 (*<shift_insn><mode>3_1_slp): Ditto.
10961 (*<rotate_insn><mode>3_1_slp): Ditto.
10963 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10965 * config/arm/arm-builtins.c
10966 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10967 (arm_expand_unop_builtin): Likewise.
10968 * config/arm/crypto.md
10969 (crypto_sha1h): Convert from define_insn to define_expand.
10970 (crypto_<crypto_pattern>): Likewise.
10971 (crypto_sha1h_lb): New define_insn.
10972 (crypto_<crypto_pattern>_lb): Likewise.
10974 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10977 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10978 (vsha1cq_u32): Likewise.
10979 (vsha1pq_u32): Likewise.
10980 (vsha1mq_u32): Likewise.
10981 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10983 (crypto_sha1c): Correct vec select.
10984 (crypto_sha1m): Likewise.
10985 (crypto_sha1p): Likewise.
10987 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10989 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10990 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10991 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10992 (subdi_zesidi_zesidi): Likewise.
10993 (negdi2_compare, negdi2_insn): Likewise.
10994 (negdi_extensidi): Likewise.
10995 (negdi_zero_extendsidi): Likewise.
10996 (arm_cmpdi_insn): Likewise.
10997 (subsi3_carryin): Use arm_borrow_operation.
10998 (subsi3_carryin_const): Likewise.
10999 (subsi3_carryin_const0): Likewise.
11000 (subsi3_carryin_compare): Likewise.
11001 (subsi3_carryin_compare_const): Likewise.
11002 (subsi3_carryin_compare_const0): Likewise.
11003 (subsi3_carryin_shift): Likewise.
11004 (rsbsi3_carryin_shift): Likewise.
11005 (negsi2_carryin_compare): Likewise.
11007 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
11009 PR tree-optimization/91137
11010 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
11011 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
11012 Init, use and fini the above new field.
11013 (determine_base_object_1): New function.
11014 (determine_base_object): Reimplement using walk_tree.
11016 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
11018 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
11019 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
11020 CLEANUP_FORCE_FAST_DCE is set.
11021 * ifcvt.c (rest_of_handle_if_conversion): Pass
11022 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
11023 if-conversion succeeded.
11025 2019-07-18 Richard Biener <rguenther@suse.de>
11027 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
11028 branches to make code less indented.
11030 2019-07-17 Alexandre Oliva <oliva@adacore.com>
11032 PR middle-end/81824
11033 * attribs.c (decls_mismatched_attributes): Simplify the logic
11034 that avoids duplicates and false positives.
11036 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
11038 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
11039 data into data section when generating PIC code.
11040 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
11041 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
11042 generating code for SOM targets earlier than HP-UX 11. Otherwise,
11043 return 2 for SOM and 0 for other targets.
11045 2019-07-17 Jeff Law <law@redhat.com>
11047 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
11048 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
11049 avoid unexpected switch statement fallthru.
11051 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11053 * config/i386/i386.md (*add<dwi>3_doubleword):
11054 Remove redundant constraints.
11055 (*add<mode>_1): Ditto.
11058 (*addqi_1_slp): Ditto.
11059 (*add<mode>_2): Ditto.
11060 (*addv<mode>4): Ditto.
11061 (*sub<dwi>3_doubleword): Ditto.
11062 (*sub<mode>_1): Ditto.
11063 (*subqi_1_slp): Ditto.
11064 (*sub<mode>_2): Ditto.
11065 (*subv<mode>4): Ditto.
11066 (*sub<mode>_3): Ditto.
11067 (@add<mode>3_carry): Ditto.
11068 (@sub<mode>3_carry): Ditto.
11069 (*add<mode>3_cc_overflow_1): Ditto.
11070 (*add<mode>3_zext_cc_overflow_2): Ditto.
11072 (*and<mode>_1): Ditto.
11074 (*andqi_1_slp): Ditto.
11076 (*andqi_2_maybe_si): Ditto.
11077 (*and<mode>_2): Ditto.
11078 (*andqi_2_slp): Ditto.
11079 (*<code><mode>_1): Ditto.
11080 (*<code>qi_1): Ditto.
11081 (*<code>qi_1_slp): Ditto.
11082 (*<code><mode>_2): Ditto.
11083 (*<code>qi_2_slp): Ditto.
11085 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
11087 * alias.c (record_component_aliases): Do not simplify pointed-to
11088 types of ODR types.
11090 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11092 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
11093 partial reg stall on alternative 2.
11095 2019-07-17 Richard Biener <rguenther@suse.de>
11097 PR tree-optimization/91178
11098 * tree-ssa.c (release_defs_bitset): Iterate from higher to
11099 lower SSA names to avoid quadratic behavior in the common case.
11100 * tree-data-ref.c (split_constant_offset): Add limit argument
11101 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11102 (split_constant_offset_1): Add limit argument and use it to
11103 limit SSA def walking. Optimize the common plus/minus case.
11105 2019-07-17 Richard Biener <rguenther@suse.de>
11107 PR tree-optimization/91178
11108 * tree-vect-stmts.c (get_group_load_store_type): For SLP
11109 loads with a gap larger than the vector size always use
11111 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
11112 avoid loading vectors that are only contained in the gap
11113 and thus are not needed.
11115 2019-07-17 Richard Biener <rguenther@suse.de>
11117 PR tree-optimization/91180
11118 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
11119 computation for memset partial defs.
11121 2019-07-17 Jakub Jelinek <jakub@redhat.com>
11123 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
11124 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
11125 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
11126 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
11127 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
11128 * omp-grid.c (grid_process_grid_body,
11129 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
11130 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
11131 == GF_OMP_FOR_KIND_SIMD.
11132 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
11133 check_omp_nesting_restrictions, scan_omp_1_stmt,
11134 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
11135 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
11136 omp_find_scan): Likewise.
11137 * omp-expand.c (expand_omp_for): Likewise.
11138 * omp-general.c (omp_extract_for_data): Likewise.
11140 PR tree-optimization/91157
11141 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
11142 a vector boolean with scalar mode.
11143 (expand_vector_condition): Handle first operand being a vector boolean
11145 (expand_vector_operations_1): For comparisons, don't bail out early
11146 if the return type is vector boolean with scalar mode, but comparison
11147 operand type is not.
11149 2019-07-17 Richard Biener <rguenther@suse.de>
11151 PR tree-optimization/91181
11152 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
11153 IFN_LOADs as calls.
11155 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
11157 * config/i386/i386.md (*testdi_1): Match CCZmode for
11158 constants that might have the SImode sign bit set.
11159 (*testqi_1_maybe_si): Remove "!" constraint modifier.
11160 Use correct constraints for pentium pairing.
11161 (*test<mode>_1): Ditto.
11163 2019-07-16 Jeff Law <law@redhat.com>
11165 PR rtl-optimization/91173
11166 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
11167 SSA_NAME with a constant value, fold its value into the offset
11168 and clear the base before calling gen_addr_rtx.
11170 2019-07-16 Jakub Jelinek <jakub@redhat.com>
11172 PR rtl-optimization/91164
11173 * dse.c (rest_of_handle_dse): If dead edges have been purged,
11174 invalidate dominance info.
11176 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11178 * read-md.h (md_reader::record_potential_iterator_use): Add a
11179 file_location parameter.
11180 * read-rtl.c (attribute_use::loc): New field.
11181 (map_attr_string): Take a file_location parameter. Report cases
11182 in which attributes map to multiple distinct values.
11183 (apply_attribute_uses): Update call accordingly.
11184 (md_reader::handle_overloaded_name): Likewise.
11185 (md_reader::apply_iterator_to_string): Likewise. Skip empty
11187 (record_attribute_use): Take a file_location parameter.
11188 Initialize attribute_use::loc.
11189 (md_reader::record_potential_iterator_use): Take a file_location
11190 parameter. Update call to record_attribute_use.
11191 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
11192 (rtx_reader::read_rtx_code): Likewise.
11193 (rtx_reader::read_rtx_operand): Likewise. Record a location
11194 for implicitly-expanded empty strings.
11196 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11198 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
11199 Use file_location instead of separate fields.
11200 (md_reader::set_md_ptr_loc): Take a file_location instead of a
11201 separate filename and line number.
11202 * read-md.c (ptr_loc): As above.
11203 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
11204 (md_reader::fprint_md_ptr_loc): Likewise.
11205 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
11206 instead of a separate filename and line number.
11207 (md_reader::read_string): Update call accordingly.
11209 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11211 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
11212 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
11213 leaving the choice between SFDF and P implicit.
11214 (*mov<mode>_update2): Likewise.
11215 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
11216 rather than leaving the choice betweem IBM128 and GPR implicit.
11217 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
11218 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
11220 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
11221 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
11222 * config/rs6000/vsx.md
11223 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
11224 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
11225 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
11226 and VSX_EXTRACT_I implicit.
11228 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11230 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
11231 Explicitly use <MOVEP1:MODE> for the mode attribute.
11233 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
11236 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
11238 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
11241 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
11242 .machine directive.
11244 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
11246 * config/i386/i386.md (@test<mode>_ccno_1):
11247 Rename from test<mode>_ccno_1.
11248 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
11249 (*testqi_1_maybe_si): Remove modrm attribute.
11250 (*test<mode>_1): Ditto.
11251 * config/i386/i386-expand.c (ix86_split_idivmod): Use
11252 gen_test_ccno_1 and gen_extend_insn.
11254 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
11256 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
11259 2019-07-15 Richard Biener <rguenther@suse.de>
11261 PR middle-end/91162
11262 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
11263 node make sure to replace all uses with something valid.
11265 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
11267 PR tree-optimization/88497
11268 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
11269 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
11270 function undistribute_bitref_for_vector.
11271 (undistribute_bitref_for_vector): New function.
11272 (cleanup_vinfo_map): Likewise.
11273 (sort_by_mach_mode): Likewise.
11275 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
11277 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
11278 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
11279 and testdi_ccno_1 using SWI48 mode attribute.
11280 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
11281 x86_64_szext_general_operand.
11282 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
11283 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
11284 instead of genera_operand mode attribute.
11286 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
11288 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
11289 fopen and fclose to their respective types.
11290 (DotFn.invoke): Ditto.
11292 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
11294 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
11295 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
11296 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
11297 (array_index_predicate): Remove.
11298 (analyze_function_body): Account cost for variable ofsetted array
11300 (estimate_node_size_and_time): Do not compute array index hint.
11301 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
11302 (inline_read_section): Do not read array index hint.
11303 (ipa_fn_summary_write): Do not write array index hint.
11304 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
11305 * ipa-cp.c (hint_time_bonus): Remove.
11306 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
11307 (ipa_fnsummary): Remove array_index.
11308 * ipa-inline.c (want_inline_small_function_p): Do not use
11310 (edge_badness): Likewise.
11311 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
11313 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
11316 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
11317 superfluous "builtin function" phrasing.
11319 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
11321 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
11323 (aliasing_component_refs_walk): Break out from ...
11324 (aliasing_component_refs_p): ... here.
11326 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
11329 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
11330 "builtin function" phrasing.
11332 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11335 * recog.h (temporary_volatile_ok): New class.
11336 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
11337 volatile_ok temporarily to true using temporary_volatile_ok.
11338 * expr.c (emit_block_move_via_cpymem): Likewise.
11339 * optabs.c (maybe_legitimize_operand): Likewise.
11341 2019-07-13 Jakub Jelinek <jakub@redhat.com>
11343 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
11344 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
11345 uses inside of order(concurrent) constructs.
11346 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
11347 OMP_CLAUSE_ORDER is seen.
11348 * omp-low.c (struct omp_context): Add order_concurrent member.
11349 (scan_sharing_clauses): Set ctx->order_concurrent if
11350 OMP_CLAUSE_ORDER is seen.
11351 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
11352 of simd order(concurrent). Diagnose constructs not allowed inside of
11353 for order(concurrent).
11354 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
11355 complaining about static double setjmp (double); or class static
11356 methods or non-global namespace setjmps.
11357 (omp_runtime_api_call): New function.
11358 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11359 order(concurrent) loops.
11361 2019-07-12 Martin Sebor <msebor@redhat.com>
11363 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11364 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11365 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11366 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11368 2019-07-12 Jan Hubicka <jh@suse.cz>
11370 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11371 (indirect_refs_may_alias_p): ... here.
11372 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11373 mem refs in the access paths.
11375 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11377 PR tree-optimization/89430
11378 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11379 store elimination for local variable without address escape.
11381 2019-07-12 Jeff Law <law@redhat.com>
11383 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11384 for the ".far" section.
11386 2019-07-12 Richard Biener <rguenther@suse.de>
11388 PR tree-optimization/91145
11389 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11392 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11394 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11395 rather than this_state as the lowering context for the ELSE
11396 seq in a GIMPLE_EH_ELSE.
11398 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11400 * vector-builder.h (vector_builder::elt): Allow already-supplied
11401 elements to be read back before building is complete.
11403 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11405 PR rtl-optimization/91136
11406 * df-core.c (ACCESSING REFS): Fix typos in comment.
11407 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11408 the beginning of the block to the initial set of live registers.
11410 2019-07-12 Richard Biener <rguenther@suse.de>
11412 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11413 * fold-const.c (get_array_ctor_element_at_index): Add
11414 ctor_idx output parameter informing the caller where in
11415 the constructor the element was (not) found. Add early exit
11416 for when the ctor is sorted.
11417 * gimple-fold.c (fold_array_ctor_reference): Support constant
11418 folding across multiple array elements.
11420 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11422 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11423 doesn't have location, set the current location to the function's end.
11425 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11427 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11428 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11429 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11430 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11431 * config/aarch64/aarch64-simd.md
11432 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11433 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11434 * config/aarch64/aarch64-sve.md
11435 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11436 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11438 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11440 * doc/md.texi: Document that @ patterns can have different
11441 numbers of operands.
11442 * genemit.c (handle_overloaded_gen): Handle this case.
11443 * genopinit.c (handle_overloaded_gen): Likewise.
11444 * gensupport.c (replace_operands_with_dups): Iterate over
11445 the new rtx's format rather than the old one's.
11447 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11449 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11450 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11451 order clause entries.
11452 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11453 * tree-pretty-print.c (dump_omp_clause): Likewise.
11454 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11456 * omp-low.c (scan_sharing_clauses): Likewise.
11457 * tree-nested.c (convert_nonlocal_omp_clauses,
11458 convert_local_omp_clauses): Likewise.
11460 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11462 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11463 fallthrough target of current basic block isn't the placed
11466 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11469 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11470 (_mm512_storeu_epi64): Likewise.
11471 (_mm512_loadu_epi32): Likewise.
11472 (_mm512_storeu_epi32): Likewise.
11473 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11474 (_mm_storeu_epi64): Likewise.
11475 (_mm256_storeu_epi32): Likewise.
11476 (_mm_storeu_epi32): Likewise.
11478 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11480 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11482 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11484 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11487 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11490 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11491 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11492 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11493 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11494 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11495 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11497 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11498 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11499 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11501 (sse2_cvttpd2dq<mask_name>): Change into ...
11502 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11503 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11504 (*sse2_cvtpd2dq<mask_name>): Change into ...
11505 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11506 Add "C" constraint to const0_operand.
11507 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11508 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11512 * config/i386/i386-builtin-types.def
11513 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11514 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11515 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11516 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11517 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11518 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11519 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11520 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11521 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11522 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11523 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11524 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11525 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11526 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11527 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11528 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11529 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11530 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11531 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11532 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11533 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11534 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11535 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11536 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11537 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11538 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11539 __builtin_ia32_vpdpbusd_v4si_maskz,
11540 __builtin_ia32_vpdpbusds_v16si_mask,
11541 __builtin_ia32_vpdpbusds_v16si_maskz,
11542 __builtin_ia32_vpdpbusds_v8si_mask,
11543 __builtin_ia32_vpdpbusds_v8si_maskz,
11544 __builtin_ia32_vpdpbusds_v4si_mask,
11545 __builtin_ia32_vpdpbusds_v4si_maskz,
11546 __builtin_ia32_vpdpwssd_v16si_mask,
11547 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11548 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11549 __builtin_ia32_vpdpwssd_v4si_maskz,
11550 __builtin_ia32_vpdpwssds_v16si_mask,
11551 __builtin_ia32_vpdpwssds_v16si_maskz,
11552 __builtin_ia32_vpdpwssds_v8si_mask,
11553 __builtin_ia32_vpdpwssds_v8si_maskz,
11554 __builtin_ia32_vpdpwssds_v4si_mask,
11555 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11556 suffixed types rather than *_INT.
11557 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11558 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11559 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11560 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11561 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11562 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11564 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11566 * tree-vrp.c (intersect_ranges): If we know the intersection is
11567 empty, there is no need to conservatively add anything else to
11570 2019-07-11 Richard Biener <rguenther@suse.de>
11572 PR middle-end/91131
11573 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11574 when the object is volatile and we have not cleared it even though
11575 there are no nonzero elements.
11577 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11579 * config/rs6000/predicates.md (cint34_operand): Update
11580 SIGNED_34BIT_OFFSET_P call.
11581 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11582 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11583 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11584 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11585 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11587 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11588 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11589 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11590 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11591 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11593 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11595 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11596 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11597 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11598 (DEF_MIN_OSX_VERSION): New.
11600 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11602 * fold-const.c (fold_relational_const): Fix folding of
11603 vector-to-scalar NE_EXPRs.
11604 (test_vector_folding): Add more tests.
11606 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11609 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11610 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11611 (vec_setv2di_internal): Reexpress as...
11612 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11613 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11614 rather than gen_neon_vset_lane<mode>.
11616 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11619 * lra-constraints.c (process_alt_operands): Don't match user
11620 defined regs only if they are early clobbers.
11622 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11624 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11626 2019-07-10 Richard Biener <rguenther@suse.de>
11628 PR tree-optimization/91126
11629 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11630 native encoding offset for BYTES_BIG_ENDIAN.
11631 (vn_reference_lookup_3): Likewise.
11633 2019-07-10 Richard Biener <rguenther@suse.de>
11635 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11636 LHS whenever possible.
11638 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11640 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11641 from ...; work also on duplicated types.
11642 (nonoverlapping_component_refs_since_match): ... here
11643 (ncr_type_uid): Break out from ...
11644 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11646 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11647 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11649 2019-07-09 Martin Sebor <msebor@redhat.com>
11651 PR tree-optimization/90989
11652 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11653 optimization to just single character stores.
11655 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11657 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11658 Swap operands only once.
11660 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11662 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11663 for both call instructions.
11665 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11667 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11668 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11670 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11672 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11673 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11674 function from rs6000-logue.c back to rs6000.c.
11675 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11677 2019-07-09 Martin Sebor <msebor@redhat.com>
11680 * auto-profile.c: Change class-key of PODs to struct and others
11682 * basic-block.h: Same.
11683 * bitmap.c (bitmap_alloc): Same.
11685 * builtins.c (expand_builtin_prefetch): Same.
11686 (expand_builtin_interclass_mathfn): Same.
11687 (expand_builtin_strlen): Same.
11688 (expand_builtin_mempcpy_args): Same.
11689 (expand_cmpstr): Same.
11690 (expand_builtin___clear_cache): Same.
11691 (expand_ifn_atomic_bit_test_and): Same.
11692 (expand_builtin_thread_pointer): Same.
11693 (expand_builtin_set_thread_pointer): Same.
11694 * caller-save.c (setup_save_areas): Same.
11695 (replace_reg_with_saved_mem): Same.
11696 (insert_restore): Same.
11697 (insert_save): Same.
11698 (add_used_regs): Same.
11699 * cfg.c (get_bb_copy): Same.
11700 (set_loop_copy): Same.
11703 * cfgexpand.c (alloc_stack_frame_space): Same.
11704 (add_stack_var): Same.
11705 (add_stack_var_conflict): Same.
11706 (add_scope_conflicts_1): Same.
11707 (update_alias_info_with_stack_vars): Same.
11708 (expand_used_vars): Same.
11709 * cfghooks.c (redirect_edge_and_branch_force): Same.
11710 (delete_basic_block): Same.
11711 (split_edge): Same.
11712 (make_forwarder_block): Same.
11713 (force_nonfallthru): Same.
11714 (duplicate_block): Same.
11715 (lv_flush_pending_stmts): Same.
11716 * cfghooks.h: Same.
11717 * cfgloop.c (flow_loops_cfg_dump): Same.
11718 (flow_loop_nested_p): Same.
11719 (superloop_at_depth): Same.
11720 (get_loop_latch_edges): Same.
11721 (flow_loop_dump): Same.
11722 (flow_loops_dump): Same.
11723 (flow_loops_free): Same.
11724 (flow_loop_nodes_find): Same.
11725 (establish_preds): Same.
11726 (flow_loop_tree_node_add): Same.
11727 (flow_loop_tree_node_remove): Same.
11728 (flow_loops_find): Same.
11729 (find_subloop_latch_edge_by_profile): Same.
11730 (find_subloop_latch_edge_by_ivs): Same.
11731 (mfb_redirect_edges_in_set): Same.
11732 (form_subloop): Same.
11733 (merge_latch_edges): Same.
11734 (disambiguate_multiple_latches): Same.
11735 (disambiguate_loops_with_multiple_latches): Same.
11736 (flow_bb_inside_loop_p): Same.
11737 (glb_enum_p): Same.
11738 (get_loop_body_with_size): Same.
11739 (get_loop_body): Same.
11740 (fill_sons_in_loop): Same.
11741 (get_loop_body_in_dom_order): Same.
11742 (get_loop_body_in_custom_order): Same.
11743 (release_recorded_exits): Same.
11744 (get_loop_exit_edges): Same.
11745 (num_loop_branches): Same.
11746 (remove_bb_from_loops): Same.
11747 (find_common_loop): Same.
11748 (delete_loop): Same.
11749 (cancel_loop): Same.
11750 (verify_loop_structure): Same.
11751 (loop_preheader_edge): Same.
11752 (loop_exit_edge_p): Same.
11753 (single_exit): Same.
11754 (loop_exits_to_bb_p): Same.
11755 (loop_exits_from_bb_p): Same.
11756 (get_loop_location): Same.
11757 (record_niter_bound): Same.
11758 (get_estimated_loop_iterations_int): Same.
11759 (max_stmt_executions_int): Same.
11760 (likely_max_stmt_executions_int): Same.
11761 (get_estimated_loop_iterations): Same.
11762 (get_max_loop_iterations): Same.
11763 (get_max_loop_iterations_int): Same.
11764 (get_likely_max_loop_iterations): Same.
11765 * cfgloop.h (simple_loop_desc): Same.
11767 (loop_depth): Same.
11768 (loop_outer): Same.
11769 (loop_iterator::next): Same.
11770 (loop_outermost): Same.
11771 * cfgloopanal.c (mark_irreducible_loops): Same.
11772 (num_loop_insns): Same.
11773 (average_num_loop_insns): Same.
11774 (expected_loop_iterations_unbounded): Same.
11775 (expected_loop_iterations): Same.
11776 (mark_loop_exit_edges): Same.
11777 (single_likely_exit): Same.
11778 * cfgloopmanip.c (fix_bb_placement): Same.
11779 (fix_bb_placements): Same.
11780 (remove_path): Same.
11781 (place_new_loop): Same.
11783 (scale_loop_frequencies): Same.
11784 (scale_loop_profile): Same.
11785 (create_empty_if_region_on_edge): Same.
11786 (create_empty_loop_on_edge): Same.
11789 (fix_loop_placements): Same.
11790 (copy_loop_info): Same.
11791 (duplicate_loop): Same.
11792 (duplicate_subloops): Same.
11793 (loop_redirect_edge): Same.
11794 (can_duplicate_loop_p): Same.
11795 (duplicate_loop_to_header_edge): Same.
11796 (mfb_keep_just): Same.
11797 (has_preds_from_loop): Same.
11798 (create_preheader): Same.
11799 (create_preheaders): Same.
11800 (lv_adjust_loop_entry_edge): Same.
11801 (loop_version): Same.
11802 * cfgloopmanip.h: Same.
11804 * cgraphbuild.c: Same.
11805 * combine.c (make_extraction): Same.
11806 * config/i386/i386-features.c: Same.
11807 * config/i386/i386-features.h: Same.
11808 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11809 (ix86_emit_outlined_ms2sysv_restore): Same.
11810 (ix86_noce_conversion_profitable_p): Same.
11811 (ix86_init_cost): Same.
11812 (ix86_simd_clone_usable): Same.
11813 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11815 * coretypes.h: Same.
11816 * data-streamer-in.c (string_for_index): Change class-key of PODs
11817 to struct and others to class.
11818 (streamer_read_indexed_string): Same.
11819 (streamer_read_string): Same.
11820 (bp_unpack_indexed_string): Same.
11821 (bp_unpack_string): Same.
11822 (streamer_read_uhwi): Same.
11823 (streamer_read_hwi): Same.
11824 (streamer_read_gcov_count): Same.
11825 (streamer_read_wide_int): Same.
11826 * data-streamer.h (streamer_write_bitpack): Same.
11827 (bp_unpack_value): Same.
11828 (streamer_write_char_stream): Same.
11829 (streamer_write_hwi_in_range): Same.
11830 (streamer_write_record_start): Same.
11831 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11832 (add_cross_iteration_register_deps): Same.
11833 (build_intra_loop_deps): Same.
11834 * df-core.c (df_analyze): Same.
11835 (loop_post_order_compute): Same.
11836 (loop_inverted_post_order_compute): Same.
11837 * df-problems.c (df_rd_alloc): Same.
11838 (df_rd_simulate_one_insn): Same.
11839 (df_rd_local_compute): Same.
11840 (df_rd_init_solution): Same.
11841 (df_rd_confluence_n): Same.
11842 (df_rd_transfer_function): Same.
11843 (df_rd_free): Same.
11844 (df_rd_dump_defs_set): Same.
11845 (df_rd_top_dump): Same.
11846 (df_lr_alloc): Same.
11847 (df_lr_reset): Same.
11848 (df_lr_local_compute): Same.
11849 (df_lr_init): Same.
11850 (df_lr_confluence_n): Same.
11851 (df_lr_free): Same.
11852 (df_lr_top_dump): Same.
11853 (df_lr_verify_transfer_functions): Same.
11854 (df_live_alloc): Same.
11855 (df_live_reset): Same.
11856 (df_live_init): Same.
11857 (df_live_confluence_n): Same.
11858 (df_live_finalize): Same.
11859 (df_live_free): Same.
11860 (df_live_top_dump): Same.
11861 (df_live_verify_transfer_functions): Same.
11862 (df_mir_alloc): Same.
11863 (df_mir_reset): Same.
11864 (df_mir_init): Same.
11865 (df_mir_confluence_n): Same.
11866 (df_mir_free): Same.
11867 (df_mir_top_dump): Same.
11868 (df_word_lr_alloc): Same.
11869 (df_word_lr_reset): Same.
11870 (df_word_lr_init): Same.
11871 (df_word_lr_confluence_n): Same.
11872 (df_word_lr_free): Same.
11873 (df_word_lr_top_dump): Same.
11874 (df_md_alloc): Same.
11875 (df_md_simulate_one_insn): Same.
11876 (df_md_reset): Same.
11877 (df_md_init): Same.
11878 (df_md_free): Same.
11879 (df_md_top_dump): Same.
11880 * df-scan.c (df_insn_delete): Same.
11881 (df_insn_rescan): Same.
11882 (df_notes_rescan): Same.
11883 (df_sort_and_compress_mws): Same.
11884 (df_install_mws): Same.
11885 (df_refs_add_to_chains): Same.
11886 (df_ref_create_structure): Same.
11887 (df_ref_record): Same.
11888 (df_def_record_1): Same.
11889 (df_find_hard_reg_defs): Same.
11890 (df_uses_record): Same.
11891 (df_get_conditional_uses): Same.
11892 (df_get_call_refs): Same.
11893 (df_recompute_luids): Same.
11894 (df_get_entry_block_def_set): Same.
11895 (df_entry_block_defs_collect): Same.
11896 (df_get_exit_block_use_set): Same.
11897 (df_exit_block_uses_collect): Same.
11898 (df_mws_verify): Same.
11899 (df_bb_verify): Same.
11900 * df.h (df_scan_get_bb_info): Same.
11901 * doc/tm.texi: Same.
11902 * dse.c (record_store): Same.
11903 * dumpfile.h: Same.
11904 * emit-rtl.c (const_fixed_hasher::equal): Same.
11905 (set_mem_attributes_minus_bitpos): Same.
11906 (change_address): Same.
11907 (adjust_address_1): Same.
11908 (offset_address): Same.
11909 * emit-rtl.h: Same.
11910 * except.c (dw2_build_landing_pads): Same.
11911 (sjlj_emit_dispatch_table): Same.
11912 * explow.c (allocate_dynamic_stack_space): Same.
11913 (emit_stack_probe): Same.
11914 (probe_stack_range): Same.
11915 * expmed.c (store_bit_field_using_insv): Same.
11916 (store_bit_field_1): Same.
11917 (store_integral_bit_field): Same.
11918 (extract_bit_field_using_extv): Same.
11919 (extract_bit_field_1): Same.
11920 (emit_cstore): Same.
11921 * expr.c (emit_block_move_via_cpymem): Same.
11922 (expand_cmpstrn_or_cmpmem): Same.
11923 (set_storage_via_setmem): Same.
11924 (emit_single_push_insn_1): Same.
11925 (expand_assignment): Same.
11926 (store_constructor): Same.
11927 (expand_expr_real_2): Same.
11928 (expand_expr_real_1): Same.
11929 (try_casesi): Same.
11931 * function.c (try_fit_stack_local): Same.
11932 (assign_stack_local_1): Same.
11933 (assign_stack_local): Same.
11934 (cut_slot_from_list): Same.
11935 (insert_slot_to_list): Same.
11936 (max_slot_level): Same.
11937 (move_slot_to_level): Same.
11938 (temp_address_hasher::equal): Same.
11939 (remove_unused_temp_slot_addresses): Same.
11940 (assign_temp): Same.
11941 (combine_temp_slots): Same.
11942 (update_temp_slot_address): Same.
11943 (preserve_temp_slots): Same.
11944 * function.h: Same.
11946 * gcc-rich-location.h: Same.
11948 * genattrtab.c (check_attr_test): Same.
11949 (check_attr_value): Same.
11950 (convert_set_attr_alternative): Same.
11951 (convert_set_attr): Same.
11952 (check_defs): Same.
11953 (copy_boolean): Same.
11954 (get_attr_value): Same.
11955 (expand_delays): Same.
11956 (make_length_attrs): Same.
11958 (make_alternative_compare): Same.
11959 (simplify_test_exp): Same.
11960 (tests_attr_p): Same.
11961 (get_attr_order): Same.
11962 (clear_struct_flag): Same.
11964 (compares_alternatives_p): Same.
11967 (find_attrs_to_cache): Same.
11968 (write_test_expr): Same.
11969 (walk_attr_value): Same.
11970 (write_attr_get): Same.
11971 (eliminate_known_true): Same.
11972 (write_insn_cases): Same.
11973 (write_attr_case): Same.
11974 (write_attr_valueq): Same.
11975 (write_attr_value): Same.
11976 (write_dummy_eligible_delay): Same.
11977 (next_comma_elt): Same.
11979 (make_internal_attr): Same.
11980 (copy_rtx_unchanging): Same.
11981 (gen_insn_reserv): Same.
11982 (check_tune_attr): Same.
11983 (make_automaton_attrs): Same.
11984 (handle_arg): Same.
11985 * genextract.c (gen_insn): Same.
11986 (VEC_char_to_string): Same.
11987 * genmatch.c (print_operand): Same.
11989 (parser::parse_operation): Same.
11990 (parser::parse_capture): Same.
11991 (parser::parse_c_expr): Same.
11992 (parser::parse_simplify): Same.
11994 * genoutput.c (output_operand_data): Same.
11995 (output_get_insn_name): Same.
11996 (compare_operands): Same.
11997 (place_operands): Same.
11998 (process_template): Same.
11999 (validate_insn_alternatives): Same.
12000 (validate_insn_operands): Same.
12001 (gen_expand): Same.
12002 (note_constraint): Same.
12003 * genpreds.c (write_one_predicate_function): Same.
12004 (add_constraint): Same.
12005 (process_define_register_constraint): Same.
12006 (write_lookup_constraint_1): Same.
12007 (write_lookup_constraint_array): Same.
12008 (write_insn_constraint_len): Same.
12009 (write_reg_class_for_constraint_1): Same.
12010 (write_constraint_satisfied_p_array): Same.
12011 * genrecog.c (optimize_subroutine_group): Same.
12012 * gensupport.c (process_define_predicate): Same.
12013 (queue_pattern): Same.
12014 (remove_from_queue): Same.
12015 (process_rtx): Same.
12016 (is_predicable): Same.
12017 (change_subst_attribute): Same.
12018 (subst_pattern_match): Same.
12019 (alter_constraints): Same.
12020 (alter_attrs_for_insn): Same.
12021 (shift_output_template): Same.
12022 (alter_output_for_subst_insn): Same.
12023 (process_one_cond_exec): Same.
12025 (process_define_cond_exec): Same.
12026 (mnemonic_htab_callback): Same.
12027 (gen_mnemonic_attr): Same.
12028 (read_md_rtx): Same.
12029 * ggc-page.c: Same.
12030 * gimple-loop-interchange.cc (dump_reduction): Same.
12031 (dump_induction): Same.
12032 (loop_cand::~loop_cand): Same.
12033 (free_data_refs_with_aux): Same.
12034 (tree_loop_interchange::interchange_loops): Same.
12035 (tree_loop_interchange::map_inductions_to_loop): Same.
12036 (tree_loop_interchange::move_code_to_inner_loop): Same.
12037 (compute_access_stride): Same.
12038 (compute_access_strides): Same.
12039 (proper_loop_form_for_interchange): Same.
12040 (tree_loop_interchange_compute_ddrs): Same.
12041 (prune_datarefs_not_in_loop): Same.
12042 (prepare_data_references): Same.
12043 (pass_linterchange::execute): Same.
12044 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
12045 (unroll_jam_possible_p): Same.
12046 (fuse_loops): Same.
12047 (adjust_unroll_factor): Same.
12048 (tree_loop_unroll_and_jam): Same.
12049 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
12050 (loop_versioning::expensive_stmt_p): Same.
12051 (loop_versioning::version_for_unity): Same.
12052 (loop_versioning::dump_inner_likelihood): Same.
12053 (loop_versioning::find_per_loop_multiplication): Same.
12054 (loop_versioning::analyze_term_using_scevs): Same.
12055 (loop_versioning::record_address_fragment): Same.
12056 (loop_versioning::analyze_expr): Same.
12057 (loop_versioning::analyze_blocks): Same.
12058 (loop_versioning::prune_conditions): Same.
12059 (loop_versioning::merge_loop_info): Same.
12060 (loop_versioning::add_loop_to_queue): Same.
12061 (loop_versioning::decide_whether_loop_is_versionable): Same.
12062 (loop_versioning::make_versioning_decisions): Same.
12063 (loop_versioning::implement_versioning_decisions): Same.
12064 * gimple-ssa-evrp-analyze.c
12065 (evrp_range_analyzer::record_ranges_from_phis): Same.
12066 * gimple-ssa-store-merging.c (split_store::split_store): Same.
12067 (count_multiple_uses): Same.
12068 (split_group): Same.
12069 (imm_store_chain_info::output_merged_store): Same.
12070 (pass_store_merging::process_store): Same.
12071 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
12072 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
12074 (alloca_call_type): Same.
12075 (pass_walloca::execute): Same.
12076 * gimple-streamer-in.c (input_phi): Same.
12077 (input_gimple_stmt): Same.
12078 * gimple-streamer.h: Same.
12079 * godump.c (go_force_record_alignment): Same.
12080 (go_format_type): Same.
12081 (go_output_type): Same.
12082 (go_output_fndecl): Same.
12083 (go_output_typedef): Same.
12084 (keyword_hash_init): Same.
12085 (find_dummy_types): Same.
12086 * graph.c (draw_cfg_nodes_no_loops): Same.
12087 (draw_cfg_nodes_for_loop): Same.
12088 * hard-reg-set.h (hard_reg_set_iter_next): Same.
12089 * hsa-brig.c: Same.
12090 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
12091 * hsa-dump.c (dump_hsa_cfun): Same.
12092 * hsa-gen.c (gen_function_def_parameters): Same.
12093 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
12094 * input.c (dump_line_table_statistics): Same.
12095 (test_lexer): Same.
12097 * internal-fn.c (get_multi_vector_move): Same.
12098 (expand_load_lanes_optab_fn): Same.
12099 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
12100 (expand_GOMP_SIMT_EXIT): Same.
12101 (expand_GOMP_SIMT_LAST_LANE): Same.
12102 (expand_GOMP_SIMT_ORDERED_PRED): Same.
12103 (expand_GOMP_SIMT_VOTE_ANY): Same.
12104 (expand_GOMP_SIMT_XCHG_BFLY): Same.
12105 (expand_GOMP_SIMT_XCHG_IDX): Same.
12106 (expand_addsub_overflow): Same.
12107 (expand_neg_overflow): Same.
12108 (expand_mul_overflow): Same.
12109 (expand_call_mem_ref): Same.
12110 (expand_mask_load_optab_fn): Same.
12111 (expand_scatter_store_optab_fn): Same.
12112 (expand_gather_load_optab_fn): Same.
12113 * ipa-cp.c (ipa_get_parm_lattices): Same.
12114 (print_all_lattices): Same.
12115 (ignore_edge_p): Same.
12116 (build_toporder_info): Same.
12117 (free_toporder_info): Same.
12118 (push_node_to_stack): Same.
12119 (ipcp_lattice<valtype>::set_contains_variable): Same.
12120 (set_agg_lats_to_bottom): Same.
12121 (ipcp_bits_lattice::meet_with): Same.
12122 (set_single_call_flag): Same.
12123 (initialize_node_lattices): Same.
12124 (ipa_get_jf_ancestor_result): Same.
12125 (ipcp_verify_propagated_values): Same.
12126 (propagate_scalar_across_jump_function): Same.
12127 (propagate_context_across_jump_function): Same.
12128 (propagate_bits_across_jump_function): Same.
12129 (ipa_vr_operation_and_type_effects): Same.
12130 (propagate_vr_across_jump_function): Same.
12131 (set_check_aggs_by_ref): Same.
12132 (set_chain_of_aglats_contains_variable): Same.
12133 (merge_aggregate_lattices): Same.
12134 (agg_pass_through_permissible_p): Same.
12135 (propagate_aggs_across_jump_function): Same.
12136 (call_passes_through_thunk_p): Same.
12137 (propagate_constants_across_call): Same.
12138 (devirtualization_time_bonus): Same.
12139 (good_cloning_opportunity_p): Same.
12140 (context_independent_aggregate_values): Same.
12141 (gather_context_independent_values): Same.
12142 (perform_estimation_of_a_value): Same.
12143 (estimate_local_effects): Same.
12144 (value_topo_info<valtype>::add_val): Same.
12145 (add_all_node_vals_to_toposort): Same.
12146 (value_topo_info<valtype>::propagate_effects): Same.
12147 (ipcp_propagate_stage): Same.
12148 (ipcp_discover_new_direct_edges): Same.
12149 (same_node_or_its_all_contexts_clone_p): Same.
12150 (cgraph_edge_brings_value_p): Same.
12151 (gather_edges_for_value): Same.
12152 (create_specialized_node): Same.
12153 (find_more_scalar_values_for_callers_subset): Same.
12154 (find_more_contexts_for_caller_subset): Same.
12155 (copy_plats_to_inter): Same.
12156 (intersect_aggregates_with_edge): Same.
12157 (find_aggregate_values_for_callers_subset): Same.
12158 (cgraph_edge_brings_all_agg_vals_for_node): Same.
12159 (decide_about_value): Same.
12160 (decide_whether_version_node): Same.
12161 (spread_undeadness): Same.
12162 (identify_dead_nodes): Same.
12163 (ipcp_store_vr_results): Same.
12164 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
12165 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
12166 (redirect_to_unreachable): Same.
12167 (edge_set_predicate): Same.
12168 (evaluate_conditions_for_known_args): Same.
12169 (evaluate_properties_for_edge): Same.
12170 (ipa_fn_summary_t::duplicate): Same.
12171 (ipa_call_summary_t::duplicate): Same.
12172 (dump_ipa_call_summary): Same.
12173 (ipa_dump_fn_summary): Same.
12174 (eliminated_by_inlining_prob): Same.
12175 (set_cond_stmt_execution_predicate): Same.
12176 (set_switch_stmt_execution_predicate): Same.
12177 (compute_bb_predicates): Same.
12178 (will_be_nonconstant_expr_predicate): Same.
12179 (phi_result_unknown_predicate): Same.
12180 (analyze_function_body): Same.
12181 (compute_fn_summary): Same.
12182 (estimate_edge_devirt_benefit): Same.
12183 (estimate_edge_size_and_time): Same.
12184 (estimate_calls_size_and_time): Same.
12185 (estimate_node_size_and_time): Same.
12186 (remap_edge_change_prob): Same.
12187 (remap_edge_summaries): Same.
12188 (ipa_merge_fn_summary_after_inlining): Same.
12189 (ipa_fn_summary_generate): Same.
12190 (inline_read_section): Same.
12191 (ipa_fn_summary_read): Same.
12192 (ipa_fn_summary_write): Same.
12193 * ipa-fnsummary.h: Same.
12194 * ipa-hsa.c (ipa_hsa_read_section): Same.
12195 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
12196 * ipa-icf.c (sem_function::param_used_p): Same.
12197 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
12198 * ipa-inline.c (edge_badness): Same.
12199 (inline_small_functions): Same.
12200 * ipa-polymorphic-call.c
12201 (ipa_polymorphic_call_context::stream_out): Same.
12202 * ipa-predicate.c (predicate::remap_after_duplication): Same.
12203 (predicate::remap_after_inlining): Same.
12204 (predicate::stream_out): Same.
12205 * ipa-predicate.h: Same.
12206 * ipa-profile.c (ipa_profile_read_summary): Same.
12207 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
12208 (count_formal_params): Same.
12209 (ipa_dump_param): Same.
12210 (ipa_alloc_node_params): Same.
12211 (ipa_print_node_jump_functions_for_edge): Same.
12212 (ipa_print_node_jump_functions): Same.
12213 (ipa_load_from_parm_agg): Same.
12214 (get_ancestor_addr_info): Same.
12215 (ipa_compute_jump_functions_for_edge): Same.
12216 (ipa_analyze_virtual_call_uses): Same.
12217 (ipa_analyze_stmt_uses): Same.
12218 (ipa_analyze_params_uses_in_bb): Same.
12219 (update_jump_functions_after_inlining): Same.
12220 (try_decrement_rdesc_refcount): Same.
12221 (ipa_impossible_devirt_target): Same.
12222 (update_indirect_edges_after_inlining): Same.
12223 (combine_controlled_uses_counters): Same.
12224 (ipa_edge_args_sum_t::duplicate): Same.
12225 (ipa_write_jump_function): Same.
12226 (ipa_write_indirect_edge_info): Same.
12227 (ipa_write_node_info): Same.
12228 (ipa_read_edge_info): Same.
12229 (ipa_prop_read_section): Same.
12230 (read_replacements_section): Same.
12231 * ipa-prop.h (ipa_get_param_count): Same.
12232 (ipa_get_param): Same.
12233 (ipa_get_type): Same.
12234 (ipa_get_param_move_cost): Same.
12235 (ipa_set_param_used): Same.
12236 (ipa_get_controlled_uses): Same.
12237 (ipa_set_controlled_uses): Same.
12238 (ipa_get_cs_argument_count): Same.
12239 * ipa-pure-const.c (analyze_function): Same.
12240 (pure_const_read_summary): Same.
12242 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
12243 * ipa-split.c (test_nonssa_use): Same.
12244 (dump_split_point): Same.
12245 (dominated_by_forbidden): Same.
12246 (split_part_set_ssa_name_p): Same.
12247 (find_split_points): Same.
12248 * ira-build.c (finish_loop_tree_nodes): Same.
12249 (low_pressure_loop_node_p): Same.
12250 * ira-color.c (ira_reuse_stack_slot): Same.
12252 * ira.c (setup_reg_equiv): Same.
12253 (print_insn_chain): Same.
12255 * loop-doloop.c (doloop_condition_get): Same.
12257 (record_reg_sets): Same.
12258 (doloop_optimize): Same.
12259 * loop-init.c (loop_optimizer_init): Same.
12260 (fix_loop_structure): Same.
12261 * loop-invariant.c (merge_identical_invariants): Same.
12262 (compute_always_reached): Same.
12263 (find_exits): Same.
12264 (may_assign_reg_p): Same.
12265 (find_invariants_bb): Same.
12266 (find_invariants_body): Same.
12267 (replace_uses): Same.
12268 (can_move_invariant_reg): Same.
12269 (free_inv_motion_data): Same.
12270 (move_single_loop_invariants): Same.
12271 (change_pressure): Same.
12272 (mark_ref_regs): Same.
12273 (calculate_loop_reg_pressure): Same.
12274 * loop-iv.c (biv_entry_hasher::equal): Same.
12275 (iv_extend_to_rtx_code): Same.
12276 (check_iv_ref_table_size): Same.
12277 (clear_iv_info): Same.
12278 (latch_dominating_def): Same.
12279 (iv_get_reaching_def): Same.
12280 (iv_constant): Same.
12286 (get_biv_step): Same.
12288 (analyzed_for_bivness_p): Same.
12289 (record_biv): Same.
12290 (iv_analyze_biv): Same.
12291 (iv_analyze_expr): Same.
12292 (iv_analyze_def): Same.
12293 (iv_analyze_op): Same.
12294 (iv_analyze): Same.
12295 (iv_analyze_result): Same.
12297 (eliminate_implied_conditions): Same.
12298 (simplify_using_initial_values): Same.
12299 (shorten_into_mode): Same.
12300 (canonicalize_iv_subregs): Same.
12301 (determine_max_iter): Same.
12302 (check_simple_exit): Same.
12303 (find_simple_exit): Same.
12304 (get_simple_loop_desc): Same.
12305 * loop-unroll.c (report_unroll): Same.
12306 (decide_unrolling): Same.
12307 (unroll_loops): Same.
12308 (loop_exit_at_end_p): Same.
12309 (decide_unroll_constant_iterations): Same.
12310 (unroll_loop_constant_iterations): Same.
12311 (compare_and_jump_seq): Same.
12312 (unroll_loop_runtime_iterations): Same.
12313 (decide_unroll_stupid): Same.
12314 (unroll_loop_stupid): Same.
12315 (referenced_in_one_insn_in_loop_p): Same.
12316 (reset_debug_uses_in_loop): Same.
12317 (analyze_iv_to_split_insn): Same.
12318 * lra-eliminations.c (lra_debug_elim_table): Same.
12319 (setup_can_eliminate): Same.
12321 (lra_get_elimination_hard_regno): Same.
12322 (lra_eliminate_regs_1): Same.
12323 (eliminate_regs_in_insn): Same.
12324 (update_reg_eliminate): Same.
12325 (init_elimination): Same.
12326 (lra_eliminate): Same.
12328 * lra-lives.c (initiate_live_solver): Same.
12329 * lra-remat.c (create_remat_bb_data): Same.
12330 * lra-spills.c (lra_spill): Same.
12331 * lra.c (lra_set_insn_recog_data): Same.
12332 (lra_set_used_insn_alternative_by_uid): Same.
12333 (init_reg_info): Same.
12334 (expand_reg_info): Same.
12335 * lto-cgraph.c (output_symtab): Same.
12336 (read_identifier): Same.
12337 (get_alias_symbol): Same.
12338 (input_node): Same.
12339 (input_varpool_node): Same.
12341 (input_edge): Same.
12342 (input_cgraph_1): Same.
12343 (input_refs): Same.
12344 (input_symtab): Same.
12345 (input_offload_tables): Same.
12346 (output_cgraph_opt_summary): Same.
12347 (input_edge_opt_summary): Same.
12348 (input_cgraph_opt_section): Same.
12349 * lto-section-in.c (lto_free_raw_section_data): Same.
12350 (lto_create_simple_input_block): Same.
12351 (lto_free_function_in_decl_state_for_node): Same.
12352 * lto-streamer-in.c (lto_tag_check_set): Same.
12353 (lto_location_cache::revert_location_cache): Same.
12354 (lto_location_cache::input_location): Same.
12355 (lto_input_location): Same.
12356 (stream_input_location_now): Same.
12357 (lto_input_tree_ref): Same.
12358 (lto_input_eh_catch_list): Same.
12359 (input_eh_region): Same.
12360 (lto_init_eh): Same.
12361 (make_new_block): Same.
12363 (fixup_call_stmt_edges): Same.
12364 (input_struct_function_base): Same.
12365 (input_function): Same.
12366 (lto_read_body_or_constructor): Same.
12367 (lto_read_tree_1): Same.
12368 (lto_read_tree): Same.
12369 (lto_input_scc): Same.
12370 (lto_input_tree_1): Same.
12371 (lto_input_toplevel_asms): Same.
12372 (lto_input_mode_table): Same.
12373 (lto_reader_init): Same.
12374 (lto_data_in_create): Same.
12375 * lto-streamer-out.c (output_cfg): Same.
12376 * lto-streamer.h: Same.
12377 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12378 (generate_prolog_epilog): Same.
12379 (mark_loop_unsched): Same.
12380 (dump_insn_location): Same.
12381 (loop_canon_p): Same.
12382 (sms_schedule): Same.
12383 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12384 (expand_omp_for_generic): Same.
12385 (expand_omp_for_static_nochunk): Same.
12386 (expand_omp_for_static_chunk): Same.
12387 (expand_omp_simd): Same.
12388 (expand_omp_taskloop_for_inner): Same.
12389 (expand_oacc_for): Same.
12390 (expand_omp_atomic_pipeline): Same.
12391 (mark_loops_in_oacc_kernels_region): Same.
12392 * omp-offload.c (oacc_xform_loop): Same.
12393 * omp-simd-clone.c (simd_clone_adjust): Same.
12394 * optabs-query.c (get_traditional_extraction_insn): Same.
12395 * optabs.c (expand_vector_broadcast): Same.
12396 (expand_binop_directly): Same.
12397 (expand_twoval_unop): Same.
12398 (expand_twoval_binop): Same.
12399 (expand_unop_direct): Same.
12400 (emit_indirect_jump): Same.
12401 (emit_conditional_move): Same.
12402 (emit_conditional_neg_or_complement): Same.
12403 (emit_conditional_add): Same.
12404 (vector_compare_rtx): Same.
12405 (expand_vec_perm_1): Same.
12406 (expand_vec_perm_const): Same.
12407 (expand_vec_cond_expr): Same.
12408 (expand_vec_series_expr): Same.
12409 (maybe_emit_atomic_exchange): Same.
12410 (maybe_emit_sync_lock_test_and_set): Same.
12411 (expand_atomic_compare_and_swap): Same.
12412 (expand_atomic_load): Same.
12413 (expand_atomic_store): Same.
12414 (maybe_emit_op): Same.
12415 (valid_multiword_target_p): Same.
12416 (create_integer_operand): Same.
12417 (maybe_legitimize_operand_same_code): Same.
12418 (maybe_legitimize_operand): Same.
12419 (create_convert_operand_from_type): Same.
12420 (can_reuse_operands_p): Same.
12421 (maybe_legitimize_operands): Same.
12422 (maybe_gen_insn): Same.
12423 (maybe_expand_insn): Same.
12424 (maybe_expand_jump_insn): Same.
12425 (expand_insn): Same.
12426 * optabs.h (create_expand_operand): Same.
12427 (create_fixed_operand): Same.
12428 (create_output_operand): Same.
12429 (create_input_operand): Same.
12430 (create_convert_operand_to): Same.
12431 (create_convert_operand_from): Same.
12433 * poly-int.h: Same.
12434 * predict.c (optimize_insn_for_speed_p): Same.
12435 (optimize_loop_for_size_p): Same.
12436 (optimize_loop_for_speed_p): Same.
12437 (optimize_loop_nest_for_speed_p): Same.
12438 (get_base_value): Same.
12439 (predicted_by_loop_heuristics_p): Same.
12440 (predict_extra_loop_exits): Same.
12441 (predict_loops): Same.
12442 (predict_paths_for_bb): Same.
12443 (predict_paths_leading_to): Same.
12444 (propagate_freq): Same.
12445 (pass_profile::execute): Same.
12447 * profile-count.c (profile_count::differs_from_p): Same.
12448 (profile_probability::differs_lot_from_p): Same.
12449 * profile-count.h: Same.
12450 * profile.c (branch_prob): Same.
12451 * regrename.c (free_chain_data): Same.
12452 (mark_conflict): Same.
12453 (create_new_chain): Same.
12454 (merge_overlapping_regs): Same.
12455 (init_rename_info): Same.
12456 (merge_chains): Same.
12457 (regrename_analyze): Same.
12458 (regrename_do_replace): Same.
12459 (scan_rtx_reg): Same.
12460 (record_out_operands): Same.
12461 (build_def_use): Same.
12462 * regrename.h: Same.
12464 * reload1.c (init_reload): Same.
12465 (maybe_fix_stack_asms): Same.
12466 (copy_reloads): Same.
12467 (count_pseudo): Same.
12468 (count_spilled_pseudo): Same.
12470 (find_reload_regs): Same.
12471 (select_reload_regs): Same.
12472 (spill_hard_reg): Same.
12473 (fixup_eh_region_note): Same.
12474 (set_reload_reg): Same.
12475 (allocate_reload_reg): Same.
12476 (compute_reload_subreg_offset): Same.
12477 (reload_adjust_reg_for_icode): Same.
12478 (emit_input_reload_insns): Same.
12479 (emit_output_reload_insns): Same.
12480 (do_input_reload): Same.
12481 (inherit_piecemeal_p): Same.
12483 * sanopt.c (maybe_get_dominating_check): Same.
12484 (maybe_optimize_ubsan_ptr_ifn): Same.
12485 (can_remove_asan_check): Same.
12486 (maybe_optimize_asan_check_ifn): Same.
12487 (sanopt_optimize_walker): Same.
12488 * sched-deps.c (add_dependence_list): Same.
12489 (chain_to_prev_insn): Same.
12490 (add_insn_mem_dependence): Same.
12491 (create_insn_reg_set): Same.
12492 (maybe_extend_reg_info_p): Same.
12493 (sched_analyze_reg): Same.
12494 (sched_analyze_1): Same.
12495 (get_implicit_reg_pending_clobbers): Same.
12496 (chain_to_prev_insn_p): Same.
12497 (deps_analyze_insn): Same.
12498 (deps_start_bb): Same.
12499 (sched_free_deps): Same.
12501 (init_deps_reg_last): Same.
12503 * sched-ebb.c: Same.
12504 * sched-int.h: Same.
12505 * sched-rgn.c (add_branch_dependences): Same.
12506 (concat_insn_mem_list): Same.
12508 (sched_rgn_compute_dependencies): Same.
12509 * sel-sched-ir.c (reset_target_context): Same.
12510 (copy_deps_context): Same.
12511 (init_id_from_df): Same.
12512 (has_dependence_p): Same.
12513 (change_loops_latches): Same.
12514 (bb_top_order_comparator): Same.
12515 (make_region_from_loop_preheader): Same.
12516 (sel_init_pipelining): Same.
12517 (get_loop_nest_for_rgn): Same.
12518 (make_regions_from_the_rest): Same.
12519 (sel_is_loop_preheader_p): Same.
12520 * sel-sched-ir.h (inner_loop_header_p): Same.
12521 (get_all_loop_exits): Same.
12522 * selftest.h: Same.
12523 * sese.c (sese_build_liveouts): Same.
12524 (sese_insert_phis_for_liveouts): Same.
12525 * sese.h (defined_in_sese_p): Same.
12526 * sreal.c (sreal::stream_out): Same.
12528 * streamer-hooks.h: Same.
12529 * target-globals.c (save_target_globals): Same.
12530 * target-globals.h: Same.
12531 * target.def: Same.
12533 * targhooks.c (default_has_ifunc_p): Same.
12534 (default_empty_mask_is_expensive): Same.
12535 (default_init_cost): Same.
12536 * targhooks.h: Same.
12538 * tree-affine.c (aff_combination_mult): Same.
12539 (aff_combination_expand): Same.
12540 (aff_combination_constant_multiple_p): Same.
12541 * tree-affine.h: Same.
12542 * tree-cfg.c (build_gimple_cfg): Same.
12543 (replace_loop_annotate_in_block): Same.
12544 (replace_uses_by): Same.
12546 (dump_cfg_stats): Same.
12547 (gimple_duplicate_sese_region): Same.
12548 (gimple_duplicate_sese_tail): Same.
12549 (move_block_to_fn): Same.
12550 (replace_block_vars_by_duplicates): Same.
12551 (move_sese_region_to_fn): Same.
12552 (print_loops_bb): Same.
12553 (print_loop): Same.
12554 (print_loops): Same.
12556 (debug_loops): Same.
12557 * tree-cfg.h: Same.
12558 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12559 (chrec_fold_multiply_poly_poly): Same.
12560 (chrec_evaluate): Same.
12561 (chrec_component_in_loop_num): Same.
12562 (reset_evolution_in_loop): Same.
12563 (is_multivariate_chrec): Same.
12564 (chrec_contains_symbols): Same.
12565 (nb_vars_in_chrec): Same.
12566 (chrec_convert_1): Same.
12567 (chrec_convert_aggressive): Same.
12568 * tree-chrec.h: Same.
12569 * tree-core.h: Same.
12570 * tree-data-ref.c (dump_data_dependence_relation): Same.
12571 (canonicalize_base_object_address): Same.
12572 (data_ref_compare_tree): Same.
12573 (prune_runtime_alias_test_list): Same.
12574 (get_segment_min_max): Same.
12575 (create_intersect_range_checks): Same.
12576 (conflict_fn_no_dependence): Same.
12577 (object_address_invariant_in_loop_p): Same.
12578 (analyze_ziv_subscript): Same.
12579 (analyze_siv_subscript_cst_affine): Same.
12580 (analyze_miv_subscript): Same.
12581 (analyze_overlapping_iterations): Same.
12582 (build_classic_dist_vector_1): Same.
12583 (add_other_self_distances): Same.
12584 (same_access_functions): Same.
12585 (build_classic_dir_vector): Same.
12586 (subscript_dependence_tester_1): Same.
12587 (subscript_dependence_tester): Same.
12588 (access_functions_are_affine_or_constant_p): Same.
12589 (get_references_in_stmt): Same.
12590 (loop_nest_has_data_refs): Same.
12591 (graphite_find_data_references_in_stmt): Same.
12592 (find_data_references_in_bb): Same.
12593 (get_base_for_alignment): Same.
12594 (find_loop_nest_1): Same.
12595 (find_loop_nest): Same.
12596 * tree-data-ref.h (dr_alignment): Same.
12597 (ddr_dependence_level): Same.
12598 * tree-if-conv.c (fold_build_cond_expr): Same.
12599 (add_to_predicate_list): Same.
12600 (add_to_dst_predicate_list): Same.
12601 (phi_convertible_by_degenerating_args): Same.
12602 (idx_within_array_bound): Same.
12603 (all_preds_critical_p): Same.
12604 (pred_blocks_visited_p): Same.
12605 (predicate_bbs): Same.
12606 (build_region): Same.
12607 (if_convertible_loop_p_1): Same.
12608 (is_cond_scalar_reduction): Same.
12609 (predicate_scalar_phi): Same.
12610 (remove_conditions_and_labels): Same.
12611 (combine_blocks): Same.
12612 (version_loop_for_if_conversion): Same.
12613 (versionable_outer_loop_p): Same.
12614 (ifcvt_local_dce): Same.
12615 (tree_if_conversion): Same.
12616 (pass_if_conversion::gate): Same.
12617 * tree-if-conv.h: Same.
12618 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12619 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12621 (stmt_has_scalar_dependences_outside_loop): Same.
12622 (copy_loop_before): Same.
12623 (create_bb_after_loop): Same.
12624 (const_with_all_bytes_same): Same.
12625 (generate_memset_builtin): Same.
12626 (generate_memcpy_builtin): Same.
12627 (destroy_loop): Same.
12628 (build_rdg_partition_for_vertex): Same.
12629 (compute_access_range): Same.
12630 (data_ref_segment_size): Same.
12631 (latch_dominated_by_data_ref): Same.
12632 (compute_alias_check_pairs): Same.
12633 (fuse_memset_builtins): Same.
12634 (finalize_partitions): Same.
12635 (find_seed_stmts_for_distribution): Same.
12636 (prepare_perfect_loop_nest): Same.
12637 * tree-parloops.c (lambda_transform_legal_p): Same.
12638 (loop_parallel_p): Same.
12639 (reduc_stmt_res): Same.
12640 (add_field_for_name): Same.
12641 (create_call_for_reduction_1): Same.
12642 (replace_uses_in_bb_by): Same.
12643 (transform_to_exit_first_loop_alt): Same.
12644 (try_transform_to_exit_first_loop_alt): Same.
12645 (transform_to_exit_first_loop): Same.
12647 (gen_parallel_loop): Same.
12648 (gather_scalar_reductions): Same.
12649 (get_omp_data_i_param): Same.
12650 (try_create_reduction_list): Same.
12651 (oacc_entry_exit_single_gang): Same.
12652 (parallelize_loops): Same.
12653 * tree-pass.h: Same.
12654 * tree-predcom.c (determine_offset): Same.
12655 (last_always_executed_block): Same.
12656 (split_data_refs_to_components): Same.
12657 (suitable_component_p): Same.
12658 (valid_initializer_p): Same.
12659 (find_looparound_phi): Same.
12660 (insert_looparound_copy): Same.
12661 (add_looparound_copies): Same.
12662 (determine_roots_comp): Same.
12663 (predcom_tmp_var): Same.
12664 (initialize_root_vars): Same.
12665 (initialize_root_vars_store_elim_1): Same.
12666 (initialize_root_vars_store_elim_2): Same.
12667 (finalize_eliminated_stores): Same.
12668 (initialize_root_vars_lm): Same.
12669 (remove_stmt): Same.
12670 (determine_unroll_factor): Same.
12671 (execute_pred_commoning_cbck): Same.
12672 (base_names_in_chain_on): Same.
12673 (combine_chains): Same.
12674 (pcom_stmt_dominates_stmt_p): Same.
12675 (try_combine_chains): Same.
12676 (prepare_initializers_chain_store_elim): Same.
12677 (prepare_initializers_chain): Same.
12678 (prepare_initializers): Same.
12679 (prepare_finalizers_chain): Same.
12680 (prepare_finalizers): Same.
12681 (insert_init_seqs): Same.
12682 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12683 (compute_overall_effect_of_inner_loop): Same.
12684 (add_to_evolution_1): Same.
12685 (add_to_evolution): Same.
12686 (follow_ssa_edge_binary): Same.
12687 (follow_ssa_edge_expr): Same.
12688 (backedge_phi_arg_p): Same.
12689 (follow_ssa_edge_in_condition_phi_branch): Same.
12690 (follow_ssa_edge_in_condition_phi): Same.
12691 (follow_ssa_edge_inner_loop_phi): Same.
12692 (follow_ssa_edge): Same.
12693 (analyze_evolution_in_loop): Same.
12694 (analyze_initial_condition): Same.
12695 (interpret_loop_phi): Same.
12696 (interpret_condition_phi): Same.
12697 (interpret_rhs_expr): Same.
12698 (interpret_expr): Same.
12699 (interpret_gimple_assign): Same.
12700 (analyze_scalar_evolution_1): Same.
12701 (analyze_scalar_evolution): Same.
12702 (analyze_scalar_evolution_for_address_of): Same.
12703 (get_instantiated_value_entry): Same.
12704 (loop_closed_phi_def): Same.
12705 (instantiate_scev_name): Same.
12706 (instantiate_scev_poly): Same.
12707 (instantiate_scev_binary): Same.
12708 (instantiate_scev_convert): Same.
12709 (instantiate_scev_not): Same.
12710 (instantiate_scev_r): Same.
12711 (instantiate_scev): Same.
12712 (resolve_mixers): Same.
12713 (initialize_scalar_evolutions_analyzer): Same.
12714 (scev_reset_htab): Same.
12715 (scev_reset): Same.
12716 (derive_simple_iv_with_niters): Same.
12717 (simple_iv_with_niters): Same.
12718 (expression_expensive_p): Same.
12719 (final_value_replacement_loop): Same.
12720 * tree-scalar-evolution.h (block_before_loop): Same.
12721 * tree-ssa-address.h: Same.
12722 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12723 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12724 (record_edge_info): Same.
12725 * tree-ssa-live.c (var_map_base_fini): Same.
12726 (remove_unused_locals): Same.
12727 * tree-ssa-live.h: Same.
12728 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12729 (pass_ch_vect::execute): Same.
12730 (pass_ch::process_loop_p): Same.
12731 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12732 (movement_possibility): Same.
12733 (outermost_invariant_loop): Same.
12735 (determine_max_movement): Same.
12736 (invariantness_dom_walker::before_dom_children): Same.
12737 (move_computations): Same.
12738 (may_move_till): Same.
12739 (force_move_till_op): Same.
12740 (force_move_till): Same.
12741 (memref_free): Same.
12742 (record_mem_ref_loc): Same.
12743 (set_ref_stored_in_loop): Same.
12744 (mark_ref_stored): Same.
12745 (sort_bbs_in_loop_postorder_cmp): Same.
12746 (sort_locs_in_loop_postorder_cmp): Same.
12747 (analyze_memory_references): Same.
12748 (mem_refs_may_alias_p): Same.
12749 (find_ref_loc_in_loop_cmp): Same.
12750 (rewrite_mem_ref_loc::operator): Same.
12751 (first_mem_ref_loc_1::operator): Same.
12752 (sm_set_flag_if_changed::operator): Same.
12753 (execute_sm_if_changed_flag_set): Same.
12754 (execute_sm): Same.
12755 (hoist_memory_references): Same.
12756 (ref_always_accessed::operator): Same.
12757 (refs_independent_p): Same.
12758 (record_dep_loop): Same.
12759 (ref_indep_loop_p_1): Same.
12760 (ref_indep_loop_p): Same.
12761 (can_sm_ref_p): Same.
12762 (find_refs_for_sm): Same.
12763 (loop_suitable_for_sm): Same.
12764 (store_motion_loop): Same.
12765 (store_motion): Same.
12766 (fill_always_executed_in): Same.
12767 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12768 (estimated_unrolled_size): Same.
12769 (loop_edge_to_cancel): Same.
12770 (remove_exits_and_undefined_stmts): Same.
12771 (remove_redundant_iv_tests): Same.
12772 (unloop_loops): Same.
12773 (estimated_peeled_sequence_size): Same.
12774 (try_peel_loop): Same.
12775 (canonicalize_loop_induction_variables): Same.
12776 (canonicalize_induction_variables): Same.
12777 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12779 (stmt_after_inc_pos): Same.
12780 (contains_abnormal_ssa_name_p): Same.
12781 (niter_for_exit): Same.
12784 (find_givs_in_bb): Same.
12785 (find_induction_variables): Same.
12786 (find_interesting_uses_cond): Same.
12787 (outermost_invariant_loop_for_expr): Same.
12788 (idx_find_step): Same.
12789 (add_candidate_1): Same.
12790 (add_iv_candidate_derived_from_uses): Same.
12791 (alloc_use_cost_map): Same.
12792 (prepare_decl_rtl): Same.
12793 (generic_predict_doloop_p): Same.
12794 (computation_cost): Same.
12795 (determine_common_wider_type): Same.
12796 (get_computation_aff_1): Same.
12797 (get_use_type): Same.
12798 (determine_group_iv_cost_address): Same.
12800 (difference_cannot_overflow_p): Same.
12801 (may_eliminate_iv): Same.
12802 (determine_set_costs): Same.
12803 (cheaper_cost_pair): Same.
12804 (compare_cost_pair): Same.
12805 (iv_ca_cand_for_group): Same.
12806 (iv_ca_recount_cost): Same.
12807 (iv_ca_set_remove_invs): Same.
12808 (iv_ca_set_no_cp): Same.
12809 (iv_ca_set_add_invs): Same.
12810 (iv_ca_set_cp): Same.
12811 (iv_ca_add_group): Same.
12812 (iv_ca_cost): Same.
12813 (iv_ca_compare_deps): Same.
12814 (iv_ca_delta_reverse): Same.
12815 (iv_ca_delta_commit): Same.
12816 (iv_ca_cand_used_p): Same.
12817 (iv_ca_delta_free): Same.
12819 (iv_ca_free): Same.
12820 (iv_ca_dump): Same.
12821 (iv_ca_extend): Same.
12822 (iv_ca_narrow): Same.
12823 (iv_ca_prune): Same.
12824 (cheaper_cost_with_cand): Same.
12825 (iv_ca_replace): Same.
12826 (try_add_cand_for): Same.
12827 (get_initial_solution): Same.
12828 (try_improve_iv_set): Same.
12829 (find_optimal_iv_set_1): Same.
12830 (create_new_iv): Same.
12831 (rewrite_use_compare): Same.
12832 (remove_unused_ivs): Same.
12833 (determine_scaling_factor): Same.
12834 * tree-ssa-loop-ivopts.h: Same.
12835 * tree-ssa-loop-manip.c (create_iv): Same.
12836 (compute_live_loop_exits): Same.
12837 (add_exit_phi): Same.
12838 (add_exit_phis): Same.
12839 (find_uses_to_rename_use): Same.
12840 (find_uses_to_rename_def): Same.
12841 (find_uses_to_rename_in_loop): Same.
12842 (rewrite_into_loop_closed_ssa): Same.
12843 (check_loop_closed_ssa_bb): Same.
12844 (split_loop_exit_edge): Same.
12845 (ip_end_pos): Same.
12846 (ip_normal_pos): Same.
12847 (copy_phi_node_args): Same.
12848 (gimple_duplicate_loop_to_header_edge): Same.
12849 (can_unroll_loop_p): Same.
12850 (determine_exit_conditions): Same.
12851 (scale_dominated_blocks_in_loop): Same.
12852 (niter_for_unrolled_loop): Same.
12853 (tree_transform_and_unroll_loop): Same.
12854 (rewrite_all_phi_nodes_with_iv): Same.
12855 * tree-ssa-loop-manip.h: Same.
12856 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12857 (number_of_iterations_ne): Same.
12858 (assert_no_overflow_lt): Same.
12859 (assert_loop_rolls_lt): Same.
12860 (number_of_iterations_lt): Same.
12861 (adjust_cond_for_loop_until_wrap): Same.
12862 (tree_simplify_using_condition): Same.
12863 (simplify_using_initial_conditions): Same.
12864 (simplify_using_outer_evolutions): Same.
12865 (loop_only_exit_p): Same.
12866 (ssa_defined_by_minus_one_stmt_p): Same.
12867 (number_of_iterations_popcount): Same.
12868 (number_of_iterations_exit): Same.
12869 (find_loop_niter): Same.
12870 (finite_loop_p): Same.
12871 (chain_of_csts_start): Same.
12872 (get_val_for): Same.
12873 (loop_niter_by_eval): Same.
12874 (derive_constant_upper_bound_ops): Same.
12875 (do_warn_aggressive_loop_optimizations): Same.
12876 (record_estimate): Same.
12877 (get_cst_init_from_scev): Same.
12878 (record_nonwrapping_iv): Same.
12879 (idx_infer_loop_bounds): Same.
12880 (infer_loop_bounds_from_ref): Same.
12881 (infer_loop_bounds_from_array): Same.
12882 (infer_loop_bounds_from_pointer_arith): Same.
12883 (infer_loop_bounds_from_signedness): Same.
12884 (bound_index): Same.
12885 (discover_iteration_bound_by_body_walk): Same.
12886 (maybe_lower_iteration_bound): Same.
12887 (estimate_numbers_of_iterations): Same.
12888 (estimated_loop_iterations): Same.
12889 (estimated_loop_iterations_int): Same.
12890 (max_loop_iterations): Same.
12891 (max_loop_iterations_int): Same.
12892 (likely_max_loop_iterations): Same.
12893 (likely_max_loop_iterations_int): Same.
12894 (estimated_stmt_executions_int): Same.
12895 (max_stmt_executions): Same.
12896 (likely_max_stmt_executions): Same.
12897 (estimated_stmt_executions): Same.
12898 (stmt_dominates_stmt_p): Same.
12899 (nowrap_type_p): Same.
12900 (loop_exits_before_overflow): Same.
12901 (scev_var_range_cant_overflow): Same.
12902 (scev_probably_wraps_p): Same.
12903 (free_numbers_of_iterations_estimates): Same.
12904 * tree-ssa-loop-niter.h: Same.
12905 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12906 (idx_analyze_ref): Same.
12907 (analyze_ref): Same.
12908 (gather_memory_references_ref): Same.
12909 (mark_nontemporal_store): Same.
12910 (emit_mfence_after_loop): Same.
12911 (may_use_storent_in_loop_p): Same.
12912 (mark_nontemporal_stores): Same.
12913 (should_unroll_loop_p): Same.
12914 (volume_of_dist_vector): Same.
12915 (add_subscript_strides): Same.
12916 (self_reuse_distance): Same.
12917 (insn_to_prefetch_ratio_too_small_p): Same.
12918 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12919 (patch_loop_exit): Same.
12920 (find_or_create_guard_phi): Same.
12921 (easy_exit_values): Same.
12922 (connect_loop_phis): Same.
12923 (connect_loops): Same.
12924 (compute_new_first_bound): Same.
12925 (split_loop): Same.
12926 (tree_ssa_split_loops): Same.
12927 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12928 (is_maybe_undefined): Same.
12929 (tree_may_unswitch_on): Same.
12930 (simplify_using_entry_checks): Same.
12931 (tree_unswitch_single_loop): Same.
12932 (tree_unswitch_loop): Same.
12933 (tree_unswitch_outer_loop): Same.
12934 (empty_bb_without_guard_p): Same.
12935 (used_outside_loop_p): Same.
12936 (get_vop_from_header): Same.
12937 (hoist_guard): Same.
12938 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12939 (get_lsm_tmp_name): Same.
12940 * tree-ssa-loop.h: Same.
12941 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12942 (build_and_add_sum): Same.
12943 (no_side_effect_bb): Same.
12945 (linearize_expr): Same.
12946 (should_break_up_subtract): Same.
12947 (linearize_expr_tree): Same.
12948 * tree-ssa-scopedtables.c: Same.
12949 * tree-ssa-scopedtables.h: Same.
12950 * tree-ssa-structalias.c (condense_visit): Same.
12951 (label_visit): Same.
12952 (dump_pred_graph): Same.
12953 (perform_var_substitution): Same.
12954 (move_complex_constraints): Same.
12955 (remove_preds_and_fake_succs): Same.
12956 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12957 (determine_bb_domination_status): Same.
12958 (duplicate_thread_path): Same.
12959 (thread_through_all_blocks): Same.
12960 * tree-ssa-threadupdate.h: Same.
12961 * tree-streamer-in.c (streamer_read_string_cst): Same.
12962 (input_identifier): Same.
12963 (unpack_ts_type_common_value_fields): Same.
12964 (unpack_ts_block_value_fields): Same.
12965 (unpack_ts_translation_unit_decl_value_fields): Same.
12966 (unpack_ts_omp_clause_value_fields): Same.
12967 (streamer_read_tree_bitfields): Same.
12968 (streamer_alloc_tree): Same.
12969 (lto_input_ts_common_tree_pointers): Same.
12970 (lto_input_ts_vector_tree_pointers): Same.
12971 (lto_input_ts_poly_tree_pointers): Same.
12972 (lto_input_ts_complex_tree_pointers): Same.
12973 (lto_input_ts_decl_minimal_tree_pointers): Same.
12974 (lto_input_ts_decl_common_tree_pointers): Same.
12975 (lto_input_ts_decl_non_common_tree_pointers): Same.
12976 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12977 (lto_input_ts_field_decl_tree_pointers): Same.
12978 (lto_input_ts_function_decl_tree_pointers): Same.
12979 (lto_input_ts_type_common_tree_pointers): Same.
12980 (lto_input_ts_type_non_common_tree_pointers): Same.
12981 (lto_input_ts_list_tree_pointers): Same.
12982 (lto_input_ts_vec_tree_pointers): Same.
12983 (lto_input_ts_exp_tree_pointers): Same.
12984 (lto_input_ts_block_tree_pointers): Same.
12985 (lto_input_ts_binfo_tree_pointers): Same.
12986 (lto_input_ts_constructor_tree_pointers): Same.
12987 (lto_input_ts_omp_clause_tree_pointers): Same.
12988 (streamer_read_tree_body): Same.
12989 * tree-streamer.h: Same.
12990 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12991 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12992 (vect_analyze_possibly_independent_ddr): Same.
12993 (vect_analyze_data_ref_dependence): Same.
12994 (vect_compute_data_ref_alignment): Same.
12995 (vect_enhance_data_refs_alignment): Same.
12996 (vect_analyze_data_ref_access): Same.
12997 (vect_check_gather_scatter): Same.
12998 (vect_find_stmt_data_reference): Same.
12999 (vect_create_addr_base_for_vector_ref): Same.
13000 (vect_setup_realignment): Same.
13001 (vect_supportable_dr_alignment): Same.
13002 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
13003 (adjust_phi_and_debug_stmts): Same.
13004 (vect_set_loop_mask): Same.
13005 (add_preheader_seq): Same.
13006 (vect_maybe_permute_loop_masks): Same.
13007 (vect_set_loop_masks_directly): Same.
13008 (vect_set_loop_condition_masked): Same.
13009 (vect_set_loop_condition_unmasked): Same.
13010 (slpeel_duplicate_current_defs_from_edges): Same.
13011 (slpeel_add_loop_guard): Same.
13012 (slpeel_can_duplicate_loop_p): Same.
13013 (create_lcssa_for_virtual_phi): Same.
13015 (vect_update_ivs_after_vectorizer): Same.
13016 (vect_gen_vector_loop_niters_mult_vf): Same.
13017 (slpeel_update_phi_nodes_for_loops): Same.
13018 (slpeel_update_phi_nodes_for_guard1): Same.
13019 (find_guard_arg): Same.
13020 (slpeel_update_phi_nodes_for_guard2): Same.
13021 (slpeel_update_phi_nodes_for_lcssa): Same.
13022 (vect_do_peeling): Same.
13023 (vect_create_cond_for_alias_checks): Same.
13024 (vect_loop_versioning): Same.
13025 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
13026 (vect_inner_phi_in_double_reduction_p): Same.
13027 (vect_analyze_scalar_cycles_1): Same.
13028 (vect_fixup_scalar_cycles_with_patterns): Same.
13029 (vect_get_loop_niters): Same.
13030 (bb_in_loop_p): Same.
13031 (vect_get_max_nscalars_per_iter): Same.
13032 (vect_verify_full_masking): Same.
13033 (vect_compute_single_scalar_iteration_cost): Same.
13034 (vect_analyze_loop_form_1): Same.
13035 (vect_analyze_loop_form): Same.
13036 (vect_active_double_reduction_p): Same.
13037 (vect_analyze_loop_operations): Same.
13038 (neutral_op_for_slp_reduction): Same.
13039 (vect_is_simple_reduction): Same.
13040 (vect_model_reduction_cost): Same.
13041 (get_initial_def_for_reduction): Same.
13042 (get_initial_defs_for_reduction): Same.
13043 (vect_create_epilog_for_reduction): Same.
13044 (vectorize_fold_left_reduction): Same.
13045 (vectorizable_reduction): Same.
13046 (vectorizable_induction): Same.
13047 (vectorizable_live_operation): Same.
13048 (loop_niters_no_overflow): Same.
13049 (vect_get_loop_mask): Same.
13050 (vect_transform_loop_stmt): Same.
13051 (vect_transform_loop): Same.
13052 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
13053 (vect_determine_precisions): Same.
13054 (vect_pattern_recog_1): Same.
13055 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
13056 * tree-vect-stmts.c (stmt_vectype): Same.
13057 (process_use): Same.
13058 (vect_init_vector_1): Same.
13059 (vect_truncate_gather_scatter_offset): Same.
13060 (get_group_load_store_type): Same.
13061 (vect_build_gather_load_calls): Same.
13062 (vect_get_strided_load_store_ops): Same.
13063 (vectorizable_simd_clone_call): Same.
13064 (vectorizable_store): Same.
13065 (permute_vec_elements): Same.
13066 (vectorizable_load): Same.
13067 (vect_transform_stmt): Same.
13068 (supportable_widening_operation): Same.
13069 * tree-vectorizer.c (vec_info::replace_stmt): Same.
13070 (vec_info::free_stmt_vec_info): Same.
13071 (vect_free_loop_info_assumptions): Same.
13072 (vect_loop_vectorized_call): Same.
13073 (set_uid_loop_bbs): Same.
13074 (vectorize_loops): Same.
13075 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
13076 * tree.c (add_tree_to_fld_list): Same.
13077 (fld_type_variant_equal_p): Same.
13078 (fld_decl_context): Same.
13079 (fld_incomplete_type_of): Same.
13080 (free_lang_data_in_binfo): Same.
13081 (need_assembler_name_p): Same.
13082 (find_decls_types_r): Same.
13083 (get_eh_types_for_runtime): Same.
13084 (find_decls_types_in_eh_region): Same.
13085 (find_decls_types_in_node): Same.
13086 (assign_assembler_name_if_needed): Same.
13087 * value-prof.c (stream_out_histogram_value): Same.
13088 * value-prof.h: Same.
13089 * var-tracking.c (use_narrower_mode): Same.
13090 (prepare_call_arguments): Same.
13091 (vt_expand_loc_callback): Same.
13092 (resolve_expansions_pending_recursion): Same.
13093 (vt_expand_loc): Same.
13094 * varasm.c (const_hash_1): Same.
13095 (compare_constant): Same.
13096 (tree_output_constant_def): Same.
13097 (simplify_subtraction): Same.
13098 (get_pool_constant): Same.
13099 (output_constant_pool_2): Same.
13100 (output_constant_pool_1): Same.
13101 (mark_constants_in_pattern): Same.
13102 (mark_constant_pool): Same.
13103 (get_section_anchor): Same.
13104 * vr-values.c (compare_range_with_value): Same.
13105 (vr_values::extract_range_from_phi_node): Same.
13106 * vr-values.h: Same.
13107 * web.c (unionfind_union): Same.
13108 * wide-int.h: Same.
13110 2019-07-09 Martin Sebor <msebor@redhat.com>
13113 * align.h: Change class-key from class to struct and vice versa
13114 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
13115 * alloc-pool.h: Same.
13116 * asan.c (shadow_mem_size): Same.
13117 * auto-profile.c: Same.
13118 * basic-block.h: Same.
13120 * cfgexpand.c (set_rtl): Same.
13121 (expand_one_stack_var_at): Same.
13122 * cfghooks.h: Same.
13125 * config/i386/i386.h: Same.
13126 * df-problems.c (df_print_bb_index): Same.
13128 * df.h (df_single_use): Same.
13129 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
13130 (layout::annotation_line_showed_range_p): Same.
13131 (get_printed_columns): Same.
13132 (correction::ensure_terminated): Same.
13133 (line_corrections::~line_corrections): Same.
13136 * dump-context.h: Same.
13137 * dumpfile.h: Same.
13138 * dwarf2out.c: Same.
13139 * edit-context.c: Same.
13140 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
13142 * function.c (assign_stack_local): Same.
13143 * function.h: Same.
13145 * gcov.c (block_info::block_info): Same.
13146 * genattrtab.c: Same.
13147 * genextract.c: Same.
13148 * genmatch.c (comparison_code_p): Same.
13149 (id_base::id_base): Same.
13150 (decision_tree::print): Same.
13151 * genoutput.c: Same.
13152 * genpreds.c (write_one_predicate_function): Same.
13153 * genrecog.c (validate_pattern): Same.
13154 (find_operand_positions): Same.
13155 (optimize_subroutine_group): Same.
13156 (merge_pattern_transition::merge_pattern_transition): Same.
13157 (merge_pattern_info::merge_pattern_info): Same.
13158 (merge_state_result::merge_state_result): Same.
13159 (merge_into_state): Same.
13160 * gensupport.c: Same.
13161 * gensupport.h: Same.
13162 * ggc-common.c (init_ggc_heuristics): Same.
13163 * ggc-tests.c (test_union): Same.
13164 * gimple-loop-interchange.cc (dump_induction): Same.
13165 * gimple-loop-versioning.cc: Same.
13166 * gimple-match.h (gimple_match_cond::any_else): Same.
13167 * gimple-ssa-backprop.c: Same.
13168 * gimple-ssa-sprintf.c: Same.
13169 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
13171 (store_immediate_info::store_immediate_info): Same.
13172 (merged_store_group::apply_stores): Same.
13173 (get_location_for_stmts): Same.
13174 * gimple-ssa-strength-reduction.c: Same.
13175 * gimple-ssa-warn-alloca.c: Same.
13176 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
13177 * godump.c (go_type_decl): Same.
13178 * hash-map-tests.c (test_map_of_strings_to_int): Same.
13179 * hash-map.h: Same.
13180 * hash-set-tests.c (test_set_of_strings): Same.
13181 * hsa-brig.c: Same.
13182 * hsa-common.h: Same.
13183 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
13184 * input.c (assert_loceq): Same.
13187 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
13188 * ipa-fnsummary.h: Same.
13189 * ipa-inline.h: Same.
13190 * ipa-prop.h: Same.
13191 * ipa-split.c (visit_bb): Same.
13192 * ira-int.h (minmax_set_iter_next): Same.
13193 * loop-invariant.c: Same.
13195 * lra-eliminations.c: Same.
13197 * lra-lives.c (mark_regno_dead): Same.
13198 * lra-remat.c: Same.
13199 * lra-spills.c: Same.
13200 * lto-streamer.h: Same.
13201 * mem-stats.h: Same.
13202 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
13203 * omp-low.c (omp_clause_aligned_alignment): Same.
13204 * optabs-query.h (get_vcond_eq_icode): Same.
13206 * opts.c (wrap_help): Same.
13207 * poly-int.h: Same.
13208 * predict.c (predict_paths_leading_to_edge): Same.
13209 * pretty-print.h: Same.
13210 * profile-count.h: Same.
13212 * read-rtl-function.c: Same.
13215 * regrename.c: Same.
13216 * regrename.h: Same.
13218 * rtl-iter.h: Same.
13219 * rtl.h (costs_add_n_insns): Same.
13221 * sched-int.h: Same.
13222 * sel-sched-ir.h: Same.
13223 * selftest.h: Same.
13224 * sese.h (vec_find): Same.
13226 * target-globals.h: Same.
13227 * tree-affine.c (aff_combination_find_elt): Same.
13228 * tree-affine.h: Same.
13229 * tree-data-ref.h: Same.
13230 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
13231 * tree-predcom.c: Same.
13232 * tree-scalar-evolution.c (find_var_scev_info): Same.
13233 * tree-ssa-alias.h: Same.
13234 * tree-ssa-ccp.c: Same.
13235 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
13236 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
13237 (rewrite_mem_refs): Same.
13238 (execute_sm_if_changed): Same.
13239 (hoist_memory_references): Same.
13240 * tree-ssa-loop-ivopts.c (operator<=): Same.
13241 * tree-ssa-loop.h: Same.
13242 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
13243 * tree-ssa-structalias.c: Same.
13244 * tree-switch-conversion.h (cluster::cluster): Same.
13245 (simple_cluster::simple_cluster): Same.
13246 * tree-vect-patterns.c (type_conversion_p): Same.
13247 * tree-vectorizer.c (dump_stmt_cost): Same.
13248 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
13249 * tree.c (protected_set_expr_location): Same.
13250 * tree.h (desired_pro_or_demotion_p): Same.
13251 (fndecl_built_in_p): Same.
13252 * unique-ptr-tests.cc: Same.
13253 * var-tracking.c (delete_variable_part): Same.
13254 * varasm.c (assemble_real): Same.
13255 (tree_output_constant_def): Same.
13257 * wide-int-bitmask.h: Same.
13258 * wide-int.h (decompose): Same.
13260 2019-07-09 Richard Biener <rguenther@suse.de>
13262 PR tree-optimization/91114
13263 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
13264 find a vector type isn't fatal.
13266 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13268 * config/aarch64/aarch64-simd.md
13269 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
13270 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
13271 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
13272 (*aarch64_crypto_aese_fused,
13273 *aarch64_crypto_aesd_fused): Update to new definition.
13274 * config/aarch64/aarch64.c
13275 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
13277 2019-07-09 Richard Biener <rguenther@suse.de>
13279 * gimple-match.h (gimple_match_op::resimplify): New.
13280 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
13281 gimple_resimplify4, gimple_resimplify5): Remove.
13282 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
13283 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
13285 (gimple_match_op::resimplify): New.
13286 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
13287 according to availability. Use gimple_match_op::resimplify.
13289 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
13291 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
13293 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13295 * config/arm/crypto.md:
13296 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
13297 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
13298 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
13299 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
13301 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
13302 * config/arm/aarch-common-protos.h
13303 (aarch_crypto_can_dual_issue): Remove.
13304 * config/arm/aarch-common.c
13305 (aarch_crypto_can_dual_issue): Likewise.
13306 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
13307 * config/arm/cortex-a53.md: Likewise.
13308 * config/arm/cortex-a57.md: Likewise.
13309 * config/arm/iterators.md:
13310 (CRYPTO_BINARY): Redefine.
13311 (CRYPTO_UNARY): Removed.
13312 (CRYPTO_AES, CRYPTO_AESMC): New.
13314 2019-07-09 Richard Biener <rguenther@suse.de>
13316 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
13317 (vn_reference_lookup_3): If the main ref has no access path recorded
13318 but orig_ref has use it to do access-path based disambiguation.
13319 (vn_reference_lookup_pieces): Adjust.
13320 (vn_reference_lookup): Pass down original ref if we valueized.
13322 2019-07-09 Martin Liska <mliska@suse.cz>
13324 * doc/extend.texi: Document influence on loop
13327 2019-07-09 Martin Liska <mliska@suse.cz>
13329 * lto-compress.c (lto_normalized_zstd_level): Do not use
13330 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
13331 of libzstd. One can use 0 as a default compression level.
13333 2019-07-09 Martin Liska <mliska@suse.cz>
13335 * doc/invoke.texi: Add link from -fprofile-dir option.
13336 Use better wording for 'gcno filename'.
13338 2019-07-08 Martin Sebor <msebor@redhat.com>
13340 PR middle-end/71924
13341 PR middle-end/90549
13342 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
13344 (args_loc_t): New type.
13345 (args_loc_t, locmap_t): same.
13346 (diag_returned_locals): New function.
13347 (is_addr_local): Same.
13348 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
13349 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
13350 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
13352 2019-07-08 Jakub Jelinek <jakub@redhat.com>
13354 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
13355 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
13356 and casts in offset when different, both through gimple stmts
13357 and through trees. Rewritten using loops to minimize code duplication
13360 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13362 * emit-rtl.c (set_insn_locations): New function moved from...
13363 * function.c (set_insn_locations): ...here.
13364 * ira-emit.c (emit_moves): Propagate location of the first instruction
13365 to the inserted move instructions.
13366 * reg-stack.c (compensate_edge): Set the location if the sequence is
13367 inserted on the edge.
13368 * rtl.h (set_insn_locations): Declare.
13370 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13372 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13373 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13376 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13378 PR rtl-optimization/88233
13379 * common.opt (fsplit-wide-types-early): New option.
13380 * common/config/rs6000/rs6000-common.c
13381 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13383 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13384 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13385 flag_split_wide_types_early.
13386 (pass_data_lower_subreg3): New.
13387 (pass_lower_subreg3): New.
13388 (make_pass_lower_subreg3): New.
13389 * passes.def (pass_lower_subreg2): Move after the loop passes.
13390 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13391 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13392 the pass pipeline; its previous place is taken by ...
13393 (make_pass_lower_subreg3): ... this.
13395 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13397 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13398 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13400 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13402 * config/s390/constraints.md: Add new jsc constraint.
13403 * config/s390/predicates.md: New predicates.
13404 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13405 * config/s390/s390.c (s390_valid_shift_count): New function.
13406 (print_shift_count_operand): Use s390_valid_shift_count.
13407 (print_operand): Likewise.
13408 * config/s390/s390.md: Use new predicate.
13409 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13410 * config/s390/vector.md: Use new predicate.
13412 2019-07-08 Andrew Waterman <andrew@sifive.com>
13413 Jim Wilson <jimw@sifive.com>
13415 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13416 bitsize instead of BITS_PER_WORD.
13418 2019-07-08 Martin Liska <mliska@suse.cz>
13420 * collect2.c (defined): Revert to before r254460.
13421 (scan_prog_file): Revert to before r254460.
13423 2019-07-08 Richard Biener <rguenther@suse.de>
13425 PR tree-optimization/83518
13426 * tree-ssa-sccvn.c: Include splay-tree.h.
13427 (struct pd_range, struct pd_data): New.
13428 (struct vn_walk_cb_data): Add data to track partial definitions.
13429 (vn_walk_cb_data::~vn_walk_cb_data): New.
13430 (vn_walk_cb_data::push_partial_def): New.
13431 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13432 (vn_reference_lookup_2): When partial defs are registered give up.
13433 (vn_reference_lookup_3): Track partial defs for memset and
13434 constructor zeroing and for defs from constants.
13436 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13438 * doc/install.texi (bootstrap-Og): Document.
13440 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13442 * config/riscv/pic.md (*local_pic_load_s<mode>)
13443 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13444 referenced by <mode>, giving...
13445 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13446 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13447 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13448 use <X:MODE> for the mode attribute.
13450 2019-07-07 Jeff Law <law@redhat.com>
13452 PR tree-optimization/91090
13453 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13454 in handling of ranges to simplify switch statements.
13456 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13458 * config/darwin.c (darwin_override_options): Make a final check on PIC
13461 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13463 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13464 on for kernel code.
13466 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13469 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13470 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13471 instead of matching them to "l" output operands.
13473 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13475 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13476 and check whether addr.reg is nonnull before using it.
13478 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13480 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13481 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13482 variable(s). For conditional lastprivate look through outer
13483 GIMPLE_OMP_SCAN context.
13484 (lower_omp_1): For conditional lastprivate look through outer
13485 GIMPLE_OMP_SCAN context.
13487 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13488 member to combined_into_simd_safelen1.
13489 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13490 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13491 clauses if ctx->combined_into_simd_safelen1 put statements after the
13492 predicate conditionalized block rather than into it.
13494 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13496 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13498 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13499 Make the choice of <mode> explicit, giving...
13500 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13502 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13504 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13505 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13507 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13508 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13509 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13510 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13511 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13512 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13513 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13514 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13515 (*avx512f_scatterdi<mode>): Likewise.
13516 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13518 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13520 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13521 specify the mode iterator referenced by <mode>, giving...
13522 (*push1_h8300hs_<QHI:mode>): ...this.
13524 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13526 * config/gcn/gcn-valu.md
13527 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13528 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13529 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13530 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13531 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13532 but using the _exec comparison patterns.
13533 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13534 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13535 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13536 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13537 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13538 but using the _exec comparison patterns.
13540 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13542 * config/arm/sync.md
13543 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13544 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13545 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13546 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13547 <SIDI:cas_cmp_str>.
13549 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13551 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13552 (maybe_lookup_ctx): Add forward declaration.
13553 (omp_find_scan): Likewise. Walk into body of simd if composited
13554 with worksharing loop.
13555 (scan_omp_simd_scan): New function.
13556 (scan_omp_1_stmt): Call it.
13557 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13558 ctx->for_simd_scan_phase.
13559 (lower_rec_input_clauses): Do much less work for inscan reductions
13560 in ctx->for_simd_scan_phase is_simd regions.
13561 (lower_omp_scan): Set is_simd also on simd constructs composited
13562 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13563 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13564 emit their body after in simd constructs composited with worksharing
13566 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13568 * omp-low.c (omp_find_scan): Make static.
13569 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13570 the second loop, var2 represents the first partial sum and so needs
13571 to go before rprivb[ivar].
13573 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13575 * config/rs6000/rs6000-logue.c: Remove unused code.
13577 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13579 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13581 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13584 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13585 check with a frame laid out check.
13587 2019-07-05 Richard Biener <rguenther@suse.de>
13589 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13590 when comparing against a store with possibly the same value.
13592 2019-07-05 Richard Biener <rguenther@suse.de>
13594 PR tree-optimization/91091
13595 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13596 (walk_non_aliased_vuses): Likewise.
13597 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13598 (get_continuation_for_phi): New tbaa_p parameter and pass
13600 (walk_non_aliased_vuses): Likewise.
13601 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13602 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13603 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13605 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13606 (adjust_offsets_for_equal_base_address): New function.
13607 (vn_reference_lookup_3): Use it to catch more base equivalences.
13608 Handle and pass down tbaa_p flag.
13609 (vn_reference_lookup_pieces): Adjust.
13610 (vn_reference_lookup): Remove alias-set altering, instead pass
13611 down false as tbaa_p.
13613 2019-07-05 Richard Biener <rguenther@suse.de>
13615 PR tree-optimization/91091
13616 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13617 accesses can happen with -fno-strict-aliasing.
13619 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13621 * tree-ssa-alias.c (alias_stats): Add
13622 nonoverlapping_component_refs_since_match_p_must_overlap.
13623 (dump_alias_stats): Print it.
13624 (nonoverlapping_component_refs_since_match_p): Add early exit.
13625 (nonoverlapping_component_refs_p): Do not account early exit.
13627 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13629 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13630 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13631 (emit_eh_dispatch): Delete.
13632 (lower_catch): Emit the eh_dispatch manually and set the location of
13633 the first catch statement onto it.
13634 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13635 (lower_eh_dispatch): Propagate location.
13636 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13637 (eliminate_build): Likewise.
13639 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13641 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13642 phi nodes if possible.
13643 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13644 location info on the newly created statement.
13645 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13646 newly created increment if needed.
13648 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13650 PR middle-end/78884
13651 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13652 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13653 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13654 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13655 ctx->add_safelen1 is set.
13657 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13658 GOMP_loop_start at the start of second worksharing loop in a scan.
13659 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13660 worksharing loop in a scan even if there are conditional lastprivates,
13661 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13663 2019-07-04 Jan Hubicka <jh@suse.cz>
13665 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13666 Fix check for match in the ref walk.
13668 2019-07-04 Martin Liska <mliska@suse.cz>
13670 * tree-ssa-loop-niter.c
13671 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13672 (estimate_numbers_of_iterations):
13673 Support __builtin_expect_with_probability for analysis
13674 of # of loop iterations.
13676 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13678 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13679 * except.c: Likewise.
13680 * expr.c (expand_expr_real_1): Reject it.
13681 * gimplify.c (gimplify_expr): Gimplify it, within
13683 * tree-dump.c (dequeue_and_dump): Dump it.
13684 * tree-pretty-print.c (dump_generic_node): Likewise.
13685 * tree.c (block_may_fallthru): Handle it.
13686 * tree.def (EH_ELSE_EXPR): Introduce it.
13687 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13688 with GIMPLE_EH_ELSE as try/finally/else.
13690 2019-07-04 Richard Biener <rguenther@suse.de>
13693 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13694 parameter whether to disable GC collection.
13695 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13697 (execute_all_ipa_transforms): Likewise and pass it down.
13698 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13699 collection from applying IPA transforms.
13700 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13701 from applying IPA transforms.
13703 2019-07-04 Richard Biener <rguenther@suse.de>
13705 PR tree-optimization/90911
13706 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13707 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13708 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13709 scalar_loop_scaling.
13710 (vect_transform_loop): Scale scalar loop profile if needed.
13711 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13712 the loop copy from if-conversion adjust edge probabilities
13713 and scale the vectorized loop body profile, queue the scalar
13714 profile for updating after peeling.
13716 2019-07-04 Jan Hubicka <jh@suse.cz>
13718 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13719 parameters; return early for must-alias.
13720 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13721 outer types match, try nonoverlapping_component_refs
13722 if must-alias is not obvious.
13723 (indirect_refs_may_alias_p): Likewise.
13724 (refs_may_alias_p_2): Likewise.
13726 2019-07-04 Richard Biener <rguenther@suse.de>
13728 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13730 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13732 (struct vn_walk_cb_data): New callback data struct.
13733 (vn_reference_lookup_2): Adjust.
13734 (vn_reference_lookup_3): Likewise.
13735 (vn_reference_lookup_pieces): Likewise.
13736 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13737 (visit_reference_op_load): Adjust.
13739 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13741 PR tree-optimization/91063
13742 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13743 stmt from stmts sequence before calling vect_init_vector_1.
13746 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13749 * fwprop.c (reg_single_def_p): New function.
13750 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13751 (forward_propagate_into): New parameter reg_prop_only
13752 with default value false.
13753 Propagate def's src into loop only if SET_SRC and SET_DEST
13754 of def_set have single definitions.
13755 Likewise if reg_prop_only is set to true.
13756 (fwprop): New param fwprop_addr_p.
13757 Integrate fwprop_addr into fwprop.
13758 (fwprop_addr): Remove.
13759 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13761 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13762 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13763 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13765 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13767 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13768 in worksharing loop scans.
13770 PR tree-optimization/91074
13771 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13774 PR rtl-optimization/90756
13775 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13778 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13780 * config/aarch64/aarch64.md: Remove redundant constraints from
13781 define_expand but keep some patterns untouched if they are
13782 specially selected by TARGET_SECONDARY_RELOAD hook.
13783 * config/aarch64/aarch64-sve.md: Likewise.
13784 * config/aarch64/atomics.md: Remove redundant constraints from
13786 * config/aarch64/aarch64-simd.md: Likewise.
13788 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13790 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13791 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13792 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13794 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13797 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13799 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13800 (STARTFILE_SPEC): Split crt3 into a separate spec.
13801 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13802 (DARWIN_CRT2_SPEC): New.
13803 (DARWIN_CRT3_SPEC): New.
13804 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13805 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13806 (DARWIN_CRT3_SPEC): New.
13808 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13810 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13811 Change the RTL attribute "length" from "4" to "*" to allow the
13812 length attribute to be adjusted automatically for prefixed load,
13813 store, and add immediate instructions.
13814 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13816 (extendsi<mode>2, EXTSI iterator): Likewise.
13817 (movsi_internal1): Likewise.
13818 (movsi_from_sf): Likewise.
13819 (movdi_from_sf_zero_ext): Likewise.
13820 (mov<mode>_internal): Likewise.
13821 (movcc_internal1, QHI iterator): Likewise.
13822 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13823 (movsf_from_si): Likewise.
13824 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13825 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13826 (mov<mode>, FMOVE128 iterator): Likewise.
13827 (movdi_internal64): Likewise.
13828 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13830 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13831 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13832 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13833 (vsx_splat_v4sf): Likewise.
13835 2019-07-03 Mark Wielaard <mark@klomp.org>
13838 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13839 DW_AT_addr_base if there is actually a .debug_addr section with
13841 (output_addr_table): Add DWARF5 table header generation here after
13842 checking there are actually any addresses from...
13843 (dwarf2out_finish): ...here.
13845 2019-07-03 Richard Biener <rguenther@suse.de>
13847 PR middle-end/91069
13848 * match.pd (vec_perm -> bit_insert): Fix element read from
13851 2019-07-03 Martin Liska <mliska@suse.cz>
13853 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13854 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13856 * generic-match-head.c: Include dbgcnt.h.
13857 * gimple-match-head.c: Likewise.
13859 2019-07-03 Martin Liska <mliska@suse.cz>
13861 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13862 (GCOV_COUNTER_V_TOPN): New.
13863 (GCOV_COUNTER_V_INDIR): Use _topn.
13864 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13865 (GCOV_TOPN_VALUES): New.
13866 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13867 (GCOV_TOPN_VALUES_COUNTERS): New.
13868 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13870 (gimple_init_gcov_profiler): Rename variables from one_value
13872 (gimple_gen_one_value_profiler): Remove.
13873 (gimple_gen_topn_values_profiler): New function.
13874 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13875 names instead of SINGLE_VALUE.
13876 (stream_out_histogram_value): Likewise.
13877 (stream_in_histogram_value): Likewise.
13878 (get_most_common_single_value): Likewise.
13879 (gimple_divmod_fixed_value_transform): Likewise.
13880 (gimple_stringops_transform): Likewise.
13881 (gimple_divmod_values_to_profile): Likewise.
13882 (gimple_stringops_values_to_profile): Likewise.
13883 (gimple_find_values_to_profile): Likewise.
13884 * value-prof.h (enum hist_type): Rename to TOPN.
13885 (gimple_gen_one_value_profiler): Remove.
13886 (gimple_gen_topn_values_profiler): New.
13888 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13890 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13891 if it has the DW_AT_data_member_location attribute.
13893 2019-07-03 Richard Biener <rguenther@suse.de>
13895 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13898 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13900 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13901 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13902 (tlsdesc_small_sve_<mode>): Likewise.
13904 2019-07-03 Martin Liska <mliska@suse.cz>
13906 * Makefile.in: Define ZSTD_LIB.
13907 * common.opt: Adjust compression level
13908 to support also zstd levels.
13909 * config.in: Regenerate.
13910 * configure: Likewise.
13911 * configure.ac: Add --with-zstd and --with-zstd-include options
13913 * doc/install.texi: Mention zstd dependency.
13914 * gcc.c: Print supported LTO compression algorithms.
13915 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13916 (lto_compression_zstd): Likewise.
13917 (lto_uncompression_zstd): Likewise.
13918 (lto_end_compression): Dispatch in between zlib and zstd.
13919 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13920 (lto_uncompression_zlib): Make it static.
13921 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13922 * lto-section-in.c (lto_get_section_data): Pass info
13923 about used compression.
13924 * lto-streamer-out.c: By default use zstd when possible.
13925 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13926 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13928 2019-07-03 Martin Liska <mliska@suse.cz>
13930 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13931 * lto-section-out.c (lto_destroy_simple_output_block): Never
13932 compress LTO_section_lto section.
13933 * lto-streamer-out.c (produce_asm): Do not set major_version
13935 (lto_output_toplevel_asms): Likewise.
13936 (produce_lto_section): New function.
13937 (lto_output): Call produce_lto_section.
13938 (lto_write_mode_table): Do not set major_version and
13940 (produce_asm_for_decls): Likewise.
13941 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13943 (struct lto_header): Remove.
13944 (struct lto_section): New struct.
13945 (struct lto_simple_header): Do not inherit from lto_header.
13946 (struct lto_file_decl_data): Add lto_section_header field.
13948 2019-07-03 Martin Liska <mliska@suse.cz>
13950 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13952 * reg-stack.c (check_asm_stack_operands): Likewise.
13953 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13954 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13955 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13956 force_expand_binop.
13958 2019-07-03 Martin Liska <mliska@suse.cz>
13960 PR tree-optimization/90892
13961 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13962 in string constants.
13964 2019-07-03 Martin Liska <mliska@suse.cz>
13966 PR middle-end/90899
13967 * multiple_target.c (create_dispatcher_calls): Add to comdat
13968 group only if set for ifunc.
13970 2019-07-03 Martin Liska <mliska@suse.cz>
13973 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13974 Define local_object_name in outer scope in order to handle
13975 use-after-scope issue.
13977 2019-07-03 Martin Liska <mliska@suse.cz>
13979 * common.opt: Add fprofile-note.
13980 * coverage.c (coverage_init): Append the option
13982 * doc/invoke.texi: Document -fprofile-note.
13984 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13986 PR tree-optimization/91033
13987 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13988 vect_analyze_data_refs): Add bool * arguments.
13989 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13990 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13991 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13992 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13993 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13994 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13995 vect_analyze_data_refs caller.
13997 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13999 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
14000 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
14001 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
14002 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
14003 OMP_CLAUSE__SCANTEMP_ entry.
14004 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
14005 * tree-pretty-print.c (dump_omp_clause): Likewise.
14006 * tree-nested.c (convert_nonlocal_omp_clauses,
14007 convert_local_omp_clauses): Likewise.
14008 * omp-general.h (struct omp_for_data): Add have_scantemp and
14009 have_nonctrl_scantemp members.
14010 * omp-general.c (omp_extract_for_data): Initialize them.
14011 * omp-low.c (struct omp_context): Add scan_exclusive member.
14012 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
14013 result again with GF_OMP_FOR_KIND_MASK. Initialize also
14014 ctx->scan_exclusive.
14015 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
14016 of !ctx->scan_inclusive.
14017 (lower_rec_input_clauses): Simplify gimplification of dtors using
14018 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
14019 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
14020 loops. Don't add barrier for reduction_omp_orig_ref if
14021 ctx->scan_??xclusive.
14022 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
14023 (lower_omp_scan): Use ctx->scan_exclusive instead
14024 of !ctx->scan_inclusive. Handle worksharing loops with inscan
14025 reductions. Use new_vard != new_var instead of repeated
14026 omp_is_reference calls.
14027 (omp_find_scan, lower_omp_for_scan): New functions.
14028 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
14030 * omp-expand.c (expand_omp_scantemp_alloc): New function.
14031 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
14032 and fd->have_scantemp.
14034 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
14035 on worksharing loop propagate it as shared clause to containing
14038 * omp-expand.c (expand_omp_for_static_nochunk,
14039 expand_omp_for_static_chunk): For nowait worksharing loop with
14040 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
14043 2019-07-02 qing zhao <qing.zhao@oracle.com>
14045 PR preprocessor/90581
14046 * doc/cppopts.texi: Add document for -fmax-include-depth.
14047 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
14049 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
14051 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
14052 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
14053 (mmx_packssdw): Ditto.
14054 (mmx_punpckhbw): Ditto.
14055 (mmx_punpcklbw): Ditto.
14056 (mmx_punpckhwd): Ditto.
14057 (mmx_punpcklwd): Ditto.
14058 (mmx_punpckhdq): Ditto.
14059 (mmx_punpckldq): Ditto.
14060 (*vec_dupv4hi): Ditto.
14061 (*vec_dupv2si): Ditto.
14062 (mmx_pmovmskb): Ditto.
14063 * config/i386/sse.md (sse_cvtpi2ps): Use
14064 TARGET_SSE2 && SSE_REG_P in split condition.
14065 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
14066 TARGET_SSSE3 && SSE_REGNO_P in split condition.
14067 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
14068 (ssse3_pshufbv8qi3): Ditto.
14069 (ssse3_palignrdi): Ditto.
14071 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
14073 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
14074 with inlined save and restore.
14076 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
14078 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
14079 to be inserted on single successor edge of the entry block. Then call
14080 commit_edge_insertions instead of inserting the instructions manually.
14081 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
14082 RTL expansion and rebuild jump labels chain.
14084 2019-07-02 Richard Biener <rguenther@suse.de>
14086 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
14088 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14090 * tree.c (build_common_tree_nodes): Initialize them.
14091 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14092 Make declarations comments.
14093 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
14094 chrec_known): Remove definitions.
14095 (initialize_scalar_evolutions_analyzer): Remove.
14096 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
14097 * tree-streamer.c (preload_common_nodes): Do not preload
14098 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
14100 2019-07-02 Jan Hubicka <jh@suse.cz>
14102 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
14105 2019-07-02 Jan Hubicka <jh@suse.cz>
14107 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
14109 (nonoverlapping_component_refs_since_match_p): ... this one;
14110 handle also non-decl bases; return -1 if search gave up.
14111 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
14112 nonoverlapping_component_refs_of_decl_p_no_alias to
14113 nonoverlapping_component_refs_since_match_p_may_alias,
14114 nonoverlapping_component_refs_since_match_p_no_alias.
14115 (dump_alias_stats): Update dumping.
14116 (aliasing_matching_component_refs_p): Break out from ...;
14117 dispatch to nonoverlapping_component_refs_for_decl_p
14118 and nonoverlapping_component_refs_since_match_p.
14119 (aliasing_component_refs_p): ... here; call
14120 nonoverlapping_component_refs_p in scenarios where we can not
14121 precisely determine base match.
14122 (decl_refs_may_alias_p): Use
14123 nonoverlapping_component_refs_since_match_p.
14124 (indirect_ref_may_alias_decl_p): Do not call
14125 nonoverlapping_component_refs_p.
14126 (indirect_refs_may_alias_p): Likewise.
14128 2019-07-02 Jan Hubicka <jh@suse.cz>
14130 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
14131 to clobber of return value.
14133 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14135 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
14136 for is_neon_type instructions that have not already been categorized.
14138 2019-07-02 Richard Biener <rguenther@suse.de>
14140 PR tree-optimization/58483
14141 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
14142 for MEM_REF base hashing.
14143 (equal_mem_array_ref_p): Likewise for base comparison.
14145 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14147 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
14148 parameterized name.
14149 (signbit<mode>2): Use that name. Simplify.
14151 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
14153 PR middle-end/66726
14154 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
14155 Tune heuristic from PR71016 to allow MIN / MAX.
14157 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14159 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
14160 parameterized name.
14161 (abs<mode>2): Use that name. Simplify.
14163 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14165 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
14166 parameterized name.
14167 (neg<mode>2): Use that name. Simplify.
14169 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14171 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
14173 (abs<mode>2): Use that name. Simplify.
14175 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14177 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
14179 (neg<mode>2): Use that name. Simplify.
14181 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
14183 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
14184 ("enabled" attribute): Handle sse_noavx isa attribute.
14185 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
14186 Use TARGET_SSE && SSE_REGNO_P in split condition.
14187 (*vec_dupv2sf): Ditto.
14189 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14191 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
14193 (floatsi<mode>2): Use that name. Simplify.
14195 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14197 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
14198 parameterized name.
14199 (extenddf<mode>2_vsx): Make this a parameterized name.
14200 (extenddf<mode>2): Use those names. Simplify.
14202 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14204 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
14206 (eh_return): Use that name. Simplify.
14208 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14210 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
14211 (doloop_end): Use that name. Simplify.
14213 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14215 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
14216 parameterized name.
14217 (indirect_jump): Use that name. Simplify.
14219 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14221 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
14222 parameterized name.
14223 (abs<mode>2): Use that name. Simplify.
14225 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14227 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
14228 parameterized name.
14229 (fix_trunc<mode>si2): Use that name. Simplify.
14231 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14233 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
14234 (allocate_stack): Use that name. Simplify.
14236 2019-07-01 Martin Sebor <msebor@redhat.com>
14238 PR middle-end/90923
14239 * hash-map.h (hash_map::put): On insertion invoke element ctor.
14240 (hash_map::get_or_insert): Same. Reformat comment.
14241 * hash-set.h (hash_set::add): On insertion invoke element ctor.
14242 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14243 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14244 * hash-table.h (hash_table::operator=): Prevent copy assignment.
14245 (hash_table::hash_table (const hash_table&)): Use copy ctor
14246 instead of assignment to copy elements.
14248 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
14249 John David Anglin <danglin@gcc.gnu.org>
14252 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
14253 using saved frame pointer.
14255 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
14257 PR middle-end/64242
14258 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
14259 Add frame clobber and schedule blockage.
14261 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
14263 * doc/invoke.texi (Link Options): Further editorial changes to
14264 -flinker-output docs.
14266 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14268 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
14269 Load both operands of a PLUS into registers separately.
14271 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
14273 * config/s390/vector.md: Fix shift count operand printing.
14275 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14277 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
14279 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14281 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
14282 Use recog_data to test for an output operand.
14284 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14286 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
14287 exclude any others that are disparaged or that are bound to need
14289 (ira_get_dup_out_num): Expand comment.
14291 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14293 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
14294 constraint string for each operand/alternative combo. Only handle
14295 '%' at the start of constraint strings, and look for it outside
14298 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14300 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
14301 alternative_mask instead of HARD_REG_SET to represent a
14302 bitmask of alternatives.
14303 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14304 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
14306 2019-07-01 Martin Liska <mliska@suse.cz>
14308 * edit-context.c (test_applying_fixits_unreadable_file): Do not
14309 use () for a constructor call.
14310 (test_applying_fixits_line_out_of_range): Likewise.
14311 * ggc-page.c (alloc_page): Use (void *) for %p printf format
14313 (free_page): Likewise.
14315 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
14317 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
14318 parameter names to match usage (no functional change).
14319 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
14321 2019-07-01 Richard Biener <rguenther@suse.de>
14323 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
14325 (pass_fre::execute): Honor it.
14326 * passes.def: Adjust pass_fre invocations to allow iterating,
14327 add non-iterating pass_fre before late threading/dom.
14329 2019-07-01 Richard Biener <rguenther@suse.de>
14331 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
14332 TARGET_MEM_REF handling to also handle address-taken ones.
14334 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
14336 * doc/sourcebuild.texi (Effective-Target Keywords, Other
14337 hardware attributes): Document avx512vp2intersect.
14339 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14341 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
14342 (abs<mode>2): New expander.
14343 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
14344 Use CODE_FOR_ssse3_absv8qi2.
14345 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
14346 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
14348 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14350 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
14351 to sse, sse_noavx and avx. Update all uses.
14353 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14355 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
14356 (*mmx_<plusminus_insn><mode>3): Ditto.
14357 (*mmx_mulv4hi3"): Ditto.
14358 (*mmx_smulv4hi3_highpart): Ditto.
14359 (*mmx_umulv4hi3_highpart): Ditto.
14360 (*mmx_pmaddwd): Ditto.
14361 (*sse2_umulv1siv1di3): Ditto.
14362 (*mmx_<code>v4hi3): Ditto.
14363 (*mmx_<code>v8qi3): Ditto.
14364 (mmx_ashr<mode>3): Ditto.
14365 ("mmx_<shift_insn><mode>3): Ditto.
14366 (*mmx_eq<mode>3): Ditto.
14367 (mmx_gt<mode>3): Ditto.
14368 (mmx_andnot<mode>3): Ditto.
14369 (*mmx_<code><mode>3): Ditto.
14370 (*mmx_pinsrw): Ditto.
14371 (*mmx_pextrw): Ditto.
14372 (mmx_pshufw_1): Ditto.
14373 (*mmx_uavgv8qi3): Ditto.
14374 (*mmx_uavgv4hi3): Ditto.
14375 ("mmx_psadbw): Ditto.
14376 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14377 (sse_cvttps2pi): Ditto.
14378 (ssse3_pmaddubsw): Ditto.
14379 (*ssse3_pmulhrswv4hi3): Ditto.
14380 (ssse3_psign<mode>3): Ditto.
14382 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14384 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14385 adjustment for bit-fields to all aggregate types.
14387 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14389 * config/rs6000/predicates.md (pcrel_address): Use
14390 SYMBOL_REF_LOCAL_P to determine if a label is local.
14391 (pcrel_external_address): New predicate.
14392 (non_prefixed_mem_operand): Delete, predicate not used.
14393 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14394 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14396 (SYMBOL_REF_PCREL_P): Likewise.
14399 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14401 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14402 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14403 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14405 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14407 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14408 override on extra_headers.
14410 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14412 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14413 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14415 (darwin_driver_init): Likewise.
14417 2019-06-28 Jan Beulich <jbeulich@suse.com>
14419 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14420 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14421 Eliminate redundant alternative.
14423 2019-06-28 Jan Beulich <jbeulich@suse.com>
14425 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14426 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14427 Use vector_operand.
14429 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14431 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14432 having a lower cost regardless of the speed option.
14434 2019-06-28 Jan Beulich <jbeulich@suse.com>
14436 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14437 vector_operand plus, on both alternatives, "Bm" constraint.
14439 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14441 * config/arm/arm.md: Remove redundant constraints from
14442 define_expand but leave reload_inm and reload_outm patterns
14443 untouched since they need special constraints to work.
14444 * config/arm/arm-fixed.md: Remove redundant constraints from
14446 * config/arm/iwmmxt.md: Likewise.
14447 * config/arm/neon.md: Likewise.
14448 * config/arm/sync.md: Likewise.
14449 * config/arm/thumb1.md: Likewise.
14450 * config/arm/vec-common.md: Likewise.
14452 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14454 * doc/install.texi: Document --disable-tm-clone-registry.
14456 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14459 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14462 PR tree-optimization/91010
14463 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14464 return true. Otherwise, don't call operand_equal_p if offset1 or
14465 offset2 is NULL and just return false.
14467 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14469 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14470 user-specified float mode choice for kernel mode code.
14472 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14474 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14477 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14479 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14480 use longcall for 64b code.
14482 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14484 * builtins.c (get_memory_rtx): Fix comment.
14485 * optabs.def (movmem_optab): Change to cpymem_optab.
14486 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14487 (emit_block_move_hints): Change movmem to cpymem.
14488 * defaults.h: Change movmem to cpymem.
14489 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14490 (default_use_by_pieces_infrastructure_p): Ditto.
14491 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14492 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14494 * config/aarch64/aarch64.h: Change movmem to cpymem.
14495 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14496 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14497 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14499 * config/arc/arc-protos.h: Change movmem to cpymem.
14500 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14501 * config/arc/arc.h: Change movmem to cpymem in comment.
14502 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14503 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14504 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14505 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14506 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14507 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14508 * config/avr/avr-protos.h: Change movmem to cpymem.
14509 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14510 avr_out_movmem): Change movmem to cpymem.
14511 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14512 Change movmem to cpymem.
14513 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14514 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14515 Change movmem to cpymem.
14516 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14517 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14518 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14519 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14520 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14521 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14522 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14523 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14524 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14525 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14526 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14527 expand_small_cpymem_or_setmem,
14528 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14529 expand_set_or_cpymem_constant_prologue,
14530 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14531 * config/i386/i386-protos.h: Change movmem to cpymem.
14532 * config/i386/i386.h: Change movmem to cpymem in comment.
14533 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14534 (setmem<mode>): Change expansion function name.
14535 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14536 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14537 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14538 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14539 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14540 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14541 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14543 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14544 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14545 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14546 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14547 Change movmem to cpymem.
14548 * config/mips/mips.h: Change movmem to cpymem.
14549 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14550 * config/nds32/nds32-memory-manipulation.c
14551 (nds32_expand_movmemsi_loop_unknown_size,
14552 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14553 nds32_expand_movmemsi_unroll,
14554 nds32_expand_movmemsi): Change movmem to cpymem.
14555 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14556 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14557 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14558 (pa_adjust_insn_length): Change call to compute_movmem_length.
14559 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14560 movmemdi, movmemdi_prereload,
14561 movmemdi_postreload): Change movmem to cpymem.
14562 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14563 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14564 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14565 * config/riscv/riscv.h: Change movmem to cpymem.
14566 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14567 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14568 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14570 * config/s390/s390-protos.h: Change movmem to cpymem.
14571 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14572 s390_expand_insv): Change movmem to cpymem.
14573 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14574 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14575 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14576 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14577 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14578 for nonexistent function.
14579 * config/vax/vax.h: Change movmem to cpymem in comment.
14580 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14581 * config/visium/visium.h: Change movmem to cpymem in comment.
14582 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14583 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14584 * doc/md.texi: Change movmem to cpymem and update description to match.
14585 * doc/rtl.texi: Change movmem to cpymem.
14586 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14587 * doc/tm.texi: Regenerate.
14589 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14591 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14592 -fvariable-expansion-in-unroller by default.
14593 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14596 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14599 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14600 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14602 * config.gcc(rs6000-*-*): Define target_gtfiles.
14604 2019-06-27 Jan Hubicka <jh@suse.cz>
14606 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14607 (add_type_duplicate): When odr hash is not allocated, to nothing.
14608 (odr_based_tbaa_p): New function.
14609 (set_type_canonical_for_odr_type): New function.
14610 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14611 set_type_canonical_for_odr_type): New.
14612 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14613 ODR based TBAA are not equivalent to non-ODR types.
14615 2019-06-27 Martin Liska <mliska@suse.cz>
14617 PR tree-optimization/90974
14618 PR rtl-optimization/90975
14619 PR rtl-optimization/90976
14621 PR tree-optimization/91017
14622 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14624 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14625 initial commit of IRA.
14626 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14628 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14629 Remove unused mode1.
14630 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14633 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14636 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14637 instead of register_operand for operands[1], add m to its constraints
14638 if operands[2] uses "C" constraint. Ensure in condition that if
14639 operands[2] is not 0, then operands[1] is not a MEM. For last two
14640 alternatives, use unaligned loads instead of aligned if operands[1] is
14641 misaligned_operand.
14643 2019-06-27 Martin Liska <mliska@suse.cz>
14645 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14647 * bt-load.c (move_btr_def): Likewise.
14648 * builtins.c (expand_builtin_apply_args_1): Likewise.
14649 (expand_builtin_apply): Likewise.
14650 * cfgexpand.c (expand_asm_stmt): Likewise.
14651 (construct_init_block): Likewise.
14652 * cfghooks.c (verify_flow_info): Likewise.
14653 * cfgloopmanip.c (remove_path): Likewise.
14654 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14655 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14656 * combine.c (simplify_if_then_else): Likewise.
14657 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14658 (choose_basereg): Likewise.
14659 (ix86_expand_prologue): Likewise.
14660 (ix86_preferred_output_reload_class): Likewise.
14661 * cselib.c (cselib_record_sets): Likewise.
14662 * df-scan.c (df_scan_alloc): Likewise.
14663 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14664 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14665 * emit-rtl.c (try_split): Likewise.
14666 * graphite-scop-detection.c (assign_parameter_index_in_region):
14668 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14669 * ira-color.c (setup_profitable_hard_regs): Likewise.
14670 * ira.c (rtx_moveable_p): Likewise.
14671 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14672 * read-rtl.c (read_subst_mapping): Likewise.
14673 * regrename.c (scan_rtx): Likewise.
14674 * reorg.c (fill_slots_from_thread): Likewise.
14675 * tree-inline.c (tree_function_versioning): Likewise.
14676 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14677 * tree-ssa-sink.c (statement_sink_location): Likewise.
14678 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14679 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14680 (vect_create_epilog_for_reduction): Likewise.
14681 * tree.c (build_nonstandard_integer_type): Likewise.
14683 2019-06-27 Richard Biener <rguenther@suse.de>
14685 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14687 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14689 PR tree-optimization/89772
14690 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14691 out-of-bound accesses checking.
14693 2019-06-27 Martin Liska <mliska@suse.cz>
14695 PR tree-optimization/91014
14696 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14697 when LHS is NULL_TREE.
14699 2019-06-27 Martin Liska <mliska@suse.cz>
14701 * symbol-summary.h (traverse): Pass
14702 argument a to the call of callback.
14703 (gt_ggc_mx): Mark arguments as unused.
14704 (gt_pch_nx): Likewise.
14706 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14709 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14712 2019-06-26 Jeff Law <law@redhat.com>
14714 PR tree-optimization/90883
14715 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14716 (delete_dead_or_redundant_assignment): Likewise.
14718 PR tree-optimization/90883
14719 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14720 * tree-ssa-dse.c: Update various comments to distinguish between
14721 dead and redundant stores.
14722 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14723 (dse_optimize_redundant_stores): New function.
14724 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14725 Distinguish between dead and redundant calls in dump output. All
14727 (delete_dead_or_redundant_assignment): Similarly for assignments.
14728 (dse_optimize_stmt): Handle _CHK variants. For statements which
14729 store 0 into multiple memory locations, try to prove a subsequent
14730 store is redundant.
14732 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14735 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14736 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14738 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14740 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14741 (branch_islands): New extern.
14742 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14743 * config/rs6000/rs6000.c: .. here.
14745 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14747 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14748 (powerpc*-*-*) ... to here.
14750 2019-06-26 Jeff Law <law@redhat.com>
14752 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14753 memcpy, memmove and memset builtins.
14754 (maybe_trim_memstar_call): Likewise.
14756 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14758 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14760 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14762 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14764 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14766 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14768 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14770 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14773 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14775 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14777 2019-06-26 Richard Biener <rguenther@suse.de>
14780 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14782 2019-06-26 Richard Biener <rguenther@suse.de>
14784 * lto-streamer.h (lto_bitmap_alloc): Remove.
14785 (lto_bitmap_free): Likewise.
14786 * lto-streamer.c (lto_bitmap_alloc): Remove.
14787 (lto_bitmap_free): Likewise.
14788 (lto_obstack): Likewise.
14789 (lto_obstack_initialized): Likewise.
14790 * lto-streamer-out.c (lto_output): Use own obstack for local
14791 bitmap, free it consistently.
14793 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14796 * config/i386/sse.md
14797 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14798 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14799 insns if operands[2] is misaligned_operand.
14801 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14803 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14805 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14808 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14810 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14812 2019-06-26 Martin Liska <mliska@suse.cz>
14814 PR tree-optimization/90973
14815 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14816 epilogue_cost_vec instead of prologue_cost_vec for
14819 2019-06-26 Martin Liska <mliska@suse.cz>
14821 * bb-reorder.c (connect_better_edge_p): Add missing else
14822 statement in the middle of if-else statements.
14824 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14825 H.J. Lu <hongjiu.lu@intel.com>
14826 Olga Makhotina <olga.makhotina@intel.com>
14828 * common/config/i386/i386-common.c
14829 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14830 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14831 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14832 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14833 (ix86_handle_option): Handle -mavx512vp2intersect.
14834 * config/i386/avx512vp2intersectintrin.h: New.
14835 * config/i386/avx512vp2intersectvlintrin.h: New.
14836 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14837 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14838 AVX512VP2INTERSECT.
14839 * config/i386/i386-builtin-types.def: Add new types.
14840 * config/i386/i386-builtin.def: Add new builtins.
14841 * config/i386/i386-builtins.c: (enum processor_features): Add
14842 F_AVX512VP2INTERSECT.
14843 (static const _isa_names_table isa_names_table): Ditto.
14844 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14845 __AVX512VP2INTERSECT__.
14846 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14847 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14848 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14849 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14850 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14851 * config/i386/i386-options.c (ix86_target_string): Add
14852 -mavx512vp2intersect.
14853 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14854 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14855 P2HImode and P2QImode.
14856 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14857 number for P2QImode and P2HImode.
14858 (ix86_regmode_natural_size): New function.
14859 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14860 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14861 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14862 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14863 * config/i386/i386.opt: Add -mavx512vp2intersect.
14864 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14865 avx512vp2intersectvlintrin.h.
14866 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14867 (define_mode_iterator VI48_AVX512VP2VL): New.
14868 (avx512vp2intersect_2intersect<mode>,
14869 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14870 * config.gcc: Add avx512vp2intersectvlintrin.h and
14871 avx512vp2intersectintrin.h to extra_headers.
14872 * doc/invoke.texi: Document -mavx512vp2intersect.
14874 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14876 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14878 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14880 * config/rs6000/rs6000.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
14915 (machine_function): Moved to rs6000.h.
14916 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14918 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14919 savres_routine_syms, savres_routine_name, morestack_ref,
14920 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14921 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14922 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14923 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14924 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14925 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14926 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14927 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14928 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14929 get_stack_clash_protection_probe_interval,
14930 get_stack_clash_protection_guard_size,
14931 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14932 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14933 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14934 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14935 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14936 gen_frame_mem_offset, rs6000_savres_routine_name,
14937 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14938 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14939 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14940 rs6000_global_entry_point_prologue_needed_p,
14941 rs6000_get_separate_components, rs6000_components_for_bb,
14942 rs6000_disqualify_components, rs6000_emit_prologue_components,
14943 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14944 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14945 rs6000_output_savres_externs, rs6000_output_function_prologue,
14946 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14947 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14948 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14949 rs6000_output_function_epilogue, gen_add3_const,
14950 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14951 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14952 to here from rs6000.c.
14953 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14954 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14955 quad_address_offset_p) Moved to here from rs6000.c.
14956 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14957 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14960 2019-06-25 Martin Liska <mliska@suse.cz>
14962 * hash-table.c (hashtab_chk_error): Move here from ...
14963 * hash-table.h (hashtab_chk_error): ... here.
14965 2019-06-25 Martin Liska <mliska@suse.cz>
14967 PR tree-optimization/90978
14968 * df-scan.c (df_update_entry_block_defs): Remove dead else
14970 (df_update_exit_block_uses): Likewise.
14972 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14973 Andrew Stubbs <ams@codesourcery.com>
14975 * config.gcc (thread_file): Set to gcn for AMD GCN.
14976 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14977 (TARGET_EMUTLS_VAR_INIT): New hook.
14979 2019-06-25 Martin Jambor <mjambor@suse.cz>
14982 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14984 2019-06-25 Richard Biener <rguenther@suse.de>
14986 PR tree-optimization/90930
14987 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14988 into parallel form in the last pass instance.
14990 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14992 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14993 (arc_legitimize_pic_address): Simplify and cleanup the function.
14994 (SYMBOLIC_CONST): Remove.
14995 (prepare_pic_move): Likewise.
14996 (prepare_move_operands): Handle complex mov cases here.
14997 (arc_legitimize_address_0): Remove call to
14998 arc_legitimize_pic_address.
14999 (arc_legitimize_address): Remove call to
15000 arc_legitimize_tls_address.
15001 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
15002 (movhi_insn): Likewise.
15004 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15006 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
15008 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
15009 format of "__intN" types for UINTMAX_TYPE.
15010 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
15011 format of "__intN" types for SIZETYPE.
15012 * tree.c (build_common_tree_nodes): Accept "__intN__"
15013 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
15014 * doc/invoke.texi: Document that __intN__ disables pedantic
15017 2019-06-25 Jan Hubicka <jh@suse.cz>
15019 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
15020 base2_alias_set is non-zero before doing TBAA based disambiguation.
15022 2019-06-25 Martin Liska <mliska@suse.cz>
15024 PR tree-optimization/90973
15025 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
15026 of prologue and epilogue.
15028 2019-06-24 Jan Hubicka <jh@suse.cz>
15030 * ipa-utils.h (type_with_linkage_p): Verify that type is
15032 (odr_type_p): Remove extra return.
15033 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
15034 hash STRING_FLAG only for arrays and integers.
15035 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
15036 Update analogously.
15037 * tree-streamer-out.c (pack_ts_type_common_value_fields):
15039 * print-tree.c (print_node): Print cxx-odr-p
15041 * tree.c (need_assembler_name_p): Also check that type
15043 (verify_type_variant): Update verification of SRING_FLAG;
15044 also check CXX_ODR_P.
15045 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
15046 (TYPE_STRING_FLAG): Use it.
15047 (TYPE_CXX_ODR_P): New macro.
15048 * dwarf2out.c (gen_array_type_die): First check that type
15049 is an array and then test string flag.
15051 2019-06-24 Richard Biener <rguenther@suse.de>
15053 PR tree-optimization/90972
15054 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
15055 in common code, dealing with STRING_CST properly.
15057 2019-06-24 Richard Biener <rguenther@suse.de>
15059 PR tree-optimization/90930
15060 PR tree-optimization/90316
15061 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
15062 decrement of limit.
15064 2019-06-24 Martin Sebor <msebor@redhat.com>
15066 * tree-pretty-print.h: Remove unnecessary punctuation characters
15068 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
15070 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
15072 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
15073 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
15074 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
15076 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15078 * config/rs6000/darwin.h: Handle GCC target pragma.
15080 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15082 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
15084 2019-06-22 Jeff Law <law@redhat.com>
15086 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15088 2019-06-22 Jan Hubicka <jh@suse.cz>
15090 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
15091 give up on bitfields; continue searching for different refs
15094 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15096 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15097 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
15098 containing the offset as possible simd lane access. Look through
15099 widening conversion. Move the
15100 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
15102 2019-06-21 Richard Biener <rguenther@suse.de>
15104 PR tree-optimization/90930
15105 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
15106 flag on new stmts to avoid re-processing them.
15108 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
15110 PR c++/90875 - added -Wswitch-outside-range option
15111 * doc/invoke.texi (Wswitch-outside-range): Document.
15113 2019-06-21 Jeff Law <law@redhat.com>
15115 PR tree-optimization/90949
15116 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
15117 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
15119 2019-06-21 Richard Biener <rguenther@suse.de>
15122 * dwarf2out.c (prune_unused_types_walk): Always consider
15123 function-local extern declarations as used.
15125 2019-06-21 Richard Biener <rguenther@suse.de>
15127 PR tree-optimization/90913
15128 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
15129 the scalar variant of if-conversion versioning.
15131 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15133 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
15134 create another "omp scan inscan exclusive" array if
15135 !ctx->scan_inclusive.
15136 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
15137 (lower_omp_scan): Likewise.
15138 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
15139 2-bit bitfield for simd_lane_access_p member.
15140 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
15141 aux == (void *)-4 as simd lane access.
15142 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
15143 comment with permutations to show the canonical permutation order.
15144 (vectorizable_scan_store): Handle exclusive scan.
15145 (vectorizable_store): Call vectorizable_scan_store even for
15146 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
15148 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15149 "omp simd array" arrays with one byte elements.
15151 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
15153 * config/alpha/alpha.md (@unaligned_store<mode>):
15154 Rename from unaligned_store<mode>.
15155 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
15156 * config/alpha/sync.md (@load_locked_<mode>): Rename
15157 from load_locked_<mode>.
15158 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
15159 (@atomic_compare_and_swap<mode>_1): Rename
15160 from atomic_compare_and_swap<mode>_1.
15161 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
15162 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
15163 Use gen_reload_in_aligned and gen_unaligned_store.
15164 (emit_load_locked): Remove.
15165 (emit_store_conditional): Ditto.
15166 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
15167 (alpha_split_compare_and_swap): Ditto.
15168 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
15169 (alpha_split_compare_and_swap_12): Use gen_load_locked
15170 and gen_store_conditional.
15171 (alpha_split_atomic_exchange): Ditto.
15172 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
15173 (alpha_split_atomic_exchange_12): Use gen_load_locked
15174 and gen_store_conditional.
15176 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
15178 * config/aarch64/aarch64-errata.h: New file.
15179 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
15180 (CA53_ERR_843419_SPEC): Delete.
15181 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
15182 * config/aarch64/aarch64-linux.h: Likewise.
15183 * config/aarch64/aarch64-netbsd.h: Likewise.
15184 * config/aarch64/aarch64-freebsd.h: Likewise.
15186 2019-06-20 Marek Polacek <polacek@redhat.com>
15188 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
15190 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
15192 * config/rs6000/rs6000.md (isa attribute): Add support for
15193 for a future processor.
15195 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
15198 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
15199 standard scalar operation pattern for V2DF.
15200 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
15201 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
15202 (*ieee_<ieee_maxmin><mode>3): Likewise.
15203 (vec_setv2df_0): Likewise.
15205 2019-06-20 Jan Hubicka <jh@suse.cz>
15207 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
15208 parameter; it has no use in gimple memory model.
15209 (indirect_ref_may_alias_decl_p): Update.
15211 2019-06-20 Martin Liska <mliska@suse.cz>
15213 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
15216 2019-06-20 Jakub Jelinek <jakub@redhat.com>
15218 * tree-vect-stmts.c (enum scan_store_kind): New type.
15219 (scan_store_can_perm_p): Change last argument from int * to
15220 vec<enum scan_store_kind> *, record precisely which permutations
15221 need whole vector left shift or that plus VEC_COND_EXPR.
15222 (vectorizable_scan_store): Adjust caller, use whole vector left shift
15223 and additional VEC_COND_EXPR only for those iterations that need it.
15225 2019-06-20 Alexandre Oliva <oliva@adacore.com>
15227 * config.gcc: Fix ARM --with-fpu checking and error message.
15229 2019-06-19 Marek Polacek <polacek@redhat.com>
15231 PR c++/60364 - noreturn after first decl not diagnosed.
15232 * attribs.c (get_attribute_namespace): No longer static.
15233 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
15235 (attr_noreturn_exclusions): Make it extern.
15236 * attribs.h (get_attribute_namespace): Declare.
15237 * tree-inline.c (function_attribute_inlinable_p): Use
15238 get_attribute_name.
15240 2019-06-19 Martin Sebor <msebor@redhat.com>
15242 PR tree-optimization/90626
15243 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
15245 PR tree-optimization/90626
15246 * tree-ssa-strlen.c (strxcmp_unequal): New function.
15247 (handle_builtin_string_cmp): Call it.
15249 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15251 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
15252 and DARWIN_NOPIE_SPEC.
15253 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
15254 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
15255 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
15256 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
15257 (DARWIN_EXPORT_DYNAMIC): Delete.
15258 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
15259 and pie options processing to darwin.h.
15260 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
15262 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15264 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
15265 in computing the number of options to be moved.
15267 2019-06-19 Maya Rashish <coypu@sdf.org>
15269 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
15270 (CLEAR_INSN_CACHE) Use it.
15272 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
15274 * config/i386/i386.md (cmpstrnsi): Remove dead code.
15276 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
15278 PR middle-end/84521
15279 * builtins.c (expand_builtin_setjmp_setup): Save
15280 hard_frame_pointer_rtx.
15281 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
15283 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
15285 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
15287 (remove_reg_equal_offset_note): Remove unused function.
15288 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
15290 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15291 (arc_builtin_setjmp_frame_value): Remove function.
15292 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15293 (avr_builtin_setjmp_frame_value): Remove function.
15294 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15295 (ix86_builtin_setjmp_frame_value): Remove function.
15296 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
15297 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15298 (sparc_builtin_setjmp_frame_value): Remove function.
15299 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15300 (vax_builtin_setjmp_frame_value): Remove function.
15301 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
15302 pointer if has_nonlocal_label.
15304 2019-06-19 Jakub Jelinek <jakub@redhat.com>
15306 * doc/md.texi: Document vec_shl_<mode> pattern.
15307 * optabs.def (vec_shl_optab): New optab.
15308 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
15309 argument, if == vec_shl_optab, check for left whole vector shift
15310 pattern rather than right shift.
15311 (expand_vec_perm_const): Add vec_shl_optab support.
15312 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
15314 * tree-vect-generic.c (lower_vec_perm): Support permutations which
15315 can be handled by vec_shl_optab.
15316 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
15317 (check_scan_store): Use it.
15318 (vectorizable_scan_store): If target can't do normal permutations,
15319 try to use whole vector left shifts and if needed a VEC_COND_EXPR
15321 * config/i386/sse.md (vec_shl_<mode>): New expander.
15323 * omp-low.c (lower_rec_input_clauses): Handle references properly
15325 (lower_omp_scan): Likewise.
15327 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15329 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
15330 mem_mode is BLKmode.
15332 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
15335 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
15336 pointer adjustment for the case of no callee-saved registers and
15337 stack frame bigger than 128 bytes.
15339 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
15341 PR middle-end/90862
15342 * omp-low.c (check_omp_nesting_restrictions): Handle
15343 GF_OMP_TARGET_KIND_OACC_DECLARE.
15345 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
15347 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
15348 (@add<mode>3_carry): Rename from add<mode>3_carry.
15349 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
15350 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
15351 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
15352 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
15353 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
15354 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
15355 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
15356 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
15357 (cmpstrnsi): Use gen_cmp_1.
15358 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15359 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15360 (@umonitor_<mode>): Rename from umonitor_<mode>.
15361 * config/i386/i386-expand.c (ix86_expand_copysign):
15362 Use gen_copysign3_const and gen_copysign3_var.
15363 (ix86_expand_xorsign): Use gen_xorsign3_1.
15364 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15365 gen_sub3_carry_ccgz and gen_cmp1.
15366 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15367 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15368 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15369 (ix86_split_lshr): Ditto.
15370 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15372 2019-06-18 Jason Merrill <jason@redhat.com>
15374 * tree.c (build_constructor): Add MEM_STAT_DECL.
15376 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15378 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15379 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15380 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15381 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15382 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15383 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15384 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15385 Use CC_NZC instead of CC.
15386 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15387 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15388 (aarch64_print_operand): Handle E_CC_NZCmode.
15389 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15390 of gen_set_clobber_cc.
15392 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15394 * config/aarch64/aarch64-sve.md: Tabify file.
15396 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15398 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15399 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15400 * config/aarch64/aarch64-sve.md: Use it.
15402 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15404 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15405 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15406 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15407 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15408 (aarch64_expand_sve_vec_cmp_int): Use it.
15409 (aarch64_expand_sve_vec_cmp_float): Likewise.
15410 * config/aarch64/aarch64-sve.md: Likewise throughout.
15412 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15413 Kugan Vivekanandarajah <kuganv@linaro.org>
15415 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15416 (*cond_<optab><mode>_z): Fold into...
15417 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15418 operand 4 can be tied to operand 0 (either inherently or via RA).
15420 2019-06-18 Richard Biener <rguenther@suse.de>
15423 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15424 as if optimized away.
15426 2019-06-18 Tom de Vries <tdevries@suse.de>
15428 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15429 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15430 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15432 (define_insn "@set_softstack_<mode>"): ... this.
15433 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15434 (define_insn "@omp_simt_enter_<mode>"): ... this.
15435 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15436 (define_insn "@omp_simt_exit_<mode>"): ... this.
15438 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15440 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15441 vf parameter. Restore the previous iv step of nscalars_step,
15442 but give it iv_type rather than compare_type. Tweak code order
15443 to match the comments.
15444 (vect_set_loop_condition_masked): Update accordingly.
15445 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15446 for iv_precision. Tweak comment formatting.
15448 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15450 * config/darwin.c: Strip trailing whitespace.
15452 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15454 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15455 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15457 2019-06-18 Martin Jambor <mjambor@suse.cz>
15460 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15461 caller does not have flag_ipa_cp set.
15463 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15465 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15466 from "*fold_left_plus_<mode>", updated operands order.
15467 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15468 * internal-fn.c (mask_fold_left_direct): New define.
15469 (expand_mask_fold_left_optab_fn): Likewise.
15470 (direct_mask_fold_left_optab_supported_p): Likewise.
15471 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15472 * optabs.def (mask_fold_left_plus_optab): New optab.
15473 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15474 masked internal_fn for a reduction ifn.
15475 (vectorize_fold_left_reduction): Add support for masking reductions.
15477 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15479 PR middle-end/80791
15480 * target.def (predict_doloop_p): New hook.
15481 * targhooks.h (default_predict_doloop_p): New declaration.
15482 * targhooks.c (default_predict_doloop_p): New function.
15483 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15484 * doc/tm.texi: Regenerate.
15485 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15486 (TARGET_PREDICT_DOLOOP_P): New macro.
15487 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15489 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15491 * omp-low.c (struct omp_context): Add scan_inclusive field.
15492 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15494 (struct omplow_simd_context): Add lastlane member.
15495 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15496 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15498 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15499 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15500 (lower_omp_scan): New function.
15501 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15502 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15503 check 3rd argument if present rather than 2nd.
15504 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15505 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15507 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15508 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15510 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15511 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15512 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15514 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15515 IFN_GOMP_SIMD_LANE argument.
15516 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15517 encoded ->aux value.
15518 * tree-vect-stmts.c: Include attribs.h.
15519 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15520 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15522 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15523 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15525 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15528 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15529 (*nabs<mode>2_1): Ditto.
15530 (nabs sse-reg splitter): New splitter.
15531 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15533 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15535 PR bootstrap/90873.
15536 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15539 2019-06-17 Tom de Vries <tdevries@suse.de>
15541 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15542 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15543 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15545 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15547 (define_insn "omp_simt_enter_insn"): Rename to ...
15548 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15549 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15550 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15551 gen_omp_simt_enter_si.
15552 (define_expand "omp_simt_exit"): New.
15553 (define_insn "omp_simt_exit"): Rename to ...
15554 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15557 2019-06-17 Matthew Green <mrg@eterna.com.au>
15558 Maya Rashish <coypu@sdf.org>
15560 * config.gcc (aarch64*-*-netbsd*): New target.
15561 * config/aarch64/aarch64-netbsd.h: New file.
15562 * config/aarch64/t-aarch64-netbsd: Likewise.
15564 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15566 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15567 the access path from base to first VIEW_CONVERT_EXPR or
15570 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15572 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15573 access path on BIT_FIELD_REFs.
15575 2019-06-17 Martin Liska <mliska@suse.cz>
15578 * ipa-utils.h (odr_type_p): Remove dead code.
15580 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15582 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15583 alternative Solaris 11.4 format.
15584 * configure: Regenerate.
15586 2019-06-17 Tom de Vries <tdevries@suse.de>
15588 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15589 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15591 (define_insn "call_value_insn"): Rename to ...
15592 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15594 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15597 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15599 PR middle-end/64242
15600 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15601 frame clobbers and schedule block.
15602 (builtin_longjmp): Likewise.
15604 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15606 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15607 describe how to perform MSPABI compliant 64-bit shift.
15608 * config/msp430/msp430.md (ashldi3): New define_expand.
15609 (ashrdi3): New define_expand.
15610 (lshrdi3): New define_expand.
15612 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15614 * doc/sourcebuild.texi: Document new effective target keyword
15617 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15619 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15620 indirect_refs_may_alias_p): Revert accidental commits.
15622 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15623 at the end of structures.
15625 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15627 * config/darwin.c (machopic_indirect_call_target): Use renamed
15628 darwin_picsymbol_stubs to decide on output.
15629 (darwin_override_options): Handle darwin_picsymbol_stubs.
15630 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15631 (LD64_VERSION): Revise default.
15632 * config/darwin.opt: (mpic-symbol-stubs): New option.
15633 (darwin_picsymbol_stubs): New variable.
15634 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15635 rename to TARGET_MACHO_PICSYM_STUBS.
15636 * config/i386/i386.c (output_pic_addr_const): Likewise.
15637 * config/i386/i386.h Likewise.
15638 * config/rs6000/darwin.h: Likewise.
15639 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15640 darwin_picsymbol_stubs.
15642 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15644 * config/darwin.opt (prebind, noprebind, seglinkedit,
15645 noseglinkedit): Add RejectNegative.
15647 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15649 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15650 in my previous patch.
15652 2019-06-16 Tom de Vries <tdevries@suse.de>
15654 PR tree-optimization/89376
15655 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15657 2019-06-15 Maya Rashish <coypu@sdf.org>
15659 * doc/invoke.texi (Spec Files): Update location of the
15662 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15664 * doc/extend.texi (Common Function Attributes): Clarify
15665 no_sanitize. Fix grammar.
15667 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15669 * tree-ssa-alias.c (alias_stats): Add
15670 nonoverlapping_component_refs_p_may_alias,
15671 nonoverlapping_component_refs_p_no_alias,
15672 nonoverlapping_component_refs_of_decl_p_may_alias,
15673 nonoverlapping_component_refs_of_decl_p_no_alias.
15674 (dump_alias_stats): Dump them.
15675 (nonoverlapping_component_refs_of_decl_p): Add stats.
15676 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15679 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15681 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15682 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15684 (*anddi3_doubleword): Split before reload. Merge with
15685 anddi->zext pre-reload splitter.
15686 (*andndi3_doubleword): Split before reload.
15687 (*<code>di3_doubleword): Ditto.
15688 (*one_cmpldi2_doubleword): Ditto.
15690 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15692 PR middle-end/90779
15693 * gimplify.c: Include omp-offload.h and context.h.
15694 (gimplify_bind_expr): Add "omp declare target" attributes
15695 to static block scope variables inside of target region or target
15698 2019-06-15 Tom de Vries <tdevries@suse.de>
15700 PR tree-optimization/90009
15701 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15702 Return NULL if bb contains IFN_UNIQUE.
15704 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15706 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15707 (un): New define_mode_attr.
15708 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15709 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15710 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15712 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15714 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15716 * config/darwin.opt: Add RejectNegative where needed, reorder
15717 and add minimal functional descriptions.
15719 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15721 PR rtl-optimization/90765
15722 * calls.c (update_stack_alignment_for_call): New function.
15723 (expand_call): Call update_stack_alignment_for_call when
15724 outgoing parameter is passed in the stack.
15725 (emit_library_call_value_1): Likewise.
15726 * function.c (locate_and_pad_parm): Don't update
15727 stack_alignment_needed and preferred_stack_boundary.
15729 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15732 * config/i386/i386-features.c
15733 (dimode_scalar_chain::compute_convert_gain): Replace
15734 mmxsse_to_integer with sse_to_integer.
15735 * config/i386/i386.c (ix86_register_move_cost): Verify that
15736 moves between MMX and non-MMX units require secondary memory.
15737 Correct costs of moves between SSE and integer units.
15738 * config/i386/i386.h (processor_costs): Rename cost of moving
15739 SSE register to integer to sse_to_integer. Rename cost of
15741 2019-06-14 Matt Thomas <matt@3am-software.com>
15742 Matthew Green <mrg@eterna.com.au>
15743 Nick Hudson <skrll@netbsd.org>
15744 Maya Rashish <coypu@sdf.org>
15745 Richard Earnshaw <rearnsha@arm.com>
15747 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15748 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15749 * config/arm/netbsd-eabi.h: New file.
15750 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15752 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15753 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15754 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15755 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15757 2019-06-14 Richard Biener <rguenther@suse.de>
15759 * tree-loop-distribution.c (classify_partition): Return
15760 whether a reduction appeared in all partitions and do not
15761 stop builtin detection because of this.
15762 (distribute_loop): Sort a non-builtin partition last if
15763 there's a reduction in all partitions and make sure the
15764 partition prevailing as last is not a builtin.
15766 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15769 * ipa-prop.c (add_to_agg_contents_list): New function.
15770 (clobber_by_agg_contents_list_p): Likewise.
15771 (extract_mem_content): Likewise.
15772 (get_place_in_agg_contents_list): Delete.
15773 (determine_known_aggregate_parts): Renamed from
15774 determine_locally_known_aggregate_parts. New parameter
15777 2019-06-13 Martin Sebor <msebor@redhat.com>
15779 PR tree-optimization/90662
15780 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15783 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15786 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15787 dbase is not TARGET_MEM_REF.
15789 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15791 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15793 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15794 Do not generate DImode extends for 32bit targets.
15795 (and->zext post-reload splitter): Use gen_extend_insn
15796 instead of indirect functions.
15797 (anddi->zext pre-reload splitter): New.
15798 (*zext<mode>_doubleword_and): Remove.
15799 (*zext<mode>_doubleword): Ditto.
15800 (*zextsi_doubleword): Dittto.
15802 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15804 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15805 Use gen_sub3_insn instead of indirect function.
15806 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15808 (ix86_adjust_counter): Ditto.
15810 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15811 Lijia He <helijia@linux.ibm.com>
15813 PR tree-optimization/77820
15814 * tree-ssa-threadedge.c
15815 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15817 (thread_across_edge): Add call to
15818 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15820 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15822 * config/darwin-driver.c (validate_macosx_version_min): New.
15823 (darwin_default_min_version): Cleanup and validate supplied version.
15824 (darwin_driver_init): Likewise and push cleaned version into opts.
15826 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15828 PR tree-optimization/90869
15829 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15830 converts in MEM_REF referencing decl rather than view converts
15831 from decl type to MEM_REF type.
15833 2019-06-13 Richard Biener <rguenther@suse.de>
15835 PR tree-optimization/90856
15836 * tree-sra.c (build_ref_for_model): Only use
15837 build_reconstructed_reference when address-spaces are the same.
15839 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15841 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15842 wrap ei variable name in the declaration in ()s.
15843 (nvptx_single): Actually use mode_label variable. Formatting fix.
15845 2019-06-13 Richard Biener <rguenther@suse.de>
15847 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15848 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15849 also return the condition stmt.
15850 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15851 loop we can version and version that, reusing the loop version
15852 created by if-conversion instead of versioning again.
15854 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15856 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15858 * tree-vrp (value_range_base::may_contain_p): Call into
15859 value_inside_range.
15860 (value_inside_range): Make private inside value_range_base class.
15861 Take min/max from *this.
15862 (range_includes_p): Remove.
15863 * tree-vrp.h (value_range_base): Add value_inside_range.
15864 (range_includes_p): Remove.
15865 (range_includes_zero_p): Call may_contain_p.
15866 * vr-values.c (compare_range_with_value): Same.
15868 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15870 * doc/extend.texi (ARC Function Attributes): Update info.
15872 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15874 PR tree-optimization/89713
15875 * doc/invoke.texi (-ffinite-loops): Document new option.
15876 * common.opt (-ffinite-loops): New option.
15877 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15878 IFN_GOACC_LOOP calls as necessary.
15879 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15881 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15882 IFN_GOACC_LOOP call is not used.
15883 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15885 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15888 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15889 compare_type is not with Pmode size, we will create an IV with
15890 Pmode size with truncated use (i.e. converted to the correct type).
15891 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15892 (vect_iv_limit_for_full_masking): New. Factored out of
15893 vect_set_loop_condition_masked.
15894 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15895 (vect_iv_limit_for_full_masking): Declare.
15897 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15900 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15901 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15902 (get_alias_ptr_type_for_ptr_address): Likewise.
15903 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15904 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15905 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15908 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15910 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15912 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15914 * common/config/pru/pru-common.c: New file.
15915 * config.gcc: Add PRU target.
15916 * config/pru/alu-zext.md: New file.
15917 * config/pru/constraints.md: New file.
15918 * config/pru/predicates.md: New file.
15919 * config/pru/pru-opts.h: New file.
15920 * config/pru/pru-passes.c: New file.
15921 * config/pru/pru-pragma.c: New file.
15922 * config/pru/pru-protos.h: New file.
15923 * config/pru/pru.c: New file.
15924 * config/pru/pru.h: New file.
15925 * config/pru/pru.md: New file.
15926 * config/pru/pru.opt: New file.
15927 * config/pru/t-pru: New file.
15928 * doc/extend.texi: Document PRU pragmas.
15929 * doc/invoke.texi: Document PRU-specific options.
15930 * doc/md.texi: Document PRU asm constraints.
15932 2019-06-12 Martin Sebor <msebor@redhat.com>
15934 PR middle-end/90676
15935 * tree-pretty-print.c (dump_mem_ref): New function. Include
15936 MEM_REF type in output when different size than operand.
15937 (dump_generic_node): Move code to dump_mem_ref and call it.
15939 2019-06-12 Martin Sebor <msebor@redhat.com>
15941 PR tree-optimization/90662
15942 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15945 2019-06-12 Tom de Vries <tdevries@suse.de>
15947 PR tree-optimization/90009
15948 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15950 2019-06-12 Martin Liska <mliska@suse.cz>
15952 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15954 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15955 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15956 Do not sanitize created maps.
15958 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15960 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15961 value_range::singleton_p.
15962 * tree-vrp.c (value_range_constant_singleton): Remove.
15963 * tree-vrp.h (value_range_constant_singleton): Remove.
15964 * vr-values.c (vr_values::singleton): Use
15965 value_range::singleton_p.
15967 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15970 * cfgexpand.c (align_local_variable): Add really_expand argument,
15971 don't SET_DECL_ALIGN if it is false.
15972 (add_stack_var): Add really_expand argument, pass it through to
15973 align_local_variable.
15974 (expand_one_stack_var_1): Pass true as really_expand to
15975 align_local_variable.
15976 (expand_one_ssa_partition): Pass true as really_expand to
15978 (expand_one_var): Pass really_expand through to add_stack_var.
15980 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15982 * config/arm/iterators.md (VABAL): New int iterator.
15983 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15984 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15985 UNSPEC_VABAL_U values.
15987 2019-06-12 Martin Liska <mliska@suse.cz>
15989 * value-prof.c (stream_out_histogram_value): Only first value
15992 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15995 * symtab.c (symtab_node::set_section): Allow being called on aliases
15996 as long as they aren't analyzed yet.
15998 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
16000 * config/mips/mips.c (mips_final_postscan_insn): Modify call
16001 to `mips_set_text_contents_type' to indicate whether a
16002 non-debug insn follows.
16004 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
16006 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
16007 enabling -mpcrel by default.
16008 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
16009 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
16010 that the test against -mcpu=future is done first. Then test if
16011 -mprefixed-addr is on for -mpcrel.
16012 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
16014 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16017 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
16018 instead of and.u%d.
16020 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16022 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
16024 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
16026 PR c++/90449 - add -Winaccessible-base option.
16027 * doc/invoke.texi (Winaccessible-base): Document.
16029 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16031 PR tree-optimization/62041
16032 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
16034 2019-06-11 Jason Merrill <jason@redhat.com>
16036 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
16037 * tree.c (get_tree_code_name): Likewise.
16038 * print-tree.c (print_node): Only briefly print a node with an
16041 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16044 * trans-mem.c (tm_memopt_compute_available): Add assertion
16045 that blocks is not empty. Formatting fix.
16047 2019-06-11 Martin Liska <mliska@suse.cz>
16050 * hash-table.h: Extend create_gcc, add one parameter
16051 that is passed into hash_table::hash_table.
16053 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
16055 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
16057 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
16058 Emit clobber also for non-sse operations.
16059 (ix86_split_fp_absneg_operator): New function.
16060 * config/i386/i386.md (SSEMODEF): New mode iterator.
16061 (ssevecmodef): New mode attribute.
16062 (<code>tf2): Use absneg code iterator.
16063 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
16064 Add three-operand AVX alternatives.
16065 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
16066 Use absneg code iterator and X87MODEF mode iterator.
16067 (absneg fp_reg non-sse splitter): Call absneg code iterator
16068 and X87MODEF mode iterator.
16069 (absneg general_reg non-sse splitter): Use absneg code iterator
16070 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
16071 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
16072 code iterator. Add three-operand AVX alternative.
16073 (absneg sse_reg splitter): Use absneg code iterator
16074 and SSEMODEF mode iterator. Handle AVX operands.
16075 (absneg fp_reg splitter): Use absneg code iterator
16076 and MODEF mode iterator.
16077 (absneg general_reg splitter): Merge splitters using MODEF mode
16078 iterator. Use absneg code iterator. Call
16079 ix86_split_fp_absneg_operator.
16080 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
16081 Do not enable for non-sse modes before reload.
16082 (CSGNMODE): Remove.
16083 (CSGNVMODE): Ditto.
16084 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
16085 ssevecmodef mode attribute instaed of CSGNVMODE.
16086 (copysign<mode>3_const): Ditto.
16087 (copysign<mode>3_var): Ditto.
16088 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
16089 Use absneg code iterator. Simplify code using std::swap.
16090 * config/i386/predicates.md (absneg_operator): Remove.
16092 2019-06-10 Martin Sebor <msebor@redhat.com>
16094 * gimple-fold.c (get_range_strlen): Update comment that didn't
16095 make it into r267503 or related commits.
16097 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
16099 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
16100 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
16102 2019-06-10 Jakub Jelinek <jakub@redhat.com>
16104 * tree.def (OMP_SCAN): New tree code.
16105 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
16106 OMP_CLAUSE_EXCLUSIVE.
16107 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
16108 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
16109 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
16110 OMP_CLAUSE_{IN,EX}CLUSIVE.
16111 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16112 * tree-nested.c (convert_nonlocal_reference_stmt,
16113 convert_local_reference_stmt, convert_gimple_call): Handle
16115 * tree-pretty-print.c (dump_omp_clause): Handle
16116 OMP_CLAUSE_{IN,EX}CLUSIVE.
16117 (dump_generic_node): Handle OMP_SCAN.
16118 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
16119 * gimple.h (gomp_scan): New type.
16120 (is_a_helper <gomp_scan *>::test,
16121 is_a_helper <const gomp_scan *>::test): New templates.
16122 (gimple_build_omp_scan): Declare.
16123 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
16124 gimple_omp_scan_set_clauses): New inline functions.
16125 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
16126 * gimple.c (gimple_build_omp_scan): New function.
16127 (gimple_copy): Handle GIMPLE_OMP_SCAN.
16128 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
16129 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
16130 GIMPLE_OMP_TASKGROUP.
16131 (dump_gimple_omp_scan): New function.
16132 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
16133 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
16134 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
16135 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
16136 (is_gimple_stmt): Handle OMP_SCAN.
16137 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
16138 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16139 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
16140 mentioned in nested #pragma omp scan. Handle
16141 OMP_CLAUSE_{IN,EX}CLUSIVE.
16142 (gimplify_expr): Handle OMP_SCAN.
16143 * omp-low.c (check_omp_nesting_restrictions): For parent context,
16144 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
16146 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
16149 2019-06-10 Martin Liska <mliska@suse.cz>
16151 * ipa-cp.c (ignore_edge_p): New function.
16152 (build_toporder_info): Use it.
16153 * ipa-inline.c (ignore_edge_p): New function.
16154 (inline_small_functions): Use it.
16155 * ipa-pure-const.c (ignore_edge_for_nothrow):
16156 Verify opt_for_fn for caller and callee.
16157 (ignore_edge_for_pure_const): Likewise.
16158 * ipa-reference.c (ignore_edge_p): Extend to check
16160 * ipa-utils.c (searchc): Refactor.
16161 * ipa-utils.h: Fix coding style.
16163 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16165 * config/arc/arc.c (arc_rtx_costs): Update costs.
16167 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16169 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
16170 (arc_split_ior): Likewise.
16171 (arc_check_mov_const): Likewise.
16172 (arc_split_mov_const): Likewise.
16173 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
16174 (arc_rtx_costs): Replace check Crr with Cax constraint.
16175 (prepare_move_operands): Cleanup, remove unused code.
16176 (arc_split_ior): New function.
16177 (arc_check_ior_const): Likewise.
16178 (arc_split_mov_const): Likewise.
16179 (arc_check_mov_const): Likewise.
16180 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
16181 in define_insn_and_split pattern.
16182 (iorsi3): Likewise.
16183 (mulsi3_v2): Add new matching variant.
16184 (andsi3_i): Cleanup pattern.
16185 (rotrsi3_cnt1): Update pattern.
16186 (rotrsi3_cnt8): New pattern.
16187 (ashlsi2_cnt8): Likewise.
16188 (ashlsi2_cnt16): Likewise.
16189 * config/arc/constraints.md (C0p): Update constraint.
16191 (C0x): New pattern.
16192 (Cax): New pattern.
16194 2019-06-10 Martin Liska <mliska@suse.cz>
16196 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
16197 Update coding style.
16198 (sem_item_optimizer::dump_cong_classes):
16199 Print how many items are in a non-singular class. Improve
16202 2019-06-10 Martin Liska <mliska@suse.cz>
16204 * value-prof.c (dump_histogram_value): Change dump format.
16205 (gimple_mod_subtract_transform): Remove legacy comment.
16207 2019-06-10 Martin Liska <mliska@suse.cz>
16209 * value-prof.c (dump_histogram_value): Print histogram values
16212 2019-06-10 Martin Liska <mliska@suse.cz>
16214 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
16215 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
16216 * ipa-profile.c (ipa_profile_generate_summary):
16217 Use get_most_common_single_value.
16218 * tree-profile.c (gimple_init_gcov_profiler):
16219 Instrument with __gcov_one_value_profiler_v2
16220 and __gcov_indirect_call_profiler_v4.
16221 * value-prof.c (dump_histogram_value):
16222 Print all values for HIST_TYPE_SINGLE_VALUE.
16223 (stream_out_histogram_value): Update assert for
16225 (stream_in_histogram_value): Set number of
16226 counters for HIST_TYPE_SINGLE_VALUE.
16227 (get_most_common_single_value): New.
16228 (gimple_divmod_fixed_value_transform):
16229 Use get_most_common_single_value.
16230 (gimple_ic_transform): Likewise.
16231 (gimple_stringops_transform): Likewise.
16232 (gimple_find_values_to_profile): Set number
16233 of counters for HIST_TYPE_SINGLE_VALUE.
16234 * value-prof.h (get_most_common_single_value): New.
16236 2019-06-10 Martin Liska <mliska@suse.cz>
16238 * hash-map.h: Pass default value to hash_table ctor.
16239 * hash-table.h: Add default value to call of a ctor.
16241 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
16243 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
16244 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
16246 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
16249 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
16250 Call pa_output_function_label.
16251 (TARGET_ASM_FUNCTION_PROLOGUE): define.
16252 * config/pa/pa-protos.h (pa_output_function_label): Declare.
16253 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
16255 (pa_linux_output_function_prologue): Declare.
16256 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
16257 (pa_output_function_label): New.
16258 (pa_output_function_prologue): Revise to use pa_output_function_label.
16259 (pa_linux_output_function_prologue): New.
16260 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
16262 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
16264 * tree-vrp.h (value_range_base::intersect): New.
16265 (value_range::intersect_helper): Move from here...
16266 (value_range_base::intersect_helper): ...to here.
16267 * tree-vrp.c (value_range::intersect_helper): Rename to...
16268 (value_range_base::intersect_helper): ...this, and rewrite to
16269 return a value instead of modifying THIS in place.
16270 Also, move equivalence handling...
16271 (value_range::intersect): ...here, while calling intersect_helper.
16272 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
16274 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
16276 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
16278 2019-06-07 Jakub Jelinek <jakub@redhat.com>
16280 * Makefile.in (genprogerr): Add condmd.
16281 (genprog): Remove it here.
16283 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
16285 * doc/invoke.texi (AMD GCN Options): Add gfx906.
16287 2019-06-07 Richard Biener <rguenther@suse.de>
16290 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
16291 that appear after user labels.
16293 2019-06-07 Martin Liska <mliska@suse.cz>
16295 * cselib.c (cselib_init): Disable hash table
16297 * hash-set.h: Pass new default argument to m_table.
16298 * hash-table.c: Add global variable with hash table
16299 sanitization limit.
16300 * hash-table.h (Allocator>::hash_table): Add new argument
16302 (hashtab_chk_error): New.
16303 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
16304 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
16305 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
16307 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16309 * common.opt (flto-odr-type-merging): Ignore.
16310 * invoke.texi (-flto-odr-type-merging): Remove.
16311 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
16312 (can_be_vtable_hashed_p): Remove.
16313 (hash_odr_vtable): Remove.
16314 (odr_vtable_hasher::hash): Remove.
16315 (types_same_for_odr): Remove.
16316 (types_odr_comparable): Remove.
16317 (odr_vtable_hasher::equal): Remove.
16318 (odr_vtable_hash_type, odr_vtable_hash): Remove.
16319 (add_type_duplicate): Do not synchronize vtable and name hashtables.
16320 (get_odr_type): Do not use vtable hash.
16321 (dump_odr_type): Remove commented out code.
16322 (build_type_inheritance_graph): Do not allocate vtable hash.
16323 (rebuild_type_inheritance_graph): Do not delete vtable hash.
16324 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
16325 (odr_type_p): Likewise.
16326 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
16329 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16331 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
16332 immediately after same_types_for_tbaa_p returns -1 and continue
16333 looking for possible exact match; if matching types are arrays
16334 watch for partial overlaps.
16335 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
16336 (indirect_refs_may_alias_p): Do type based disambiguation first;
16339 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
16341 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
16343 2019-06-07 Martin Liska <mliska@suse.cz>
16345 * doc/invoke.texi: Remove param.
16346 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
16348 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
16349 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
16350 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
16351 * profile.c (instrument_values): Remove
16352 HIST_TYPE_INDIR_CALL_TOPN.
16353 * tree-profile.c (init_ic_make_global_vars):
16354 Always build __gcov_indirect_call only.
16355 (gimple_init_gcov_profiler): Remove usage
16356 of PARAM_INDIR_CALL_TOPN_PROFILE.
16357 (gimple_gen_ic_profiler): Likewise.
16358 * value-prof.c (dump_histogram_value): Likewise.
16359 (stream_in_histogram_value): Likewise.
16360 (gimple_indirect_call_to_profile): Likewise.
16361 (gimple_find_values_to_profile): Likewise.
16362 * value-prof.h (enum hist_type): Likewise.
16364 2019-06-07 Martin Liska <mliska@suse.cz>
16366 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16369 2019-06-07 Martin Liska <mliska@suse.cz>
16371 PR tree-optimization/78902
16372 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16373 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16374 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16375 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16376 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16377 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16378 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16379 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16380 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16381 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16382 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16383 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16384 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16386 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16387 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16388 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16389 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16390 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16391 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16392 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16393 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16394 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16395 warn_unused_result attribute.
16396 (BUILT_IN_STRDUP): Likewise.
16397 (BUILT_IN_STRNDUP): Likewise.
16398 (BUILT_IN_ALLOCA): Likewise.
16399 (BUILT_IN_CALLOC): Likewise.
16400 (BUILT_IN_MALLOC): Likewise.
16401 (BUILT_IN_REALLOC): Likewise.
16403 2019-06-06 Jim Wilson <jimw@sifive.com>
16406 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16407 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16408 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16410 2019-06-06 Martin Sebor <msebor@redhat.com>
16412 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16413 (handle_builtin_malloc): Remove trailing spaces.
16414 (handle_builtin_memset): Same.
16415 (handle_builtin_memcmp): Same.
16416 (compute_string_length): Same.
16417 (determine_min_objsize): Same.
16418 (handle_builtin_string_cmp): Same.
16419 (handle_char_store): Same. Break up excessively long line.
16421 2019-06-06 Martin Jambor <mjambor@suse.cz>
16423 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16426 2019-06-06 Martin Jambor <mjambor@suse.cz>
16428 * tree-sra.c (struct access): New field grp_same_access_path.
16429 (dump_access): Dump it.
16430 (build_reconstructed_reference): New function.
16431 (build_ref_for_model): Use it if possible.
16432 (path_comparable_for_same_access): New function.
16433 (same_access_path_p): Likewise.
16434 (sort_and_splice_var_accesses): Set the new flag.
16435 (analyze_access_subtree): Likewise.
16436 (propagate_subaccesses_across_link): Propagate zero value of the new
16437 flag down the access tree.
16439 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16441 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16442 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16443 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16444 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16447 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16449 PR tree-optimization/90332
16450 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16451 Handle VALS containing two vectors.
16452 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16454 (@aarch64_combinez<mode>): ... This.
16455 (*aarch64_combinez_be<mode>): Rename to...
16456 (@aarch64_combinez_be<mode>): ... This.
16457 (vec_init<mode><Vhalf>): New define_expand.
16458 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16460 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16462 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16463 library functions only when not optimizing for size.
16464 (ashlsi3): Likewise.
16465 (ashrhi3): Likewise.
16466 (ashrsi3): Likewise.
16467 (lshrhi3): Likewise.
16468 (lshrsi3): Likewise.
16470 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16472 PR rtl-optimization/88751
16473 * ira.c (ira): Use the number of the actually referenced registers
16474 when calculating the threshold.
16476 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16478 * configure: Regenerate.
16480 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16482 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16483 register if it is in memory, so the shift can be emulated with a rotate
16485 (ashrhi3): Likewise.
16486 (lshrhi3): Likewise.
16488 2019-06-06 Martin Liska <mliska@suse.cz>
16490 PR tree-optimization/87954
16491 * match.pd: Simplify mult where both arguments are 0 or 1.
16493 2019-06-06 Richard Biener <rguenther@suse.de>
16495 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16496 put equivalences on UNDEFINED ranges.
16497 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16498 Make sure to drop defs of stmts added during simplification
16501 2019-06-06 Richard Biener <rguenther@suse.de>
16503 * tree-ssa-structalias.c: Include tree-cfg.h.
16504 (make_heapvar): Do not make heap vars artificial.
16505 (find_func_aliases_for_builtin_call): Handle stack allocation
16507 (find_func_aliases): Delay processing of simple enough returns
16509 (set_uids_in_ptset): Adjust.
16510 (find_what_var_points_to): Likewise.
16511 (solve_constraints): Do not dump points-to sets here.
16512 (compute_points_to_sets): Post-process return statements,
16513 amending the escaped solution. Dump points-to sets afterwards.
16514 (ipa_pta_execute): Dump points-to sets.
16516 2019-06-06 Martin Liska <mliska@suse.cz>
16519 * doc/install.texi: Fix HTML headers and
16520 titles for 'Installing GCC' pages.
16522 2019-06-06 Martin Liska <mliska@suse.cz>
16524 * ipa-icf-gimple.h (dump_message_1): Remove.
16525 (dump_message): Likewise.
16526 (return_false_with_message_1): Print also file.
16527 (return_false_with_msg): Likewise.
16528 (return_with_result): Likewise.
16529 (return_with_debug): Likewise.
16530 * ipa-icf.c (sem_function::equals_private): Remove call
16533 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16535 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16536 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16537 memory operand for it.
16538 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16540 2019-06-05 Martin Sebor <msebor@redhat.com>
16542 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16543 Adjust quoting and hyphenation.
16544 * convert.c (convert_to_real_1): Same.
16545 * gcc.c (driver_wrong_lang_callback): Same.
16546 (driver::handle_unrecognized_options): Same.
16547 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16548 * opts-common.c (cmdline_handle_error): Same.
16549 (read_cmdline_option): Same.
16550 * opts-global.c (complain_wrong_lang): Same.
16551 (print_ignored_options): Same.
16552 (handle_common_deferred_options): Same.
16553 * pretty-print.h: Same.
16554 * print-rtl.c (debug_bb_n_slim): Same.
16555 * sched-rgn.c (make_pass_sched_fusion): Same.
16556 * tree-cfg.c (verify_gimple_assign_unary): Same.
16557 (verify_gimple_label): Same.
16558 * tree-ssa-operands.c (verify_ssa_operands): Same.
16559 * varasm.c (do_assemble_alias): Same.
16560 (assemble_alias): Same.
16562 2019-06-05 Richard Henderson <rth@twiddle.net>
16564 * config/alpha/alpha.c (direct_return): Move down after
16565 struct machine_function definition; use saved frame_size;
16567 (struct machine_function): Add sa_mask, sa_size, frame_size.
16568 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16569 (alpha_compute_frame_layout): ... new function.
16570 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16571 (alpha_initial_elimination_offset): Use saved sa_size.
16572 (alpha_vms_initial_elimination_offset): Likewise.
16573 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16574 (alpha_expand_prologue): Use saved frame data. Merge integer
16575 and fp register save loops.
16576 (alpha_expand_epilogue): Likewise.
16577 (alpha_start_function): Use saved frame data.
16578 * config/alpha/alpha-protos.h (direct_return): Update.
16579 (alpha_sa_size): Remove.
16581 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16583 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16584 multiplication by a power-of-two value.
16585 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16586 and turn the modulo operation into a masking operation.
16588 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16591 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16592 with VOIDmode inner operands.
16594 2019-06-05 Richard Biener <rguenther@suse.de>
16596 PR middle-end/90726
16597 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16598 turn an expression graph into a tree.
16600 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16602 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16604 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16605 treat it like explicit monotonic schedule modifier.
16606 (expand_omp_for): Initialize has_lastprivate_conditional.
16607 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16610 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16611 references, lookup in in hash map MEM_REF operand instead of the
16613 (lower_omp_1): When looking for lastprivate conditional assignments,
16614 handle MEM_REFs with REFERENCE_TYPE operands.
16616 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16617 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16618 and references a VLA. Handle references to non-VLAs if is_simd
16619 all privatization clauses like reductions.
16620 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16621 If omp_is_reference, use always omp simd arrays and set
16622 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16623 fails, emit reference initialization.
16625 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16628 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16629 _mm_mask_fpclass_sd_mask): New intrinsics.
16630 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16631 * config/i386/i386-builtin.def
16632 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16634 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16635 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16636 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16637 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16638 case QI_FTYPE_V2SF_INT): Ditto.
16639 * config/i386/sse.md
16640 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16641 Extended to insnstructions with mask operands.
16643 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16645 * config/rs6000/constraints.md (define_register_constraint "wp"):
16647 (define_register_constraint "wq"): Delete.
16648 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16649 (rs6000_init_hard_regno_mode_ok): Adjust.
16650 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16651 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16652 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16653 (define_mode_attr VSa): Delete.
16654 (define_mode_attr VSisa): New.
16655 (rest of file): Adjust.
16656 * doc/md.texi (Machine Constraints): Adjust.
16658 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16660 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16661 (define_attr "enabled"): Handle those new isa values.
16663 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16665 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16666 (define_mode_attr VSr5): Delete.
16667 (define_mode_attr VStype_sqrt): Delete.
16668 (define_mode_iterator VSX_SPDP): Delete.
16669 (define_mode_attr VS_spdp_res): Delete.
16670 (define_mode_attr VS_spdp_insn): Delete.
16671 (define_mode_attr VS_spdp_type): Delete.
16672 (*vsx_sqrt<mode>2): Adjust.
16673 (vsx_<VS_spdp_insn>): Delete, split to...
16674 (vsx_xscvdpsp): ... this. New. And...
16675 (vsx_xvcvspdp): ... this. New. And...
16676 (vsx_xvcvdpsp): ... this. New.
16678 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16680 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16682 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16683 (rest of file): Adjust.
16685 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16687 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16688 (vsx_extract_<mode>_var): Ditto.
16690 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16692 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16695 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16697 * config/rs6000/constraints.md (define_register_constraint "ww"):
16699 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16700 (rs6000_init_hard_regno_mode_ok): Adjust.
16701 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16702 RS6000_CONSTRAINT_ww.
16703 * config/rs6000/rs6000.md: Adjust.
16704 * config/rs6000/vsx.md: Adjust.
16705 * doc/md.texi (Machine Constraints): Adjust.
16707 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16709 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16710 (define_mode_attr sd): New.
16711 (define_mode_attr s): New.
16712 (define_mode_attr Ftrad): Delete.
16713 (define_mode_attr Fvsx): Delete.
16714 (define_mode_attr Fs): Delete.
16715 (rest of file): Use the new mode attributes.
16716 * config.rs6000/vsx.md: Use the new mode attributes.
16718 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16720 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16723 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16725 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16726 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16727 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16729 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16732 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16733 C++ with strict ANSI requirements.
16735 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16737 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16738 computations when step is 1.
16740 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16742 * config/rs6000/constraints.md (define_register_constraint "wf"):
16744 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16745 (rs6000_init_hard_regno_mode_ok): Adjust.
16746 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16747 RS6000_CONSTRAINT_wf.
16748 * config/rs6000/rs6000.md: Adjust.
16749 * config/rs6000/vsx.md: Adjust.
16750 * doc/md.texi (Machine Constraints): Adjust.
16752 2019-06-04 Andrew Pinski <apinski@marvell.com>
16754 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16757 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16759 * config/rs6000/constraints.md (define_register_constraint "wd"):
16761 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16762 (rs6000_init_hard_regno_mode_ok): Adjust.
16763 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16764 RS6000_CONSTRAINT_wd.
16765 * config/rs6000/rs6000.md: Adjust.
16766 * config/rs6000/vsx.md: Adjust.
16767 * doc/md.texi (Machine Constraints): Adjust.
16769 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16771 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16772 (rest of file): Adjust.
16774 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16776 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16777 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16778 (vsx_splat_<mode>_reg): Adjust.
16780 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16782 * config/rs6000/constraints.md (define_register_constraint "ws"):
16784 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16785 (rs6000_init_hard_regno_mode_ok): Adjust.
16786 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16787 RS6000_CONSTRAINT_ws.
16788 * config/rs6000/rs6000.md: Adjust.
16789 * config/rs6000/vsx.md: Adjust.
16790 * doc/md.texi (Machine Constraints): Adjust.
16792 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16794 * config/rs6000/constraints.md (define_register_constraint "wv"):
16796 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16797 (rs6000_init_hard_regno_mode_ok): Adjust.
16798 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16799 RS6000_CONSTRAINT_wv.
16800 * config/rs6000/rs6000.md: Adjust.
16801 * config/rs6000/vsx.md: Adjust.
16802 * doc/md.texi (Machine Constraints): Adjust.
16804 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16806 * config/rs6000/constraints.md (define_register_constraint "wi"):
16808 (define_register_constraint "wt"): Delete.
16809 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16810 (rs6000_init_hard_regno_mode_ok): Adjust.
16811 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16812 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16813 * config/rs6000/rs6000.md: Adjust.
16814 * config/rs6000/vsx.md: Adjust.
16815 * doc/md.texi (Machine Constraints): Adjust.
16817 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16819 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16821 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16822 default_elf_asm_output_external.
16824 2019-06-04 Martin Liska <mliska@suse.cz>
16826 * ipa-icf.c (INCLUDE_LIST): Remove.
16827 (sem_item_optimizer::execute): Remove call to init_wpa.
16828 * ipa-icf.h (init_wpa): Remove.
16830 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16832 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16833 conditional on combined for simd.
16834 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16836 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16837 constructs, don't remove lastprivate_conditional_map, but instead set
16838 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16839 to parent construct temporaries.
16840 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16841 like !ctx->lastprivate_conditional_map.
16842 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16843 use up->outer context instead of up.
16844 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16845 gimple_omp_for_combined_p.
16846 (expand_omp_for_static_nochunk): Likewise.
16847 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16848 probably moved over into expand_omp_for_generic rather than being copied
16851 2019-06-04 Martin Liska <mliska@suse.cz>
16853 * value-prof.c (dump_histogram_value): Fix typo.
16854 (gimple_mod_subtract_transform): Likewise.
16856 2019-06-04 Richard Biener <rguenther@suse.de>
16858 PR middle-end/90726
16859 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16860 (tree_contains_chrecs): Likewise.
16861 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16862 exponential behaivor from ...
16863 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16865 (expression_expensive_p): Avoid exponential behavior and compute
16866 expanded size, rejecting any expansion.
16867 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16868 (idx_contains_abnormal_ssa_name_p): Likewise.
16869 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16870 (contains_abnormal_ssa_name_p): Simplify and use
16871 walk_tree_without_duplicates.
16873 2019-06-04 Richard Biener <rguenther@suse.de>
16875 PR tree-optimization/90738
16877 2019-06-03 Richard Biener <rguenther@suse.de>
16879 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16880 full reference tree and record in ref->ref.
16881 (vn_reference_lookup_3): Pass in original ref to
16882 ao_ref_init_from_vn_reference.
16883 (vn_reference_lookup): Likewise.
16884 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16885 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16886 Handle non-decl bases in the original reference.
16888 2019-06-04 Martin Liska <mliska@suse.cz>
16890 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16891 number of references.
16892 (sem_item_optimizer::do_congruence_step):
16893 (sem_item_optimizer::worklist_push): Dump how references
16895 (sem_item_optimizer::worklist_pop): Use heap.
16896 (sem_item_optimizer::process_cong_reduction): Likewise.
16897 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16899 2019-06-04 Martin Liska <mliska@suse.cz>
16901 * ipa-icf.h (struct sem_usage_pair_hash): New.
16902 (sem_usage_pair_hash::hash): Likewise.
16903 (sem_usage_pair_hash::equal): Likewise.
16904 (struct sem_usage_hash): Likewise.
16905 * ipa-icf.c (sem_item::sem_item): Initialize
16906 referenced_by_count.
16907 (sem_item::add_reference): Register a reference
16908 in ref_map and not in target->usages.
16909 (sem_item::setup): Remove initialization of
16911 (sem_item::~sem_item): Remove usage of dead vectors.
16912 (sem_item::dump): Remove dump of references.
16913 (sem_item_optimizer::sem_item_optimizer): Initialize
16915 (sem_item_optimizer::read_section): Remove useless
16917 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16918 (sem_item_optimizer::build_graph): Pass m_references
16919 to ::add_reference.
16920 (sem_item_optimizer::verify_classes): Remove usage of dead
16922 (sem_item_optimizer::traverse_congruence_split): Return true
16923 when a class is split.
16924 (sem_item_optimizer::do_congruence_step_for_index): Use
16925 hash_map for look up of (sem_item *, index). That brings
16926 significant speed up.
16927 (sem_item_optimizer::do_congruence_step): Return true
16928 when a split is done.
16929 (congruence_class::is_class_used): Use referenced_by_count.
16931 2019-06-04 Alan Modra <amodra@gmail.com>
16934 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16937 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16939 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16940 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16941 (rs6000_secondary_reload_simple_move): Adjust.
16942 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16943 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16944 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16947 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16948 (floatunssi<mode>2_lfiwzx): Adjust.
16949 (fix_trunc<mode>si2_stfiwx): Adjust.
16950 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16951 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16952 (mfpgpr): Mark as deprecated.
16953 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16954 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16955 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16957 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16959 * config/rs6000/constraints.md (define_register_constraint "wg"):
16961 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16962 RS6000_CONSTRAINT_wg.
16963 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16964 (rs6000_init_hard_regno_mode_ok): Adjust.
16965 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16966 Delete "wg" alternatives.
16967 * doc/md.texi (Machine Constraints): Adjust.
16969 2019-06-03 Alan Modra <amodra@gmail.com>
16971 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16972 (get_uncond_jump_length): Assert length less than INT_MAX and
16975 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16977 PR middle-end/64242
16978 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16980 (expand_builtin_nonlocal_goto): Likewise.
16982 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16984 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16985 (aarch64_asm_output_external): Declare.
16986 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16987 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16988 (aarch64_asm_output_alias): New.
16989 (aarch64_asm_output_external): New.
16990 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16991 (ASM_OUTPUT_EXTERNAL): Define.
16993 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16994 * tree-vrp.h (value_range_base::nonzero_p): New.
16995 (value_range_base::set_nonnull): Rename to...
16996 (value_range_base::set_nonzero): ...this.
16997 (value_range_base::set_null): Rename to...
16998 (value_range_base::set_zero): ...this.
16999 (value_range::set_nonnull): Remove.
17000 (value_range::set_null): Remove.
17001 * tree-vrp.c (range_is_null): Remove.
17002 (range_is_nonnull): Remove.
17003 (extract_range_from_binary_expr): Use value_range_base::*zero_p
17004 instead of range_is_*null.
17005 (extract_range_from_unary_expr): Same.
17006 (value_range_base::set_nonnull): Rename to...
17007 (value_range_base::set_nonzero): ...this.
17008 (value_range::set_nonnull): Remove.
17009 (value_range_base::set_null): Rename to...
17010 (value_range_base::set_zero): ...this.
17011 (value_range::set_null): Remove.
17012 (extract_range_from_binary_expr): Rename set_*null uses to
17014 (extract_range_from_unary_expr): Same.
17015 (union_helper): Same.
17016 * vr-values.c (get_value_range): Use set_*zero instead of
17018 (vr_values::extract_range_from_binary_expr): Same.
17019 (vr_values::extract_range_basic): Same.
17021 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
17024 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
17026 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17028 * config/aarch64/iterators.md (MAX_OPP): New code attr.
17029 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
17031 (aarch64_<su>abd<mode>_3): ... This.
17032 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
17034 2019-06-03 Richard Biener <rguenther@suse.de>
17036 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
17037 full reference tree and record in ref->ref.
17038 (vn_reference_lookup_3): Pass in original ref to
17039 ao_ref_init_from_vn_reference.
17040 (vn_reference_lookup): Likewise.
17041 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
17042 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17043 Handle non-decl bases in the original reference.
17045 2019-06-03 Martin Liska <mliska@suse.cz>
17047 * doc/generic.texi: Remove Java Trees.
17049 2019-06-03 Martin Liska <mliska@suse.cz>
17051 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
17052 returns 0 when operands are equal.
17054 2019-06-03 Richard Biener <rguenther@suse.de>
17056 PR tree-optimization/90716
17057 * tree-loop-distribution.c (destroy_loop): Process blocks in
17060 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17063 * vector-builder.h (vector_builder::count_dups): New method.
17064 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
17066 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
17067 (vec_init<mode><Vel>): New pattern.
17068 * config/aarch64/aarch64.c (emit_insr): New function.
17069 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
17070 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
17071 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
17072 (aarch64_sve_expand_vector_init): Define two overloaded functions.
17074 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17076 PR tree-optimization/90681
17077 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
17078 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
17079 special case for SLP, but fail on non-groupped loads.
17081 2019-06-03 Martin Liska <mliska@suse.cz>
17083 * cfg.c (debug): Use TDF_DETAILS for debug and
17084 print edge info only once.
17086 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
17089 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
17091 2019-06-01 Martin Sebor <msebor@redhat.com>
17093 PR middle-end/90694
17094 * tree-pretty-print.c (dump_generic_node): Add parentheses.
17096 2019-05-31 Jan Hubicka <jh@suse.cz>
17098 * alias.c: Include ipa-utils.h.
17099 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
17100 * ipa-devirt.c (prevailing_odr_type): New.
17101 * ipa-utils.h (previaling_odr_type): Declare.
17103 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
17104 Hongtao Liu <hongtao.liu@intel.com>
17107 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
17108 NOTE_INSN_DELETED_LABEL check.
17110 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
17111 Robert Suchanek <robert.suchanek@mips.com>
17113 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
17114 and 3rd operands of the fmadd/fmsub/maddv builtin.
17116 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17118 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
17119 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17120 on OMP_SIMD if not nested inside of worksharing loop that also has
17121 lastprivate conditional clause for the same decl.
17122 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
17123 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
17125 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
17127 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
17129 (lower_lastprivate_clauses): Likewise.
17130 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
17131 calling lower_rec_input_clauses.
17132 (lower_omp_for): Likewise.
17133 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
17134 clause on simd construct.
17135 * omp-expand.c (expand_omp_simd): Initialize cond_var if
17136 OMP_CLAUSE__CONDTEMP_ clause is present.
17138 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
17141 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
17144 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
17145 TEX_D32, TEX_D64 or TEX_D128.
17147 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17149 * match.pd (~(vec?cst1:cst2)): New transformation.
17151 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17153 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
17154 ((size_t)(A /[ex] B) CMP C): New transformation.
17156 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
17158 * doc/md.texi: Document define_insn_and_rewrite.
17159 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
17160 * gensupport.c (queue_elem): Update comment.
17161 (replace_operands_with_dups): New function.
17162 (gen_rewrite_sequence): Likewise.
17163 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
17164 * read-rtl.c (apply_subst_iterator): Likewise.
17165 (add_condition_to_rtx, named_rtx_p): Likewise.
17166 (rtx_reader::read_rtx_operand): Likewise.
17167 * config/aarch64/aarch64-sve.md
17168 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
17169 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
17170 define_insn_and_rewrite.
17171 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
17172 Remove separate define_split.
17174 2019-05-31 Jan Hubicka <jh@suse.cz>
17176 * tree-ssa-alias.c (type_has_components_p): New function.
17177 (aliasing_component_refs_p): Use it.
17179 2019-05-31 Martin Liska <mliska@suse.cz>
17181 * gdbhooks.py: Add const_tree to TreePrinter.
17183 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
17186 * common.opt (feliminate-unused-debug-symbols): Enable by default.
17187 * doc/invoke.texi (Debugging Options): Document new default of
17188 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
17190 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17192 PR tree-optimization/90671
17193 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
17194 template_block used to be empty on the first call, don't use
17195 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
17196 seq with bb_seq and set it with set_bb_seq.
17198 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
17200 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
17202 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17203 Michael Meissner <meissner@linux.ibm.com>
17205 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
17206 (prefixed_mem_operand): Likewise.
17207 (non_prefixed_mem_operand): Likewise.
17208 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
17210 * config/rs6000/rs6000.c (print_operand_address): Handle
17211 PC-relative addresses.
17212 (mode_supports_prefixed_address_p): New function.
17213 (rs6000_prefixed_address): New function.
17214 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
17215 (SYMBOL_REF_PCREL_P): Likewise.
17217 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17219 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
17220 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
17221 (gimplify_omp_for): If worksharing loop with lastprivate conditional
17222 is nested inside of parallel region, add _condtemp_ clause to both.
17223 * tree-nested.c (convert_nonlocal_omp_clauses,
17224 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
17226 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
17228 * omp-general.c (omp_extract_for_data): Compute it.
17229 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
17230 (lower_rec_input_clauses): Likewise.
17231 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
17232 clause is already present, just add one further one after it.
17233 (lower_lastprivate_clauses): Handle cond_ptr with array type.
17234 (lower_send_shared_vars): Clear _condtemp_ vars.
17235 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
17236 or section or taskgroup.
17237 * omp-expand.c (determine_parallel_type): Disallow combining only if
17238 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
17239 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
17240 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17241 expand_omp_for_static_chunk, expand_omp_for): Use
17242 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
17243 determine if a special set of API routines are needed and if condtemp
17244 needs to be initialized, while always initialize cond_var if
17245 fd->lastprivate_conditional is non-zero.
17247 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17248 Michael Meissner <meissner@linux.ibm.com>
17250 * config/rs6000/constraints.md (eI): New constraint.
17251 * config/rs6000/predicates.md (cint34_operand): New predicate.
17252 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
17253 (SIGNED_34BIT_OFFSET_P): Likewise.
17254 * doc/md.texi (eI): Document constraint.
17256 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
17258 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
17260 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17261 Michael Meissner <meissner@linux.ibm.com>
17263 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
17264 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
17265 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
17266 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
17267 (OTHER_FUTURE_MASKS): Likewise.
17268 (POWERPC_MASKS): Likewise.
17269 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
17270 specified without -mprefixed-addr or -mcpu=future. Error if
17271 -mprefixed-addr is specified without -mcpu=future.
17272 (rs6000_opt_masks): Add entry for prefixed-addr.
17273 * rs6000.opt (mprefixed-addr): New option.
17275 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
17277 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
17278 cfun->is_thunk check.
17280 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17282 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
17285 2019-05-30 Martin Liska <mliska@suse.cz>
17287 * gdbinit.in: Fix 'ptc' command. Add trt
17288 that prints TREE_TYPE($).
17290 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
17291 Alan Modra <amodra@gmail.com>
17293 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
17295 (rs6000_indirect_call_template_1): ...and here.
17296 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
17297 plt16_ha, plt16_lo, mtctr indirect calls. Use
17298 rs6000_pltseq_enum.
17299 (rs6000_decl_ok_for_sibcall): New function.
17300 (rs6000_function_ok_for_sibcall): Refactor.
17301 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
17302 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
17303 when pcrel. Reorganize.
17304 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
17305 * rs6000.h (rs6000_pltseq_enum): New enum.
17306 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
17307 (*pltseq_tocsave): Use rs6000_pltseq_enum.
17308 (*pltseq_plt16_ha): Likewise.
17309 (*pltseq_plt16_lo): Likewise.
17310 (*pltseq_mtctr): Likewise.
17311 (*pltseq_plt_pcrel): New insn.
17312 (*call_local_aix): Handle @notoc calls.
17313 (*call_value_local_aix): Likewise.
17314 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
17315 (*call_value_nonlocal_aix): Likewise.
17316 (*call_indirect_pcrel): New insn.
17317 (*call_value_indirect_pcrel): Likewise.
17319 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
17321 * config/i386/sse.md (*save_multiple<mode>): Rename from
17322 save_multiple<mode>.
17323 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
17324 (*restore_multiple_and_return<mode>): Rename from
17325 restore_multiple_and_return<mode>.
17326 (*restore_multiple_leave_return<mode>): Rename from
17327 restore_multiple_leave_return<mode>.
17329 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
17331 * config.gcc (rx-*-linux*): New target.
17332 * config/rx/elf.opt: New file.
17333 * config/rx/linux.h: Likewise.
17334 * config/rx/t-linux: Likewise.
17335 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
17337 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
17338 (ASM_APP_OFF): Likewise.
17339 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
17342 2019-05-29 Jan Hubicka <jh@suse.cz>
17344 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
17345 variants are pointer equivalent.
17347 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17349 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
17350 * config/aarch64/aarch64-sve2.md: New file.
17351 (<u>avg<mode>3_floor): New pattern.
17352 (<u>avg<mode>3_ceil): Likewise.
17353 (*<sur>h<addsub><mode>): Likewise.
17354 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
17355 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
17357 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17360 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17361 for var_opt_string printing. In cl_optimization_print_diff, print
17362 (null) instead of invoking undefined behavior if one of the
17363 var_opt_string pointers is NULL and use && instead of first || in the
17364 guarding condition. For var_target_other options, handle const char *
17365 target variables similarly to const char * optimize node variables.
17367 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17369 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17370 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17371 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17372 Add autib1716 and pacib1716 initialisation.
17373 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17374 for autib1716 and pacib1716.
17375 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17376 aarch64_post_cfi_startproc): Define.
17377 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17378 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17379 aarch64_handle_pac_ret_protection): Set default sign key to A.
17380 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17381 aarch64_expand_prologue): Add check for b-key.
17382 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17383 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17384 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17385 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17386 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17387 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17388 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17389 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17390 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17391 pauth_hint_num_a with pauth_hint_num.
17392 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17393 pauth_hint_num_a with pauth_hint_num.
17394 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17395 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17396 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17397 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17398 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17399 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17400 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17401 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17402 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17403 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17404 UNSPEC_AUTIA1716 respectively.
17405 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17406 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17407 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17408 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17409 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17410 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17412 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17414 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17415 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17416 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17417 explicit clause on combined parallel into implicit shared clause.
17418 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17419 and firstprivate if the decl has one too from combined parallel to
17420 the worksharing construct.
17422 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17423 Michael Meissner <meissner@linux.ibm.com>
17425 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17427 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17429 * rtl.h (LABEL_REF_P): New #define.
17431 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17433 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17435 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17437 * internal-fn.c: Marked mask_load_direct as vectorizable.
17438 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17439 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17440 combined even if masks different with allow_slp_p param.
17441 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17442 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17443 dissolve SLP-only vectorizable groups when SLP has been discarded.
17444 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17445 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17447 (vect_build_slp_tree_1): Fixed comment typo.
17448 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17449 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17450 loads for SLP only.
17451 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17453 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17455 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17457 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17458 Remove obsolete use_thunk reference.
17459 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17460 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17461 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17462 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17463 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17464 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17465 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17466 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17467 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17469 2019-05-28 Nathan Sidwell <nathan@acm.org>
17471 * tree.h (IDENTIFIER_ANON_P): New.
17472 (anon_aggrname_format, anon_aggname_p): Don't declare.
17473 (make_anon_name): Declare.
17474 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17475 (hash_tree): Likewise.
17476 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17477 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17478 (anon_cnt, make_anon_name): New.
17480 2019-05-28 Martin Liska <mliska@suse.cz>
17483 * opts-global.c (decode_options): Print help for all
17484 help_option_arguments.
17485 * opts.c (print_help): Add new argument.
17486 (common_handle_option): Remember all values into
17487 help_option_arguments.
17488 * opts.h (print_help): Add new argument.
17490 2019-05-28 Martin Liska <mliska@suse.cz>
17493 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17494 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17495 (func_checker::compare_bb): Call compare_loops.
17497 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17499 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17500 on sections construct.
17501 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17503 (lower_omp_sections): Handle lastprivate conditional.
17504 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17505 lastprivate_conditional_map.
17506 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17508 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17509 critical, taskgroup and section regions when looking for a region
17510 with non-NULL lastprivate_conditional_map.
17512 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17514 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17515 (*ix86_gen_sub3): Ditto.
17516 (*ix86_gen_sub3_carry): Ditto.
17517 (*ix86_gen_one_cmpl2): Ditto.
17518 (*ix86_gen_andsp): Ditto.
17519 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17520 (gen_and2_insn): New static function.
17521 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17522 Use gen_add3_insn instead of ix86_gen_add3.
17523 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17524 instead of ix86_gen_add3.
17525 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17526 Use gen_sub3_insn instead of ix86_gen_sub3.
17527 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17528 instead of ix86_gen_add3.
17529 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17530 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17531 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17532 * config/i386/i386-options.c (ix86_option_override_internal):
17533 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17534 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17536 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17538 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17539 and DW_OP_GNU_const_index opcodes.
17541 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17543 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17545 2019-05-27 Richard Biener <rguenther@suse.de>
17547 PR tree-optimization/90637
17548 * tree-ssa-sink.c (statement_sink_location): Honor the
17549 computed sink location for single-uses.
17551 2019-05-27 Richard Biener <rguenther@suse.de>
17553 PR middle-end/90610
17554 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17557 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17559 * config/i386/i386.md (@sub<mode>3_carry): Rename
17560 from sub<mode>3_carry.
17561 (@leave_<mode>): New expander.
17562 (*leave): Rename from leave.
17563 (*leave_rex64): Rename from leave_rex64.
17564 (@monitorx_<mode>): Rename from monitorx_<mode>.
17565 (@clzero_<mode>): Rename from clzero_<mode>.
17566 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17567 from sse3_monitor_<mode>.
17568 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17569 (*ix86_gen_leave): Ditto.
17570 (*ix86_gen_monitor): Ditto.
17571 (*ix86_gen_monitorx): Ditto.
17572 (*ix86_gen_clzero): Ditto.
17573 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17574 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17575 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17576 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17577 Use gen_sse3_monitor instead of ix86_gen_monitor.
17578 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17579 instead of ix86_gen_monitorx.
17580 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17581 instead of ix86_gen_clzero.
17582 * config/i386/i386-options.c (ix86_option_override_internal):
17583 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17584 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17586 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17588 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17589 Rename from tls_global_dynamic_64_<mode>.
17590 (@tls_local_dynamic_base_64_<mode>): Rename from
17591 tls_local_dynamic_base_64_<mode>.
17592 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17593 Remove indirect function.
17594 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17595 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17596 instead of ix86_gen_tls_global_dynamic_64.
17597 Use gen_tls_local_dynamic_base_64 instead of
17598 ix86_gen_tls_local_dynamic_base_64.
17599 * config/i386/i386-options.c (ix86_option_override_internal):
17600 Do not initialize ix86_gen_tls_global_dynamic_64 and
17601 ix86_gen_tls_local_dynamic_base_64.
17603 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17605 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17606 Rename from pro_epilogue_adjust_stack_<mode>_add.
17607 (@pro_epilogue_adjust_stack_sub_<mode>)
17608 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17609 (@allocate_stack_worker_probe_<mode>):
17610 Rename from allocate_stack_worker_probe_<mode>.
17611 (allocate_stack): Use gen_allocate_stack_worker_probe.
17612 (probe_stack): Use gen_probe_stack_1.
17613 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17614 (@adjust_stack_and_probe_<mode>): Rename from
17615 adjust_stack_and_probe<mode>.
17616 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17617 (stack_protect_set): Use gen_stack_protect_set_1.
17618 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17619 (stack_protect_test): Use gen_stack_protect_test_1.
17620 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17621 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17622 Remove indirect function.
17623 (*ix86_gen_adjust_stack_and_probe): Ditto.
17624 (*ix86_gen_probe_stack_range): Ditto.
17625 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17626 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17627 (ix86_adjust_stack_and_probe_stack_clash): Use
17628 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17629 (ix86_adjust_stack_and_probe): Ditto.
17630 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17631 of ix86_gen_probe_stack_range.
17632 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17633 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17634 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17635 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17636 CODE_FOR_stack_protect_test_{si,di}.
17637 * config/i386/i386-options.c (ix86_option_override_internal):
17638 Do not initialize ix86_gen_allocate_stack_worker,
17639 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17641 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17643 * doc/invoke.texi (Link Options): Many editorial changes around
17646 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17648 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17649 pre-Solaris 11 referene and most Studio compiler details.
17651 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17654 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17655 DImode to SImode in floating-point registers on 64-bit target.
17656 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17657 register_operand in xmpyu patterns.
17659 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17661 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17662 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17663 OMP_CLAUSE__REDUCTEMP_.
17664 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17665 OMP_CLAUSE__CONDTEMP_.
17666 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17667 * tree-pretty-print.c (dump_omp_clause): Likewise.
17668 * tree-nested.c (convert_nonlocal_omp_clauses,
17669 convert_local_omp_clauses): Likewise.
17670 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17671 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17672 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17674 (gimplify_omp_for): Warn and disable conditional modifier from
17675 lastprivate on loop iterators.
17676 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17678 * omp-general.c (omp_extract_for_data): Initialize it.
17679 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17681 (delete_omp_context): Delete it.
17682 (lower_lastprivate_conditional_clauses): New function.
17683 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17684 handle lastprivate conditional clauses.
17685 (lower_reduction_clauses): Add CLIST argument, emit it into
17686 the critical section if any.
17687 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17688 lower_reduction_clauses callers.
17689 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17690 to lower_lastprivate_clauses.
17691 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17692 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17693 clist into a critical section if not emitted there already by
17694 lower_reduction_clauses.
17695 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17697 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17698 conditional variables.
17699 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17701 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17702 expand_omp_for_static_chunk): Handle lastprivate conditional.
17703 (expand_omp_for): Handle fd.lastprivate_conditional like
17706 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17708 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17709 kernel does not exit cleanly.
17710 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17712 2019-05-24 Jason Merrill <jason@redhat.com>
17715 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17717 2019-05-24 Richard Biener <rguenther@suse.de>
17720 * tree-loop-distribution.c (struct partition): Add location
17722 (partition_alloc): Initialize all fields.
17723 (generate_memset_builtin): Use the location recorded in the
17724 partition for the generated call.
17725 (generate_memcpy_builtin): Likewise.
17726 (classify_partition): Record the location of a single store
17727 as location for the partition.
17729 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17731 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17734 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17737 * common/config/aarch64/aarch64-common.c
17738 (aarch64_rewrite_selected_cpu): Change local temporary variable
17739 type from unsigned long to uint64_t.
17740 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17741 aarch64_get_extension_string_for_isa_flags): Change declaration to
17742 match new definition by replacing unsigned long with uint64_t.
17744 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17747 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17748 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17749 Handle stack_protect_test_<mode> codegen similarly to corresponding
17752 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17754 * config/i386/darwin.h: Reject -mfentry*.
17755 * doc/sourcebuild.texi: Document mfentry target support.
17757 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17759 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17760 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17761 false for PC-relative functions.
17762 (rs6000_output_function_prologue): Change called function name to
17763 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17764 name,1" for PC-relative functions.
17765 (rs6000_elf_declare_function_name): Change called function name to
17766 rs6000_global_entry_point_prologue_needed_p.
17768 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17771 * config/i386/i386.c (gen_rtx_cost):
17772 Use ix86_tune_cost instead of ix86_cost.
17774 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17775 Michael Meissner <meissner@linux.ibm.com>
17776 Segher Boessenkool <segher@kernel.crashing.org>
17778 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17780 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17781 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17782 (rs6000_fndecl_pcrel_p): Likewise.
17783 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17784 error if -mpcrel is requested without -mcpu=future.
17785 (rs6000_opt_masks): Add entry for pcrel.
17786 (rs6000_fndecl_pcrel_p): New function.
17787 (rs6000_pcrel_p): Likewise.
17788 * config/rs6000/rs6000.opt (mpcrel): New option.
17789 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17791 2019-05-23 Jan Hubicka <jh@suse.cz>
17792 Martin Liska <mliska@suse.cz>
17794 PR tree-optimization/90576
17795 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17797 (aliasing_component_refs_p): Fix three way size compare conditional;
17798 give up earlier in case we can not decide on equivalence.
17800 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17801 Michael Meissner <meissner@linux.ibm.com>
17802 Segher Boessenkool <segher@kernel.crashing.org>
17804 * config.gcc: Add future cpu.
17805 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17806 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17808 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17809 (RS6000_CPU): New instantiation for future cpu.
17810 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17812 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17813 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17814 * config/rs6000/rs6000-tables.opt: Regenerate.
17815 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17816 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17817 (rs6000_machine_from_flags): Handle future cpu.
17818 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17819 PROCESSOR_POWER9 for now.
17820 (rs6000_adjust_cost): Likewise.
17821 (rs6000_issue_rate): Likewise.
17822 (rs6000_register_move_cost): Likewise.
17823 (rs6000_opt_masks): Add entry for future.
17824 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17825 (MASK_FUTURE): New #define.
17826 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17827 * config/rs6000/rs6000.opt (mfuture): New target option.
17828 * doc/invoke.texi (mcpu): Add future cpu.
17830 2019-05-23 Martin Liska <mliska@suse.cz>
17833 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17834 operation points to a temporary (pointed via tree_to_wide_ref)
17835 that is out of scope after the &.
17837 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17840 * doc/extend.texi (Function Names): Add missing word.
17842 2019-05-23 Richard Biener <rguenther@suse.de>
17844 PR tree-optimization/88440
17845 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17847 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17849 (generate_memcpy_builtin): Likewise.
17850 (distribute_loop): Pass in whether to only distribute patterns.
17851 (prepare_perfect_loop_nest): Also allow size optimization.
17852 (pass_loop_distribution::execute): When optimizing a loop
17853 nest for size allow pattern replacement.
17855 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17858 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17861 2019-05-23 Martin Liska <mliska@suse.cz>
17864 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17865 expression similarly to gimplify_decl_expr.
17867 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17869 * cse.c (cse_dump_path): s/dump_file/f.
17871 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17874 * diagnostic-format-json.cc: Include "selftest.h".
17875 (json_from_expanded_location): Only add "file" key for non-NULL
17877 (json_from_location_range): Don't add "start" and "finish"
17878 children if they are UNKNOWN_LOCATION.
17879 (selftest::test_unknown_location): New selftest.
17880 (selftest::test_bad_endpoints): New selftest.
17881 (selftest::diagnostic_format_json_cc_tests): New function.
17882 * json.cc (json::object::get): New function.
17883 (selftest::test_object_get): New selftest.
17884 (selftest::json_cc_tests): Call it.
17885 * json.h (json::object::get): New decl.
17886 * selftest-run-tests.c (selftest::run_tests): Call
17887 selftest::diagnostic_format_json_cc_tests.
17888 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17891 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17892 Andrew Stubbs <amd@codesourcery.com>
17894 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17895 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17896 (kernel): Rename to...
17897 (main_kernel): ... this.
17898 (load_image): Load _init_array and _fini_array kernels.
17899 (run): Add argument for kernel to run.
17900 (main): Run init_array_kernel before main_kernel, and
17901 fini_array_kernel after.
17902 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17903 amdgpu_hsa_kernel attribute on functions.
17904 (gcn_disable_constructors): Delete.
17905 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17906 * config/gcn/crt0.c (size_t): Define.
17907 (_init_array, _fini_array): New.
17908 (__preinit_array_start, __preinit_array_end,
17909 __init_array_start, __init_array_end,
17910 __fini_array_start, __fini_array_end): Declare weak references.
17912 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17914 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17916 2019-05-22 Jason Merrill <jason@redhat.com>
17918 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17920 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17923 * config/i386/i386-options.c (ix86_init_machine_status): Set
17924 stack_frame_required to true.
17925 * config/i386/i386.c (ix86_get_frame_size): New function.
17926 (ix86_frame_pointer_required): Replace get_frame_size with
17927 ix86_get_frame_size.
17928 (ix86_compute_frame_layout): Likewise.
17929 (ix86_find_max_used_stack_alignment): Changed to void. Set
17930 stack_frame_required.
17931 (ix86_finalize_stack_frame_flags): Always call
17932 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17933 ix86_get_frame_size.
17934 * config/i386/i386.h (machine_function): Add stack_frame_required.
17936 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17938 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17940 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17942 * common/config/aarch64/aarch64-common.c
17943 (struct aarch64_option_extension, struct processor_name_to_arch,
17944 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17945 aarch64_contains_opt,
17946 aarch64_get_extension_string_for_isa_flags): Change type of
17947 variables storing flags to uint64_t.
17948 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17949 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17950 * config/aarch64/aarch64.c (struct processor,
17951 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17952 aarch64_validate_march, aarch64_override_options,
17953 aarch64_option_print, aarch64_handle_attr_isa_flags,
17954 aarch64_declare_function_name, aarch64_start_file): Make flag
17955 variables uint64_t.
17956 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17957 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17958 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17959 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17960 * config/aarch64/driver-aarch64.c
17961 (struct aarch64_arch_extension, struct aarch64_core_data,
17962 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17963 flag variables uint64_t.
17964 * doc/invoke.texi: Add documentation for new arguments.
17966 2019-05-22 Richard Biener <rguenther@suse.de>
17968 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17970 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17972 2019-05-22 Martin Liska <mliska@suse.cz>
17975 * doc/extend.texi: Document the change.
17977 2019-05-22 Richard Biener <rguenther@suse.de>
17979 PR tree-optimization/90450
17980 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17981 (mem_ref_hasher::equal): Check it.
17982 (mem_ref_alloc): Initialize it.
17983 (gather_mem_refs_stmt): Set it.
17985 2019-05-22 Richard Biener <rguenther@suse.de>
17987 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17989 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17992 2019-05-22 Alan Modra <amodra@gmail.com>
17994 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17995 (ASM_CPU_SPEC): Conditionally add -many.
17996 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17997 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17998 (rs6000_file_start): ..extracted from here, and modified to
18000 (rs6000_output_function_prologue): Emit .machine as necessary.
18002 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
18004 PR middle-end/90553
18005 * ira-lives.c (process_bb_node_lives): Consider defs
18006 for a call insn to be die before the call, not after.
18008 * function.c (assign_parm_setup_block): Raise alignment of
18009 stacked parameter only for STRICT_ALIGNMENT targets.
18011 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18013 * config/rs6000/constraints.md (define_register_constraint "wz"):
18015 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18016 RS6000_CONSTRAINT_wz.
18017 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18018 (rs6000_init_hard_regno_mode_ok): Adjust.
18019 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
18020 * doc/md.texi (Machine Constraints): Adjust.
18022 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18024 * config/rs6000/constraints.md (define_register_constraint "wl"):
18026 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18027 RS6000_CONSTRAINT_wl.
18028 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18029 (rs6000_init_hard_regno_mode_ok): Adjust.
18030 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
18031 * doc/md.texi (Machine Constraints): Adjust.
18033 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18035 * config/rs6000/constraints.md (define_register_constraint "wm"):
18037 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18038 RS6000_CONSTRAINT_wm.
18039 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18040 (rs6000_init_hard_regno_mode_ok): Adjust.
18041 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
18042 * doc/md.texi (Machine Constraints): Adjust.
18044 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18046 * config/rs6000/constraints.md (define_register_constraint "wk"):
18048 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18049 RS6000_CONSTRAINT_wk.
18050 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18051 (rs6000_init_hard_regno_mode_ok): Adjust.
18052 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
18053 * doc/md.texi (Machine Constraints): Adjust.
18055 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18057 * config/rs6000/constraints.md (define_register_constraint "wj"):
18059 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18060 RS6000_CONSTRAINT_wj.
18061 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18062 (rs6000_init_hard_regno_mode_ok): Adjust.
18063 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
18065 * config/rs6000/vsx.md: Ditto.
18066 * doc/md.texi (Machine Constraints): Adjust.
18068 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18070 * config/rs6000/constraints.md (define_register_constraint "wh"):
18072 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18073 RS6000_CONSTRAINT_wh.
18074 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18075 (rs6000_init_hard_regno_mode_ok): Adjust.
18076 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
18077 * doc/md.texi (Machine Constraints): Adjust.
18079 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18082 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
18083 Avoid calling gen_lowpart with CONST operand.
18085 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
18087 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
18088 field template_last_to_copy.
18089 (ssa_create_duplicates): Set it, and use it. Attempt to
18090 preserve more debug stmts.
18092 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18094 * config/i386/sse.md (VF1_AVX2): New mode iterator.
18095 (signbit<mode>2): New expander
18097 2019-05-21 James Clarke <jrtc27@jrtc27.com>
18100 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
18101 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
18103 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18105 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
18106 %ebx and %ecx bafore calling cpuid with leaf 1 or
18107 non-constant leaf argument.
18109 2019-05-21 Alan Modra <amodra@gmail.com>
18112 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
18113 power9 direct move cost.
18115 2019-05-21 Richard Biener <rguenther@suse.de>
18117 PR middle-end/90510
18118 * fold-const.c (fold_read_from_vector): New function.
18119 * fold-const.h (fold_read_from_vector): Declare.
18120 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
18121 single-element insert permutations. Canonicalize selector
18122 further and fix issue with last commit.
18124 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18126 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
18127 parameter with default value false to declaration.
18128 (split_edges_for_insertion): New inline function. Wrapper for
18129 split_critical_edges with for_edge_insertion_p = true.
18130 * tree-cfg.c (split_critical_edges): Don't split non-critical
18131 edges if for_edge_insertion_p is false. Fix whitespace.
18132 * tree-ssa-pre.c (pass_pre::execute): Call
18133 split_edges_for_insertion instead of split_critical_edges.
18134 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
18135 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
18136 (pass_data_sink_code): Update function name in the comment.
18138 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18140 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
18141 around is_value_included_in that knows how to handle BIT_AND_EXPR.
18142 (is_pred_expr_subset_of): Use the new function. Handle more cases where
18143 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
18146 2019-05-21 Martin Liska <mliska@suse.cz>
18148 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
18150 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
18151 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
18153 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18155 (rs6000_function_arg): Likewise.
18156 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
18157 (rs6000_expand_ternop_builtin): Use interval syntax.
18158 (get_element_number): Likewise.
18159 (altivec_expand_builtin): Likewise.
18160 (rs6000_get_function_versions_dispatcher): Quote target_clones.
18162 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18166 * function.h (struct function): Add calls_eh_return member.
18167 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
18168 gimplifying __builtin_eh_return call.
18169 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
18171 (expand_call_inline): Or in src_cfun->calls_eh_return into
18172 dst_cfun->calls_eh_return.
18173 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
18174 cfun->calls_eh_return.
18175 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
18176 * lto-streamer-out.c (output_struct_function_base): Write
18179 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
18181 PR rtl-optimization/43147
18182 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
18183 IX86_BUILTIN_SHUFPD.
18185 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18187 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
18188 (refs_may_alias_p_1): ... here; update stats.
18189 (refs_may_alias_p): Do not update stats here.
18191 2019-05-20 Richard Biener <rguenther@suse.de>
18193 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
18194 doesn't produce pointers.
18195 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
18196 the first operand points to.
18198 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18200 * tree-ssa-alias.c (compare_sizes): New function.
18201 (sompare_type_sizes): New function
18202 (aliasing_component_refs_p): Use it.
18203 (indirect_ref_may_alias_decl_p): Likewise.
18205 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18207 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
18209 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18211 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
18212 (LIBLSAN_EARLY_SPEC): Likewise.
18213 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
18215 2019-05-20 Martin Liska <mliska@suse.cz>
18217 * config/i386/i386.c (ix86_libc_has_fast_function):
18218 Add ATTRIBUTE_UNUSED for the argument.
18220 2019-05-20 Richard Biener <rguenther@suse.de>
18222 * gimple-match-head.c: Include vec-perm-indices.h.
18223 * generic-match-head.c: Likewise.
18224 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
18226 * fold-const.c (fold_vec_perm): Export.
18227 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
18228 (match.pd): ...here.
18230 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18232 * cfgloop.h (struct loop): Add simdlen member.
18233 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
18234 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
18235 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
18236 as new argument to autovectorize_vector_sizes target hook. If
18237 loop->simdlen, pick up vector size where the vectorization factor
18238 is equal to loop->simd, and if there is none, fall back to the first
18240 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
18242 * omp-low.c (omp_clause_aligned_alignment): Likewise.
18243 * omp-general.c (omp_max_vf): Likewise.
18244 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
18245 * tree-vect-slp.c (vect_slp_bb): Likewise.
18246 * target.def (autovectorize_vector_sizes): Add ALL argument and
18248 * doc/tm.texi: Adjust documentation.
18249 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
18250 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
18251 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
18253 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
18254 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
18255 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
18256 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
18257 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
18258 preferred vector size is not 512-bit or 256-bit, just put those
18259 unpreferred ones last.
18261 2019-05-20 Martin Liska <mliska@suse.cz>
18263 * targhooks.c (default_libc_has_fast_function): New function.
18264 * targhooks.h (default_libc_has_fast_function): Likewise.
18266 2019-05-20 Martin Liska <mliska@suse.cz>
18268 PR middle-end/90263
18269 * builtins.c (expand_builtin_memory_copy_args): When having a
18270 target with fast mempcpy implementation do now use memcpy.
18271 * config/i386/i386.c (ix86_libc_has_fast_function): New.
18272 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
18273 * doc/tm.texi: Likewise.
18274 * doc/tm.texi.in: Likewise.
18276 * expr.c (emit_block_move_hints): Add 2 new arguments.
18277 * expr.h (emit_block_move_hints): Bail out when libcall
18278 to memcpy would be used.
18280 2019-05-20 Martin Liska <mliska@suse.cz>
18282 * profile-count.c: Add vertical spacing in order
18283 to separate functions.
18284 * profile-count.h: Likewise.
18286 2019-05-20 Martin Liska <mliska@suse.cz>
18288 * profile-count.h: Do not use full qualified
18290 * profile-count.c (profile_count::to_frequency): Likewise.
18292 2019-05-20 Martin Liska <mliska@suse.cz>
18294 * profile-count.h (enum profile_quality): Use capital letters
18295 for enum value names. Use the adjusted names.
18296 * profile-count.c: Use the adjusted names.
18298 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18300 * config/rs6000/constraints.md (define_register_constraint "wH"):
18302 (define_register_constraint "wI"): Delete.
18303 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18304 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
18305 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18306 (rs6000_init_hard_regno_mode_ok): Adjust.
18307 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
18308 resp. "d", or with "wa" as appropriate, all with "p8v".
18309 * config/rs6000/vsx.md: Ditto.
18310 * doc/md.texi (Machine Constraints): Adjust.
18312 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18314 * config/rs6000/constraints.md (define_register_constraint "wy"):
18316 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18317 RS6000_CONSTRAINT_wy.
18318 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18319 (rs6000_init_hard_regno_mode_ok): Adjust.
18320 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
18321 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
18322 (define_mode_attr Fisa): New.
18323 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
18324 * doc/md.texi (Machine Constraints): Adjust.
18326 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18328 * config/rs6000/constraints.md (define_register_constraint "wu"):
18330 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18331 RS6000_CONSTRAINT_wu.
18332 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18333 (rs6000_init_hard_regno_mode_ok): Adjust.
18334 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
18336 (define_mode_attr Fa): Delete.
18337 * config/rs6000/vsx.md: Ditto.
18338 * doc/md.texi (Machine Constraints): Adjust.
18340 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18342 * config/rs6000/constraints.md (define_register_constraint "wJ"):
18344 (define_register_constraint "wK"): Delete.
18345 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18346 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
18347 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18348 (rs6000_init_hard_regno_mode_ok): Adjust.
18349 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
18350 Replace "wK" constraint by "wH" with "p9v".
18351 * config/rs6000/vsx.md: Ditto.
18352 * doc/md.texi (Machine Constraints): Adjust.
18354 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18356 * config/rs6000/constraints.md (define_register_constraint "wb"):
18358 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18359 RS6000_CONSTRAINT_wb.
18360 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18361 (rs6000_init_hard_regno_mode_ok): Adjust.
18362 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18363 * config/rs6000/vsx.md: Ditto.
18364 * doc/md.texi (Machine Constraints): Adjust.
18366 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18368 * config/rs6000/constraints.md (define_register_constraint "wo"):
18370 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18371 RS6000_CONSTRAINT_wo.
18372 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18373 (rs6000_init_hard_regno_mode_ok): Adjust.
18374 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18375 * config/rs6000/altivec.md: Ditto.
18376 * doc/md.texi (Machine Constraints): Adjust.
18378 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18380 * config/darwin-c.c (darwin_register_objc_includes): Do not
18381 prepend the sysroot when building gnu-runtime header search
18384 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18386 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18387 instead of direct output of the asm.
18389 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18391 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18392 argument to be type bool (was int before).
18393 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18394 at first use. Use type bool for some variables. Fix a theoretical
18395 eh_return bug for svr4.
18397 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18399 * config/rs6000/rs6000.md (isa): New attribute.
18400 (enabled): New attribute.
18402 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18404 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18405 assemble_start_function and assemble_end_function.
18407 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18409 PR middle-end/89433
18410 * omp-general.c (oacc_verify_routine_clauses): Change formal
18411 parameters. Add checking if already marked with an OpenACC
18412 'routine' directive. Adjust all users.
18414 PR middle-end/89433
18415 * omp-general.c (oacc_build_routine_dims): Move some of its
18417 (oacc_verify_routine_clauses): ... this new function.
18418 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18420 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18422 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18423 formating of picbase labels to match other ports.
18425 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18427 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18428 in the generated code.
18430 2019-05-16 Martin Sebor <msebor@redhat.com>
18432 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18433 identifiers, keywords, operators, and types in diagnostics. Correct
18434 quoting, spelling, and sentence capitalization issues.
18435 (expand_builtin_atomic_is_lock_free): Same.
18436 (fold_builtin_next_arg): Same.
18437 * cfgexpand.c (expand_one_var): Same.
18438 (tree_conflicts_with_clobbers_p): Same.
18439 (expand_asm_stmt): Same.
18440 (verify_loop_structure): Same.
18441 * cgraphunit.c (process_function_and_variable_attributes): Same.
18442 * collect-utils.c (collect_execute): Same.
18443 * collect2.c (maybe_run_lto_and_relink): Same.
18444 (is_lto_object_file): Same.
18445 (scan_prog_file): Same.
18446 * convert.c (convert_to_real_1): Same.
18447 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18448 * except.c (verify_eh_tree): Same.
18449 * gcc.c (execute): Same.
18450 (eval_spec_function): Same.
18451 (run_attempt): Same.
18452 (driver::set_up_specs): Same.
18453 (compare_debug_auxbase_opt_spec_function): Same.
18454 * gcov-tool.c (unlink_gcda_file): Same.
18456 (do_rewrite): Same.
18457 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18458 * gimplify.c (gimplify_asm_expr): Same.
18459 (gimplify_adjust_omp_clauses): Same.
18460 * hsa-gen.c (gen_hsa_addr_insns): Same.
18461 (gen_hsa_insns_for_load): Same.
18462 (gen_hsa_cmp_insn_from_gimple): Same.
18463 (gen_hsa_insns_for_operation_assignment): Same.
18464 (gen_get_level): Same.
18465 (gen_hsa_alloca): Same.
18466 (omp_simple_builtin::generate): Same.
18467 (gen_hsa_atomic_for_builtin): Same.
18468 (gen_hsa_insns_for_call): Same.
18469 * input.c (dump_location_info): Same.
18470 * ipa-devirt.c (compare_virtual_tables): Same.
18471 * ira.c (ira_setup_eliminable_regset): Same.
18472 * lra-assigns.c (lra_assign): Same.
18473 * lra-constraints.c (lra_constraints): Same.
18474 * lto-streamer-in.c (lto_input_mode_table): Same.
18475 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18476 (merge_and_complain): Same.
18477 (compile_offload_image): Same.
18478 (compile_images_for_offload_targets): Same.
18479 (debug_objcopy): Same.
18482 * opts.c (print_specific_help): Same.
18483 (parse_no_sanitize_attribute): Same.
18484 (print_help): Same.
18485 (handle_param): Same.
18486 * plugin.c (add_new_plugin): Same.
18487 (parse_plugin_arg_opt): Same.
18488 (try_init_one_plugin): Same.
18489 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18490 operators, and types in diagnostics. Correct quoting and spelling
18492 * read-rtl-function.c (parse_edge_flag_token): Same.
18493 (function_reader::parse_enum_value): Same.
18494 * reg-stack.c (check_asm_stack_operands): Same.
18495 * regcprop.c (validate_value_data): Same.
18496 * sched-rgn.c (make_pass_sched_fusion): Same.
18497 * stmt.c (check_unique_operand_names): Same.
18498 * targhooks.c (default_target_option_pragma_parse): Same.
18499 * tlink.c (recompile_files): Same.
18500 * toplev.c (process_options): Same.
18501 (do_compile): Same.
18502 * trans-mem.c (diagnose_tm_1): Same.
18503 (ipa_tm_scan_irr_block): Same.
18504 (ipa_tm_diagnose_transaction): Same.
18505 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18506 format a tree code name in a diagnostic.
18507 (verify_types_in_gimple_min_lval): Same.
18508 (verify_types_in_gimple_reference): Same.
18509 (verify_gimple_call): Same.
18510 (verify_gimple_assign_unary): Same.
18511 (verify_gimple_assign_binary): Same.
18512 (verify_gimple_assign_ternary): Same.
18513 (verify_gimple_assign_single): Same.
18514 (verify_gimple_switch): Same.
18515 (verify_gimple_label): Same.
18516 (verify_gimple_phi): Same.
18517 (verify_gimple_in_seq): Same.
18518 (verify_eh_throw_stmt_node): Same.
18519 (collect_subblocks): Same.
18520 (gimple_verify_flow_info): Same.
18521 (do_warn_unused_result): Same.
18522 * tree-inline.c (expand_call_inline): Same.
18523 * tree-into-ssa.c (update_ssa): Same.
18524 * tree.c (tree_int_cst_elt_check_failed): Same.
18525 (tree_vec_elt_check_failed): Same.
18526 (omp_clause_operand_check_failed): Same.
18527 (verify_type_variant): Same.
18528 (verify_type): Same.
18529 * value-prof.c (verify_histograms): Same.
18530 * varasm.c (assemble_start_function): Same.
18532 2019-05-16 Martin Sebor <msebor@redhat.com>
18534 * config/i386/i386-expand.c (get_element_number): Quote keywords
18535 and other internal names in diagnostics. Adjust other diagnostic
18536 formatting issues noted by -Wformat-diag.
18537 * config/i386/i386-features.c
18538 (ix86_mangle_function_version_assembler_name): Same.
18539 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18540 * config/i386/i386.c (ix86_function_type_abi): Same.
18541 (ix86_function_ms_hook_prologue): Same.
18542 (classify_argument): Same.
18543 (ix86_expand_prologue): Same.
18544 (ix86_md_asm_adjust): Same.
18545 (ix86_memmodel_check): Same.
18547 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18549 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18550 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18553 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18556 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18557 intrinsics without SSE/SSE2/SSSE3.
18558 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18560 (*mmx_uavgv8qi3): Likewise.
18562 2019-05-17 Richard Biener <rguenther@suse.de>
18564 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18565 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18567 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18569 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18570 vec_sldw insn pattern.
18572 2019-05-17 Richard Biener <rguenther@suse.de>
18574 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18576 2019-05-17 Martin Liska <mliska@suse.cz>
18579 * toplev.c (output_stack_usage): With LTO and sanitizer it
18580 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18581 has no file location.
18583 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18586 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18587 sz0 is equal to sz1, instead return false in that case.
18589 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18590 has non-constant expression, force sctx.lane and use two
18591 argument IFN_GOMP_SIMD_LANE instead of single argument.
18592 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18593 two argument IFN_GOMP_SIMD_LANE without lhs.
18594 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18596 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18598 (LOOP_REQUIRES_VERSIONING): Or in
18599 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18600 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18602 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18603 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18604 from simd if clause if needed.
18606 2019-05-16 Richard Biener <rguenther@suse.de>
18608 * tree-affine.c (expr_to_aff_combination): New function split
18610 (tree_to_aff_combination): ... here.
18611 (aff_combination_expand): Avoid building a GENERIC tree.
18613 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18615 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18616 assemble_start_function and assemble_end_function calls.
18617 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18618 assemble_start_function and assemble_end_function.
18619 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18620 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18621 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18622 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18623 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18624 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18625 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18626 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18627 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18628 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18629 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18630 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18632 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18633 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18634 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18635 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18636 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18637 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18638 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18639 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18640 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18641 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18642 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18643 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18644 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18645 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18647 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18648 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18649 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18651 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18653 * tree-ssa-alias.c (alias_stats): Add
18654 aliasing_component_refs_p_may_alias and
18655 aliasing_component_refs_p_no_alias.
18656 (dump_alias_stats): Print aliasing_component_refs_p stats.
18657 (aliasing_component_refs_p): Update stats.
18659 2019-05-16 Martin Liska <mliska@suse.cz>
18662 * multiple_target.c (expand_target_clones): Do not allow
18663 target_clones being used with a symbol that is an alias.
18665 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18667 PR tree-optimization/90394
18668 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18669 positives rather than ICE for cases where (code2 == NE_EXPR
18670 && code1 == BIT_AND_EXPR).
18672 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18675 * tree-core.h (struct tree_decl_common): Document
18676 decl_nonshareable_flag for PARM_DECLs.
18677 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18678 * calls.c (expand_call): Don't try tail call if caller
18679 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18680 passed on the stack and callee needs to pass any arguments on the
18682 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18683 else if instead of series of mutually exclusive ifs. Handle
18684 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18685 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18687 * lto-streamer.h (LTO_major_version): Bump to 9.
18689 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18691 PR tree-optimization/90106
18692 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18693 new parameter as new internal function call, also move it to new
18695 (use_internal_fn): Pass internal function call to
18696 shrink_wrap_one_built_in_call_with_conds.
18698 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18700 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18702 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18703 safelen_int and set loop->dont_vectorize.
18705 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18708 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18710 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18712 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18713 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18714 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18717 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18720 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18721 define_insn_and_split to support SSE emulation.
18722 (*vec_extractv2sf_0): Likewise.
18723 (*vec_extractv2sf_1): Likewise.
18724 (*vec_extractv2si_0): Likewise.
18725 (*vec_extractv2si_1): Likewise.
18726 (*vec_extractv2si_zext_mem): Likewise.
18727 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18728 (vec_extractv2sf_1 splitter): Likewise.
18729 (vec_extractv2sfsf): Likewise.
18730 (vec_setv2si): Likewise.
18731 (vec_extractv2si_1 splitter): Likewise.
18732 (vec_extractv2sisi): Likewise.
18733 (vec_setv4hi): Likewise.
18734 (vec_extractv4hihi): Likewise.
18735 (vec_setv8qi): Likewise.
18736 (vec_extractv8qiqi): Likewise.
18737 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18738 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18739 (vec_extractv2sisi): Likewise.
18740 (vec_extractv4hihi): Likewise.
18741 (vec_extractv8qiqi): Likewise.
18742 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18743 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18744 (vec_initv2sisi): Likewise.
18745 (vec_initv4hihi): Likewise.
18746 (vec_initv8qiqi): Likewise.
18747 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18748 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18749 (vec_setv4hi): Likewise.
18750 (vec_setv8qi): Likewise.
18752 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18755 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18756 TARGET_MMX_WITH_SSE.
18757 (MMXMODE:*mov<mode>_internal): Likewise.
18758 (MMXMODE:movmisalign<mode>): Likewise.
18760 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18763 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18764 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18765 (sse2_cvtpd2pi): Ditto.
18766 (sse2_cvttpd2pi): Ditto.
18767 (*vec_concatv2sf_sse4_1): Ditto.
18768 (*vec_concatv2sf_sse): Ditto.
18769 (*vec_concatv2si_sse4_1): Ditto.
18770 (*vec_concatv2si): Ditto.
18771 (*vec_concatv4si_0): Ditto.
18772 (*vec_concatv2di_0): Ditto.
18774 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18777 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18779 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18782 * config/i386/sse.md (ssse3_palignrdi): Changed to
18783 define_insn_and_split to support SSE emulation.
18785 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18788 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18790 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18793 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18794 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18797 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18800 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18801 or TARGET_MMX_WITH_SSE.
18802 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18804 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18807 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18809 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18812 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18813 Changed to define_insn_and_split to support SSE emulation.
18815 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18818 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18819 Changed to define_insn_and_split to support SSE emulation.
18821 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18824 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18825 (*mmx_<emms>): This.
18826 (mmx_<emms>): New expander.
18828 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18831 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18833 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18835 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18838 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18840 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18843 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18845 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18848 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18849 TARGET_MMX_WITH_SSE.
18850 (*mmx_uavgv4hi3): Add SSE emulation.
18852 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18855 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18856 and TARGET_MMX_WITH_SSE.
18857 (*mmx_uavgv8qi3): Add SSE emulation.
18859 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18862 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18863 maskmovdqu for __MMX_WITH_SSE__.
18865 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18868 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18869 TARGET_MMX and TARGET_MMX_WITH_SSE.
18870 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18872 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18875 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18876 define_insn_and_split to support SSE emulation.
18878 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18881 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18882 and TARGET_MMX_WITH_SSE.
18883 (mmx_<code>v8qi3): Likewise.
18884 (smaxmin:<code>v4hi3): New.
18885 (umaxmin:<code>v8qi3): Likewise.
18886 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18887 (umaxmin:*mmx_<code>v8qi3): Likewise.
18889 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18892 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18893 TARGET_MMX_WITH_SSE.
18894 (*mmx_pinsrw): Add SSE emulation.
18896 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18899 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18901 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18904 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18905 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18908 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18911 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18912 (sse_cvttps2pi): Likewise.
18914 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18917 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18918 TARGET_MMX_WITH_SSE.
18919 (mmx_pshufw_1): Add SSE emulation.
18920 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18921 TARGET_MMX_WITH_SSE to support SSE emulation.
18923 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18926 * config/i386/constraints.md (Yw): New constraint.
18927 * config/i386/mmx.md (*vec_dupv2si): Changed to
18928 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18929 support SSE emulation.
18931 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18934 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18935 TARGET_MMX_WITH_SSE.
18936 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18938 (mmx_gt<mode>3): Likewise.
18940 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18943 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18944 TARGET_MMX_WITH_SSE. Add SSE support.
18946 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18949 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18950 TARGET_MMX_WITH_SSE.
18951 (any_logic:<code><mode>3): New.
18952 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18955 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18958 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18959 TARGET_MMX_WITH_SSE. Add SSE emulation.
18960 (mmx_<shift_insn><mode>3): Likewise.
18961 (ashr<mode>3): New.
18962 (<shift_insn><mode>3): Likewise.
18964 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18967 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18968 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18970 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18973 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18974 TARGET_MMX_WITH_SSE.
18975 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18978 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18981 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18982 TARGET_MMX_WITH_SSE.
18984 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18987 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18990 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18991 (plusminus:mmx_<plusminus_insn><mode>3): Check
18992 TARGET_MMX_WITH_SSE.
18993 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18994 (<plusminus_insn><mode>3): New.
18995 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18996 (*mmx_<plusminus_insn><mode>3): Likewise.
18998 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19001 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
19002 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
19004 * config/i386/mmx.m (mmx_punpckhbw): Changed to
19005 define_insn_and_split to support SSE emulation.
19006 (mmx_punpcklbw): Likewise.
19007 (mmx_punpckhwd): Likewise.
19008 (mmx_punpcklwd): Likewise.
19009 (mmx_punpckhdq): Likewise.
19010 (mmx_punpckldq): Likewise.
19012 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19013 Uros Bizjak <ubizjak@gmail.com>
19016 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
19018 (ix86_split_mmx_pack): Likewise.
19019 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
19021 (ix86_split_mmx_pack): Likewise.
19022 * config/i386/i386.md (mmx_isa): New.
19023 (enabled): Also check mmx_isa.
19024 * config/i386/mmx.md (any_s_truncate): New code iterator.
19025 (s_trunsuffix): New code attr.
19026 (mmx_packsswb): Removed.
19027 (mmx_packssdw): Likewise.
19028 (mmx_packuswb): Likewise.
19029 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
19030 MMX packsswb/packuswb with SSE2.
19031 (mmx_packssdw): Likewise.
19032 * config/i386/predicates.md (register_mmxmem_operand): New.
19034 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19037 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19038 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
19039 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
19040 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
19041 (ix86_vector_mode_supported_p): Likewise.
19042 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
19044 2019-05-15 Martin Liska <mliska@suse.cz>
19046 PR middle-end/90478
19047 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19048 Check for overflow.
19050 2019-05-15 Richard Biener <rguenther@suse.de>
19052 * tree-into-ssa.c (pass_build_ssa::execute): Run
19053 update_address_taken before going into SSA.
19055 2019-05-15 Richard Biener <rguenther@suse.de>
19057 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
19058 as __BIT_FIELD_REF with type with -gimple.
19060 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
19062 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
19063 semantically equivalent branches (left over after prior refactorings).
19065 2019-05-15 Richard Biener <rguenther@suse.de>
19067 PR tree-optimization/88828
19068 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
19071 2019-05-14 Richard Biener <rguenther@suse.de>
19073 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
19074 as __VIEW_CONVERT with -gimple.
19076 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19079 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
19082 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19084 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
19085 define_split to become a define_insn_and_split.
19087 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19089 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
19091 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
19092 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
19093 (sibcall_epilogue): Adjust.
19094 (epilogue): Adjust.
19096 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19098 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
19099 to unsupported ones.
19100 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
19101 * config.host: Likewise.
19102 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
19103 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
19104 __svr4__]: Remove "brand" fallback.
19105 [!KSTAT_DATA_STRING]: Remove.
19106 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
19108 (comdat_group): Likewise.
19109 (set_have_as_tls): Likewise.
19110 (gcc_cv_target_dl_iterate_phdr): Likewise.
19111 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
19112 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
19113 * configure: Regenerate.
19114 * doc/install.texi: Simplify Solaris target triplets.
19115 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
19116 (Specific, *-*-solaris2*): Document Solaris 10 removal.
19117 Remove Solaris 10 references.
19118 Remove obsolete Solaris bug reference.
19119 (Specific, sparc-sun-solaris2.10): Remove.
19121 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
19123 * config/i386/i386.md (any_div): New code iterator.
19124 (paired_mod): New code attribute.
19125 (sgnprefix): Handle DIV and UDIV RTXes.
19127 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
19128 and udivmod<mode>4 patterns using any_div code iterator.
19129 (divmod splitters): Macroize splitters using any_div code iterator.
19130 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
19131 (*udivmodsi4_pow2_zext_2): Ditto.
19132 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
19133 and *udivmod<mode>4_noext patterns using any_div code iterator.
19134 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
19135 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
19136 patterns using any_div code iterator.
19137 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
19138 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
19139 patterns using any_div code iterator.
19140 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
19141 udivmodhiqi3 patterns using any_extend code iterator.
19143 2019-05-14 Richard Biener <rguenther@suse.de>
19144 H.J. Lu <hongjiu.lu@intel.com>
19146 PR tree-optimization/88828
19147 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
19148 permuting in a single non-constant element not extracted
19151 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
19153 * internal-fn.def (SIGNBIT): New.
19154 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
19156 (signbitv4sf2): Likewise.
19158 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
19161 * config/mips/mips.c (mips_split_move): Skip forward SRC into
19162 next insn when the SRC reg is dead.
19164 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
19166 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
19167 (alloc_cand_and_find_basis): Ditto.
19168 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
19169 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
19170 (create_add_imm_cand, slsr_process_cast): Ditto.
19171 (slsr_process_copy, replace_mult_candidate): Ditto.
19172 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
19173 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
19174 (pass_strength_reduction::execute): Init the first NULL element.
19176 2019-05-13 Nathan Sidwell <nathan@acm.org>
19178 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
19179 (run_attempt): Reformat line break.
19181 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
19184 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
19185 data registers in sibcall epilogues.
19186 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19188 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
19191 * configure.ac (--enable-frame-pointer):
19192 Disable by default for cygwin and mingw.
19193 * configure: Regenerate.
19195 2019-05-13 Nathan Sidwell <nathan@acm.org>
19197 * dwarf2out.c (breakout_comdat_types): Move comment to correct
19199 (const_ok_for_output_1): Balance parens around #if/#else/#endif
19200 (gen_member_die): Move abstract origin check earlier. Only VARs
19201 can be static_inline_p. Simplify splicing control flow.
19203 2019-05-13 Richard Biener <rguenther@suse.de>
19205 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
19207 (vect_build_slp_tree_1): Likewise.
19209 2019-05-13 Richard Biener <rguenther@suse.de>
19211 PR tree-optimization/90402
19212 * tree-if-conv.c (tree_if_conversion): Value number only
19213 the loop body by making the latch an exit of the region
19215 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
19217 (do_rpo_vn): Deal with multiple edges into the entry block
19218 that are not backedges inside the region by skipping PHIs
19219 of the entry block.
19221 2019-05-13 Richard Biener <rguenther@suse.de>
19223 PR tree-optimization/90316
19224 * tree-ssa-pre.c (insert_aux): Fold into ...
19225 (insert): ... this function. Use a RPO walk to reduce the
19226 number of required iterations.
19228 2019-05-13 Martin Liska <mliska@suse.cz>
19230 PR tree-optimization/90416
19231 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
19232 string instead of passing the second part as va_arg argument.
19234 2019-05-13 Martin Liska <mliska@suse.cz>
19236 PR gcov-profile/90380
19237 * gcov.c (handle_cycle): Do not support zero cycle count,
19238 it should not be possible.
19239 (path_contains_zero_cycle_arc): New function.
19240 (circuit): Ignore zero cycle arc counts.
19242 2019-05-13 Martin Liska <mliska@suse.cz>
19244 PR gcov-profile/90380
19245 * gcov.c (enum loop_type): Remove the enum and
19247 (handle_cycle): Assert that we should not reach
19249 (circuit): Use loop_found instead of a tri-state loop_type.
19250 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
19253 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19256 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
19257 (ix86_output_indirect_branch_via_reg): Use output mechanism
19258 accounting for __USER_LABEL_PREFIX__.
19259 (ix86_output_indirect_branch_via_push): Likewise.
19260 (ix86_output_function_return): Likewise.
19261 (ix86_output_indirect_function_return): Likewise.
19263 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
19265 * doc/md.texi: Document use of code attributes in rtx patterns.
19266 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
19267 * read-rtl.c (find_code): Split out search loops into...
19268 (maybe_find_code): ...this new function.
19269 (check_code_iterator): Make the error message more informative.
19270 (check_code_attribute): New function.
19271 (rtx_reader::rtx_alloc_for_name): Likewise.
19272 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
19273 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
19274 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
19275 <max_opp> directly as an rtx code instead of via a match_operator.
19276 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
19277 (<su>abd<mode>_3): Update accordingly.
19279 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19281 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
19282 is given, print the state of the EH "save world" computation for
19285 2019-05-11 Jakub Jelinek <jakub@redhat.com>
19288 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
19289 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19291 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
19293 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
19294 Use pinsrd for TARGET_SSE4_1.
19295 * config/i386/sse.md (movdi_to_sse): Ditto.
19297 2019-05-10 Richard Biener <rguenther@suse.de>
19299 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
19300 (do_rpo_vn): Initialize next_value_id.
19302 2019-05-10 Martin Liska <mliska@suse.cz>
19304 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19307 2019-05-10 Jakub Jelinek <jakub@redhat.com>
19309 PR tree-optimization/90385
19310 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
19311 arguments of the exit phis.
19314 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
19315 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
19317 (copy_tree_body_r): Likewise.
19318 (copy_fn): Set id.do_not_fold to true.
19320 2019-05-10 Martin Liska <mliska@suse.cz>
19322 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
19323 Reapply changes from r269790.
19325 2019-05-10 Martin Liska <mliska@suse.cz>
19327 PR middle-end/90340
19328 * doc/invoke.texi: New params.
19329 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
19330 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
19331 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19333 * tree-switch-conversion.h (struct jump_table_cluster):
19336 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
19338 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
19340 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
19342 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
19344 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
19346 PR rtl-optimization/88879
19347 * sel-sched.c (sel_target_adjust_priority): Remove assert.
19349 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
19352 * config/arm/arm.c (callee_saved_reg_p): Move before
19353 thumb_find_work_register.
19354 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
19355 thumb_find_work_register. Only call df_get_live_out once.
19356 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
19357 (thumb_find_work_register): Use
19358 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19359 algorithms to locate a spare call clobbered reg.
19361 2019-05-09 Martin Liska <mliska@suse.cz>
19363 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19364 and MAX_EXPR in GIMPLE FE format.
19366 2019-05-09 Martin Liska <mliska@suse.cz>
19368 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19369 * gimple-pretty-print.c (dump_gimple_bb_header):
19371 (pp_cfg_jump): Dump edge probability.
19372 * profile-count.c (profile_quality_as_string): Simplify
19373 with a static array.
19374 (parse_profile_quality): New function.
19375 (profile_count::dump): Simplify with a static array.
19376 (profile_count::from_gcov_type): Add new argument.
19377 * profile-count.h (parse_profile_quality): Likewise.
19378 * predict.h (set_hot_bb_threshold): New.
19379 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19381 * predict.c (get_hot_bb_threshold): Set from the new param.
19382 (set_hot_bb_threshold): New.
19384 2019-05-09 Richard Biener <rguenther@suse.de>
19386 PR tree-optimization/90395
19387 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19388 rewrite vector stores that throw internally.
19390 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19392 * cif-code.def (CHKP): Remove.
19395 * configure.ac (--enable-frame-pointer): Disable by default for
19397 * configure: Regenerate.
19399 2019-05-09 Alan Modra <amodra@gmail.com>
19402 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19403 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19404 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19405 cost for general <-> vsx when direct moves are available.
19406 Cost union classes at minimal cost for any reg in the class.
19407 Correct calculation for moves between vsx, float, and altivec.
19408 Don't return a low cost for moves between special regs. Don't
19409 use hard coded register numbers.
19410 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19411 (rs6000_ira_change_pseudo_allocno_class): New function.
19412 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19413 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19415 (movsi_internal1): Don't disparage vector alternatives.
19416 (mov<mode>_internal): Likewise, excepting alternative that
19418 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19419 we <- b alternative.
19421 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19424 PR tree-optimization/89060
19425 * tree-ssa-live.h (live_vars_map): New typedef.
19426 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19427 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19428 (struct compute_live_vars_data): New type.
19429 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19430 live_vars_at_stmt, destroy_live_vars): New functions.
19431 * tree-tailcall.c: Include tree-ssa-live.h.
19432 (live_vars, live_vars_vec): New global variables.
19433 (find_tail_calls): Perform variable life analysis before punting.
19434 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19435 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19437 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19438 Perform variable life analysis to select variables that really need
19440 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19441 instead set id->eh_landing_pad_dest and assert it is the same.
19442 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19444 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19445 Richard Earnshaw <rearnsha@arm.com>
19448 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19450 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19451 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19452 register if both the epilogue and prologue can use call-clobbered
19454 (thumb1_unexpanded_epilogue): Use
19455 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19456 picking temporaries for restoring high regs to match that of the
19457 prologue where possible.
19458 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19459 the list of work registers. Detect if the return address is still live
19460 at the end of the prologue and avoid using it for a work register if so.
19461 If the return address is not live, add LR to the list of pushable regs
19462 after the first pass.
19464 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19466 PR tree-optimization/90078
19467 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19468 (INFTY): Increase the value for infinite cost.
19469 (struct comp_cost): Promote type of members to int64_t.
19470 (infinite_cost): Don't set complexity in initialization.
19471 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19472 overflows to infinite_cost.
19473 (adjust_setup_cost): Promote type of parameter and cost computation
19475 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19477 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19478 cost computation to int64_t.
19479 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19480 int64_t's format specifier in dump.
19482 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19484 PR tree-optimization/90240
19485 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19486 with respect to scaling factor pre-computed for each basic block.
19487 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19488 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19489 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19490 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19491 live range for array of loop's basic blocks. Cleanup aux field of
19492 loop's basic blocks.
19494 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19496 PR tree-optimization/90356
19497 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19499 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19501 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19502 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19503 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19504 (ix86_handle_option): Handle -mavx512bf16.
19505 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19507 * config/i386/avx512bf16vlintrin.h: New.
19508 * config/i386/avx512bf16intrin.h: New.
19509 * config/i386/cpuid.h (bit_AVX512BF16): New.
19510 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19511 * config/i386/i386-builtin-types.def: Add new types.
19512 * config/i386/i386-builtin.def: Add new builtins.
19513 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19515 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19516 (ix86_option_override_internal): Handle BF16.
19517 (ix86_valid_target_attribute_inner_p): Ditto.
19518 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19519 * config/i386/i386-builtin.c (enum processor_features): Add
19521 (static const _isa_names_table isa_names_table): Ditto.
19522 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19523 (PTA_AVX512BF16): Ditto.
19524 * config/i386/i386.opt: Add -mavx512bf16.
19525 * config/i386/immintrin.h: Include avx512bf16intrin.h
19526 and avx512bf16vlintrin.h.
19527 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19528 avx512f_cvtneps2bf16_<mode><mask_name>,
19529 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19530 * config/i386/subst.md (mask_half): Add new subst.
19531 * doc/invoke.texi: Document -mavx512bf16.
19533 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19535 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19536 Delete declaration.
19537 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19538 (rs6000_debug_legitimize_reload_address): Delete.
19539 (rs6000_legitimize_reload_address_ptr): Delete.
19540 (rs6000_option_override_internal): Adjust.
19541 (mem_operand_gpr): Adjust comment.
19542 (legitimate_lo_sum_address_p): Ditto.
19543 (rs6000_legitimize_reload_address): Delete.
19544 (rs6000_debug_legitimize_reload_address): Delete.
19545 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19547 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19550 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19551 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19552 to compute vector element selector for both constant and variable
19555 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19557 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19558 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19559 ashrdi3_cvt using SWI48 mode iterator.
19561 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19563 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19564 (aarch64_<su>abd<mode>_3): Likewise.
19565 (*aarch64_<su>abd<mode>_3): New define_insn.
19566 (<sur>sad<vsi2qi>): New define_expand.
19567 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19568 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19569 (build_vect_cond_expr): Likewise.
19571 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19573 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19574 clobbers outside of accessible_reg_set.
19575 * config/i386/i386.c (ix86_conditional_register_usage):
19576 Disable register sets by clearing corresponding bits in
19577 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19578 call_used_regs and don't clear corresponding reg_names array members.
19580 2019-05-07 Richard Biener <rguenther@suse.de>
19582 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19583 not specified still compute a comp_vectype for invariant
19586 2019-05-07 Richard Biener <rguenther@suse.de>
19588 PR tree-optimization/90316
19589 * tree-ssa-pre.c (translate_vuse_through_block): When
19590 same_valid is NULL do not bother to search for a virtual
19592 (phi_translate_1): When operands changed we cannot keep
19593 the same value-number so do not bother to ask whether
19594 that's possible from translate_vuse_through_block.
19596 2019-05-07 Martin Liska <mliska@suse.cz>
19598 * bitmap.c (bitmap_register): Come up with
19599 alloc_descriptor_max_uid and assign it for
19601 (register_overhead): Use get_descriptor as
19603 (release_overhead): New.
19604 (bitmap_elem_to_freelist): Call it.
19605 (bitmap_elt_clear_from): Likewise.
19606 (bitmap_obstack_free): Likewise.
19607 (bitmap_move): Sensitively release memory.
19608 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19609 (bitmap_initialize): Initialize alloc_descriptor to zero.
19610 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19612 2019-05-07 Richard Biener <rguenther@suse.de>
19614 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19615 we build a SLP node. Remove max_size and limiting.
19616 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19618 2019-05-07 Richard Biener <rguenther@suse.de>
19620 PR tree-optimization/90316
19621 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19622 limit by reference.
19623 (walk_non_aliased_vuses): Take walking limit argument.
19624 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19625 walking if it is reached instead of just counting.
19626 (get_continuation_for_phi): Likewise.
19627 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19628 limiting to the callback.
19629 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19630 (vn_reference_lookup_3): Likewise.
19631 (vn_reference_lookup_pieces): Likewise.
19632 (vn_reference_lookup): Likewise.
19633 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19634 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19635 (avail_exprs_stack::lookup_avail_expr): Likewise.
19637 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19639 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19640 for comparaible types in the second direction even if first one
19641 hits incomparable type.
19643 2019-05-07 Richard Biener <rguenther@suse.de>
19646 * lto-wrapper.c (debug_objcopy): Use the original filename
19647 including archive offset for the filename used for -save-temps.
19649 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19651 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19654 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19655 Hongtao Liu <hongtao.liu@intel.com>
19659 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19660 Modified, original implementation isn't correct.
19662 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19664 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19665 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19666 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19667 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19668 (FRAME_POINTER_REGNUM): Change numbering.
19669 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19670 (alt_reg_names): Adjust.
19671 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19673 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19674 (DWARF_FRAME_REGISTERS): Delete.
19675 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19676 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19678 (REG_ALLOC_ORDER): Adjust.
19679 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19680 (REG_CLASS_CONTENTS): Adjust.
19681 (RETURN_ADDR_RTX): Change comment.
19682 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19684 (REGISTER_NAMES): Adjust.
19685 (ADDITIONAL_REGISTER_NAMES): Adjust.
19686 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19688 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19690 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19692 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19693 (DWARF_FRAME_REGISTERS): Adjust.
19694 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19696 (REG_ALLOC_ORDER): Adjust.
19697 (enum reg_class): Delete SPR_REGS.
19698 (REG_CLASS_NAMES): Delete SPR_REGS.
19699 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19700 (REGISTER_NAMES): Adjust.
19701 (ADDITIONAL_REGISTER_NAMES): Adjust.
19702 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19703 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19704 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19705 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19706 (htm_spr_regno): Delete.
19707 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19709 (rs6000_dbx_register_number): Adjust.
19711 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19713 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19715 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19717 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19718 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19720 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19722 PR tree-optimization/88709
19723 PR tree-optimization/90271
19724 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19725 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19726 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19728 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19729 of the store merging group is larger than
19730 PARAM_STORE_MERGING_MAX_SIZE parameter.
19731 (split_group): Add bzero_first argument. If set, always emit first
19732 the first store which must be = {} of the whole area and then for the
19733 rest of the stores consider all zero bytes as paddings.
19734 (imm_store_chain_info::output_merged_store): Check if first store
19735 is = {} of the whole area and if yes, determine which setting of
19736 bzero_first for split_group gives smaller number of stores. Adjust
19737 split_group callers.
19738 (lhs_valid_for_store_merging_p): Allow decls.
19739 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19741 (pass_store_merging::process_store): Likewise.
19743 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19746 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19747 handling of V1TImode.
19749 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19752 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19753 and enable_frame_pointer ...
19754 * configure.ac: ... here. Update help strings for
19755 --enable-frame-pointer.
19756 * configure: Regenerate.
19757 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19758 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19759 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19760 (USE_X86_64_FRAME_POINTER): Ditto.
19762 2019-05-06 Martin Liska <mliska@suse.cz>
19764 * config.gcc: Append to target_gtfiles and fix indentation.
19766 2019-05-06 Richard Biener <rguenther@suse.de>
19768 PR tree-optimization/90358
19769 * tree-vect-stmts.c (get_group_load_store_type): Properly
19770 detect unused upper half of load.
19771 (vectorizable_load): Likewise.
19773 2019-05-06 Richard Biener <rguenther@suse.de>
19775 PR tree-optimization/88828
19776 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19777 (simplify_vector_constructor): ...here. Handle constants in
19780 2019-05-06 Richard Biener <rguenther@suse.de>
19782 PR tree-optimization/90328
19783 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19784 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19785 is valid in the loop nest before using it.
19786 (initialize_data_dependence_relation): Adjust.
19787 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19788 loop as loop-nest to dr_may_alias_p.
19790 2019-05-06 Richard Biener <rguenther@suse.de>
19792 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19794 2019-05-06 Richard Biener <rguenther@suse.de>
19796 PR tree-optimization/90316
19797 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19798 compute target on demand.
19799 (get_continuation_for_phi): Remove code walking stmts to
19800 get to a target virtual operand which could end up being
19803 2019-05-06 Martin Liska <mliska@suse.cz>
19806 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19807 when -mabi is selected to a non-default version.
19809 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19810 Martin Liska <mliska@suse.cz>
19812 * Makefile.in: Add lto-dump.texi.
19813 * cgraph.h: Add new functions get_visibility_string and
19814 get_symtab_type_string.
19815 * doc/gcc.texi: Include lto-dump section.
19816 * doc/lto-dump.texi: New file.
19817 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19818 (parse_dump_option): Factor out this function.
19819 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19820 (parse_dump_option): Export the function.
19821 * symtab.c (symtab_node::get_visibility_string): New function.
19822 (symtab_node::get_symtab_type_string): Likewise.
19824 2019-05-06 Martin Liska <mliska@suse.cz>
19826 * config/i386/i386-builtins.c: New file.
19827 * config/i386/i386-builtins.h: New file.
19828 * config/i386/i386-expand.c: New file.
19829 * config/i386/i386-expand.h: New file.
19830 * config/i386/i386-features.c: New file.
19831 * config/i386/i386-features.h: New file.
19832 * config/i386/i386-options.c: New file.
19833 * config/i386/i386-options.h: New file.
19834 * config.gcc: Add new files into extra_objs and
19836 * config/i386/i386.c: Split content of the file
19837 into newly introduced files.
19838 * config/i386/i386.h: Declare common variables
19840 * config/i386/t-i386: Define dependencies for new files.
19842 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19845 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19846 Restrict 'all' variant to 32-bit configurations.
19847 (unaligned_loadhiu): Likewise.
19848 (unaligned_storehi): Likewise.
19849 (unaligned_storesi): Likewise.
19850 (unaligned_loadhis): Disable when compiling for thumb1.
19852 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19854 PR tree-optimization/90269
19855 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19858 2019-05-03 Martin Liska <mliska@suse.cz>
19860 * hash-map.h: Add is_empty function.
19861 * hash-set.h: Likewise.
19862 * hash-table.h: Likewise.
19863 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19864 elements () == 0 (and similar usages).
19865 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19866 * gimplify.c (gimplify_bind_expr): Likewise.
19867 (gimplify_switch_expr): Likewise.
19868 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19869 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19870 * postreload-gcse.c (dump_hash_table): Likewise.
19871 (gcse_after_reload_main): Likewise.
19872 * predict.c (combine_predictions_for_bb): Likewise.
19873 * tree-parloops.c (reduction_phi): Likewise.
19874 (separate_decls_in_region): Likewise.
19875 (transform_to_exit_first_loop): Likewise.
19876 (gen_parallel_loop): Likewise.
19877 (gather_scalar_reductions): Likewise.
19878 (try_create_reduction_list): Likewise.
19879 * var-tracking.c (dump_vars): Likewise.
19880 (emit_notes_for_changes): Likewise.
19881 (vt_emit_notes): Likewise.
19883 2019-05-03 Richard Biener <rguenther@suse.de>
19885 PR tree-optimization/90316
19886 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19889 2019-05-03 Richard Biener <rguenther@suse.de>
19891 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19892 peeling for gaps by loading only lower halves of vectors
19894 (vectorizable_load): Likewise.
19896 2019-05-03 Richard Biener <rguenther@suse.de>
19898 PR middle-end/89518
19899 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19901 2019-05-03 Richard Biener <rguenther@suse.de>
19903 PR middle-end/87314
19904 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19905 Handle STRING_CST vs DECL or STRING_CST.
19907 2019-05-03 Richard Biener <rguenther@suse.de>
19909 PR tree-optimization/88963
19910 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19911 vector loads feeding only BIT_FIELD_REFs to component
19912 loads. Rewrite stores fed by CONSTRUCTORs to component
19915 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19917 * opts.h (finish_options): Remove lang_mask argument.
19918 (print_help, help_option_argument): Declare.
19919 * opts.c (print_help): Remove forward declaration, no longer static.
19920 (finish_options): Remove lang_mask argument, don't call print_help
19922 * opts-global.c (decode_options): Adjust finish_option caller, call
19925 PR tree-optimization/90303
19926 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19927 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19929 2019-05-03 Richard Biener <rguenther@suse.de>
19931 PR tree-optimization/89698
19932 * gimple-fold.c (canonicalize_constructor_val): Early out
19933 for constants, handle unfolded INTEGER_CSTs as they appear in
19934 C++ virtual table ctors.
19936 2019-05-03 Richard Biener <rguenther@suse.de>
19938 * passes.c (execute_function_todo): Remove dead code.
19940 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19942 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19943 the internal register number, for any "real" register.
19945 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19947 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19948 correct numbers for TFHAR, TFIAR, TEXASR.
19950 2019-05-02 Richard Biener <rguenther@suse.de>
19952 PR tree-optimization/89653
19953 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19954 update-address-taken before the pass.
19955 * passes.def (pass_tree_loop_init): Put comment before it.
19957 2019-05-02 Richard Biener <rguenther@suse.de>
19959 PR tree-optimization/89509
19960 * tree-ssa-structalias.c (compute_dependence_clique): Look
19961 at the first subvar when determining whether it is restrict.
19963 2019-05-02 Richard Biener <rguenther@suse.de>
19965 PR tree-optimization/90273
19966 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19967 useless debug stmts.
19969 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19971 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19973 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19975 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19976 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19977 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19978 (vectorizable_reduction): Use the functions above to vectorize in a
19979 fully masked loop codes that don't have a conditional internal
19982 2019-05-02 Martin Liska <mliska@suse.cz>
19984 * cgraphclones.c: Call valid_attribute_p with 1 for
19986 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19987 it's for target attribute.
19988 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19989 Add new boolean argument.
19990 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19992 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19993 to ix86_valid_target_attribute_inner_p.
19994 (ix86_valid_target_attribute_p): Pass flags argument to
19995 ix86_valid_target_attribute_inner_p.
19996 (get_builtin_code_for_version): Use 0 as it's target attribute.
19998 2019-05-02 Martin Liska <mliska@suse.cz>
20000 * gcc.c (process_command): Add dummy file only
20002 * opts-global.c (decode_options): Pass lang_mask.
20003 * opts.c (print_help): New function.
20004 (finish_options): Print --help if help_option_argument
20006 (common_handle_option): Factor out content of OPT__help_
20008 * opts.h (finish_options): Add new argument.
20010 2019-05-02 Martin Liska <mliska@suse.cz>
20013 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
20014 With -minline-all-stringops use inline expansion using 4B loop.
20015 * doc/invoke.texi: Document the change of
20016 -minline-all-stringops.
20018 2019-05-01 Jeff Law <law@redhat.com>
20020 PR tree-optimization/88797
20021 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
20022 PHI feeds a conditional on the RHS of an assignment.
20024 2019-04-30 Andrew Waterman <andrew@sifive.com>
20025 Jim Wilson <jimw@sifive.com>
20027 * config/riscv/constraints.md (L): New.
20028 * config/riscv/predicates.md (lui_operand): New.
20029 (sfb_alu_operand): New.
20030 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
20031 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
20032 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
20033 * config/riscv/risc.md (type): Add sfb_alu.
20034 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
20035 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
20036 (branch_zero<mode>): Delete.
20037 (mov<mode>cc): New.
20038 (mov<GPR:mode><X:mode>cc): Likewise.
20039 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
20041 2019-04-30 Nathan Sidwell <nathan@acm.org>
20043 * tree.h (MARK_TS_EXP): New.
20045 2019-04-30 Martin Liska <mliska@suse.cz>
20047 * opts.c (enable_warning_as_error): Provide hints
20048 for unknown options.
20050 2019-04-30 Martin Liska <mliska@suse.cz>
20053 * doc/invoke.texi: Add missing dash for gas-locview-support
20054 and gno-as-locview-support.
20056 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20059 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
20060 whitespace at the start of target attribute string.
20062 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20065 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
20066 Define __ARM_FEATURE_ATOMICS.
20068 2019-04-30 Martin Liska <mliska@suse.cz>
20070 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
20071 into built_in_function enum. Remove code for endp == 2 and
20072 use BUILT_IN_* constants.
20073 (gimple_fold_builtin): Call the function with fcode.
20075 2019-04-30 Martin Liska <mliska@suse.cz>
20077 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
20078 DECL_FUNCTION_CODE into ix86_builtins enum before
20079 the switch statement.
20081 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20083 PR tree-optimization/89475
20084 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
20087 2019-04-30 Martin Liska <mliska@suse.cz>
20089 PR translation/90274
20090 * opts.c (print_filtered_help): Wrap string in _(...).
20092 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
20094 PR tree-optimization/90240
20096 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20098 PR tree-optimization/90078
20099 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20100 checks for infinite_cost overflow.
20102 2019-04-29 Jeff Law <law@redhat.com>
20104 * passes.def: Move -Wrestrict pass after copy propagation.
20106 2019-04-29 Maya Rashish <coypu@sdf.org>
20108 * config.gcc (default_gnu_indirect_function): Default to yes
20109 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
20110 sparc*-*-netbsd*, x86_64-*-netbsd*.
20112 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
20114 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
20115 where cond2 is NE_EXPR.
20116 (is_value_included_in): Update comment.
20118 2019-04-29 Richard Biener <rguenther@suse.de>
20120 PR tree-optimization/90278
20121 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
20122 EH on comparison simplification.
20124 2019-04-29 Jason Merrill <jason@redhat.com>
20126 PR c++/82081 - tail call optimization breaks noexcept
20127 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
20128 nothrow function to a might-throw function into a tail call.
20130 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
20132 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
20133 (DDR_INNER_LOOP): Likewise.
20134 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
20135 (initialize_data_dependence_relation): Likewise.
20136 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
20138 2019-04-29 Jakub Jelinek <jakub@redhat.com>
20140 PR rtl-optimization/90257
20141 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
20145 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20149 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20152 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20155 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20157 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20159 2019-04-29 Richard Biener <rguenther@suse.de>
20161 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
20164 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
20166 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
20167 varasm.h, and netbsd-protos.h.
20169 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
20172 * config/i386/i386-protos.h (ix86_data_alignment): Change
20173 the second argument type to unsigned int.
20174 * config/i386/i386.c (ix86_data_alignment): Change "align"
20175 argument type to unsigned int.
20177 2019-04-27 Martin Liska <mliska@suse.cz>
20179 PR middle-end/90258
20180 * opt-suggestions.c (option_proposer::build_option_suggestions):
20181 When get_valid_option_values returns empty values, add the
20182 misspelling candidate.
20184 2019-04-26 Jim Wilson <jimw@sifive.com>
20186 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
20188 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
20189 Pass orig_mode to riscv_build_integer.
20190 (riscv_split_integer): Pass mode to riscv_move_integer.
20191 (riscv_legitimize_const_move): Likewise.
20192 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
20193 promoted_mode. Replace force_reg call with code to load constant into
20194 promoted reg and then subreg it for the store.
20195 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
20196 riscv_move_integer.
20198 2018-04-26 Eugene Sharygin <eush@ispras.ru>
20200 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
20203 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
20205 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
20206 commentary about the encoding of precision.
20208 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
20210 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
20211 * config/i386/t-freebsd64: New file.
20212 * config.gcc: Add the t-freebsd64 for multilib support.
20214 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
20216 * doc/extend.texi (vector_size): Add missing comma after @xref.
20218 2019-04-25 Jakub Jelinek <jakub@redhat.com>
20220 * BASE-VER: Set to 10.0.0.
20222 2019-04-25 Richard Biener <rguenther@suse.de>
20224 PR middle-end/89765
20225 * gimplify.c (gimplify_expr): Avoid turning a lvalue
20226 VIEW_CONVERT_EXPR into one operating on an rvalue.
20228 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
20231 * config/i386/i386.c (feature_priority): Moved to file scope.
20232 (processor_features): Likewise.
20233 (processor_model): Likewise.
20234 (_arch_names_table): Likewise.
20235 (arch_names_table): Likewise.
20236 (_feature_list): Removed.
20237 (feature_list): Likewise.
20238 (_isa_names_table): Moved to file scope. Add priority.
20239 (isa_names_table): Likewise.
20240 (get_builtin_code_for_version): Replace feature_list with
20241 isa_names_table. Update error message for P_ZERO priority.
20243 2019-04-25 Richard Biener <rguenther@suse.de>
20245 * tree-pass.h (make_pass_phi_only_cprop): Remove.
20246 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
20248 2019-04-24 Jeff Law <law@redhat.com>
20250 PR tree-optimization/90037
20251 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
20252 * passes.def: Replace all instance of phi-only cprop with the
20253 lattice propagator. Move propagation pass from after erroneous
20254 path isolation to before erroneous path isolation.
20255 * tree-ssa-phionlycprop.c: Remove.
20257 2019-04-24 Richard Biener <rguenther@suse.de>
20259 PR middle-end/90213
20260 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
20261 by size and BITS_PER_UNIT on poly-wide-ints.
20263 2019-04-25 Richard Biener <rguenther@suse.de>
20265 PR middle-end/90194
20266 * match.pd: Add pattern to simplify view-conversion of an
20269 2019-04-24 Clement Chigot <clement.chigot@atos.net>
20271 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
20272 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
20273 for Go on 32 bit AIX.
20274 * config/rs6000/aix72.h: Likewise.
20276 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20279 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
20280 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
20282 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
20285 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
20286 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
20287 for restored hard frame pointer.
20288 (s390_sched_dependencies_evaluation): Implement new target hook.
20289 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
20291 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
20293 * config/arc/arc-options.def: Fix typos and spelling mistakes.
20294 * config/arc/arc.c (arc_init): Cleanup warning message.
20295 (arc_override_options): Likewise.
20297 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20300 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
20301 a register if both if_true and if_false are MEMs.
20303 PR tree-optimization/90208
20304 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
20305 after labels of new_bb, not before them.
20307 PR tree-optimization/90211
20308 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
20309 which are not SSA_NAMEs.
20311 2018-04-23 Sudakshina Das <sudi.das@arm.com>
20313 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
20315 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
20317 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20319 PR rtl-optimization/87979
20320 * modulo-sched.c (sms_schedule): Start ii value "mii" should
20323 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20325 PR rtl-optimization/84032
20326 * modulo-sched.c (ps_insn_find_column): Change condition so that
20327 branch will always be the last insn in a row inside partial
20330 2019-04-23 Richard Biener <rguenther@suse.de>
20333 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
20334 dest_single_pred_p argument.
20335 (remove_forwarder_block): Adjust.
20336 (remove_forwarder_block_with_phi): Likewise.
20338 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20339 Bernd Edlinger <bernd.edlinger@hotmail.de>
20340 Jakub Jelinek <jakub@redhat.com>
20343 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
20344 if used with general-regs-only.
20345 (arm_conditional_register_usage): Don't add non-general regs if
20347 (arm_valid_target_attribute_rec): Handle general-regs-only.
20348 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
20350 (TARGET_HARD_FLOAT_SUB): Define.
20351 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
20352 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
20353 (TARGET_REALLY_IWMMXT2): Likewise.
20354 * config/arm/arm.opt: Add -mgeneral-regs-only.
20355 * doc/extend.texi: Document ARM general-regs-only target.
20356 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
20358 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20360 PR tree-optimization/90078
20361 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20362 checks for infinite_cost overflow.
20364 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20366 PR tree-optimization/90021
20367 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20368 and check univariate against it.
20369 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20370 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20372 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20376 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20379 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20382 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20384 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20386 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20388 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20389 names using operand format, rather than hard-wired.
20390 (speculation_barrier): Likewise.
20392 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20394 PR tree-optimization/88055
20395 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20396 (gen_one_condition): Use it if !HONOR_NANS.
20398 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20400 PR middle-end/90139
20401 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20402 assign_temp instead of gen_reg_rtx.
20404 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20406 PR translation/90118
20407 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20408 Add missing space before %<.
20410 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20412 PR rtl-optimization/87871
20413 * ira-lives.c (make_object_dead): Don't add conflicts to
20414 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20416 2019-04-18 Martin Sebor <msebor@redhat.com>
20418 PR middle-end/89797
20419 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20420 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20421 assuming type size fits in SHWI.
20423 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20426 * ipa-inline.c (flatten_function): New parameter UPDATE.
20427 (ipa_inline, early_inliner): Use it.
20429 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20431 * fold-const.c (int_const_binop): Return early on failure.
20433 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20435 PR middle-end/85164
20436 * combine.c (force_int_to_mode): Cast the argument rather than
20437 the result of known_alignment.
20438 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20440 2019-04-18 Richard Biener <rguenther@suse.de>
20443 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20445 (remove_forwarder_block): ... here.
20446 (remove_forwarder_block_with_phi): Also move debug stmts here.
20448 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20450 PR translation/79183
20451 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20452 inform where appropriate.
20454 2019-04-18 Richard Biener <rguenther@suse.de>
20456 * tree.c (get_qualified_type): Put found type variants at the
20457 head of the variant list.
20459 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20461 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20463 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20466 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20467 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20468 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20469 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20470 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20472 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20474 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20475 even for allocno's with no conflicts.
20476 (print_conflicts): Print an extra newline.
20478 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20480 * auto-inc-dec.c (attempt_change): Set the alignment of the
20481 temporary memory to that of the original.
20483 2019-04-17 Joao Moreira <jmoreira@suse.de>
20485 * targhooks.c (default_print_patchable_function_entry): Emit
20486 __patchable_function_entries section with writable flags to allow
20487 relocation resolution.
20489 2019-04-17 Jonny Grant <jg@jguk.org>
20491 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20493 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20495 PR middle-end/90095
20496 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20497 on lowpart SUBREGs.
20499 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20501 * config/arc/arc.c (arc_init): Format diagnostic string.
20502 (arc_override_options): Likewise.
20503 (check_if_valid_regno_const): Likewise.
20504 (arc_reorg): Likewise.
20506 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20509 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20511 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20513 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20514 (*movdi_update1): Use Pmode.
20515 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20516 (movdi_<mode>_update_stack): Rename to ...
20517 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20519 (*movsi_update1): Use Pmode.
20520 (*movsi_update2): Use Pmode.
20521 (movsi_update): Rename to ...
20522 (movsi_<mode>_update): ... this. Use Pmode.
20523 (movsi_update_stack): Fix condition.
20524 (*movhi_update1): Use Pmode. Fix argument to
20525 avoiding_indexed_address_p.
20526 (*movhi_update2): Ditto.
20527 (*movhi_update3): Ditto.
20528 (*movhi_update4): Ditto.
20529 (*movqi_update1): Ditto.
20530 (*movqi_update2): Ditto.
20531 (*movqi_update3): Ditto.
20532 (*movsf_update1, *movdf_update1): Merge, rename to...
20533 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20534 avoiding_indexed_address_p. Add "size" attribute.
20535 (*movsf_update2, *movdf_update2): Merge, rename to...
20536 (*mov<mode>_update2): This. Ditto.
20537 (*movsf_update3): Use Pmode. Fix argument to
20538 avoiding_indexed_address_p.
20539 (*movsf_update4): Ditto.
20540 (allocate_stack): Simplify condition. Adjust pattern names.
20542 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20545 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20546 whitespace at the start of target attribute string.
20548 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20551 * config/rs6000/power9.md: Add store forwarding bypass.
20553 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20556 * valtrack.c (dead_debug_insert_temp): Reset debug references
20557 to the return value of a call being removed.
20559 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20561 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20562 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20563 implement target hook.
20564 (arc_memory_move_cost): New function.
20565 (TARGET_REGISTER_MOVE_COST): Define.
20566 (TARGET_MEMORY_MOVE_COST): Likewise.
20567 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20568 (MEMORY_MOVE_COST): Likewise.
20570 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20572 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20573 (sibcall_value_insn): Likewise.
20574 * config/arc/constraints.md (Rs5): Remove.
20576 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20578 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20579 for last two fake registers.
20580 (arc_conditional_register_usage): Make sure fake frame and arg
20581 pointer regs are in general regs class.
20582 (FRAME_POINTER_MASK): Remove.
20583 (RETURN_ADDR_MASK): Remove.
20584 (arc_must_save_register): Use hard frame regnum.
20585 (frame_restore_reg): Use hard_frame_pointer_rtx.
20586 (arc_save_callee_saves): Likewise.
20587 (arc_restore_callee_saves): Likewise.
20588 (arc_save_callee_enter): Likewise.
20589 (arc_restore_callee_leave): Likewise.
20590 (arc_save_callee_milli): Likewise.
20591 (arc_eh_return_address_location): Likewise.
20592 (arc_check_multi): Use hard frame regnum.
20593 (arc_can_eliminate): Likewise.
20594 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20595 for register allocator.
20596 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20597 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20598 (FRAME_POINTER_REGNUM): Change it to a fake register.
20599 (HARD_FRAME_POINTER_REGNUM): Defined.
20600 (ARG_POINTER_REGNUM): Change it to a new fake register.
20601 (ELIMINABLE_REGS): Update.
20602 (REGISTER_NAMES): Update names.
20603 * config/arc/arc.md (LP_START): Remove.
20604 (LP_END): Likewise.
20605 (shift_si3_loop): Update pattern.
20607 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20609 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20610 to avoid delay slot scheduling.
20611 (arc_must_save_register): Don't save SP.
20612 * config/arc/arc.md (stack_tie): Remove.
20613 (UNSPEC_ARC_STKTIE): Likewise.
20615 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20616 Shiva Chen <shiva0217@gmail.com>
20618 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20619 code gen with large shift amount.
20621 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20623 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20626 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20629 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20630 print -m64/-mx32/-m32 if it is true.
20631 (ix86_debug_options, ix86_function_specific_print): Pass true as
20632 ADD_ABI_P to ix86_target_string.
20633 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20634 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20635 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20637 PR rtl-optimization/90082
20638 * dce.c (can_delete_call): New function.
20639 (deletable_insn_p, mark_insn): Use it.
20641 PR tree-optimization/90090
20642 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20644 (is_division_by_square): Likewise. Formatting fix.
20646 2019-04-16 Richard Biener <rguenther@suse.de>
20648 PR tree-optimization/56049
20649 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20650 equality check if alias-set zero will prevail.
20652 2019-04-15 Jeff Law <law@redhat.com>
20654 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20655 size and alignment as unsigned.
20657 2019-04-15 Richard Biener <rguenther@suse.de>
20660 * tree-loop-distribution.c (destroy_loop): Preserve correct
20663 2019-04-15 Richard Biener <rguenther@suse.de>
20665 PR tree-optimization/90071
20666 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20667 abnormal operands from def stmts.
20669 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20671 PR rtl-optimization/89794
20672 * combine.c (count_auto_inc): New function.
20673 (try_combine): Count how many auto_inc expressions there were in the
20674 original instructions. Ensure we have the same number in the new
20675 instructions. Remove the code that tried to ensure auto_inc side
20676 effects on i1 and i0 are not lost.
20678 2019-04-15 Richard Biener <rguenther@suse.de>
20681 * tree.h (auto_var_p): Declare.
20682 * tree.c (auto_var_p): New function, split out from ...
20683 (auto_var_in_fn_p): ... here.
20684 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20686 (new_var_info): Initialize it.
20687 (set_uids_in_ptset): Also set the shadow variable uid if required.
20688 (ipa_pta_execute): Postprocess points-to solutions assigning
20689 shadow variable uids for locals that may reach their containing
20690 function recursively.
20691 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20692 assert but instead check whether the points-to solution is
20695 2019-04-15 Martin Jambor <mjambor@suse.cz>
20698 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20701 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20703 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20705 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20706 Kito Cheng <kito.cheng@gmail.com>
20707 Shiva Chen <shiva0217@gmail.com>
20709 * config/nds32/nds32-md-auxiliary.c
20710 (nds32_legitimize_pic_address): Use new PIC pattern.
20711 (nds32_legitimize_tls_address): Use new TLS pattern.
20712 (nds32_output_symrel): New.
20713 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20714 (nds32_alloc_relax_group_id): Ditto.
20715 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20716 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20718 (nds32_group_tls_insn): Ditto.
20719 (nds32_group_float_insns): Ditto.
20720 * config/nds32/nds32.md (tls_le): New.
20723 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20725 * configure: Add nds32 target for dwarf2 debug_line checking.
20726 * configure.ac: Regenerated.
20728 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20731 * ipa-devirt.c (skip_in_fields_list_p): New.
20732 (odr_types_equivalent_p): Use it.
20734 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20737 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20738 instead of strncmp when checking for thumb and arm. Formatting fixes.
20740 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20742 * doc/install.texi: Document --with-target-system-zlib.
20744 2019-04-12 Martin Sebor <msebor@redhat.com>
20750 * targhooks.c (default_vector_alignment): Avoid assuming
20751 argument fits in SHWI.
20752 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20753 a shift expression.
20754 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20756 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20758 PR rtl-optimization/89965
20759 * dce.c: Include rtl-iter.h.
20760 (struct check_argument_load_data): New type.
20761 (check_argument_load): New function.
20762 (find_call_stack_args): Check for loads from stack slots still tracked
20763 in sp_bytes and punt if any is found.
20765 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20767 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20769 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20770 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20772 2019-04-12 Martin Liska <mliska@suse.cz>
20774 PR middle-end/89970
20775 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20777 (separate_attrs): Handle multiple 'default's.
20778 (expand_target_clones): Rework error handling code.
20780 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20783 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20784 mode of vector rather than mode of destination for move instruction.
20785 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20786 Use QI inner mode with V16QI vector mode.
20788 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20791 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20792 "invalid %%t operand" in output_operand_lossage message.
20794 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20796 * config/s390/predicates.md (permute_pattern_operand): New
20798 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20799 operand for the permute pattern.
20800 ("*vec_perm<mode>"): New insn definition.
20801 ("bswap<mode>"): Generate the permute pattern operand in the
20802 expander and perform the operand reloads for pre arch13 level
20804 ("*bswap<mode>_emu"): Rename to ...
20805 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20806 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20807 Add the USE operand for the permute pattern.
20808 ("*vec_set_bswap_vec<mode>"): Likewise.
20810 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20813 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20814 and gcc_unreachable if it fails, just call tree_to_uhwi which
20815 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20816 Start warning message with a lower-case letter. Formatting fixes.
20818 PR rtl-optimization/90026
20819 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20820 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20821 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20822 in cfglayout mode, use emit_barrier_after_bb.
20824 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20826 PR rtl-optimization/87763
20827 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20830 2019-04-11 Tom de Vries <tdevries@suse.de>
20832 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20833 max macro using statement expression.
20835 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20837 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20838 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20839 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20840 read_only_private_data_section using xcoff_private_rodata_section_name.
20841 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20843 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20846 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20848 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20850 PR rtl-optimization/89965
20851 * dce.c (sp_based_mem_offset): New function.
20852 (find_call_stack_args): Use sp_based_mem_offset.
20854 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20856 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20858 2019-04-11 Richard Biener <rguenther@suse.de>
20860 PR tree-optimization/90020
20861 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20862 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20863 * tree-ssa-pre.c (compute_avail): Use it to not put
20864 possibly trapping references after a call that might not
20865 return into EXP_GEN.
20866 * gcse.c (compute_hash_table_work): Do not elide
20867 marking a block containing a call if the call might not
20870 2019-04-11 Richard Biener <rguenther@suse.de>
20872 PR tree-optimization/90018
20873 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20874 Test both SLP and interleaving variants.
20876 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20878 * config/s390/8561.md: New file.
20879 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20880 Add arch13 cpu model.
20881 * config/s390/s390-opts.h (enum processor_type): Likewise.
20882 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20883 (s390_get_unit_mask): Likewise.
20884 (s390_is_fpd): Likewise.
20885 (s390_is_fxd): Likewise.
20886 * config/s390/s390.h (s390_tune_attr): Likewise.
20887 * config/s390/s390.md: Include arch13 pipeline description.
20888 * config/s390/s390.opt: Add arch13.
20890 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20892 PR rtl-optimization/87763
20893 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20895 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20897 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20899 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20900 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20901 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20902 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20904 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20906 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20907 "Although" in -fipa-icf documentation.
20909 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20910 of using multiple -g options.
20912 2019-04-10 Martin Liska <mliska@suse.cz>
20914 PR gcov-profile/89959
20915 * doc/gcov.texi: Make documentation of -x option
20918 2019-04-10 Richard Biener <rguenther@suse.de>
20920 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20922 (DR_GROUP_SAME_DR_STMT): Remove.
20923 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20924 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20925 replace with assert.
20926 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20927 (vect_record_grouped_load_vectors): Remove unreachable code.
20929 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20932 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20933 obsolete reference to N.
20935 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20937 PR middle-end/90025
20938 * expr.c (store_expr): Set properly size on the MEM passed to
20942 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20943 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20944 translation is needed, and when translation is needed, only append
20945 ... if the string length is hostsz or more bytes long. Avoid using
20948 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20951 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20952 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20954 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20955 differences directly.
20956 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20958 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20960 PR translation/90011
20961 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20963 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20965 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20966 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20967 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20968 trailing space from -gsplit-dwarf diagnostics.
20970 PR tree-optimization/89998
20971 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20972 instead of integer_type_node if possible, don't add ranges if return
20973 type is not compatible with int.
20974 * gimple-fold.c (gimple_fold_builtin_sprintf,
20975 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20978 2019-04-09 Martin Liska <mliska@suse.cz>
20980 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20981 * doc/install.texi: Document the new config.
20983 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20985 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20986 use gimple_expr_type for load and store calls. Skip over the
20987 condition argument in a conditional internal function.
20988 Protect use of TREE_INT_CST_LOW.
20990 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20993 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20994 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20995 trailing period from it too.
20997 2019-04-08 wu yuan <wuyuan5@huawei.com>
20999 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
21000 * config/aarch64/aarch64.md : Add "tsv110.md"
21001 * config/aarch64/tsv110.md: New file.
21003 2019-04-08 Richard Biener <rguenther@suse.de>
21005 PR tree-optimization/90006
21006 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
21009 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
21012 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
21014 (fma_root_node): Likewise.
21015 (func_fma_steering): Likewise.
21017 2019-04-08 Jakub Jelinek <jakub@redhat.com>
21019 PR rtl-optimization/89865
21020 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
21022 PR rtl-optimization/89865
21023 * config/i386/i386.md
21024 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
21025 numbers not to clash with the additional operands[4].
21026 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
21027 with extra register copy in the middle.
21029 2019-04-08 Martin Liska <mliska@suse.cz>
21031 PR gcov-profile/89961
21032 * doc/gcov.texi: Document data_file.
21033 * gcov.c (generate_results): Add data_info into JSON output.
21035 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
21037 PR tree-optimization/89725
21038 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
21039 loop's chrec as invariant symbol.
21040 * tree-chrec.h (chrec_contains_symbols): New parameter.
21041 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
21042 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
21043 function of loops not in DDR's loop_nest.
21044 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
21046 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
21049 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
21052 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
21055 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
21056 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
21058 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
21060 * sched-deps.c (sched_macro_fuse_insns): Check return value of
21061 targetm.fixed_condition_code_regs.
21063 2019-04-05 Richard Biener <rguenther@suse.de>
21067 * tree-cfgcleanup.c (remove_forwarder_block): Always move
21068 debug bind stmts but reset them if they are not valid at the
21071 2019-04-05 Martin Liska <mliska@suse.cz>
21073 PR translation/89936
21074 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
21075 order to wrap keywords or arguments.
21076 * collect2.c (main): Likewise.
21077 (scan_prog_file): Likewise.
21078 (scan_libraries): Likewise.
21079 * common/config/riscv/riscv-common.c
21080 (riscv_subset_list::parsing_subset_version): Likewise.
21081 (riscv_subset_list::parse_std_ext): Likewise.
21082 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21084 * config/arm/arm.c (arm_option_override): Likewise.
21085 * config/cris/cris.c (cris_print_operand): Likewise.
21086 * config/darwin-c.c (darwin_pragma_options): Likewise.
21087 (darwin_pragma_unused): Likewise.
21088 (darwin_pragma_ms_struct): Likewise.
21089 * config/ft32/ft32.c (ft32_print_operand): Likewise.
21090 * config/i386/i386.c (print_reg): Likewise.
21091 (ix86_print_operand): Likewise.
21092 * config/i386/xm-djgpp.h: Likewise.
21093 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
21094 * config/m32c/m32c.c (m32c_option_override): Likewise.
21095 * config/msp430/msp430.c (msp430_option_override): Likewise.
21096 * config/nds32/nds32.c (nds32_option_override): Likewise.
21097 * config/nvptx/mkoffload.c (main): Likewise.
21098 * config/rx/rx.c (rx_print_operand): Likewise.
21099 (valid_psw_flag): Likewise.
21100 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
21101 (vms_pragma_nomember_alignment): Likewise.
21102 (vms_pragma_extern_model): Likewise.
21103 * lto-wrapper.c (compile_offload_image): Likewise.
21104 * omp-offload.c (oacc_parse_default_dims): Likewise.
21105 * symtab.c (symtab_node::verify_base): Likewise.
21106 * tlink.c (recompile_files): Likewise.
21107 (start_tweaking): Likewise.
21108 * tree-profile.c (parse_profile_filter): Likewise.
21110 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
21112 PR tree-optimization/89956
21113 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
21114 multiple negates of the same value.
21116 2019-04-04 Martin Sebor <msebor@redhat.com>
21118 PR middle-end/89957
21119 PR middle-end/89911
21120 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
21121 have the same precision since the function crashes otherwise.
21122 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
21123 has non-zero arguments.
21125 2019-04-04 Martin Sebor <msebor@redhat.com>
21127 PR middle-end/89934
21128 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
21129 out if the number of arguments is less than expected.
21131 2019-04-04 Jeff Law <law@redhat.com>
21133 PR rtl-optimization/89399
21134 * ree.c (combine_set_extension): Use single_set rather than
21135 digging into PATTERN for items on the candidate list.
21136 (combine_reaching_defs): Likewise.
21138 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
21140 PR rtl-optimization/46590
21141 * loop-invariant.c (find_defs): Move df_remove_problem and
21142 df_process_deferred_rescans to move_invariants.
21143 Move df_live_add_problem and df_live_set_all_dirty calls
21144 to move_invariants.
21145 (move_invariants): Likewise.
21146 (move_loop_invariants): Likewise, making the df_live calls
21147 conditional on -O. Remove the problem again if we added it
21150 2019-04-03 qing zhao <qing.zhao@oracle.com>
21152 PR tree-optimization/89730
21153 * ipa-inline.c (can_inline_edge_p): Delete the checking for
21154 -flive-patching=inline-only-static.
21155 (can_inline_edge_by_limits_p): Add the checking for
21156 -flive-patching=inline-only-static and grant always_inline
21157 even when -flive-patching=inline-only-static is specified.
21159 2019-04-03 Jeff Law <law@redhat.com>
21161 PR rtl-optimization/81025
21162 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
21164 2019-04-03 Richard Biener <rguenther@suse.de>
21166 PR tree-optimization/84101
21167 * tree-vect-stmts.c: Include explow.h for hard_function_value,
21168 regs.h for hard_regno_nregs.
21169 (cfun_returns): New helper.
21170 (vect_model_store_cost): When vectorizing a store to a decl
21171 we return and the function ABI returns in a multi-reg location
21172 account for the possible spilling that will happen.
21174 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
21176 * config/s390/s390.c (s390_legitimate_address_p): Reject long
21177 displacement addresses for vector mode operands.
21179 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
21181 * config/arc/arc.c (GMASK_LEN): Define.
21182 (arc_restore_callee_saves): Restore first blink when
21185 2019-04-03 Sudakshina Das <sudi.das@arm.com>
21187 * doc/extend.texi: Add deprecated comment on sign-return-address
21188 function attribute and add mbranch-protection.
21189 * doc/invoke.texi: Add bti to the options for mbranch-protection.
21191 2019-04-03 Richard Biener <rguenther@suse.de>
21194 * lto-wrapper.c (run_gcc): Avoid implicit rules making
21195 the all target phony.
21197 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
21201 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
21202 Return false for variable DImode shifts.
21203 (dimode_scalar_chain::compute_convert_gain): Do not handle
21204 register count operand in variable DImode shifts.
21205 (dimode_scalar_chain::make_vector_copies): Remove support to copy
21206 count argument of a variable shift instruction to a vector register.
21207 (dimode_scalar_chain::convert_reg): Remove support to convert
21208 count argument of a variable shift instruction.
21210 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21212 PR rtl-optimization/84206
21213 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
21214 iterating over loop headers.
21216 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21218 PR rtl-optimization/85876
21219 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
21220 beyond the original fence.
21222 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
21224 * config.gcc: Mark spu* targets as deprecated/obsolete.
21226 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21228 * config/s390/s390-builtin-types.def: New builtin function type
21229 definitions. Remove unused types.
21230 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
21231 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
21232 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
21233 overloaded builtins.
21234 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
21235 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
21236 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
21237 (vec_double, vec_signed, vec_unsigned): Define to use the new
21238 overloaded builtins.
21239 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
21242 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21244 * config/s390/s390-builtin-types.def: New builtin function type
21246 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
21247 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
21248 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
21249 (s390_vstrszh, s390_vstrszf): New low-level builtins.
21250 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
21251 constant definitions.
21252 * config/s390/vecintrin.h (vec_search_string_cc)
21253 (vec_search_string_until_zero_cc): New builtin name definitions.
21254 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
21256 ("vec_vstrs<mode>"): New insn definition.
21258 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21260 * config/s390/s390-builtin-types.def: Add new builtin function
21262 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
21263 New overloaded builtins.
21264 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
21266 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
21267 (UNSPEC_VEC_SLDBYTE): ... this.
21268 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
21269 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
21271 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
21272 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
21273 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
21275 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21277 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
21278 New insn definition.
21279 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
21280 * config/s390/vector.md (V_HW_HSD): ... here.
21282 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21284 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
21285 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
21286 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
21287 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
21288 New insn definitions.
21290 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21292 * config/s390/s390-builtin-types.def: Add new builtin function type.
21293 * config/s390/s390-builtins.def: Add overloaded builtin
21294 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
21295 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
21296 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
21297 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
21298 ("eltswap<mode>"): New expander.
21299 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
21302 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21304 * config/s390/s390-builtin-types.def: Add new builtin function types.
21305 * config/s390/s390-builtins.def: Add overloaded builtin
21306 s390_vec_revb. Add low-level builtins for vlbr and vstbr
21308 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
21309 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
21310 ("bswap<mode>"): New expander.
21311 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
21313 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21315 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
21316 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
21317 vector builtin version number in __VEC__.
21319 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21321 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
21323 (SFSI): New mode attribute.
21324 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
21325 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
21327 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
21328 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
21329 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
21330 ("floatsi<mode>2"): Add wcefb instruction.
21332 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21334 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
21335 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
21337 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
21338 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
21339 support 32 bit fp-int conversions. Rename to ...
21340 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21341 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21342 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
21343 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
21346 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21348 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
21349 if-then-else constructs if we can use the select instruction.
21350 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
21352 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21354 * config/s390/s390.md ("*popcountdi_arch13_cc")
21355 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
21357 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21358 Append _z196 to make it ...
21359 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21360 ("popcounthi2_z196"): ... this.
21361 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21362 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21364 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21366 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21367 certain compares for arch13 in order to make use of the condition
21368 code result produced by the new instructions.
21369 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21370 nxrk, and nxgrk instruction patterns.
21371 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21372 (inv_no): Add new code iterator together with some attributes.
21373 ("*andc_split_<mode>"): Disable splitter for arch13.
21374 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21375 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21376 ("*<ANDOR:bitops_name>c<GPR:mode>")
21377 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21378 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21379 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21380 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21382 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21384 * common/config/s390/s390-common.c (processor_flags_table): New
21386 * config.gcc: Support arch13 with the --with-arch= configure flag.
21387 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21388 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21389 * config/s390/s390.c (s390_get_sched_attrmask)
21390 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21391 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21392 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21393 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21394 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21396 * config/s390/s390.opt: Support arch13 as processor type in
21397 command line options.
21399 2019-04-02 Martin Liska <mliska@suse.cz>
21401 PR translation/89912
21402 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21403 Fix param description of graphite-max-arrays-per-scop.
21405 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21407 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21408 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21409 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21411 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21413 PR rtl-optimization/85412
21414 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21415 sel_sched_region_1, not after.
21417 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21419 PR rtl-optimization/86928
21420 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21421 compute_live if necessary.
21422 (sel_redirect_edge_and_branch): Likewise.
21424 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21426 PR rtl-optimization/89865
21427 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21428 register if it is a part of small class.
21430 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21432 PR rtl-optimization/87273
21433 * sel-sched-ir.c (merge_fences): Remove assert.
21435 2019-04-01 Richard Biener <rguenther@suse.de>
21437 PR tree-optimization/46590
21438 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21439 (dom_walker::m_reachability): Add in place of...
21440 (dom_walker::m_skip_unreachable_blocks): ...this.
21441 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21442 Move complex initialization ...
21443 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21444 lazily and initialize edge flags on each invocation.
21445 (dom_walker::bb_reachable): Use m_reachability.
21447 2019-04-01 Martin Liska <mliska@suse.cz>
21450 * opt-suggestions.c (option_proposer::build_option_suggestions):
21451 Add variant without any argument in order to provide better
21454 2019-04-01 Richard Biener <rguenther@suse.de>
21457 * gimple.c: Include langhooks.h.
21458 (gimple_get_alias_set): Treat enumeral types as the underlying
21461 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21462 Eric Botcazou <ebotcazou@adacore.com>
21464 PR rtl-optimization/89862
21465 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21466 that operates on the full registers for WORD_REGISTER_OPERATIONS
21469 2019-03-29 Jim Wilson <jimw@sifive.com>
21471 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21472 Clear MASK_RVC and then set if C subset supported.
21474 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21477 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21478 non-addressable complit into its initializer if it is volatile.
21480 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21482 * opts-common.c (integral_argument): Set errno properly in one case.
21484 2019-03-29 Martin Liska <mliska@suse.cz>
21486 * doc/invoke.texi: Remove -Wchkp from documentation.
21488 2019-03-29 Martin Liska <mliska@suse.cz>
21490 * dbgcnt.c (print_limit_reach): New function.
21493 2019-03-29 Martin Liska <mliska@suse.cz>
21495 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21496 (dbg_cnt_process_opt): Parse first tokens aas
21497 dbg_cnt_process_single_pair is also using strtok.
21499 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21501 PR rtl-optimization/87485
21502 * function.c (expand_function_end): Move stack_protect_epilogue
21503 before loading of return value into hard register(s).
21505 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21507 PR middle-end/89621
21508 * tree-inline.h (struct copy_body_data): Add
21509 dont_remap_vla_if_no_change flag.
21510 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21511 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21512 and remap_type_2 returns false.
21513 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21514 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21515 only from where it is copied to nested contexts.
21517 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21520 * config/i386/i386.md (RMW operation with LEA peephole):
21521 Use LEAMODE mode attribute instead of SWI mode iterator for
21524 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21527 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21528 Also process XEXP (src, 0) of a shift insn.
21530 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21532 PR middle-end/89725
21533 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21534 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21536 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21538 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21540 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21541 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21542 immediately after first one with df_analyze in between, but rather
21543 process all bbs, queueing ones that need second pass in a worklist,
21544 df_analyze, process queued debug insn changes and if second pass is
21545 needed, process bbs from worklist, df_analyze, process queued debug
21548 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21549 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21550 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21552 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21555 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21558 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21561 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21562 function for 32-bit MS_ABI.
21563 (function_value_ms_32): New function.
21565 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21567 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21568 (movdi): Call gen_movdi_symbol_save_scc.
21569 (gen_movdi_symbol_save_scc): New insn and split.
21571 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21573 PR rtl-optimization/89313
21574 * function.c (matching_constraint_num): New static function.
21575 (match_asm_constraints_1): Use it. Fixup white space and comment.
21576 Don't replace inputs with non-matching constraints which conflict
21577 with early clobber outputs.
21579 2019-03-27 Jeff Law <law@redhat.com>
21581 PR rtl-optimization/87761
21582 PR rtl-optimization/89826
21583 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21585 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21586 note problem to get REG_DEAD/REG_UNUSED notes updated.
21588 2019-03-27 Richard Biener <rguenther@suse.de>
21590 PR tree-optimization/89463
21591 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21592 queue edges to remove.
21593 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21594 dead stmts. Delay edge removal until PHIs are removed to
21595 make debug-stmt creation not confused by seemingly degenerate
21598 2019-03-27 Alan Modra <amodra@gmail.com>
21600 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21602 * config/rs6000/darwin.h: Likewise.
21603 * config/rs6000/rs6000.c: Likewise.
21605 2019-03-27 Alan Modra <amodra@gmail.com>
21607 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21608 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21610 2019-03-26 Andrew Waterman <andrew@sifive.com>
21611 Jim Wilson <jimw@sifive.com>
21613 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21614 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21615 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21616 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21617 (generic_alu): Add auipc to type list.
21618 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21619 (riscv_microarchitecture): Declare.
21620 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21621 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21623 (riscv_microarchitecture): New.
21624 (sifive_7_tune_info): New.
21625 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21626 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21628 (riscv_store_data_bypass_p): New.
21629 (riscv_option_override): Set riscv_microarchitecture from
21630 cpu->microarchitecture.
21631 * config/riscv/riscv.md: Include sifive-7.md.
21634 (auipc<mode>): Change type to auipc.
21635 (restore_stack_nonlocal): New.
21636 * config/riscv/sifive-7.md: New.
21637 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21639 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21642 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21643 Also process XEXP (src, 0) of a shift insn.
21645 2019-03-26 Richard Biener <rguenther@suse.de>
21647 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21648 (copy_debug_stmt): Likewise.
21649 (expand_call_inline): Likewise.
21650 (copy_bb): Avoid redundant lookup & set of gimple_block.
21651 * gimple-low.c (lower_gimple_return): Likewise.
21652 (lower_builtin_setjmp): Likewise.
21654 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21656 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21657 is constant 0, turn into static const data member initialized to false.
21658 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21659 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21661 2019-03-26 Jason Merrill <jason@redhat.com>
21662 Jakub Jelinek <jakub@redhat.com>
21664 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21666 (mem_alloc_description::release_object_overhead): Fix comment typos.
21667 * hash-table.h (hash_table::~hash_table): Call
21668 release_instance_overhead only if m_entries is non-NULL, otherwise
21669 call unregister_descriptor.
21671 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21673 PR tree-optimization/81740
21674 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21675 In case of outer loop vectorization, check for backward dependence
21676 at the inner loop if outer loop dependence is reversed.
21678 2019-03-26 Alan Modra <amodra@gmail.com>
21680 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21681 rs6000_vector_mem init. Correct wI and wJ comment.
21683 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21685 PR rtl-optimization/88347
21686 PR rtl-optimization/88423
21687 * sched-deps.c (sched_analyze_insn): Take into account that for
21688 tablejumps the barrier appears after a label and a jump_table_data.
21690 2019-03-25 Martin Sebor <msebor@redhat.com>
21693 * c-common.c (check_user_alignment): Rename local. Correct maximum
21694 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21695 convert it to UHWI when it fits.
21697 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21700 * dwarf2out.c (premark_used_variables): New function.
21701 (prune_unused_types_walk): Do not mark not premarked external
21703 (prune_unused_types): Call premark_used_variables.
21705 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21707 PR rtl-optimization/89676
21708 * lra-constraints.c (curr_insn_transform): Do match reload for
21709 early clobbers when the match was successful only for different
21712 2019-03-25 Martin Sebor <msebor@redhat.com>
21714 * doc/extend.texi (Common Type Attributes): Document vector_size.
21715 (Common Variable Attributes): Mention size constraint. Correct
21717 (Vector Extensions): Use @dfn when defining bas type. Clarify
21718 base type and size constraints.
21720 2019-03-25 Richard Biener <rguenther@suse.de>
21722 PR tree-optimization/89789
21723 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21724 changes from non-undefined back to undefined.
21726 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21728 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21729 heap string and a gc string, but since this variable is unknown to
21730 ggc the gc string might get reused and corrupted. Fixed by always
21731 using a heap string.
21733 2019-03-25 Richard Biener <rguenther@suse.de>
21735 PR tree-optimization/89779
21736 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21737 to remove IV defs, delay actual removal.
21738 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21739 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21740 very end, properly also reset loop control IV information.
21742 2019-03-25 Richard Biener <rguenther@suse.de>
21744 PR tree-optimization/89802
21745 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21746 move EH data to folded stmt.
21748 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21750 * config/s390/s390-builtin-types.def: Remove few unused types and
21751 fix sort order for others.
21753 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21755 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21756 expected and found types with -mdebug during builtin matching.
21758 2019-03-25 Richard Biener <rguenther@suse.de>
21760 PR middle-end/89790
21761 * fold-const.c (operand_equal_p): Revert last change with
21764 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21766 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21767 notes for the result of the __tls_get_addr calls.
21768 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21770 2019-03-24 Jeff Law <law@redhat.com>
21772 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21774 PR rtl-optimization/87761
21775 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21776 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21778 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21779 rescans. Reprocess blocks as needed, calling df_analyze before
21780 reprocessing. Always call df_analyze before fixing up debug bind
21783 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21785 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21788 2019-03-22 Andrew Pinski <apinski@marvell.com>
21790 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21791 attrribute for uxtw.
21793 2019-03-26 Jeff Law <law@redhat.com>
21795 PR rtl-optimization/87761
21796 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21797 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21798 (mips_split_move): Accept new INSN argument. Try to forward SRC
21799 into the next instruction.
21800 (mips_split_move_insn): Pass INSN through to mips_split_move.
21802 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21804 PR rtl-optimization/89676
21805 * lra-constraints.c (curr_insn_transform): Do match reload for
21806 early clobbers even if the match was successful.
21808 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21811 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21813 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21815 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21817 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21819 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21820 <avx512>_fmsub_<mode>_mask3<round_name>,
21821 <avx512>_fnmadd_<mode>_mask3<round_name>,
21822 <avx512>_fnmsub_<mode>_mask3<round_name>,
21823 avx512f_vmfmadd_<mode>_mask3<round_name>,
21824 avx512f_vmfmsub_<mode>_mask3<round_name>,
21825 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21826 instead of register_operand and %v instead of v for match_operand 1.
21827 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21828 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21829 <round_nimm_predicate> instead of register_operand and %v instead of v
21830 for match_operand 1.
21832 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21833 <avx512>_fmadd_<mode>_mask3<round_name>,
21834 <avx512>_fmsub_<mode>_mask<round_name>,
21835 <avx512>_fmsub_<mode>_mask3<round_name>,
21836 <avx512>_fnmadd_<mode>_mask<round_name>,
21837 <avx512>_fnmadd_<mode>_mask3<round_name>,
21838 <avx512>_fnmsub_<mode>_mask<round_name>,
21839 <avx512>_fnmsub_<mode>_mask3<round_name>,
21840 <avx512>_fmaddsub_<mode>_mask<round_name>,
21841 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21842 <avx512>_fmsubadd_<mode>_mask<round_name>,
21843 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21844 <round_nimm_predicate> instead of nonimmediate_operand.
21845 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21846 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21847 Use register_operand instead of <round_nimm_predicate> for the
21848 operand that needs to match output.
21849 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21850 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21851 Likewise. Formatting fixes.
21854 * config/i386/i386.c (enum ix86_builtins): Remove
21855 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21856 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21857 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21858 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21859 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21860 __builtin_ia32_vfmsubss3_mask3): New builtins.
21861 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21862 avx512f_vmfmadd_<mode>_mask3<round_name>,
21863 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21864 *avx512f_vmfmsub_<mode>_mask<round_name>,
21865 avx512f_vmfmsub_<mode>_mask3<round_name>,
21866 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21867 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21868 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21869 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21870 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21871 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21872 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21873 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21874 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21875 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21876 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21877 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21878 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21879 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21880 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21881 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21882 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21883 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21884 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21885 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21886 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21887 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21888 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21889 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21890 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21891 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21892 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21893 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21895 2019-03-21 Martin Sebor <msebor@redhat.com>
21897 PR tree-optimization/89350
21898 * builtins.c (compute_objsize): Also ignore offsets whose upper
21900 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21901 (builtin_memref::builtin_memref): Initialize new member.
21902 Allow EXPR to be null.
21903 (builtin_memref::extend_offset_range): Replace local with a member.
21904 Avoid assuming pointer offsets are unsigned.
21905 (builtin_memref::set_base_and_offset): Determine base object
21906 before computing offset range.
21907 (builtin_access::builtin_access): Handle memset.
21908 (builtin_access::generic_overlap): Replace local with a member.
21909 (builtin_access::strcat_overlap): Same.
21910 (builtin_access::overlap): Same.
21911 (maybe_diag_overlap): Same.
21912 (maybe_diag_access_bounds): Same.
21913 (wrestrict_dom_walker::check_call): Handle memset.
21914 (check_bounds_or_overlap): Same.
21916 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21917 Jakub Jelinek <jakub@redhat.com>
21920 * tree.c (fld_type_variant, fld_incomplete_type_of,
21921 fld_process_array_type): Call fld->pset.add and don't call
21922 add_tree_to_fld_list if it returns true.
21923 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21924 non-marked types from TYPE_NEXT_VARIANT list.
21925 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21927 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21929 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21930 to false, if true, don't alloc_entries during construction, but defer
21931 it to the first method that needs m_entries allocated.
21932 (hash_table::hash_table, hash_table::~hash_table,
21933 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21934 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21935 hash_table::clear_slot, hash_table::traverse_noresize,
21936 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21937 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21939 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21940 NO_INSERT instead of find_with_hash.
21941 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21942 hash_set::m_table): Add Lazy to template params of hash_table.
21943 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21944 * attribs.c (test_attribute_exclusions): Likewise.
21945 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21946 hash_set. Add tests for hash_set with Lazy = true.
21948 2019-03-21 Richard Biener <rguenther@suse.de>
21950 PR tree-optimization/89779
21951 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21952 checks with respect to released SSA names now having error_mark_node
21954 * fold-const.c (operand_equal_p): Likewise.
21956 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21959 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21961 (s390_optimize_register_info): Use global_not_special_regno_p to
21962 check for global regs.
21964 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21967 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21968 update this_alternative nor this_alternative_set.
21970 2019-03-19 Jim Wilson <jimw@sifive.com>
21973 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21974 align, size, offset. Use them to handle a BLKmode reference. Update
21976 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21978 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21980 PR rtl-optimization/89768
21981 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21982 instead of GEN_INT.
21983 (unroll_loop_runtime_iterations): Likewise.
21985 2019-03-19 Martin Sebor <msebor@redhat.com>
21987 PR tree-optimization/89644
21988 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21989 rather than endptr as an indicator of nul-termination.
21991 PR tree-optimization/89644
21992 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21993 arrays in determining sequence sizes in strncpy and stpncpy.
21995 2019-03-19 Martin Liska <mliska@suse.cz>
21997 PR middle-end/89737
21998 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21999 unlikely_edges if there's an edge that belongs to both these sets.
22001 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
22004 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
22005 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
22006 go via a stack temporary.
22008 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22011 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
22012 instead of gen_rtx_SUBREG.
22013 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
22015 2019-03-19 Richard Biener <rguenther@suse.de>
22018 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
22020 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
22024 * tree.c (free_lang_data_in_decl): Do not free context of C++
22027 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22030 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
22031 subs for the first alternative except when operands[3] is 1.
22034 * gimplify.c (gimplify_asm_expr): For output argument with
22035 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
22038 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
22040 PR rtl-optimization/89753
22041 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22042 explicit unrolling factor even more robust.
22044 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22047 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
22048 compensation use x2 += 1 instead of x2 -= -1 and when honoring
22049 signed zeros, do another copysign after the compensation.
22051 2019-03-18 Martin Sebor <msebor@redhat.com>
22053 PR tree-optimization/89720
22054 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
22055 more conservatively, the same as anti-range.
22057 2019-03-18 Richard Biener <rguenther@suse.de>
22059 PR middle-end/88945
22060 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
22061 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
22062 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
22063 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
22065 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
22067 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
22068 Extend queue to 1024 entries.
22069 Add "consumed" field.
22070 (gomp_print_output): Remove print_index parameter.
22071 Add final parameter.
22072 Change limit to unsigned.
22073 Use consumed field to implement circular buffer.
22074 Detect interrupted print in final pass.
22075 Flush output at the end.
22076 (run): Update gomp_print_output usage.
22077 (main): Initialize kernargs->output_data.consumed.
22079 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
22081 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
22082 calculation of the minimum number of scalar iterations for
22083 fully-predicated loops.
22085 2019-03-18 Martin Jambor <mjambor@suse.cz>
22087 PR tree-optimization/89546
22088 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
22089 any propagation to its children took place.
22091 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
22094 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
22095 parameter, and make use of it.
22096 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
22098 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22100 * config/arc/arc.opt (mcode-density-frame): Get the inital value
22101 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
22102 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22103 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22104 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
22105 match what the ops is doing.
22106 (push_multi_fp_blink): Likewise.
22107 * config/arc/arc.c (arc_override_options): Enable enter/leave when
22108 compiling for size and elf target.
22109 (arc_save_callee_enter): Adjust note to match what enter/leave
22112 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22114 * config/arc/arc.md (tst_movb): Fix constraint.
22116 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22118 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
22120 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22122 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
22123 * config/arc/arc.c (arc_conditional_register_usage): Remove all
22124 reg_alloc_order references.
22125 (size_alloc_order): Define.
22126 (arc_adjust_reg_alloc_order): New function.
22127 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
22129 (ADJUST_REG_ALLOC_ORDER): Define.
22130 (HONOR_REG_ALLOC_ORDER): Likewise.
22132 2019-03-18 Richard Biener <rguenther@suse.de>
22135 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
22136 loads and stores a bit more.
22138 2019-03-18 Richard Biener <rguenther@suse.de>
22141 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
22142 load pessimization to stores as well.
22144 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
22146 PR middle-end/86979
22147 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
22148 successor, use NULL as its av set.
22150 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
22152 PR rtl-optimization/89721
22153 * lra-constraints (invariant_p): Return false if side_effects_p holds.
22155 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
22158 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22159 When handling vec_extract, use modular arithmetic to allow
22160 constant selectors greater than vector length.
22161 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
22162 V1TImode vectors to have constant selector values greater than 0.
22163 Use modular arithmetic to compute vector index.
22164 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
22165 index for in-memory vectors. Correct code generation for
22166 in-register vectors.
22167 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
22170 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
22174 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
22177 2019-03-15 Jakub Jelinek <jakub@redhat.com>
22180 * tree.c (inchash::add_expr): Strip any location wrappers.
22181 * fold-const.c (operand_equal_p): Move stripping of location wrapper
22182 after hash verification.
22185 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
22186 SIGN_EXTEND and ZERO_EXTEND.
22188 2019-03-14 Jason Merrill <jason@redhat.com>
22189 Jakub Jelinek <jakub@redhat.com>
22191 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
22192 than if is_empty (*slot).
22193 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
22194 existing elt and for elt removal.
22195 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
22196 of already removed elt.
22198 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
22201 * config/i386/i386.c (remove_partial_avx_dependency): Handle
22202 REG_EH_REGION note.
22204 2019-03-14 Martin Liska <mliska@suse.cz>
22207 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
22209 2019-03-14 Richard Biener <rguenther@suse.de>
22212 * config/i386/i386.c (make_resolver_func): Properly set
22213 DECL_CONTEXT on the RESULT_DECL.
22214 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
22216 2019-03-14 Richard Biener <rguenther@suse.de>
22218 * gimple-pretty-print.c: Include cfgloop.h.
22219 (dump_gimple_phi): Adjust.
22220 (dump_gimple_bb_header): Dump loop header for GIMPLE.
22221 (pp_cfg_jump): Adjust.
22222 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
22223 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
22224 (lower_phi_internal_fn): Remove.
22225 (verify_gimple_call): Remove IFN_PHI special-casing.
22226 (dump_function_to_file): Dump IL state.
22227 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
22228 done to deal with PHI nodes being present in non-SSA state.
22230 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22233 * multiple_target.c (create_dispatcher_calls): Change
22234 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
22235 In the node->iterate_referring loop, push *ref rather than ref, call
22236 ref->remove_reference () and always pass 0 to iterate_referring.
22238 PR rtl-optimization/89679
22239 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
22240 would contain a paradoxical SUBREG.
22242 2019-03-14 Richard Biener <rguenther@suse.de>
22244 PR tree-optimization/89710
22245 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
22248 2019-03-14 Martin Liska <mliska@suse.cz>
22250 * coverage.c (coverage_begin_function): Stream also
22252 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
22253 documentation about function declaration location.
22254 * gcov-dump.c (tag_function): Print whole range
22255 of function declaration.
22256 * gcov.c (struct function_info): Add end_column field.
22257 (function_info::function_info): Initialize it.
22258 (output_json_intermediate_file): Output {start,end}_column
22260 (read_graph_file): Read end_column.
22262 2019-03-14 Richard Biener <rguenther@suse.de>
22264 PR middle-end/89698
22265 * fold-const.c (operand_equal_p): For INDIRECT_REF check
22266 that the access types are similar.
22268 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22270 PR tree-optimization/89703
22271 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
22272 aren't compatible also with builtin_decl_explicit. Check pure
22273 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
22274 and BUILT_IN_STPNCPY{,_CHK}.
22276 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
22279 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
22280 addr32 prefix to VSIB address for X32.
22281 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
22283 (*avx512pf_gatherpf<mode>df_mask): Likewise.
22284 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
22285 (*avx512pf_scatterpf<mode>df_mask): Likewise.
22286 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
22287 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
22288 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
22289 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
22290 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
22291 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
22292 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
22293 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
22294 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
22295 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
22296 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
22297 (*avx512f_scatterdi<mode>): Likewise.
22299 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
22302 * lra-constraints.c (inherit_in_ebb): Update
22303 potential_reload_hard_regs along with live_hard_regs.
22305 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22308 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
22310 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
22312 2019-03-13 Martin Sebor <msebor@redhat.com>
22314 PR tree-optimization/89662
22315 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
22318 2019-03-13 Richard Biener <rguenther@suse.de>
22320 PR middle-end/89677
22321 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
22322 throw FP expressions at tree-affine.
22324 2019-03-14 Richard Biener <rguenther@suse.de>
22326 * tree-pretty-print.c (dump_generic_node): For -gimple properly
22327 dump negative integer constants using _Literal (type) -num.
22329 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22331 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
22332 nonlocal_value member.
22334 PR middle-end/88588
22335 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
22336 (ipa_simd_modify_function_body): Handle PHIs.
22338 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22340 * config/s390/s390.c (s390_option_override_internal): Use more
22341 aggressive inlining parameters.
22343 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22345 * config/s390/3906.md: New file.
22346 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22347 (LONGRUNNING_THRESHOLD): Remove.
22348 (MAX_SCHED_MIX_SCORE): Decrease.
22349 (MAX_SCHED_MIX_DISTANCE): Decrease.
22350 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
22351 (struct s390_sched_state): New struct to hold scheduling state.
22352 (S390_SCHED_STATE_NORMAL): Remove.
22353 (S390_SCHED_STATE_CRACKED): Remove.
22354 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
22355 (s390_get_sched_attrmask): Use new attribute.
22356 (s390_get_unit_mask): Use new units.
22357 (s390_is_fpd): New function.
22358 (s390_is_fxd): New function.
22359 (s390_is_longrunning): New function.
22360 (s390_sched_score): Use new functions.
22361 (s390_sched_reorder): Likewise.
22362 (s390_sched_variable_issue): Rework and use new functions.
22363 (s390_sched_init): Use new functions.
22364 * config/s390/s390.h (s390_tune_attr): Add z14.
22365 * config/s390/s390.md: Add z14.
22367 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22369 * config/s390/2964.md: Update pipeline description.
22370 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22371 (LONGRUNNING_THRESHOLD): Remove.
22372 (LATENCY_FACTOR): Remove.
22373 (s390_get_unit_mask): Add unit.
22374 (s390_sched_score): Use fxd/fpd.
22375 (s390_sched_variable_issue): Use fxd/fpd.
22377 2019-03-12 Martin Liska <mliska@suse.cz>
22379 * config/i386/i386.c: Reword an error message.
22381 2019-03-12 Martin Jambor <mjambor@suse.cz>
22383 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22384 terminate with newline.
22386 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22389 * config/s390/s390.md (tabort): Use %wd instead of
22390 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22391 letters and periods.
22392 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22393 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22396 PR middle-end/89663
22397 * builtins.c (expand_builtin_int_roundingfn,
22398 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22399 gcc_unreachable if validate_arglist fails.
22401 2019-03-12 Richard Biener <rguenther@suse.de>
22403 PR tree-optimization/89664
22404 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22405 free the occurance tree after the early out.
22407 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22409 PR middle-end/89655
22411 * vr-values.c (vr_values::update_value_range): If
22412 old_vr->varying_p (), don't update it, make new_vr also VARYING
22415 2019-03-11 Martin Liska <mliska@suse.cz>
22417 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22418 Fix double string quoting.
22420 2019-03-11 Martin Liska <mliska@suse.cz>
22422 * collect-utils.c (collect_wait): Wrap apostrophes
22423 in gcc internal format with %'.
22424 * collect2.c (main): Likewise.
22425 (scan_prog_file): Likewise.
22426 (scan_libraries): Likewise.
22427 * config/i386/i386.c (ix86_expand_call): Likewise.
22428 (ix86_handle_interrupt_attribute): Likewise.
22429 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22430 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22431 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22432 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22433 * symtab.c (symtab_node::verify_base): Likewise.
22434 * tree-cfg.c (verify_gimple_label): Likewise.
22435 * tree.c (verify_type_variant): Likewise.
22437 2019-03-11 Martin Liska <mliska@suse.cz>
22439 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22440 in a string format message and fix GNU coding style.
22441 (expand_builtin_set_thread_pointer): Likewise.
22442 * common/config/aarch64/aarch64-common.c
22443 (aarch64_rewrite_selected_cpu): Likewise.
22444 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22445 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22446 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22447 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22448 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22449 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22450 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22451 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22452 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22453 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22455 * common/config/riscv/riscv-common.c
22456 (riscv_subset_list::parsing_subset_version): Likewise.
22457 (riscv_subset_list::parse_std_ext): Likewise.
22458 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22459 (riscv_subset_list::parse): Likewise.
22460 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22461 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22462 (aarch64_override_options_internal): Likewise.
22463 (aarch64_validate_mcpu): Likewise.
22464 (aarch64_validate_march): Likewise.
22465 (aarch64_validate_mtune): Likewise.
22466 (aarch64_override_options): Likewise.
22467 * config/alpha/alpha.c (alpha_option_override): Likewise.
22468 * config/arc/arc.c (arc_init): Likewise.
22469 (parse_mrgf_banked_regs_option): Likewise.
22470 (arc_override_options): Likewise.
22471 (arc_expand_builtin_aligned): Likewise.
22472 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22473 (arm_expand_builtin): Likewise.
22474 * config/arm/arm.c (arm_option_check_internal): Likewise.
22475 (arm_configure_build_target): Likewise.
22476 (arm_option_override): Likewise.
22477 (arm_options_perform_arch_sanity_checks): Likewise.
22478 (arm_handle_cmse_nonsecure_entry): Likewise.
22479 (arm_handle_cmse_nonsecure_call): Likewise.
22480 (arm_tls_referenced_p): Likewise.
22481 (thumb1_expand_prologue): Likewise.
22482 * config/avr/avr.c (avr_option_override): Likewise.
22483 * config/bfin/bfin.c (bfin_option_override): Likewise.
22484 * config/c6x/c6x.c (c6x_option_override): Likewise.
22485 * config/cr16/cr16.c (cr16_override_options): Likewise.
22486 * config/cris/cris.c (cris_option_override): Likewise.
22487 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22488 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22489 * config/darwin.c (darwin_override_options): Likewise.
22490 * config/frv/frv.c (frv_expand_builtin): Likewise.
22491 * config/h8300/h8300.c (h8300_option_override): Likewise.
22492 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22493 (ix86_option_override_internal): Likewise.
22494 (warn_once_call_ms2sysv_xlogues): Likewise.
22495 (ix86_expand_prologue): Likewise.
22496 (split_stack_prologue_scratch_regno): Likewise.
22497 (ix86_warn_parameter_passing_abi): Likewise.
22498 * config/ia64/ia64.c (fix_range): Likewise.
22499 * config/m68k/m68k.c (m68k_option_override): Likewise.
22500 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22501 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22502 (mips_set_compression_mode): Likewise.
22503 * config/mmix/mmix.c (mmix_option_override): Likewise.
22504 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22505 * config/msp430/msp430.c (msp430_option_override): Likewise.
22506 * config/nds32/nds32.c (nds32_option_override): Likewise.
22507 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22508 (nios2_option_override): Likewise.
22509 (nios2_expand_custom_builtin): Likewise.
22510 * config/nvptx/mkoffload.c (main): Likewise.
22511 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22512 * config/pa/pa.c (fix_range): Likewise.
22513 (pa_option_override): Likewise.
22514 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22515 (riscv_option_override): Likewise.
22516 * config/rl78/rl78.c (rl78_option_override): Likewise.
22517 * config/rs6000/aix61.h: Likewise.
22518 * config/rs6000/aix71.h: Likewise.
22519 * config/rs6000/aix72.h: Likewise.
22520 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22521 * config/rs6000/freebsd64.h: Likewise.
22522 * config/rs6000/linux64.h: Likewise.
22523 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22524 (rs6000_expand_zeroop_builtin): Likewise.
22525 (rs6000_expand_mtfsb_builtin): Likewise.
22526 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22527 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22528 (rs6000_invalid_builtin): Likewise.
22529 (rs6000_expand_split_stack_prologue): Likewise.
22530 * config/rs6000/rtems.h: Likewise.
22531 * config/rx/rx.c (valid_psw_flag): Likewise.
22532 (rx_expand_builtin): Likewise.
22533 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22534 * config/s390/s390.c (s390_expand_builtin): Likewise.
22535 (s390_function_profiler): Likewise.
22536 (s390_option_override_internal): Likewise.
22537 (s390_option_override): Likewise.
22538 * config/sh/sh.c (sh_option_override): Likewise.
22539 (sh_builtin_saveregs): Likewise.
22540 (sh_fix_range): Likewise.
22541 * config/sh/vxworks.h: Likewise.
22542 * config/sparc/sparc.c (sparc_option_override): Likewise.
22543 * config/spu/spu.c (spu_option_override): Likewise.
22544 (fix_range): Likewise.
22545 * config/visium/visium.c (visium_option_override): Likewise.
22546 (visium_handle_interrupt_attr): Likewise.
22547 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22548 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22549 (dbg_cnt_process_opt): Likewise.
22550 * dwarf2out.c (output_dwarf_version): Likewise.
22551 * except.c (expand_eh_return): Likewise.
22552 * gcc.c (defined): Likewise.
22553 (driver_handle_option): Likewise.
22554 (process_command): Likewise.
22555 (compare_files): Likewise.
22556 (driver::prepare_infiles): Likewise.
22557 (driver::do_spec_on_infiles): Likewise.
22558 (driver::maybe_run_linker): Likewise.
22559 * omp-offload.c (oacc_parse_default_dims): Likewise.
22560 * opts-global.c (handle_common_deferred_options): Likewise.
22561 * opts.c (parse_sanitizer_options): Likewise.
22562 (common_handle_option): Likewise.
22563 (enable_warning_as_error): Likewise.
22564 * passes.c (enable_disable_pass): Likewise.
22565 * plugin.c (parse_plugin_arg_opt): Likewise.
22566 (default_plugin_dir_name): Likewise.
22567 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22568 (default_pch_valid_p): Likewise.
22569 * toplev.c (init_asm_output): Likewise.
22570 (process_options): Likewise.
22571 (toplev::run_self_tests): Likewise.
22572 * tree-cfg.c (verify_gimple_call): Likewise.
22573 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22574 (tree_inlinable_function_p): Likewise.
22575 * var-tracking.c (vt_find_locations): Likewise.
22577 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22579 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22580 only on the else branch.
22582 2019-03-11 Martin Liska <mliska@suse.cz>
22584 * gcov.c (output_intermediate_json_line): Print function
22586 (output_json_intermediate_file): Add new argument.
22587 * doc/gcov.texi: Document the change.
22589 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22591 PR rtl-optimization/89588
22592 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22593 explicit unrolling factor more robust.
22595 2019-03-11 Richard Biener <rguenther@suse.de>
22597 PR tree-optimization/89649
22598 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22599 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22600 on the prolog and epilog loops.
22601 (vect_loop_versioning): Return copy of loop.
22602 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22603 on the non-vectorized version of the loop.
22605 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22608 * config/i386/sse.md (*vec_extractv2di_0_sse):
22609 Add (=r,x) alternative and corresponding splitter.
22611 2019-03-10 Martin Jambor <mjambor@suse.cz>
22613 PR tree-optimization/85762
22614 PR tree-optimization/87008
22615 PR tree-optimization/85459
22616 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22617 it points to if there is a type changing MEM_REF. Adjust all callers.
22618 (build_accesses_from_assign): Disable total scalarization if
22619 contains_vce_or_bfcref_p returns true through the new parameter, for
22622 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22625 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22626 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22629 * common.opt (fdiagnostics-show-labels,
22630 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22631 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22632 gas-locview-support, ginline-points, ginternal-reset-location-views):
22633 Terminate description text with a dot.
22634 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22635 * config/mcore/mcore.opt (m210, m340): Likewise.
22636 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22637 mnops=): Start description text with a capital letter.
22638 * config/arc/arc.opt (msize-level=): Likewise.
22639 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22640 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22641 mnewlib): Likewise.
22642 * config/ft32/ft32.opt (msim): Likewise.
22643 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22644 (mnodiv, mnopm): Terminate description text with a dot.
22645 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22647 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22649 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22652 PR rtl-optimization/89634
22653 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22654 are modified in BB_END (e->src) instruction.
22656 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22659 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22660 messages more amenable to translation, and improve wording.
22662 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22664 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22665 ud- and du-chains between phases.
22667 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22670 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22671 instead of POLY_INT_CST.
22673 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22675 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22678 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22683 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22684 (_mm_storeu_si64): Ditto.
22686 2019-03-08 Martin Liska <mliska@suse.cz>
22689 * config/i386/i386.c (ix86_option_override_internal): Disable
22690 jump tables when retpolines are used.
22692 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22695 * ipa-split.c (execute_split_functions): Do not split
22696 'noinline' or 'section' function.
22698 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22701 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22702 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22703 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22706 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22707 from diagnostics. Formatting fixes.
22710 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22711 warn_odr diagnostics.
22714 * lra-constraints.c (process_alt_operands): Avoid one space before
22715 " at the end of line and another after " on another line in a string
22717 * attribs.c (handle_dll_attribute): Likewise.
22718 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22720 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22721 warning_at or inform messages in G_() if there is no ?:.
22723 PR tree-optimization/89550
22724 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22725 returned true. Formatting fixes.
22726 (expand_builtin_strnlen): Formatting fixes.
22727 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22728 if warning_at returned true.
22729 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22731 2019-03-08 Richard Biener <rguenther@suse.de>
22733 PR middle-end/89578
22734 * cfgloop.h (struct loop): Add owned_clique field.
22735 * cfgloopmanip.c (copy_loop_info): Copy it.
22736 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22738 * tree-inline.c (copy_loops): Remap owned_clique.
22739 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22740 * lto-streamer-out.c (output_cfg): Likewise.
22742 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22745 * config/darwin.c: Include intl.h.
22746 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22747 composing the message out of two separate parts.
22749 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22752 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22753 doesn't start with a capital letter and doesn't end with a dot.
22754 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22755 with a capital letter.
22756 (ix86_mangle_function_version_assembler_name): Likewise.
22757 (ix86_generate_version_dispatcher_body): Likewise.
22758 (fold_builtin_cpu): Likewise.
22759 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22760 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22761 translators, wrap full type name in %qs.
22763 PR translation/79999
22764 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22765 depend clause with source (or sink) modifier.
22766 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22769 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22770 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22771 (avx512f_load<mode>_mask): New define_expand.
22772 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22773 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22774 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22775 __builtin_ia32_movess_mask): New builtins.
22776 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22777 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22778 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22779 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22781 2019-03-07 Martin Jambor <mjambor@suse.cz>
22784 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22785 for extern inline functions.
22787 2019-03-07 Martin Jambor <mjambor@suse.cz>
22790 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22791 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22792 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22793 have multiple callees. At the end check if declarations match as
22794 opposed to cgraph_nodes.
22796 2019-03-07 Martin Liska <mliska@suse.cz>
22798 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22799 which is equivalent to searching for this in clones chain.
22800 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22801 names with a neighbour and special case first node in a chain.
22803 2019-01-25 Jason Merrill <jason@redhat.com>
22805 PR c++/80916 - spurious "static but not defined" warning.
22806 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22807 for an internal symbol with DECL_EXTERNAL.
22809 2019-04-07 Richard Biener <rguenther@suse.de>
22811 PR middle-end/89618
22812 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22813 * tree-inline.c (copy_loops): Simplify.
22815 2019-03-07 Martin Liska <mliska@suse.cz>
22817 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22819 2019-03-07 Richard Biener <rguenther@suse.de>
22821 PR tree-optimization/89595
22822 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22823 stmt iterator as reference, take boolean output parameter to
22824 indicate whether the stmt was removed and thus the iterator
22826 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22827 stmts created by folding.
22829 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22832 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22835 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22837 PR rtl-optimization/88845
22838 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22840 * lra.c (remove_scratches_1): New function.
22841 (remove_scratches): Use it.
22842 (lra_emit_move): Likewise.
22844 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22846 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22847 unaligned_access variable.
22848 * config/arc/arc.c (arc_override_options): Set unaligned access
22849 default on for HS CPUs.
22850 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22852 2019-03-06 Martin Liska <mliska@suse.cz>
22854 PR gcov-profile/89577
22855 * doc/gcov.texi: Prefer to use --coverage.
22856 * doc/sourcebuild.texi: Likewise.
22858 2019-03-02 Jason Merrill <jason@redhat.com>
22860 PR c++/86485 - -Wmaybe-unused with empty class ?:
22861 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22863 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22866 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22869 PR middle-end/89590
22870 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22871 exactly one argument.
22873 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22874 Richard Sandiford <richard.sandiford@arm.com>
22876 PR tree-optimization/89570
22877 * match.pd (vec_cond into cond_op simplification): Don't use
22878 get_conditional_internal_fn, use as_internal_fn (cond_op).
22880 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22883 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22884 to decide when to split off a non-zero offset from a symbol.
22885 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22886 in function symbols.
22888 2019-03-05 Richard Biener <rguenther@suse.de>
22890 PR tree-optimization/89594
22891 * tree-if-conv.c (pass_if_conversion::execute): Handle
22892 case where .LOOP_VECTORIZED_FUNCTION was removed.
22894 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22897 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22898 instead alloca it only when needed with the needed size.
22900 PR tree-optimization/89570
22901 * match.pd (vec_cond into cond_op simplification): Guard with
22902 vectorized_internal_fn_supported_p test and #if GIMPLE.
22904 PR tree-optimization/89566
22905 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22906 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22907 Punt if get_user_idx_format succeeds, but idx_format argument is
22908 not provided or doesn't have pointer type, or if idx_args is above
22909 number of provided arguments.
22911 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22913 PR tree-optimization/89437
22914 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22916 2019-03-04 Richard Biener <rguenther@suse.de>
22918 PR middle-end/89572
22919 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22922 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22924 PR tree-optimization/89487
22925 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22926 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22927 (distribute_loop): Don't do runtime alias check if there is non-
22928 addressable data reference.
22929 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22930 is a register variable.
22932 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22935 * config/arm/arm.md (cmpsi2_addneg): Use
22936 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22937 If operands[2] is 0 or INT_MIN, force use of subs.
22938 (*compare_scc splitter): Use gen_int_mode.
22939 (*negscc): Likewise.
22940 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22942 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22943 Monk Chiang <sh.chiang04@gmail.com>
22945 * common/config/riscv/riscv-common.c: Include sstream.
22946 (riscv_subset_list::to_string): New.
22947 (riscv_arch_str): Likewise.
22948 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22949 * config.in: Regen.
22950 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22951 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22952 (riscv_emit_attribute): New.
22953 (riscv_file_start): Emit attribute if needed.
22954 (riscv_option_override): Init riscv_emit_attribute_p.
22955 * config/riscv/riscv.opt (mriscv-attribute): New option.
22956 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22957 * configure: Regen.
22958 * doc/install.texi: Document --with-riscv-attribute.
22959 * doc/invoke.texi: Document -mriscv-attribute.
22961 * common/config/riscv/riscv-common.c:
22962 Include config/riscv/riscv-protos.h.
22963 (INCLUDE_STRING): Defined.
22964 (RISCV_DONT_CARE_VERSION): Defined.
22965 (riscv_subset_t): Declare.
22966 (riscv_subset_t::riscv_subset_t): New.
22967 (riscv_subset_list): Declare.
22968 (riscv_subset_list::riscv_subset_list): New.
22969 (riscv_subset_list::~riscv_subset_list): Likewise.
22970 (riscv_subset_list::parsing_subset_version): Likewise.
22971 (riscv_subset_list::parse_std_ext): Likewise.
22972 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22973 (riscv_subset_list::add): Likewise.
22974 (riscv_subset_list::lookup): Likewise.
22975 (riscv_subset_list::xlen): Likewise.
22976 (riscv_subset_list::parse): Likewise.
22977 (riscv_supported_std_ext): Likewise.
22978 (current_subset_list): Likewise.
22979 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22982 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22984 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22985 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22986 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22988 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22990 PR rtl-optimization/85899
22991 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22992 fallthru edges leading to the exit block.
22994 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22997 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22998 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
23000 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
23002 PR tree-optimization/89535
23003 * tree-vect-stmts.c (vectorizable_call): Record the vector types
23004 for each operand. Calculate the fallback choice for mask operands
23005 and pass it to vect_get_vec_def_for_operand.
23007 2019-03-01 Richard Biener <rguenther@suse.de>
23009 PR middle-end/89541
23010 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
23011 get virtual operands.
23012 (get_expr_operands): Handle CONST_DECL like other decls.
23014 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23016 PR middle-end/89503
23017 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
23018 on DECL_P and EXPR_P.
23020 2019-03-01 Richard Biener <rguenther@suse.de>
23022 PR middle-end/89497
23023 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
23024 argument, defaulted to zero.
23025 * passes.c (execute_function_todo): Pass down SSA update flags
23026 to cleanup_tree_cfg.
23027 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
23028 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
23030 (cleanup_tree_cfg): Get and pass down SSA update flags.
23032 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23035 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
23036 early_lto_debug argument.
23038 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
23040 PR tree-optimization/89536
23041 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
23042 only whether bit #0 of the value is 0 instead of the entire value.
23044 2019-02-28 Marek Polacek <polacek@redhat.com>
23046 PR c++/87068 - missing diagnostic with fallthrough statement.
23047 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
23048 at the end of a seq, save its location to walk_stmt_info.
23049 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
23052 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
23055 * tree.c (find_atomic_core_type): Move ahead in file.
23056 (check_base_type): Correctly compare alignments of atomic types.
23058 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
23061 * config/i386/i386.c (get_builtin_code_for_version): Identify
23062 Westmere from PCLMUL, instead of AES.
23064 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23067 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
23068 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
23071 2019-02-28 Tamar Christina <tamar.christina@arm.com>
23074 * config/aarch64/aarch64-option-extensions.def: Document it.
23075 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
23078 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23081 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
23082 builtins if they don't have a single scalar floating point argument.
23085 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
23087 PR rtl-optimization/89490
23088 * varasm.c (get_block_for_section): Bail out for mergeable sections.
23089 (default_use_anchors_for_symbol_p, output_object_block): Assert the
23090 block section is not mergeable.
23092 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23095 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
23096 old define_insn to ...
23097 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
23098 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
23099 Rename old define_insn to ...
23100 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
23101 (thumb2_casesi_internal_pic): New define_expand. Rename old
23103 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
23104 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
23105 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
23107 2019-02-27 Richard Biener <rguenther@suse.de>
23110 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
23112 2019-02-27 Richard Biener <rguenther@suse.de>
23114 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
23117 2019-02-27 Richard Biener <rguenther@suse.de>
23120 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
23121 parameter, prefix section name with .gnu.debuglto_ if true.
23122 (dwarf2out_finish): Pass false to output_comdat_type_unit.
23123 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
23125 2019-02-27 Richard Biener <rguenther@suse.de>
23128 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
23129 rather than on use_debug_types, doing what output_die does.
23130 (value_format): Likewise.
23132 2019-02-27 Martin Jambor <mjambor@suse.cz>
23133 Martin Sebor <msebor@redhat.com>
23135 * doc/invoke.texi (Warning Options): Reword description of
23136 -Wno-absolute-value.
23138 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23140 PR tree-optimization/89280
23141 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
23142 builtin_setjmp_setup_bb): New functions.
23143 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
23144 When visiting __builtin_setjmp_setup block, queue in special
23145 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
23146 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
23147 from visited after the loop if they don't have any visited successor
23150 2018-02-26 Steve Ellcey <sellcey@marvell.com>
23152 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
23154 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
23156 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23159 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
23160 with types other than sizetype/ssizetype.
23162 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23164 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
23165 (enum sparc_processor_type): ...this.
23166 (enum sparc_code_model_type): New enumeration type.
23167 (enum sparc_memory_model_type): Tweak comments.
23168 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
23170 (mcmodel): Use sparc_code_model enumeration and variable.
23171 (sparc_code_model): New enumeration.
23172 (mdebug): Add Undocumented marker.
23173 * config/sparc/sparc.h (enum cmodel): Delete.
23174 (sparc_cmodel): Likewise.
23175 (TARGET_CM_MEDLOW): Adjust to above renaming.
23176 (TARGET_CM_MEDMID): Likewise.
23177 (TARGET_CM_MEDANY): Likewise.
23178 (TARGET_CM_EMBMEDANY): Likewise.
23179 * config/sparc/sparc.c (sparc_cmodel): Delete.
23180 (sparc_option_override): Remove string/value mapping support for the
23181 code model. Move code and memory model support to after the handling
23182 of target flags. Do private machine setup last.
23183 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
23184 (sparc_legitimize_reload_address): Likewise.
23185 (sparc_output_mi_thunk): Likewise.
23186 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
23188 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23190 PR tree-optimization/89500
23191 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
23192 (handle_builtin_strlen): Remove noncst_bound variable. Always
23193 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
23194 cst if the first cst bytes starting at x are known to be non-zero,
23195 even if the string is not zero terminated. Don't try to modify
23196 *si for strnlen. Update strlen_to_stridx only for strlen or if
23197 we can prove strnlen returns the same value as strlen would.
23199 2019-02-26 Martin Liska <mliska@suse.cz>
23201 * alloc-pool.h (struct pool_usage): Remove extra
23203 * bitmap.h (struct bitmap_usage): Likewise.
23204 * ggc-common.c (struct ggc_usage): Likewise.
23205 * mem-stats.h (struct mem_usage): Likewise.
23206 (mem_alloc_description::dump): Print dash lines
23207 here and repeat header at the end of a table report.
23208 It's then more readable.
23209 * tree-phinodes.c (phinodes_print_statistics): Make
23210 horizontal alignment.
23211 * tree-ssanames.c (ssanames_print_statistics): Likewise.
23212 * vec.c (struct vec_usage): Remove extra print_dash_line.
23213 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
23215 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
23217 * doc/extend.texi (__builtin_object_size):
23218 Use @pxref instead of @xref inside parenthesis.
23219 (__builtin_has_attribute): Add missing comma after @xref.
23220 (__builtin_object_size): Ditto.
23221 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
23223 2019-02-26 Jeff Law <law@redhat.com>
23225 PR rtl-optimization/87761
23226 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
23227 detect obviously dead insns and delete them.
23229 2019-02-26 Richard Biener <rguenther@suse.de>
23231 PR tree-optimization/89505
23232 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
23233 to handle restrict pointed-to vars with multiple subvars
23236 2019-02-26 Richard Biener <rguenther@suse.de>
23238 PR tree-optimization/89489
23239 * tree-parloops.c (create_loop_fn): Copy over last_clique.
23241 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23243 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
23244 and move around comment.
23245 <BIT_AND_EXPR>: Likewise.
23246 <BIT_NOT_EXPR>: Add specific handling for boolean types.
23248 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23251 * config/i386/i386.c (remove_partial_avx_dependency): Call
23252 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
23253 after changing possibly many instructions to use that pseudo. Fix up
23254 insertion of v4sf_const0 setter at the start of bb.
23256 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23259 * doc/extend.texi (Variadic Pointer Args): New section.
23261 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23262 Martin Sebor <msebor@gmail.com>
23264 * common.opt (Wattribute-alias): Likewise.
23265 * doc/invoke.texi (Option Summary): List general form of
23266 -Wattribute-alias=. List positive form of -Wmissing-attributes.
23267 (-Wmissing-attributes): Invert entry, rewrite and correct default.
23268 Add cross-references.
23269 (-Wattribute-alias): Rewrite and correct default. Mention
23270 considered attributes (same as for -Wmissing-attributes).
23272 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
23274 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
23275 (_mm_cvtpd_ps): Likewise.
23276 (_mm_cvttpd_epi32): Likewise.
23279 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
23280 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
23283 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
23285 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23288 * common/config/aarch64/aarch64-common.c
23289 (struct aarch64_option_extension): Add is_synthetic.
23290 (all_extensions): Use it.
23291 (TARGET_OPTION_INIT_STRUCT): Define hook.
23292 (struct gcc_targetm_common): Moved to end.
23293 (all_extensions_by_on): New.
23294 (opt_ext_cmp, typedef opt_ext): New.
23295 (aarch64_option_init_struct): New.
23296 (aarch64_contains_opt): New.
23297 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
23298 * config/aarch64/aarch64-option-extensions.def
23299 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
23300 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
23301 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
23302 Set is_synthetic to false.
23303 (crypto): Set is_synthetic to true.
23304 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
23307 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23309 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23310 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
23311 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23312 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
23313 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
23314 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
23315 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
23316 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
23318 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
23319 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23320 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
23321 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
23322 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
23323 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
23324 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
23325 vfmlsl_laneq_high_f16): ... To this.
23326 * config/arm/neon.md: Update comments.
23328 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23330 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23331 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
23332 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23333 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
23334 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
23335 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
23336 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
23337 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
23339 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
23340 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23341 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
23342 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
23343 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
23344 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
23345 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
23346 vfmlslq_laneq_high_f16): ... To this.
23348 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
23350 PR rtl-optimization/86096
23351 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
23352 comparing mw_order values.
23354 2019-02-25 Jakub Jelinek <jakub@redhat.com>
23357 * config/arm/arm.md (*subsi3_carryin_const): Use
23358 arm_neg_immediate_operand predicate instead of
23359 arm_not_immediate_operand, "L" constraint instead of "K" and
23360 print it using %n2 instead of %B2.
23361 (*subsi3_carryin_const0): New define_insn.
23362 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23363 instead of arm_not_operand and "I" constraint instead of "K" and
23364 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23365 another match_operand and in the condition check that it is negation
23367 (*subsi3_carryin_compare_const0): New define_ins.
23368 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23369 *subsi3_carryin_const.
23370 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23371 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23374 * config/arm.vfp.md (*negdf2_vfp): Use
23375 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23376 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23378 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23380 PR rtl-optimization/89445
23381 * simplify-rtx.c (simplify_ternary_operation): Don't use
23382 simplify_merge_mask on operands that may trap.
23383 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23384 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23385 second operand is CONST_VECTOR, check if any element could be zero.
23386 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23387 their operands can trap.
23389 2019-02-23 Martin Sebor <msebor@redhat.com>
23391 * gimple-ssa-sprintf.c (target_strtol): Rename...
23392 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23393 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23394 check for range error.
23396 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23399 * opts-common.c (prune_options): Also prune joined switches
23400 with Negative and RejectNegative.
23401 * config/i386/i386.opt (march=): Add Negative(march=).
23402 (mtune=): Add Negative(mtune=).
23403 * doc/options.texi: Document Negative used together with Joined
23404 and RejectNegative.
23406 2019-02-22 Martin Sebor <msebor@redhat.com>
23408 * doc/extend.texi (Other Builtins): Add
23409 __builtin_is_constant_evaluated.
23411 2019-02-22 Richard Biener <rguenther@suse.de>
23413 PR tree-optimization/87609
23414 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23416 2019-02-22 Jeff Law <law@redhat.com>
23418 PR rtl-optimization/87761
23419 * config/mips/mips.md: Add new combiner pattern to recognize
23420 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23422 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23425 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23426 destination register in peepholes generating patterns for ADDS/SUBS.
23427 (add<mode>3_compare0,
23428 *addsi3_compare0_uxtw, add<mode>3_compareC,
23429 add<mode>3_compareV_imm, add<mode>3_compareV,
23430 *adds_<optab><ALLX:mode>_<GPI:mode>,
23431 *subs_<optab><ALLX:mode>_<GPI:mode>,
23432 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23433 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23434 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23435 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23436 sub<mode>3_compare1): Allow stack pointer for source register.
23437 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23439 2019-02-22 Martin Sebor <msebor@redhat.com>
23441 PR tree-optimization/88993
23442 PR tree-optimization/88853
23443 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23445 (sprintf_dom_walker::call_info::is_string_func): New helper.
23446 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23447 for formatted string functions.
23448 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23450 2019-02-22 Martin Sebor <msebor@redhat.com>
23453 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23454 unreachable subexpressions.
23456 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23457 Hongtao Liu <hongtao.liu@intel.com>
23458 Sunil K Pandey <sunil.k.pandey@intel.com>
23461 * config/i386/i386-passes.def: Add
23462 pass_remove_partial_avx_dependency.
23463 * config/i386/i386-protos.h
23464 (make_pass_remove_partial_avx_dependency): New.
23465 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23467 (pass_data_remove_partial_avx_dependency): New.
23468 (pass_remove_partial_avx_dependency): Likewise.
23469 (make_pass_remove_partial_avx_dependency): Likewise.
23470 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23471 (*extendsfdf2): Add avx_partial_xmm_update.
23472 (truncdfsf2): Likewise.
23473 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23474 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23476 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23478 PR middle-end/85598
23479 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23482 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23485 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23486 (PTA_SKYLAKE): Add PTA_AES.
23487 (PTA_GOLDMONT): Likewise.
23489 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23491 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23492 instruction if enabled.
23493 (aarch64_override_options): Remove reference to return address key.
23495 2019-02-22 Richard Biener <rguenther@suse.de>
23497 PR tree-optimization/89440
23498 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23499 not necessary assert.
23501 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23504 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23505 (oacc_replace_fn_attrib_attr): ... this new function.
23506 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23507 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23509 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23511 * config/arm/arm-cpus.in (ares): Rename to...
23512 (neoverse-n1): ... This. Add ares as alias.
23513 * config/arm/arm-tables.opt: Regenerate.
23514 * config/arm/arm-tune.md: Likewise.
23515 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23517 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23519 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23520 * config/aarch64/aarch64-tune.md: Regenerate.
23521 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23523 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23525 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23526 (neoversen1_tunings): ... This.
23527 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23528 (neoverse-n1): New CPU.
23529 * config/aarch64/aarch64-tune.md: Regenerate.
23530 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23532 2019-02-22 Richard Biener <rguenther@suse.de>
23534 PR middle-end/87609
23535 * cfghooks.h (dependence_hash): New typedef.
23536 (struct copy_bb_data): New type.
23537 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23538 (duplicate_block): Likewise.
23539 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23540 (copy_bbs): Create and pass down copy_bb_data.
23541 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23542 (rtl_duplicate_bb): Likewise.
23543 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23544 remap dependence info.
23546 2019-02-22 Richard Biener <rguenther@suse.de>
23548 PR tree-optimization/87609
23549 * tree-core.h (tree_base): Document special clique values.
23550 * tree-inline.c (remap_dependence_clique): Do not use the
23551 special clique value of one.
23552 (maybe_set_dependence_info): Use clique one.
23553 (clear_dependence_clique): New callback.
23554 (compute_dependence_clique): Clear clique one from all refs
23555 before assigning it (again).
23557 2019-02-21 Martin Sebor <msebor@redhat.com>
23559 * doc/extend.texi (__clear_cache): Correct signature.
23561 2019-02-21 Ian Lance Taylor <iant@golang.org>
23564 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23565 than output_constant_def.
23566 (add_constant_to_table): New static function.
23567 (output_constant_def): Call add_constant_to_table.
23568 (tree_output_constant_def): Likewise.
23570 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23573 * builtins.c (fold_builtin_arith_overflow): If first two args are
23574 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23577 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23580 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23581 error for -mindirect-branch/-mfunction-return with incompatible
23584 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23587 * constraints.md (q): Remove.
23588 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23591 2019-02-21 Martin Jambor <mjambor@suse.cz>
23594 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23595 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23596 (omp_adjust_for_condition): ...here. Added necessary parameters.
23597 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23598 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23599 proper values to new parameters of omp_adjust_for_condition.
23601 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23603 PR middle-end/89412
23604 * expr.c (expand_assignment): If result is a MEM, use change_address
23605 instead of simplify_gen_subreg.
23607 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23608 David Malcolm <dmalcolm@redhat.com>
23610 PR middle-end/89091
23611 * fold-const.c (decode_field_reference): Return NULL_TREE if
23612 lang_hooks.types.type_for_size returns NULL. Check it before
23613 overwriting *exp_. Use return NULL_TREE instead of return 0.
23615 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23617 PR middle-end/88074
23618 PR middle-end/89415
23619 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23622 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23625 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23626 TARGET_SSE in addition to TARGET_SSE_MATH.
23628 (ix86_excess_precision): Ditto.
23629 (ix86_float_exceptions_rounding_supported_p): Ditto.
23630 (use_rsqrt_p): Ditto.
23631 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23633 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23636 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23637 linenum_arith_t when determining if two adjacent line spans are
23638 close enough to merge.
23639 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23640 lines within each line_span.
23642 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23645 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23646 paradoxical SUBREGS.
23648 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23651 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23652 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23653 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23656 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23658 * config/gcn/gcn.c (print_operand): Fix typo.
23660 2019-02-19 Richard Biener <rguenther@suse.de>
23662 PR middle-end/88074
23663 * toplev.c (do_compile): Initialize mpfr's exponent range
23664 based on available float modes.
23666 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23668 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23669 as long as the epilogue isn't completed.
23671 2019-02-18 Martin Sebor <msebor@redhat.com>
23673 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23674 __has_cpp_attribute, and __has_include.
23676 2019-02-18 Martin Sebor <msebor@redhat.com>
23678 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23680 2019-02-18 Martin Sebor <msebor@redhat.com>
23682 PR middle-end/89294
23683 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23685 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23687 2019-02-18 Richard Biener <rguenther@suse.de>
23689 PR tree-optimization/89296
23690 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23691 of no-warning flag to cases that might emit the bogus warning.
23693 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23696 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23698 * config/arm/vfp.md (*movdi_vfp): Likewise.
23699 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23700 "q" constraint for operands[0].
23703 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23704 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23705 pattern in a temporary buffer.
23706 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23707 than 64-operands[2].
23710 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23711 s390_indirect_branch_settings): Define unconditionally.
23712 (s390_set_current_function): Likewise, but guard the whole body except
23713 the s390_indirect_branch_settings call with
23714 #if S390_USE_TARGET_ATTRIBUTE.
23715 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23717 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23718 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23719 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23720 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23721 HOST_WIDE_INT_1U instead of 1ULL.
23722 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23723 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23724 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23725 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23727 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23730 2019-02-18 Martin Jambor <mjambor@suse.cz>
23732 PR tree-optimization/89209
23733 * tree-sra.c (create_access_replacement): New optional parameter
23734 reg_tree. Use it as a type if non-NULL and access type is not of
23736 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23737 to create_access_replacement.
23738 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23739 Check lacc is non-NULL before attempting to re-create it on the RHS.
23741 2019-02-18 Martin Liska <mliska@suse.cz>
23744 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23746 (symbol_table::free_edge): Recycle m_summary_id.
23747 * cgraph.h (get_summary_id): New.
23748 (symbol_table::release_symbol): Set m_summary_id to -1
23750 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23751 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23752 function_summary to fast_function_summary.
23753 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23754 * ipa-pure-const.c (class funct_state_summary_t):
23755 Switch from function_summary to fast_function_summary.
23756 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23757 (class ipa_ref_opt_summary_t): Switch from function_summary
23758 to fast_function_summary.
23759 * symbol-summary.h (class function_summary_base): New class
23760 that is created from base of former function_summary.
23761 (function_summary_base::unregister_hooks): New.
23762 (class function_summary): Inherit from function_summary_base.
23763 (class call_summary_base): New class
23764 that is created from base of former call_summary.
23765 (class call_summary): Inherit from call_summary_base.
23766 (struct is_same): New.
23767 (class fast_function_summary): New summary class.
23768 (class fast_call_summary): New summary class.
23769 * vec.h (vec_safe_grow_cleared): New function.
23771 2019-02-18 Martin Liska <mliska@suse.cz>
23773 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23774 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23775 * doc/tm.texi: Document new target hook.
23776 * doc/tm.texi.in: Likewise.
23777 * target.def: Add new target macro.
23778 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23781 2019-02-17 Alan Modra <amodra@gmail.com>
23784 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23785 output reg on add insn.
23786 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23788 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23791 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23792 (PMULHRSW): Likewise.
23793 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23795 (ssse3_pmulhrswv4hi3): New expander.
23797 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23799 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23800 MMX. Add isa attribute.
23802 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23804 PR rtl-optimization/66152
23805 * builtins.h (c_readstr): Declare.
23806 * builtins.c (c_readstr): Remove forward declaration. Add
23807 null_terminated_p argument, if false, read all bytes from the
23808 string instead of stopping after '\0'.
23809 * expr.c (string_cst_read_str): New function.
23810 (store_expr): Use string_cst_read_str instead of
23811 builtin_strncpy_read_str. Try to store by pieces the whole
23812 exp_len first, and only if that fails, split it up into
23813 store by pieces followed by clear_storage. Formatting fix.
23815 * config/i386/i386.md (*movqi_internal): Remove static from
23816 buf variable. Use output_asm_insn (buf, operands); return "";
23817 instead of return buf;.
23818 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23819 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23820 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23822 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23824 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23825 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23826 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23827 (CC1_SPEC): Likewise.
23828 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23830 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23832 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23833 the base address on 64-bit strict-alignment platforms.
23835 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23837 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23839 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23841 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23843 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23845 PR rtl-optimization/88308
23846 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23847 on copied instruction.
23849 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23851 * final.c (insn_current_reference_address): Replace test on JUMP_P
23852 with test on jump_to_label_p.
23853 * config/visium/visium-passes.def: New file.
23854 * config/visium/t-visium (PASSES_EXTRA): Define.
23855 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23856 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23857 (TRAMPOLINE_ALIGNMENT): Define.
23858 * config/visium/visium.c (visium_option_override): Do not register
23859 the machine-specific reorg pass here.
23860 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23862 (output_branch): Adjust threshold for long branch instruction.
23863 * config/visium/visium.md (cpu): Move around.
23864 (length): Adjust for the GR6.
23866 2019-02-15 Richard Biener <rguenther@suse.de>
23867 Jakub Jelinek <jakub@redhat.com>
23869 PR tree-optimization/89278
23870 * tree-loop-distribution.c: Include tree-eh.h.
23871 (generate_memset_builtin, generate_memcpy_builtin): Call
23872 rewrite_to_non_trapping_overflow on builtin->size before passing it
23873 to force_gimple_operand_gsi.
23875 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23878 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23880 * opth-gen.awk: Likewise.
23882 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23884 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23885 Enable MMX, SSE and SSE2 by default.
23886 * config/i386/i386.c (ix86_option_override_internal): Do not
23887 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23889 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23891 PR rtl-optimization/89354
23892 * combine.c (make_extraction): Punt if extraction_mode is narrower
23895 2019-02-14 Maya Rashish <coypu@sdf.org>
23897 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23898 * config/netbsd-d.c: New file.
23899 * config/t-netbsd: Add netbsd-d.o
23901 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23903 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23904 affects_type_identity to true for aarch64_vector_pcs.
23905 (aarch64_comp_type_attributes): New function.
23906 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23908 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23911 * config/arm/iterators.md (ANY64): Add V4HF.
23913 2019-02-14 Martin Liska <mliska@suse.cz>
23915 PR rtl-optimization/89242
23916 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23917 process a transformation.
23919 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23921 PR tree-optimization/89314
23922 * fold-const.c (fold_binary_loc): Cast strlen argument to
23923 const char * before dereferencing it. Formatting fixes.
23925 PR middle-end/89284
23926 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23928 2019-02-13 Ian Lance Taylor <iant@golang.org>
23930 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23931 and set current index for other optimizations.
23933 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23935 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23936 nonimmediate_operand as operand 2 predicate.
23937 (vec_set<VF2_512_256:mode>_0): Ditto.
23938 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23939 (*vec_concatv2si): Remove alternative 2.
23940 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23941 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23942 (vec_concatv2di): Split alternatives 4,5,6 to ...
23943 (*vec_concatv2di_0) ... new pattern.
23945 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23948 * config/arm/arm.c (ldm_stm_operation_p) Set
23949 addr_reg_in_reglist correctly for first register.
23950 (load_multiple_sequence): Remove dead base check.
23951 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23953 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23956 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23957 Expose as @aarch64_pred_mov.
23958 * config/aarch64/aarch64.c (aarch64_classify_address):
23959 Use expand_insn which legitimizes operands.
23961 2019-02-13 Martin Liska <mliska@suse.cz>
23963 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23964 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23965 and pointer_offset fields.
23966 (initialize_argument_information): Remove usage of dead
23968 * cgraph.h (struct cgraph_thunk_info): Remove
23969 add_pointer_bounds_args.
23970 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23972 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23974 * config/i386/i386.c (ix86_function_arg_advance): Remove
23976 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23977 (def_builtin): Remove usage of dead fields.
23978 (ix86_add_new_builtins): Likewise.
23979 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23980 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23981 (sem_function::init): Likewise.
23982 (sem_variable::merge): Likewise.
23983 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23984 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23985 * lto-cgraph.c (lto_output_node): Likewise.
23986 (lto_output_varpool_node): Likewise.
23987 (input_node): Likewise.
23988 (input_varpool_node): Likewise.
23989 * lto-streamer-out.c (lto_output): Likewise.
23990 * tree-inline.c (expand_call_inline): Remove usage of
23992 * tree-inline.h (struct copy_body_data): Likewise.
23993 * varpool.c (varpool_node::dump): Likewise.
23995 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23997 PR middle-end/89303
23998 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23999 into pt->vars_contains_escaped_heap instead of setting
24000 pt->vars_contains_escaped_heap to it.
24002 PR middle-end/89281
24003 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
24004 INTVAL (size), compare it to GET_MODE_MASK instead of
24005 1 << GET_MODE_BITSIZE.
24008 * config/i386/predicates.md (x86_64_immediate_operand): Allow
24009 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
24012 2019-02-13 Martin Liska <mliska@suse.cz>
24015 * cfgrtl.c (remove_barriers_from_footer): New function.
24016 (try_redirect_by_replacing_jump): Use it.
24017 (cfg_layout_redirect_edge_and_branch): Likewise.
24019 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24021 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
24022 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
24023 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
24024 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
24025 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
24026 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
24028 * config/rs6000/rs6000.c (builtin_function_type)
24029 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
24030 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
24031 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
24032 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
24033 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
24035 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
24037 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
24038 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
24040 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
24043 * config/i386/i386.md (*movoi_internal_avx): Revert revision
24044 268678 and revision 268657.
24045 (*movti_internal): Likewise.
24047 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
24050 * config/s390/s390.c (s390_decompose_address): Update comment.
24051 (s390_check_qrst_address): Reject invalid address forms after
24054 2019-02-12 Martin Liska <mliska@suse.cz>
24057 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
24058 we need default values of funct_state for a function that
24061 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
24063 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
24064 the object to pick the size of stores on strict-alignment platforms.
24066 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
24067 (*movdi_insn_sp32): Likewise.
24068 (*movdi_insn_sp64): Likewise.
24070 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
24073 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
24074 types that needs constructiong.
24075 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
24077 2019-02-12 Richard Biener <rguenther@suse.de>
24079 PR tree-optimization/89253
24080 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
24081 duplicate the loop.
24083 2019-02-11 David Malcolm <dmalcolm@redhat.com>
24086 * input.c (selftest::test_line_offset_overflow): New selftest.
24087 (selftest::input_c_tests): Call it.
24089 2019-02-11 Martin Sebor <msebor@redhat.com>
24091 PR tree-optimization/88771
24092 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
24093 when -Wstringop-overflow is set.
24094 (builtin_memref::builtin_memref): Adjust excessive upper bound
24095 only when lower bound is not excessive.
24096 (maybe_diag_overlap): Detect and diagnose excessive bounds via
24097 -Wstringop-ovefflow.
24098 (maybe_diag_offset_bounds): Rename...
24099 (maybe_diag_access_bounds): ...to this.
24100 (check_bounds_or_overlap): Adjust for name change above.
24102 2019-02-11 Martin Sebor <msebor@redhat.com>
24105 * builtins.c (max_object_size): Move from here...
24106 * builtins.h (max_object_size): ...and here...
24107 * tree.c (max_object_size): ...to here...
24108 * tree.h (max_object_size): ...and here.
24110 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
24112 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
24113 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
24114 for correct semantics.
24116 2019-02-11 Alan Modra <amodra@gmail.com>
24118 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
24119 -mlongcall and -mpltseq.
24120 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
24121 (RS/6000 and PowerPC Options <-mpltseq>): Document.
24122 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
24123 * config/rs6000/sysv4.opt (mpltseq): New option.
24124 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
24125 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
24126 support is lacking. Don't allow -mpltseq with -mbss-plt.
24127 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
24128 -mpltseq given for ELFv1.
24129 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
24130 Only use UNSPEC_PLTSEQ for inline PLT calls.
24131 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
24132 use UNSPEC_PLTSEQ for inline PLT calls.
24133 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
24134 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
24135 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
24136 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24137 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24138 (pltseq_mtctr_<mode>): Likewise.
24140 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24142 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
24144 * configure: Regenerate.
24146 2019-02-11 Jakub Jelinek <jakub@redhat.com>
24149 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
24152 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24154 * function.c (assign_parm_setup_block): Use the stored
24155 size, not the passed size, when allocating stack-space,
24156 also for a parameter with alignment larger than
24157 MAX_SUPPORTED_STACK_ALIGNMENT.
24159 2019-02-11 Martin Liska <mliska@suse.cz>
24162 * ipa-cp.c (build_toporder_info): Remove usage of a param.
24163 * ipa-inline.c (inline_small_functions): Likewise.
24164 * ipa-pure-const.c (propagate_pure_const): Likewise.
24165 (propagate_nothrow): Likewise.
24166 * ipa-reference.c (propagate): Likewise.
24167 * ipa-utils.c (struct searchc_env): Remove unused field.
24168 (searchc): Always search across AVAIL_INTERPOSABLE.
24169 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
24170 the only called IPA pure const can properly not propagate
24171 across interposable boundary.
24172 * ipa-utils.h (ipa_reduced_postorder): Remove param.
24174 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
24176 * config/nds32/nds32.md (call_internal, call_value_internal,
24177 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
24179 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24181 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
24184 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
24186 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
24189 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24191 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
24193 2019-02-10 Jakub Jelinek <jakub@redhat.com>
24195 PR tree-optimization/89268
24196 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
24197 if preds is non-NULL.
24199 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24202 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
24205 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24207 * config/nds32/nds32.md (trap): New pattern.
24209 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24211 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
24214 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24216 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
24219 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24221 * ipa-visibility.c (localize_node): Also do not localize
24222 LDPR_PREVAILING_DEF_IRONLY_EXP.
24224 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24227 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
24228 instead of type_with_linkage.
24230 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24233 * params.def (uninlined-function-insns, uninlined-function-time,
24234 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
24235 bound so we don't get overflows.
24237 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
24239 * config/rs6000/rs6000-string.c (expand_compare_loop,
24240 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
24243 2019-02-09 Jakub Jelinek <jakub@redhat.com>
24245 PR middle-end/89246
24246 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24247 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
24248 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
24250 2019-02-09 Alan Modra <amodra@gmail.com>
24253 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
24254 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
24257 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
24259 PR middle-end/88560
24260 * lra-constraints.c (process_alt_operands): Don't increase reject
24261 for memory when offset memory is required.
24263 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
24265 * config/s390/vector.md: Implement vector copysign.
24267 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24269 * expr.c (expand_constructor): Correct indentations.
24271 2019-02-08 Richard Biener <rguenther@suse.de>
24273 PR tree-optimization/89247
24274 * tree-if-conv.c: Include tree-cfgcleanup.h.
24275 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
24276 (tree_if_conversion): Pass through predicate vector.
24277 (pass_if_conversion::execute): Do CFG cleanup and SSA update
24278 inline, see if any if-converted loops we refrece in
24279 LOOP_VECTORIZED calls vanished and fixup.
24280 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
24282 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
24284 * config/s390/constraints.md (jdd): New constraint.
24286 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24289 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
24290 upper 16 vector registers without TARGET_AVX512VL.
24291 (*movti_internal): Likewise.
24293 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24295 PR rtl-optimization/89234
24296 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
24297 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
24298 (copy_reg_eh_region_note_backward): Likewise.
24300 2019-02-08 Richard Biener <rguenther@suse.de>
24302 PR middle-end/89223
24303 * tree-data-ref.c (initialize_matrix_A): Fail if constant
24304 doesn't fit in HWI.
24305 (analyze_subscript_affine_affine): Handle failure from
24306 initialize_matrix_A.
24308 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24310 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
24313 2019-02-07 David Malcolm <dmalcolm@redhat.com>
24315 PR tree-optimization/86637
24316 PR tree-optimization/89235
24317 * tree-vect-loop.c (optimize_mask_stores): Add an
24318 auto_purge_vect_location sentinel to ensure that vect_location is
24320 * tree-vectorizer.c
24321 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
24322 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
24323 to ensure that vect_location is purged on exit.
24324 (pass_slp_vectorize::execute): Likewise, replacing the manual
24326 * tree-vectorizer.h (class auto_purge_vect_location): New class.
24328 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24330 * config/aarch64/iterators.md (max_opp): New code_attr.
24331 (USMAX): New code iterator.
24332 * config/aarch64/predicates.md (aarch64_smin): New predicate.
24333 (aarch64_smax): Likewise.
24334 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
24335 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
24338 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
24341 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
24342 for TARGET_AVX512VL.
24343 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
24345 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
24347 * config/s390/s390-builtin-types.def: Add new types.
24348 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
24349 (s390_vec_xlw4): Make the memory operand into a const pointer.
24350 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
24352 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
24353 a new vector type with the alignment of the scalar memory operand.
24355 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
24356 Jakub Jelinek <jakub@redhat.com>
24359 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24360 arm_count_ldrdstrd_insns): New declarations.
24361 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24363 (valid_operands_ldrd_strd): New function.
24364 (arm_count_ldrdstrd_insns): New function.
24365 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24366 sets instead of single DImode set and define new insns to match this.
24368 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24370 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24371 Make it a C initializer.
24373 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24376 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24378 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24380 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24381 Use neon_dot<q> for type.
24382 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24384 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24386 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24387 Use neon_dot<q> for type.
24388 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24389 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24391 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24393 PR rtl-optimization/89225
24394 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24397 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24399 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24400 after restoring registers saved to allocate the frame on Windows.
24402 2019-02-06 Richard Biener <rguenther@suse.de>
24404 PR tree-optimization/89182
24405 * graphite.h (cached_scalar_evolution_in_region): Declare.
24406 * graphite.c (struct seir_cache_key): New.
24407 (struct sese_scev_hash): Likewise.
24408 (seir_cache): New global.
24409 (cached_scalar_evolution_in_region): New function.
24410 (graphite_transform_loops): Allocate and release seir_cache.
24411 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24412 cached_scalar_evolution_in_region.
24413 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24415 (scop_detection::graphite_can_represent_expr: Use
24416 cached_scalar_evolution_in_region.
24417 (scop_detection::stmt_simple_for_scop_p): Likewise.
24418 (find_params_in_bb): Likewise.
24419 (gather_bbs::before_dom_children): Likewise.
24420 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24421 (add_loop_constraints): Likewise.
24423 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24425 PR middle-end/89210
24426 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24427 operand to new_unary_operation only if both element types are integral
24428 and it isn't a widening conversion. Return NULL_TREE if
24429 new_unary_operation failed.
24431 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24434 * config/s390/s390.md: Remove load and test FP splitter.
24436 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24439 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24440 expand_compare_loop, expand_block_compare_gpr,
24441 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24442 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24443 #include "profile-count.h" and "predict.h" for types and functions
24444 needed to work with REG_BR_PROB notes.
24446 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24449 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24450 for the long branch case.
24452 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24455 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24456 can throw, non-call exceptions are enabled and we can't delete
24457 dead exceptions or alter cfg. Set must_clean if
24458 delete_insn_and_edges returns true, don't set it blindly for calls.
24459 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24461 PR rtl-optimization/89195
24462 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24463 of the original MEM.
24465 2019-02-05 Martin Liska <mliska@suse.cz>
24467 PR gcov-profile/89000
24468 * gcov.c (function_summary): Remove argument.
24469 (file_summary): New function.
24470 (print_usage): Replace tabs with spaces.
24471 (generate_results): Use new function file_summary.
24473 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24476 * optabs.c (prepare_cmp_insn): Pass x and y to
24477 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24479 2019-02-05 Richard Biener <rguenther@suse.de>
24481 PR middle-end/89150
24482 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24483 (struct bitmap_element): Drop chain_prev so we properly recurse on
24484 the prev member, supporting tree views.
24485 (struct bitmap_head): GTY skip the obstack member.
24487 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24490 * doc/extend.texi (Vector Extensions): Add an example of using vector
24491 types together with x86 intrinsics.
24493 2019-02-04 Alan Modra <amodra@gmail.com>
24495 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24496 str[] size to 160, and comment.
24498 2019-02-04 Alan Modra <amodra@gmail.com>
24500 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24501 (rs6000_pltseq_template): Guard output of TLS markers with
24502 TARGET_TLS_MARKERS.
24503 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24504 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24505 to use inline PLT sequences.
24506 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24507 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24508 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24510 2019-02-04 Martin Liska <mliska@suse.cz>
24513 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24514 out when ipa_fn_summaries does not contain entry for callee.
24516 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24518 * config/sparc/sparc.h: Remove superfluous blank lines.
24519 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24520 (got_register_rtx): ...this.
24521 (sparc_got): Adjust to above renaming.
24522 (sparc_tls_got): Likewise.
24523 (sparc_delegitimize_address): Likewise.
24524 (sparc_output_mi_thunk): Likewise.
24525 (sparc_init_pic_reg): Likewise.
24526 (save_local_or_in_reg_p): Fix test on the GOT register.
24527 (USE_HIDDEN_LINKONCE): Move around.
24528 (get_pc_thunk_name): Likewise.
24529 (gen_load_pcrel_sym): Likewise.
24530 (load_got_register): Likewise.
24532 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24534 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24535 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24537 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24539 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24540 into consideration.
24542 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24544 * config.gcc (with_nds32_lib, glibc):
24545 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24546 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24547 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24549 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24552 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24553 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24554 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24555 (*rcpsf2_sse): Ditto.
24556 (*rsqrtsf2_sse): Ditto.
24557 (sse4_1_round<mode<2): Ditto.
24559 2019-02-03 Richard Biener <rguenther@suse.de>
24562 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24565 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24567 PR middle-end/87887
24568 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24569 Punt with warning on aggregate return or argument types. Ignore
24570 type/mode checking for uniform arguments.
24572 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24574 * combine.c (try_combine): Do not print "Can't combine" messages unless
24575 printing failed combination attempts.
24577 2019-02-01 Martin Jambor <mjambor@suse.cz>
24580 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24581 segment and global segment variables before making them static.
24583 2019-02-01 Martin Jambor <mjambor@suse.cz>
24585 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24586 missed optimization dump with dump_enabled_p.
24588 2019-02-01 Richard Biener <rguenther@suse.de>
24590 PR middle-end/88597
24591 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24592 the instantiate cache.
24593 (instantiate_scev_binary): Elide second operand procesing
24594 if equal to the first.
24595 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24596 (chrec_contains_undetermined): Likewise.
24597 (tree_contains_chrecs): Likewise.
24599 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24601 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24603 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24605 PR tree-optimization/89143
24606 * wide-int-range.h (wide_int_range_absu): Declare.
24607 * wide-int-range.cc (wide_int_range_absu): New function.
24608 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24610 PR tree-optimization/88107
24611 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24612 instead of assertion that eh_region_outermost is non-NULL, if it
24613 is NULL, set *ALL to true and return NULL.
24614 (move_sese_region_to_fn): Adjust caller, if all is set, call
24615 duplicate_eh_regions with NULL region.
24617 2019-02-01 Richard Biener <rguenth@suse.de>
24619 PR rtl-optimization/88593
24620 * mode-switching.c (optimize_mode_switching): Free dominators before
24621 calling cleanup_cfg.
24623 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24625 PR tree-optimization/88932
24626 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24628 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24630 PR middle-end/89137
24631 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24632 bogus clang warning.
24634 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24637 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24638 alternative to avoid partial SSE register stall for TARGET_AVX.
24639 (truncdfsf2): Ditto.
24640 (sse4_1_round<mode>2): Ditto.
24642 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24644 PR tree-optimization/89008
24645 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24646 process anything of the form X * 0.
24648 2019-01-31 Richard Biener <rguenther@suse.de>
24650 PR tree-optimization/89135
24651 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24652 with abnormal preds.
24654 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24657 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24658 always_inline callees into no_sanitize_address callers.
24660 2019-01-31 Richard Biener <rguenther@suse.de>
24662 PR rtl-optimization/89115
24663 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24665 2019-01-30 Martin Sebor <msebor@redhat.com>
24668 * doc/extend.texi (cast to a union): Correct and expand.
24670 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24672 PR rtl-optimization/87246
24673 * lra-constraints.c (simplify_operand_subreg): Reload memory
24674 in subreg if the address became invalid.
24676 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24679 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24680 Disable for little-endian.
24682 2019-01-30 Richard Biener <rguenther@suse.de>
24684 PR rtl-optimization/89115
24685 * opts.c (default_options_optimization): Reduce
24686 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24687 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24690 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24692 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24693 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24694 type of vector element when vec_extract is implemented by direct
24697 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24699 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24701 2019-01-30 Richard Biener <rguenther@suse.de>
24703 PR tree-optimization/89111
24704 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24705 canonicalization to appropriately sized access types.
24707 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24710 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24711 for arguments to functions that are TU-local and shouldn't be
24712 referenced by assembly.
24714 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24716 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24719 2019-01-29 Martin Sebor <msebor@redhat.com>
24722 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24724 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24728 * omp-simd-clone.c (simd_clone_clauses_extract)
24729 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24730 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24732 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24734 * config.gcc: Force .init_array for ARC.
24736 2019-01-29 Richard Biener <rguenther@suse.de>
24739 * dwarf2out.c (collect_skeleton_dies): New helper.
24740 (copy_decls_for_unworthy_types): Call it.
24741 (build_abbrev_table): Assert we do not try to replace
24742 DW_AT_signature refs with local refs.
24744 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24746 PR middle-end/89002
24747 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24748 for lastprivate/linear IV, push gimplify context around gimplify_assign
24749 and, if it needed any temporaries, pop it into a gimple bind around the
24752 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24754 * common.opt (-Wattribute-alias): Remove "no-" from name.
24755 Make -Wattribute-alias command line option and
24756 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24758 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24761 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24762 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24764 (bmi2): Add missing @opindex.
24765 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24766 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24767 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24768 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24769 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24770 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24771 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24772 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24773 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24774 xsavec, xsaveopt and xsaves options.
24776 2019-01-28 Richard Biener <rguenther@suse.de>
24779 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24782 2019-01-28 Richard Biener <rguenther@suse.de>
24784 PR tree-optimization/88739
24785 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24786 BIT_FIELD_REFs only are applied to mode-precision operands
24787 when they are integral.
24788 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24789 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24790 BIT_FIELD_REFs of non-mode-precision integral operands.
24792 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24795 * config/i386/sse.md
24796 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24797 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24798 first constants in pairs are multiples of 2. Formatting fixes.
24799 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24800 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24801 first constants in each quadruple are multiples of 4. Formatting fixes.
24803 2019-01-26 Martin Jambor <mjambor@suse.cz>
24806 * tree-inline.c: Include tree-cfgcleanup.h.
24807 (delete_unreachable_blocks_update_callgraph): Move...
24808 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24809 ...here, make externally visible, make second argument bool, adjust
24811 * tree-cfgcleanup.c: Include cgraph.h.
24812 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24814 * ipa-prop.c: Include tree-cfgcleanup.h.
24815 (ipcp_transform_function): Call
24816 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24818 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24820 PR rtl-optimization/88846
24821 * ira.c (process_set_for_memref_referenced_p): New.
24822 (memref_referenced_p): Add new param. Use
24823 process_set_for_memref_referenced_p. Add new switch cases.
24824 (memref_used_between_p): Pass new arg to memref_referenced_p.
24826 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24829 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24830 argument ABI_BREAK. Set to true if the calculated alignment has
24831 changed in gcc-9. Check bit-fields for their base type alignment.
24832 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24833 (aarch64_function_arg_boundary): Likewise.
24834 (aarch64_gimplify_va_arg_expr): Likewise.
24836 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24838 PR middle-end/89037
24839 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24840 instead of accessing TREE_INT_CST_ELT directly.
24842 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24844 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24845 fenv_exceptions description.
24847 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24849 PR rtl-optimization/87763
24850 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24851 Allow SUBREG when matching CC_NZmode compare.
24853 2019-01-25 Richard Biener <rguenther@suse.de>
24855 PR tree-optimization/89049
24856 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24857 Look at the pattern stmt to determine if the stmt is vectorized.
24859 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24861 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24862 (pred_mov<mode>): Handle all-register forms using both a new
24863 alternative and a split.
24865 2019-01-25 Richard Biener <rguenther@suse.de>
24867 PR tree-optimization/86865
24868 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24869 Reject non-do-while loops.
24871 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24873 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24874 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24875 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24876 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24877 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24878 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24879 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24880 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24881 vlogical_operand, gpc_reg_operand, int_reg_operand,
24882 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24883 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24884 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24885 (save_world_operation, restore_world_operation, lmw_operation,
24886 stmw_operation): Use MEM_P and REG_P.
24887 (tie_operand): Use MEM_P.
24888 (vrsave_operation, crsave_operation): Use REG_P.
24889 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24890 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24891 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24892 (call_operand): Use HARD_REGISTER_P.
24893 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24895 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24896 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24897 quad_aligned_load_p, replace_swapped_aligned_store,
24898 recombine_lvx_pattern, replace_swapped_aligned_load,
24899 recombine_stvx_pattern): Use MEM_P.
24900 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24901 Use MEM_P and SYMBOL_REF_P.
24902 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24903 (insn_is_swappable_p): Use REG_P and MEM_P.
24904 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24905 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24907 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24908 Use CONST_DOUBLE_P.
24909 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24911 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24912 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24913 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24914 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24916 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24917 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24918 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24919 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24920 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24921 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24922 rs6000_split_logical_di): Use CONST_INT_P.
24923 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24924 REG_P and SYMBOL_REF_P.
24925 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24926 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24927 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24928 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24929 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24930 (small_data_operand, print_operand_address): Use CONST_INT_P and
24932 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24933 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24934 Use HARD_REGISTER_NUM_P.
24935 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24936 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24937 SUBREG_P and SYMBOL_REF_P.
24938 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24939 and HARD_REGISTER_NUM_P.
24940 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24942 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24943 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24945 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24946 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24947 find_addr_reg): Use REG_P.
24948 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24949 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24950 (offsettable_ok_by_alignment, constant_pool_expr_p,
24951 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24952 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24953 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24954 rs6000_assemble_integer, create_TOC_reference,
24955 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24956 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24957 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24958 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24959 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24960 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24961 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24962 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24963 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24964 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24965 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24966 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24967 and cbranch<mode>4): Use CONST_INT_P.
24968 (multiple define_splits): Use REG_P and SUBREG_P.
24969 (define_expands call, call_value): Use MEM_P.
24970 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24971 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24972 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24973 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24974 and HARD_REGISTER_NUM_P.
24975 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24977 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24979 PR rtl-optimization/88948
24980 * rtl.h (prepare_copy_insn): New prototype.
24981 * gcse.c (prepare_copy_insn): New function, split out from
24982 process_insert_insn.
24983 (process_insert_insn): Use prepare_copy_insn.
24984 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24985 instead of gen_move_insn.
24987 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24990 * config/i386/i386.c (ix86_pic_register_p): Return true for
24991 UNSPEC_SET_GOT too.
24993 PR tree-optimization/88964
24994 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24995 punt if HONOR_SNANS (chrec).
24997 PR middle-end/89015
24998 * tree-nested.c (convert_nonlocal_reference_stmt,
24999 convert_local_reference_stmt, convert_tramp_reference_stmt,
25000 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
25001 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
25002 or GIMPLE_OMP_TASK.
25004 PR tree-optimization/89027
25005 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
25006 for "omp simd array" variables.
25008 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
25011 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
25012 force the alignment of m_val.
25014 2019-01-24 Richard Biener <rguenther@suse.de>
25017 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
25018 When in "legacy" debug mode make sure to reset self-origins.
25020 2019-01-24 Martin Liska <mliska@suse.cz>
25022 PR gcov-profile/88994
25023 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
25024 result will be always smaller or equal to the original.
25025 * gcov.c (mangle_name): Fix else branch where we should
25026 also copy to PTR and shift the pointer.
25028 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
25030 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
25031 * vr-values.c (find_case_label_ranges): Fix a comment typo.
25033 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
25035 * common/config/i386/i386-common.c
25036 (OPTION_MASK_ISA_ENQCMD_SET,
25037 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
25038 (ix86_handle_option): Handle -menqcmd.
25039 * config.gcc (enqcmdintrin.h): New header file.
25040 * config/i386/cpuid.h (bit_ENQCMD): New bit.
25041 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25043 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
25045 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
25046 __builtin_ia32_enqcmds): New builtins.
25047 * config/i386/i386-c.c (__ENQCMD__): New macro.
25048 * config/i386/i386-option.c (ix86_target_string): Add
25050 (ix86_valid_target_attribute_inner_p): Likewise.
25051 * config/i386/i386-expand.c
25052 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
25053 IX86_BUILTIN_ENQCMDS.
25054 * config/i386/i386.h (TARGET_ENQCMD): New.
25055 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
25056 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
25057 (movdir64b_<mode>): Parameterize to enable share expansion code
25058 with ENQCMD in function ix86_expand_builtin.
25059 * config/i386/i386.opt: Add -menqcmd.
25060 * config/i386/immintrin.h: Include enqcmdintrin.h.
25061 * config/i386/enqcmdintrin.h: New intrinsic file.
25062 * doc/invoke.texi: Add -menqcmd.
25064 2019-01-23 Bin Cheng <bin.cheng@arm.com>
25065 Steve Ellcey <sellcey@marvell.com>
25068 * recog.c (address_operand): Return false on wrong mode for address.
25069 (constrain_operands): Check for mode with 'p' constraint.
25071 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
25074 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
25075 Disparage MMX alternative.
25076 (sse2_cvtpd2pi): Ditto.
25077 (sse2_cvttpd2pi): Ditto.
25079 2019-01-23 David Malcolm <dmalcolm@redhat.com>
25082 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
25083 use-after-free of the result of
25084 aarch64_get_extension_string_for_isa_flags.
25086 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25089 * doc/extend.texi: Document break and continue behavior in
25090 statement expressions.
25092 2019-01-23 Richard Biener <rguenther@suse.de>
25094 PR tree-optimization/89008
25095 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
25096 not leave another stray operand.
25098 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25100 * BASE-VER: Bump to 9.0.1.
25102 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
25104 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
25105 thunk that returns by reference, use the type of the return object
25106 of the thunk instead of that of the alias to build the dereference.
25108 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
25110 * config/arc/atomic.md: Add operand to DMB instruction.
25112 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25114 PR tree-optimization/88964
25115 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
25116 build_zero_cst instead of build_int_cst. Return false for loop
25117 invariants which honor signed zeros.
25119 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
25121 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
25123 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25126 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
25127 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
25128 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
25130 PR middle-end/88968
25131 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
25132 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
25135 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
25136 Disable for little endian.
25138 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25141 * config/arm/arm.c (arm_needs_double_word_align): Check
25142 DECL_BIT_FIELD_TYPE.
25144 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
25145 H.J. Lu <hongjiu.lu@intel.com>
25148 * config/i386/i386-builtin.def: Add mask2 to all builtin
25149 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
25151 * config/i386/i386.c (BDESC): Add mask2 to the definition.
25152 (BDESC_FIRST): Likewise.
25153 (define_builtin): Add an argument for mask2. Updated to handle
25154 both ix86_isa_flags and ix86_isa_flags2.
25155 (define_builtin_const): Likewise.
25156 (define_builtin_pure): Likewise.
25157 (define_builtin2): Deleted.
25158 (define_builtin_const2): Likewise.
25159 (builtin_description): Add a member, mask2.
25160 (bdesc_*): Add mask2 to builtin initializations.
25161 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
25162 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
25164 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
25166 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
25169 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
25172 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25175 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
25176 alignment is dominated by a bitfield with 64-bit aligned base type.
25177 (arm_function_arg): Emit a warning if the alignment has changed since
25178 earlier GCC releases.
25179 (arm_function_arg_boundary): Likewise.
25180 (arm_setup_incoming_varargs): Likewise.
25182 2019-01-22 Richard Biener <rguenther@suse.de>
25184 PR tree-optimization/88862
25185 * graphite-scop-detection.c
25186 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
25188 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
25190 * doc/extend.tex (AMD GCN Function Attributes): New section.
25191 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
25192 * doc/invoke.texi (AMD GCN Options): New section.
25193 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
25195 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
25197 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
25198 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
25200 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25202 PR tree-optimization/88044
25203 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
25204 is false in the first iteration, but !every_iteration, return false
25205 instead of true with niter->niter zero.
25207 PR rtl-optimization/88904
25208 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
25209 any nonequal registers before processing BB_END (b).
25212 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
25214 (expand_binop_directly, expand_doubleword_clz,
25215 expand_doubleword_popcount, expand_ctz, expand_ffs,
25216 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
25218 PR rtl-optimization/49429
25220 PR rtl-optimization/86334
25222 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
25223 addressable from here...
25224 (emit_block_op_via_libcall): ... to here.
25226 2019-01-22 Richard Biener <rguenther@suse.de>
25228 * tree-vect-loop.c (vect_analyze_loop_operations): Use
25229 auto_vec for cost vector to fix memleak.
25230 (vectorize_fold_left_reduction): Properly gather SLP defs.
25231 (vectorizable_comparison): Do not swap operands to properly
25234 2019-01-22 Alan Modra <amodra@gmail.com>
25237 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
25238 stays a reg. Allow a const_int.
25239 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
25240 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
25241 (IS_NOMARK_TLSGETADDR): Define.
25242 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
25243 (rs6000_output_tlsargs): New function.
25244 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
25245 __tls_get_addr call takes an arg.
25246 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
25247 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
25249 (call_value_nonlocal_sysv): ..or here, delete split.
25250 (tls_gdld_nomark): Delete.
25251 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
25252 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
25253 (call_value_nonlocal_sysv): Likewise.
25254 (call_value_nonlocal_sysv_secure): Likewise.
25255 (call_value_nonlocal_aix): Likewise.
25256 (call_value_indirect_aix): Likewise.
25257 (call_value_indirect_elfv2): Likewise.
25258 (call_value_local32, call_value_local64): Disable for no-mark tls.
25259 (call_value_local_aix): Likewise.
25261 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
25264 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
25265 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
25267 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
25269 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
25270 string contents as hash_map keys.
25272 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25275 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
25276 for rvalue context. Handle rvalues correctly. Use min_align_of_type
25277 instead of TYPE_ALIGN.
25278 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
25279 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
25280 pointer from TYPE_STUB_DECL.
25282 2019-01-21 Richard Biener <rguenther@suse.de>
25284 PR tree-optimization/88934
25285 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
25286 at the possibly non-constant operand.
25287 (vect_get_constant_vectors): Adjust.
25289 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
25292 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
25293 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
25294 instead of _X86INTRIN_H_INCLUDED.
25295 * onfig/i386/clwbintrin.h: Likewise.
25296 * config/i386/pkuintrin.h: Likewise.
25297 * config/i386/prfchwintrin.h: Likewise.
25298 * config/i386/rdseedintrin.h: Likewise.
25299 * config/i386/wbnoinvdintrin.h: Likewise.
25300 * config/i386/xsavecintrin.h: Likewise.
25301 * config/i386/xsavesintrin.h: Likewise.
25302 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
25303 * config/i386/xsaveintrin.h: Likewise.
25304 * config/i386/xsaveoptintrin.h: Likewise.
25305 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
25306 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
25307 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
25308 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
25309 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
25310 * config/i386/immintrin.h: Here.
25312 2019-01-20 Martin Jambor <mjambor@suse.cz>
25315 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
25316 with aa_walk_budget.
25317 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
25318 aa_walk_budget_p parameter.
25319 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
25320 walk. Updated all callers.
25321 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
25322 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
25324 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
25325 parameter info. Extract info from fbi. Pass fbi to recursive calls
25326 and to unmodified_parm.
25327 (phi_result_unknown_predicate): New parameter fbi, removed parameter
25328 info, updated call to will_be_nonconstant_expr_predicate.
25329 (param_change_prob): New parameter fbi, limit AA walking.
25330 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
25331 calls to various above functions.
25332 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
25333 parameter. Use it to limit AA walking.
25334 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
25335 fbi, limit AA walk.
25336 (detect_type_change): New parameter fbi, pass it on to
25337 detect_type_change_from_memory_writes.
25338 (detect_type_change_ssa): Likewise.
25339 (aa_overwalked): Removed.
25340 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
25341 accordingly, adjust to the neew AA limiting scheme.
25342 (parm_ref_data_preserved_p): Likewise.
25343 (ipa_compute_jump_functions_for_edge): Adjust call to
25345 (ipa_analyze_call_uses): Likewise.
25346 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
25347 (ipa_analyze_node): Initialize aa_walk_budget.
25348 (ipcp_transform_function): Likewise.
25349 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
25350 to get_dynamic_type.
25352 2019-01-19 Jakub Jelinek <jakub@redhat.com>
25354 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
25355 outside of #if CHECKING_P code.
25357 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25359 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25360 New function, split out from...
25361 (loop_versioning::analyze_stride): ...here.
25362 (loop_versioning::find_per_loop_multiplication): Use gassign.
25363 (loop_versioning::analyze_term_using_scevs): Return a success code.
25364 (loop_versioning::analyze_arbitrary_term): New function.
25365 (loop_versioning::analyze_address_fragment): Use
25366 analyze_arbitrary_term if all else fails.
25368 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25371 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25374 2019-01-18 Richard Biener <rguenther@suse.de>
25376 PR tree-optimization/88903
25377 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25378 scalar stmts a SLP shift amount is composed of when detecting
25381 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25384 * config/arm/arm-cpus.in (mp): New feature.
25385 (sec): New feature.
25386 (fgroup ARMv7ve): Add mp and sec features.
25387 (arch armv7-a): Add options to allow mp and sec extensions.
25388 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25389 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25390 extenstions to the base architecture.
25391 (cpu cortex-a8): Add sec extension to the base architecture.
25392 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25393 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25394 variants down to the base v7-a varaint.
25395 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25396 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25397 of permitted extensions for -march=armv7-a and for
25398 -mcpu=generic-armv7-a.
25400 2019-01-18 Martin Liska <mliska@suse.cz>
25402 * params.def: Fix comment.
25403 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25405 (gimple_gen_ic_func_profiler): Likewise.
25407 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25409 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25410 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25411 and put in error checks for stack protector guard options.
25412 (aarch64_stack_protect_guard): New.
25413 (TARGET_STACK_PROTECT_GUARD): Define.
25414 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25415 (reg_stack_protect_address<mode>): New.
25416 (stack_protect_set): Adjust for SSP_GLOBAL.
25417 (stack_protect_test): Likewise.
25418 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25419 (-mstack-protector-guard): Likewise.
25420 (-mstack-protector-guard-offset): Likewise.
25422 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25424 PR tree-optimization/86214
25425 * tree-inline.h (struct copy_body_data): Add
25426 add_clobbers_to_eh_landing_pads member.
25427 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25428 (copy_edges_for_bb): Call it if EH edge destination is <
25429 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25430 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25431 if flag_stack_reuse != SR_NONE and clear it afterwards.
25433 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25436 * doc/install.texi (with-multilib-list): Document for aarch64.
25438 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25441 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25442 (("..."))) with ("...").
25444 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25446 * doc/extend.texi (Built-in Functions for Memory Model Aware
25447 Atomic Operations): Document atomic fetch and nand.
25449 2019-01-18 Martin Liska <mliska@suse.cz>
25450 Richard Biener <rguenther@suse.de>
25452 PR middle-end/88587
25453 * cgraph.h (create_version_clone_with_body): Add new argument
25455 * cgraphclones.c (cgraph_node::create_version_clone): Add
25456 DECL_ATTRIBUTES to a newly created decl. And call
25457 valid_attribute_p so that proper cl_target_optimization_node
25458 is set for the newly created declaration.
25459 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25461 (expand_target_clones): Do not call valid_attribute_p, it must
25463 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25466 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25469 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25470 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25471 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25473 2019-01-17 Martin Sebor <msebor@redhat.com>
25475 PR middle-end/88273
25476 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25477 Handle anti-ranges the same as no range at all.
25479 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25481 * config/aarch64/aarch64.c (cgraph.h): New include.
25482 (intl.h): New include.
25483 (supported_simd_type): New function.
25484 (currently_supported_simd_type): Ditto.
25485 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25486 (aarch64_simd_clone_adjust): Ditto.
25487 (aarch64_simd_clone_usable): Ditto.
25488 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25489 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25490 (TARGET_SIMD_CLONE_USABLE): Ditto.
25491 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25492 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25495 2019-01-17 Martin Sebor <msebor@redhat.com>
25497 PR tree-optimization/88800
25498 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25499 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25500 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25501 redundant argument. Add new argument and issue diagnostics under
25502 its control. Detect out-of-bounds access even with warnings
25504 (check_bounds_or_overlap): Change return type. Add argument.
25505 (wrestrict_dom_walker::check_call): Adjust.
25506 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25507 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25508 check_bounds_or_overlap's return value.
25509 (handle_builtin_stxncpy): Same.
25510 (handle_builtin_strcat): Same.
25512 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25513 Kwok Cheung Yeung <kcy@codesourcery.com>
25514 Julian Brown <julian@codesourcery.com>
25515 Tom de Vries <tom@codesourcery.com>
25517 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25519 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25521 * doc/sourcebuild.texi: Document dg-require-effective-target
25522 llvm_binutils and offload_gcn.
25524 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25525 Kwok Cheung Yeung <kcy@codesourcery.com>
25526 Julian Brown <julian@codesourcery.com>
25527 Tom de Vries <tom@codesourcery.com>
25529 * doc/sourcebuild.texi: Document dg-required-effective-target
25532 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25533 Kwok Cheung Yeung <kcy@codesourcery.com>
25534 Julian Brown <julian@codesourcery.com>
25535 Tom de Vries <tom@codesourcery.com>
25536 Jan Hubicka <hubicka@ucw.cz>
25537 Martin Jambor <mjambor@suse.cz>
25539 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25540 * configure.ac: Check for dlopen.
25541 * configure: Regenerate.
25543 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25544 Kwok Cheung Yeung <kcy@codesourcery.com>
25545 Julian Brown <julian@codesourcery.com>
25546 Tom de Vries <tom@codesourcery.com>
25547 Jan Hubicka <hubicka@ucw.cz>
25548 Martin Jambor <mjambor@suse.cz>
25550 * common/config/gcn/gcn-common.c: New file.
25551 * config/gcn/driver-gcn.c: New file.
25552 * config/gcn/gcn-builtins.def: New file.
25553 * config/gcn/gcn-hsa.h: New file.
25554 * config/gcn/gcn-modes.def: New file.
25555 * config/gcn/gcn-opts.h: New file.
25556 * config/gcn/gcn-passes.def: New file.
25557 * config/gcn/gcn-protos.h: New file.
25558 * config/gcn/gcn-run.c: New file.
25559 * config/gcn/gcn-tree.c: New file.
25560 * config/gcn/gcn.c: New file.
25561 * config/gcn/gcn.h: New file.
25562 * config/gcn/gcn.opt: New file.
25563 * config/gcn/t-gcn-hsa: New file.
25565 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25566 Kwok Cheung Yeung <kcy@codesourcery.com>
25567 Julian Brown <julian@codesourcery.com>
25568 Tom de Vries <tom@codesourcery.com>
25569 Jan Hubicka <hubicka@ucw.cz>
25570 Martin Jambor <mjambor@suse.cz>
25572 * config/gcn/constraints.md: New file.
25573 * config/gcn/gcn-valu.md: New file.
25574 * config/gcn/gcn.md: New file.
25575 * config/gcn/predicates.md: New file.
25577 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25579 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25580 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25581 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25582 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25584 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25587 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25588 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25589 it and document registers.
25591 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25593 * config/aarch64/aarch64.c (ares_tunings): Define.
25594 * config/aarch64/aarch64-cores.def (ares): Use the above.
25596 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25600 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25602 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25603 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25604 (_mm512_maskz_fixupimm_round_pd): Ditto.
25605 (_mm512_fixupimm_round_ps): Ditto.
25606 (_mm512_maskz_fixupimm_round_ps): Ditto.
25607 (_mm_fixupimm_round_sd): Ditto.
25608 (_mm_maskz_fixupimm_round_sd): Ditto.
25609 (_mm_fixupimm_round_ss): Ditto.
25610 (_mm_maskz_fixupimm_round_ss): Ditto.
25611 (_mm512_fixupimm_pd): Ditto.
25612 (_mm512_maskz_fixupimm_pd): Ditto.
25613 (_mm512_fixupimm_ps): Ditto.
25614 (_mm512_maskz_fixupimm_ps): Ditto.
25615 (_mm_fixupimm_sd): Ditto.
25616 (_mm_maskz_fixupimm_sd): Ditto.
25617 (_mm_fixupimm_ss): Ditto.
25618 (_mm_maskz_fixupimm_ss): Ditto.
25619 (_mm512_mask_fixupimm_round_pd): Update builtin.
25620 (_mm512_mask_fixupimm_round_ps): Ditto.
25621 (_mm_mask_fixupimm_round_sd): Ditto.
25622 (_mm_mask_fixupimm_round_ss): Ditto.
25623 (_mm512_mask_fixupimm_pd): Ditto.
25624 (_mm512_mask_fixupimm_ps): Ditto.
25625 (_mm_mask_fixupimm_sd): Ditto.
25626 (_mm_mask_fixupimm_ss): Ditto.
25627 * config/i386/avx512vlintrin.h:
25628 (_mm256_fixupimm_pd): Update parameters and builtin.
25629 (_mm256_maskz_fixupimm_pd): Ditto.
25630 (_mm256_fixupimm_ps): Ditto.
25631 (_mm256_maskz_fixupimm_ps): Ditto.
25632 (_mm_fixupimm_pd): Ditto.
25633 (_mm_maskz_fixupimm_pd): Ditto.
25634 (_mm_fixupimm_ps): Ditto.
25635 (_mm_maskz_fixupimm_ps): Ditto.
25636 (_mm256_mask_fixupimm_pd): Update builtin.
25637 (_mm256_mask_fixupimm_ps): Ditto.
25638 (_mm_mask_fixupimm_pd): Ditto.
25639 (_mm_mask_fixupimm_ps): Ditto.
25640 * config/i386/i386-builtin-types.def: Add new types and remove
25642 * config/i386/i386-builtin.def: Update builtin definitions.
25643 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25644 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25645 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25646 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25647 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25648 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25649 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25650 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25651 * config/i386/subst.md:
25652 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25653 (round_saeonly_sd_mask_op4): Ditto.
25654 (round_saeonly_expand_operand5): Ditto.
25655 (round_saeonly_expand): Update.
25657 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25661 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25663 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25664 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25665 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25666 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25667 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25668 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25669 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25671 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25675 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25678 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25679 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25680 instead of UNSPEC_FIXUPIMM.
25682 2019-01-17 Richard Biener <rguenther@suse.de>
25685 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25686 and friends for the LTO part of debug info.
25688 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25690 PR tree-optimization/86214
25691 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25694 PR rtl-optimization/88870
25695 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25696 throw if we can't alter the cfg or delete dead exceptions.
25697 (mark_insn): Don't call find_call_stack_args for such calls.
25699 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25701 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25702 prototypes for vec_st.
25703 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25704 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25705 mainly on signed/unsigned long long and double.
25707 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25710 * combine.c (delete_noop_moves): Convert to "bool" return,
25711 returning true if any edges are eliminated.
25712 (combine_instructions): Also return true if delete_noop_moves
25715 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25717 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25718 correct max nunits for endian swap.
25719 (aarch64_expand_fcmla_builtin): Correct subreg code.
25720 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25721 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25724 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25726 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25727 Handle split indirect COMPLEX_TYPE arguments.
25729 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25732 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25733 bit is set by add and compare.
25734 (CC_ADC): New CC_MODE.
25735 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25736 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25737 comparison. Add detection for CC_ADCmode.
25738 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25740 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25741 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25742 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25743 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25744 to eliminate the need for zero-extending the operands.
25745 (add<mode>3_compareC_imm): Delete. Merge into ...
25746 (add<mode>3_compareC): ... this. Restructure the comparison to
25747 eliminate the need for zero-extending the operands.
25748 (add<mode>3_carryin): Use LTU for the overflow detection.
25749 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25750 Reexpress comparison for overflow.
25751 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25752 (add<mode>3_carryinC): Likewise.
25753 (add<mode>3_carryinV): Use LTU for carry between partials.
25754 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25755 handling of CC_Cmode and add CC_ADCmode.
25756 (aarch64_borrow_operation): Likewise.
25758 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25760 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25761 Remove patternmode.
25762 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25763 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25764 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25765 Remove endianness conversion.
25767 2019-01-16 Martin Liska <mliska@suse.cz>
25769 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25771 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25773 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25774 (path_prefix_reset): Move up in the source file.
25775 (find_fortran_preinclude_file): Make complex search for the
25776 fortran header files.
25778 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25780 * godump.c (go_output_typedef): When outputting a typedef, refer
25781 to the underlying type by its name and not its structure.
25783 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25786 * tree.c (build_function_type): Assert that arg_types is not
25789 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25791 PR inline-asm/52813
25792 * doc/extend.texi: Document that listing the stack pointer in the
25793 clobber list of an asm is a deprecated feature.
25794 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25795 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25796 warning instead of an error for clobbers of the stack pointer.
25797 Add a note explaining why.
25799 2019-01-15 Richard Biener <rguenther@suse.de>
25802 * dwarf2out.c (gen_member_die): Do not generate inheritance
25805 2019-01-15 Richard Biener <rguenther@suse.de>
25807 PR tree-optimization/88855
25808 * tree-if-conv.c (combine_blocks): Collect
25809 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25811 2019-01-15 Tom de Vries <tdevries@suse.de>
25814 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25815 lhs == NULL_TREE for gang-level reduction.
25817 2019-01-15 Richard Biener <rguenther@suse.de>
25818 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25821 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25822 return true if SSA_NAME is already marked in visited bitmap.
25823 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25825 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25827 PR tree-optimization/88775
25828 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25829 equal == 0 equality pointer comparisons some more if compared in
25830 integral types and either one points to an automatic var and the
25831 other to a global, or we can prove at least one points to the middle
25832 or both point to start or both point to end.
25834 2019-01-14 Andi Kleen <ak@linux.intel.com>
25836 * Makefile.in: Lower autofdo sampling rate by 10x.
25837 * Makefile.tpl: Dito.
25839 2019-01-14 Tom Honermann <tom@honermann.net>
25841 * defaults.h: Define CHAR8_TYPE.
25843 2019-01-14 Martin Sebor <msebor@redhat.com>
25846 * doc/extend.texi (Darwin Format Checks): Clarify.
25848 2019-01-14 Richard Biener <rguenther@suse.de>
25850 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25851 whether we are in (simplify ...) or (match ...) context.
25853 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25855 PR rtl-optimization/88796
25856 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25857 * cfgexpand.c (stack_protect_prologue): Initialize
25858 crtl->stack_protect_guard_decl.
25859 * function.c (stack_protect_epilogue): Use it instead of calling
25860 targetm.stack_protect_guard again.
25861 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25862 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25863 crtl->stack_protect_guard_decl.
25864 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25865 on the returned MEM_EXPR.
25867 2019-01-12 Tom de Vries <tdevries@suse.de>
25869 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25870 vector length using -fopenacc-dim.
25872 2019-01-12 Tom de Vries <tdevries@suse.de>
25874 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25875 lengths into account.
25877 2019-01-12 Svante Signell <svante.signell@gmail.com>
25879 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25880 (TARGET_CAN_SPLIT_STACK): Define.
25881 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25883 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25885 * params.def (inline-unit-growth): Set to 40.
25887 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25889 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25891 2019-01-12 Tom de Vries <tdevries@suse.de>
25893 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25894 region calling vector-partitionable routine, set default_vector_length
25897 2019-01-12 Tom de Vries <tdevries@suse.de>
25899 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25900 variable default_vector_length.
25902 2019-01-12 Tom de Vries <tdevries@suse.de>
25904 PR middle-end/88703
25905 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25906 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25909 2019-01-12 Tom de Vries <tdevries@suse.de>
25911 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25912 (nvptx_goacc_validate_dims): Add used parameter.
25913 * doc/tm.texi: Regenerate.
25914 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25915 argument to call to targetm.goacc.validate_dims.
25916 (default_goacc_validate_dims): Add used
25918 * target.def (validate_dims): Add used parameter in DEFHOOK.
25919 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25921 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25923 PR middle-end/85956
25925 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25927 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25928 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25929 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25930 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25932 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25934 PR rtl-optimization/87305
25936 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25937 for little endian pseudos used as paradoxical subreg.
25939 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25941 PR tree-optimization/88693
25942 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25943 for STRING_CSTs that don't contain any NUL characters in the first
25944 TREE_STRING_LENGTH bytes.
25946 2019-01-11 Alan Modra <amodra@gmail.com>
25950 * genattrtab.c (min_fn): Don't translate values.
25951 (min_attr_value): Return INT_MAX when the value can't be calculated.
25952 Return minimum among any values that can be calculated.
25953 (max_attr_value): Adjust.
25955 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25957 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25959 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25961 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25962 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25963 (aarch64_return_call_with_max_clobbers): New function.
25964 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25965 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25967 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25968 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25969 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25970 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25971 * cselib.c (cselib_process_insn): Add argument to
25972 targetm.hard_regno_call_part_clobbered call.
25973 * ira-conflicts.c (ira_build_conflicts): Ditto.
25974 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25975 * lra-constraints.c (inherit_reload_reg): Ditto.
25976 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25977 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25978 argument. Call targetm.return_call_with_max_clobbers.
25979 Add argument to targetm.hard_regno_call_part_clobbered call.
25980 (calls_have_same_clobbers_p): New function.
25981 (process_bb_lives): Add call_insn and last_call_insn variables.
25982 Pass call_insn to check_pseudos_live_through_calls.
25983 Modify if stmt to check targetm.return_call_with_max_clobbers.
25984 Update setting of flush variable.
25985 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25987 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25988 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25989 targetm.hard_regno_call_part_clobbered call.
25990 * reginfo.c (choose_hard_reg_mode): Ditto.
25991 * regrename.c (check_new_reg_p): Ditto.
25992 * reload.c (find_equiv_reg): Ditto.
25993 * reload1.c (emit_reload_insns): Ditto.
25994 * sched-deps.c (deps_analyze_insn): Ditto.
25995 * sel-sched.c (init_regs_for_mode): Ditto.
25996 (mark_unavailable_hard_regs): Ditto.
25997 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25998 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25999 (return_call_with_max_clobbers): New target function.
26000 * doc/tm.texi: Regenerate.
26001 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
26002 * hooks.c (hook_bool_uint_mode_false): Change to
26003 hook_bool_insn_uint_mode_false.
26004 * hooks.h (hook_bool_uint_mode_false): Ditto.
26006 2019-01-11 Steve Ellcey <sellcey@marvell.com>
26008 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
26009 (aarch64_remove_extra_call_preserved_regs): New function.
26010 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
26011 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
26012 * doc/tm.texi: Regenerate.
26013 * final.c (get_call_reg_set_usage): Call new hook.
26014 * target.def (remove_extra_call_preserved_regs): New hook.
26015 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
26016 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
26018 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26021 * passes.c (finish_optimization_passes): Call print_combine_total_stats
26022 inside of pass_combine_1 dump rather than pass_profile_1.
26024 2019-01-11 Tom de Vries <tdevries@suse.de>
26026 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
26027 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
26028 (PTX_NUM_PER_WORKER_BARRIERS): Define.
26029 (nvptx_apply_dim_limits): Prevent vector_length 64 and
26032 2019-01-11 Tom de Vries <tdevries@suse.de>
26034 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
26036 2019-01-11 Jan Beulich <jbeulich@suse.com>
26038 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
26039 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
26040 sse2_cvtsi2sd): Add {l}.
26041 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
26044 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26047 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
26049 (*float<floatunssuffix>v2div2sf2): New define_insn.
26050 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
26051 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
26052 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
26053 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
26054 match_operands with "const0_operand" "C".
26056 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26058 * config/aarch64/aarch64-builtins.c
26059 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
26060 (aarch64_init_simd_builtins): ...Here
26062 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
26064 PR rtl-optimization/87305
26066 (setup_live_pseudos_and_spill_after_risky_transforms): Check
26067 allocation for big endian pseudos used as paradoxical subregs and
26068 spill them if it is wrong.
26069 * lra-constraints.c (lra_constraints): Add a comment.
26071 2019-01-10 Richard Biener <rguenther@suse.de>
26073 PR tree-optimization/88792
26074 * tree-ssa-pre.c (get_representative_for): Do not return a
26077 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26079 PR middle-end/84877
26081 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
26082 (assign_parm_setup_block): Do the argument slot realignment here
26085 2019-01-10 Stefan Agner <stefan@agner.ch>
26088 * config/arm/arm.c (arm_option_override_internal): Force
26089 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
26091 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26094 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
26097 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26099 * config/arm/arm-builtins.c
26100 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
26101 (MAC_LANE_PAIR_QUALIFIERS): New.
26102 (arm_expand_builtin_args): Use it.
26103 (arm_expand_builtin_1): Likewise.
26104 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
26105 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
26106 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
26107 * config/arm/arm_neon.h:
26108 (vcadd_rot90_f16): New.
26109 (vcaddq_rot90_f16): New.
26110 (vcadd_rot270_f16): New.
26111 (vcaddq_rot270_f16): New.
26114 (vcmla_lane_f16): New.
26115 (vcmla_laneq_f16): New.
26116 (vcmlaq_lane_f16): New.
26117 (vcmlaq_laneq_f16): New.
26118 (vcmla_rot90_f16): New.
26119 (vcmlaq_rot90_f16): New.
26120 (vcmla_rot90_lane_f16): New.
26121 (vcmla_rot90_laneq_f16): New.
26122 (vcmlaq_rot90_lane_f16): New.
26123 (vcmlaq_rot90_laneq_f16): New.
26124 (vcmla_rot180_f16): New.
26125 (vcmlaq_rot180_f16): New.
26126 (vcmla_rot180_lane_f16): New.
26127 (vcmla_rot180_laneq_f16): New.
26128 (vcmlaq_rot180_lane_f16): New.
26129 (vcmlaq_rot180_laneq_f16): New.
26130 (vcmla_rot270_f16): New.
26131 (vcmlaq_rot270_f16): New.
26132 (vcmla_rot270_lane_f16): New.
26133 (vcmla_rot270_laneq_f16): New.
26134 (vcmlaq_rot270_lane_f16): New.
26135 (vcmlaq_rot270_laneq_f16): New.
26136 (vcadd_rot90_f32): New.
26137 (vcaddq_rot90_f32): New.
26138 (vcadd_rot270_f32): New.
26139 (vcaddq_rot270_f32): New.
26142 (vcmla_lane_f32): New.
26143 (vcmla_laneq_f32): New.
26144 (vcmlaq_lane_f32): New.
26145 (vcmlaq_laneq_f32): New.
26146 (vcmla_rot90_f32): New.
26147 (vcmlaq_rot90_f32): New.
26148 (vcmla_rot90_lane_f32): New.
26149 (vcmla_rot90_laneq_f32): New.
26150 (vcmlaq_rot90_lane_f32): New.
26151 (vcmlaq_rot90_laneq_f32): New.
26152 (vcmla_rot180_f32): New.
26153 (vcmlaq_rot180_f32): New.
26154 (vcmla_rot180_lane_f32): New.
26155 (vcmla_rot180_laneq_f32): New.
26156 (vcmlaq_rot180_lane_f32): New.
26157 (vcmlaq_rot180_laneq_f32): New.
26158 (vcmla_rot270_f32): New.
26159 (vcmlaq_rot270_f32): New.
26160 (vcmla_rot270_lane_f32): New.
26161 (vcmla_rot270_laneq_f32): New.
26162 (vcmlaq_rot270_lane_f32): New.
26163 (vcmlaq_rot270_laneq_f32): New.
26164 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
26165 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
26166 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
26167 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
26168 vcmlaq_lane270): New.
26169 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
26170 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
26171 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
26172 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
26173 (arm_option_reconfigure_globals): Use them.
26174 * config/arm/iterators.md (VDF, VQ_HSF): New.
26175 (VCADD, VCMLA): New.
26176 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
26177 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
26179 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
26180 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
26182 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26184 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
26185 Add qualifier_lane_pair_index.
26186 (emit-rtl.h): Include.
26187 (TYPES_QUADOP_LANE_PAIR): New.
26188 (aarch64_simd_expand_args): Use it.
26189 (aarch64_simd_expand_builtin): Likewise.
26190 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
26192 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
26193 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
26194 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
26195 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
26196 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
26197 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
26198 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
26199 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
26200 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
26201 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
26202 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
26203 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
26204 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
26205 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
26206 Add __ARM_FEATURE_COMPLEX.
26207 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
26208 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
26209 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
26210 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
26211 fcmlaq_lane270): New.
26212 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
26213 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
26214 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
26215 * config/aarch64/arm_neon.h:
26216 (vcadd_rot90_f16): New.
26217 (vcaddq_rot90_f16): New.
26218 (vcadd_rot270_f16): New.
26219 (vcaddq_rot270_f16): New.
26222 (vcmla_lane_f16): New.
26223 (vcmla_laneq_f16): New.
26224 (vcmlaq_lane_f16): New.
26225 (vcmlaq_rot90_lane_f16): New.
26226 (vcmla_rot90_laneq_f16): New.
26227 (vcmla_rot90_lane_f16): New.
26228 (vcmlaq_rot90_f16): New.
26229 (vcmla_rot90_f16): New.
26230 (vcmlaq_laneq_f16): New.
26231 (vcmla_rot180_laneq_f16): New.
26232 (vcmla_rot180_lane_f16): New.
26233 (vcmlaq_rot180_f16): New.
26234 (vcmla_rot180_f16): New.
26235 (vcmlaq_rot90_laneq_f16): New.
26236 (vcmlaq_rot270_laneq_f16): New.
26237 (vcmlaq_rot270_lane_f16): New.
26238 (vcmla_rot270_laneq_f16): New.
26239 (vcmlaq_rot270_f16): New.
26240 (vcmla_rot270_f16): New.
26241 (vcmlaq_rot180_laneq_f16): New.
26242 (vcmlaq_rot180_lane_f16): New.
26243 (vcmla_rot270_lane_f16): New.
26244 (vcadd_rot90_f32): New.
26245 (vcaddq_rot90_f32): New.
26246 (vcaddq_rot90_f64): New.
26247 (vcadd_rot270_f32): New.
26248 (vcaddq_rot270_f32): New.
26249 (vcaddq_rot270_f64): New.
26253 (vcmla_lane_f32): New.
26254 (vcmla_laneq_f32): New.
26255 (vcmlaq_lane_f32): New.
26256 (vcmlaq_laneq_f32): New.
26257 (vcmla_rot90_f32): New.
26258 (vcmlaq_rot90_f32): New.
26259 (vcmlaq_rot90_f64): New.
26260 (vcmla_rot90_lane_f32): New.
26261 (vcmla_rot90_laneq_f32): New.
26262 (vcmlaq_rot90_lane_f32): New.
26263 (vcmlaq_rot90_laneq_f32): New.
26264 (vcmla_rot180_f32): New.
26265 (vcmlaq_rot180_f32): New.
26266 (vcmlaq_rot180_f64): New.
26267 (vcmla_rot180_lane_f32): New.
26268 (vcmla_rot180_laneq_f32): New.
26269 (vcmlaq_rot180_lane_f32): New.
26270 (vcmlaq_rot180_laneq_f32): New.
26271 (vcmla_rot270_f32): New.
26272 (vcmlaq_rot270_f32): New.
26273 (vcmlaq_rot270_f64): New.
26274 (vcmla_rot270_lane_f32): New.
26275 (vcmla_rot270_laneq_f32): New.
26276 (vcmlaq_rot270_lane_f32): New.
26277 (vcmlaq_rot270_laneq_f32): New.
26278 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
26279 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
26280 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
26281 (FCADD, FCMLA): New.
26283 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
26285 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26289 * config/pa/pa.c: Change "can not" to "cannot".
26290 * gimple-ssa-evrp-analyze.c: Likewise.
26291 * ipa-icf.c: Likewise.
26292 * ipa-polymorphic-call.c: Likewise.
26293 * ipa-pure-const.c: Likewise.
26294 * lra-constraints.c: Likewise.
26295 * lra-remat.c: Likewise.
26296 * reload1.c: Likewise.
26297 * reorg.c: Likewise.
26298 * tree-ssa-uninit.c: Likewise.
26300 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26304 * Makefile.in: Mechanically replace "can not" with "cannot".
26305 * alias.c: Likewise.
26306 * builtins.c: Likewise.
26307 * calls.c: Likewise.
26308 * cgraph.c: Likewise.
26309 * cgraph.h: Likewise.
26310 * cgraphclones.c: Likewise.
26311 * cgraphunit.c: Likewise.
26312 * combine-stack-adj.c: Likewise.
26313 * combine.c: Likewise.
26314 * common/config/i386/i386-common.c: Likewise.
26315 * config/aarch64/aarch64.c: Likewise.
26316 * config/alpha/sync.md: Likewise.
26317 * config/arc/arc.c: Likewise.
26318 * config/arc/predicates.md: Likewise.
26319 * config/arm/arm-c.c: Likewise.
26320 * config/arm/arm.c: Likewise.
26321 * config/arm/arm.h: Likewise.
26322 * config/arm/arm.md: Likewise.
26323 * config/arm/cortex-r4f.md: Likewise.
26324 * config/csky/csky.c: Likewise.
26325 * config/csky/csky.h: Likewise.
26326 * config/darwin-f.c: Likewise.
26327 * config/epiphany/epiphany.md: Likewise.
26328 * config/i386/i386.c: Likewise.
26329 * config/i386/sol2.h: Likewise.
26330 * config/m68k/m68k.c: Likewise.
26331 * config/mcore/mcore.h: Likewise.
26332 * config/microblaze/microblaze.md: Likewise.
26333 * config/mips/20kc.md: Likewise.
26334 * config/mips/sb1.md: Likewise.
26335 * config/nds32/nds32.c: Likewise.
26336 * config/nds32/predicates.md: Likewise.
26337 * config/pa/pa.c: Likewise.
26338 * config/rs6000/e300c2c3.md: Likewise.
26339 * config/rs6000/rs6000.c: Likewise.
26340 * config/s390/s390.h: Likewise.
26341 * config/sh/sh.c: Likewise.
26342 * config/sh/sh.md: Likewise.
26343 * config/spu/vmx2spu.h: Likewise.
26344 * cprop.c: Likewise.
26345 * dbxout.c: Likewise.
26346 * df-scan.c: Likewise.
26347 * doc/cfg.texi: Likewise.
26348 * doc/extend.texi: Likewise.
26349 * doc/fragments.texi: Likewise.
26350 * doc/gty.texi: Likewise.
26351 * doc/invoke.texi: Likewise.
26352 * doc/lto.texi: Likewise.
26353 * doc/md.texi: Likewise.
26354 * doc/objc.texi: Likewise.
26355 * doc/rtl.texi: Likewise.
26356 * doc/tm.texi: Likewise.
26358 * emit-rtl.c: Likewise.
26359 * emit-rtl.h: Likewise.
26360 * except.c: Likewise.
26361 * expmed.c: Likewise.
26362 * expr.c: Likewise.
26363 * fold-const.c: Likewise.
26364 * genautomata.c: Likewise.
26365 * gimple-fold.c: Likewise.
26366 * hard-reg-set.h: Likewise.
26367 * ifcvt.c: Likewise.
26368 * ipa-comdats.c: Likewise.
26369 * ipa-cp.c: Likewise.
26370 * ipa-devirt.c: Likewise.
26371 * ipa-fnsummary.c: Likewise.
26372 * ipa-icf.c: Likewise.
26373 * ipa-inline-transform.c: Likewise.
26374 * ipa-inline.c: Likewise.
26375 * ipa-polymorphic-call.c: Likewise.
26376 * ipa-profile.c: Likewise.
26377 * ipa-prop.c: Likewise.
26378 * ipa-pure-const.c: Likewise.
26379 * ipa-reference.c: Likewise.
26380 * ipa-split.c: Likewise.
26381 * ipa-visibility.c: Likewise.
26383 * ira-build.c: Likewise.
26384 * ira-color.c: Likewise.
26385 * ira-conflicts.c: Likewise.
26386 * ira-costs.c: Likewise.
26387 * ira-int.h: Likewise.
26388 * ira-lives.c: Likewise.
26391 * loop-invariant.c: Likewise.
26392 * loop-unroll.c: Likewise.
26393 * lower-subreg.c: Likewise.
26394 * lra-assigns.c: Likewise.
26395 * lra-constraints.c: Likewise.
26396 * lra-eliminations.c: Likewise.
26397 * lra-lives.c: Likewise.
26398 * lra-remat.c: Likewise.
26399 * lra-spills.c: Likewise.
26401 * lto-cgraph.c: Likewise.
26402 * lto-streamer-out.c: Likewise.
26403 * postreload-gcse.c: Likewise.
26404 * predict.c: Likewise.
26405 * profile-count.h: Likewise.
26406 * profile.c: Likewise.
26407 * recog.c: Likewise.
26409 * reload.c: Likewise.
26410 * reload1.c: Likewise.
26411 * reorg.c: Likewise.
26412 * resource.c: Likewise.
26413 * rtl.def: Likewise.
26415 * rtlanal.c: Likewise.
26416 * sched-deps.c: Likewise.
26417 * sched-ebb.c: Likewise.
26418 * sched-rgn.c: Likewise.
26419 * sel-sched-ir.c: Likewise.
26420 * sel-sched.c: Likewise.
26421 * shrink-wrap.c: Likewise.
26422 * simplify-rtx.c: Likewise.
26423 * symtab.c: Likewise.
26424 * target.def: Likewise.
26425 * toplev.c: Likewise.
26426 * tree-call-cdce.c: Likewise.
26427 * tree-cfg.c: Likewise.
26428 * tree-complex.c: Likewise.
26429 * tree-core.h: Likewise.
26430 * tree-eh.c: Likewise.
26431 * tree-inline.c: Likewise.
26432 * tree-loop-distribution.c: Likewise.
26433 * tree-nrv.c: Likewise.
26434 * tree-profile.c: Likewise.
26435 * tree-sra.c: Likewise.
26436 * tree-ssa-alias.c: Likewise.
26437 * tree-ssa-dce.c: Likewise.
26438 * tree-ssa-dom.c: Likewise.
26439 * tree-ssa-forwprop.c: Likewise.
26440 * tree-ssa-loop-im.c: Likewise.
26441 * tree-ssa-loop-ivcanon.c: Likewise.
26442 * tree-ssa-loop-ivopts.c: Likewise.
26443 * tree-ssa-loop-niter.c: Likewise.
26444 * tree-ssa-phionlycprop.c: Likewise.
26445 * tree-ssa-phiopt.c: Likewise.
26446 * tree-ssa-propagate.c: Likewise.
26447 * tree-ssa-threadedge.c: Likewise.
26448 * tree-ssa-threadupdate.c: Likewise.
26449 * tree-ssa-uninit.c: Likewise.
26450 * tree-ssanames.c: Likewise.
26451 * tree-streamer-out.c: Likewise.
26452 * tree.c: Likewise.
26453 * tree.h: Likewise.
26454 * vr-values.c: Likewise.
26456 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26458 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26459 (ix86_split_xorsign): Ditto.
26460 * config/i386/i386.c (ix86_expand_xorsign): New function.
26461 (ix86_split_xorsign): Ditto.
26462 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26463 (xorsign<mode>3): New expander.
26464 (xorsign<mode>3_1): New insn_and_split pattern.
26465 * config/i386/sse.md (xorsign<mode>3): New expander.
26467 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26469 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26470 (*tablejump_sp64): Likewise.
26471 (*tablejump<P:mode>): ...this.
26472 (*call_address_sp32): Merge into...
26473 (*call_address_sp64): Likewise.
26474 (*call_address<P:mode>): ...this.
26475 (*call_symbolic_sp32): Merge into...
26476 (*call_symbolic_sp64): Likewise.
26477 (*call_symbolic<P:mode>): ...this.
26478 (call_value): Remove constraint and add predicate.
26479 (*call_value_address_sp32): Merge into...
26480 (*call_value_address_sp64): Likewise.
26481 (*call_value_address<P:mode>): ...this.
26482 (*call_value_symbolic_sp32): Merge into...
26483 (*call_value_symbolic_sp64): Likewise.
26484 (*call_value_symbolic<P:mode>): ...this.
26485 (*sibcall_symbolic_sp32): Merge into...
26486 (*sibcall_symbolic_sp64): Likewise.
26487 (*sibcall_symbolic<P:mode>): ...this.
26488 (sibcall_value): Remove constraint and add predicate.
26489 (*sibcall_value_symbolic_sp32): Merge into...
26490 (*sibcall_value_symbolic_sp64): Likewise.
26491 (*sibcall_value_symbolic<P:mode>): ...this.
26492 (window_save): Minor tweak.
26493 (*branch_sp32): Merge into...
26494 (*branch_sp64): Likewise.
26495 (*branch<P:mode>): ...this.
26497 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26498 James Clarke <jrtc27@jrtc27.com>
26501 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26502 consistently in TLS address generation and adjust code to the renaming
26503 of patterns. Mark calls to __tls_get_addr as const.
26504 * config/sparc/sparc.md (tgd_hi22): Turn into...
26505 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26506 (tgd_lo10): Turn into...
26507 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26508 (tgd_add32): Merge into...
26509 (tgd_add64): Likewise.
26510 (tgd_add<P:mode>): ...this and use Pmode throughout.
26511 (tldm_hi22): Turn into...
26512 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26513 (tldm_lo10): Turn into...
26514 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26515 (tldm_add32): Merge into...
26516 (tldm_add64): Likewise.
26517 (tldm_add<P:mode>): ...this and use Pmode throughout.
26518 (tldm_call32): Merge into...
26519 (tldm_call64): Likewise.
26520 (tldm_call<P:mode>): ...this and use Pmode throughout.
26521 (tldo_hix22): Turn into...
26522 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26523 (tldo_lox10): Turn into...
26524 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26525 (tldo_add32): Merge into...
26526 (tldo_add64): Likewise.
26527 (tldo_add<P:mode>): ...this and use Pmode throughout.
26528 (tie_hi22): Turn into...
26529 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26530 (tie_lo10): Turn into...
26531 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26532 (tie_ld64): Use DImode throughout.
26533 (tie_add32): Merge into...
26534 (tie_add64): Likewise.
26535 (tie_add<P:mode>): ...this and use Pmode throughout.
26536 (tle_hix22_sp32): Merge into...
26537 (tle_hix22_sp64): Likewise.
26538 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26539 (tle_lox22_sp32): Merge into...
26540 (tle_lox22_sp64): Likewise.
26541 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26542 (*tldo_ldub_sp32): Merge into...
26543 (*tldo_ldub_sp64): Likewise.
26544 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26545 (*tldo_ldub1_sp32): Merge into...
26546 (*tldo_ldub1_sp64): Likewise.
26547 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26548 (*tldo_ldub2_sp32): Merge into...
26549 (*tldo_ldub2_sp64): Likewise.
26550 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26551 (*tldo_ldsb1_sp32): Merge into...
26552 (*tldo_ldsb1_sp64): Likewise.
26553 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26554 (*tldo_ldsb2_sp32): Merge into...
26555 (*tldo_ldsb2_sp64): Likewise.
26556 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26557 (*tldo_ldub3_sp64): Use DImode throughout.
26558 (*tldo_ldsb3_sp64): Likewise.
26559 (*tldo_lduh_sp32): Merge into...
26560 (*tldo_lduh_sp64): Likewise.
26561 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26562 (*tldo_lduh1_sp32): Merge into...
26563 (*tldo_lduh1_sp64): Likewise.
26564 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26565 (*tldo_ldsh1_sp32): Merge into...
26566 (*tldo_ldsh1_sp64): Likewise.
26567 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26568 (*tldo_lduh2_sp64): Use DImode throughout.
26569 (*tldo_ldsh2_sp64): Likewise.
26570 (*tldo_lduw_sp32): Merge into...
26571 (*tldo_lduw_sp64): Likewise.
26572 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26573 (*tldo_lduw1_sp64): Use DImode throughout.
26574 (*tldo_ldsw1_sp64): Likewise.
26575 (*tldo_ldx_sp64): Likewise.
26576 (*tldo_stb_sp32): Merge into...
26577 (*tldo_stb_sp64): Likewise.
26578 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26579 (*tldo_sth_sp32): Merge into...
26580 (*tldo_sth_sp64): Likewise.
26581 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26582 (*tldo_stw_sp32): Merge into...
26583 (*tldo_stw_sp64): Likewise.
26584 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26585 (*tldo_stx_sp64): Use DImode throughout.
26587 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26589 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26590 check configure option to set BTI and Return Address Signing.
26591 * configure.ac: Add --enable-standard-branch-protection and
26592 --disable-standard-branch-protection.
26593 * configure: Regenerated.
26594 * doc/install.texi: Document the same.
26596 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26597 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26599 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26600 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26601 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26603 * config/aarch64/aarch64-bti-insert.c: New file.
26604 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26606 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26608 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26609 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26610 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26611 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26613 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26615 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26616 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26617 Disable bti for -mbranch-protection=none.
26618 (aarch64_handle_standard_branch_protection): Enable bti for
26619 -mbranch-protection=standard.
26620 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26621 -mbranch-protection.
26622 (aarch64_bti_enabled): Check if bti is enabled.
26623 * config/aarch64/aarch64.opt: Declare target variable.
26624 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26626 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26628 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26629 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26630 (aarch64_expand_epilogue): Likewise.
26631 (aarch64_output_mi_thunk): Likewise.
26632 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26633 TAILCALL_ADDR_REGS to x16 and x17.
26634 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26636 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26638 * config/aarch64/aarch64-option-extensions.def: Define
26639 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26640 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26641 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26642 (AARCH64_FL_PREDRES): New.
26643 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26644 AARCH64_FL_PREDRES by default.
26645 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26647 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26649 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26651 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26652 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26653 * doc/invoke.texi: Document ARMv8.5-A.
26655 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26657 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26658 (xorsign<mode>3): Likewise.
26660 2019-01-09 Jelinek <jakub@redhat.com>
26662 PR middle-end/88758
26663 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26664 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26666 PR rtl-optimization/88331
26667 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26668 not currently_expanding_to_rtl.
26670 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26672 * doc/invoke.texi (-Os): Remove trailing spaces.
26673 (-finline-functions): Remove reference to -O2.
26675 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26677 PR rtl-optimization/79593
26678 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26680 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26681 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26683 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26686 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26690 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26691 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26693 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26696 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26697 ix86_avx_u128_mode_entry.
26699 2019-01-08 Martin Liska <mliska@suse.cz>
26701 PR tree-optimization/88753
26702 * tree-switch-conversion.c (switch_conversion::build_one_array):
26703 Come up with local variable constructor. Convert first to
26704 type of constructor values.
26706 2019-01-08 Richard Biener <rguenther@suse.de>
26708 PR tree-optimization/86554
26709 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26710 rpo_avail): Move earlier.
26711 (visit_nary_op): When value-numbering to expressions
26712 with different overflow behavior make sure there's an
26713 available expression on the path.
26715 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26717 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26718 aarch64_parse_branch_protection,
26719 struct aarch64_branch_protect_type,
26720 aarch64_handle_no_branch_protection,
26721 aarch64_handle_standard_branch_protection,
26722 aarch64_validate_mbranch_protection,
26723 aarch64_handle_pac_ret_protection,
26724 aarch64_handle_attr_branch_protection,
26725 accepted_branch_protection_string,
26726 aarch64_pac_ret_subtypes,
26727 aarch64_branch_protect_types,
26728 aarch64_handle_pac_ret_leaf): Define.
26729 (aarch64_override_options_after_change_1, aarch64_override_options):
26730 Add check for accepted_branch_protection_string.
26731 (aarch64_option_save): Save accepted_branch_protection_string.
26732 (aarch64_option_restore): Save accepted_branch_protection_string.
26733 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26734 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26735 msign-return-address.
26736 * doc/invoke.texi: Add mbranch-protection.
26738 2019-01-08 Alan Modra <amodra@gmail.com>
26741 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26742 Delete "unknownp" parameter. Adjust callers. Handle
26743 CONST_INT, PLUS, MINUS, and MULT.
26744 (attr_value_aligned): Renamed from or_attr_value.
26745 (min_attr_value): Return INT_MIN for unhandled rtl case..
26746 (min_fn): ..and translate to INT_MAX here.
26747 (write_length_unit_log): Modify to cope without "unknown".
26748 (write_attr_value): Handle IF_THEN_ELSE.
26750 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26752 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26753 optimization for masked stores.
26755 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26757 PR middle-end/88567
26758 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26759 output vector directly to duplicate_and_interleave instead of
26760 going through a temporary. Postpone insertion of ctor_seq to
26761 the end of the loop.
26763 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26766 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26767 unsigned_p. Handle signed and unsigned overflow correction as
26769 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26771 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26773 (add<mode>3_compareV_imm): Make this callable for expanding.
26774 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26775 aarch64_plus_operand for operand 2.
26776 (subv<GPI:mode>_insn): New insn pattern.
26777 (subv<GPI:mode>_imm): Likewise.
26778 (negv<GPI:mode>3): New expand pattern.
26779 (negv<GPI:mode>_insn): New insn pattern.
26780 (negv<GPI:mode>_cmp_only): Likewise.
26781 (cmpv<GPI:mode>_insn): Likewise.
26782 (subvti4): Use register_operand for operand 1. Update call to
26783 aarch64_expand_subvti.
26784 (usubvti4): Likewise.
26785 (negvti3): New expand pattern.
26786 (negdi_carryout): New insn pattern.
26787 (negvdi_carryinV): New insn pattern.
26788 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26789 version the named version.
26790 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26792 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26794 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26796 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26797 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26798 (sub<mode>3_carryinCV): Delete.
26799 (sub<GPI:mode>3_carryinV): New expand pattern.
26800 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26802 2019-01-07 Richard Biener <rguenther@suse.de>
26804 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26805 of tree_operand_hash.
26807 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26809 PR tree-optimization/88598
26810 * tree.h (single_nonzero_element): Declare.
26811 * tree.c (single_nonzero_element): New function.
26812 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26813 if I is the only nonzero element of CST.
26815 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26817 PR tree-optimization/88598
26818 * tree.h (initializer_each_zero_or_onep): Declare.
26819 * tree.c (initializer_each_zero_or_onep): New function.
26820 (signed_or_unsigned_type_for): Handle float types too.
26821 (unsigned_type_for, signed_type_for): Update comments accordingly.
26822 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26823 x & { 0 or -1, 0 or -1, ... }.
26825 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26827 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26828 with x86_64-pc-linux-gnu.
26830 2019-01-07 Tom de Vries <tdevries@suse.de>
26833 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26835 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26838 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26840 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26841 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26842 TARGET_AVX512F as condition.
26845 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26846 const_not_ok_for_debug_p target hook.
26847 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26848 on UNSPEC and subexpressions thereof if all subexpressions of the
26849 UNSPEC are CONSTANT_P.
26851 PR tree-optimization/88676
26852 * tree-ssa-phiopt.c (two_value_replacement): New function.
26853 (tree_ssa_phiopt_worker): Call it.
26856 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26857 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26860 * tree-vect-generic.c: Include insn-config.h and recog.h.
26861 (expand_vector_piecewise): Add defaulted ret_type argument,
26862 if non-NULL, use that in preference to type for the result type.
26863 (expand_vector_parallel): Formatting fix.
26864 (do_vec_conversion, do_vec_narrowing_conversion,
26865 expand_vector_conversion): New functions.
26866 (expand_vector_operations_1): Call expand_vector_conversion
26867 for VEC_CONVERT ifn calls.
26868 * internal-fn.def (VEC_CONVERT): New internal function.
26869 * internal-fn.c (expand_VEC_CONVERT): New function.
26870 * fold-const-call.c (fold_const_vec_convert): New function.
26871 (fold_const_call): Use it for CFN_VEC_CONVERT.
26872 * doc/extend.texi (__builtin_convertvector): Document.
26874 2019-01-07 Tom de Vries <tdevries@suse.de>
26876 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26877 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26878 vector_red_partition, vector_red_sym): New global variables.
26879 (nvptx_option_override): Initialize vector_red_sym.
26880 (nvptx_declare_function_name): Restore red_partition register.
26881 (nvptx_file_end): Emit code to declare the vector reduction variables.
26882 (nvptx_output_red_partition): New function.
26883 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26884 large vector reductions.
26885 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26886 (nvptx_init_builtins): Add VECTOR_ADDR.
26887 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26888 Handle nvptx_expand_shared_addr.
26889 (nvptx_get_shared_red_addr): Add vector argument and handle large
26891 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26893 (nvptx_goacc_reduction_init): Likewise.
26894 (nvptx_goacc_reduction_fini): Likewise.
26895 (nvptx_goacc_reduction_teardown): Likewise.
26896 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26897 init,fini,teardown}.
26898 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26899 (nvptx_set_current_function): Init vector_red_partition.
26900 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26901 (nvptx_red_partition): New insn.
26902 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26904 2019-01-07 Tom de Vries <tdevries@suse.de>
26907 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26910 2019-01-07 Tom de Vries <tdevries@suse.de>
26912 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26913 (nvptx_option_override): Init oacc_bcast_partition.
26914 (nvptx_init_oacc_workers): New function.
26915 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26916 (nvptx_needs_shared_bcast): New function.
26917 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26918 to propagate state.
26919 (nvptx_shared_propagate): Initialize vector bcast partition and
26920 synchronization state.
26921 (nvptx_single): Generalize to enable vectors to use shared-memory
26922 to propagate state.
26923 (nvptx_process_pars): Likewise.
26924 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26925 * config/nvptx/nvptx.h (struct machine_function): Add
26926 bcast_partition and sync_bar members.
26928 2019-01-07 Tom de Vries <tdevries@suse.de>
26930 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26931 (nvptx_apply_dim_limits): New function.
26932 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26935 2019-01-07 Tom de Vries <tdevries@suse.de>
26937 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26938 as late as possible.
26940 2019-01-07 Tom de Vries <tdevries@suse.de>
26942 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26943 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26944 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26945 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26946 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26948 2019-01-07 Tom de Vries <tdevries@suse.de>
26950 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26952 2019-01-07 Tom de Vries <tdevries@suse.de>
26954 * omp-offload.c (oacc_get_min_dim): New function.
26955 * omp-offload.h (oacc_get_min_dim): Declare.
26957 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26960 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26961 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26963 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26967 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26969 * ipa-inline.c (edge_badness): Use inlined_time instead of
26970 inline_summaries->get.
26972 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26974 * opts.c (enable_fdo_optimizations): Enable
26975 version-loops-for-strides, loop-interchange, unrol-and-jam
26976 and tree-loop-distribution.
26977 * invoke.texi: Document newly enabled options.
26979 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26981 * doc/invoke.texi (max-inline-insns-small): New parameters.
26982 * ipa-inline.c (want_early_inline_function_p): simplify.
26983 (want_inline_small_function_p): Fix pasto from previous patch;
26984 use max-inline-insns-small bound.
26985 * params.def (max-inline-insns-small): New param.
26986 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26987 variables correctly.
26989 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26991 * doc/invoke.texi: Document max-inline-insns-size,
26992 uninlined-function-insns, uninlined-function-time,
26993 uninlined-thunk-insns and uninlined-thunk-time.
26994 * params.def: Add max-inline-insns-size,
26995 uninlined-function-insns, uninlined-function-time,
26996 uninlined-thunk-insns and uninlined-thunk-time.
26997 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26999 * ipa-inline.c (can_inline_edge_by_limits_p,
27000 want_inline_small_function_p): Use new parameters.
27002 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27004 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
27006 2019-01-05 Jakub Jelinek <jakub@redhat.com>
27008 PR middle-end/82564
27010 * expr.c (expand_assignment): For calls returning VLA structures
27011 if to_rtx is not a MEM, force it into a stack temporary.
27014 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
27015 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
27016 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
27017 subexpressions of both operands.
27018 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
27019 subrtxes are CONSTANT_P.
27020 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
27021 2018-11-09 changes.
27023 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
27025 * params.def (hot-bb-count-ws-permille): Set to 990.
27027 2019-01-04 Martin Sebor <msebor@redhat.com>
27030 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
27033 2019-01-04 Martin Sebor <msebor@redhat.com>
27036 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
27038 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27040 * gdbinit.in: Turn off pagination for the skip commands, restore
27041 it to previous state afterwards.
27043 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27046 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
27047 of GET_MODE (opN) as modes of the libcall arguments.
27049 2019-01-04 Jan Beulich <jbeulich@suse.com>
27051 * config/i386/sse.md
27052 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
27053 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
27054 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27055 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27056 avx512f_vmcmp<mode>3<round_saeonly_name>,
27057 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
27058 avx512f_maskcmp<mode>3,
27059 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27060 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27061 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27062 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27063 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27064 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27065 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27066 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27067 <avx512>_testm<mode>3<mask_scalar_merge_name>,
27068 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
27069 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
27070 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
27071 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
27072 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
27073 avx512cd_maskb_vec_dup<mode>,
27074 avx512cd_maskw_vec_dup<mode>,
27075 avx512dq_fpclass<mode><mask_scalar_merge_name>,
27076 avx512dq_vmfpclass<mode>,
27077 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
27080 2019-01-03 Martin Sebor <msebor@redhat.com>
27082 PR tree-optimization/88659
27083 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
27085 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
27087 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
27088 unaligned vsx and avoid lxvd2x/stxvd2x.
27089 (gen_lvx_v4si_move): New function.
27091 2019-01-03 Tom de Vries <tdevries@suse.de>
27093 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
27094 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
27096 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
27098 2019-01-03 Tom de Vries <tdevries@suse.de>
27100 * config/nvptx/nvptx.c (struct offload_attrs): New.
27101 (populate_offload_attrs): New function. Factor mask extraction out of
27102 nvptx_reorg. Add extraction of dimensions.
27103 (nvptx_reorg): Use populate_offload_attrs.
27105 2019-01-03 Tom de Vries <tdevries@suse.de>
27107 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
27108 cases for oacc_min_dims_p and routine_p. Add asserts for
27109 oacc_default_dims_p and offload_region_p.
27111 2019-01-03 Tom de Vries <tdevries@suse.de>
27113 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
27114 factored out of ...
27115 (nvptx_goacc_validate_dims): ... here.
27117 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27119 PR tree-optimization/85574
27120 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
27122 (struct ssa_equip_hash_traits): Declare.
27123 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
27125 2019-01-03 Jakub Jelinek <jakub@redhat.com>
27128 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
27129 change it to qualified_type.
27131 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27133 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
27134 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
27136 2019-01-02 Martin Sebor <msebor@redhat.com>
27137 Jeff Law <law@redhat.com>
27139 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
27140 (get_range_strlen_tree): Update appropriately.
27142 * gimple-fold.h (get_range_strlen): Drop unused last argument.
27144 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
27145 rather than set_range_info.
27146 * tree-ssa-strlen.c (set_strlen_range): Extracted from
27147 maybe_set_strlen_range. Handle potentially boundary crossing
27148 cases more conservatively.
27149 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
27150 Call set_strlen_range.
27151 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
27153 PR middle-end/88663
27154 * gimple-fold.c (get_range_strlen): Update prototype to no longer
27155 need the flexp argument.
27156 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
27157 from calls to get_range_strlen. Update comments. Just update
27158 VAL for an unterminated const char array and let the reset of the
27159 code handle it normally. No longer try to set *flexp. Adjust
27161 (get_range_strlen): Update for the new get_range_strlen API.
27162 (get_maxval_strlen): Similarly.
27163 (gimple_fold_builtin_strlen): Handle update meaning of return value
27164 from get_range_strlen.
27165 * gimple-ssa-sprintf.c (get_string_length): Update for the new
27166 get_range_strlen API.
27168 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
27171 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
27172 false at WPA time when body was removed.
27174 2019-01-02 Martin Liska <mliska@suse.cz>
27176 PR tree-optimization/88650
27177 * predict.c (set_even_probabilities): Calculate probability
27178 remainer only when really used.
27180 2019-01-02 Richard Biener <rguenther@suse.de>
27182 PR middle-end/88651
27183 * tree-data-ref.c (analyze_subscript_affine_affine): Use
27184 widest_ints when mangling max_stmt_execution results.
27186 2019-01-02 Richard Biener <rguenther@suse.de>
27188 PR tree-optimization/88621
27189 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
27190 bitfields when canoncalizing.
27192 2019-01-02 Richard Biener <rguenther@suse.de>
27195 * config/i386/x86-tune-costs.h (intel_cost): Adjust
27196 cost of cheap SSE instruction.
27198 2019-01-02 Richard Biener <rguenther@suse.de>
27201 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
27202 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
27204 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
27205 set after UIDs before splitting them.
27207 2019-01-01 Martin Sebor <msebor@redhat.com>
27208 Jeff Law <law@redhat.com>
27210 * gimple-fold.c (get_range_strlen_tree): Record if the computed
27211 length is optimistic. If it is, then arrange to compute the
27212 conservative length as well.
27214 * gimple-fold.h (get_range_strlen): Update prototype.
27215 * builtins.c (check_access): Update call to get_range_strlen to use
27216 c_strlen_data pointer. Change various variable accesses to instead
27217 pull data from the c_strlen_data structure.
27218 (check_strncat_sizes, expand_builtin_strncat): Likewise.
27219 * calls.c (maybe_warn_nonstring_arg): Likewise.
27220 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
27221 minimum length if maximum lengh is unknown.
27222 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
27223 that used c_strlen, it's no longer needed. Restructure slightly.
27224 (format_string): Set unlikely range appropriately.
27225 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
27227 (get_range_strlen): Accept c_strlen_data pointer for external
27228 call sites as well. Pass through to call to internal get_range_strlen.
27229 Adjust minlen, maxlen and maxbound as needed.
27230 (get_maxval_strlen): Update comments.
27231 (gimple_fold_builtin_strlen): Update call to get_range_strlen
27232 to use c_strlen_data pointer. Change variable accesses to instead
27233 use c_strlen_data data members.
27235 * gimple-fold.c (get_range_strlen): Update prototype.
27236 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
27237 local variables. Use pdata to return information to caller.
27238 Update calls to get_range_strlen. Update pdata->maxbound.
27239 (get_range_strlen -- static version): Similarly.
27240 (get_range_strlen -- extern version): Update for internal
27241 get_range_strlen API change. Convert to external data format.
27242 (get_maxval_strlen): Similarly.
27244 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
27246 * coverage.c (get_coverage_counts): Use current_function_decl.
27247 * profile.c (read_thunk_profile): New function.
27248 (branch_prob): Add THUNK parameter.
27249 * tree-profile.c (tree_profiling): Handle thunks.
27250 * value-prof.c (init_node_map): Handle thunks.
27251 * value-prof.h (branch_prob): Upate prototype.
27252 (read_thunk_profile): Declare.
27254 2019-01-01 Jakub Jelinek <jakub@redhat.com>
27256 Update copyright years.
27258 * gcc.c (process_command): Update copyright notice dates.
27259 * gcov-dump.c (print_version): Ditto.
27260 * gcov.c (print_version): Ditto.
27261 * gcov-tool.c (print_version): Ditto.
27262 * gengtype.c (create_file): Ditto.
27263 * doc/cpp.texi: Bump @copying's copyright year.
27264 * doc/cppinternals.texi: Ditto.
27265 * doc/gcc.texi: Ditto.
27266 * doc/gccint.texi: Ditto.
27267 * doc/gcov.texi: Ditto.
27268 * doc/install.texi: Ditto.
27269 * doc/invoke.texi: Ditto.
27271 Copyright (C) 2019 Free Software Foundation, Inc.
27273 Copying and distribution of this file, with or without modification,
27274 are permitted in any medium without royalty provided the copyright
27275 notice and this notice are preserved.