1 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
3 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
5 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7 * genmodes.c (mode_data::order): New field.
8 (blank_mode): Update accordingly.
9 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
10 (make_vector_modes): Likewise.
11 (VECTOR_MODES): Update use accordingly.
12 (cmp_modes): Sort by the new order field ahead of sorting by size.
13 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
14 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
15 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
16 (aarch64_classify_vector_mode): Handle the new partial modes.
17 (aarch64_vl_bytes): New function.
18 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
19 when counting the number of registers in an SVE mode.
20 (aarch64_class_max_nregs): Likewise.
21 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
23 (aarch64_classify_address): Treat partial vectors analogously
25 (aarch64_print_address_internal): Consolidate the printing of
26 MUL VL addresses, using aarch64_vl_bytes as the number of
27 bytes represented by "VL".
28 (aarch64_vector_mode_supported_p): Reject partial vector modes.
30 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
32 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
33 rather than known_lt when choosing frame layouts.
35 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
37 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
38 that all the adjustments add up to the full frame size.
39 Use crtl->outgoing_args_size directly as the final adjustment
42 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
44 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
45 "frame" reference instead of always referring directly to
46 "cfun->machine->frame".
48 2019-10-16 Richard Biener <rguenther@suse.de>
50 PR tree-optimization/92119
51 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
52 against missing bswap lhs.
54 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
57 * poly-int.h (constant_lower_bound_with_limit): New function.
58 (constant_upper_bound_with_limit): Likewise.
59 * doc/poly-int.texi: Document them.
60 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
61 into the worst-case INTEGER_CST bounds.
63 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
66 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
67 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
68 * ipa-predicat.h (struct expr_eval_op): New struct.
69 (expr_eval_ops): New typedef.
70 (struct condition): Add type and param_ops fields, remove size field.
71 (add_condition): Replace size parameter with type parameter, add
73 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
74 (predicate::add_clause): Add comparisons on type and param_ops.
75 (dump_condition): Add debug dump for param_ops.
76 (remap_after_inlining): Adjust call arguments to add_condition.
77 (add_condition): Replace size parameter with type parameter, add
78 param_ops parameter. Unshare constant value used in conditions.
79 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
80 parameter expressions using param_ops.
81 (decompose_param_expr): New function.
82 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
83 to replace call to unmodified_parm_or_parm_agg_item.
84 (set_switch_stmt_execution_predicate): Likewise.
85 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
87 (inline_read_section): Read param_ops from summary stream.
88 (ipa_fn_summary_write): Write param_ops to summary stream.
90 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
92 PR rtl-optimization/92107
93 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
96 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
98 * config/darwin.c: Update description of fix and continue.
100 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
102 * config/darwin.c (darwin_binds_local_p): Update to call
103 default_binds_local_p_3 () directly. amend comments.
105 2019-10-15 Richard Biener <rguenther@suse.de>
107 * lto-streamer-out.c (lto_variably_modified_type_p): New.
108 (tree_is_indexable): Use it.
109 * tree-streamer-out.c (pack_ts_type_common_value_fields):
110 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
111 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
113 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
115 * config/msp430/msp430.md (zero_extendqipsi2): New.
116 (zero_extendqisi2): Optimize case where src register and base dst
117 register are the same.
118 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
119 (zero_extendpsisi2): Optimize r->m case.
120 Add unnamed insn patterns to catch insns combine searches for when
121 optimizing pointer manipulation.
123 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
125 * config/msp430/msp430.md: Group zero_extend* insns together.
127 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
129 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
131 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
133 (msp430_subreg): Likewise.
134 (msp430_split_addsi): Likewise.
135 (msp430_print_operand_addr): Likewise.
136 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
137 (USE_STORE_POST_INCREMENT): Define.
138 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
139 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
140 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
141 (msp430_general_dst_operand): New.
142 (msp430_general_dst_nonv_operand): New.
143 (msp430_nonsubreg_operand): Remove.
144 (msp430_nonsubreg_dst_operand): New.
145 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
146 of defunct msp430_nonsubreg_operand.
147 (msp430_nonsubregnonpostinc_or_imm_operand): New.
149 2019-10-15 Richard Biener <rguenther@suse.de>
151 PR tree-optimization/91929
152 * tree-ssa-pre.c (pre_expr_d::loc): New member.
153 (get_or_alloc_expr_for_name): Initialize it.
154 (get_or_alloc_expr_for_constant): Likewise.
155 (phi_translate_1): Copy it.
156 (create_expression_by_pieces): Use the original location
157 of the expression for the inserted stmt.
158 (compute_avail): Record the location of the stmt for the
161 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
163 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
164 before using tree_to_uhwi.
166 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
168 * config/s390/s390.md: Run %a0:DI splitters only after reload.
170 2019-10-15 Richard Biener <rguenther@suse.de>
172 PR tree-optimization/92094
173 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
174 do not adjust the reduction definition def type.
175 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
176 defines the latch argument of the PHI.
178 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
181 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
182 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
183 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
184 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
185 _mm_maskz_roundscale_round_sd): New intrinsics.
186 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
187 __builtin_ia32_rndscales?_mask_round builtins instead of
188 __builtin_ia32_rndscales?_round.
189 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
190 __builtin_ia32_rndscalesd_round): Remove.
191 (__builtin_ia32_rndscaless_mask_round,
192 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
194 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
195 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
196 ... this, adjust and add subst atrributes to make it maskable.
198 2019-10-15 Richard Biener <rguenther@suse.de>
201 * common.opt (fallow-store-data-races): New.
202 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
203 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
204 * doc/invoke.texi (fallow-store-data-races): Document.
205 (--param allow-store-data-races): Remove docs.
206 * opts.c (default_options_table): Enable -fallow-store-data-races
208 (default_options_optimization): Do not enable --param
209 allow-store-data-races at -Ofast.
210 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
211 instead of PARAM_ALLOW_STORE_DATA_RACES.
212 * tree-ssa-loop-im.c (execute_sm): Likewise.
214 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
216 PR tree-optimization/92085
217 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
218 instead of calling it unconditionally after
219 delete_dead_or_redundant_assignment and fix indentation.
221 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
223 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
225 (*fmsub<SDF:mode>4): Likewise.
226 *fnmsub<SDF:mode>4): Likewise.
227 (*fnmadd<SDF:mode>4): Likewise.
229 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
231 * doc/tree-ssa.texi: Update renamed macro name.
233 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
235 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
238 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
240 * config/darwin.c: Use unsigned ints for the picbase label
241 counters, initialise the vars explicitly.
242 (update_pic_label_number_if_needed): Move a variable declaration
243 to where it's needed.
244 (machopic_output_function_base_name): Use a more strict checking
245 assert, and and unsigned int for the picbase label counter.
246 (machopic_get_function_picbase): Likewise.
248 2019-10-14 Richard Biener <rguenther@suse.de>
251 * dse.c (scan_insn): Use param max_active_local_stores.
252 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
253 based on optimization level.
254 * loop-invariant.c (move_loop_invariants): Adjust
255 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
256 * opts.c (default_options_optimization): Do not adjust
257 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
258 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
260 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
262 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
264 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
266 * config/arm/arm.c (arm_option_override): Don't override sched
269 2019-10-14 Richard Biener <rguenther@suse.de>
271 PR tree-optimization/92069
272 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
273 cycles do not set vect_nested_cycle on the latch definition.
275 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
277 * function-abi.h (expr_callee_abi): Declare.
278 * function-abi.cc (expr_callee_abi): New function.
280 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
282 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
284 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
285 non-zero being represented as [1,MAX].
287 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
289 * tree-sra.c (dump_access): Add missing braces.
291 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
293 * config/darwin.c (machopic_indirection_name): Rework the
294 function to emit linker-visible symbols only for indirections
295 in the data section. Clean up the code and update comments.
297 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
299 * config/darwin.c (machopic_indirect_data_reference): Remove
302 2019-10-13 Nathan Sidwell <nathan@acm.org>
304 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
306 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
308 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
311 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
313 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
314 so non-virutal are before virutals.
315 (output_function): Avoid body modifications.
317 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
319 * config/pa/pa.c (pa_output_call): Load descriptor address to register
320 %r22. Load function address before global pointer.
321 (pa_attr_length_indirect_call): Adjust length of inline versions of
323 (pa_output_indirect_call): Remove fast inline version of $$dyncall
324 before normal cases. Update inline $$dyncall sequences to preserve
325 function descriptor address in register %r22.
326 (TRAMPOLINE_CODE_SIZE): Adjust.
327 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
328 register %r22 contains trampoline address.
329 (pa_trampoline_init): Adjust offsets.
330 (pa_trampoline_adjust_address): Likewise.
331 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
333 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
336 * config/darwin.c (machopic_indirection): New field to flag
337 non-lazy-symbol-pointers in the data section.
338 (machopic_indirection_name): Compute if an indirection should
339 appear in the data section.
340 (machopic_output_data_section_indirection): New callback split
341 from machopic_output_indirection.
342 (machopic_output_stub_indirection): Likewise.
343 (machopic_output_indirection): Retain the code for non-lazy
344 symbol pointers in their regular section.
345 (machopic_finish): Use the new callbacks to order the indirection
348 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
350 * config/darwin-protos.h (machopic_finish): Delete.
351 * config/darwin.c (machopic_finish): Make static.
353 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
355 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
356 sections when building kernel extension code.
358 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
360 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
363 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
365 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
368 2019-10-12 Jakub Jelinek <jakub@redhat.com>
371 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
372 <case VEC_COND_EXPR>: Return false with *handled = false.
373 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
374 recursing on the first operand.
375 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
376 instead of tree_could_trap_p.
377 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
379 2019-10-11 Jim Wilson <jimw@sifive.com>
381 PR rtl-optimization/91860
382 * combine.c (subst): If new_rtx is a constant, also check for
383 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
385 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
387 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
388 INTVAL when calling store_bit_field.
390 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
392 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
395 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
397 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
398 vectorizable_live_operation.
399 (vectorizable_live_operation): Adjust parameters.
400 * tree-vect-stmts.c (vect_init_vector,
401 vect_gen_widened_results_half): Fix typo in function comment.
402 (can_vectorize_live_stmts): Adjust function comment.
403 Adjust parameters. Adjust call to vectorizable_live_operation.
404 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
405 (vect_transform_stmt): Adjust function comment. Adjust call to
406 can_vectorize_live_stmts.
407 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
409 2019-10-11 Richard Biener <rguenther@suse.de>
411 PR tree-optimization/90883
412 PR tree-optimization/91091
413 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
414 alias-sets both for recording VN table entries and continuing
415 walking after translating through copies. Handle same-sized
416 reads from SSA names by returning the plain SSA name.
417 (eliminate_dom_walker::eliminate_stmt): Properly handle
418 non-size precision stores in redundant store elimination.
420 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
422 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
423 (ggc_collect): Dump later to not interfere with release_page dump.
424 (ggc_trim): New function.
425 * ggc-none.c (ggc_trim): New.
426 * ggc.h (ggc_trim): Declare.
428 2019-10-11 Richard Biener <rguenther@suse.de>
430 PR tree-optimization/92066
431 PR tree-optimization/92046
432 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
433 Fix bogus cost model check.
435 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
437 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
438 (LANG_HOOKS_DECLS): Add it.
439 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
440 update comment for omp_is_optional_argument.
441 * omp-general.c (omp_is_allocatable_or_ptr): New.
442 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
443 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
444 Fortran's optional arguments and allocatable/pointer scalars
445 with use_device_addr.
447 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
450 * config/s390/2827.md: Add new opcodes.
451 * config/s390/2964.md: Likewise.
452 * config/s390/3906.md: Likewise.
453 * config/s390/8561.md: Likewise.
454 * config/s390/s390-builtins.def (s390_vfchesb): Use
455 the new vec_cmpgev4sf_quiet_nocc.
456 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
457 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
458 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
459 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
460 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
461 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
462 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
463 * config/s390/s390-modes.def (CCSFPS): New mode.
464 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
465 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
466 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
467 (s390_expand_vec_compare): Use non-signaling patterns where
469 (s390_reverse_condition): Support CCSFPS.
470 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
471 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
472 (asm_fcmp_op): Likewise.
473 (*smaxv2df3_vx): Use pattern for quiet comparison.
474 (*sminv2df3_vx): Likewise.
475 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
476 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
477 (vec_cmpgt<mode>_quiet_nocc): Likewise.
478 (vec_cmplt<mode>_quiet_nocc): New expander.
479 (vec_cmpge<mode>_quiet_nocc): New pattern.
480 (vec_cmple<mode>_quiet_nocc): New expander.
481 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
482 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
483 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
484 (*vec_cmpge<mode>_signaling_nocc): Likewise.
485 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
486 (vec_cmpungt<mode>): New expander.
487 (vec_cmpunge<mode>): Likewise.
488 (vec_cmpuneq<mode>): Use quiet patterns.
489 (vec_cmpltgt<mode>): Allow only on z14+.
490 (vec_cmpordered<mode>): Use quiet patterns.
491 (vec_cmpunordered<mode>): Likewise.
492 (VEC_CMP_EXPAND): Add ungt and unge.
494 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
496 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
498 * lto-streamer-out.c: Include tree-dfa.h.
499 (output_cfg): Do not use cfun.
500 (lto_prepare_function_for_streaming): New.
501 (output_function): Do not push cfun; do not initialize loop optimizer.
502 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
503 * passes.c (ipa_write_summaries): Use it.
504 (ipa_write_optimization_summaries): Do not modify bodies.
505 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
506 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
507 * tree-ssa-dse.c (pass_dse::execute): Update use of
508 renumber_gimple_stmt_uids.
509 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
511 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
513 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
514 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
516 2019-10-10 Joseph Myers <joseph@codesourcery.com>
518 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
520 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
521 Also define DFP macros for these conditions.
522 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
523 DEC128_SUBNORMAL_MIN): Do not define.
524 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
525 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
527 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
528 Sandra Loosemore <sandra@codesourcery.com>
531 * doc/lto.texi (IPA): Reference to the IPA passes.
532 * doc/passes.texi (Pass manager): Add node IPA passes and
533 description for each IPA pass.
535 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
537 * ipa-reference.c: Do not include splay-tree.h
538 (reference_vars_to_consider): Turn to hash map.
539 (get_static_name, ipa_init, analyze_function, propagate,
540 stream_out_bitmap, ipa_reference_write_optimization_summary,
541 ipa_reference_write_optimization_summary): Update.
543 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
545 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
547 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
549 * config/darwin.c: Lookup Objective C metadata and force indirection
552 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
554 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
556 (mem_operand_gpr): Add check for prefixed addresses.
557 (mem_operand_ds_form): Add check for prefixed addresses.
558 (rs6000_legitimate_offset_address_p): If we support prefixed
559 addresses, check for a 34-bit offset instead of 16-bit.
560 (rs6000_legitimate_address_p): Add check for prefixed addresses.
561 Do not allow load/store with update if the address is prefixed.
562 (rs6000_mode_dependent_address): If we support prefixed
563 addresses, check for a 34-bit offset instead of 16-bit.
565 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
568 * config/s390/vector.md (vcond_comparison_operator): New
570 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
572 2019-10-10 David Malcolm <dmalcolm@redhat.com>
575 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
577 * configure.ac (--with-documentation-root-url): New option.
578 * configure: Regenerate.
579 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
580 option URL, add it as a new string field of the diagnostic option.
581 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
582 (print_option_information): If get_option_url is non-NULL, call
583 it, and if the result is non-NULL, potentially emit an escape
584 sequence to markup the option text with the resulting URL.
585 * diagnostic.h (diagnostic_context::get_option_url): New callback.
586 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
587 example of JSON output.
588 * opts-diagnostic.h (get_option_url): New decl.
589 * opts.c (get_option_url): New function.
590 * toplev.c (general_init): Initialize the get_option_url callback.
592 2019-10-10 David Malcolm <dmalcolm@redhat.com>
595 * common.opt (fdiagnostics-urls=): New option.
596 (diagnostic-url.h): Add SourceInclude.
597 (diagnostic_url_rule): New enum.
598 * diagnostic-color.c: Include "diagnostic-url.h".
599 (diagnostic_urls_enabled_p): New function.
600 * diagnostic-url.h: New file.
601 * diagnostic.c: Include "diagnostic-url.h".
602 (diagnostic_urls_init): New function.
603 * diagnostic.h (diagnostic_urls_init): New decl.
604 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
605 -fdiagnostics-urls to the list.
606 (-fdiagnostics-urls): New option.
607 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
608 (driver::global_initializations): Call diagnostic_urls_init.
609 * opts-global.c (init_options_once): Likewise.
610 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
611 * pretty-print.c (pretty_printer::pretty_printer): Initialize
613 (pp_begin_url): New function.
614 (pp_end_url): New function.
615 (selftest::test_urls): New selftest.
616 (selftest::pretty_print_c_tests): Call it.
617 * pretty-print.h (pretty_printer::show_urls): New field.
618 (pp_begin_url): New decl.
619 (pp_end_url): New decl.
621 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
624 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
626 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
629 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
630 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
631 also for TARGET_FPU_SH4_300.
632 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
634 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
635 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
636 (*negsf2_i): Split into ...
637 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
638 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
639 (**abssf2_i): Split into ...
640 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
641 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
642 (*negdf2_i): Split into ...
643 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
644 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
645 (**abssf2_i): Split into ...
646 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
648 2019-10-10 Richard Biener <rguenther@suse.de>
651 * opts.c (finish_options): Do not influence global --params
652 from options that are adjustable per function.
653 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
654 Apply --param adjustment based on active cost-model.
655 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
656 further store-sinking when vectorization or if-conversion
659 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
662 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
663 rather than ggc_alloc_cleared to alloc symbol table.
664 * toplev.c (general_init): Likewise.
665 * cgraph.h (symbol_table): Explicitly construct every field.
667 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
669 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
671 * config.gcc: Add z15 as option for --with-arch and --with-tune
673 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
674 error reporting for unsupported builtins.
675 * config/s390/s390-opts.h (enum processor_type): Rename
676 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
677 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
678 * config/s390/driver-native.c (s390_host_detect_local_cpu):
680 * config/s390/s390-builtins.def: Likewise.
681 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
682 (s390_expand_builtin): Add missing check for unsupported builtins.
683 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
684 (s390_rtx_costs): Likewise.
685 (s390_get_sched_attrmask): Rename arch13 to z15.
686 (s390_get_unit_mask): Likewise.
687 (s390_is_fpd): Likewise.
688 (s390_is_fxd): Likewise.
689 * config/s390/s390.h (enum processor_flags): Likewise.
690 * config/s390/s390.md: Likewise.
691 * config/s390/vector.md: Likewise.
692 * config/s390/vx-builtins.md: Likewise.
693 * config/s390/s390.opt: Add z15 to processor_type value.
695 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
698 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
700 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
701 ("split_stack_data", "split_stack_call")
702 ("split_stack_call_<mode>", "split_stack_cond_call")
703 ("split_stack_cond_call_<mode>"): Remove.
704 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
706 * config/s390/s390.c (s390_output_split_stack_data): New function.
707 (s390_expand_split_stack_prologue): Use the merged expander.
709 2019-10-09 Martin Sebor <msebor@redhat.com>
711 PR tree-optimization/90879
712 * builtins.c (check_access): Avoid using maxbound when null.
713 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
714 * doc/invoke.texi (-Wstring-compare): Document new warning option.
715 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
717 (get_range_strlen): Overwrite initial maxbound when non-null.
718 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
720 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
721 (used_only_for_zero_equality): New function.
722 (handle_builtin_memcmp): Call it.
723 (determine_min_objsize): Return an integer instead of tree.
724 (get_len_or_size, strxcmp_eqz_result): New functions.
725 (maybe_warn_pointless_strcmp): New function.
726 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
727 between a longer string and a smaller array.
728 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
730 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
732 * config/darwin.c (darwin_override_options): Make the check for
733 Objective-C ABI version more specific for 64bit code.
735 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
737 * config/darwin.c (machopic_indirect_data_reference): Set flag to
738 indicate that the new symbol is an indirection.
739 (machopic_indirect_call_target): Likewise.
740 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
741 (MACHO_SYMBOL_INDIRECTION_P): New.
742 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
744 2019-10-08 Jason Merrill <jason@redhat.com>
746 * doc/invoke.texi: Document -fconcepts-ts.
748 2019-10-09 Richard Biener <rguenther@suse.de>
750 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
751 allow stmts other than GIMPLE_ASSIGN in nested cycles.
753 2019-10-08 Richard Biener <rguenther@suse.de>
755 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
756 (_stmt_vec_info::force_single_cycle): Likewise.
757 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
758 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
759 * tree-vect-loop.c (vectorizable_reduction): Set
760 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
761 (vect_transform_reduction): Use them to remove redundant code.
762 (vect_transform_cycle_phi): Likewise.
764 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
766 PR tree-optimization/90836
767 * gcc/match.pd (popcount): New pattern.
769 2019-10-08 Martin Sebor <msebor@redhat.com>
773 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
774 again once nbytes has been set. Set the access size when not yet set.
776 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
778 * config/darwin.c (machopic_select_section): Remove dead code for
779 old Objective-C section selection method, replace with unreachable.
781 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
783 * config/darwin.c (machopic_indirect_data_reference): Check for
784 required indirections before making direct access to defined
786 (machopic_output_indirection): Place the indirected pointes for
787 required indirections into the non-lazy symbol pointers section.
788 (darwin_encode_section_info):
789 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
790 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
792 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
795 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
796 instead of ALL_SSE_REG to check if function call preserves some
797 256-bit SSE registers.
799 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
801 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
802 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
803 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
805 2019-10-08 Richard Biener <rguenther@suse.de>
807 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
808 (_stmt_vec_info::is_reduc_info): Add.
809 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
810 (vectorizable_condition): Remove.
811 (vectorizable_shift): Likewise.
812 (vectorizable_reduction): Adjust.
813 (info_for_reduction): New.
814 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
815 (vect_analyze_scalar_cycles_1): ... here.
816 (vect_analyze_loop_operations): Adjust.
817 (needs_fold_left_reduction_p): Simplify for single caller.
818 (vect_is_simple_reduction): Likewise. Remove stmt restriction
819 for nested cycles not part of double reductions.
820 (vect_model_reduction_cost): Pass in the reduction type.
821 (info_for_reduction): New function.
822 (vect_create_epilog_for_reduction): Use it, access reduction
823 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
824 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
825 (vectorize_fold_left_reduction): Remove pointless assert.
826 (vectorizable_reduction): Analyze the full reduction when
827 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
828 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
829 stmt code-generation to vectorizable_* in most cases. Verify
830 code-generation only for cases handled by
831 vect_transform_reductuon.
832 (vect_transform_reduction): Use info_for_reduction to get at
833 reduction meta. Simplify.
834 (vect_transform_cycle_phi): Likewise.
835 (vectorizable_live_operation): Likewise.
836 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
837 at the PHI node for STMT_VINFO_REDUC_TYPE.
838 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
839 longer necessary code.
840 * tree-vect-stmts.c (vectorizable_shift): Make static again.
841 (vectorizable_condition): Likewise. Get at reduction related
842 info via info_for_reduction.
843 (vect_analyze_stmt): Adjust.
844 (vect_transform_stmt): Likewise.
845 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
846 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
848 2019-10-08 Joseph Myers <joseph@codesourcery.com>
850 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
851 -fno-fp-int-builtin-inexact default for C2X.
853 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
854 Richard Biener <rguenther@suse.de>
856 PR tree-optimization/91532
857 * tree-if-conv.c: Include tree-ssa-dse.h.
858 (ifcvt_local_dce): Change param from bb to loop,
859 and call dse_classify_store.
860 (tree_if_conversion): Pass loop instead of loop->header as arg
862 * tree-ssa-dse.c: Include tree-ssa-dse.h.
863 (delete_dead_or_redundant_assignment): Remove static qualifier from
864 declaration, and add prototype in tree-ssa-dse.h.
865 (dse_store_status): Move to tree-ssa-dse.h.
866 (dse_classify_store): Remove static qualifier and add new tree param
867 stop_at_vuse, and add prototype in tree-ssa-dse.h.
868 * tree-ssa-dse.h: New header.
870 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
872 * config/darwin.c (machopic_output_indirection): Don't put
873 hidden symbol indirections into the .data section, use the
874 non-lazy symbol pointers section as normal.
875 (darwin_encode_section_info): Record if a symbol is hidden.
876 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
877 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
879 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
881 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
882 predicates instead of accessing bits directly.
883 (machopic_indirect_call_target): Likewise.
884 (machopic_output_indirection): Likewise.
885 (darwin_encode_section_info): Improve description. Use renamed
886 symbol flags. Use predicate macros for variables and functions.
888 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
889 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
890 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
891 (MACHO_SYMBOL_VARIABLE_P): New.
892 (MACHO_SYMBOL_DEFINED_P):New.
893 (MACHO_SYMBOL_STATIC_P): New.
894 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
895 (SYMBOL_FLAG_SUBT_DEP): New.
896 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
898 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
900 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
901 (msp430_expand_epilogue): Likewise.
902 * config/msp430/predicates.md: Likewise.
903 * config/msp430/msp430.md: Likewise.
904 Replace blocks of 8 spaces with tabs.
906 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
908 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
909 * config/msp430/msp430.c (msp430_split_addsi): New.
910 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
911 a block of C code for splitting addsi.
913 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
915 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
916 ix86_expand_rounddf_32): Reorder functions.
917 * config/i386/i386-protos.h: Update.
919 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
921 * config.in: Regenerate.
922 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
923 Add new "Yx" constraint.
924 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
926 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
928 * config/msp430/msp430.c (msp430_option_override): Allow the lower
929 code/data region to be selected in the small memory model.
930 (msp430_section_attr): Don't warn if the "section" and "lower"
931 attributes are used together.
932 (msp430_handle_generic_attribute): Likewise.
933 (msp430_var_in_low_mem): New function.
934 (TARGET_ENCODE_SECTION_INFO): Define.
935 (msp430_encode_section_info): New function.
936 (gen_prefix): Return early in the small memory model.
937 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
938 ".lower" prefix if -m{code,data}-region=lower have been passed.
939 (msp430_output_aligned_decl_common): Emit common symbols when
940 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
942 (TARGET_ASM_FILE_END): Define.
943 (msp430_file_end): New function.
944 (msp430_do_not_relax_short_jumps): Allow relaxation when
945 function will be in the lower region.
946 (msp430_op_not_in_high_mem): New function.
947 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
948 the 'X' operand selector.
949 Clarify comment for 'x' operand selector.
950 * config/msp430/msp430.h (LINK_SPEC): Propagate
951 -m{code,data}-region to the linker via spec function
952 msp430_propagate_region_opt.
953 (msp430_propagate_region_opt): New prototype.
954 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
955 (SYMBOL_FLAG_LOW_MEM): Define.
956 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
958 (zero_extendqihi2): Fix operand number used by "%X" selector.
959 (zero_extendqisi2): Likewise.
960 (zero_extendhisi2): Likewise.
961 (movqi): Use "Yx" constraint in place of "%X" operand selector.
966 (addhi3_cy): Likewise.
967 (addchi4_cy): Likewise.
971 (bic<mode>3): Likewise.
972 (and<mode>3): Likewise.
973 (ior<mode>3): Likewise.
974 (xor<mode>3): Likewise.
975 (slli_1): Add missing "%X" operand selector.
983 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
985 (cbranchhi4_real): Likewise.
986 (cbranchqi4_reversed): Likewise.
987 (cbranchhi4_reversed): Likewise.
988 (*bitbranch<mode>4): Likewise.
989 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
990 * config/msp430/msp430.opt (mcode-region=): Set default to
991 MSP430_REGION_LOWER. Improve docstring.
992 (mdata-region=): Likewise.
993 (muse-lower-region-prefix): New option.
994 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
995 mdata-region=none multilib.
996 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
997 mdata-region=none multilib.
998 MULTILIB_EXCEPTIONS: Remove.
999 MULTILIB_REQUIRED: Define.
1000 * configure: Regenerate.
1001 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1002 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1003 * doc/extend.texi: Clarify comment for {upper,lower,either}
1004 function attributes.
1005 Add separate description for "lower" variable attribute.
1007 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1010 * optabs-tree.c (vcond_icode_p): New function.
1011 (vcond_eq_icode_p): Likewise.
1012 (expand_vec_cond_expr_p): Use vcond_icode_p and
1014 * optabs.c (can_vcond_compare_p): New function.
1015 * optabs.h (can_vcond_compare_p): Likewise.
1017 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1020 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1021 caller passes a non-trapping condition.
1022 (is_gimple_condexpr): Allow trapping conditions.
1023 (is_gimple_condexpr_1): New helper function.
1024 (is_gimple_condexpr_for_cond): New function, acts like old
1026 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1027 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1028 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1029 * gimplify.c (gimplify_cond_expr): Use
1030 is_gimple_condexpr_for_cond.
1031 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1032 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1034 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1035 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1036 is_gimple_condexpr_for_cond, remove pointless tmp check
1037 (forward_propagate_into_cond): Remove pointless tmp check.
1039 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1041 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1042 match that of other gsi_next_* functions. Adjust the comment.
1043 (gsi_start_nonvirtual_phis): New function.
1044 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1045 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1047 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1049 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1050 setjmp situation here. Fix a verb's ending: "the exact variables or
1051 elements for which there are warnings depends" -> "... depend".
1053 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1055 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1057 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1059 * ipa-prop.c (ipa_vr::nonzero_p): New.
1060 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1062 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1063 * tree-vrp.c (range_has_numeric_bounds_p): New.
1064 (range_int_cst_p): Use range_has_numeric_bounds_p.
1065 (get_range_op_handler): New.
1066 (supported_types_p): New.
1067 (defined_ranges_p): New.
1068 (drop_undefines_to_varying): New.
1069 (range_fold_binary_symbolics_p): New.
1070 (range_fold_unary_symbolics_p): New.
1071 (range_fold_unary_expr): Extract out into above functions.
1072 (range_fold_binary_expr): Same.
1073 (value_range_base::normalize_addresses): New.
1074 (value_range_base::normalize_symbolics): Normalize addresses.
1075 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1077 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1079 * tree-vrp.c (value_range_base::singleton_p): Use
1080 value_range_base::num_pairs instead of vrp_val_is* to check
1081 if a range has one sub-range.
1083 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1085 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1086 DEF is not a true earlyclobber but is tied to a specific input
1087 operand, and so is effectively earlyclobber wrt inputs that have
1089 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1091 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1093 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1094 (pod_mode): Mark operators likewise.
1095 (scalar_int_mode): Mark non-default constructors and
1096 operators with CONSTEXPR.
1097 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1098 (fixed_size_mode): Likewise.
1100 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1103 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1104 and wrap the unspec_volatile in a parallel.
1105 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1106 the unspec_volatile.
1107 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1108 unspec_volatile to be wrapped in a parallel.
1109 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1110 (ix86_add_reg_usage_to_vzerouppers): New functions.
1111 (rest_of_handle_insert_vzeroupper): Use them to add register
1112 usage information to the vzeroupper instructions.
1114 2019-10-07 Richard Biener <rguenther@suse.de>
1116 PR tree-optimization/91975
1117 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1120 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1122 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1123 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1125 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1127 * config/darwin.c (darwin_override_options): Adjust objective-c
1128 ABI version error messages to avoid punctuation and contracted
1131 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1133 * ipa-inline.c: Fix type; compute size rather than self_size
1134 for size of caller function.
1136 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1139 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1140 choose const_data section for constants with relocations.
1141 (machopic_select_section): Pass relocation flag to
1142 darwin_rodata_section ().
1144 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1146 PR tree-optimization/91734
1147 * generic-match-head.c: Include fold-const-call.h.
1148 * match.pd (sqrt(x) cmp c): Check the boundary value and
1149 in case inexact computation of c*c affects comparison of the boundary,
1150 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1151 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1152 for -frounding-math. For c2, try the next smaller or larger floating
1153 point constant depending on comparison code and if it has the same
1154 sqrt as c2, use it instead of c2.
1156 2019-10-04 Martin Sebor <msebor@redhat.com>
1159 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1160 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1161 uninitialized objects.
1163 2019-10-04 Martin Sebor <msebor@redhat.com>
1165 * builtins.c (compute_objsize): Add an argument.
1166 * tree-object-size.c (addr_object_size): Same.
1167 (compute_builtin_object_size): Same.
1168 * tree-object-size.h (compute_builtin_object): Same.
1170 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1172 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1174 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1176 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1178 2019-10-04 Martin Jambor <mjambor@suse.cz>
1180 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1181 fntype when switching to calling memcpy instead of memset.
1183 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1185 * hash-table.h (hash_table::empty_slow): Don't assign
1186 size_t values to int variables.
1188 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1190 * expr.c (convert_mode_scalar): Remove shadowing local var.
1191 (emit_block_move): Rename local vars.
1192 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1193 (emit_push_insn): Rename local vars.
1194 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1195 shadowing local vars.
1196 (store_constructor): Remove shadowing local vars. Rename local var.
1197 (store_field, expand_cond_expr_using_cmove,
1198 expand_expr_real_2): Remove shadowing local vars.
1199 (expand_expr_real_1,
1200 do_store_flag): Remove shadowing local vars. Rename local vars.
1202 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1204 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1206 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1208 * genmatch.c (commutate): Rename local var.
1209 (lower_cond): Reuse local var.
1210 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1211 dt_operand::gen, dt_operand::gen_gimple_expr,
1212 dt_simplify::gen): Add a param. Rename generated vars.
1213 (decision_tree::insert_operand,
1214 (capture_info::walk_match, capture_info::walk_result,
1215 capture_info::walk_c_expr): Rename local vars.
1216 (expr::gen_transform): Rename generated vars.
1217 Use snprintf. Rename local vars.
1218 (capture::gen_transform, dt_operand::get_name,
1219 dt_operand::gen_opname): Rename generated vars.
1220 (write_predicate): Adjust call to gen_kids.
1221 (parser::get_internal_capture_id): Rename generated vars.
1222 (parser::parse_expr): Rename local vars.
1223 (parser::parse_if): Remove local var.
1224 (parser::parse_pattern, add_operator): Rename local vars.
1226 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1228 * builtins.def (DEF_C2X_BUILTIN): New macro.
1229 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1230 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1231 (strndup): Use DEF_C2X_BUILTIN.
1232 * coretypes.h (enum function_class): Add function_c2x_misc.
1234 2019-10-04 Maya Rashish <coypu@sdf.org>
1236 * ira-color.c (update_costs_from_allocno): Call
1237 ira_init_register_move_cost_if_necessary.
1239 2019-10-04 Jeff Law <law@redhat.com>
1241 * config/h8300/h8300.md (cpymemsi): Disable.
1242 (movmd, movmd_internal_<mode>, movstr, movsd):
1243 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1244 (movmd splitter, movsd splitter): Likewise.
1246 * range-op.cc (range_tests): Avoid two tests when ints and
1247 shorts are the same size.
1249 2019-10-04 Richard Biener <rguenther@suse.de>
1252 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1255 2019-10-04 Richard Biener <rguenther@suse.de>
1257 PR tree-optimization/91982
1258 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1259 against EXTRACT_LAST_REDUCTION.
1260 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1262 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1264 * range-op.o (value_range_from_overflowed_bounds): Rename from
1265 adjust_overflow_bound.
1266 (value_range_with_overflow): Rename from
1267 create_range_with_overflow.
1268 (create_possibly_reversed_range): Adjusted for above renames.
1269 (operator_*::wi_fold): Same.
1270 (cross_product_operator::wi_cross_productor): Same.
1272 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1274 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1275 -Wshadow=compatible-local): Fix description.
1276 Add an example where -Wshadow=compatible-local does not
1279 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1281 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1283 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1284 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1286 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1288 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1289 can_move_by_pieces issue.
1291 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1294 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1295 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1296 is available and the user has not set one on the command line.
1298 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1301 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1302 instead of REGNO equality check on addr.reg.
1304 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1306 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1307 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1308 * doc/invoke.texi (inline-heuristics-hint-percent,
1309 inline-heuristics-hint-percent-O2): Document.
1310 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1312 (can_inline_edge_by_limits_p): Use it.
1314 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1316 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1317 to print CONST_DOUBLEs.
1319 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1321 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1322 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1323 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1325 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1327 * Makefile.in (OBJS): Add range.o and range-op.o.
1328 Remove wide-int-range.o.
1329 * function-tests.c (test_ranges): New.
1330 (function_tests_c_tests): Call test_ranges.
1331 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1332 range_fold_unary_expr instead of extract_range_from_unary_expr.
1333 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1334 * range-op.cc: New file.
1335 * range-op.h: New file.
1336 * range.cc: New file.
1337 * range.h: New file.
1338 * selftest.h (range_tests): New prototype.
1339 * ssa.h: Include range.h.
1340 * tree-vrp.c (value_range_base::value_range_base): New
1342 (value_range_base::singleton_p): Do not call
1343 ranges_from_anti_range until sure we will need to.
1344 (value_range_base::type): Rename gcc_assert to
1345 gcc_checking_assert.
1346 (vrp_val_is_max): New argument.
1347 (vrp_val_is_min): Same.
1348 (wide_int_range_set_zero_nonzero_bits): Move from
1350 (extract_range_into_wide_ints): Remove.
1351 (extract_range_from_multiplicative_op): Remove.
1352 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1353 from extract_range_from_binary_expr.
1354 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1355 from extract_range_from_binary_expr.
1356 (extract_range_from_binary_expr): Remove.
1357 (normalize_for_range_ops): New.
1358 (range_fold_binary_expr): New.
1359 (range_fold_unary_expr): New.
1360 (value_range_base::num_pairs): New.
1361 (value_range_base::lower_bound): New.
1362 (value_range_base::upper_bound): New.
1363 (value_range_base::upper_bound): New.
1364 (value_range_base::contains_p): New.
1365 (value_range_base::invert): New.
1366 (value_range_base::union_): New.
1367 (value_range_base::intersect): New.
1368 (range_compatible_p): New.
1369 (value_range_base::operator==): New.
1370 (determine_value_range_1): Call range_fold_*expr instead of
1371 extract_range_from_*expr.
1372 * tree-vrp.h (class value_range_base): Add new constructors.
1373 Add methods for union_, intersect, operator==, contains_p,
1374 num_pairs, lower_bound, upper_bound, invert.
1375 (vrp_val_is_min): Add handle_pointers argument.
1376 (vrp_val_is_max): Same.
1377 (extract_range_from_unary_expr): Remove.
1378 (extract_range_from_binary_expr): Remove.
1379 (range_fold_unary_expr): New.
1380 (range_fold_binary_expr): New.
1381 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1382 range_fold_binary_expr instead of extract_range_from_binary_expr.
1383 (vr_values::extract_range_basic): Same.
1384 (vr_values::extract_range_from_unary_expr): Call
1385 range_fold_unary_expr instead of extract_range_from_unary_expr.
1386 * wide-int-range.cc: Remove.
1387 * wide-int-range.h: Remove.
1389 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1391 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1392 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1393 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1394 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1397 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1399 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1400 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1401 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1402 * glimits.h: Likewise.
1404 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1406 PR rtl-optimization/91976
1407 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1408 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1409 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1411 2019-10-02 Martin Sebor <msebor@redhat.com>
1413 PR tree-optimization/80936
1414 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1416 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1418 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1419 instead of reg_class_contents[ALL_REGS].
1421 2019-09-30 Jason Merrill <jason@redhat.com>
1423 Add some hash_map_safe_* functions like vec_safe_*.
1424 * hash-map.h (default_hash_map_size): New variable.
1425 (create_ggc): Use it as default argument.
1426 (hash_map_maybe_create, hash_map_safe_get)
1427 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1429 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1431 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1432 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1433 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1434 (can_inline_edge_by_limits_p): Use it.
1435 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1436 (want_inline_small_function_p): Use O2 bounds.
1437 (edge_badness): LIkewise.
1438 * opts.c (default_options): Add OPT_finline_functions.
1439 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1440 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1442 * doc/invoke.texi (-finline-functions): Update documentation.
1443 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1444 inline-min-speedup-O2): Document.
1445 (early-inlining-insns-O2): Simplify docs.
1447 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1449 PR rtl-optimization/87047
1450 * ifcvt.c (average_cost): New static function. Use it...
1451 (noce_process_if_block): ... here.
1453 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1455 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1456 * config/rs6000/rs6000-string.c (expand_block_move): Add
1458 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1459 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1461 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1463 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1464 (expand_builtin_memcpy): Use might_overlap parm.
1465 (expand_builtin_mempcpy_args): Use might_overlap parm.
1466 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1467 (expand_builtin_memory_copy_args): Add might_overlap parm.
1468 * expr.c (emit_block_move_via_cpymem): Rename to
1469 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1470 or movmem optab as appropriate.
1471 (emit_block_move_hints): Add might_overlap parm, do the right
1472 thing for might_overlap==true.
1473 * expr.h (emit_block_move_hints): Update prototype.
1475 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1477 * tree-eh.h (unsplit_eh_edges): Declare.
1478 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1479 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1480 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1481 (struct store_immediate_info): Add lp_nr field.
1482 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1483 initialize lp_nr with it.
1484 (struct merged_store_group): Add lp_nr and only_constants fields.
1485 (merged_store_group::merged_store_group): Initialize them.
1486 (merged_store_group::can_be_merged_into): Deal with them.
1487 (pass_store_merging): Rename terminate_and_release_chain into
1488 terminate_and_process_chain.
1489 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1490 renaming and remove useless assertions.
1491 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1492 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1493 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1494 instead of always recomputing it and compare lp_nr.
1495 (imm_store_chain_info::output_merged_store): If the group is in an
1496 active EH region, register new stores if they can throw. Moreover,
1497 if the insertion has created new basic blocks, adjust the PHI nodes
1498 of the post landing pad.
1499 (imm_store_chain_info::output_merged_stores): If the original stores
1500 are in an active EH region, deregister them.
1501 (lhs_valid_for_store_merging_p): Prettify.
1502 (adjust_bit_pos): New function extracted from...
1503 (mem_valid_for_store_merging): ...here. Use it for the base address
1504 and also for the offset if it is the addition of a constant.
1505 (lp_nr_for_store): New function.
1506 (pass_store_merging::process_store): Change return type to bool.
1507 Call lp_nr_for_store to initialize the store info. Propagate the
1508 return status of various called functions to the return value.
1509 (store_valid_for_store_merging_p): New predicate.
1510 (enum basic_block_status): New enumeration.
1511 (get_status_for_store_merging): New function.
1512 (pass_store_merging::execute): If the function can throw and catch
1513 non-call exceptions, unsplit the EH edges on entry and clean up the
1514 CFG on exit if something changed. Call get_status_for_store_merging
1515 for every basic block and keep the chains open across basic blocks
1516 when possible. Terminate and process open chains at the end, if any.
1518 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1520 * reginfo.c (globalize_reg): Fix shadowed variable in
1523 2019-10-02 Martin Jambor <mjambor@suse.cz>
1525 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1526 do not compute some stuff when set.
1527 (cgraph_node::create_edge): Likewise.
1528 (cgraph_node::create_indirect_edge): Renamed last parameter to
1529 coning_p and flipped its meaning, don't even calculate
1530 inline_failed when set.
1531 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1532 (symbol_table::::create_edge): Likewise.
1533 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1535 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1536 call graph edge creating functions.
1538 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1541 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1544 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1546 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1548 2019-10-02 Richard Biener <rguenther@suse.de>
1550 * tree-vectorizer.h (vect_transform_reduction): Declare.
1551 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1552 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1553 stmt transform to ...
1554 (vect_transform_reduction): ... this.
1556 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1558 * omp-low.c (lower_omp_target): Dereference optional argument
1559 to work with the right pointer.
1561 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1563 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1565 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1566 * langhooks.h (omp_is_optional_argument): New hook.
1567 * omp-general.c (omp_is_optional_argument): New.
1568 * omp-general.h (omp_is_optional_argument): New declaration.
1569 * omp-low.c (lower_omp_target): Create temporary for received value
1570 and take the address for new_var if the original variable was a
1571 DECL_BY_REFERENCE. Use size of referenced object when a
1572 pass-by-reference optional argument used as argument to firstprivate.
1574 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1576 PR tree-optimization/91940
1577 * tree-vect-patterns.c: Include tree-vector-builder.h and
1579 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1580 unpromoting the argument back to uint16_t, or by converting into a
1581 rotate, or into shifts plus ior.
1583 2019-10-02 Richard Biener <rguenther@suse.de>
1585 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1587 (vect_transform_cycle_phi): Declare.
1588 * tree-vect-stmts.c (vect_transform_stmt): Call
1589 vect_transform_cycle_phi.
1590 * tree-vect-loop.c (vectorizable_reduction): Split out
1591 PHI transformation stage to ...
1592 (vect_transform_cycle_phi): ... here.
1594 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1597 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1598 eliminable registers.
1599 (make_hard_regno_live): Likewise, and don't make them live.
1601 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1603 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1604 Call pp_emit_prefix.
1605 (layout::print_source_line): Likewise.
1606 (layout::start_annotation_line): Likewise.
1607 (diagnostic_show_locus): Remove call to temporarily clear the
1609 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1610 interaction of pp_set_prefix with rulers and fix-it hints.
1611 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1612 prefix when calling diagnostic_show_locus, rather than destroying
1614 (print_parseable_fixits): Temporarily clear prefix.
1615 * pretty-print.c (pp_format): Save and restore line_length, rather
1616 than assuming it is zero.
1617 (pp_output_formatted_text): Remove assertion that line_length is
1620 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1622 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1624 (nonoverlapping_refs_since_match_p): ... this; handle also
1626 (alias_stats): Update stats.
1627 (dump_alias_stats): Likewise.
1628 (cheap_array_ref_low_bound): New function.
1629 (aliasing_matching_component_refs_p): Add partial_overlap
1631 pass it to nonoverlapping_refs_since_match_p.
1632 (aliasing_component_refs_walk): Update call of
1633 aliasing_matching_component_refs_p
1634 (nonoverlapping_array_refs_p): New function.
1635 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1636 indirect_refs_may_alias_p): Update calls of
1637 nonoverlapping_refs_since_match_p.
1639 2019-10-01 Maya Rashish <coypu@sdf.org>
1642 * ira-color.c (allocno_copy_cost_saving): Call
1643 ira_init_register_move_cost_if_necessary.
1645 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1647 * Makefile.in (gnat_install_lib): New variable.
1648 * configure.ac: Substitute it.
1649 * configure: Regenerate.
1651 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1654 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1655 is matched with non-C++ type
1657 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1659 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1662 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1664 * doc/invoke.texi (early-inlining-insns-O2): Document.
1665 (early-inlining-insns): Update.
1666 * params.def (early-inlining-insns-O2): New bound.
1667 (early-inlining-insns): Update docs.
1668 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1670 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1673 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1674 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1675 a memory access insn.
1677 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1679 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1682 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1685 * config/s390/s390.c (s390_expand_vec_compare): Use
1686 gen_vec_cmpordered and gen_vec_cmpunordered.
1687 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1688 vec_unordered): Delete.
1689 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1690 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1691 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1692 (vec_cmp<code>): Generic dispatcher.
1694 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1697 * config/s390/vector.md (V_HW): Add V1TI in order to make
1698 vcond$a$b generate vcondv1tiv1tf.
1700 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1702 PR rtl-optimization/91948
1703 * ira-build.c (ira_create_allocno): Initialize
1704 ALLOCNO_CROSSED_CALLS_ABIS.
1705 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1706 than regno to ira_need_caller_save_p.
1708 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1710 * config/i386/i386-options.c
1711 (ix86_recompute_optlev_based_flags): New, moved out of...
1712 (ix86_option_override_internal): ... this. Call it.
1713 (ix86_override_options_after_change): Call it here too.
1716 * dwarf2out.c (override_type_for_decl_p): New.
1717 (gen_variable_die): Use it.
1719 2019-10-01 Richard Biener <rguenther@suse.de>
1721 * tree-vect-loop.c (vectorizable_reduction): Move variables
1722 to where they are used.
1724 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1726 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1727 (build_def_use): Use PC instead of CC0 in a comment.
1729 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1731 * rtl.def (CLOBBER_HIGH): Delete.
1732 * doc/rtl.texi (clobber_high): Remove documentation.
1733 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1734 (reg_is_clobbered_by_clobber_high): Delete.
1735 (gen_hard_reg_clobber_high): Likewise.
1736 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1737 * cfgexpand.c (expand_gimple_stmt): Likewise.
1738 * combine-stack-adj.c (single_set_for_csa): Likewise.
1739 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1740 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1741 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1742 * cse.c (invalidate_reg): Remove clobber_high parameter.
1743 (invalidate): Update call accordingly.
1744 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1745 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1746 (count_reg_usage, insn_live_p): Likewise.
1747 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1748 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1749 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1750 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1751 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1752 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1753 (mark_nonreg_stores_2): Likewise.
1754 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1755 (df_get_call_refs): Likewise.
1756 * dwarf2out.c (mem_loc_descriptor): Likewise.
1757 * emit-rtl.c (verify_rtx_sharing): Likewise.
1758 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1759 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1760 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1761 * genemit.c (gen_exp, gen_insn): Likewise.
1762 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1763 * haifa-sched.c (haifa_classify_rtx): Likewise.
1764 * ira-build.c (create_insn_allocnos): Likewise.
1765 * ira-costs.c (scan_one_insn): Likewise.
1766 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1767 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1768 * jump.c (mark_jump_label_1): Likewise.
1769 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1770 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1772 (mark_not_eliminable): Likewise.
1773 * lra-lives.c (process_bb_lives): Likewise.
1774 * lra.c (new_insn_reg): Remove clobber_high parameter.
1775 (collect_non_operand_hard_regs): Likewise. Update call to new
1776 insn_reg. Remove CLOBBER_HIGH handling.
1777 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1778 to collect_non_operand_hard_regs.
1779 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1780 Update call to new_insn_reg.
1781 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1782 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1783 (move2add_note_store): Likewise.
1784 * print-rtl.c (print_pattern): Likewise.
1785 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1786 (if_test_bypass_p): Likewise.
1787 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1788 * reginfo.c (reg_scan_mark_refs): Likewise.
1789 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1790 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1791 (forget_old_reloads_1): Likewise.
1792 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1793 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1794 (dbr_schedule): Likewise.
1795 * resource.c (update_live_status, mark_referenced_resources)
1796 (mark_set_resources): Likewise.
1797 * rtl.c (copy_rtx): Likewise.
1798 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1799 (note_pattern_stores): Likewise.
1800 (reg_is_clobbered_by_clobber_high): Delete.
1801 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1802 CLOBBER_HIGH handling.
1804 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1807 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1808 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1809 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1810 Handle ARM_PCS_TLSDESC.
1811 (aarch64_tlsdesc_abi_id): New function.
1812 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1813 rtx instead of a list of clobbers and clobber_highs.
1814 (tlsdesc_small_<mode>): Update accordingly.
1816 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1818 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1819 extra callee_abi argument.
1820 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1821 Insert a CALLEE_ABI unspec into the call pattern as the second
1822 element in the PARALLEL.
1823 (aarch64_simd_call_p): Delete.
1824 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1825 the new CALLEE_ABI element of the PARALLEL.
1826 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1827 from the function type, if given.
1828 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1829 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1830 when passed the function_arg_info end marker.
1831 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1832 final argument of gen_sibcall.
1833 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1834 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1835 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1837 (call_value): Likewise operand 3.
1838 (sibcall): Likewise operand 2. Place the unspec before rather than
1840 (sibcall_value): Likewise operand 3.
1841 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1842 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1843 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1845 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1847 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1849 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1850 choose_hard_reg_mode.
1851 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1853 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1855 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1856 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1857 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1859 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1861 * diagnostic-show-locus.c (line_label::line_label): Initialize
1863 (line_label::comparator): Reverse the sort order by m_state_idx,
1864 so that when the list is walked backwards the labels appear in
1865 order of insertion into the rich_location.
1866 (line_label::m_has_vbar): New field.
1867 (layout::print_any_labels): When dealing with multiple labels at
1868 the same line and column, only print vertical bars for the one
1869 with the highest label_line.
1870 (selftest::test_one_liner_labels): Update test for multiple labels
1871 to expect the labels to be in the order of insertion into the
1872 rich_location. Add a test for many such labels, where the column
1873 numbers are out-of-order relative to the insertion order.
1875 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1877 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1878 (ix86_frame::expensive_count): Likewise.
1879 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1880 of use_fast_prologue_epilogue robust against incidental changes
1883 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1886 * config/s390/vector.md (vec_unordered<mode>): Call
1887 gen_vec_ordered<mode>.
1889 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1891 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1892 New pattern for ASRD.
1893 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1894 * internal-fn.def (IFN_DIV_POW2): New internal function.
1895 * optabs.def (sdiv_pow2_optab): New optab.
1896 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1897 Modify pattern to support new operation.
1898 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1899 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1900 Document new target selector.
1902 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1904 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1905 to test whether we're compiling a vector PCS function and to test
1906 whether the function needs to save a particular register.
1907 Remove the vector PCS handling of df_set_regs_ever_live.
1908 (aarch64_components_for_bb): Use crtl->abi to test whether
1909 the function needs to save a particular register.
1910 (aarch64_process_components): Use crtl->abi to test whether
1911 we're compiling a vector PCS function.
1912 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1913 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1915 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1917 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1919 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1920 whether the block calls a function that clobbers more registers
1921 than the current function is allowed to.
1922 (aarch64_use_simple_return_insn_p): Delete.
1923 * config/aarch64/aarch64.md (simple_return): Remove condition.
1925 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1927 * function-abi.h (function_abi_aggregator): New class.
1928 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1930 * ira.c (update_equiv_regs_prescan): New function. Call
1931 set_paradoxical_subreg here rather than...
1932 (update_equiv_regs): ...here.
1933 (ira): Call update_equiv_regs_prescan.
1935 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1937 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1939 (call_used_or_fixed_regs): Likewise.
1940 (call_used_or_fixed_reg_p): Likewise.
1941 * reginfo.c (regs_invalidated_by_call): New macro.
1943 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1945 * shrink-wrap.c: Include function-abi.h.
1946 (requires_stack_frame_p): Use crtl->abi to test whether the
1947 current function can use a register without saving it first.
1949 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1951 * sel-sched-ir.h (_def::crosses_call): Replace with...
1952 (_def::crossed_call_abis): ..this new field.
1953 (def_list_add): Take a mask of ABIs instead of a crosses_call
1955 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1956 of _def accordingly.
1957 * sel-sched.c: Include function-abi.h.
1958 (hard_regs_data::regs_for_call_clobbered): Delete.
1959 (reg_rename::crosses_call): Replace with...
1960 (reg_rename::crossed_call_abis): ...this new field.
1961 (fur_static_params::crosses_call): Replace with...
1962 (fur_static_params::crossed_call_abis): ...this new field.
1963 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1964 (init_hard_regs_data): Use crtl->abi to test which registers the
1965 current function would need to save before it uses them.
1966 (mark_unavailable_hard_regs): Update handling of call-clobbered
1967 registers, using call_clobbers_in_region to find out which registers
1968 might be call-clobbered (but without taking -fipa-ra into account
1969 for now). Remove separate handling of partially call-clobbered
1971 (verify_target_availability): Use crossed_call_abis instead of
1973 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1974 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1976 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1978 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1979 function to test whether a register is fully or partly clobbered.
1981 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1983 * rtlanal.c: Include function-abi.h.
1984 (reg_set_p): Use insn_callee_abi to get the ABI of the called
1985 function and clobbers_reg_p to test whether the register
1987 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1988 to get the ABI of the called function and full_reg_clobbers to
1989 get the set of fully call-clobbered registers. Warn about the
1990 pitfalls of using this mode.
1992 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1994 * reload.c: Include function-abi.h.
1995 (find_equiv_reg): Use clobbers_reg_p to test whether either
1996 of the equivalent registers is clobbered by a call.
1997 * reload1.c: Include function-abi.h.
1998 (reg_reloaded_call_part_clobbered): Delete.
1999 (reload): Use crtl->abi to test which registers would need
2000 saving in the prologue before use.
2001 (find_reg): Likewise.
2002 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2003 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2004 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2006 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2008 * regrename.h (du_head::call_clobber_mask): New field.
2009 (du_head::need_caller_save_reg): Replace with...
2010 (du_head::call_abis): ...this new field.
2011 * regrename.c: Include function-abi.h.
2012 (call_clobbered_in_chain_p): New function.
2013 (check_new_reg_p): Use crtl->abi when deciding whether a register
2014 is free for use after RA. Use call_clobbered_in_chain_p to test
2015 whether a candidate register would be clobbered by a call.
2016 (find_rename_reg): Don't add call-clobber conflicts here.
2017 (rename_chains): Check call_abis instead of need_caller_save_reg.
2018 (merge_chains): Update for changes to du_head.
2019 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2020 target. Record the ABI identifier in call_abis and the set of
2021 fully or partially clobbered registers in call_clobber_mask.
2022 Add fully-clobbered registers to hard_conflicts here rather
2023 than in find_rename_reg.
2024 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2025 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2026 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2028 * config/c6x/c6x.c: Likewise.
2030 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2032 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2033 mode of the register when deciding whether it is no longer
2034 available after a call.
2036 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2038 * recog.c: Include function-abi.h.
2039 (peep2_find_free_register): Use crtl->abi when deciding whether
2040 a register is free for use after RA.
2042 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2044 * postreload-gcse.c: Include regs.h and function-abi.h.
2045 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2046 call insn target. Conservatively assume that partially-clobbered
2047 registers are altered.
2049 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2051 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2052 when deciding whether a register is free for use after RA.
2053 (reload_combine): Remove unnecessary use of fixed_reg_set.
2054 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2055 call insn target. Use reg_mode when testing whether a register
2056 is no longer available.
2058 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2060 * target.def (return_call_with_max_clobbers): Delete.
2061 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2062 * doc/tm.texi: Regenerate.
2063 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2064 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2065 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2066 (lra_reg::call_insn): Delete.
2067 * lra.c: Include function-abi.h.
2068 (initialize_lra_reg_info_element): Don't initialize the fields above.
2069 (lra): Use crtl->abi to test whether the current function needs to
2070 save a register in the prologue. Remove special pre-inheritance
2071 lra_create_live_ranges pass for flag_ipa_ra.
2072 * lra-assigns.c: Include function-abi.h
2073 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2074 function needs to save a register in the prologue.
2075 (lra_assign): Assert that registers aren't allocated to a
2076 conflicting register, rather than checking only for overlaps
2077 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2078 and for registers that are not live across a call.
2079 * lra-constraints.c (last_call_for_abi): New variable.
2080 (full_and_partial_call_clobbers): Likewise.
2081 (setup_next_usage_insn): Remove the register from
2082 full_and_partial_call_clobbers.
2083 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2084 whether the register needs a caller save.
2085 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2086 of call_used_or_fixed_regs.
2087 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2088 full_and_partial_call_clobbers.
2089 * lra-lives.c (check_pseudos_live_through_calls): Replace
2090 last_call_used_reg_set and call_insn arguments with an abi argument.
2091 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2092 as the set of conflicting registers.
2093 (calls_have_same_clobbers_p): Delete.
2094 (process_bb_lives): Track the ABI of the last call instead of an
2095 insn/HARD_REG_SET pair. Update calls to
2096 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2097 the set of registers that could be clobbered by an EH edge.
2098 Include partially-clobbered as well as fully-clobbered registers.
2099 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2100 * lra-remat.c: Include function-abi.h.
2101 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2102 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2103 registers and bitmap_view to combine them into dead_regs.
2104 (call_used_input_regno_present_p): Take a function_abi argument
2105 and use it to test whether a register is call-clobbered.
2106 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2107 call insn target. Update tje call to call_used_input_regno_present_p.
2108 (do_remat): Likewise.
2109 (lra_remat): Remove the initialization of call_used_regs_arr_len
2110 and call_used_regs_arr.
2112 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2114 * loop-iv.c: Include regs.h and function-abi.h.
2115 (simplify_using_initial_values): Use insn_callee_abi to get the
2116 ABI of the call insn target. Conservatively assume that
2117 partially-clobbered registers are altered.
2119 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2121 * function-abi.h (call_clobbers_in_region): Declare.
2122 (call_clobbered_in_region_p): New function.
2123 * function-abi.cc (call_clobbers_in_region): Likewise.
2124 * ira-int.h: Include function-abi.h.
2125 (ira_allocno::crossed_calls_abis): New field.
2126 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2127 (ira_need_caller_save_regs): New function.
2128 (ira_need_caller_save_p): Likewise.
2129 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2130 of call_used_or_fixed_regs.
2131 (do_reload): Use crtl->abi to test whether the current function
2132 needs to save a register in the prologue. Count registers that
2133 need to be saved rather than registers that don't.
2134 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2135 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2136 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2137 (propagate_some_info_from_allocno): Likewise.
2138 (copy_info_to_removed_store_destinations): Likewise.
2139 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2140 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2141 (ira_build): Use ira_need_caller_save_regs instead of
2142 call_used_or_fixed_regs.
2143 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2144 whether the current function would need to save a register
2146 (calculate_spill_cost): Likewise.
2147 (allocno_reload_assign): Use ira_need_caller_save_regs and
2148 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2149 * ira-conflicts.c (ira_build_conflicts): Use
2150 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2151 as the set of call-clobbered registers. Remove the
2152 call_used_or_fixed_regs mask from the calculation of
2153 temp_hard_reg_set and mask its use instead. Remove special
2154 handling of partially-clobbered registers.
2155 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2156 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2157 calculate the set of conflicting registers for calls that
2158 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2159 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2160 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2161 Use eh_edge_abi to calculate the set of registers that could
2162 be clobbered by an EH edge. Include partially-clobbered as
2163 well as fully-clobbered registers.
2165 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2167 * haifa-sched.c: Include function-abi.h.
2168 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2169 the function would need to save a register before using it.
2171 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2173 * gcse.c: Include function-abi.h.
2174 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2175 the call insn target. Invalidate partially call-clobbered
2176 registers as well as fully call-clobbered ones.
2178 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2180 * function.c (aggregate_value_p): Work out which ABI the
2181 function is using before testing which registers are at least
2182 partly preserved by a call.
2184 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2186 * early-remat.c: Include regs.h and function-abi.h.
2187 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2189 (early_remat::restrict_remat_for_unavail_regs): New function.
2190 (early_remat::restrict_remat_for_call): Likewise.
2191 (early_remat::process_block): Before calling emit_remat_insns
2192 for a previous call in the block, invalidate any candidates
2193 that would clobber call-preserved registers.
2194 (early_remat::emit_remat_insns_for_block): Likewise for the
2195 final call in a block. Do the same thing for live-in registers
2196 when calling emit_remat_insns at the head of a block.
2198 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2200 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2201 whether the current function needs to save at least part of a
2202 register before using it.
2203 (df_get_exit_block_use_set): Likewise for epilogue restores.
2205 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2207 * df-problems.c: Include regs.h and function-abi.h.
2208 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2209 sparse_invalidated_by_eh and dense_invalidated_by_call to
2210 dense_invalidated_by_eh.
2211 (df_print_bb_index): Update accordingly.
2212 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2213 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2214 that are clobbered by an EH edge. Clobber partially-clobbered
2215 registers as well as fully-clobbered ones.
2216 (df_md_confluence_n): Likewise.
2217 (df_rd_local_compute): Likewise. Update for changes to
2219 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2220 of registers that are clobbered by an EH edge. Includde partially-
2221 clobbered registers as well as fully-clobbered ones.
2223 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2225 * cselib.c (cselib_process_insn): If we know what mode a
2226 register was set in, check whether it is clobbered in that
2227 mode by a call. Only fall back to reg_raw_mode if that fails.
2229 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2231 * cse.c: Include regs.h and function-abi.h.
2232 (invalidate_for_call): Take the call insn as an argument.
2233 Use insn_callee_abi to get the ABI of the call and invalidate
2234 partially clobbered registers as well as fully clobbered ones.
2235 (cse_insn): Update call accordingly.
2237 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2239 * combine.c: Include function-abi.h.
2240 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2241 of the target of call insns. Invalidate partially-clobbered
2242 registers as well as fully-clobbered ones.
2244 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2246 * cfgloopanal.c: Include regs.h and function-abi.h.
2247 (init_set_costs): Use default_function_abi to test whether
2248 a general register is call-clobbered.
2250 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2252 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2253 instead of the call-clobbered sets.
2255 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2257 * caller-save.c (setup_save_areas): Remove redundant |s of
2259 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2260 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2263 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2265 * rtl.h (predefined_function_abi): Declare.
2266 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2267 instead of a boolean call_save flag.
2268 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2270 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2271 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2272 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2273 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2274 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2275 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2276 * reginfo.c (init_reg_modes_target): Likewise.
2277 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2278 instead of a boolean call_save flag.
2279 * targhooks.c: Include function-abi.h.
2280 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2281 using eh_edge_abi to choose the mode.
2283 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2285 * target.def (hard_regno_call_part_clobbered): Take an ABI
2286 identifier instead of an rtx_insn.
2287 * doc/tm.texi: Regenerate.
2288 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2289 (hook_bool_uint_uint_mode_false): New function.
2290 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2291 (hook_bool_uint_uint_mode_false): New function.
2292 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2293 Take an ABI identifier instead of an rtx_insn.
2294 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2295 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2296 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2297 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2298 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2300 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2301 * cselib.c: Include function-abi.h.
2302 (cselib_process_insn): Update call to
2303 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2304 to get the appropriate ABI identifier.
2305 * function-abi.cc (predefined_function_abi::initialize): Update call
2306 to targetm.hard_regno_call_part_clobbered.
2307 * ira-conflicts.c (ira_build_conflicts): Likewise.
2308 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2309 * lra-constraints.c: Include function-abi.h.
2310 (need_for_call_save_p): Update call to
2311 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2312 to get the appropriate ABI identifier.
2313 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2314 * regcprop.c (copyprop_hardreg_forward_1): Update call
2315 to targetm.hard_regno_call_part_clobbered.
2316 * reginfo.c (choose_hard_reg_mode): Likewise.
2317 * regrename.c (check_new_reg_p): Likewise.
2318 * reload.c (find_equiv_reg): Likewise.
2319 * reload1.c (emit_reload_insns): Likewise.
2320 * sched-deps.c: Include function-abi.h.
2321 (deps_analyze_insn): Update call to
2322 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2323 to get the appropriate ABI identifier.
2324 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2325 call to targetm.hard_regno_call_part_clobbered.
2326 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2328 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2330 * config/i386/i386.c: Include function-abi.h.
2331 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2332 if they preserve some 256-bit or 512-bit SSE registers.
2334 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2336 * target.def (insn_callee_abi): New hook.
2337 (remove_extra_call_preserved_regs): Delete.
2338 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2339 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2340 * doc/tm.texi: Regenerate.
2341 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2342 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2343 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2345 (aarch64_remove_extra_call_preserved_regs): Delete.
2346 (aarch64_insn_callee_abi): New function.
2347 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2348 (TARGET_INSN_CALLEE_ABI): New macro.
2349 * rtl.h (get_call_fndecl): Declare.
2350 (cgraph_rtl_info): Fix formatting. Tweak comment for
2351 function_used_regs. Remove function_used_regs_valid.
2352 * rtlanal.c (get_call_fndecl): Moved from final.c
2353 * function-abi.h (insn_callee_abi): Declare.
2354 (target_function_abi_info): Mention insn_callee_abi.
2355 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2356 way to get_call_reg_set_usage did.
2357 (insn_callee_abi): New function.
2358 * regs.h (get_call_reg_set_usage): Delete.
2359 * final.c: Include function-abi.h.
2360 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2361 function_used_regs before the main loop rather than afterwards.
2362 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2363 if function_used_regs ends up not being useful.
2364 (get_call_fndecl): Move to rtlanal.c
2365 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2366 * caller-save.c: Include function-abi.h.
2367 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2368 instead of get_call_reg_set_usage.
2369 * cfgcleanup.c: Include function-abi.h.
2370 (old_insns_match_p): Use insn_callee_abi instead of
2371 get_call_reg_set_usage.
2372 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2374 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2376 * df-scan.c: Include function-abi.h.
2377 (df_get_call_refs): Use insn_callee_abi instead of
2378 get_call_reg_set_usage.
2379 * ira-lives.c: Include function-abi.h.
2380 (process_bb_node_lives): Use insn_callee_abi instead of
2381 get_call_reg_set_usage.
2382 * lra-lives.c: Include function-abi.h.
2383 (process_bb_lives): Use insn_callee_abi instead of
2384 get_call_reg_set_usage.
2385 * postreload.c: Include function-abi.h.
2386 (reload_combine): Use insn_callee_abi instead of
2387 get_call_reg_set_usage.
2388 * regcprop.c: Include function-abi.h.
2389 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2390 get_call_reg_set_usage.
2391 * resource.c: Include function-abi.h.
2392 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2393 instead of get_call_reg_set_usage.
2394 * var-tracking.c: Include function-abi.h.
2395 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2396 get_call_reg_set_usage.
2398 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2400 * target.def (fntype_abi): New target hook.
2401 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2402 * doc/tm.texi: Regenerate.
2403 * target.h (predefined_function_abi): Declare.
2404 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2406 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2407 * config/aarch64/aarch64.c: Include function-abi.h.
2408 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2409 (TARGET_FNTYPE_ABI): Define.
2411 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2413 * Makefile.in (OBJS): Add function-abi.o.
2414 (GTFILES): Add function-abi.h.
2415 * function-abi.cc: New file.
2416 * function-abi.h: Likewise.
2417 * emit-rtl.h (rtl_data::abi): New field.
2418 * function.c: Include function-abi.h.
2419 (prepare_function_start): Initialize crtl->abi.
2420 * read-rtl-function.c: Include regs.h and function-abi.h.
2421 (read_rtl_function_body): Initialize crtl->abi.
2422 (read_rtl_function_body_from_file_range): Likewise.
2423 * reginfo.c: Include function-abi.h.
2424 (init_reg_sets_1): Initialize default_function_abi.
2425 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2426 when making a register global.
2427 * target-globals.h (this_target_function_abi_info): Declare.
2428 (target_globals::function_abi_info): New field.
2429 (restore_target_globals): Copy it.
2430 * target-globals.c: Include function-abi.h.
2431 (default_target_globals): Initialize the function_abi_info field.
2432 (target_globals): Allocate it.
2433 (save_target_globals): Free it.
2435 2019-09-30 Nick Clifton <nickc@redhat.com>
2438 * config/frv/frv.c (frv_register_move_cost): Add break statements
2439 to avoid falling through to the wrong cases. Tidy code.
2441 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2443 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2444 For multi-registers modes, test how big each register part is.
2446 2019-09-30 Nick Clifton <nickc@redhat.com>
2449 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2450 (TARGET_ASM_SELECT_SECTION): Remove definition.
2451 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2453 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2455 * emit-rtl.c (init_raw_REG): New function.
2456 (gen_raw_REG): Use init_raw_REG.
2457 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2459 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2460 * rtl.h (rtx_init): New function.
2461 (rtx_alloca): New function.
2462 (init_raw_REG): New function.
2463 (alloca_raw_REG): New macro.
2465 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2467 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2468 (pcrel_local_address): Replace pcrel_address predicate, use the
2469 new function address_to_insn_form.
2470 (pcrel_external_address): Replace with new implementation using
2471 address_to_insn_form..
2472 (prefixed_mem_operand): Delete predicate which is now unused.
2473 (pcrel_external_mem_operand): Delete predicate which is now
2475 * config/rs6000/rs6000-protos.h (enum insn_form): New
2477 (enum non_prefixed_form): New enumeration.
2478 (address_to_insn_form): New declaration.
2479 (prefixed_load_p): New declaration.
2480 (prefixed_store_p): New declaration.
2481 (prefixed_paddi_p): New declaration.
2482 (rs6000_asm_output_opcode): New declaration.
2483 (rs6000_final_prescan_insn): Move declaration and update calling
2485 (address_is_prefixed): New helper inline function.
2486 * config/rs6000/rs6000.c(print_operand_address): Check for either
2487 PC-relative local symbols or PC-relative external symbols.
2488 (rs6000_emit_move): Support loading PC-relative addresses.
2489 (mode_supports_prefixed_address_p): Delete, no longer used.
2490 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2491 (address_to_insn_form): New function to decode an address format.
2492 (reg_to_non_prefixed): New function to identify what the
2493 non-prefixed memory instruction format is for a register.
2494 (prefixed_load_p): New function to identify prefixed loads.
2495 (prefixed_store_p): New function to identify prefixed stores.
2496 (prefixed_paddi_p): New function to identify prefixed load
2498 (next_insn_prefixed_p): New static state variable.
2499 (rs6000_final_prescan_insn): New function to determine if an insn
2500 uses a prefixed instruction.
2501 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2502 prefixed instruction.
2503 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2504 (ASM_OUTPUT_OPCODE): New target hook.
2505 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2506 prefixed instructions.
2507 (prefixed_length): New insn attribute for the size of prefixed
2509 (non_prefixed_length): New insn attribute for the size of
2510 non-prefixed instructions.
2511 (pcrel_local_addr): New insn to load up a local PC-relative
2513 (pcrel_extern_addr): New insn to load up an external PC-relative
2515 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2516 GPR and loading a 128-bit floating point type to a GPR.
2518 2019-09-30 Richard Biener <rguenther@suse.de>
2520 * gimple.c (gimple_get_lhs): For PHIs return the result.
2521 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2522 SLP instance as argument.
2523 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2524 double-reduction PHIs with vectorizable_lc_phi.
2525 (vect_analyze_loop_operations): Adjust.
2526 (vect_create_epilog_for_reduction): Remove all code not dealing
2527 with reduction LC PHI or epilogue generation.
2528 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2529 for live stmts of reductions.
2530 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2531 do not handle defs that are not vect_internal_def.
2532 (can_vectorize_live_stmts): Adjust.
2533 (vect_analyze_stmt): When the vectorized stmt defined a value
2534 used on backedges adjust the backedge uses of vectorized PHIs.
2536 2019-09-30 Martin Jambor <mjambor@suse.cz>
2539 * tree-inline.c (force_value_to_type): New function.
2540 (setup_one_parameter): Use force_value_to_type to convert type.
2541 * tree-inline.c (force_value_to_type): Declare.
2542 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2543 with register type mismatches.
2545 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2547 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2549 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2550 * config/rs6000/t-freebsd64: Make use of the above define and build
2551 the 32-bit libraries with secure-plt.
2553 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2556 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2557 gen_int_mode instead of GEN_INT.
2559 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2561 * config/darwin.c (gen_macho_low): Amend to include the mode
2563 (machopic_indirect_data_reference): Amend gen_macho_low call
2564 to include mode argument
2565 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2566 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2567 the macho_high expander and two define_insn entries.
2569 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2572 * optc-save-gen.awk: Fix up printing string option differences.
2574 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2576 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2577 vec_perm cost to 1 for non-Power7 VSX architectures.
2579 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2581 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2582 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2583 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2585 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2587 * config/darwin.c (gen_macho_high): Amend to include the mode
2589 (machopic_indirect_data_reference): Amend gen_macho_high call
2590 to include mode argument.
2591 (machopic_legitimize_pic_address): Likewise.
2592 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2593 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2594 the macho_high expander and two define_insn entries.
2596 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2599 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2601 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2604 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2605 std::string::compare instead of std::string::find.
2607 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2609 * configure: Regenerate.
2611 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2614 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2615 variables as shared.
2617 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2619 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2620 replaces the expander and two define_insn entries.
2621 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2623 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2625 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2627 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2628 (fibonacci_heap::nodes): Likewise.
2629 (fibonacci_heap::min_key): Likewise.
2630 (fibonacci_heap::min): Likewise.
2632 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2634 * cgraph.c (cgraph_node::get_fun): Make const.
2635 * cgraph.h (cgraph_node::get_fun): Likewise.
2637 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2640 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2643 2019-09-27 Richard Biener <rguenther@suse.de>
2645 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2646 (STMT_VINFO_REDUC_FN): Likewise.
2647 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2648 STMT_VINFO_REDUC_FN.
2649 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2650 for condition reductions.
2651 (vect_create_epilog_for_reduction): Compute all required state
2652 from the stmt to be vectorized.
2653 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2654 invocation and remove then dead code. For single def-use chains
2655 record only a single vector stmt.
2657 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2659 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2660 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2661 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2662 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2663 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2664 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2665 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2666 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2667 (aarch64_general_builtin_rsqrt): Declare.
2668 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2670 (aarch64_mangle_builtin_type): Rename to...
2671 (aarch64_general_mangle_builtin_type): ...this.
2672 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2673 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2674 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2675 aarch64_general_add_builtin instead of add_builtin_function.
2676 (aarch64_init_builtins): Rename to...
2677 (aarch64_general_init_builtins): ...this. Use
2678 aarch64_general_add_builtin instead of add_builtin_function.
2679 (aarch64_builtin_decl): Rename to...
2680 (aarch64_general_builtin_decl): ...this and remove the unused
2682 (aarch64_expand_builtin): Rename to...
2683 (aarch64_general_expand_builtin): ...this and remove the unused
2685 (aarch64_builtin_rsqrt): Rename to...
2686 (aarch64_general_builtin_rsqrt): ...this.
2687 (aarch64_fold_builtin): Rename to...
2688 (aarch64_general_fold_builtin): ...this. Take the function subcode
2689 and return type as arguments. Remove the "ignored" argument.
2690 (aarch64_gimple_fold_builtin): Rename to...
2691 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2692 subcode and gcall as arguments, and return the new function call.
2693 * config/aarch64/aarch64.c (aarch64_init_builtins)
2694 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2695 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2696 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2697 instead of aarch64_builtin_rsqrt.
2698 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2699 instead of aarch64_mangle_builtin_type.
2701 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2703 * target.def (check_builtin_call): New target hook.
2704 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2705 * doc/tm.texi: Regenerate.
2707 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2709 PR tree-optimization/91909
2710 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2711 reduc_index parameter. When handling COND_REDUCTION, make sure
2712 that the reduction phi operand is in the correct arm of the
2714 (vectorizable_reduction): Pass reduc_index to the above.
2716 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2718 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2719 New combine pattern.
2721 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2723 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2724 loop instruction into new basic block before the loop when basic
2725 block that precedes the loop is empty.
2727 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2729 * function.c (gimplify_parameters): Use build_clobber function.
2730 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2731 * tree-inline.c (expand_call_inline): Likewise.
2732 * tree-sra.c (clobber_subtree): Likewise.
2733 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2734 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2735 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2736 lower_omp_target): Likewise.
2737 * omp-expand.c (expand_omp_for_generic): Likewise.
2738 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2740 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2742 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2743 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2744 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2745 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2746 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2747 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2748 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2749 LD_ELEMREV_V16QI): Use the PURE attribute.
2751 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2753 * config/rs6000/darwin.md: Replace the expanders for
2754 load_macho_picbase and reload_macho_picbase with use of '@'
2755 and <mode> in their respective define_insns.
2756 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2757 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2758 Pmode to gen_load_macho_picbase.
2759 * config/rs6000/rs6000.md: Likewise.
2761 2019-09-25 Richard Biener <rguenther@suse.de>
2763 PR tree-optimization/91896
2764 * tree-vect-loop.c (vectorizable_reduction): The single
2765 def-use cycle optimization cannot apply when there's more
2766 than one pattern stmt involved.
2768 2019-09-26 Richard Biener <rguenther@suse.de>
2770 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2771 loop-closed PHIs that are vect_internal_def.
2772 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2774 (vectorizable_lc_phi): New.
2775 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2776 (vect_transform_stmt): Likewise.
2777 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2778 (vectorizable_lc_phi): Declare.
2780 2019-09-26 Richard Biener <rguenther@suse.de>
2782 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2783 vectorizable_reduction for vect_double_reduction_def.
2784 (vect_transform_loop): Likewise.
2785 (vect_create_epilog_for_reduction): Move double-reduction
2786 PHI creation and preheader argument setting of PHIs ...
2787 (vectorizable_reduction): ... here. Also process
2788 vect_double_reduction_def PHIs, creating the vectorized
2789 PHI nodes, remembering the scalar adjustment computed for
2790 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2791 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2792 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2793 Initialize STMT_VINFO_REDUC_CODE.
2794 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2795 (_stmt_vec_info::reduc_code): Likewise.
2796 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2797 (STMT_VINFO_REDUC_CODE): Likewise.
2799 2019-09-26 Matt Turner <mattst88@gmail.com>
2802 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2803 (mtune=): Add Negative(mtune=).
2804 (mcpu=): Add Negative(mcpu=).
2805 * config/arm/arm.opt: Likewise.
2807 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2809 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2810 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2812 * config/arm/arm_acle.h: Define builtins for the above.
2813 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2814 (simd32_op): Handle the above.
2815 * config/arm/unspecs.md: Define unspecs for the above.
2817 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2819 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2820 (arm_<sup>xtb16): Likewise.
2821 (arm_usada8): Likewise.
2822 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2823 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2824 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2825 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2826 __sxtb16, __uxtab16, __uxtb16): Define.
2827 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2828 * config/arm/unspecs.md: Define unspecs for the above.
2829 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2830 (USXTB16): Likewise.
2831 (simd32_op): New int_attribute.
2832 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2833 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2835 2019-09-26 Martin Jambor <mjambor@suse.cz>
2837 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2840 2019-09-26 Martin Jambor <mjambor@suse.cz>
2842 * ipa-sra.c (process_scan_results): Fix continue condition.
2844 2019-09-26 Martin Liska <mliska@suse.cz>
2846 PR tree-optimization/91885
2847 * tree-vectorizer.c (try_vectorize_loop_1): Add
2848 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2850 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2852 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2853 aarch64_plus_immediate rather than aarch64_uimm12_shift
2854 to test for valid PLUS immediates.
2856 2019-09-25 Martin Jambor <mjambor@suse.cz>
2858 * tree-sra.c (no_accesses_p): Remove.
2859 (no_accesses_representant): Likewise.
2861 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2863 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2865 (vaba_s16): Likewise.
2866 (vaba_s32): Likewise.
2867 (vaba_u8): Likewise.
2868 (vaba_u16): Likewise.
2869 (vaba_u32): Likewise.
2870 (vabal_high_s8): Likewise.
2871 (vabal_high_s16): Likewise.
2872 (vabal_high_s32): Likewise.
2873 (vabal_high_u8): Likewise.
2874 (vabal_high_u16): Likewise.
2875 (vabal_high_u32): Likewise.
2876 (vabal_s8): Likewise.
2877 (vabal_s16): Likewise.
2878 (vabal_s32): Likewise.
2879 (vabal_u8): Likewise.
2880 (vabal_u16): Likewise.
2881 (vabal_u32): Likewise.
2882 (vabaq_s8): Likewise.
2883 (vabaq_s16): Likewise.
2884 (vabaq_s32): Likewise.
2885 (vabaq_u8): Likewise.
2886 (vabaq_u16): Likewise.
2887 (vabaq_u32): Likewise.
2888 (vabd_s8): Likewise.
2889 (vabd_s16): Likewise.
2890 (vabd_s32): Likewise.
2891 (vabd_u8): Likewise.
2892 (vabd_u16): Likewise.
2893 (vabd_u32): Likewise.
2894 (vabdl_high_s8): Likewise.
2895 (vabdl_high_s16): Likewise.
2896 (vabdl_high_s32): Likewise.
2897 (vabdl_high_u8): Likewise.
2898 (vabdl_high_u16): Likewise.
2899 (vabdl_high_u32): Likewise.
2900 (vabdl_s8): Likewise.
2901 (vabdl_s16): Likewise.
2902 (vabdl_s32): Likewise.
2903 (vabdl_u8): Likewise.
2904 (vabdl_u16): Likewise.
2905 (vabdl_u32): Likewise.
2906 (vabdq_s8): Likewise.
2907 (vabdq_s16): Likewise.
2908 (vabdq_s32): Likewise.
2909 (vabdq_u8): Likewise.
2910 (vabdq_u16): Likewise.
2911 (vabdq_u32): Likewise.
2912 (vaddlv_s8): Likewise.
2913 (vaddlv_s16): Likewise.
2914 (vaddlv_u8): Likewise.
2915 (vaddlv_u16): Likewise.
2916 (vaddlvq_s8): Likewise.
2917 (vaddlvq_s16): Likewise.
2918 (vaddlvq_s32): Likewise.
2919 (vaddlvq_u8): Likewise.
2920 (vaddlvq_u16): Likewise.
2921 (vaddlvq_u32): Likewise.
2922 (vcvtx_f32_f64): Likewise.
2923 (vcvtx_high_f32_f64): Likewise.
2924 (vcvtxd_f32_f64): Likewise.
2925 (vmla_n_f32): Likewise.
2926 (vmla_n_s16): Likewise.
2927 (vmla_n_s32): Likewise.
2928 (vmla_n_u16): Likewise.
2929 (vmla_n_u32): Likewise.
2930 (vmla_s8): Likewise.
2931 (vmla_s16): Likewise.
2932 (vmla_s32): Likewise.
2933 (vmla_u8): Likewise.
2934 (vmla_u16): Likewise.
2935 (vmla_u32): Likewise.
2936 (vmlal_high_n_s16): Likewise.
2937 (vmlal_high_n_s32): Likewise.
2938 (vmlal_high_n_u16): Likewise.
2939 (vmlal_high_n_u32): Likewise.
2940 (vmlal_high_s8): Likewise.
2941 (vmlal_high_s16): Likewise.
2942 (vmlal_high_s32): Likewise.
2943 (vmlal_high_u8): Likewise.
2944 (vmlal_high_u16): Likewise.
2945 (vmlal_high_u32): Likewise.
2946 (vmlal_n_s16): Likewise.
2947 (vmlal_n_s32): Likewise.
2948 (vmlal_n_u16): Likewise.
2949 (vmlal_n_u32): Likewise.
2950 (vmlal_s8): Likewise.
2951 (vmlal_s16): Likewise.
2952 (vmlal_s32): Likewise.
2953 (vmlal_u8): Likewise.
2954 (vmlal_u16): Likewise.
2955 (vmlal_u32): Likewise.
2956 (vmlaq_n_f32): Likewise.
2957 (vmlaq_n_s16): Likewise.
2958 (vmlaq_n_s32): Likewise.
2959 (vmlaq_n_u16): Likewise.
2960 (vmlaq_n_u32): Likewise.
2961 (vmlaq_s8): Likewise.
2962 (vmlaq_s16): Likewise.
2963 (vmlaq_s32): Likewise.
2964 (vmlaq_u8): Likewise.
2965 (vmlaq_u16): Likewise.
2966 (vmlaq_u32): Likewise.
2967 (vmls_n_f32): Likewise.
2968 (vmls_n_s16): Likewise.
2969 (vmls_n_s32): Likewise.
2970 (vmls_n_u16): Likewise.
2971 (vmls_n_u32): Likewise.
2972 (vmls_s8): Likewise.
2973 (vmls_s16): Likewise.
2974 (vmls_s32): Likewise.
2975 (vmls_u8): Likewise.
2976 (vmls_u16): Likewise.
2977 (vmls_u32): Likewise.
2978 (vmlsl_high_n_s16): Likewise.
2979 (vmlsl_high_n_s32): Likewise.
2980 (vmlsl_high_n_u16): Likewise.
2981 (vmlsl_high_n_u32): Likewise.
2982 (vmlsl_high_s8): Likewise.
2983 (vmlsl_high_s16): Likewise.
2984 (vmlsl_high_s32): Likewise.
2985 (vmlsl_high_u8): Likewise.
2986 (vmlsl_high_u16): Likewise.
2987 (vmlsl_high_u32): Likewise.
2988 (vmlsl_n_s16): Likewise.
2989 (vmlsl_n_s32): Likewise.
2990 (vmlsl_n_u16): Likewise.
2991 (vmlsl_n_u32): Likewise.
2992 (vmlsl_s8): Likewise.
2993 (vmlsl_s16): Likewise.
2994 (vmlsl_s32): Likewise.
2995 (vmlsl_u8): Likewise.
2996 (vmlsl_u16): Likewise.
2997 (vmlsl_u32): Likewise.
2998 (vmlsq_n_f32): Likewise.
2999 (vmlsq_n_s16): Likewise.
3000 (vmlsq_n_s32): Likewise.
3001 (vmlsq_n_u16): Likewise.
3002 (vmlsq_n_u32): Likewise.
3003 (vmlsq_s8): Likewise.
3004 (vmlsq_s16): Likewise.
3005 (vmlsq_s32): Likewise.
3006 (vmlsq_u8): Likewise.
3007 (vmlsq_u16): Likewise.
3008 (vmlsq_u32): Likewise.
3009 (vmovl_high_s8): Likewise.
3010 (vmovl_high_s16): Likewise.
3011 (vmovl_high_s32): Likewise.
3012 (vmovl_high_u8): Likewise.
3013 (vmovl_high_u16): Likewise.
3014 (vmovl_high_u32): Likewise.
3015 (vmovl_s8): Likewise.
3016 (vmovl_s16): Likewise.
3017 (vmovl_s32): Likewise.
3018 (vmovl_u8): Likewise.
3019 (vmovl_u16): Likewise.
3020 (vmovl_u32): Likewise.
3021 (vmovn_high_s16): Likewise.
3022 (vmovn_high_s32): Likewise.
3023 (vmovn_high_s64): Likewise.
3024 (vmovn_high_u16): Likewise.
3025 (vmovn_high_u32): Likewise.
3026 (vmovn_high_u64): Likewise.
3027 (vmovn_s16): Likewise.
3028 (vmovn_s32): Likewise.
3029 (vmovn_s64): Likewise.
3030 (vmovn_u16): Likewise.
3031 (vmovn_u32): Likewise.
3032 (vmovn_u64): Likewise.
3033 (vmull_high_n_s16): Likewise.
3034 (vmull_high_n_s32): Likewise.
3035 (vmull_high_n_u16): Likewise.
3036 (vmull_high_n_u32): Likewise.
3037 (vmull_high_p8): Likewise.
3038 (vmull_high_s8): Likewise.
3039 (vmull_high_s16): Likewise.
3040 (vmull_high_s32): Likewise.
3041 (vmull_high_u8): Likewise.
3042 (vmull_high_u16): Likewise.
3043 (vmull_high_u32): Likewise.
3044 (vmull_n_s16): Likewise.
3045 (vmull_n_s32): Likewise.
3046 (vmull_n_u16): Likewise.
3047 (vmull_n_u32): Likewise.
3048 (vmull_p8): Likewise.
3049 (vmull_s8): Likewise.
3050 (vmull_s16): Likewise.
3051 (vmull_s32): Likewise.
3052 (vmull_u8): Likewise.
3053 (vmull_u16): Likewise.
3054 (vmull_u32): Likewise.
3055 (vpadal_s8): Likewise.
3056 (vpadal_s16): Likewise.
3057 (vpadal_s32): Likewise.
3058 (vpadal_u8): Likewise.
3059 (vpadal_u16): Likewise.
3060 (vpadal_u32): Likewise.
3061 (vpadalq_s8): Likewise.
3062 (vpadalq_s16): Likewise.
3063 (vpadalq_s32): Likewise.
3064 (vpadalq_u8): Likewise.
3065 (vpadalq_u16): Likewise.
3066 (vpadalq_u32): Likewise.
3067 (vpaddl_s8): Likewise.
3068 (vpaddl_s16): Likewise.
3069 (vpaddl_s32): Likewise.
3070 (vpaddl_u8): Likewise.
3071 (vpaddl_u16): Likewise.
3072 (vpaddl_u32): Likewise.
3073 (vpaddlq_s8): Likewise.
3074 (vpaddlq_s16): Likewise.
3075 (vpaddlq_s32): Likewise.
3076 (vpaddlq_u8): Likewise.
3077 (vpaddlq_u16): Likewise.
3078 (vpaddlq_u32): Likewise.
3079 (vpaddq_s8): Likewise.
3080 (vpaddq_s16): Likewise.
3081 (vpaddq_s32): Likewise.
3082 (vpaddq_s64): Likewise.
3083 (vpaddq_u8): Likewise.
3084 (vpaddq_u16): Likewise.
3085 (vpaddq_u32): Likewise.
3086 (vpaddq_u64): Likewise.
3087 (vqdmulh_n_s16): Likewise.
3088 (vqdmulh_n_s32): Likewise.
3089 (vqdmulhq_n_s16): Likewise.
3090 (vqdmulhq_n_s32): Likewise.
3091 (vqmovn_high_s16): Likewise.
3092 (vqmovn_high_s32): Likewise.
3093 (vqmovn_high_s64): Likewise.
3094 (vqmovn_high_u16): Likewise.
3095 (vqmovn_high_u32): Likewise.
3096 (vqmovn_high_u64): Likewise.
3097 (vqmovun_high_s16): Likewise.
3098 (vqmovun_high_s32): Likewise.
3099 (vqmovun_high_s64): Likewise.
3100 (vqrdmulh_n_s16): Likewise.
3101 (vqrdmulh_n_s32): Likewise.
3102 (vqrdmulhq_n_s16): Likewise.
3103 (vqrdmulhq_n_s32): Likewise.
3104 (vrsqrte_u32): Likewise.
3105 (vrsqrteq_u32): Likewise.
3106 (vtst_p8): Likewise.
3107 (vtst_p16): Likewise.
3108 (vtst_p64): Likewise.
3109 (vtstq_p8): Likewise.
3110 (vtstq_p16): Likewise.
3111 (vtstq_p64): Likewise.
3112 (vaddlv_s32): Likewise.
3113 (vaddlv_u32): Likewise.
3114 (vqtbl1_p8): Likewise.
3115 (vqtbl1_s8): Likewise.
3116 (vqtbl1_u8): Likewise.
3117 (vqtbl1q_p8): Likewise.
3118 (vqtbl1q_s8): Likewise.
3119 (vqtbl1q_u8): Likewise.
3120 (vqtbx1_s8): Likewise.
3121 (vqtbx1_u8): Likewise.
3122 (vqtbx1_p8): Likewise.
3123 (vqtbx1q_s8): Likewise.
3124 (vqtbx1q_u8): Likewise.
3125 (vqtbx1q_p8): Likewise.
3126 (vtbl1_s8): Likewise.
3127 (vtbl1_u8): Likewise.
3128 (vtbl1_p8): Likewise.
3129 (vtbl2_s8): Likewise.
3130 (vtbl2_u8): Likewise.
3131 (vtbl2_p8): Likewise.
3132 (vtbl3_s8): Likewise.
3133 (vtbl3_u8): Likewise.
3134 (vtbl3_p8): Likewise.
3135 (vtbl4_s8): Likewise.
3136 (vtbl4_u8): Likewise.
3137 (vtbl4_p8): Likewise.
3138 (vtbx2_s8): Likewise.
3139 (vtbx2_u8): Likewise.
3140 (vtbx2_p8): Likewise.
3141 (vld1_f32): Likewise.
3142 (vld1_f64): Likewise.
3143 (vld1_p8): Likewise.
3144 (vld1_p16): Likewise.
3145 (vld1_p64): Likewise.
3146 (vld1_s8): Likewise.
3147 (vld1_s16): Likewise.
3148 (vld1_s32): Likewise.
3149 (vld1_s64): Likewise.
3150 (vld1_u8): Likewise.
3151 (vld1_u16): Likewise.
3152 (vld1_u32): Likewise.
3153 (vld1_u64): Likewise.
3154 (vld1q_f32): Likewise.
3155 (vld1q_f64): Likewise.
3156 (vld1q_p8): Likewise.
3157 (vld1q_p16): Likewise.
3158 (vld1q_p64): Likewise.
3159 (vld1q_s8): Likewise.
3160 (vld1q_s16): Likewise.
3161 (vld1q_s32): Likewise.
3162 (vld1q_s64): Likewise.
3163 (vld1q_u8): Likewise.
3164 (vld1q_u16): Likewise.
3165 (vld1q_u32): Likewise.
3166 (vld1q_u64): Likewise.
3167 (vpmax_s8): Likewise.
3168 (vpmax_s16): Likewise.
3169 (vpmax_s32): Likewise.
3170 (vpmax_u8): Likewise.
3171 (vpmax_u16): Likewise.
3172 (vpmax_u32): Likewise.
3173 (vpmaxq_s8): Likewise.
3174 (vpmaxq_s16): Likewise.
3175 (vpmaxq_s32): Likewise.
3176 (vpmaxq_u8): Likewise.
3177 (vpmaxq_u16): Likewise.
3178 (vpmaxq_u32): Likewise.
3179 (vpmax_f32): Likewise.
3180 (vpmaxq_f32): Likewise.
3181 (vpmaxq_f64): Likewise.
3182 (vpmaxqd_f64): Likewise.
3183 (vpmaxs_f32): Likewise.
3184 (vpmaxnm_f32): Likewise.
3185 (vpmaxnmq_f32): Likewise.
3186 (vpmaxnmq_f64): Likewise.
3187 (vpmaxnmqd_f64): Likewise.
3188 (vpmaxnms_f32): Likewise.
3189 (vpmin_s8): Likewise.
3190 (vpmin_s16): Likewise.
3191 (vpmin_s32): Likewise.
3192 (vpmin_u8): Likewise.
3193 (vpmin_u16): Likewise.
3194 (vpmin_u32): Likewise.
3195 (vpminq_s8): Likewise.
3196 (vpminq_s16): Likewise.
3197 (vpminq_s32): Likewise.
3198 (vpminq_u8): Likewise.
3199 (vpminq_u16): Likewise.
3200 (vpminq_u32): Likewise.
3201 (vpmin_f32): Likewise.
3202 (vpminq_f32): Likewise.
3203 (vpminq_f64): Likewise.
3204 (vpminqd_f64): Likewise.
3205 (vpmins_f32): Likewise.
3206 (vpminnm_f32): Likewise.
3207 (vpminnmq_f32): Likewise.
3208 (vpminnmq_f64): Likewise.
3209 (vpminnmqd_f64): Likewise.
3210 (vpminnms_f32): Likewise.
3211 (vmla_f32): Likewise.
3212 (vmlaq_f32): Likewise.
3213 (vmlaq_f64): Likewise.
3214 (vmls_f32): Likewise.
3215 (vmlsq_f32): Likewise.
3216 (vmlsq_f64): Likewise.
3217 (vqtbl2_s8): Likewise.
3218 (vqtbl2_u8): Likewise.
3219 (vqtbl2_p8): Likewise.
3220 (vqtbl2q_s8): Likewise.
3221 (vqtbl2q_u8): Likewise.
3222 (vqtbl2q_p8): Likewise.
3223 (vqtbl3_s8): Likewise.
3224 (vqtbl3_u8): Likewise.
3225 (vqtbl3_p8): Likewise.
3226 (vqtbl3q_s8): Likewise.
3227 (vqtbl3q_u8): Likewise.
3228 (vqtbl3q_p8): Likewise.
3229 (vqtbl4_s8): Likewise.
3230 (vqtbl4_u8): Likewise.
3231 (vqtbl4_p8): Likewise.
3232 (vqtbl4q_s8): Likewise.
3233 (vqtbl4q_u8): Likewise.
3234 (vqtbl4q_p8): Likewise.
3235 (vqtbx2_s8): Likewise.
3236 (vqtbx2_u8): Likewise.
3237 (vqtbx2_p8): Likewise.
3238 (vqtbx2q_s8): Likewise.
3239 (vqtbx2q_u8): Likewise.
3240 (vqtbx2q_p8): Likewise.
3241 (vqtbx3_s8): Likewise.
3242 (vqtbx3_u8): Likewise.
3243 (vqtbx3_p8): Likewise.
3244 (vqtbx3q_s8): Likewise.
3245 (vqtbx3q_u8): Likewise.
3246 (vqtbx3q_p8): Likewise.
3247 (vqtbx4_s8): Likewise.
3248 (vqtbx4_u8): Likewise.
3249 (vqtbx4_p8): Likewise.
3250 (vqtbx4q_s8): Likewise.
3251 (vqtbx4q_u8): Likewise.
3252 (vqtbx4q_p8): Likewise.
3253 (vrev16_p8): Likewise.
3254 (vrev16_s8): Likewise.
3255 (vrev16_u8): Likewise.
3256 (vrev16q_p8): Likewise.
3257 (vrev16q_s8): Likewise.
3258 (vrev16q_u8): Likewise.
3259 (vrev32_p8): Likewise.
3260 (vrev32_p16): Likewise.
3261 (vrev32_s8): Likewise.
3262 (vrev32_s16): Likewise.
3263 (vrev32_u8): Likewise.
3264 (vrev32_u16): Likewise.
3265 (vrev32q_p8): Likewise.
3266 (vrev32q_p16): Likewise.
3267 (vrev32q_s8): Likewise.
3268 (vrev32q_s16): Likewise.
3269 (vrev32q_u8): Likewise.
3270 (vrev32q_u16): Likewise.
3271 (vrev64_f32): Likewise.
3272 (vrev64_p8): Likewise.
3273 (vrev64_p16): Likewise.
3274 (vrev64_s8): Likewise.
3275 (vrev64_s16): Likewise.
3276 (vrev64_s32): Likewise.
3277 (vrev64_u8): Likewise.
3278 (vrev64_u16): Likewise.
3279 (vrev64_u32): Likewise.
3280 (vrev64q_f32): Likewise.
3281 (vrev64q_p8): Likewise.
3282 (vrev64q_p16): Likewise.
3283 (vrev64q_s8): Likewise.
3284 (vrev64q_s16): Likewise.
3285 (vrev64q_s32): Likewise.
3286 (vrev64q_u8): Likewise.
3287 (vrev64q_u16): Likewise.
3288 (vrev64q_u32): Likewise.
3289 (vsha1cq_u32): Likewise.
3290 (vsha1mq_u32): Likewise.
3291 (vsha1pq_u32): Likewise.
3292 (vsha1h_u32): Likewise.
3293 (vsha1su0q_u32): Likewise.
3294 (vsha1su1q_u32): Likewise.
3295 (vsha256hq_u32): Likewise.
3296 (vsha256h2q_u32): Likewise.
3297 (vsha256su0q_u32): Likewise.
3298 (vsha256su1q_u32): Likewise.
3299 (vmull_p64): Likewise.
3300 (vmull_high_p64): Likewise.
3301 (vsqrt_f32): Likewise.
3302 (vsqrtq_f32): Likewise.
3303 (vsqrt_f64): Likewise.
3304 (vsqrtq_f64): Likewise.
3305 (vst1_f32): Likewise.
3306 (vst1_f64): Likewise.
3307 (vst1_p8): Likewise.
3308 (vst1_p16): Likewise.
3309 (vst1_p64): Likewise.
3310 (vst1_s8): Likewise.
3311 (vst1_s16): Likewise.
3312 (vst1_s32): Likewise.
3313 (vst1_s64): Likewise.
3314 (vst1_u8): Likewise.
3315 (vst1_u16): Likewise.
3316 (vst1_u32): Likewise.
3317 (vst1_u64): Likewise.
3318 (vst1q_f32): Likewise.
3319 (vst1q_f64): Likewise.
3320 (vst1q_p8): Likewise.
3321 (vst1q_p16): Likewise.
3322 (vst1q_p64): Likewise.
3323 (vst1q_s8): Likewise.
3324 (vst1q_s16): Likewise.
3325 (vst1q_s32): Likewise.
3326 (vst1q_s64): Likewise.
3327 (vst1q_u8): Likewise.
3328 (vst1q_u16): Likewise.
3329 (vst1q_u32): Likewise.
3330 (vst1q_u64): Likewise.
3331 (vst1_s64_x2): Likewise.
3332 (vst1_u64_x2): Likewise.
3333 (vst1_f64_x2): Likewise.
3334 (vst1_s8_x2): Likewise.
3335 (vst1_p8_x2): Likewise.
3336 (vst1_s16_x2): Likewise.
3337 (vst1_p16_x2): Likewise.
3338 (vst1_s32_x2): Likewise.
3339 (vst1_u8_x2): Likewise.
3340 (vst1_u16_x2): Likewise.
3341 (vst1_u32_x2): Likewise.
3342 (vst1_f16_x2): Likewise.
3343 (vst1_f32_x2): Likewise.
3344 (vst1_p64_x2): Likewise.
3345 (vst1q_s8_x2): Likewise.
3346 (vst1q_p8_x2): Likewise.
3347 (vst1q_s16_x2): Likewise.
3348 (vst1q_p16_x2): Likewise.
3349 (vst1q_s32_x2): Likewise.
3350 (vst1q_s64_x2): Likewise.
3351 (vst1q_u8_x2): Likewise.
3352 (vst1q_u16_x2): Likewise.
3353 (vst1q_u32_x2): Likewise.
3354 (vst1q_u64_x2): Likewise.
3355 (vst1q_f16_x2): Likewise.
3356 (vst1q_f32_x2): Likewise.
3357 (vst1q_f64_x2): Likewise.
3358 (vst1q_p64_x2): Likewise.
3359 (vst1_s64_x3): Likewise.
3360 (vst1_u64_x3): Likewise.
3361 (vst1_f64_x3): Likewise.
3362 (vst1_s8_x3): Likewise.
3363 (vst1_p8_x3): Likewise.
3364 (vst1_s16_x3): Likewise.
3365 (vst1_p16_x3): Likewise.
3366 (vst1_s32_x3): Likewise.
3367 (vst1_u8_x3): Likewise.
3368 (vst1_u16_x3): Likewise.
3369 (vst1_u32_x3): Likewise.
3370 (vst1_f16_x3): Likewise.
3371 (vst1_f32_x3): Likewise.
3372 (vst1_p64_x3): Likewise.
3373 (vst1q_s8_x3): Likewise.
3374 (vst1q_p8_x3): Likewise.
3375 (vst1q_s16_x3): Likewise.
3376 (vst1q_p16_x3): Likewise.
3377 (vst1q_s32_x3): Likewise.
3378 (vst1q_s64_x3): Likewise.
3379 (vst1q_u8_x3): Likewise.
3380 (vst1q_u16_x3): Likewise.
3381 (vst1q_u32_x3): Likewise.
3382 (vst1q_u64_x3): Likewise.
3383 (vst1q_f16_x3): Likewise.
3384 (vst1q_f32_x3): Likewise.
3385 (vst1q_f64_x3): Likewise.
3386 (vst1q_p64_x3): Likewise.
3387 (vst2_s64): Likewise.
3388 (vst2_u64): Likewise.
3389 (vst2_f64): Likewise.
3390 (vst2_s8): Likewise.
3391 (vst2_p8): Likewise.
3392 (vst2_s16): Likewise.
3393 (vst2_p16): Likewise.
3394 (vst2_s32): Likewise.
3395 (vst2_u8): Likewise.
3396 (vst2_u16): Likewise.
3397 (vst2_u32): Likewise.
3398 (vst2_f16): Likewise.
3399 (vst2_f32): Likewise.
3400 (vst2_p64): Likewise.
3401 (vst2q_s8): Likewise.
3402 (vst2q_p8): Likewise.
3403 (vst2q_s16): Likewise.
3404 (vst2q_p16): Likewise.
3405 (vst2q_s32): Likewise.
3406 (vst2q_s64): Likewise.
3407 (vst2q_u8): Likewise.
3408 (vst2q_u16): Likewise.
3409 (vst2q_u32): Likewise.
3410 (vst2q_u64): Likewise.
3411 (vst2q_f16): Likewise.
3412 (vst2q_f32): Likewise.
3413 (vst2q_f64): Likewise.
3414 (vst2q_p64): Likewise.
3415 (vst3_s64): Likewise.
3416 (vst3_u64): Likewise.
3417 (vst3_f64): Likewise.
3418 (vst3_s8): Likewise.
3419 (vst3_p8): Likewise.
3420 (vst3_s16): Likewise.
3421 (vst3_p16): Likewise.
3422 (vst3_s32): Likewise.
3423 (vst3_u8): Likewise.
3424 (vst3_u16): Likewise.
3425 (vst3_u32): Likewise.
3426 (vst3_f16): Likewise.
3427 (vst3_f32): Likewise.
3428 (vst3_p64): Likewise.
3429 (vst3q_s8): Likewise.
3430 (vst3q_p8): Likewise.
3431 (vst3q_s16): Likewise.
3432 (vst3q_p16): Likewise.
3433 (vst3q_s32): Likewise.
3434 (vst3q_s64): Likewise.
3435 (vst3q_u8): Likewise.
3436 (vst3q_u16): Likewise.
3437 (vst3q_u32): Likewise.
3438 (vst3q_u64): Likewise.
3439 (vst3q_f16): Likewise.
3440 (vst3q_f32): Likewise.
3441 (vst3q_f64): Likewise.
3442 (vst3q_p64): Likewise.
3443 (vst4_s64): Likewise.
3444 (vst4_u64): Likewise.
3445 (vst4_f64): Likewise.
3446 (vst4_s8): Likewise.
3447 (vst4_p8): Likewise.
3448 (vst4_s16): Likewise.
3449 (vst4_p16): Likewise.
3450 (vst4_s32): Likewise.
3451 (vst4_u8): Likewise.
3452 (vst4_u16): Likewise.
3453 (vst4_u32): Likewise.
3454 (vst4_f16): Likewise.
3455 (vst4_f32): Likewise.
3456 (vst4_p64): Likewise.
3457 (vst4q_s8): Likewise.
3458 (vst4q_p8): Likewise.
3459 (vst4q_s16): Likewise.
3460 (vst4q_p16): Likewise.
3461 (vst4q_s32): Likewise.
3462 (vst4q_s64): Likewise.
3463 (vst4q_u8): Likewise.
3464 (vst4q_u16): Likewise.
3465 (vst4q_u32): Likewise.
3466 (vst4q_u64): Likewise.
3467 (vst4q_f16): Likewise.
3468 (vst4q_f32): Likewise.
3469 (vst4q_f64): Likewise.
3470 (vst4q_p64): Likewise.
3471 (vtbx4_s8): Likewise.
3472 (vtbx4_u8): Likewise.
3473 (vtbx4_p8): Likewise.
3474 (vtrn_f32): Likewise.
3475 (vtrn_p8): Likewise.
3476 (vtrn_p16): Likewise.
3477 (vtrn_s8): Likewise.
3478 (vtrn_s16): Likewise.
3479 (vtrn_s32): Likewise.
3480 (vtrn_u8): Likewise.
3481 (vtrn_u16): Likewise.
3482 (vtrn_u32): Likewise.
3483 (vtrnq_f32): Likewise.
3484 (vtrnq_p8): Likewise.
3485 (vtrnq_p16): Likewise.
3486 (vtrnq_s8): Likewise.
3487 (vtrnq_s16): Likewise.
3488 (vtrnq_s32): Likewise.
3489 (vtrnq_u8): Likewise.
3490 (vtrnq_u16): Likewise.
3491 (vtrnq_u32): Likewise.
3492 (vrsqrte_f16): Likewise.
3493 (vrsqrteq_f16): Likewise.
3494 (vsqrt_f16): Likewise.
3495 (vsqrtq_f16): Likewise.
3496 (vabd_f16): Likewise.
3497 (vabdq_f16): Likewise.
3498 (vpadd_f16): Likewise.
3499 (vpaddq_f16): Likewise.
3500 (vpmax_f16): Likewise.
3501 (vpmaxq_f16): Likewise.
3502 (vpmaxnm_f16): Likewise.
3503 (vpmaxnmq_f16): Likewise.
3504 (vpmin_f16): Likewise.
3505 (vpminq_f16): Likewise.
3506 (vpminnm_f16): Likewise.
3507 (vpminnmq_f16): Likewise.
3508 (vrsqrts_f16): Likewise.
3509 (vrsqrtsq_f16): Likewise.
3511 2019-09-25 Richard Biener <rguenther@suse.de>
3513 PR tree-optimization/91896
3514 * tree-vect-loop.c (vectorizable_reduction): The single
3515 def-use cycle optimization cannot apply when there's more
3516 than one pattern stmt involved.
3518 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3520 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3521 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3522 (reload_macho_picbase_<mode>): Likewise.
3524 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3526 * config/rs6000/rs6000.md: Move darwin.md include until
3527 after the definition of the mode iterators.
3529 2019-09-23 Martin Sebor <msebor@redhat.com>
3531 PR tree-optimization/91570
3532 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3533 non-constant minlen, maxlen and maxbound.
3535 2019-09-24 Richard Biener <rguenther@suse.de>
3537 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3539 (_stmt_vec_info::cond_reduc_code): ... this.
3540 (_stmt_vec_info::induc_cond_initial_val): Add.
3541 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3542 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3543 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3544 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3545 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3547 (vect_create_epilog_for_reduction): Drop special
3548 induction condition reduction params, pass in reduction code
3550 (vectorizable_reduction): Perform condition reduction kind
3551 selection only at analysis time. Adjust passing on state.
3553 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3555 * config/aarch64/aarch64.md (mov<mode>): Don't call
3556 aarch64_split_dimode_const_store on volatile MEM.
3558 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3560 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3561 Update hwcap string for fp16fml.
3563 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3566 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3567 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3569 2019-09-24 Martin Liska <mliska@suse.cz>
3571 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3572 instead of if-elseif-elseif-...
3573 * gimple-expr.c (extract_ops_from_tree): Likewise.
3574 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3575 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3577 2019-09-24 Martin Jambor <mjambor@suse.cz>
3580 * ipa-param-manipulation.c (carry_over_param): Make a method of
3581 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3582 in case of a context mismatch.
3583 (ipa_param_body_adjustments::common_initialization): Adjust call to
3585 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3586 private method carry_over_param.
3588 2019-09-24 Martin Jambor <mjambor@suse.cz>
3591 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3593 2019-09-24 Richard Biener <rguenther@suse.de>
3595 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3598 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3600 * config/arm/t-arm (arm-builtins.o): Add dependency on
3601 arm_acle_builtins.def.
3603 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3606 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3607 canonical CONST_INTs. Use gen_rtvec.
3609 2019-09-23 Richard Biener <rguenther@suse.de>
3611 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3612 avoid adjusting by + 0 or * 1.
3613 (vect_create_epilog_for_reduction): Get reduction code only
3614 when necessary. Deal with adjustment_def only when necessary.
3616 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3618 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3621 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3624 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3627 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3629 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3630 code. Merge code blocks with common conditionals. Use declared
3631 macro instead of a magic number for PIC level.
3633 2019-09-21 Martin Sebor <msebor@redhat.com>
3636 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3637 Simplify computation of the offset of the referenced subobject.
3639 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3641 * config/darwin.c (machopic_legitimize_pic_address): Check
3644 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3646 * ira-conflicts.c (can_use_same_reg_p): New function.
3647 (process_reg_shuffles): Take an insn parameter. Ignore cases
3648 in which input operand op_num could seemingly never be allocated
3649 to the same register as the destination.
3650 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3652 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3654 * simplify-rtx.c (neg_const_int): Replace with...
3655 (neg_poly_int_rtx): ...this new function.
3656 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3657 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3658 (simplify_plus_minus): Likewise for constant terms here.
3660 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3662 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3663 HOST_WIDE_PRINT_UNSIGNED.
3665 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3667 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3670 2019-09-20 Maya Rashish <coypu@sdf.org>
3673 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3674 Define to speculation_safe_value_not_needed.
3676 2019-09-20 Richard Biener <rguenther@suse.de>
3677 Uros Bizjak <ubizjak@gmail.com>
3680 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3682 (general_scalar_chain::convert_op): Force not suitable memory
3683 operands to a register.
3685 2019-09-20 Richard Biener <rguenther@suse.de>
3687 PR tree-optimization/91821
3688 * tree-vect-loop.c (check_reduction_path): Check we can compute
3690 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3691 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3692 operands in canonical order.
3693 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3694 STMT_VINFO_REDUC_IDX.
3695 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3696 (STMT_VINFO_REDUC_IDX): Likewise.
3698 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3701 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3703 2019-09-20 Richard Biener <rguenther@suse.de>
3705 PR tree-optimization/91822
3706 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3708 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3709 for reduc_index in nested cycles, adjust vectorizable_condition
3711 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3713 (vect_analyze_stmt): Adjust.
3714 (vect_transform_stmt): Likewise.
3716 2019-09-20 Richard Biener <rguenther@suse.de>
3719 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3720 Ensure there's a sequence point between allocating the new register
3721 and passing a reference to a reg via regno_reg_rtx.
3723 2019-09-20 Martin Jambor <mjambor@suse.cz>
3725 * coretypes.h (cgraph_edge): Declare.
3726 * ipa-param-manipulation.c: Rewrite.
3727 * ipa-param-manipulation.h: Likewise.
3728 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3729 (OBJS): Added ipa-sra.o.
3730 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3731 and ref_p, added fields param_adjustments and performed_splits.
3732 (struct cgraph_clone_info): Remove ags_to_skip and
3733 combined_args_to_skip, new field param_adjustments.
3734 (cgraph_node::create_clone): Changed parameters to use
3735 ipa_param_adjustments.
3736 (cgraph_node::create_virtual_clone): Likewise.
3737 (cgraph_node::create_virtual_clone_with_body): Likewise.
3738 (tree_function_versioning): Likewise.
3739 (cgraph_build_function_type_skip_args): Removed.
3740 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3741 using ipa_param_adjustments.
3742 (clone_of_p): Likewise.
3743 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3744 (build_function_decl_skip_args): Likewise.
3745 (duplicate_thunk_for_node): Adjust parameters using
3746 ipa_param_body_adjustments, copy param_adjustments instead of
3748 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3749 (cgraph_node::create_virtual_clone): Likewise.
3750 (cgraph_node::create_version_clone_with_body): Likewise.
3751 (cgraph_materialize_clone): Likewise.
3752 (symbol_table::materialize_all_clones): Likewise.
3753 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3754 ipa_replace_map check.
3755 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3756 (initialize_node_lattices): Make aware that some parameters might have
3757 already been removed.
3758 (want_remove_some_param_p): New function.
3759 (create_specialized_node): Convert to using ipa_param_adjustments and
3760 deal with possibly pre-existing adjustments.
3761 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3762 (output_node_opt_summary): Do not stream removed fields. Stream
3763 parameter adjustments instead of argumetns to skip.
3764 (input_node_opt_summary): Likewise.
3765 (input_node_opt_summary): Likewise.
3766 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3767 * lto-streamer.h (lto_section_type): Likewise.
3768 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3770 (copy_decl_to_var): Declare.
3771 * tree-inline.c (update_clone_info): Do not remap old_tree.
3772 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3773 statements, walk all extra generated statements and remap their
3775 (redirect_all_calls): Add killed SSA names to a hash set.
3776 (remap_ssa_name): Do not remap killed SSA names.
3777 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3778 half of functionality moved to ipa_param_body_adjustments.
3779 (copy_decl_to_var): Make exported.
3780 (copy_body): Destroy killed_new_ssa_names hash set.
3781 (expand_call_inline): Remap performed splits.
3782 (update_clone_info): Likewise.
3783 (tree_function_versioning): Simplify tree_map processing. Updated to
3784 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3785 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3786 for the new interface.
3787 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3788 (simd_clone_compute_base_data_type): Likewise.
3789 (simd_clone_init_simd_arrays): Adjust for the new interface.
3790 (simd_clone_adjust_argument_types): Likewise.
3791 (struct modify_stmt_info): Likewise.
3792 (ipa_simd_modify_stmt_ops): Likewise.
3793 (ipa_simd_modify_function_body): Likewise.
3794 (simd_clone_adjust): Likewise.
3795 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3796 (type_internals_preclude_sra_p): Make public.
3797 * tree-sra.h: New file.
3798 * ipa-inline-transform.c (save_inline_function_body): Update to
3799 refelct new tree_function_versioning signature.
3800 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3801 ipa_param_adjustments to get current parameter indices.
3802 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3803 (ipcp_update_bits): Likewise.
3804 (ipcp_update_vr): Likewise.
3805 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3806 * ipa-sra.c: New file.
3807 * multiple_target.c (create_target_clone): Update to reflet new type
3808 of create_version_clone_with_body.
3809 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3810 tree_function_versioning.
3811 (modify_function): Update to reflect new type of
3812 tree_function_versioning.
3813 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3814 * passes.def: Remove old IPA-SRA and add new one.
3815 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3816 (make_pass_ipa_sra): Declare.
3817 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3819 * doc/invoke.texi (ipa-sra-max-replacements): New.
3821 2019-09-19 Martin Sebor <msebor@redhat.com>
3824 * builtins.c (component_size): Correct trailing array computation,
3825 rename to component_ref_size and move...
3826 (compute_objsize): Adjust.
3827 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3828 (builtin_access::strict): Do not consider memmove.
3829 (builtin_access::write_off): New function.
3830 (builtin_memref::builtin_memref): Initialize refsize.
3831 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3833 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3835 (builtin_access::builtin_access): Initialize dstoff to destination
3836 refeence offset here instead of in maybe_diag_overlap. Adjust
3837 referencess even to unrelated objects. Adjust sizrange of bounded
3838 string functions to reflect bound. For strcat, adjust destination
3839 sizrange by that of source.
3840 (builtin_access::strcat_overlap): Adjust offsets and sizes
3841 to reflect the increase in destination sizrange above.
3842 (builtin_access::overlap): Do not set dstoff here but instead
3843 in builtin_access::builtin_access.
3844 (check_bounds_or_overlap): Use builtin_access::write_off.
3845 (maybe_diag_access_bounds): Add argument. Add informational notes.
3846 (dump_builtin_memref, dump_builtin_access): New functions.
3847 * tree.c (component_ref_size): ...to here.
3848 * tree.h (component_ref_size): Declare.
3849 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3850 nul in the size of the source string.
3852 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3855 * doc/cpp.texi: Document support for extended characters in
3857 * doc/cppopts.texi: Likewise.
3859 2019-09-19 Richard Biener <rguenther@suse.de>
3861 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3862 (check_reduction_path): New overload having the path as result.
3863 (vect_is_simple_reduction): From the detected reduction
3864 path build a SLP reduction chain if possible.
3866 2019-09-19 Richard Biener <rguenther@suse.de>
3869 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3870 Force operand to a register if it isn't nonimmediate_operand.
3872 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3874 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3875 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3876 (logical_op): Remove code attribute.
3877 (logical_OP): Likewise.
3879 2019-09-19 Martin Liska <mliska@suse.cz>
3881 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3884 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3886 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3889 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3890 for NE comparison of TImode values.
3891 (aarch64_emit_load_exclusive): Add support for TImode.
3892 (aarch64_emit_store_exclusive): Likewise.
3893 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3894 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3895 Change iterator from ALLI to ALLI_TI.
3896 (@atomic_compare_and_swap<JUST_TI>): New.
3897 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3898 (aarch64_load_exclusive_pair): New.
3899 (aarch64_store_exclusive_pair): New.
3900 * config/aarch64/iterators.md (JUST_TI): New.
3902 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3903 strong_zero_p for aarch64_track_speculation; unify some code paths;
3904 use aarch64_gen_compare_reg instead of open-coding.
3906 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3907 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3908 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3909 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3910 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3911 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3912 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3913 (atomic_<atomic_op><ALLI>): Likewise.
3914 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3915 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3916 * doc/invoke.texi: Document -moutline-atomics.
3918 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3920 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3921 trivial predicate for condition branch.
3922 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3924 (compute_bb_predicates): Update predicate based on post-dominating
3926 (analyze_function_body): Calculate post-dominating information.
3928 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3930 * tree-vectorizer.h (vectorizable_condition): Take an int
3931 reduction index instead of a boolean flag.
3932 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3933 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3934 reductions if the reduction accumulator is the "then" rather
3935 than the "else" value.
3936 (vect_analyze_stmt): Update call accordingly.
3937 (vect_transform_stmt): Likewise.
3938 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3939 asserting that the index is > 0.
3941 2019-09-19 Martin Liska <mliska@suse.cz>
3943 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3944 (sort_congruence_classes_by_decl_uid): Likewise.
3945 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3947 (sem_item_optimizer::merge_classes): Likewise.
3949 2019-09-19 Richard Biener <rguenther@suse.de>
3951 PR tree-optimization/91812
3952 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3955 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3957 * defaults.h (TARGET_UNIT): New macro.
3958 (target_unit): New type.
3959 * rtl.h (native_encode_rtx, native_decode_rtx)
3960 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3961 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3962 * rtlanal.c (subreg_lsb_1): Delete.
3963 (subreg_size_lsb): New function.
3964 * simplify-rtx.c: Include rtx-vector-builder.h
3965 (simplify_immed_subreg): Delete.
3966 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3967 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3969 (simplify_subreg): Use them.
3970 (test_vector_subregs_modes, test_vector_subregs_repeating)
3971 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3972 (test_vector_subregs): New functions.
3973 (test_vector_ops): Call test_vector_subregs for integer vector
3974 modes with at least 2 elements.
3976 2019-09-19 Richard Biener <rguenther@suse.de>
3978 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3979 LOOP_VINFO_OPERANDS_SWAPPED.
3980 (parloops_is_simple_reduction): Likewise.
3981 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3982 initialize operands_swapped.
3983 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3984 (vect_is_slp_reduction): Do not swap operands.
3985 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3986 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3988 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
3991 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3992 Add avx_partial_xmm_update.
3994 2019-09-18 Jim Wilson <jimw@sifive.com>
3997 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3998 (riscv_move_integer): Likewise.
3999 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4000 riscv_move_integer arg.
4001 (riscv_legitimize_move): Likewise.
4002 (riscv_force_temporary): New parameter in_splitter. Don't call
4004 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4006 (riscv_add_offset): Likewise.
4007 (riscv_split_symbol): New parameter in_splitter. Pass to
4008 riscv_force_temporary.
4009 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4011 (riscv_move_integer): New parameter in_splitter. New local
4012 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4014 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4015 riscv_split_symbol, and riscv_force_temporary args.
4016 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4017 riscv_move_integer arg.
4018 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4020 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4023 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4024 hard register store cost to 6.
4026 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4029 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4030 pseudo register store cost from 3 to 6 to make it the same as
4033 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4036 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4037 (one_cmpldi2): Likewise.
4038 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4039 of the constant parts is simple.
4040 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4041 (logical_op): Add new code attribute.
4042 (logical_OP): Likewise.
4043 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4044 (arm_iordi_operand): Add predicate.
4045 (arm_xordi_operand): Add predicate.
4047 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4049 * config/arm/arm.md (maddsidi4): Remove expander.
4050 (mulsidi3adddi): Remove pattern.
4051 (mulsidi3adddi_v6): Likewise.
4052 (mulsidi3_nov6): Likewise.
4053 (mulsidi3_v6): Likewise.
4054 (umulsidi3): Remove expander.
4055 (umulsidi3_nov6): Remove pattern.
4056 (umulsidi3_v6): Likewise.
4057 (umulsidi3adddi): Likewise.
4058 (umulsidi3adddi_v6): Likewise.
4059 (<Us>mulsidi3): Add combined expander.
4060 (<Us>maddsidi4): Likewise.
4061 (<US>mull): Add combined umull and smull pattern.
4062 (<US>mlal): Likewise.
4063 * config/arm/iterators.md (Us): Add new iterator.
4065 2019-09-18 Richard Biener <rguenther@suse.de>
4067 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4069 (vectorize_fold_left_reduction): Remove assert.
4070 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4071 operand in position 2. Remove assert.
4073 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4075 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4076 (smulsi3_highpart_nov6): Remove pattern.
4077 (smulsi3_highpart_v6): Likewise.
4078 (umulsi3_highpart): Likewise.
4079 (umulsi3_highpart_nov6): Likewise.
4080 (umulsi3_highpart_v6): Likewise.
4081 (<US>mull_high): Add new combined multiply pattern.
4083 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4085 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4086 (arm_mulsi3_v6): Likewise.
4087 (mulsi3addsi_v6): Likewise.
4088 (mulsi3subsi): Likewise.
4089 (mul): Add new multiply pattern.
4093 2019-09-18 Richard Biener <rguenther@suse.de>
4095 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4096 (parloops_valid_reduction_input_p): Copy from
4097 valid_reduction_input_p.
4098 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4099 (parloops_needs_fold_left_reduction_p): Copy from
4100 needs_fold_left_reduction_p.
4101 (parloops_is_simple_reduction): Copy from
4102 vect_is_simple_reduction.
4103 (parloops_force_simple_reduction): Copy from
4104 vect_force_simple_reduction.
4105 (gather_scalar_reductions): Adjust.
4106 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4107 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4109 2019-09-18 Richard Biener <rguenther@suse.de>
4111 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4112 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4114 (vect_create_epilog_for_reduction): Remove dead code.
4116 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4118 * varasm.c (assemble_real): Generate canonical const_ints.
4120 2019-09-18 Richard Biener <rguenther@suse.de>
4123 * lto-streamer-in.c (input_eh_regions): Move EH init to
4124 lto_materialize_function.
4125 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4128 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4130 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4133 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4135 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4136 of checking specifically for INTEGER_CST.
4138 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4140 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4141 sizes instead of uhwi sizes.
4143 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4145 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4146 (add_const_value_attribute): Handle CONST_POLY_INT.
4148 2019-09-18 Martin Liska <mliska@suse.cz>
4150 * dbgcnt.def (store_merging): New counter.
4151 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4152 Use it in store merging.
4154 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4156 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4158 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4159 * config/arm/arm.c (arm_sched_variable_issue): New function.
4160 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4162 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4164 * config/arm/types.md (no_reservation): New reservation.
4165 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4167 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4168 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4169 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4170 * config/arm/arm1020e.md (1020alu_op): Likewise.
4171 * config/arm/arm1026ejs.md (alu_op): Likewise.
4172 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4173 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4174 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4175 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4176 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4177 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4178 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4179 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4180 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4181 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4182 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4183 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4184 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4185 * config/arm/fa526.md (526_alu_op): Likewise.
4186 * config/arm/fa606te.md (606te_alu_op): Likewise.
4187 * config/arm/fa626te.md (626te_alu_op): Likewise.
4188 * config/arm/fa726te.md (726te_alu_op): Likewise.
4189 * config/arm/xgene1.md (xgene1_nop): Likewise.
4191 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4193 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4194 "no_insn" to "branch".
4196 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4198 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4200 2019-09-17 Richard Biener <rguenther@suse.de>
4203 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4204 was missing generate locations only once.
4206 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4209 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4211 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4212 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4213 for switch default case using range analysis information.
4215 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4218 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4219 mode attributed is supported by FDPIC.
4221 2019-09-17 Richard Biener <rguenther@suse.de>
4223 PR tree-optimization/91790
4224 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4225 use the correct DR for setting up realignment.
4227 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4230 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4231 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4232 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4233 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4235 2019-09-16 Jason Merrill <jason@redhat.com>
4237 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4239 2019-09-16 Martin Liska <mliska@suse.cz>
4241 * gimple-fold.c (or_comparisons_1): Remove rules moved
4243 * match.pd: ... here.
4245 2019-09-16 Martin Liska <mliska@suse.cz>
4247 * gimple-fold.c (or_comparisons_1): Remove rules
4249 * match.pd: ... here.
4251 2019-09-16 Martin Liska <mliska@suse.cz>
4253 * genmatch.c (dt_node::append_simplify): Do not print
4254 warning when we have duplicate patterns belonging
4255 to a same simplify rule.
4256 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4257 (maybe_fold_comparisons_from_match_pd): Handle
4258 tcc_comparison as a results.
4259 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4261 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4262 Qi Feng <ffengqi@linux.ibm.com>
4265 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4266 (x > y && x == XXX_MIN): Optimize into 'false'.
4267 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4268 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4269 (x < y && x == XXX_MAX): Optimize into 'false'.
4270 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4271 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4272 (x <= y || x != XXX_MIN): Optimize into 'true'.
4273 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4274 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4275 (x >= y || x != XXX_MAX): Optimize into 'true'.
4276 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4278 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4279 Martin Liska <mliska@suse.cz>
4281 * gimple-fold.c (and_comparisons_1): Add type as first
4283 (and_var_with_comparison): Likewise.
4284 (and_var_with_comparison_1): Likewise.
4285 (or_comparisons_1): Likewise.
4286 (or_var_with_comparison): Likewise.
4287 (or_var_with_comparison_1): Likewise.
4288 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4289 (maybe_fold_or_comparisons): Likewise.
4290 (maybe_fold_comparisons_from_match_pd): New.
4291 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4292 (maybe_fold_or_comparisons): Likewise.
4293 * gimple.c (gimple_size): Make it public and add num_ops argument.
4294 (gimple_init): New function.
4295 (gimple_alloc): Call gimple_init.
4296 * gimple.h (gimple_size): New.
4297 (gimple_init): Likewise.
4298 * tree-if-conv.c (fold_or_predicates): Pass type.
4299 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4300 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4301 (optimize_vec_cond_expr): Likewise.
4302 (ovce_extract_ops): Return type of conditional expression.
4303 * tree-ssanames.c (init_ssa_name_imm_use): New.
4304 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4305 * tree-ssanames.h (init_ssa_name_imm_use): New.
4307 2019-09-16 Richard Biener <rguenther@suse.de>
4309 PR tree-optimization/91756
4310 PR tree-optimization/87132
4311 * tree-ssa-alias.h (enum translate_flags): New.
4312 (get_continuation_for_phi): Use it instead of simple bool flag.
4313 (walk_non_aliased_vuses): Likewise.
4314 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4315 (get_continuation_for_phi): When looking across backedges only
4316 disallow valueization.
4317 (walk_non_aliased_vuses): Adjust.
4318 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4321 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4324 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4325 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4326 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4327 * target.def (have_count_reg_decr_p): New hook.
4328 (doloop_cost_for_generic): Likewise.
4329 (doloop_cost_for_address): Likewise.
4330 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4331 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4332 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4333 * doc/tm.texi: Regenerate.
4334 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4336 (record_group): Init doloop_p.
4337 (add_candidate_1): Add optional argument doloop, change the handlings
4339 (add_candidate): Likewise.
4340 (generic_predict_doloop_p): Update attribute.
4341 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4342 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4343 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4345 (get_computation_cost): Update for doloop IV cand extra cost.
4346 (determine_group_iv_cost_cond): Update for doloop IV cand.
4347 (determine_iv_cost): Likewise.
4348 (ivopts_estimate_reg_pressure): Likewise.
4349 (may_eliminate_iv): Update handlings for doloop IV cand.
4350 (add_iv_candidate_for_doloop): New function.
4351 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4352 (iv_ca_set_no_cp): Update for doloop IV cand.
4353 (iv_ca_set_cp): Likewise.
4354 (iv_ca_dump): Dump register cost.
4355 (find_doloop_use): New function.
4356 (analyze_and_mark_doloop_use): Likewise.
4357 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4359 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4362 * cse.c (cse_insn): Do not replace anything with a
4365 2019-09-13 Ian Lance Taylor <iant@golang.org>
4367 * doc/invoke.texi (Optimize Options): Fix typo.
4369 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4371 PR tree-optimization/89386
4372 * config/i386/sse.md (smulhrs<mode>3): New expander.
4373 (smulhrsv4hi3): Ditto.
4375 2019-09-12 Richard Biener <rguenther@suse.de>
4377 PR tree-optimization/91750
4378 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4379 in the type of the evolution.
4381 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4383 PR tree-optimization/89386
4384 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4385 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4386 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4387 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4388 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4389 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4390 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4391 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4392 (su, r): Handle the unspecs above.
4393 (bt): New int attribute.
4394 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4395 * internal-fn.c (first_commutative_argument): Commutativity info for
4397 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4398 (umulhrs_optab): New optabs.
4399 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4400 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4401 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4403 (vect_vect_recog_func_ptrs): Add it.
4405 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4407 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4410 2019-09-11 Nathan Sidwell <nathan@acm.org>
4412 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4413 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4415 2019-09-11 Richard Biener <rguenther@suse.de>
4417 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4418 * lto-wrapper.c (merge_and_complain): Pick up -g.
4419 (append_compiler_options): Likewise.
4420 (run_gcc): Re-instantiate handling -g0 at link-time.
4421 * doc/invoke.texi (flto): Document debug info generation.
4423 2019-09-11 Richard Biener <rguenther@suse.de>
4425 PR tree-optimization/90387
4426 * vr-values.c (vr_values::extract_range_basic): After inlining
4427 simplify non-constant __builtin_constant_p to false.
4429 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4431 PR rtl-optimization/89795
4432 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4433 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4435 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4437 PR tree-optimization/91723
4438 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4439 instead of pointer equality when checking if argument vectypes are
4443 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4444 of get_nonzero_bits, only call it for integral types.
4446 2019-09-11 Richard Biener <rguenther@suse.de>
4449 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4451 * match.pd: Add flag_unsafe_math_optimizations check
4452 before deciding on the widest type in a binary math operation.
4454 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4456 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4457 and CALL_REALLY_USED_REGISTERS must be defined, and that
4458 CALL_REALLY_USED_REGISTERS is preferred.
4459 * doc/tm.texi: Regenerate.
4460 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4461 (call_really_used_regs): Likewise.
4462 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4463 CALL_REALLY_USED_REGISTERS are defined.
4464 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4465 initial value if defined.
4466 (initial_call_really_used_regs): Delete.
4467 (saved_call_really_used_regs): Likewise.
4468 (CALL_REALLY_USED_REGNO_P): Likewise.
4469 (init_reg_sets): Remove handling of call_really_used_regs.
4470 (save_register_info, restore_register_info, globalize_reg): Likewise.
4471 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4472 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4473 outside operand_reg_set.
4474 (fix_register): Don't change call_used_regs if
4475 CALL_REALLY_USED_REGISTERS is defined.
4476 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4477 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4478 instead of call_really_used_regs.
4479 (csky_conditional_register_usage): Remove the old handling of
4480 call_used_regs and change the handling of call_really_used_regs
4481 to use call_used_regs instead.
4482 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4483 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4484 making a register fixed.
4485 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4486 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4487 instead of call_really_used_regs.
4488 (m32r_conditional_register_usage): Don't set call_used_regs when
4489 making a register fixed.
4490 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4491 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4492 instead of call_really_used_regs.
4493 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4494 (mips_cfun_call_saved_reg_p): Likewise.
4495 (mips_swap_registers): Remove the old handling of call_used_regs
4496 and change the handling of call_really_used_regs to use call_used_regs
4498 (mips_conditional_register_usage): Likewise.
4499 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4500 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4501 instead of call_really_used_regs.
4502 (mn10300_get_live_callee_saved_regs): Likewise.
4503 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4504 (mn10300_conditional_register_usage): Don't set call_used_regs when
4505 making a register fixed.
4506 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4507 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4508 Remove the old handling of call_used_regs and change the handling
4509 of call_really_used_regs to use call_used_regs instead.
4510 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4511 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4512 instead of call_really_used_regs.
4513 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4514 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4515 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4516 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4517 (s390_conditional_register_usage): Remove the old handling of
4518 call_used_regs and change the handling of call_really_used_regs
4519 to use call_used_regs instead.
4520 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4521 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4522 (sh_fix_range, reg_unused_after): Likewise.
4523 (sh_conditional_register_usage): Remove the old handling of
4524 call_used_regs and change the handling of call_really_used_regs
4525 to use call_used_regs instead.
4526 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4527 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4528 call_used_regs when making a register fixed.
4529 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4530 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4531 call_used_regs when making a register fixed.
4532 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4533 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4534 set call_used_regs when making a register fixed.
4535 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4536 * config/visium/visium.c (visium_conditional_register_usage): Remove
4537 the old handling of call_used_regs and change the handling of
4538 call_really_used_regs to use call_used_regs instead.
4540 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4542 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4543 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4544 * reginfo.c (call_used_regs): New macro.
4546 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4548 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4550 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4551 (bpf_expand_epilogue): Likewise.
4552 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4553 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4554 (ft32_expand_epilogue): Likewise.
4555 * config/i386/i386.c (ix86_save_reg): Likewise.
4556 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4557 (moxie_expand_epilogue): Likewise.
4558 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4559 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4560 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4562 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4564 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4565 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4566 instead of testing call_used_regs directly.
4567 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4568 (aarch64_components_for_bb): Likewise.
4569 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4570 * config/arc/arc.c (arc_must_save_register): Likewise.
4571 (arc_epilogue_uses): Likewise.
4572 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4573 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4574 (arm_compute_save_reg0_reg12_mask): Likewise.
4575 (arm_compute_save_core_reg_mask): Likewise.
4576 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4577 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4578 (cmse_nonsecure_entry_clear_before_return): Likewise.
4579 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4580 (arm_expand_epilogue): Likewise.
4581 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4582 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4583 (_reg_unused_after): Likewise.
4584 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4585 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4586 (add_to_reg, hwloop_optimize): Likewise.
4587 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4588 (bpf_expand_epilogue): Likewise.
4589 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4590 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4591 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4592 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4593 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4594 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4595 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4596 * config/frv/frv.c (frv_stack_info): Likewise.
4597 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4598 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4599 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4600 (move_callee_saved_registers): Likewise.
4601 * config/h8300/h8300.c (byte_reg): Likewise.
4602 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4603 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4604 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4605 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4606 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4607 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4608 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4609 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4610 * config/m32c/m32c.c (need_to_save): Likewise.
4611 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4612 * config/mcore/mcore.c (calc_live_regs): Likewise.
4613 * config/microblaze/microblaze.c (microblaze_must_save_register):
4615 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4616 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4617 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4618 (mmix_expand_epilogue): Likewise.
4619 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4620 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4621 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4622 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4623 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4624 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4625 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4626 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4627 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4628 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4629 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4630 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4631 * config/rl78/rl78.c (need_to_save): Likewise.
4632 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4633 (rs6000_stack_info, generate_set_vrsave): Likewise.
4634 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4635 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4636 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4637 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4638 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4639 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4640 (save_local_or_in_reg_p): Likewise.
4641 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4642 (xstormy16_epilogue_uses): Likewise.
4643 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4644 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4645 * config/v850/v850.c (compute_register_save_size): Likewise.
4646 * config/vax/vax.c (vax_expand_prologue): Likewise.
4647 * config/visium/visium.c (visium_save_reg_p): Likewise.
4648 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4649 * cselib.c (cselib_process_insn): Likewise.
4650 * df-scan.c (df_get_entry_block_def_set): Likewise.
4651 * function.c (aggregate_value_p): Likewise.
4652 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4653 * ira-lives.c (process_bb_node_lives): Likewise.
4654 * ira.c (do_reload): Likewise.
4655 * lra-lives.c (process_bb_lives): Likewise.
4656 * lra-remat.c (lra_remat): Likewise.
4657 * lra.c (lra): Likewise.
4658 * postreload.c (reload_combine_recognize_pattern): Likewise.
4659 (reload_cse_move2add): Likewise.
4660 * recog.c (peep2_find_free_register): Likewise.
4661 * regrename.c (check_new_reg_p): Likewise.
4662 * reload.c (find_equiv_reg): Likewise.
4663 * reload1.c (reload, find_reg): Likewise.
4664 * sel-sched.c (init_hard_regs_data): Likewise.
4666 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4668 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4669 regs_invalidated_by_call & ~fixed_reg_set instead of
4670 call_used_or_fixed_regs & ~fixed_reg_set.
4671 * config/sh/sh.c (output_stack_adjust): Likewise.
4673 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4675 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4676 (call_used_reg_set): Delete.
4677 (call_used_or_fixed_regs): New macro.
4678 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4679 of call_used_reg_set.
4680 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4681 instead of call_used_regs.
4682 (save_call_clobbered_regs): Likewise.
4683 * cfgcleanup.c (old_insns_match_p): Likewise.
4684 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4685 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4687 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4688 * config/sh/sh.c (output_stack_adjust): Likewise.
4689 * final.c (collect_fn_hard_reg_usage): Likewise.
4690 * ira-build.c (ira_build): Likewise.
4691 * ira-color.c (calculate_saved_nregs): Likewise.
4692 (allocno_reload_assign, calculate_spill_cost): Likewise.
4693 * ira-conflicts.c (ira_build_conflicts): Likewise.
4694 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4695 * ira-lives.c (process_bb_node_lives): Likewise.
4696 * ira.c (setup_reg_renumber): Likewise.
4697 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4698 * lra-constraints.c (need_for_call_save_p): Likewise.
4699 (need_for_split_p, inherit_in_ebb): Likewise.
4700 * lra-lives.c (process_bb_lives): Likewise.
4701 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4702 * postreload.c (reload_combine): Likewise.
4703 * regrename.c (find_rename_reg): Likewise.
4704 * reload1.c (reload_as_needed): Likewise.
4705 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4706 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4707 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4709 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4711 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4712 (no_caller_save_reg_set): Delete.
4713 * caller-save.c (init_caller_save): Don't initialize it.
4714 * ira-conflicts.c (ira_build_conflicts): Calculate
4715 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4717 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4719 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4720 (target_hard_regs::x_savable_regs): New field.
4721 (call_fixed_reg_set): Delete.
4722 (savable_regs): New macro,
4723 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4724 (init_reg_sets_1): Likewise. Initialize savable_regs.
4725 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4726 for all registers. Set savable_regs instead of call_fixed_reg_set.
4727 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4728 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4729 * config/sh/sh.c (output_stack_adjust): Likewise.
4731 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4733 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4734 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4735 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4737 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4739 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4740 * rtlanal.c (get_call_rtx_from): Likewise.
4741 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4742 than the pattern to get_call_rtx_from.
4743 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4744 an rtx_insn * instead of an rtx.
4745 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4747 2019-09-10 Martin Liska <mliska@suse.cz>
4749 * common.opt: Use newly added WarnRemoved.
4750 * config/aarch64/aarch64.opt: Likewise.
4751 * config/arm/arm.opt: Likewise.
4752 * config/i386/i386.opt: Likewise.
4753 * config/ia64/ia64.opt: Likewise.
4754 * config/rs6000/rs6000.opt: Likewise.
4755 * doc/options.texi: Document WarnRemoved properly.
4756 * dwarf2out.c (gen_producer_string): Handle renamed
4757 OPT_SPECIAL_warn_removed.
4758 * lto-opts.c (lto_write_options): Likewise.
4759 * lto-wrapper.c (merge_and_complain): Likewise.
4760 * opts-common.c (decode_cmdline_option): Likewise.
4761 (prune_options): Likewise.
4762 (read_cmdline_option): Likewise.
4763 (control_warning_option): Likewise.
4764 * opts.c (print_filtered_help): Likewise.
4765 * optc-gen.awk: Parse for WarnRemoved and make usage
4766 of Deprecated an error.
4767 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4769 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4771 * doc/install.texi: Fix syntax for html generation.
4773 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4776 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4777 the shift type to type.
4779 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4781 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4783 (stack_protect_combined_test_insn): Likewise.
4785 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4786 Mickaël Guêné <mickael.guene@st.com>
4788 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4789 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4790 (load_tp_soft_fdpic): New pattern.
4791 (load_tp_soft): Disable in FDPIC mode.
4793 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4794 Mickaël Guêné <mickael.guene@st.com>
4796 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4797 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4798 (arm_call_tls_get_addr): Add FDPIC support.
4799 (legitimize_tls_address): Likewise.
4800 (arm_emit_tls_decoration): Likewise.
4802 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4803 Mickaël Guêné <mickael.guene@st.com>
4805 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4807 (arm_trampoline_init): Likewise.
4808 (arm_trampoline_adjust_address): Likewise.
4809 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4811 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4812 Mickaël Guêné <mickael.guene@st.com>
4814 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4815 (legitimize_pic_address): Enforce binding rules on function
4816 pointers in FDPIC mode.
4817 (arm_assemble_integer): Likewise.
4819 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4820 Mickaël Guêné <mickael.guene@st.com>
4822 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4823 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4826 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4827 Mickaël Guêné <mickael.guene@st.com>
4829 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4832 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4833 Mickaël Guêné <mickael.guene@st.com>
4835 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4837 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4839 * config/arm/arm.c (arm_option_override): Define pic register to
4841 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4842 have no decl or go through PLT.
4843 (calculate_pic_address_constant): New function.
4844 (legitimize_pic_address): Call calculate_pic_address_constant.
4845 (arm_load_pic_register): Handle TARGET_FDPIC.
4846 (arm_is_segment_info_known): New function.
4847 (arm_pic_static_addr): Add support for FDPIC.
4848 (arm_load_function_descriptor): New function.
4849 (arm_emit_call_insn): Add support for FDPIC.
4850 (arm_assemble_integer): Add support for FDPIC.
4851 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4852 Define. (FDPIC_REGNUM): New define.
4853 * config/arm/arm.md (call): Add support for FDPIC.
4854 (call_value): Likewise.
4855 (restore_pic_register_after_call): New pattern.
4856 (untyped_call): Disable if FDPIC.
4857 (untyped_return): Likewise.
4858 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4860 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4861 Mickaël Guêné <mickael.guene@st.com>
4863 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4864 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4865 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4866 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4867 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4868 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4869 * config/arm/uclinuxfdpiceabi.h: New file.
4871 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4873 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4875 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4876 Mickaël Guêné <mickael.guene@st.com>
4878 * config/arm/arm.opt: Add -mfdpic option.
4879 * doc/invoke.texi: Add documentation for -mfdpic.
4881 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4883 * expmed.c (extract_bit_field): Update function comment
4885 * expr.c (expand_expr_real): Update function comment
4887 (expand_misaligned_mem_ref): New helper function.
4888 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4889 Remove duplicate assignment to "base" at case MEM_REF.
4890 Remove a shadowed variable "unsignedp" at case VCE.
4892 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4894 * regset.h (regs_invalidated_by_call_regset): Delete.
4895 (fixed_reg_set_regset): Likewise.
4896 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4897 (fixed_reg_set_regset, persistent_obstack): Likewise.
4898 (init_reg_sets_1, globalize_reg): Update accordingly.
4899 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4900 instead of a bitmap.
4901 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4902 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4903 instead of regs_invalidated_by_call_regset.
4904 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4905 * df-scan.c (df_scan_start_dump): Likewise.
4906 * dse.c (copy_fixed_regs): Likewise.
4907 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4909 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4911 * array-traits.h: New file.
4912 * coretypes.h (array_traits, bitmap_view): New types.
4913 * bitmap.h: Include "array-traits.h"
4914 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4915 (base_bitmap_view, bitmap_view): New classes.
4916 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4917 * hard-reg-set.h: Include array-traits.h.
4918 (array_traits<HARD_REG_SET>): New struct.
4919 * regset.h (IOR_REG_SET_HRS): New macro.
4920 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4921 rather than iterating over each hard register.
4922 * sched-deps.c (sched_analyze_insn): Likewise.
4923 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4925 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4927 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4928 instead of a HARD_REG_SET *.
4929 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4930 (ira_build): Update call accordingly.
4931 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4933 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4935 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4936 (HARD_REG_SET::operator!=): Likewise.
4937 (hard_reg_set_equal_p): Delete.
4938 * cfgcleanup.c (old_insns_match_p): Use == instead of
4939 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4940 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4941 (add_allocno_hard_regs_to_forest): Likewise.
4942 (setup_allocno_available_regs_num): Likewise.
4943 * ira.c (setup_pressure_classes): Likewise.
4944 (setup_allocno_and_important_classes): Likewise.
4945 (setup_reg_class_relations): Likewise.
4946 * lra-lives.c (process_bb_lives): Likewise.
4947 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4949 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4951 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4952 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4953 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4954 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4956 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4957 * ira.c (setup_reg_renumber): Likewise.
4958 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4959 * regrename.c (regrename_find_superclass): Likewise.
4960 * reload1.c (find_reg): Likewise.
4962 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4964 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4965 * caller-save.c (setup_save_areas): Use "&~" instead of
4966 AND_COMPL_HARD_REG_SET.
4967 (save_call_clobbered_regs): Likewise.
4968 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4970 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4971 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4972 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4973 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4974 (mips_conditional_register_usage): Likewise.
4975 * config/sh/sh.c (output_stack_adjust): Likewise.
4976 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4977 (setup_profitable_hard_regs): Likewise.
4978 (get_conflict_and_start_profitable_regs): Likewise.
4979 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4980 (ira_build_conflicts): Likewise.
4981 * ira-costs.c (restrict_cost_classes): Likewise.
4982 (setup_regno_cost_classes_by_aclass): Likewise.
4983 * ira-lives.c (process_bb_node_lives): Likewise.
4984 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4985 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4986 (setup_allocno_and_important_classes, setup_class_translate_array)
4987 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4989 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4990 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4991 (process_alt_operands, inherit_in_ebb): Likewise.
4992 * lra-eliminations.c (update_reg_eliminate): Likewise.
4993 * lra-lives.c (process_bb_lives): Likewise.
4994 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4995 * resource.c (find_dead_or_set_registers): Likewise.
4996 (mark_target_live_regs): Likewise.
4997 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4998 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4999 (implicit_clobber_conflict_p): Likewise.
5000 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5001 (try_shrink_wrapping): Likewise.
5003 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5005 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5006 (HARD_REG_SET::operator|=): Likewise.
5007 (IOR_HARD_REG_SET): Delete.
5008 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5010 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5011 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5012 * final.c (collect_fn_hard_reg_usage): Likewise.
5013 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5014 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5015 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5016 (propagate_some_info_from_allocno): Likewise.
5017 (copy_info_to_removed_store_destinations): Likewise.
5018 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5019 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5020 (fast_allocation): Likewise.
5021 * ira-conflicts.c (ira_build_conflicts): Likewise.
5022 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5023 (process_bb_node_lives): Likewise.
5024 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5025 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5026 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5027 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5028 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5029 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5030 (process_bb_lives): Likewise.
5031 * lra-spills.c (assign_spill_hard_regs): Likewise.
5032 * postreload.c (reload_combine): Likewise.
5033 * reginfo.c (init_reg_sets_1): Likewise.
5034 * regrename.c (merge_overlapping_regs, find_rename_reg)
5035 (merge_chains): Likewise.
5036 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5037 (find_reload_regs, finish_spills, choose_reload_regs_init)
5038 (emit_reload_insns): Likewise.
5039 * reorg.c (redundant_insn): Likewise.
5040 * resource.c (find_dead_or_set_registers, mark_set_resources)
5041 (mark_target_live_regs): Likewise.
5042 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5043 * sched-deps.c (sched_analyze_insn): Likewise.
5044 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5045 (find_best_reg_for_expr): Likewise.
5046 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5048 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5050 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5051 (HARD_REG_SET::operator&): Likewise.
5052 (AND_HARD_REG_SET): Delete.
5053 * caller-save.c (setup_save_areas): Use "&" instead of
5055 (save_call_clobbered_regs): Likewise.
5056 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5057 * config/m32c/m32c.c (reduce_class): Likewise.
5058 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5059 * final.c (get_call_reg_set_usage): Likewise.
5060 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5061 (setup_left_conflict_sizes_p): Likewise.
5062 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5063 (ira_build_conflicts): Likewise.
5064 * ira-costs.c (restrict_cost_classes): Likewise.
5065 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5066 (setup_reg_class_relations): Likewise.
5067 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5068 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5069 * resource.c (find_dead_or_set_registers): Likewise.
5070 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5072 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5074 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5075 (COMPL_HARD_REG_SET): Delete.
5076 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5077 of COMPL_HARD_REG_SET.
5078 (try_rename_operands): Likewise.
5079 * config/sh/sh.c (push_regs): Likewise.
5080 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5081 * lra-constraints.c (contains_reg_p): Likewise.
5082 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5084 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5086 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5087 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5088 of COPY_HARD_REG_SET.
5089 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5090 (epiphany_conditional_register_usage): Likewise.
5091 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5092 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5093 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5094 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5095 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5096 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5097 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5098 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5099 * config/sh/sh.c (output_stack_adjust): Likewise.
5100 * final.c (collect_fn_hard_reg_usage): Likewise.
5101 (get_call_reg_set_usage): Likewise.
5102 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5103 (ira_flattening): Likewise.
5104 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5105 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5106 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5107 (ira_reassign_pseudos): Likewise.
5108 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5109 (ira_build_conflicts): Likewise.
5110 * ira-costs.c (restrict_cost_classes): Likewise.
5111 (setup_regno_cost_classes_by_aclass): Likewise.
5112 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5113 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5114 (setup_stack_reg_pressure_class, setup_pressure_classes)
5115 (setup_allocno_and_important_classes, setup_class_translate_array)
5116 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5117 (ira_setup_eliminable_regset): Likewise.
5118 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5119 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5120 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5121 (process_alt_operands, inherit_in_ebb): Likewise.
5122 * lra-lives.c (process_bb_lives): Likewise.
5123 * lra-spills.c (assign_spill_hard_regs): Likewise.
5124 * lra.c (lra): Likewise.
5125 * mode-switching.c (new_seginfo): Likewise.
5126 * postreload.c (reload_combine): Likewise.
5127 * reg-stack.c (straighten_stack): Likewise.
5128 * reginfo.c (save_register_info, restore_register_info): Likewise.
5129 (init_reg_sets_1, record_subregs_of_mode): Likewise
5130 * regrename.c (create_new_chain, rename_chains): Likewise.
5131 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5132 (find_reload_regs): Likewise.
5133 * resource.c (find_dead_or_set_registers): Likewise.
5134 (mark_target_live_regs): Likewise.
5135 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5137 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5139 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5140 (note_pattern_stores): Declare.
5141 (note_stores): Take an rtx_insn *.
5142 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5143 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5144 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5145 (note_stores): Take an rtx_insn * as argument and process
5146 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5147 (note_pattern_stores): ...this.
5148 (find_first_parameter_load): Pass the insn rather than
5149 its pattern to note_stores.
5150 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5151 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5152 (insert_one_insn): Likewise.
5153 * combine.c (combine_instructions): Likewise.
5154 (likely_spilled_retval_p): Likewise.
5155 (try_combine): Use note_pattern_stores instead of note_stores.
5156 (record_dead_and_set_regs): Pass the insn rather than its pattern
5158 (reg_dead_at_p): Likewise.
5159 * config/bfin/bfin.c (workaround_speculation): Likewise.
5160 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5162 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5163 instead of note_stores.
5164 (frv_optimize_membar_local): Pass the insn rather than its pattern
5166 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5167 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5168 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5169 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5170 (mips_reorg_process_insns): Likewise.
5171 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5172 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5174 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5175 its pattern to note_stores.
5176 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5178 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5179 the insn to note_stores.
5180 (prescan_insns_for_dce): Update call accordingly.
5181 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5183 * df-problems.c (can_move_insns_across): Likewise.
5184 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5185 * function.c (assign_parm_setup_reg): Likewise.
5186 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5187 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5188 (single_set_gcse): Likewise.
5189 * ira.c (validate_equiv_mem): Likewise.
5190 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5192 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5193 pattern to note_stores.
5194 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5195 * loop-iv.c (simplify_using_initial_values): Likewise.
5196 * mode-switching.c (optimize_mode_switching): Likewise.
5197 * optabs.c (emit_libcall_block_1): Likewise.
5198 (expand_atomic_compare_and_swap): Likewise.
5199 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5200 (record_opr_changes): Likewise. Remove explicit handling of
5201 CALL_INSN_FUNCTION_USAGE.
5202 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5203 * regcprop.c (kill_clobbered_values): Likewise.
5204 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5206 * regrename.c (build_def_use): Likewise.
5207 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5208 for mark_not_eliminable.
5209 (reload_as_needed): Pass the insn rather than its pattern
5211 (emit_output_reload_insns): Likewise.
5212 * resource.c (mark_target_live_regs): Likewise.
5213 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5214 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5215 instead of note_stores.
5216 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5217 its pattern to note_stores.
5218 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5219 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5221 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5223 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5224 than a #define. Use a structure rather than an array as the
5225 fallback definition. Remove special cases for low array sizes.
5226 (const_hard_reg_set): New typedef.
5227 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5228 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5229 (hard_reg_set_empty_p): Likewise.
5230 (SET_HARD_REG_BIT): Use a function rather than a macro to
5231 handle the case in which HARD_REG_SET is a structure.
5232 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5233 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5234 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5235 (IOR_COMPL_HARD_REG_SET): Likewise.
5236 (hard_reg_set_iterator::pset): Constify the pointer target.
5237 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5238 of a "const HARD_REG_SET". Update the handling of non-integer
5240 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5241 * reload.h: Likewise.
5242 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5243 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5244 of a "const HARD_REG_SET".
5245 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5246 (range_in_hard_reg_set_p): Likewise.
5247 * ira-costs.c (restrict_cost_classes): Likewise.
5248 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5249 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5250 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5251 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5252 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5253 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5254 take an unsigned int and open-code the HARD_REG_SET operations.
5256 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5258 * Makefile.in (OBJS): Remove bt-load.o.
5259 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5260 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5261 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5262 document that the option no longer does anything.
5263 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5264 * target.def (branch_target_register_class): Delete.
5265 (branch_target_register_callee_saved): Likewise.
5266 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5267 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5268 * doc/tm.texi: Regenerate.
5269 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5270 (make_pass_branch_target_load_optimize2): Likewise.
5271 * passes.def (pass_branch_target_load_optimize1): Likewise.
5272 (pass_branch_target_load_optimize2): Likewise.
5273 * targhooks.h (default_branch_target_register_class): Likewise.
5274 * targhooks.c (default_branch_target_register_class): Likewise.
5275 * opt-suggestions.c (test_completion_valid_options): Remove
5276 -fbtr-bb-exclusive from the list of test options.
5277 * bt-load.c: Remove.
5279 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5281 * match.pd: Add flag_unsafe_math_optimizations check
5282 before deciding on the widest type in a binary math operation.
5284 2019-09-09 Martin Liska <mliska@suse.cz>
5286 * config/i386/i386.opt: Update comment of removed
5287 options that are preserved only for backward
5290 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5293 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5297 * config/i386/avxintrin.h (__v32qs): New typedef.
5298 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5301 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5303 * doc/invoke.texi (Option Summary): Cover eBPF.
5304 (eBPF Options): New section.
5305 * doc/extend.texi (BPF Built-in Functions): Likewise.
5306 (BPF Kernel Helpers): Likewise.
5308 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5310 * config.gcc: Support for bpf-*-* targets.
5311 * common/config/bpf/bpf-common.c: New file.
5312 * config/bpf/t-bpf: Likewise.
5313 * config/bpf/predicates.md: Likewise.
5314 * config/bpf/constraints.md: Likewise.
5315 * config/bpf/bpf.opt: Likewise.
5316 * config/bpf/bpf.md: Likewise.
5317 * config/bpf/bpf.h: Likewise.
5318 * config/bpf/bpf.c: Likewise.
5319 * config/bpf/bpf-protos.h: Likewise.
5320 * config/bpf/bpf-opts.h: Likewise.
5321 * config/bpf/bpf-helpers.h: Likewise.
5322 * config/bpf/bpf-helpers.def: Likewise.
5324 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5326 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5329 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5331 * opt-functions.awk (integer_range_info): Make sure values are in
5332 numeric context before operating with them.
5334 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5336 * genemit.c (gen_split): Print the filename and line number where the
5337 splitter (or peephole2) was defined, to the dump file.
5339 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5341 PR tree-optimization/91665
5342 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5343 incompatible with the type of PHI result.
5345 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5348 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5349 gen_unaligned_storedi for 4-byte aligned addresses.
5351 2019-09-06 Jim Wilson <jimw@sifive.com>
5353 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5356 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5358 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5360 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5362 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5363 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5365 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5368 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5369 cost of SSE->integer and integer->SSE moves from 2 to 6.
5372 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5374 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5375 before testing TYPE_TRANSPARENT_AGGR.
5376 * calls.c (initialize_argument_information, load_register_parameters):
5379 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5381 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5383 (cmp_ior): Likewise.
5385 2019-09-06 Martin Liska <mliska@suse.cz>
5387 * doc/match-and-simplify.texi: Separate tuples with ;.
5389 2019-09-06 Martin Liska <mliska@suse.cz>
5392 * Makefile.in: Remove tlink.o.
5393 * collect2.c (do_link): New function isolated
5396 * collect2.h (do_tlink): Remove declaration of do_tlink.
5397 * doc/extend.texi: Remove documentation of -frepo.
5398 * doc/invoke.texi: Likewise.
5399 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5402 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5403 Jim Wilson <jimw@sifive.com>
5406 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5407 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5408 paradoxical_subreg_p (operands[0]).
5409 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5410 use as intermediate value.
5412 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5414 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5415 (sync_compare_and_swap<mode>_insn): Likewise.
5417 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5420 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5421 without movmisalign optab.
5423 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5428 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5429 types, use type of their first field instead of type of
5432 2019-09-05 Richard Biener <rguenther@suse.de>
5434 PR rtl-optimization/91656
5435 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5438 2019-09-05 Richard Biener <rguenther@suse.de>
5441 * tree-inline.c (declare_return_variable): Mark the return
5442 slot as addressable after building an address of it.
5444 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5446 * doc/install.texi: Update and clarify requirements to build GNAT.
5448 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5451 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5452 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5453 call to be in memory.
5454 (pass_expand::execute): Call discover_nonconstant_array_refs before
5455 setting currently_expanding_to_rtl.
5457 2019-09-04 Caroline Tice <cmtice@google.com>
5459 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5462 2019-09-04 Marek Polacek <polacek@redhat.com>
5464 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5466 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5469 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5470 for QI and HImode moves between SSE and general registers.
5472 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5475 * doc/invoke.texi: Document -Wenum-conversion.
5477 2019-09-04 Richard Biener <rguenther@suse.de>
5479 PR rtl-optimization/36262
5480 * postreload-gcse.c: Include intl.h and gcse.h.
5481 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5482 to avoid linear list walk.
5483 (record_last_mem_set_info): Gate off if not computing transparentness.
5484 (get_bb_avail_insn): If transparentness isn't computed give up
5486 (gcse_after_reload_main): Skip compute_transp and extended PRE
5487 if gcse_or_cprop_is_too_expensive says so.
5489 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5491 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5493 (msp430_select_section): Handle decls with the "noinit" attribute with
5494 default_elf_select_section.
5495 Handle SECCAT_RODATA_MERGE_* section types with
5496 default_elf_select_section.
5497 Add comments about handling of unsupported section types.
5498 (msp430_section_type_flags): Remove handling of the noinit section.
5500 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5502 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5503 conflicting msp430-specific attributes.
5504 (msp430_section_attr): Likewise.
5505 Add warnings about conflicts with generic "noinit" and "section"
5507 Fix grammar in -mlarge error message.
5508 (msp430_data_attr): Rename to msp430_persist_attr.
5509 Add warnings about conflicts with generic "noinit" and "section"
5511 Add warning for when variable is not initialized.
5512 Chain conditionals which prevent the attribute being added.
5513 (ATTR_EXCL): New helper.
5514 (attr_reent_exclusions): New exclusion table.
5515 (attr_naked_exclusions): Likewise.
5516 (attr_crit_exclusions): Likewise.
5517 (attr_lower_exclusions): Likewise.
5518 (attr_upper_exclusions): Likewise.
5519 (attr_either_exclusions): Likewise.
5520 (attr_persist_exclusions): Likewise.
5521 (msp430_attribute_table): Update with exclusion rules.
5522 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5525 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5527 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5528 (msp430_handle_generic_attribute): New function.
5529 * doc/tm.texi: Regenerate.
5530 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5531 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5532 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5533 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5535 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5537 PR tree-optimization/91504
5538 * match.pd: Add ((~a & b) ^a) --> (a | b).
5540 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5543 * config/i386/i386-expand.c (split_double_mode): If there is more than
5544 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5545 already split matching MEM operand instead of calling adjust_address
5548 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5550 * config.gcc: Obsolete spu target. Remove references to spu.
5551 * configure.ac: Remove references to spu.
5552 * configure: Regenerate.
5553 * config/spu/: Remove directory.
5554 * common/config/spu/: Remove directory.
5556 * doc/extend.texi: Remove references to spu.
5557 * doc/invoke.texi: Likewise.
5558 * doc/md.texi: Likewise.
5559 * doc/sourcebuild.texi: Likewise.
5561 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5566 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5567 and SSA_NAME referring to CONSTANT_P correctly.
5569 2019-09-03 Richard Biener <rguenther@suse.de>
5571 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5572 (vn_nary_op_insert): Likewise.
5573 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5574 (vn_nary_op_lookup): Likewise.
5575 (vn_nary_op_insert): Likewise.
5577 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5579 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5580 (*op0, 1) instead of XEXP (*op1, 0).
5582 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5584 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5585 (aarch64_fjcvtzs): New define_insn.
5586 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5587 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5589 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5590 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5591 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5592 __ARM_FEATURE_JCVT where appropriate.
5593 * config/aarch64/arm_acle.h (__jcvt): Define.
5595 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5597 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5598 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5599 (aarch64_<frintnzs_op><mode>): New define_insn.
5600 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5601 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5602 __ARM_FEATURE_FRINT when appropriate.
5603 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5604 frint32x, frint64z, frint64x.
5605 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5606 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5607 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5608 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5609 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5610 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5611 * config/aarch64/iterators.md (VSFDF): Define.
5612 (FRINTNZX): Likewise.
5613 (frintnzs_op): Likewise.
5615 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5617 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5618 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5620 * config/aarch64/aarch64-tune.md: Regenerated.
5621 * doc/invoke.texi: Document the new processors.
5623 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5625 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5629 (sve2-sm4): Likewise.
5631 (svesha3): Likewise.
5632 (svebitperm): Likewise.
5634 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5635 Richard Biener <rguenther@suse.de>
5637 PR tree-optimization/91597
5638 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5639 BIT_AND_EXPR optimization for pointers, even if both operand
5640 ranges don't include NULL, the result can be NULL.
5642 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5645 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5646 (non_mem_decl_p): ...this.
5647 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5648 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5649 unconditionally as before.
5651 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5654 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5655 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5656 * tree.def (LTGT_EXPR): Likewise.
5657 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5659 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5662 * fold-const.c (range_check_type): For enumeral and boolean
5663 type, pass 1 to type_for_size langhook instead of
5664 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5665 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5666 (build_range_check): Don't call unsigned_type_for for pointer types.
5667 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5668 range_check_type result.
5670 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5672 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5673 (replace_ref): Do not replace a chain of only two candidates which are
5674 valid memory references.
5676 2019-09-02 Martin Liska <mliska@suse.cz>
5678 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5679 Bail out when we'll end up with the same number of clusters as
5681 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5682 (jump_table_cluster::can_be_handled): Remove the guard
5683 as it's already handled in ::is_enabled. Allocate output
5684 after early bail out.
5686 2019-09-02 Martin Liska <mliska@suse.cz>
5688 PR gcov-profile/91601
5689 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5690 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5691 also negative edges.
5692 (circuit): Handle also negative edges as they can happen
5695 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5698 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5699 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5700 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5702 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5705 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5706 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5707 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5711 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5712 GIMPLE_ASM TREE_LIST operands.
5714 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5716 * doc/generic.texi (Unary and Binary Expressions): Mark up
5717 an instance of TYPE_MIN.
5719 2019-08-31 Stafford Horne <shorne@gmail.com>
5721 * config/or1k/constraints.md (t): New constraint.
5722 * config/or1k/or1k.h (GOT_REGS): New register class.
5723 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5725 2019-08-30 Jim Wilson <jimw@sifive.com>
5727 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5728 and -fpic and -mplt then disable -msave-restore and warn.
5730 2019-08-30 Martin Sebor <msebor@redhat.com>
5733 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5734 the statement doesn't have one.
5735 * gimple-pretty-print.c (percent_G_format): Same.
5738 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5739 before using them to validate MEM_REF offset.
5741 2019-08-30 Marek Polacek <polacek@redhat.com>
5743 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5745 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5747 * config/arm/arm.md (unaligned_loaddi,
5748 unaligned_storedi): New unspec insn patterns.
5749 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5750 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5751 and unaligned_storedi for 4-byte aligned memory.
5752 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5753 4-byte aligned memory.
5755 2019-08-30 Martin Jambor <mjambor@suse.cz>
5757 tree-optimization/91579
5758 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5759 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5761 (arg_needs_copy_p): Removed.
5762 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5764 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5766 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5768 * config/i386/i386-features.c
5769 (general_scalar_chain::compute_convert_gain):
5770 Correct cost for double-word shifts.
5771 (general_scalar_to_vector_candidate_p): Reject count operands
5772 greater or equal to mode bitsize.
5774 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5776 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5777 for moves between SSE and non-general registers and between
5778 mask and non-general registers.
5779 (ix86_register_move_cost): Remove stalled comment.
5781 2019-08-29 Richard Biener <rguenther@suse.de>
5783 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5784 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5786 2019-08-29 Richard Biener <rguenther@suse.de>
5789 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5790 Do not emit scalar copies for debug-insns, instead replace
5791 their uses with the reg copy used in the chain or reset them
5792 if there is a reaching definition outside of the chain as well.
5794 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5797 * config/i386/i386-expand.c (expand_vec_perm_movs,
5798 expand_vec_perm_blend, expand_vec_perm_vpermil,
5799 expand_vec_perm_pshufb, expand_vec_perm_1,
5800 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5801 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5802 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5803 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5804 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5805 comments - replace ix86_expand_vec_perm_builtin_1 with
5806 ix86_expand_vec_perm_const_1.
5807 (expand_vec_perm2_vperm2f128_vblend): New function.
5808 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5809 expand_vec_perm2_vperm2f128_vblend as last resort.
5810 (canonicalize_perm): Formatting fix.
5812 PR tree-optimization/91351
5813 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5815 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5816 range_check_type returns NULL.
5817 * tree-switch-conversion.c (switch_conversion::build_one_array):
5818 Use range_check_type instead of unsigned_type_for, don't perform
5819 linear opt if it returns NULL.
5820 (bit_test_cluster::find_bit_tests): Formatting fix.
5821 (bit_test_cluster::emit): Use range_check_type instead of
5823 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5826 2019-08-29 Richard Biener <rguenther@suse.de>
5828 PR tree-optimization/91568
5829 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5830 (vect_update_max_nunits): Add overload for poly_uint64.
5831 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5832 (vect_build_slp_tree): Record max_nunits into the subtree
5833 and merge it upwards.
5834 (vect_print_slp_tree): Print max_nunits.
5836 2019-08-28 Marek Polacek <polacek@redhat.com>
5838 Implement P1152R4: Deprecating some uses of volatile.
5840 * doc/invoke.texi: Document -Wvolatile.
5842 2019-08-28 Marek Polacek <polacek@redhat.com>
5844 PR c++/91360 - Implement C++20 P1143R2: constinit.
5845 * doc/invoke.texi: Document -Wc++20-compat.
5847 2019-08-28 Martin Sebor <msebor@redhat.com>
5849 PR tree-optimization/91457
5850 * builtins.c (component_size): New function.
5851 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5852 * builtins.h (compute_objsize): Add argument.
5853 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5854 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5855 (vrp_prop::check_mem_ref): Same.
5856 (vrp_prop::search_for_addr_array): Set no-warning bit.
5857 (check_array_bounds): Same.
5859 2019-08-28 Martin Sebor <msebor@redhat.com>
5862 * opts-common.c (option_enabled): Correct checking for language
5865 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5867 * config/i386/i386.c (ix86_register_move_cost): Do not
5868 limit the cost of moves to/from XMM register to minimum 8.
5870 2019-08-28 Martin Jambor <mjambor@suse.cz>
5873 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5874 checking assert a normal assert to test it really is redundant.
5875 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5877 (update_jump_functions_after_inlining): Removed combining unary
5878 arithmetic operations with an ancestor jump function.
5879 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5882 2019-08-28 Richard Biener <rguenther@suse.de>
5884 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5887 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5888 Richard Biener <rguenther@suse.de>
5890 * expr.c (expand_assignment): Handle misaligned DECLs.
5891 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5892 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5894 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5895 * varasm.c (build_constant_desc): Align constants of misaligned types.
5896 * config/arm/predicates.md (aligned_operand): New predicate.
5897 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5898 aligned_operand to check restrictions on memory addresses.
5899 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5900 * config/arm/vec-common.md (mov<VALL>): Likewise.
5902 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5905 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5906 V_128 iterator instead of VI_128.
5908 2019-08-28 Martin Liska <mliska@suse.cz>
5910 PR tree-optimization/90970
5911 * builtins.c (check_access): Remove assignment to maxread
5912 as it hasn't been used since when it was introduced in r255755.
5914 2019-08-27 Martin Sebor <msebor@redhat.com>
5916 PR tree-optimization/91567
5917 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5919 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5922 2019-08-27 Jeff Law <law@redhat.com>
5924 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5925 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5927 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5930 * config/i386/i386-features.c (convert_scalars_to_vector):
5931 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5932 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5933 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5934 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5936 2019-08-27 Richard Biener <rguenther@suse.de>
5938 * config/i386/i386-features.h
5939 (general_scalar_chain::~general_scalar_chain): Add.
5940 (general_scalar_chain::insns_conv): New bitmap.
5941 (general_scalar_chain::n_sse_to_integer): New.
5942 (general_scalar_chain::n_integer_to_sse): Likewise.
5943 (general_scalar_chain::make_vector_copies): Adjust signature.
5944 * config/i386/i386-features.c
5945 (general_scalar_chain::general_scalar_chain): Outline,
5946 initialize new members.
5947 (general_scalar_chain::~general_scalar_chain): New.
5948 (general_scalar_chain::mark_dual_mode_def): Record insns
5949 we need to insert conversions at and count them.
5950 (general_scalar_chain::compute_convert_gain): Account
5951 for conversion instructions at chain boundary.
5952 (general_scalar_chain::make_vector_copies): Generate a single
5953 copy for a def by a specific insn.
5954 (general_scalar_chain::convert_registers): First populate
5955 defs_map, then make copies at out-of chain insns.
5957 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5959 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5961 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5963 2019-08-27 Martin Liska <mliska@suse.cz>
5965 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5967 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5968 Enclose in anonymous namespace.
5969 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5970 hard_register initialization in braces.
5971 * tree-vrp.h (value_range_base::supports_type_p): Return false
5972 for function with boolean return type.
5974 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5976 * config/i386/i386.c (emit_i387_cw_initialization)
5977 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5979 2019-08-26 Martin Sebor <msebor@redhat.com>
5982 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5983 (sprintf_dom_walker): Remove class.
5984 (get_int_range): Make argument const.
5985 (directive::fmtfunc, directive::set_precision): Same.
5986 (format_none): Same.
5987 (build_intmax_type_nodes): Same.
5988 (adjust_range_for_overflow): Same.
5989 (format_floating): Same.
5990 (format_character): Same.
5991 (format_string): Same.
5992 (format_plain): Same.
5993 (get_int_range): Cast away constness.
5994 (format_integer): Same.
5995 (get_string_length): Call get_range_strlen_dynamic. Handle
5996 null lendata.maxbound.
5997 (should_warn_p): Adjust argument scope qualifier.
5999 (format_directive): Same.
6000 (parse_directive): Same.
6001 (is_call_safe): Same.
6002 (try_substitute_return_value): Same.
6003 (sprintf_dom_walker::handle_printf_call): Rename...
6004 (handle_printf_call): ...to this. Initialize target to host charmap
6005 here instead of in pass_sprintf_length::execute.
6006 (struct call_info): Make global.
6007 (sprintf_dom_walker::compute_format_length): Make global.
6008 (sprintf_dom_walker::handle_gimple_call): Same.
6009 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6010 * print-rtl.c (print_pattern): Reduce the number of spaces to
6011 avoid -Wformat-truncation.
6012 * tree-pass.h (make_pass_warn_printf): New function.
6013 * tree-ssa-strlen.c (strlen_optimize): New variable.
6014 (get_string_length): Add comments.
6015 (get_range_strlen_dynamic): New function.
6016 (check_and_optimize_call): New function.
6017 (handle_integral_assign): New function.
6018 (strlen_check_and_optimize_stmt): Factor code out into
6019 strlen_check_and_optimize_call and handle_integral_assign.
6020 (strlen_dom_walker::evrp): New member.
6021 (strlen_dom_walker::before_dom_children): Use evrp member.
6022 (strlen_dom_walker::after_dom_children): Use evrp member.
6023 (printf_strlen_execute): New function.
6024 (pass_strlen::gate): Update to handle printf calls.
6025 (dump_strlen_info): New function.
6026 (pass_data_warn_printf): New variable.
6027 (pass_warn_printf): New class.
6028 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6029 (handle_printf_call): Same.
6030 * tree-vrp.c (value_range_base::type): Adjust assertion.
6031 * vr-values.c (vr_values::update_value_range): Use type of the first
6032 argument rather than the second.
6034 2019-08-26 Richard Biener <rguenther@suse.de>
6036 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6038 (convert_scalars_to_vector): Do not call it.
6040 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6041 Uros Bizjak <ubizjak@gmail.com>
6043 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6044 CASE_MATHFN_FLOATN for roundeven.
6045 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6047 (ix86_mode_needed): Likewise.
6048 (ix86_mode_after): Likewise.
6049 (ix86_mode_entry): Likewise.
6050 (ix86_mode_exit): Likewise.
6051 (ix86_emit_mode_set): Likewise.
6052 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6053 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6054 (ix86_entity): Add I387_ROUNDEVEN.
6055 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6056 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6057 (define_int_iterator): Likewise.
6058 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6059 (define_constant): Define ROUND_ROUNDEVEN mode.
6060 (define_attr): Add roundeven mode for i387_cw.
6061 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6062 * internal-fn.def (ROUNDEVEN): New builtin function.
6063 * optabs.def (roundeven_optab): New optab.
6065 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6067 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6069 * builtins.def: Added function definitions for roundeven function
6071 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6072 function call. Adjust condition for floor, ceil, trunc and round.
6073 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6074 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6075 (integer_valued_real_call_p): Added case for roundeven function.
6076 * real.c (is_even): New function. Returns true if real number is even,
6077 otherwise returns false.
6078 (is_halfway_below): New function. Returns true if real number is
6079 halfway between two integers, else return false.
6080 (real_roundeven): New function. Round real number to nearest integer,
6081 rounding halfway cases towards even.
6082 * real.h (real_value): Added descriptive comments. Added function
6083 declaration for roundeven function.
6084 * doc/extend.texi (Other Builtins): List roundeven variants among
6085 functions which can be handled as builtins.
6087 2019-08-26 Richard Biener <rguenther@suse.de>
6091 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6093 (general_scalar_chain::replace_with_subreg): Remove.
6094 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6095 (general_scalar_chain::convert_reg): Adjust signature.
6096 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6097 iterate over all defs of a reg.
6098 (general_scalar_chain::replace_with_subreg): Remove.
6099 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6100 (general_scalar_chain::make_vector_copies): Populate defs_map,
6101 place copy only after defs that are used as vectors in the chain.
6102 (general_scalar_chain::convert_reg): Emit a copy for a specific
6103 def in a specific instruction.
6104 (general_scalar_chain::convert_op): All reg uses are converted here.
6105 (general_scalar_chain::convert_insn): Emit copies for scalar
6106 uses of defs here. Replace uses with the copies we created.
6107 Replace and convert the def. Adjust REG_DEAD notes, remove
6108 REG_EQUIV/EQUAL notes.
6109 (general_scalar_chain::convert_registers): Only handle copies
6110 into the chain here.
6112 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6114 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6116 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6118 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6119 Add nop_convert case.
6120 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6121 Fold all statements if requested.
6122 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6123 Allow to fold all statements.
6124 * tree-vrp.c (class vrp_folder):
6125 Let substitute_and_fold_engine fold all statements.
6127 2019-08-26 Richard Biener <rguenther@suse.de>
6129 PR tree-optimization/91526
6130 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6131 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6132 TODO_update_address_taken.
6134 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6136 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6139 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6141 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6142 machine mode for unspec_volatile operand.
6144 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6146 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6147 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6148 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6149 (prefer_neon_for_64bits): Remove.
6150 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6151 (tune_params): Remove PREF_NEON_64_FALSE uses.
6152 (arm_option_override): Remove prefer_neon selection code.
6153 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6154 * gcc/config/arm/arm-protos.h (tune_params): Remove
6155 prefer_neon_for_64bits.
6156 (prefer_neon_for_64bits): Remove.
6158 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6161 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6162 and issue any diagnostics needed before collecting the pre-PCH
6165 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6168 * common.opt (fexcess-precision=): Add Optimization flag. Use
6169 flag_excess_precision variable instead of
6170 flag_excess_precision_cmdline.
6171 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6173 (flag_excess_precision): Don't define.
6174 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6175 flag_excess_precision_cmdline. Remove comment.
6176 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6177 and x_flag_excess_precision instead of
6178 frontend_set_flag_excess_precision_cmdline and
6179 x_flag_excess_precision_cmdline.
6180 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6181 x_flag_excess_precision_cmdline.
6182 * toplev.c (init_excess_precision): Remove.
6183 (lang_dependent_init_target): Don't call it.
6185 2019-08-23 Martin Liska <mliska@suse.cz>
6187 * lto-wrapper.c (run_gcc): When setting jobserver
6188 set also parallel to 1. This was done so before r273908.
6190 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6192 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6193 (cortex-a76ae): Likewise.
6194 (cortex-a77): Likewise
6195 * config/arm/arm-tables.opt: Regenerate.
6196 * config/arm/arm-tune.md: Likewise.
6197 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6198 cortex-a77 CPU options.
6200 2019-08-23 Martin Liska <mliska@suse.cz>
6202 * profile.c (instrument_values): Do not set
6204 * tree-profile.c (gimple_gen_interval_profiler): Remove
6206 (gimple_gen_pow2_profiler): Likewise.
6207 (gimple_gen_topn_values_profiler): Likewise.
6208 (gimple_gen_ic_profiler): Likewise.
6209 (gimple_gen_time_profiler): Likewise.
6210 (gimple_gen_average_profiler): Likewise.
6211 (gimple_gen_ior_profiler): Likewise.
6212 * value-prof.c (dump_histogram_value): Use default
6213 in switch statement instead of HIST_TYPE_MAX.
6214 (stream_in_histogram_value): Likewise.
6215 (gimple_duplicate_stmt_histograms): Do not
6216 use NULL for implicitly set arguments.
6217 (gimple_divmod_values_to_profile): Do not use
6219 (gimple_indirect_call_to_profile): Likewise.
6220 (gimple_find_values_to_profile): Use implicit
6221 function call arguments.
6222 * value-prof.h (gimple_alloc_histogram_value):
6224 (gimple_gen_interval_profiler): Remove last argument.
6225 (gimple_gen_pow2_profiler): Likewise.
6226 (gimple_gen_topn_values_profiler): Likewise.
6227 (gimple_gen_ic_profiler): Likewise.
6228 (gimple_gen_time_profiler): Likewise.
6229 (gimple_gen_average_profiler): Likewise.
6230 (gimple_gen_ior_profiler): Likewise.
6232 2019-08-22 Martin Sebor <msebor@redhat.com>
6235 * builtins.c (c_strlen): Rename argument and introduce new local.
6236 Set no-warning bit on original argument.
6237 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6238 Fold empty and zero constructors into empty strings.
6239 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6240 for missing initializers.
6241 * tree.c (build_string_literal): Handle optional argument.
6242 * tree.h (build_string_literal): Add defaulted argument.
6243 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6244 no-warning bit on original expression.
6246 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6249 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6250 and UNSPEC_DARN_RAW.
6251 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6253 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6254 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6255 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6257 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6259 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6260 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6261 * config/rs6000/rs6000.md (unspec): ... here.
6262 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6263 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6264 cmpeqb, *cmpeqb_internal): Delete, move to...
6265 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6266 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6267 cmpeqb, *cmpeqb_internal): ... here.
6269 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6271 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6272 intrinsics if __ARM_FP.
6273 Use __ARM_FEATURE_CRC32 ifdef guard.
6275 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6277 * config/arm/arm.md (neon_for_64bits): Remove.
6278 (avoid_neon_for_64bits): Remove.
6279 (arm_adddi3): Always split early.
6280 (arm_subdi3): Always split early.
6281 (negdi2): Remove Neon expansion.
6282 (split zero_extend): Split before reload.
6283 (split sign_extend): Split before reload.
6285 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6287 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6288 (qhs_extenddi_cstr): Likewise.
6289 * config/arm/arm.md (ashldi3): Always expand early.
6290 (ashlsi3): Likewise.
6291 (ashrsi3): Likewise.
6292 (zero_extend<mode>di2): Remove Neon variants.
6293 (extend<mode>di2): Likewise.
6294 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6295 (signed_shift_di3_neon): Likewise.
6296 (unsigned_shift_di3_neon): Likewise.
6297 (ashrdi3_neon_imm_noclobber): Likewise.
6298 (lshrdi3_neon_imm_noclobber): Likewise.
6299 (<shift>di3_neon): Likewise.
6300 (split extend): Remove DI extend split patterns.
6302 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6304 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6305 (split not): Add DImode not splitter.
6306 (anddi3): Remove pattern.
6307 (anddi3_insn): Likewise.
6308 (anddi_zesidi_di): Likewise.
6309 (anddi_sesdi_di): Likewise.
6310 (anddi_notdi_di): Likewise.
6311 (anddi_notzesidi_di): Likewise.
6312 (anddi_notsesidi_di): Likewise.
6314 (iordi3_insn): Likewise.
6315 (iordi_zesidi_di): Likewise.
6316 (iordi_sesidi_di): Likewise.
6318 (xordi3_insn): Likewise.
6319 (xordi_sesidi_di): Likewise.
6320 (xordi_zesidi_di): Likewise.
6321 (one_cmpldi2): Likewise.
6322 (one_cmpldi2_insn): Likewise.
6323 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6324 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6326 (iwmmxt_xordi3): Likewise.
6327 (iwmmxt_anddi3): Likewise.
6328 * config/arm/neon.md (orndi3_neon): Remove pattern.
6329 (anddi_notdi_di): Likewise.
6330 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6331 (arm_iordi_operand_neon): Likewise.
6332 (arm_xordi_operand_neon): Likewise.
6333 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6334 (iordi_notzesidi_di): Likewise.
6335 (iordi_notdi_zesidi): Likewise.
6336 (iordi_notsesidi_di): Likewise.
6338 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6340 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6342 (iorsi3_compare0_scratch): Likewise.
6344 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6346 * config/aarch64/aarch64-simd-builtins.def:
6349 * config/aarch64/aarch64-simd.md:
6350 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6351 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6352 (aarch64_ld1_x4_<mode>): Likewise.
6353 (aarch64_st1_x4_<mode>): Likewise.
6354 * config/aarch64/arm_neon.h:
6355 (vld1_s8_x4): New function.
6356 (vld1q_s8_x4): Likewise.
6357 (vld1_s16_x4): Likewise.
6358 (vld1q_s16_x4): Likewise.
6359 (vld1_s32_x4): Likewise.
6360 (vld1q_s32_x4): Likewise.
6361 (vld1_u8_x4): Likewise.
6362 (vld1q_u8_x4): Likewise.
6363 (vld1_u16_x4): Likewise.
6364 (vld1q_u16_x4): Likewise.
6365 (vld1_u32_x4): Likewise.
6366 (vld1q_u32_x4): Likewise.
6367 (vld1_f16_x4): Likewise.
6368 (vld1q_f16_x4): Likewise.
6369 (vld1_f32_x4): Likewise.
6370 (vld1q_f32_x4): Likewise.
6371 (vld1_p8_x4): Likewise.
6372 (vld1q_p8_x4): Likewise.
6373 (vld1_p16_x4): Likewise.
6374 (vld1q_p16_x4): Likewise.
6375 (vld1_s64_x4): Likewise.
6376 (vld1_u64_x4): Likewise.
6377 (vld1_p64_x4): Likewise.
6378 (vld1q_s64_x4): Likewise.
6379 (vld1q_u64_x4): Likewise.
6380 (vld1q_p64_x4): Likewise.
6381 (vld1_f64_x4): Likewise.
6382 (vld1q_f64_x4): Likewise.
6383 (vst1_s8_x4): Likewise.
6384 (vst1q_s8_x4): Likewise.
6385 (vst1_s16_x4): Likewise.
6386 (vst1q_s16_x4): Likewise.
6387 (vst1_s32_x4): Likewise.
6388 (vst1q_s32_x4): Likewise.
6389 (vst1_u8_x4): Likewise.
6390 (vst1q_u8_x4): Likewise.
6391 (vst1_u16_x4): Likewise.
6392 (vst1q_u16_x4): Likewise.
6393 (vst1_u32_x4): Likewise.
6394 (vst1q_u32_x4): Likewise.
6395 (vst1_f16_x4): Likewise.
6396 (vst1q_f16_x4): Likewise.
6397 (vst1_f32_x4): Likewise.
6398 (vst1q_f32_x4): Likewise.
6399 (vst1_p8_x4): Likewise.
6400 (vst1q_p8_x4): Likewise.
6401 (vst1_p16_x4): Likewise.
6402 (vst1q_p16_x4): Likewise.
6403 (vst1_s64_x4): Likewise.
6404 (vst1_u64_x4): Likewise.
6405 (vst1_p64_x4): Likewise.
6406 (vst1q_s64_x4): Likewise.
6407 (vst1q_u64_x4): Likewise.
6408 (vst1q_p64_x4): Likewise.
6409 (vst1_f64_x4): Likewise.
6410 (vst1q_f64_x4): Likewise.
6412 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6414 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6416 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6417 Richard Sandiford <richard.sandiford@arm.com>
6420 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6421 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6423 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6426 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6427 in reg if it fails aarch64_plus_operand predicate.
6429 2019-08-21 Richard Biener <rguenther@suse.de>
6431 PR tree-optimization/91482
6432 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6433 BUILT_IN_ASSUME_ALIGNED calls.
6435 2019-08-21 Richard Biener <rguenther@suse.de>
6439 * config/i386/i386-features.c
6440 (general_scalar_chain::make_vector_copies): Copy stack temporary
6441 rtx when using it multiple times.
6442 (general_scalar_chain::convert_reg): Likewise.
6444 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6446 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6448 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6450 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6451 catch more redundant zero initialization cases.
6452 (dse_dom_walker::dse_optimize_stmt): Likewise.
6454 2019-08-20 Richard Biener <rguenther@suse.de>
6457 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6458 by collect2 when targetm.have_ctors_dtors which avoids dragging
6459 in temporary filenames from LTO input objects.
6461 2019-08-20 Richard Biener <rguenther@suse.de>
6463 PR tree-optimization/37242
6464 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6465 to (T)a + (T)b if we know that a + b does not overflow.
6467 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6469 PR rtl-optimization/91347
6470 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6471 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6473 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6475 * calls.h (function_arg_info): Add a pass_by_reference field,
6476 defaulting to false.
6477 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6478 when applying pass-by-reference semantics.
6479 (initialize_argument_information): Likewise.
6480 (emit_library_call_value_1): Likewise.
6481 * function.c (assign_parm_data_one): Remove passed_pointer field.
6482 (assign_parm_find_data_types): Don't set it.
6483 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6484 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6485 arg.pass_by_reference instead of passed_pointer.
6487 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6489 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6490 into a single function_arg_info, updating its fields when we
6491 apply pass-by-reference and promotion semantics. Use the
6492 function_arg_info to track the mode rather than keeping it in
6493 a separate local variable.
6494 (initialize_argument_information): Likewise. Base the final
6495 arg_to_skip on this new function_arg_info rather than creating
6496 a new one from scratch.
6498 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6500 * function.c (assign_parm_data_one): Replace passed_type,
6501 promoted_mode and named_arg with a function_arg_info field.
6502 (assign_parm_find_data_types): Remove local variables and
6503 assign directly to "data". Make data->passed_mode shadow
6504 data->arg.mode until promotion, then assign the promoted
6505 mode to data->arg.mode.
6506 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6507 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6508 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6509 (assign_parm_setup_block, assign_parm_setup_reg)
6510 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6511 arg.mode instead of promoted_mode, arg.type instead of passed_type
6512 and arg.named instead of named_arg. Use data->arg for
6513 function_arg_info structures that had the field values passed_type,
6514 promoted_mode and named_arg. Base other function_arg_infos on
6515 data->arg, changing the necessary properties.
6517 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6519 * calls.h (apply_pass_by_reference_rules): Declare.
6520 * calls.c (apply_pass_by_reference_rules): New function.
6521 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6522 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6523 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6524 * function.c (assign_parm_find_data_types): Likewise.
6525 * var-tracking.c (prepare_call_arguments): Likewise.
6527 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6529 * target.def (must_pass_in_stack): Take a function_arg_info instead
6530 of a mode and a type.
6531 * doc/tm.texi: Regenerate.
6532 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6533 instead of a mode and a type.
6534 (must_pass_in_stack_var_size_or_pad): Likewise.
6535 * calls.c (must_pass_in_stack_var_size): Likewise.
6536 (must_pass_in_stack_var_size_or_pad): Likewise.
6537 (initialize_argument_information): Update call to
6538 targetm.calls.must_pass_in_stack.
6539 (must_pass_va_arg_on_stack): Likewise.
6540 * function.c (assign_parm_find_entry_rtl): Likewise.
6541 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6542 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6543 (alpha_function_arg_advance): Likewise.
6544 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6545 (cr16_function_arg_advance): Likewise.
6546 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6547 (cris_arg_partial_bytes): Likewise.
6548 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6549 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6550 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6551 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6552 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6553 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6554 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6555 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6556 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6557 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6558 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6559 instead of a mode and a type.
6560 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6561 (fr30_num_arg_regs): Likewise.
6562 (fr30_setup_incoming_varargs): Update calls accordingly.
6563 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6564 (fr30_function_arg_advance): Likewise.
6565 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6566 instead of a mode and a type.
6567 * config/gcn/gcn.c (num_arg_regs): Likewise.
6568 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6569 num_arg_regs and targetm.calls.must_pass_in_stack.
6570 (gcn_arg_partial_bytes): Likewise.
6571 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6572 function_arg_info instead of a mode and a type.
6573 (classify_argument): Update call accordingly.
6574 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6575 function_arg_info instead of a mode and a type.
6576 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6578 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6579 (rs6000_parm_needs_stack): Update call accordingly.
6580 (setup_incoming_varargs): Likewise.
6582 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6584 * target.def (callee_copies): Take a function_arg_info instead
6585 of a mode, type and named flag.
6586 * doc/tm.texi: Regenerate.
6587 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6588 instead of a mode, type and named flag.
6589 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6590 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6591 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6592 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6593 instead of a mode, type and named flag.
6594 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6595 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6596 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6597 * calls.h (reference_callee_copied): Take a function_arg_info
6598 instead of a mode, type and named flag.
6599 * calls.c (reference_callee_copied): Likewise.
6600 (initialize_argument_information): Update call accordingly.
6601 (emit_library_call_value_1): Likewise.
6602 * function.c (gimplify_parameters): Likewise.
6603 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6604 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6605 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6606 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6607 (TARGET_CALLEE_COPIES): Define to
6608 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6609 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6610 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6611 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6612 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6613 instead of a mode, type and named flag.
6614 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6615 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6616 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6617 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6618 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6619 (TARGET_CALLEE_COPIES): Define to
6620 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6621 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6622 instead of a mode, type and named flag.
6623 * config/sh/sh.c (sh_callee_copies): Likewise.
6624 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6625 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6626 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6628 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6630 * target.def (function_arg_advance): Take a function_arg_info instead
6631 of a mode, type and named flag.
6632 * doc/tm.texi: Regenerate.
6633 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6634 instead of a mode, type and named flag.
6635 * targhooks.c (default_function_arg_advance): Likewise.
6636 * calls.c (initialize_argument_information): Update call to
6637 targetm.calls.function_arg_advance.
6638 (emit_library_call_value_1): Likewise.
6639 * dse.c (get_call_args): Likewise.
6640 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6641 * function.c (assign_parms, gimplify_parameters): Likewise.
6642 * var-tracking.c (prepare_call_arguments): Likewise.
6643 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6644 function_arg_info instead of a mode, type and named flag.
6645 (aarch64_setup_incoming_varargs): Update call accordingly.
6646 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6647 function_arg_info instead of a mode, type and named flag.
6648 (alpha_setup_incoming_varargs): Update call accordingly.
6649 * config/arc/arc.c (arc_function_arg_advance): Take a
6650 function_arg_info instead of a mode, type and named flag.
6651 (arc_setup_incoming_varargs): Update call accordingly.
6652 * config/arm/arm.c (arm_function_arg_advance): Take a
6653 function_arg_info instead of a mode, type and named flag.
6654 (cmse_func_args_or_return_in_stack): Update call accordingly.
6655 (arm_function_ok_for_sibcall): Likewise.
6656 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6657 * config/avr/avr.c (avr_function_arg_advance): Take a
6658 function_arg_info instead of a mode, type and named flag.
6659 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6660 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6661 (c6x_call_saved_register_used): Update call accordingly.
6662 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6663 function_arg_info instead of a mode, type and named flag.
6664 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6665 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6666 (csky_setup_incoming_varargs): Update call accordingly.
6667 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6668 function_arg_info instead of a mode, type and named flag.
6669 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6670 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6671 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6672 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6673 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6674 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6675 (ix86_setup_incoming_varargs): Update call accordingly.
6676 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6677 function_arg_info instead of a mode, type and named flag.
6678 (ia64_setup_incoming_varargs): Update call accordingly.
6679 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6680 function_arg_info instead of a mode, type and named flag.
6681 (iq2000_expand_prologue): Update call accordingly.
6682 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6683 function_arg_info instead of a mode, type and named flag.
6684 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6685 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6686 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6687 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6688 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6690 (microblaze_expand_prologue): Update call accordingly.
6691 * config/mips/mips.c (mips_function_arg_advance): Take a
6692 function_arg_info instead of a mode, type and named flag.
6693 (mips_setup_incoming_varargs): Update call accordingly.
6694 (mips_output_args_xfer): Likewise.
6695 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6696 function_arg_info instead of a mode, type and named flag.
6697 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6698 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6699 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6700 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6701 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6702 (nios2_setup_incoming_varargs): Update call accordingly.
6703 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6704 function_arg_info instead of a mode, type and named flag.
6705 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6706 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6707 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6708 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6709 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6710 (riscv_setup_incoming_varargs): Update call accordingly.
6711 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6712 function_arg_info instead of a mode, type and named flag.
6713 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6715 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6716 (rs6000_parm_needs_stack): Update call accordingly.
6717 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6718 instead of a mode, type and named flag.
6719 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6720 (s390_call_saved_register_used): Update call accordingly.
6721 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6722 instead of a mode, type and named flag.
6723 (sh_output_mi_thunk): Update call accordingly.
6724 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6725 function_arg_info instead of a mode, type and named flag.
6726 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6727 (spu_setup_incoming_varargs): Update call accordingly.
6728 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6729 function_arg_info instead of a mode, type and named flag.
6730 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6731 (tilegx_setup_incoming_varargs): Update call accordingly.
6732 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6733 function_arg_info instead of a mode, type and named flag.
6734 (tilegx_setup_incoming_varargs): Update call accordingly.
6735 * config/v850/v850.c (v850_function_arg_advance): Take a
6736 function_arg_info instead of a mode, type and named flag.
6737 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6738 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6739 (visium_setup_incoming_varargs): Update call accordingly.
6740 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6741 function_arg_info instead of a mode, type and named flag.
6743 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6745 * target.def (function_arg, function_incoming_arg): Take a
6746 function_arg_info instead of a mode, tree and named flag.
6747 * doc/tm.texi: Regenerate.
6748 * targhooks.h (default_function_arg): Take a function_arg_info
6749 instead of a mode, tree and named flag.
6750 (default_function_incoming_arg): Likewise.
6751 * targhooks.c (default_function_arg): Likewise.
6752 (default_function_incoming_arg): Likewise.
6753 * calls.h (function_arg_info::end_marker_p): New function.
6754 (function_arg_info::end_marker): Likewise.
6755 * calls.c (prepare_call_address, initialize_argument_information)
6756 (expand_call, emit_library_call_value_1): Update calls to
6757 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6758 * dse.c: Include calls.h.
6759 (get_call_args): Update call to targetm.calls.function_arg.
6760 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6761 * var-tracking.c (prepare_call_arguments): Likewise.
6762 * function.c (assign_parm_find_entry_rtl): Update call to
6763 targetm.calls.function_incoming_arg.
6764 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6765 function_arg_info instead of a mode, tree and named flag.
6766 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6767 * config/arc/arc.c (arc_function_arg): Likewise.
6768 * config/arm/arm.c (arm_function_arg): Likewise.
6769 (cmse_func_args_or_return_in_stack): Update call accordingly.
6770 (arm_function_ok_for_sibcall): Likewise.
6771 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6772 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6773 instead of a mode, tree and named flag.
6774 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6775 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6776 (c6x_call_saved_register_used): Update call accordingly.
6777 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6778 instead of a mode, tree and named flag.
6779 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6780 (cris_function_arg_1): Likewise.
6781 * config/csky/csky.c (csky_function_arg): Likewise.
6782 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6783 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6784 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6785 (frv_function_arg_1): Likewise.
6786 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6787 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6788 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6789 * config/i386/i386.c (ix86_function_arg): Likewise.
6790 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6791 (ia64_function_arg_1): Likewise.
6792 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6793 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6795 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6796 instead of a mode, tree and named flag.
6797 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6798 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6799 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6800 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6801 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6802 (microblaze_expand_prologue): Update call accordingly.
6803 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6804 instead of a mode, tree and named flag.
6805 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6806 (mmix_function_arg_1): Likewise.
6807 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6808 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6809 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6810 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6811 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6812 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6813 (nvptx_function_incoming_arg): Likewise.
6814 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6815 * config/pa/pa.c (pa_function_arg): Likewise.
6816 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6817 * config/pru/pru.c (pru_function_arg): Likewise.
6818 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6819 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6820 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6821 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6822 (rs6000_parm_needs_stack): Update call accordingly.
6823 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6824 instead of a mode, tree and named flag.
6825 * config/s390/s390.c (s390_function_arg): Likewise.
6826 (s390_call_saved_register_used): Update call accordingly.
6827 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6828 instead of a mode, tree and named flag.
6829 (sh_output_mi_thunk): Update call accordingly.
6830 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6831 (sparc_function_incoming_arg): Take a function_arg_info instead of
6832 a mode, tree and named flag.
6833 * config/spu/spu.c (spu_function_arg): Likewise.
6834 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6835 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6836 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6837 * config/v850/v850.c (v850_function_arg): Likewise.
6838 * config/vax/vax.c (vax_function_arg): Likewise.
6839 * config/visium/visium.c (visium_function_arg): Likewise.
6840 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6841 (xtensa_function_incoming_arg): Likewise.
6843 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6845 * target.def (setup_incoming_varargs): Take a function_arg_info
6846 instead of a mode and tree.
6847 * doc/tm.texi: Regenerate.
6848 * targhooks.h (default_setup_incoming_varargs): Take a
6849 function_arg_info instead of a mode and tree.
6850 * targhooks.c (default_setup_incoming_varargs): Likewise.
6851 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6852 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6853 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6854 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6855 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6856 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6857 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6858 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6860 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6861 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6862 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6863 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6864 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6865 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6866 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6867 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6868 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6869 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6870 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6871 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6872 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6873 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6874 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6875 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6876 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6877 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6878 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6879 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6880 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6881 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6882 * function.c (assign_parms_setup_varargs): Update call to
6883 targetm.calls.setup_incoming_varargs.
6885 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6887 * target.def (pass_by_reference): Take a function_arg_info instead
6888 of a mode, type and named flag.
6889 * doc/tm.texi: Regenerate.
6890 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6892 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6893 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6894 function_arg_info instead of a mode, type and named flag.
6895 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6896 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6897 mode, type and named flag.
6898 * calls.c (pass_by_reference): Likewise.
6899 (pass_va_arg_by_reference): Update call accordingly.
6900 (initialize_argument_information): Likewise.
6901 (emit_library_call_value_1): Likewise.
6902 * function.c (assign_parm_find_data_types): Likewise.
6903 * var-tracking.c (prepare_call_arguments): Likewise.
6904 * stor-layout.c: Include calls.h.
6905 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6906 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6907 function_arg_info instead of a mode, type and named flag.
6908 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6909 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6910 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6911 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6912 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6913 (c6x_call_saved_register_used): Update call to pass_by_reference.
6914 * config/cris/cris.c (cris_pass_by_reference): Take a
6915 function_arg_info instead of a mode, type and named flag.
6916 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6917 function_arg_info instead of a mode, type and named flag.
6918 (epiphany_arg_partial_bytes): Update call accordingly.
6919 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6920 function_arg_info instead of a mode, type and named flag.
6921 (ft32_arg_partial_bytes): Update call accordingly.
6922 * config/i386/i386.c (ix86_pass_by_reference): Take a
6923 function_arg_info instead of a mode, type and named flag.
6924 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6925 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6926 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6927 (m32r_return_in_memory): Update call accordingly.
6928 * config/mips/mips.c (mips_pass_by_reference): Take a
6929 function_arg_info instead of a mode, type and named flag.
6930 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6931 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6932 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6933 (moxie_arg_partial_bytes): Update call accordingly.
6934 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6935 function_arg_info instead of a mode, type and named flag.
6936 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6937 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6938 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6939 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6940 (riscv_return_in_memory): Update call accordingly.
6941 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6942 function_arg_info instead of a mode, type and named flag.
6943 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6944 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6945 * config/s390/s390.c (s390_pass_by_reference): Take a
6946 function_arg_info instead of a mode, type and named flag.
6947 (s390_call_saved_register_used): Update call accordingly.
6948 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6949 instead of a mode, type and named flag.
6950 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6951 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6952 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6953 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6954 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6955 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6957 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6959 * target.def (arg_partial_bytes): Take a function_arg_info instead
6960 of a mode, type and named flag.
6961 * doc/tm.texi: Regenerate.
6962 * target.h (function_arg_info): Declare.
6963 * calls.h (function_arg_info): New class.
6964 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6965 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6966 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6967 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6968 * calls.c (initialize_argument_information): Update call to
6969 targetm.calls.partial_bytes.
6970 (emit_library_call_value_1): Likewise.
6971 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6972 * function.c (assign_parm_find_entry_rtl): Likewise.
6973 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6974 function_arg_info instead of a mode, type and named flag.
6975 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6976 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6977 (cmse_func_args_or_return_in_stack): Update accordingly.
6978 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6979 function_arg_info instead of a mode, type and named flag.
6980 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6981 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6982 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6983 * config/fr30/fr30.c: Include calls.h.
6984 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6985 type and named flag.
6986 * config/frv/frv.c: Include calls.h.
6987 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6988 type and named flag.
6989 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6990 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6991 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6992 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6993 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6994 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6995 * config/microblaze/microblaze.c (function_arg_partial_bytes):
6997 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6998 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6999 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7000 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7001 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7002 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7003 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7004 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7005 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7006 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7007 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7008 (rs6000_parm_needs_stack): Update call accordingly.
7009 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7010 function_arg_info instead of a mode, type and named flag.
7011 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7012 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7014 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7016 * calls.h (must_pass_va_arg_in_stack): Declare.
7017 * calls.c (must_pass_va_arg_in_stack): New function.
7018 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7019 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7020 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7022 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7024 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7026 * calls.h (pass_va_arg_by_reference): Declare.
7027 * calls.c (pass_va_arg_by_reference): New function.
7028 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7029 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7030 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7031 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7032 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7033 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7034 (mips_gimplify_va_arg_expr): Likewise.
7035 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7036 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7037 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7038 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7039 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7040 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7041 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7042 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7043 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7044 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7045 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7047 2019-08-20 Richard Biener <rguenther@suse.de>
7050 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7051 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7052 (convert_scalars_to_vector): Add timode_p parameter and use it
7053 to guard TImode-only operation.
7054 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7055 (pass_stv::execute): Pass down timode_p.
7057 2019-08-20 Lili Cui <lili.cui@intel.com>
7059 * common/config/i386/i386-common.c
7060 (processor_names): Add tigerlake and cooperlake.
7061 (processor_alias_table): Add tigerlake and cooperlake.
7062 * config.gcc: Add -march=tigerlake and cooperlake.
7063 * config/i386/driver-i386.c
7064 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7065 Add "has_avx" to classify processor.
7066 * config/i386/i386-builtins.c (processor_model) :
7067 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7068 (arch_names_table): Add tigerlake and cooperlake.
7069 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7070 and PROCESSOR_COOPERLAKE.
7071 * config/i386/i386-c.c
7072 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7073 * config/i386/i386-options.c
7074 (m_TIGERLAKE) : Define.
7075 (m_COOPERLAKE) : Ditto.
7076 (m_CORE_AVX512): Ditto.
7077 (processor_cost_table): Add cascadelake.
7078 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7079 * config/i386/i386.h
7080 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7081 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7082 (PTA_MOVDIRI): Ditto.
7083 (PTA_MOVDIR64B): Ditto.
7084 (PTA_COOPERLAKE) : Ditto.
7085 (PTA_TIGERLAKE) : Ditto.
7086 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7087 * doc/extend.texi: Add tigerlake and cooperlake.
7088 * doc/invoke.texi: Add tigerlake and cooperlake.
7090 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7092 * doc/install.texi (Specific, alpha): Remove note to use
7093 binutils 2.11.2 or later.
7095 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7098 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7101 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7103 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7104 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7105 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7106 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7107 * config/aarch64/constraints.md (Dt): New constraint
7108 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7110 2019-08-19 Richard Biener <rguenther@suse.de>
7112 PR tree-optimization/91403
7113 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7114 cases we can handle with tail-recursion...
7115 (follow_ssa_edge_expr): ... here. Do so.
7117 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7120 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7121 implemented for -fsanitize=kernel-address, and merge check logic
7122 with -fsanitize=address.
7124 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7126 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7127 for cpu and machine. Factor 64/32b builtins.
7129 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7131 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7132 gone, point to sourceforge.net.
7134 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7136 * doc/ux.texi (User Experience Guidelines): Update reference.
7138 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7140 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7143 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7145 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7146 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7148 2019-08-16 Martin Sebor <msebor@redhat.com>
7150 * tree.def (TYPE_SIZE): Clarify.
7151 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7153 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7155 PR tree-optimization/91109
7156 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7157 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7158 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7160 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7162 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7163 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7164 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7165 (uavg<mode>3_ceil): New expander.
7166 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7167 mode iterator when creating CONST1_RTX.
7168 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7169 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7170 mode iterator for const1_operand predicate.
7172 2019-08-16 Richard Biener <rguenther@suse.de>
7174 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7175 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7177 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7178 (analyze_evolution_in_loop): Likewise.
7179 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7180 (follow_ssa_edge_expr): ... here. Refactor code.
7182 2019-08-16 Richard Biener <rguenther@suse.de>
7185 * config/i386/i386-features.c
7186 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7188 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7191 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7192 only if subst_name matches curr_attr string.
7194 2019-08-16 Richard Biener <rguenther@suse.de>
7196 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7197 stmt at gsi_p, instead replace it with a NOP removed later.
7198 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7199 that became dead because of that.
7201 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7203 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7204 for which we can't represent a range.
7205 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7207 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7208 Set VR_UNDEFINED if type is not supported.
7209 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7210 * tree-vrp.c (value_range_base::check): Assert that a varying has
7212 (value_range_base::equal_p): Early bail for undefines.
7213 (value_range_base::set_varying): Accept a type.
7214 (value_range::set_varying): Same.
7215 (value_range_base::type): VARYING can have a type, while UNDEFINE
7217 (value_range_base::dump): Print type for VARYING nodes.
7218 (value_range_base::set): Add type to VARYING.
7219 (extract_range_from_multiplicative_op): Pass type to set_varying.
7220 (extract_range_from_binary_expr): Same.
7221 (value_range_base::intersect_helper): Same.
7222 (value_range_base::union_helper): Same.
7223 (value_range_base::normalize_symbolics): Same.
7224 (determine_value_range_1): Same.
7225 * tree-vrp.h (class value_range_base): Add type to set_varying.
7226 Add prototype for dump(void).
7227 Add prototype for supports_type_p.
7228 (class value_range): Add type to set_varying.
7229 Add prototype for dump(void).
7230 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7232 (vr_values::get_lattice_entry): Set varying even if propagation
7234 Pass type to set_varying.
7235 (vr_values::get_value_range): Remove vr_const_varying.
7236 Reallocate the lattice if needed.
7237 (vr_values::update_value_range): Pass type to set_varying.
7238 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7239 (vr_values::extract_range_from_binary_expr): Same.
7240 (vr_values::extract_range_from_unary_expr): Same.
7241 (vr_values::extract_range_from_cond_expr): Same.
7242 (vr_values::check_for_binary_op_overflow): Same.
7243 (vr_values::extract_range_basic): Same.
7244 (vr_values::extract_range_from_assignment): Same.
7245 (vr_values::vr_values): Increase size of num_vr_values.
7246 (vr_values::extract_range_from_phi_node): Pass type to
7249 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7252 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7253 for costs of hard register moves.
7254 (ix86_register_move_cost): Likewise.
7255 * config/i386/i386.h (processor_costs): Move costs of hard
7256 register moves to hard_register. Add int_load, int_store,
7257 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7258 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7259 for costs of RTL expressions.
7260 * config/i386/x86-tune-costs.h: Move costs of hard register
7261 moves to hard_register. Duplicate int_load, int_store,
7262 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7263 sse_load, sse_store for costs of RTL expressions.
7265 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7267 * target.def (setup_incoming_vararg_bounds): Remove.
7268 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7269 * doc/tm.texi: Regenerate.
7270 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7271 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7272 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7273 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7275 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7277 MSP430: Fix lines over 80 characters long in
7278 config/msp430/*.{c,h} files
7280 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7281 specifier in string.
7282 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7283 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7284 redundant old comment.
7285 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7286 Split line more than 80 characters long.
7287 * config/msp430/msp430.c (msp430_option_override): Likewise.
7288 (msp430_return_in_memory): Likewise.
7289 (msp430_gimplify_va_arg_expr): Likewise.
7290 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7291 (msp430_legitimate_constant): Likewise.
7292 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7293 (msp430_attr): Likewise.
7294 (msp430_data_attr): Likewise.
7295 (msp430_start_function): Likewise.
7296 (gen_prefix): Likewise.
7297 (msp430_init_sections): Likewise.
7298 (msp430_select_section): Likewise.
7299 (msp430_function_section): Likewise.
7300 (msp430_unique_section): Likewise.
7301 (msp430_output_aligned_decl_common): Likewise.
7302 (msp430_do_not_relax_short_jumps): Likewise.
7303 (msp430_init_builtins): Likewise.
7304 (msp430_expand_delay_cycles): Likewise.
7305 (msp430_expand_prologue): Likewise.
7306 (msp430_expand_epilogue): Likewise.
7307 (msp430_expand_helper): Likewise.
7308 (msp430_split_movsi): Likewise.
7309 (msp430_print_operand): Likewise.
7310 (msp430_return_addr_rtx): Likewise.
7311 (msp430x_extendhisi): Likewise.
7312 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7313 (ASM_SPEC): Likewise.
7314 Remove very obvious comments.
7315 (LIB_SPEC): Split line more than 80 characters long.
7316 (EH_RETURN_HANDLER_RTX): Likewise.
7317 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7319 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7321 MSP430: Fix whitespace errors and incorrect indentation in
7322 config/msp430/*.{c,h} files
7324 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7325 (msp430_select_hwmult_lib): Likewise.
7326 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7327 (msp430_extract_mcu_data): Likewise.
7328 (struct t_msp430_mcu_data): Likewise.
7329 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7330 before left square bracket.
7331 (msp430_option_override): Fix indentation.
7332 (msp430_hard_regno_nregs_with_padding): Likewise.
7333 (msp430_initial_elimination_offset): Likewise.
7334 (msp430_special_register_convention_p): Remove whitespace before left
7335 square bracket and after exclamation mark.
7336 (msp430_evaluate_arg): Likewise.
7337 (msp430_callee_copies): Fix indentation.
7338 (msp430_gimplify_va_arg_expr): Likewise.
7339 (msp430_function_arg_advance): Remove whitespace before left square
7341 (reg_ok_for_addr): Likewise.
7342 (msp430_preserve_reg_p): Likewise.
7343 (msp430_compute_frame_info): Likewise.
7344 (msp430_asm_output_addr_const_extra): Add space between function name
7345 and open parenthesis.
7346 (has_section_name): Fix indentation.
7347 (msp430_attr): Remove trailing whitespace.
7348 (msp430_section_attr): Likewise.
7349 (msp430_data_attr): Likewise.
7350 (struct msp430_attribute_table): Fix comment and whitespace.
7351 (msp430_start_function): Remove whitespace before left square bracket.
7352 Add space between function name and open parenthesis.
7353 (msp430_select_section): Remove trailing whitespace.
7354 (msp430_section_type_flags): Remove trailing whitespace.
7355 (msp430_unique_section): Remove space before closing parenthesis.
7356 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7357 (msp430_builtins): Remove whitespace before left square bracket.
7358 (msp430_init_builtins): Fix indentation.
7359 (msp430_expand_prologue): Remove whitespace before left square bracket.
7360 Remove space before closing parenthesis.
7361 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7362 (msp430_split_movsi): Remove space before closing parenthesis.
7363 (helper_function_name_mappings): Fix indentation.
7364 (msp430_use_f5_series_hwmult): Fix whitespace.
7365 (use_32bit_hwmult): Likewise.
7366 (msp430_no_hwmult): Likewise.
7367 (msp430_output_labelref): Remove whitespace before left square bracket.
7368 (msp430_print_operand_raw): Likewise.
7369 (msp430_print_operand_addr): Likewise.
7370 (msp430_print_operand): Add two spaces after '.' in comment.
7371 Fix trailing whitespace.
7372 (msp430x_extendhisi): Fix indentation.
7373 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7375 (PC_REGNUM): Likewise.
7376 (STACK_POINTER_REGNUM): Likewise.
7377 (CC_REGNUM): Likewise.
7379 2019-08-15 Richard Biener <rguenther@suse.de>
7382 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7384 (general_scalar_chain::make_vector_copies): Use it.
7386 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7388 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7390 2019-08-15 Martin Liska <mliska@suse.cz>
7392 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7393 operators with no arguments.
7394 (eliminate_unnecessary_stmts): Likewise here.
7396 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7398 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7399 <case COMPARE>: Revert 2019-08-14 change.
7400 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7401 for (TARGET_64BIT || mode != DImode).
7403 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7405 * tree-vrp.c (value_range_base::set): Merge in code from
7406 value_range_base::set_and_canonicalize.
7407 Enforce canonicalization at set time.
7408 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7409 (value_range_base::set_undefined): Inline call to set().
7410 (value_range_base::set_varying): Same.
7411 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7412 (vrp_val_max): New argument handle_pointers.
7413 (vrp_val_min): Same.
7414 (ranges_from_anti_range): Same.
7415 (extract_range_into_wide_ints): Use tree argument instead of sign
7417 (extract_range_from_multiplicative_op): Take in tree type instead
7418 of precision and sign. Adapt function for canonicalized ranges.
7419 (extract_range_from_binary_expr): Pass type to
7420 extract_range_from_multiplicative_op.
7421 Adapt for canonicalized ranges.
7422 (extract_range_from_unary_expr): Same.
7423 (value_range_base::intersect_helper): Adjust for canonicalized
7425 (value_range_base::union_helper): Same.
7426 (value_range_base::normalize_symbolics): New.
7427 * tree-vrp.h (class value_range_base): Remove
7428 set_and_canonicalize.
7429 New prototype for normalize_symbolics.
7430 (class value_range): Remove set_and_canonicalize.
7431 (vrp_val_min): Adjust prototype.
7432 (vrp_val_max): Same.
7434 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7435 instead of set_and_canonicalize.
7437 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7440 * tree-vect-stmts.c (vectorizable_call): Check that the function
7441 is a BUILT_IN_MD function before passing it to
7442 targetm.vectorize.builtin_md_vectorized_function.
7444 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7446 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7447 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7448 (aarch64_select_early_remat_modes): Use it.
7450 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7452 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7453 16 for SVE predicates even if they are fixed-length.
7455 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7457 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7458 operand order match the MOV /Z alias.
7460 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7462 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7463 the vector pattern as an aarch64_svpattern argument. Update the
7464 overloaded caller accordingly.
7465 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7466 (aarch64_output_sve_vector_inc_dec): Likewise.
7468 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7470 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7471 multiplication case, try to compute VG * (lowest set bit) directly
7472 rather than always basing the multiplication on VG. Use
7473 expand_mult for the multiplication if we can.
7475 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7477 * config/aarch64/aarch64-protos.h
7478 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7479 (aarch64_sve_inc_dec_immediate_p): Rename to...
7480 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7481 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7482 (aarch64_output_sve_scalar_inc_dec): Declare.
7483 (aarch64_output_sve_inc_dec_immediate): Rename to...
7484 (aarch64_output_sve_vector_inc_dec): ...this.
7485 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7486 (aarch64_output_sve_scalar_inc_dec): New functions.
7487 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7488 arguments. Only handle true ADDVL and ADDPL instructions;
7489 don't emit an INC or DEC.
7490 (aarch64_sve_inc_dec_immediate_p): Rename to...
7491 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7492 (aarch64_output_sve_inc_dec_immediate): Rename to...
7493 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7494 aarch64_sve_vector_inc_dec_immediate_p.
7495 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7496 (aarch64_sve_plus_immediate): New predicates.
7497 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7498 rather than aarch64_sve_addvl_addpl_immediate.
7499 (aarch64_sve_inc_dec_immediate): Rename to...
7500 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7501 aarch64_sve_vector_inc_dec_immediate_p.
7502 (aarch64_sve_add_operand): Update accordingly.
7503 * config/aarch64/constraints.md (Uai): New constraint.
7504 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7505 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7506 operand into a register if it satisfies aarch64_sve_plus_immediate.
7507 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7508 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7509 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7510 aarch64_output_sve_vector_inc_dec instead of
7511 aarch64_output_sve_inc_dec_immediate.
7513 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7515 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7516 (UNSPEC_REVW): New constants.
7517 (elem_bits): New mode attribute.
7518 (SVE_INT_UNARY): New int iterator.
7519 (optab): Handle UNSPEC_REV[BHW].
7520 (sve_int_op): New int attribute.
7521 (min_elem_bits): Handle VNx16QI and the predicate modes.
7522 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7523 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7524 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7525 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7526 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7527 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7528 unspecs based on the total width of the reversed data.
7529 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7530 reinterpret followed by a subreg on big-endian targets.
7532 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7533 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7535 * config/aarch64/aarch64-sve.md
7536 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7537 alternatives in which one of the inputs is in the same register
7540 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7542 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7543 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7545 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7547 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7548 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7550 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7551 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7553 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7554 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7555 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7557 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7558 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7560 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7561 Add an alternative that uses reversed shifts.
7563 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7565 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7568 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7570 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7571 a commutativity marker.
7573 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7574 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7576 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7577 (aarch64_prepare_sve_cond_int_fma): Declare.
7578 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7579 (aarch64_prepare_sve_int_fma): New functions.
7580 (aarch64_prepare_sve_cond_int_fma): Likewise.
7581 * config/aarch64/aarch64-sve.md
7582 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7583 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7584 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7585 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7586 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7587 (*madd<mode>): Rename to...
7588 (*fma<mode>4): ...this.
7589 (*msub<mode>): Rename to...
7590 (*fnma<mode>4): ...this.
7592 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7593 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7595 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7596 Print 2.0 naturally.
7597 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7598 * config/aarch64/predicates.md
7599 (aarch64_sve_float_negated_arith_immediate): New predicate,
7600 renamed from aarch64_sve_float_arith_with_sub_immediate.
7601 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7602 positive and negative constants.
7603 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7604 or an aarch64_sve_float_arith_with_sub_immediate.
7605 * config/aarch64/constraints.md (vsN): Use
7606 aarch64_sve_float_negated_arith_immediate.
7607 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7609 (sve_pred_fp_rhs2_immediate): New int attribute.
7610 * config/aarch64/aarch64-sve.md
7611 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7612 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7613 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7614 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7615 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7616 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7618 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7619 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7621 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7622 (*aarch64_cond_abd<SVE_F:mode>_3)
7623 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7625 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7626 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7628 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7629 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7631 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7632 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7634 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7635 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7636 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7637 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7639 * optabs.h (create_convert_operand_from): Expand comment.
7640 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7641 when mapping scalar rtxes to vector operands.
7642 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7643 ashiftrt and lshiftrt.
7644 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7645 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7646 (*cond_<optab><mode>_any_const): New patterns.
7648 2019-08-15 Martin Liska <mliska@suse.cz>
7651 * cgraph.c (cgraph_node::remove): When setting
7652 n->origin = NULL for all nested functions, reset
7655 2019-08-15 Martin Liska <mliska@suse.cz>
7657 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7660 2019-08-15 Martin Liska <mliska@suse.cz>
7663 * passes.c (order): Remove.
7664 (uid_hash_t): Likewise).
7665 (remove_cgraph_node_from_order): Remove from set
7666 of pointers (cgraph_node *).
7667 (insert_cgraph_node_to_order): New.
7668 (duplicate_cgraph_node_to_order): New.
7669 (do_per_function_toporder): Register all 3 cgraph hooks.
7670 Skip removed_nodes now as we know about all of them.
7672 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7674 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7675 <case E_V8QImode>: Use vector_set path for
7676 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7677 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7678 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7680 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7682 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7684 2019-08-14 Martin Sebor <msebor@redhat.com>
7686 PR tree-optimization/91294
7687 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7688 source length as exact.
7690 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7692 * doc/extend.texi: Add "noinit" attribute documentation.
7693 * doc/sourcebuild.texi: Add noinit effective target documentation.
7694 * varasm.c (default_section_type_flags): Add support for "noinit"
7696 (default_elf_select_section): Add support for "noinit" attribute.
7697 * config/msp430/msp430.c (msp430_attribute_table): Remove
7700 2019-08-14 Richard Biener <rguenther@suse.de>
7701 Uroš Bizjak <ubizjak@gmail.com>
7704 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7706 (scalar_chain::smode): New member.
7707 (scalar_chain::vmode): Likewise.
7708 (dimode_scalar_chain): Rename to...
7709 (general_scalar_chain): ... this.
7710 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7711 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7712 base with TImode and V1TImode.
7713 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7714 (general_scalar_chain::vector_const_cost): Adjust for SImode
7716 (general_scalar_chain::compute_convert_gain): Likewise. Add
7717 {S,U}{MIN,MAX} support.
7718 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7719 (general_scalar_chain::make_vector_copies): Likewise. Handle
7720 non-DImode chains appropriately.
7721 (general_scalar_chain::convert_reg): Likewise.
7722 (general_scalar_chain::convert_op): Likewise.
7723 (general_scalar_chain::convert_insn): Likewise. Add
7724 fatal_insn_not_found if the result is not recognized.
7725 (convertible_comparison_p): Pass in the scalar mode and use that.
7726 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7727 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7728 (scalar_to_vector_candidate_p): Remove by inlining into single
7730 (general_remove_non_convertible_regs): Rename from
7731 dimode_remove_non_convertible_regs.
7732 (remove_non_convertible_regs): Remove by inlining into single caller.
7733 (convert_scalars_to_vector): Handle SImode and DImode chains
7734 in addition to TImode chains.
7735 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7736 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7737 (*<maxmin>di3_doubleword): Likewise.
7739 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7740 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7742 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7743 (*cond_bic<mode>_any): New patterns.
7745 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7747 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7748 take the equivalent mask, as well as a bit count.
7749 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7750 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7751 (aarch64_sve_pred_and_operand): New predicates.
7752 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7754 * config/aarch64/aarch64-sve.md
7755 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7756 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7758 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7760 * config/aarch64/aarch64-sve.md
7761 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7762 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7765 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7766 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7768 * config/aarch64/aarch64-sve.md
7769 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7770 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7772 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7773 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7775 * config/aarch64/aarch64-sve.md
7776 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7777 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7779 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7781 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7782 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7785 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7786 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7788 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7790 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7791 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7793 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7794 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7795 (aarch64_print_operand): Add support for %I.
7796 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7797 Bitcast floating-point constants to the corresponding integer constant.
7798 (aarch64_float_const_representable_p): Handle vectors as well
7800 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7801 for the new vcond_mask_<mode><vpred> expander.
7802 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7803 test aarch64_float_const_representable_p.
7804 (aarch64_sve_reg_or_dup_imm): New predicate.
7805 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7806 gen_vcond_mask_<mode><vpred> instead of
7807 gen_aarch64_sve_dup<mode>_const.
7808 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7809 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7810 for operands 1 and 2 respectively. Force operand 2 into a
7811 register if operand 1 is a register. Fold old define_insn...
7812 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7813 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7814 floating-point constants that can be moved as integers. Add
7815 alternatives for MOV /M and FMOV /M.
7816 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7817 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7818 1 and 2 respectively.
7819 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7821 (vss): New constraint.
7823 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7825 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7826 (aarch64_sve_float_maxmin_operand): New predicates.
7827 * config/aarch64/constraints.md (vsB): New constraint.
7829 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7830 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7832 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7833 Use aarch64_sve_float_maxmin_operand for operand 2.
7834 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7835 Add alternatives for the constant forms.
7837 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7839 * config/aarch64/constraints.md (vsb): New constraint.
7840 (vsm): Generalize description.
7841 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7843 (sve_imm_con): Handle smax, smin, umax and umin.
7844 (sve_imm_prefix): New code attribute.
7845 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7846 (aarch64_sve_vsb_operand): New predicates.
7847 (aarch64_sve_mul_immediate): Rename to...
7848 (aarch64_sve_vsm_immediate): ...this.
7849 (aarch64_sve_mul_operand): Rename to...
7850 (aarch64_sve_vsm_operand): ...this.
7851 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7852 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7853 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7854 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7855 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7856 add movprfx support for the immediate alternatives.
7857 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7859 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7862 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7864 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7865 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7866 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7868 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7870 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7871 (optab, sve_int_op): Handle them.
7872 * config/aarch64/aarch64-sve.md: Expand comment.
7874 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7876 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7877 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7878 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7880 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7882 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7883 (aarch64_expand_sve_const_pred_trn): New functions.
7884 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7885 use the above functions when the parameter is true.
7886 (aarch64_expand_sve_const_pred): Update call accordingly.
7887 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7889 (@aarch64_sve_<perm_insn><mode>): ...this.
7891 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7893 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7895 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7896 (aarch64_sve_emit_int_cmp): New functions.
7897 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7898 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7899 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7900 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7901 (UNSPEC_PRED_Z): New unspec.
7902 (set_clobber_cc_nzc): Delete.
7903 * config/aarch64/aarch64-sve.md: Add a block comment about
7905 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7906 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7907 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7909 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7910 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7911 check for compatible predicates.
7912 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7913 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7914 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7917 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7919 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7920 * config/aarch64/aarch64-sve.md: Add a section describing it.
7921 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7922 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7923 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7924 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7925 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7926 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7927 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7928 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7929 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7930 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7931 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7932 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7933 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7934 (aarch64_evpc_rev_local): Update accordingly.
7936 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7938 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7940 (SVE_BHSI, SVE_SDI): Tweak comment.
7941 (SVE_HSDI): Likewise. Fix definition.
7942 (SVE_SDF): New mode iterator.
7943 (elem_bits): New mode attribute.
7944 (SVE_COND_FCVT): New int iterator.
7945 * config/aarch64/aarch64-sve.md
7946 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7947 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7948 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7949 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7950 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7951 ...these new patterns.
7952 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7953 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7954 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7956 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7957 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7958 ...these new patterns.
7959 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7960 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7961 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7962 ...this new pattern.
7963 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7964 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7965 ...this new pattern.
7966 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7968 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7970 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7971 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7972 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7974 (optab, su): Handle them.
7975 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7976 * config/aarch64/aarch64-sve.md
7977 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7978 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7979 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7980 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7981 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7982 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7983 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7984 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7985 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7987 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7988 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7989 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7990 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7991 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7992 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7993 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7994 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7995 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7996 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7997 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7998 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7999 of UNSPEC_FLOAT_CONVERT.
8000 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8001 aarch64_sve_extend<mode><Vwide>2.
8003 2019-08-14 Richard Biener <rguenther@suse.de>
8006 * config/i386/i386-features.c
8007 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8008 individual instruction gain. Fix reg-reg copy GRP cost. Use
8009 ix86_cost->sse_op for vector instruction costs.
8011 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8013 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8014 (cmp_op): Handle it.
8015 (SVE_COND_FP_CMP): Rename to...
8016 (SVE_COND_FP_CMP_I0): ...this.
8017 (SVE_FP_CMP): Remove.
8018 * config/aarch64/aarch64-sve.md
8019 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8020 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8021 using unspecs to represent the comparison.
8022 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8023 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8025 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8026 (aarch64_unspec_cond_code): Move after integer code. Handle
8028 (aarch64_emit_sve_predicated_cond): Replace with...
8029 (aarch64_emit_sve_fp_cond): ...this new function.
8030 (aarch64_emit_sve_or_conds): Replace with...
8031 (aarch64_emit_sve_or_fp_conds): ...this new function.
8032 (aarch64_emit_sve_inverted_cond): Replace with...
8033 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8034 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8036 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8038 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8039 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8040 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8041 SVE_HSD instead of SVE_SD.
8043 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8044 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8046 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8048 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8050 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8051 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8052 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8053 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8054 (*div<SVE_F:mode>3): Generalize to...
8055 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8057 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8058 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8060 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8062 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8064 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8066 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8068 * config/aarch64/aarch64-sve.md: Add a block comment about the
8069 handling of predicated FP operations.
8070 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8071 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8072 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8073 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8074 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8076 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8077 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8079 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8080 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8081 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8082 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8083 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8084 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8085 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8086 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8087 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8088 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8089 strictness operands. Use aarch64_sve_pred_dominates_p to check
8090 whether the predicate on the conditional operation is suitable
8091 for merging. Split patterns into the canonical equal-predicate form.
8092 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8093 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8095 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8096 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8098 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8099 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8100 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8102 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8103 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8106 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8107 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8109 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8110 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8111 actually has, rather than relying on REG_EQUAL notes.
8112 Make the insn operand order match the SVE operand order.
8113 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8114 the SVE operand order.
8116 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8118 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8119 (aarch64_emit_set_immediate): Likewise.
8120 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8121 (aarch64_pfalse_reg): Likewise.
8122 (aarch64_convert_sve_data_to_pred): New function.
8123 (aarch64_sve_move_pred_via_while): Take an optional target register
8124 and the required register mode.
8125 (aarch64_expand_sve_const_pred_1): New function.
8126 (aarch64_expand_sve_const_pred): Likewise.
8127 (aarch64_expand_mov_immediate): Build an all-true predicate
8128 if the significant bits of the immediate are all true. Use
8129 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8130 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8131 before register allocation.
8132 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8133 a VNx16BI PTRUE when splitting the memory alternative.
8134 (vec_duplicate<mode>): Update accordingly.
8135 (*pred_cmp<cmp_op><mode>): Rename to...
8136 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8138 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8140 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8141 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8142 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8143 (UNSPEC_PTEST): New unspec.
8144 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8145 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8146 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8147 * config/aarch64/aarch64-sve.md: Add a new section describing the
8148 handling of UNSPEC_PTEST.
8149 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8150 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8151 (ptest_ptrue<mode>): Replace with...
8152 (aarch64_ptest<mode>): ...this new pattern.
8153 (cbranch<mode>4): Update after above changes.
8154 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8156 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8157 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8158 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8160 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8163 * builtins.c (builtin_with_linkage_p): New function.
8164 * builtins.h (builtin_with_linkage_p): New function.
8165 * symtab.c (write_symbol): Remove redundant assert.
8166 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8167 Remove FIXME and use builtin_with_linkage_p.
8169 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8172 * tree-core.h (function_decl::function_code): Change type to
8174 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8175 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8176 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8177 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8179 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8180 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8181 (fndecl_built_in_p): Change the type of the "name" argument to
8183 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8184 after check for DECL_BUILT_IN_CLASS.
8185 * cgraphclones.c (build_function_decl_skip_args): Use
8186 set_decl_built_in_function.
8187 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8188 * ipa-split.c (split_function): Likewise.
8189 * langhooks.c (add_builtin_function_common): Likewise.
8190 * omp-simd-clone.c (simd_clone_create): Likewise.
8191 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8192 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8193 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8195 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8196 instead of DECL_FUNCTION_CODE.
8197 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8198 instead of DECL_FUNCTION_CODE.
8199 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8200 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8201 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8202 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8203 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8204 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8205 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8206 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8207 (alpha_gimple_fold_builtin): Likewise.
8208 * config/arc/arc.c (arc_expand_builtin): Likewise.
8209 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8210 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8211 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8212 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8213 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8214 * config/frv/frv.c (frv_expand_builtin): Likewise.
8215 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8216 (gcn_expand_builtin): Likewise.
8217 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8218 (fold_builtin_cpu): Likewise.
8219 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8220 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8221 (ix86_gimple_fold_builtin): Likewise.
8222 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8223 (ia64_expand_builtin): Likewise.
8224 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8225 * config/mips/mips.c (mips_expand_builtin): Likewise.
8226 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8227 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8228 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8229 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8230 * config/pa/pa.c (pa_expand_builtin): Likewise.
8231 * config/pru/pru.c (pru_expand_builtin): Likewise.
8232 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8233 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8235 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8236 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8237 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8238 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8239 (rs6000_builtin_reciprocal): Likewise.
8240 * config/rx/rx.c (rx_expand_builtin): Likewise.
8241 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8242 * config/s390/s390.c (s390_expand_builtin): Likewise.
8243 * config/sh/sh.c (sh_expand_builtin): Likewise.
8244 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8245 (sparc_fold_builtin): Likewise.
8246 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8247 * config/spu/spu.c (spu_expand_builtin): Likewise.
8248 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8249 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8250 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8251 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8252 (xtensa_expand_builtin): Likewise.
8254 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8257 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8258 before the DECL_FUNCTION_CODE.
8259 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8260 to check for a BUILT_IN_ALLOCA call.
8261 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8262 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8263 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8264 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8265 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8266 for BUILT_IN_NORMAL functions.
8267 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8268 test for BUILT_IN_TM_ABORT.
8269 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8270 to check for a BUILT_IN_STACK_RESTORE call.
8271 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8272 * tree-ssa-threadedge.c
8273 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8274 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8275 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8276 test for a BUILT_IN_NORMAL call instead of a negative test for
8277 an internal function call.
8279 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8281 * tree.h (build_vector_a_then_b): Declare.
8282 * tree.c (build_vector_a_then_b): New function.
8283 * fold-const-call.c (fold_while_ult): Likewise.
8284 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8285 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8286 (aarch64_svpattern): New enum.
8287 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8288 constants through aarch64_expand_mov_immediate.
8289 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8290 than general_operand as the predicate for operand 1.
8291 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8292 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8294 (simd_immediate_info::simd_immediate_info): New overload that
8295 takes a scalar_int_mode and an svpattern.
8296 (simd_immediate_info::u): Add a "pattern" field.
8297 (svpattern_token): New function.
8298 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8299 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8300 (aarch64_sve_move_pred_via_while): New functions.
8301 (aarch64_expand_mov_immediate): Try using
8302 aarch64_sve_move_pred_via_while for predicates that contain N ones
8303 followed by M zeros but that do not correspond to a VLnnn pattern.
8304 (aarch64_sve_pred_valid_immediate): New function.
8305 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8306 with PTRUE and PFALSE.
8307 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8310 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8312 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8314 (darwin_override_options): Likewise.
8315 * config/darwin.h: Likewise.
8316 * config/darwin.opt: Likewise.
8317 * config/i386/i386.c (output_pic_addr_const): Likewise.
8318 * config/rs6000/darwin.h: Likewise.
8319 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8320 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8321 ... this TARGET_MACHO_SYMBOL_STUBS.
8322 (FUNCTION_PROFILER):Likewise.
8323 * config/i386/i386.h: Likewise.
8325 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8327 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8328 <case E_V2SImode>: Use vec_extr path for
8329 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8330 <case E_V8QImode>: Ditto.
8331 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8332 Use SWI48 mode iterator. Use %k to output operand 0.
8333 (*mmx_pextrw): New insn pattern.
8334 (*mmx_pextrb): Ditto.
8335 (*mmx_pextrb_zext): Ditto.
8337 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8339 * target.def (libc_has_function, libc_has_fast_function): Improve
8340 documentation strings.
8341 * doc/tm.texi: Regenerate.
8343 2019-08-13 Caroline Tice <cmtice@google.com>
8346 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8347 vtv_end.o or vtv_end_preinit.o files if !static.
8349 2019-08-13 Olivier Hainque <hainque@adacore.com>
8351 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8353 2019-08-13 Olivier Hainque <hainque@adacore.com>
8355 * rtlanal.c (tablejump_casesi_pattern): New function, to
8356 determine if a tablejump insn is a casesi dispatcher. Extracted
8357 from patch_jump_insn.
8358 * rtl.h (tablejump_casesi_pattern): Declare.
8359 * cfgrtl.c (patch_jump_insn): Use it.
8360 * dwarf2cfi.c (create_trace_edges): Use it.
8362 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8365 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8366 operand is larger than a long int.
8368 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8370 * machmode.h (opt_mode::else_mode): New function.
8371 (opt_mode::else_blk): Use it.
8372 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8373 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8374 (aarch64_gen_stepped_int_parallel): Likewise.
8375 (aarch64_stepped_int_parallel_p): Likewise.
8376 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8378 * config/aarch64/aarch64.c
8379 (aarch64_expand_sve_widened_duplicate): Delete.
8380 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8381 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8382 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8383 argument. Use early returns in the !CONST_INT_P handling.
8384 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8385 than handling some inline.
8386 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8388 (aarch64_simd_container_mode): ...here.
8389 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8390 (aarch64_sve_ld1rq_operand_p): New functions.
8391 * config/aarch64/predicates.md (descending_int_parallel)
8392 (aarch64_sve_ld1rq_operand): New predicates.
8393 * config/aarch64/constraints.md (UtQ): New constraint.
8394 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8395 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8396 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8397 (@aarch64_sve_reinterpret<mode>): New expander.
8398 (*aarch64_sve_reinterpret<mode>): New pattern.
8399 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8400 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8401 (*sve_ld1rq<Vesize>): Replace with...
8402 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8404 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8406 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8409 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8411 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8412 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8413 (msp430_check_path_for_devices): New.
8414 (parse_devices_csv_1): New.
8415 (parse_devices_csv): New.
8416 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8417 MCU data in devices.csv before using the hard-coded data.
8418 Warn if devices.csv isn't found and the MCU wasn't found in the
8419 hard-coded data either.
8420 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8421 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8422 Search for devices.csv on -I and -L paths.
8423 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8424 msp430_set_driver_var.
8425 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8427 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8428 searched for devices.csv.
8429 (mwarn-devices-csv): Document option.
8431 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8433 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8434 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8435 Use a single Dn alternative instead of separate Dz and Dm
8436 alternatives. Use aarch64_output_sve_move_immediate.
8437 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8439 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8441 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8442 (aarch64_output_ptrue): Delete.
8444 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8446 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8448 (simd_immediate_info::value, simd_immediate_info::step)
8449 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8451 (simd_immediate_info::u): ...this new union.
8452 (simd_immediate_info::simd_immediate_info): Update accordingly.
8453 (aarch64_output_simd_mov_immediate): Likewise.
8454 (aarch64_output_sve_mov_immediate): Likewise.
8456 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8458 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8460 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8461 (msp430_select_cpu): New spec function.
8462 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8464 * config/msp430/msp430-devices.c: New file.
8465 * config/msp430/msp430-devices.h: New file.
8466 * config/msp430/msp430.c: Remove msp430_mcu_data.
8467 (msp430_option_override): Use msp430_extract_mcu_data to extract
8469 (msp430_use_f5_series_hwmult): Likewise.
8470 (use_32bit_hwmult): Likewise.
8471 (msp430_no_hwmult): Likewise.
8472 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8474 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8476 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8477 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8478 Remove hard-coded MCU multilib data.
8480 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8482 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8483 based on the mode instead of testing properties of it.
8485 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8487 * doc/md.texi: Document the x and y constraints for AArch64.
8488 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8489 (FP_LO8_REGS): New reg_class.
8490 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8491 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8492 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8493 * config/aarch64/predicates.md (aarch64_simd_register): Use
8494 FP_REGNUM_P instead of checking the classes manually.
8495 * config/aarch64/constraints.md (y): New constraint.
8497 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8499 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8500 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8501 * config/aarch64/aarch64-simd.md
8502 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8503 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8504 from the asm template.
8505 * config/aarch64/aarch64-sve.md
8506 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8507 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8508 from the asm template.
8509 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8510 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8511 from the asm template.
8512 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8514 2019-08-13 Martin Liska <mliska@suse.cz>
8516 * value-prof.c (gimple_ic_transform): Add new line.
8517 Print details with MSG_NOTE.
8519 2019-08-13 Martin Liska <mliska@suse.cz>
8521 * doc/invoke.texi: Document automatic detection of jobserver.
8522 * lto-wrapper.c (run_gcc): Detect jobserver always.
8524 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8526 * config/i386/i386-expand.c (ix86_expand_vector_set)
8527 <case E_V2SImode>: Use vec_merge path for
8528 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8529 <case E_V8QImode>: Ditto.
8530 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8531 (*mmx_pinsrb): Ditto.
8533 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8537 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8538 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8539 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8540 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8541 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8543 2019-08-12 Richard Biener <rguenther@suse.de>
8546 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8549 2019-08-12 Richard Biener <rguenther@suse.de>
8552 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8553 lang_mask option, always use CL_DRIVER.
8554 (get_options_from_collect_gcc_options): Adjust.
8555 (find_and_merge_options): Likewise.
8556 (run_gcc): Likewise.
8558 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8560 * ipa-predicate.c (add_condition): Restore inverted test.
8562 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8564 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8565 (enum omp_clause_device_type_kind): New enum.
8566 (struct tree_omp_clause): Add subcode.device_type_kind.
8567 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8568 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8569 for device_type clause.
8570 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8571 * tree-pretty-print.c (dump_omp_clause): Likewise.
8574 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8577 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8579 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8580 handling spilled pseudos.
8582 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8585 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8586 to preserve the contents of the original insns.
8588 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8590 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8591 (addsi3_compare_op2): Likewise.
8593 2019-08-09 Martin Liska <mliska@suse.cz>
8595 * alias.c (alias_ptr_types_compatible_p): Strengten
8596 type comparison in LTO mode.
8598 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8601 * tree-tailcall.c (find_tail_calls): Reject calls that might
8602 read from an escaped RESULT_DECL.
8604 2019-08-09 Martin Liska <mliska@suse.cz>
8606 * doc/invoke.texi: Document the option value.
8607 * lto-wrapper.c (run_gcc): Set auto_parallel
8608 only with -flto=auto.
8610 2019-08-09 Martin Liska <mliska@suse.cz>
8612 * opts.c (common_handle_option): Error for an invalid argument
8615 2019-08-09 Martin Liska <mliska@suse.cz>
8617 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8618 use dump_printf to report optimization.
8619 (sem_variable::merge): Likwise.
8620 (sem_item_optimizer::merge_classes): Use dump_printf to report
8623 2019-08-09 Martin Liska <mliska@suse.cz>
8625 * value-prof.c (gimple_divmod_fixed_value_transform):
8626 Use dump_printf_loc.
8627 (gimple_mod_pow2_value_transform): Likewise.
8628 (gimple_mod_subtract_transform): Likewise.
8629 (init_node_map): Likewise.
8630 (gimple_ic_transform): Likewise.
8631 (gimple_stringops_transform): Likewise.
8633 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8635 * doc/extend.texi: Add const qualifier to ld intrinsics.
8637 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8639 * config/rs6000/dfp.md (D64_D128): Rename to ...
8640 (DDTD): ... this, throughout.
8641 (dfp_suffix): Rename to ...
8642 (q): ... this, throughout.
8644 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8646 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8647 (dfp_suffix): Ditto.
8648 (adddd3, addtd3): Merge to ...
8649 (add<mode>3 for D64_D128): ... this.
8650 (subdd3, subtd3): Merge to ...
8651 (sub<mode>3 for D64_D128): ... this.
8652 (muldd3, multd3): Merge to ...
8653 (mul<mode>3 for D64_D128): ... this.
8654 (divdd3, divtd3): Merge to ...
8655 (div<mode>3 for D64_D128): ... this.
8656 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8657 (*cmp<mode>_internal1 for D64_D128): ... this.
8658 (ftruncdd2, ftrunctd2): Merge to ...
8659 (ftrunc<mode>2 for D64_D128): ... this.
8660 (fixdddi2, fixtddi2): Merge to ...
8661 (fix<mode>di2 for D64_D128): ... this.
8663 2019-08-08 Jim Wilson <jimw@sifive.com>
8666 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8667 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8668 Pass into recursive call.
8669 (riscv_flatten_aggregate_argument): New arg. Pass to
8670 riscv_flatten_aggregate_field.
8671 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8672 riscv_flatten_aggregate_argument twice, with false and true as last
8673 arg. Process result twice. Compare results and warn if different.
8674 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8676 2019-08-08 Martin Liska <mliska@suse.cz>
8679 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8680 * lto-wrapper.c (jobserver_active_p): Likewise.
8682 2019-08-08 Martin Liska <mliska@suse.cz>
8684 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8685 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8686 (create_version_clone_with_body): Likewise.
8688 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8690 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8691 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8692 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8693 GOVD_EXPLICIT flags.
8694 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8695 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8696 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8697 call install_var_field with mask 11 instead of 3.
8698 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8699 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8701 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8703 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8704 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8706 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8708 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8709 MOVPRFX alternatives. Make the GPR alternatives more expensive
8712 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8714 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8715 Disparage the GPR alternative relative to the FPR one.
8716 Fix handling of 8-bit and 16-bit FPR values.
8718 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8720 * config/aarch64/iterators.md (BITWISEV): Delete.
8721 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8722 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8723 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8724 UNSPEC_FMINNMV, UNSPEC_FMINV.
8725 (bit_reduc_op): Delete.
8726 (sve_int_op): New int attribute.
8727 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8728 UNSPEC_FMINNMV, UNSPEC_FMINV.
8729 * config/aarch64/aarch64-sve.md
8730 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8731 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8732 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8733 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8734 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8735 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8737 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8738 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8739 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8740 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8741 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8744 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8746 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8747 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8748 (fms<mode>4, *fms<mode>4): Replace with...
8749 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8750 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8751 Use unspecs instead of rtx codes.
8752 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8753 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8755 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8757 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8759 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8760 * config/aarch64/aarch64-sve.md
8761 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8762 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8763 use a single unspec for the rhs.
8764 (*<su><maxmin><mode>3): Delete.
8765 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8767 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8769 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8770 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8771 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8772 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8773 (optab, sve_fp_op): Handle them.
8774 (SVE_FP_UNARY): Delete.
8775 (optab): Remove sqrt entry.
8776 (sve_fp_op): Remove neg, abs and sqrt entries.
8777 (SVE_COND_FP_UNARY): New int iterator.
8778 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8779 (*<frint_pattern><mode>2): Delete.
8780 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8781 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8782 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8783 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8785 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8787 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8789 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8791 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8792 (UNSPEC_COND_FADD): ...this.
8793 (UNSPEC_COND_SUB): Rename to...
8794 (UNSPEC_COND_FSUB): ...this.
8795 (UNSPEC_COND_MUL): Rename to...
8796 (UNSPEC_COND_FMUL): ...this.
8797 (UNSPEC_COND_DIV): Rename to...
8798 (UNSPEC_COND_FDIV): ...this.
8799 (UNSPEC_COND_MAX): Rename to...
8800 (UNSPEC_COND_FMAXNM): ...this.
8801 (UNSPEC_COND_MIN): Rename to...
8802 (UNSPEC_COND_FMINNM): ...this.
8803 (UNSPEC_COND_LT): Rename to...
8804 (UNSPEC_COND_FCMLT): ...this.
8805 (UNSPEC_COND_LE): Rename to...
8806 (UNSPEC_COND_FCMLE): ...this.
8807 (UNSPEC_COND_EQ): Rename to...
8808 (UNSPEC_COND_FCMEQ): ...this.
8809 (UNSPEC_COND_NE): Rename to...
8810 (UNSPEC_COND_FCMNE): ...this.
8811 (UNSPEC_COND_GE): Rename to...
8812 (UNSPEC_COND_FCMGE): ...this.
8813 (UNSPEC_COND_GT): Rename to...
8814 (UNSPEC_COND_FCMGT): ...this.
8815 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8816 (sve_fp_op_rev): Update accordingly.
8817 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8819 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8821 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8823 * config/aarch64/check-sve-md.awk: New file.
8824 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8825 (insn-conditions.md): Depend on it.
8827 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8830 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8831 (*negsi2_cmpz_zext): Ditto.
8833 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8835 * config/aarch64/iterators.md (commutative): Remove.
8837 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8840 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8841 processing COLLECT_GCC_OPTIONS.
8842 (run_gcc): Likewise.
8844 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8846 PR tree-optimization/91109
8847 * lra-remat.c (update_scratch_ops): Remove assignment of the
8850 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8852 * data-streamer.h (streamer_write_poly_uint64): Declare.
8853 (streamer_read_poly_uint64): Likewise.
8854 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8855 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8856 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8857 (add_condition): Take a poly_int64 size.
8858 * ipa-predicate.c (add_condition): Likewise.
8859 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8860 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8861 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8862 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8863 condition::size as a poly_int64.
8864 (unmodified_parm_1): Take a poly_int64 size pointer.
8865 (unmodified_parm): Likewise.
8866 (unmodified_parm_or_parm_agg_item): Likewise.
8867 (set_cond_stmt_execution_predicate): Update accordingly.
8868 (set_switch_stmt_execution_predicate): Likewise.
8869 (will_be_nonconstant_expr_predicate): Likewise.
8870 (will_be_nonconstant_predicate): Likewise.
8871 (inline_read_section): Stream condition::size as a poly_int.
8872 (ipa_fn_summary_write): Likewise.
8874 2019-08-07 Martin Liska <mliska@suse.cz>
8876 * fold-const.c (twoval_comparison_p): Replace int
8877 with bool as a return type.
8878 (simple_operand_p): Likewise.
8879 (operand_equal_p): Replace int with bool as a return type.
8880 * fold-const.h (operand_equal_p): Likewise.
8882 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8884 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8885 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8886 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8887 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8888 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8889 * tree-pretty-print.c (dump_omp_clause): Likewise.
8890 * tree-nested.c (convert_nonlocal_omp_clauses,
8891 convert_local_omp_clauses): Likewise.
8892 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8894 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8895 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8896 clause with array or reference to array types, no matter what type
8897 except for reference it has.
8899 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8901 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8903 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8905 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8906 (arch_canonicalize): Support rv32g and rv64g and fix error
8909 2019-08-06 Martin Liska <mliska@suse.cz>
8911 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8912 and DECL_IS_OPERATOR_DELETE_P.
8914 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8916 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8917 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8918 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8919 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8920 (gimplify_omp_for): Don't do C++ random access iterator clause
8921 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8922 don't predetermine the artificial iterator in case of C++ random
8923 access iterators as lastprivate, but private. For OMP_LOOP, force
8924 bind expr around simd body and force for_pre_body before the
8925 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8926 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8927 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8928 diff var of C++ random access iterators. Handle
8929 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8930 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8931 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8932 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8933 * omp-low.c (lower_rec_input_clauses): For
8934 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8935 variables instead of default constructing them.
8936 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8937 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8938 is_taskloop_ctx check from the assert to the guarding condition.
8940 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8942 * config/riscv/multilib-generator: (canonical_order): New.
8943 (arch_canonicalize): Dito.
8944 Apply arch_canonicalize for alts.
8946 2019-08-05 Martin Sebor <msebor@redhat.com>
8948 * doc/extend.texi (Common Variable Attributes): Document alias
8951 2019-08-05 Marek Polacek <polacek@redhat.com>
8953 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8954 * doc/invoke.texi: Document -Wcomma-subscript.
8956 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8958 * tree-core.h (tree_function_decl): Make function_code an
8959 independent field. Group the remaining bitfields into bytes
8960 and move decl_type so that it contines to be at a byte boundary.
8961 Leave 12 bits for future expansion.
8963 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8965 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8966 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8967 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8970 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8972 * gimple.h (gimple_move_vops): Declare.
8973 * gimple.c (gimple_move_vops): New function
8974 * gimple-fold.c (replace_call_with_call_and_fold)
8975 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8976 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8977 (gimple_fold_call): Use it.
8978 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8979 * tree-call-cdce.c (use_internal_fn): Likewise.
8980 * tree-if-conv.c (predicate_load_or_store): Likewise.
8981 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8982 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8983 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8984 (update_call_from_tree): Likewise.
8985 * tree-vect-stmts.c (vectorizable_load): Likewise.
8986 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8988 2019-08-05 Martin Liska <mliska@suse.cz>
8991 * tree-ssa-dce.c (propagate_necessity): Handle new operators
8993 (eliminate_unnecessary_stmts): Likewise.
8995 2019-08-05 Richard Biener <rguenther@suse.de>
8998 * fold-const.c (get_array_ctor_element_at_index): Create
8999 offset_ints according to the sign of the index type and treat
9000 that as signed if it is obviously so.
9002 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9005 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9006 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9007 _mm256_storeu2_m128i): New function.
9009 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9011 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9012 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9014 2019-08-05 Alan Modra <amodra@gmail.com>
9017 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9018 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9020 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9022 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9023 bug that was fixed in Tcl 8.6.1.
9025 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9027 * config/rs6000/future.md: New file.
9028 * config/rs6000/rs6000.md: Include future.md.
9029 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9031 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9033 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9034 check to use targetm.slow_unaligned_access instead.
9036 * function.c (assign_param_data_one): Remove unused data members.
9038 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9040 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9041 build_distinct_type_copy.
9042 (simd_clone_adjust_argument_types): Ditto.
9043 (simd_clone_adjust): Call build_distinct_type_copy here.
9044 (expand_simd_clones): Ditto.
9046 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9049 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9051 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9053 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9054 from 'const void *'.
9055 (sort_locs_in_loop_postorder_cmp): Likewise.
9057 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9059 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9060 (hot-bb-count-ws-permille): Likewise.
9061 (hot-bb-frequency-fraction): Likewise.
9062 (unlikely-bb-count-fraction): Likewise.
9063 * params.def (hot-bb-count-fraction): Rework description.
9064 (hot-bb-count-ws-permille): Likewise.
9065 (hot-bb-frequency-fraction): Likewise.
9066 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9067 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9069 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9072 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9075 2019-08-02 Richard Biener <rguenther@suse.de>
9077 * vec.h (vec::sort): Add gcc_qsort_r support.
9078 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9079 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9080 to gcc_qsort_r style callback.
9081 (sort_locs_in_loop_postorder_cmp): Likewise.
9082 (analyze_memory_references): Use gcc_sort_r interfaces.
9083 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9085 2019-08-02 Martin Liska <mliska@suse.cz>
9088 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9089 to detect working job server.
9090 (driver::detect_jobserver): Test whether jobserver
9091 is active from GCC driver. That will prevent situation where
9092 GCC is invoked from a LD plugin and the linker already uses
9093 file descriptors suggested by make. That leads to a wrong
9095 * gcc.h (driver): Add detect_jobserver.
9096 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9097 not scanning for --jobserver-auth prefix.
9099 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9101 PR tree-optimization/91201
9102 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9103 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9106 2019-08-01 Martin Sebor <msebor@redhat.com>
9109 * tree.c (type_initializer_zero_p): Define.
9110 * tree.h (type_initializer_zero_p): New function.
9112 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9114 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9116 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9118 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9119 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9120 * predict.c (maybe_hot_count_p): Likewise.
9121 (maybe_hot_bb_p): Tweak comment.
9122 (maybe_hot_edge_p): Likewise.
9123 (probably_never_executed): Likewise. Minor tweak.
9124 (probably_never_executed_bb_p): Likewise.
9125 (unlikely_executed_edge_p): Likewise.
9126 (probably_never_executed_edge_p): Likewise.
9127 (optimize_function_for_size_p): Likewise.
9128 (optimize_function_for_speed_p): Likewise.
9129 (function_optimization_type): Likewise.
9130 (optimize_bb_for_size_p): Likewise.
9131 (optimize_bb_for_speed_p): Likewise.
9132 (bb_optimization_type): Likewise.
9133 (optimize_edge_for_size_p): Likewise.
9134 (optimize_edge_for_speed_p): Likewise.
9135 (optimize_insn_for_size_p): Likewise.
9136 (optimize_insn_for_speed_p): Likewise.
9137 (optimize_loop_for_size_p): Likewise.
9138 (optimize_loop_for_speed_p): Likewise.
9139 (optimize_loop_nest_for_speed_p): Likewise.
9140 (optimize_loop_nest_for_size_p): Likewise.
9141 (predictable_edge_p): Likewise.
9142 (handle_missing_profiles): Minor tweak.
9144 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9146 * config/rs6000/predicates.md (pcrel_external_address): Update
9149 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9152 * config/i386/mmx.md (usadv8qi): New expander.
9154 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9157 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9158 with reserved names that are in a system header.
9160 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9162 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9163 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9164 (*vec_extractv2si_0_zext): Ditto.
9165 (*vec_extractv2si_1): Add (rm,x) alternative.
9166 (*vec_extractv2si_1_zext): New insn pattern.
9167 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9170 2019-08-01 Richard Biener <rguenther@suse.de>
9172 * domwalk.c (bb_postorder): Remove static variable.
9173 (cmp_bb_postorder): Adjust.
9174 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9175 (dom_walker::walk): Adjust.
9177 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9179 * sort.cc (sort_r_ctx): New struct.
9180 (reorder23): Make templated on context type.
9182 (cmp1): Ditto. Adjust signature.
9185 [CHECKING_P] (cmp2to3): New static function. Use it...
9186 (gcc_qsort) [CHECKING_P]: ...here.
9187 (gcc_sort_r): New function.
9188 * system.h (sort_r_cmp_fn): New function typedef.
9189 (qsort_chk): Adjust signature.
9190 (gcc_sort_r): Declare.
9191 * vec.c (qsort_chk_error): Adjust.
9192 (qsort_chk): Adjust.
9194 2019-08-01 Richard Biener <rguenther@suse.de>
9196 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9197 (compute_antic): Localize it here.
9199 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9201 * common/config/riscv/riscv-common.c: Check -march string ends
9204 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9206 * ipa-devirt.c (type_warning_cmp): Make static.
9207 (decl_warning_cmp): Ditto.
9209 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9212 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9213 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9214 use of deleted rs6000_dejagnu_cpu_index variable.
9215 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9216 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9217 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9218 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9219 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9220 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9222 2019-07-31 Richard Biener <rguenther@suse.de>
9224 PR tree-optimization/91280
9225 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9226 Decompose MEM_REF manually for offset handling.
9228 2019-07-31 Richard Biener <rguenther@suse.de>
9230 PR tree-optimization/91293
9231 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9234 2019-07-31 Matt Thomas <matt@3am-software.com>
9235 Nick Hudson <nick@nthcliff.demon.co.uk>
9236 Matthew Green <mrg@eterna.com.au>
9237 Maya Rashish <coypu@sdf.org>
9239 * config.gcc (hppa*-*-netbsd*): New target.
9240 * config/pa/pa-netbsd.h: New file.
9241 * config/pa/pa32-netbsd.h: New file.
9243 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9245 PR tree-optimization/91201
9246 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9248 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9250 * config/gcn/gcn-valu.md
9251 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9252 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9253 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9254 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9255 struct ilist. Add nops for delayeduse insns.
9256 * config/gcn/gcn.md (delayeduse): New attribute.
9257 (*movbi): Remove s_waitcnt from stores.
9258 (*mov<mode>_insn): Likewise.
9259 (*movti_insn): Likewise. Add delayeduse attribute.
9260 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9261 (atomic_store<mode>): Remove or adjust s_waitcnt.
9263 2019-07-31 Richard Biener <rguenther@suse.de>
9265 * vr-values.h (vr_values::swap_vr_value): New.
9266 (vr_values::free_value_range): likewise.
9267 * vr-values.c (vr_values::swap_vr_value): Implement.
9268 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9269 Do not return a range or take a var.
9270 (evrp_range_analyzer::stack): Change back to recording a non-const
9272 * gimple-ssa-evrp-analyze.c
9273 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9275 (evrp_range_analyzer::pop_to_marker): Adjust.
9276 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9277 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9278 no longer needed value-range.
9280 2019-07-31 Martin Liska <mliska@suse.cz>
9282 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9283 have size and (or) alignment as 2nd and later arguments.
9284 Mark all of them as necessary.
9286 2019-07-31 Richard Biener <rguenther@suse.de>
9288 PR tree-optimization/91178
9289 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9292 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9294 PR tree-optimization/91201
9295 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9296 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9298 (reduc_plus_scal_<mode>): Improve formatting by introducing
9301 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9303 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9304 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9305 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9306 (aarch64_init_tme_builtins): New.
9307 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9308 (aarch64_expand_builtin_tme): New.
9309 (aarch64_expand_builtin): Handle TME builtins.
9310 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9311 __ARM_FEATURE_TME when enabled.
9312 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9313 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9315 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9316 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9318 (tstart, ttest, tcommit, tcancel): New instructions.
9319 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9320 (__tcancel, __ttest): New.
9321 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9322 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9323 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9324 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9325 * config/arm/types.md: Add new tme type attr.
9326 * doc/invoke.texi: Document "tme".
9328 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9330 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9331 warn_unused_result attribute.
9332 (cmse_check_address_range): Add warn_unused_result attribute.
9334 2019-07-31 Richard Biener <rguenther@suse.de>
9336 PR tree-optimization/91257
9337 * tree-vrp.c (union_ranges): Unify equality and less tests
9338 by using compare_values. Re-order cheap tests first.
9340 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9343 * gimplify.c (gimplify_omp_for): If for class iterator on
9344 distribute parallel for there is no data sharing clause
9345 on inner_for_stmt, look for private clause on combined
9346 parallel too and if found, move it to inner_for_stmt.
9348 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9350 * lra-int.h (lra_operand_data): Remove early_clobber field.
9351 (lra_insn_reg): Likewise.
9352 * lra.c (debug_operand_data): Update accordingly.
9353 (setup_operand_alternative): Likewise.
9354 (new_insn_reg): Likewise. Remove early_clobber parameter.
9355 (collect_non_operand_hard_regs): Update call accordingly.
9356 Don't assign to lra_insn_reg::early_clobber.
9357 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9358 and update calls to new_insn_reg.
9359 (lra_update_insn_regno_info): Update calls accordingly.
9360 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9361 alternative number as a parameter and test whether the operand
9362 is earlyclobbered in that particular alternative.
9363 (process_alt_operands): Update call accordingly. Use per-alternative
9364 checks for earyclobber here too.
9365 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9366 against zero for IRA_UNKNOWN_ALT.
9368 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9370 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9372 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9374 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9375 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9377 2019-07-30 Martin Liska <mliska@suse.cz>
9380 * cgraph.c (cgraph_edge::make_direct): Use
9381 edge->indirect_unknown_callee as edge->resolve_speculation can
9382 deallocate edge which is this pointer.
9384 2019-07-30 Richard Biener <rguenther@suse.de>
9386 PR tree-optimization/91257
9387 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9389 2019-07-30 Martin Liska <mliska@suse.cz>
9391 * doc/invoke.texi: Document new behavior.
9392 * lto-wrapper.c (cpuset_popcount): New function
9393 is a copy of libgomp/config/linux/proc.c.
9394 (init_num_threads): Likewise.
9395 (run_gcc): Automatically detect core count for -flto.
9396 (jobserver_active_p): New function.
9398 2019-07-30 Richard Biener <rguenther@suse.de>
9400 PR tree-optimization/91257
9401 * bitmap.h (bitmap_ior_into_and_free): Declare.
9402 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9403 whether to add the unliked element to the freelist.
9404 (bitmap_list_insert_element_after): Add defaulted param for
9405 an already allocated element.
9406 (bitmap_ior_into_and_free): New function.
9407 * tree-ssa-structalias.c (condense_visit): Reduce the
9408 ponts-to and edge bitmaps of the SCC members in a
9409 logarithmic fashion rather than all to one.
9411 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9413 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9414 parameter. When nonnull, make sure that the addition or subtraction
9415 has the same condition.
9416 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9417 for CFN_COND_MUL too.
9419 2019-07-30 Richard Biener <rguenther@suse.de>
9421 PR tree-optimization/91291
9422 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9425 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9428 * omp-low.c (global_nonaddressable_vars): New variable.
9429 (use_pointer_for_field): For global decls, if they are non-addressable,
9430 remember it in the global_nonaddressable_vars bitmap, if they are
9431 addressable and in the global_nonaddressable_vars bitmap, ignore their
9432 TREE_ADDRESSABLE bit.
9433 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9434 vars in global_nonaddressable_vars bitmap.
9435 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9438 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9439 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9440 comparison to unsigned HOST_WIDE_INT before shifting it left.
9442 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9444 * config/i386/i386.md (movstrict<mode>): Use register_operand
9445 predicate for operand 0. Add expander condition. Assert that
9446 operand 0 is a SUBREG RTX.
9447 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9448 Update operand constraints and insn condition.
9449 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9450 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9451 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9452 Update operand 0 constraints.
9453 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9455 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9457 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9458 when -m{code,data}-region are used without -mlarge.
9459 * config/msp430/msp430.c (msp430_option_override): Error when a
9460 non-default code or data region is used without -mlarge.
9461 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9462 attributes when they are used without -mlarge.
9464 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9467 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9469 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9472 * wide-int.h (generic_wide_int::sext_elt): New function.
9473 * inchash.h (hash::add_wide_int): Use it instead of elt.
9475 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9477 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9479 * config/arm/arm.md (<crc_variant>): Rename to...
9480 (arm_<crc_variant>): ... This.
9481 (<cdp>): Rename to...
9482 (arm_<cdp>): ... This.
9483 (<ldc>): Rename to...
9484 (arm_<ldc>): ... This.
9485 (<stc>): Rename to...
9486 (arm_<stc>): ... This.
9487 (<mcr>): Rename to...
9488 (arm_<mcr>): ... This.
9489 (<mrc>): Rename to...
9490 (arm_<mrc>): ... This.
9491 (<mcrr>): Rename to...
9492 (arm_<mcrr>): ... This.
9493 (<mrrc>): Rename to...
9494 (arm_<mrrc>): ... This.
9496 2019-07-29 Richard Biener <rguenther@suse.de>
9498 PR tree-optimization/91257
9499 * tree-ssa-sccvn.h (struct vn_avail): New.
9500 (struct vn_ssa_aux): Add avail member.
9501 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9502 member, add m_avail_freelist one.
9503 (rpo_elim::~rpo_elim): Remove.
9504 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9506 (rpo_elim::eliminate_push_avail): Likewise.
9507 (do_unwind): Likewise.
9508 (do_rpo_vn): Likewise.
9510 2019-07-29 Richard Biener <rguenther@suse.de>
9512 PR tree-optimization/91257
9513 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9514 most cases, instead call compare_values which handles the
9515 symbolic ranges we handle specially.
9516 (compare_values_warnv): Do not call operand_less_p but open-code
9517 the effective fold calls. Avoid converting so much.
9519 2019-07-29 Martin Liska <mliska@suse.cz>
9521 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9522 remove LHS of operator new call. It's handled latter.
9524 2019-07-29 Richard Biener <rguenther@suse.de>
9526 PR tree-optimization/91267
9527 * vr-values.c (vr_values::update_value_range): Add early return
9528 for effectively VARYING lattice entry.
9530 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9533 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9534 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9535 necessary if keep_all_vdefs_p is true.
9536 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9537 that keep_all_vdefs_p is false.
9538 (mark_all_reaching_defs_necessary): Likewise.
9539 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9541 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9543 * common.opt (Og): Change the initial value of flag_dse to 0.
9544 * opts.c (default_options_table): Move OPT_ftree_dse from
9545 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9546 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9547 entry before the OPT_ftree_sra entry.
9548 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9549 of flags disabled by Og.
9551 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9553 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9556 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9558 * doc/sourcebuild.texi (check-function-bodies): Document.
9560 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9562 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9563 VEC_DUPLICATE of a fixed-length vector even if the result
9564 is variable-length. Likewise fold a duplicate of a
9565 variable-length vector if the variable-length vector is
9566 itself a duplicate of a fixed-length sequence.
9567 (test_vector_ops_duplicate): Test more cases.
9569 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9571 * vector-builder.h (vector_builder): Add a shape template parameter.
9572 (vector_builder::new_unary_operation): New function, generalizing
9573 the old tree_vector_builder function.
9574 (vector_builder::new_binary_operation): Likewise.
9575 (vector_builder::binary_encoded_nelts): Likewise.
9576 * int-vector-builder.h (int_vector_builder): Update template
9577 parameters to vector_builder.
9578 (int_vector_builder::shape_nelts): New function.
9579 * rtx-vector-builder.h (rtx_vector_builder): Update template
9580 parameters to vector_builder.
9581 (rtx_vector_builder::shape_nelts): New function.
9582 (rtx_vector_builder::nelts_of): Likewise.
9583 (rtx_vector_builder::npatterns_of): Likewise.
9584 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9585 * tree-vector-builder.h (tree_vector_builder): Update template
9586 parameters to vector_builder.
9587 (tree_vector_builder::shape_nelts): New function.
9588 (tree_vector_builder::nelts_of): Likewise.
9589 (tree_vector_builder::npatterns_of): Likewise.
9590 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9591 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9592 (tree_vector_builder::new_binary_operation): Delete.
9593 (tree_vector_builder::binary_encoded_nelts): Likewise.
9594 * simplify-rtx.c: Include rtx-vector-builder.h.
9595 (distributes_over_addition_p): New function.
9596 (simplify_const_unary_operation)
9597 (simplify_const_binary_operation): Generalize handling of vector
9598 constants to include variable-length vectors.
9599 (test_vector_ops_series): Add more tests.
9601 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9604 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9605 than INDENTIFIER_POINTER.
9607 2019-07-28 Martin Liska <mliska@suse.cz>
9610 * cgraph.c (symbol_table::create_edge): Always allocate
9612 (symbol_table::free_edge): Store summary_id to
9613 edge_released_summary_ids if != -1;
9614 * cgraph.h (NEXT_FREE_NODE): Remove.
9615 (SET_NEXT_FREE_NODE): Likewise.
9616 (NEXT_FREE_EDGE): Likewise.
9617 (symbol_table::release_symbol): Store summary_id to
9618 cgraph_released_summary_ids if != -1;
9619 (symbol_table::allocate_cgraph_symbol): Always allocate
9622 2019-07-28 Alan Modra <amodra@gmail.com>
9624 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9627 2019-07-28 Alan Modra <amodra@gmail.com>
9630 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9632 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9633 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9634 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9636 2019-07-28 Alan Modra <amodra@gmail.com>
9639 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9640 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9641 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9642 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9643 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9644 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9645 in asm_default spec.
9646 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9647 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9649 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9651 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9653 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9656 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9657 * config/aarch64/aarch64-option-extensions.def: Add new comments
9658 and restore easier to read options.
9660 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9662 * convert.c (convert_to_real_1): Move part of conversion code...
9663 * match.pd: ...To here.
9665 2019-07-26 Martin Jambor <mjambor@suse.cz>
9668 * ipa-inline-transform.c (check_speculations_1): New function.
9669 (push_all_edges_in_set_to_vec): Likewise.
9670 (check_speculations): Use check_speculations_1, new parameter
9672 (inline_call): Pass new_edges to check_speculations.
9673 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9675 (speculation_useful_p): Early return true if edge is inlined, remove
9676 later checks for inline_failed.
9678 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9680 PR rtl-optimization/91223
9681 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9682 matching with INOUT operand.
9684 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9686 * stmt.c (expand_case): Try to narrow the index type if it's larger
9687 than a word. Tidy up.
9689 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9691 * cif-code.def (NEVER_CALL): New code.
9692 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9693 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9695 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9697 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9698 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9700 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9702 * ipa-devirt.c (add_type_duplicate): Fix return value.
9704 2019-07-25 Richard Biener <rguenther@suse.de>
9706 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9707 type parameter and use it instead of guessing expression
9708 type from the first operand.
9709 (extract_range_from_binary_expr): Pass expr_type down.
9711 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9713 * config/arm/arm.md (SATrev): Change to code attribute.
9714 (*satsi_<SAT:code>): Adjust for the above.
9715 (*satsi_<SAT:code>_shift): Likewise.
9717 2019-07-25 Richard Biener <rguenther@suse.de>
9719 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9720 Make value_range * temporary const.
9721 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9723 (evrp_range_analyzer::record_ranges_from_): Likewise.
9724 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9725 deal with having recorded a const one.
9726 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9727 Return a const value_range *.
9728 (evrp_range_analyzer::pop_value_range): Likewise.
9729 (evrp_range_analyzer::stack): Record const value_range *s.
9730 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9732 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9733 (format_integer): Likewise.
9734 (sprintf_dom_walker::handle_gimple_call): Likewise.
9735 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9736 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9737 (vrp_prop::get_value_range): Adjust.
9738 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9739 modifying the lattice in-place.
9740 (vrp_prop::visit_stmt): Likewise.
9741 * vr-values.c (vr_values::get_lattice_entry): New private method.
9742 (vr_values::get_value_range): Wrap it and return a const
9744 (vr_values::set_def_to_varying): New.
9745 (vr_values::set_defs_to_varying): Use it.
9746 (vr_values::update_value_range): Likewise.
9747 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9748 (values::op_with_constant_singleton_va): Likewise.
9749 (vr_values::extract_range_for_var_from_co): Likewise.
9750 (vr_values::extract_range_from_ssa_name): Likewise.
9751 (vr_values::extract_range_from_cond_expr): Likewise.
9752 (vr_values::extract_range_basic): Likewise.
9753 (compare_ranges): Take const value_range *, adjust.
9754 (compare_range_with_value): Likewise.
9755 (vrp_valueize): Adjust.
9756 (vrp_valueize_1): Likewise.
9757 (vr_values::get_vr_for_comparison): Return a const value_range *.
9758 (vr_values::compare_name_with_value): Adjust.
9759 (vr_values::compare_names): Likewise.
9760 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9762 (vr_values::vrp_evaluate_conditional): Likewise.
9763 (find_case_label_ranges): Take a const value_range *.
9764 (vr_values::vrp_visit_switch_stmt): Adjust.
9765 (vr_values::extract_range_from_phi_node): Likewise.
9766 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9767 (vr_values::simplify_abs_using_ranges): Likewise.
9768 (test_for_singularity): Take a const value_range *.
9769 (range_fits_type_p): Likewise.
9770 (vr_values::simplify_cond_using_ranges_1): Adjust.
9771 (vr_values::simplify_cond_using_ranges_2): Likewise.
9772 (vr_values::simplify_switch_using_ranges): Likewise.
9773 (vr_values::simplify_float_conversion_usi): Likewise.
9774 (vr_values::two_valued_val_range_p): Likewise.
9775 * vr-values.h (vr_values::get_value_range): Return a const
9777 (vr_values::set_def_to_varying): New.
9778 (vr_values::get_lattice_entry): New private method.
9779 (vr_values::get_vr_for_comparison): Return a const value_range *.
9781 2019-07-25 Martin Liska <mliska@suse.cz>
9782 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9785 * common.opt: Add -fallocation-dce
9786 * gimple.c (gimple_call_operator_delete_p): New.
9787 * gimple.h (gimple_call_operator_delete_p): Likewise.
9788 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9789 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9790 DECL_IS_OPERATOR_DELETE_P.
9791 (mark_all_reaching_defs_necessary_1): Likewise.
9792 (propagate_necessity): Likewise.
9793 (eliminate_unnecessary_stmts): Handle
9794 gimple_call_operator_delete_p.
9795 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9796 Add packing of OPERATOR_DELETE.
9797 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9799 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9800 (DECL_SET_IS_OPERATOR_DELETE): New.
9801 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9803 2019-07-25 Martin Liska <mliska@suse.cz>
9805 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9806 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9807 * coverage.c (coverage_begin_function): Likewise.
9808 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9809 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9810 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9811 (sem_item::hash_referenced_symbol_properties): Likewise.
9812 * lto-streamer-out.c (hash_tree): Likewise.
9813 * predict.c (expr_expected_value_1): Likewise.
9814 * tree-inline.c (expand_call_inline): Likewise.
9815 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9816 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9817 * tree-core.h (enum function_decl_type): New enum.
9818 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9819 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9820 (set_function_decl_type): Likewise.
9821 (DECL_IS_OPERATOR_NEW_P): New.
9822 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9823 (DECL_LAMBDA_FUNCTION): Likewise.
9824 (DECL_LAMBDA_FUNCTION_P): Likewise.
9825 (DECL_IS_OPERATOR_NEW): Remove.
9826 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9828 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9830 * ipa-profile.c (get_most_common_single_value): Use
9831 get_nth_most_common_value.
9832 * profile.c (sort_hist_value): New function.
9833 (compute_value_histograms): Call sort_hist_value to sort the
9834 values after loading from disk.
9835 * value-prof.c (get_most_common_single_value): Rename to ...
9836 get_nth_most_common_value. Add input params n, return
9837 the n_th value and count.
9838 (gimple_divmod_fixed_value_transform): Use
9839 get_nth_most_common_value.
9840 (gimple_ic_transform): Likewise.
9841 (gimple_stringops_transform): Likewise.
9842 * value-prof.h (get_most_common_single_value): Add input params
9845 2019-07-25 Richard Biener <rguenther@suse.de>
9847 PR tree-optimization/91236
9848 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9849 size of CONSTRUCTOR write. Fix buffer size we pass to
9852 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9854 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9855 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9858 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9860 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9861 explicitly disabled with --disable-initfini-array.
9863 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9865 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9868 2019-07-24 Martin Sebor <msebor@redhat.com>
9870 PR tree-optimization/91183
9871 PR tree-optimization/86688
9872 * builtins.c (compute_objsize): Handle MEM_REF.
9873 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9874 (get_min_string_length): Remove.
9875 (count_nonzero_bytes): New function.
9876 (handle_char_store): Rename...
9877 (handle_store): to this. Handle multibyte stores via integer types.
9878 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9881 2019-07-24 Martin Sebor <msebor@redhat.com>
9884 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9885 (diagnostic_report_diagnostic): Same.
9886 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9887 (diagnostic_context::lang_mask): New data member.
9888 * ipa-pure-const.c (suggest_attribute): Use
9889 lang_hooks.option_lang_mask ().
9890 * opts-common.c (option_enabled): Handle new argument.
9891 (get_option_state): Pass an additional argument.
9892 * opts.c (print_filtered_help): Print supported languages for
9893 unsupported options. Adjust printing of current state.
9894 * opts.h (option_enabled): Add argument.
9895 * toplev.c (print_switch_values): Use lang_mask.
9896 (general_init): Set global_dc->lang_mask.
9898 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9901 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9903 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9905 * cgraphunit.c (symbol_table::compile): Start and stop
9906 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9907 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9909 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9911 * gimplify.c (flag_instrument_functions_exclude_p): Include
9912 namespace/class information in the printable name.
9913 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9914 to tokens entered into the vector.
9916 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9918 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9919 (get_static_chain): Call it instead of build_simple_mem_ref.
9920 (get_frame_field): Likewise.
9921 (get_nonlocal_debug_decl): Likewise.
9922 (convert_nonlocal_reference_op): Likewise.
9924 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9926 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9928 (arc_compute_frame_size): Millicode is disabled when compiling
9930 (arc_return_address_register): Likewise.
9931 (arc_compute_function_type): Likewise.
9932 (arc_compute_frame_size): Likewise.
9933 (secondary_reload_info): Likewise.
9934 (arc_get_unalign): Likewise.
9935 (arc_can_use_return_insn): Declare.
9936 * config/arc/arc.c (AUX_LP_START): Define
9937 (AUX_LP_END): Likewise.
9938 (arc_frame_info): Update gmask member to 64-bit datum.
9939 (GMASK_LEN): Update.
9940 (arc_compute_function_type): Make it static, move it forward.
9941 (arc_must_save_register): Update, consider the extra regs.
9942 (arc_compute_millicode_save_restore_regs): Update to use the 64
9944 (arc_compute_frame_size): Likewise.
9945 (arc_enter_leave_p): Likewise.
9946 (arc_save_callee_saves): Likewise.
9947 (arc_restore_callee_saves): Likewise.
9948 (arc_save_callee_enter): Likewise.
9949 (arc_restore_callee_leave): Likewise.
9950 (arc_save_callee_milli): Likewise.
9951 (arc_restore_callee_milli): Likewise.
9952 (arc_expand_prologue): Add new interrupt handling.
9953 (arc_return_address_register): Make it static, move it forward.
9954 (arc_expand_epilogue): Add new interrupt handling.
9955 (arc_get_unalign): Delete.
9956 (arc_epilogue_uses): Make sure we do not remove the extra
9957 saved/restored registers when interrupt.
9958 (arc_can_use_return_insn): New function.
9959 (push_reg): Likewise.
9960 (pop_reg): Likewise.
9961 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9963 (arc_restore_callee_saves): Likewise, but restoring.
9964 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9965 (R33_REG): Likewise.
9966 (R34_REG): Likewise.
9967 (R35_REG): Likewise.
9968 (R36_REG): Likewise.
9969 (R37_REG): Likewise.
9970 (R38_REG): Likewise.
9971 (R39_REG): Likewise.
9972 (R45_REG): Likewise.
9973 (R46_REG): Likewise.
9974 (R47_REG): Likewise.
9975 (R48_REG): Likewise.
9976 (R49_REG): Likewise.
9977 (R50_REG): Likewise.
9978 (R51_REG): Likewise.
9979 (R52_REG): Likewise.
9980 (R53_REG): Likewise.
9981 (R54_REG): Likewise.
9982 (R55_REG): Likewise.
9983 (R56_REG): Likewise.
9984 (R58_REG): Likewise.
9985 (type): Add rtie attribute.
9986 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9987 (movsi_insn): Accept moves to lp_count.
9988 (rtie): Update pattern.
9989 (simple_return): Simplify it, don't use this pattern as a return
9991 (arc600_rtie): New pattern.
9992 (p_return_i): Clean up.
9994 * config/arc/builtins.def (rtie): Only available for non ARC6xx
9996 * config/arc/predicates.md (move_src_operand): Consider lp_count
9999 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10001 * config/s390/predicates.md (addv_const_operand): New predicate.
10002 * config/s390/s390-modes.def (CCO): New condition code mode.
10003 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10004 (s390_branch_condition_mask): Likewise.
10005 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10006 ("mulv<mode>4"): New expanders.
10007 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10008 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10009 pattern definitions.
10011 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10013 PR middle-end/91166
10014 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10015 (define_predicates): Add entry for uniform_vector_p.
10016 (vec_same_elem_p): New match pattern.
10018 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10021 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10022 * config/i386/darwin32-biarch.h .. to here.
10023 * config/i386/darwin64-biarch.h: Adjust comments.
10024 * config/rs6000/darwin32-biarch.h: Likewise.
10025 * config/rs6000/darwin64-biarch.h: Likewise.
10026 * config.gcc: Missed commit from r273746
10027 (*-*-darwin*): Don't include CPU t-darwin here.
10028 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10029 an error message if i686-darwin configuration is attempted for
10032 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10035 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10036 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10037 an error message if i686-darwin configuration is attempted for
10039 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10040 (powerpc-*-darwin*): Use biarch files where needed.
10041 (powerpc64-*-darwin*): Likewise.
10042 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10043 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10045 * config/i386/darwin32-biarch.h: New.
10046 * config/i386/darwin64.h: Rename.
10047 * config/i386/darwin64-biarch.h: To this.
10048 * config/i386/t-darwin: Rename.
10049 * config/i386/t-darwin32-biarch: To this.
10050 * config/i386/t-darwin64: Rename.
10051 * config/i386/t-darwin64-biarch: To this.
10052 * config/rs6000/darwin32-biarch.h: New.
10053 * config/rs6000/darwin64.h: Rename.
10054 * config/rs6000/darwin64-biarch.h: To this.
10055 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10057 * config/rs6000/t-darwin8: Rename.
10058 * config/rs6000/t-darwin32-biarch: To this.
10059 * config/rs6000/t-darwin64 Rename.
10060 * config/rs6000/t-darwin64-biarch: To this.
10062 2019-07-23 Martin Sebor <msebor@redhat.com>
10064 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10066 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10068 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10069 (rh): New alias for it.
10071 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10073 * gdbhooks.py: Pass replace=True to
10074 gdb.printing.register_pretty_printer.
10076 2019-07-23 Richard Biener <rguenther@suse.de>
10079 * lto-streamer-in.c (input_function): Drop inline-entry markers
10080 that ended up with an unknown location block.
10082 2019-07-23 Richard Biener <rguenther@suse.de>
10084 PR tree-optimization/83518
10085 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10086 init from a constant even when partial defs are already recorded.
10088 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10090 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10091 * config/i386/znver1.md: Enable patterns for znver2 and add store
10092 variants which use extra AGU unit.
10094 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10096 * config/i386/i386-options.c (ix86_option_override_internal): Default
10097 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10098 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10101 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10103 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10104 (znver2_costs): Update 256 bit SSE costs and multiplication.
10106 2019-07-23 Jan Beulich <jbeulich@suse.com>
10108 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10109 Require only AVX512F.
10110 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10111 alternative expanding to vpternlog.
10113 2019-07-23 Martin Liska <mliska@suse.cz>
10115 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10116 to -flto in dwarf producer string.
10118 2019-07-23 Richard Biener <rguenther@suse.de>
10120 * tree-cfg.c (label_for_bb): Remove global var.
10121 (main_block_label): Take label_for_bb as argument.
10122 (cleanup_dead_labels_eh): Likewise, adjust.
10123 (cleanup_dead_labels): Adjust.
10125 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10127 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10128 Configurations): Add documentation for __builtin_mtfsf.
10130 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10132 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10133 * config/riscv/riscv.c (riscv_constant_alignment): Use
10134 riscv_align_data_type.
10135 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10136 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10137 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10138 * config/riscv/riscv.opt (malign-data): New.
10139 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10141 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10143 * cgraph.c (dump_graphviz): New function.
10144 * cgraph.h (dump_graphviz): New function.
10145 * symtab.c (dump_graphviz): New function.
10147 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10149 * config/aarch64/aarch64-simd.md
10150 (*aarch64_simd_sra<mode>): New.
10151 * config/aarch64/iterators.md
10152 (SHIFTRT): New iterator.
10153 (sra_op): New attribute.
10155 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10157 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10158 callee-saved regs R4->R10 in an interrupt function that calls another
10161 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10163 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10164 (_mm_blendv_epi8): New.
10166 2019-07-22 Richard Biener <rguenther@suse.de>
10168 PR tree-optimization/91221
10169 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10170 restrict partial-def handling of empty constructors and
10171 memset to refs with known offset.
10173 2019-07-22 Jan Beulich <jbeulich@suse.com>
10175 * config/i386/sse.md (ternlogsuffix): New.
10176 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10178 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10180 2019-07-22 Martin Liska <mliska@suse.cz>
10182 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10184 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10186 2019-07-22 Martin Liska <mliska@suse.cz>
10188 * lto-section-in.c (lto_get_section_data):
10189 Use new function get_compression.
10190 * lto-streamer-out.c (produce_lto_section): Use
10191 set_compression to encode compression algorithm.
10192 * lto-streamer.h (struct lto_section): Do not
10193 use bitfields in the format.
10195 2019-07-22 Martin Liska <mliska@suse.cz>
10198 * opts-common.c (decode_cmdline_option): Decode
10199 argument of -Werror and check it for a wrong language.
10200 * opts-global.c (complain_wrong_lang): Remove such case.
10202 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10204 * config/arc/arc.c (prepare_move_operands): Always use an
10205 intermediate register when storing a TLS symbols.
10207 2019-07-22 Stafford Horne <shorne@gmail.com>
10209 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10212 2019-07-22 Stafford Horne <shorne@gmail.com>
10214 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10215 and munordered-float validations.
10216 * config/or1k/constraints.md (d): New register constraint.
10217 * config/or1k/predicates.md (fp_comparison_operator): New.
10218 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10220 (or1k_expand_compare): Normalize unordered comparisons.
10221 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10222 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10223 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10224 * config/or1k/or1k.md (type): Add fpu.
10225 (fpu): New instruction reservation.
10226 (F, f, fr, fi, FI, FOP, fop): New.
10227 (<fop><F:mode>3): New ALU instruction definition.
10228 (float<fi><F:mode>2): New conversion instruction definition.
10229 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10230 (fpcmpcc): New code iterator.
10231 (*sf_fp_insn): New instruction definition.
10232 (cstore<F:mode>4): New expand definition.
10233 (cbranch<F:mode>4): New expand definition.
10234 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10235 munordered-float): New options.
10236 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10239 2019-07-22 Stafford Horne <shorne@gmail.com>
10241 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10242 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10243 documenation to be more clear.
10244 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10246 * config/or1k/or1k.opt (mrori): New option.
10247 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10248 msfimm, mshftimm): Rewrite documentation to be more clear.
10249 * config/or1k/or1k.md (insn_support): Add ror and rori.
10250 (enabled): Add conditions for ror and rori.
10251 (rotrsi3): Replace condition for shftimm with ror and rori.
10253 2019-07-22 Stafford Horne <shorne@gmail.com>
10256 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10257 (extend<mode>si2): Update predicate.
10258 * config/or1k/predicates.md (volatile_mem_operand): New.
10259 (reg_or_mem_operand): New.
10261 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10263 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10264 * config/rs6000/rs6000-call.c: ... to here.
10266 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10268 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10271 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10273 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10275 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10277 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10279 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10281 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10282 (any_memory_operand): New predicate.
10283 (reg_or_mem_operand): Use it.
10285 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10288 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10290 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10292 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10293 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10295 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10297 * tree.def (OMP_LOOP): New tree code.
10298 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10299 (enum omp_clause_bind_kind): New enum.
10300 (struct tree_omp_clause): Add subcode.bind_kind.
10301 * tree.h (OMP_LOOP_CHECK): Rename to ...
10302 (OMP_LOOPING_CHECK): ... this.
10303 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10304 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10305 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10306 (OMP_CLAUSE_BIND_KIND): Define.
10307 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10308 bind clause entries.
10309 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10310 * tree-pretty-print.c (dump_omp_clause): Likewise.
10311 (dump_generic_node): Handle OMP_LOOP.
10312 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10313 (in_omp_construct): New variable.
10314 (is_gimple_stmt): Handle OMP_LOOP.
10315 (gimplify_scan_omp_clauses): For lastprivate don't set
10316 check_non_private if code == OMP_LOOP. For reduction clause
10317 on OMP_LOOP combined with parallel or teams propagate as shared
10318 on the combined construct. Handle OMP_CLAUSE_BIND.
10319 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10320 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10321 for constructs from a loop construct to gimplify_scan_omp_clauses.
10322 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10323 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10324 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10325 to match the implicit ORT_TARGET construct around whole body.
10326 Temporarily clear in_omp_construct when processing body.
10327 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10328 etc. temporarily set in_omp_construct when processing body.
10329 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10330 * omp-low.c (struct omp_context): Add loop_p.
10331 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10332 in that the original var might be private.
10333 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10334 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10335 addition of loop construct.
10336 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10338 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10339 lastprivate non-addressable iterator of a collapse(1) simd.
10341 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10343 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10346 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10348 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10349 refer to default conditions. Warn for the 'y' spec which is ignored
10350 by current linkers.
10352 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10354 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10355 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10356 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10357 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10358 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10359 init_cumulative_args, rs6000_promote_function_mode,
10360 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10361 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10362 rs6000_function_arg_boundary, rs6000_parm_offset,
10363 rs6000_parm_start, rs6000_arg_size,
10364 rs6000_darwin64_record_arg_advance_flush,
10365 rs6000_darwin64_record_arg_advance_recurse,
10366 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10367 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10368 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10369 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10370 rs6000_finish_function_arg, rs6000_function_arg,
10371 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10372 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10373 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10374 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10375 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10376 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10377 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10378 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10379 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10380 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10381 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10382 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10383 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10384 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10385 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10386 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10387 get_element_number, altivec_expand_vec_set_builtin,
10388 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10389 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10390 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10391 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10392 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10393 rs6000_expand_builtin, rs6000_vector_type,
10394 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10395 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10396 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10398 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10399 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10400 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10401 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10402 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10403 init_cumulative_args, rs6000_promote_function_mode,
10404 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10405 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10406 rs6000_function_arg_boundary, rs6000_parm_offset,
10407 rs6000_parm_start, rs6000_arg_size,
10408 rs6000_darwin64_record_arg_advance_flush,
10409 rs6000_darwin64_record_arg_advance_recurse,
10410 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10411 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10412 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10413 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10414 rs6000_finish_function_arg, rs6000_function_arg,
10415 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10416 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10417 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10418 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10419 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10420 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10421 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10422 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10423 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10424 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10425 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10426 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10427 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10428 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10429 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10430 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10431 get_element_number, altivec_expand_vec_set_builtin,
10432 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10433 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10434 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10435 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10436 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10437 rs6000_expand_builtin, rs6000_vector_type,
10438 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10439 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10440 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10441 to here from rs6000.c.
10442 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10443 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10444 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10445 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10446 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10447 rs6000_return_in_memory, rs6000_return_in_msb,
10448 rs6000_pass_by_reference, setup_incoming_varargs,
10449 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10450 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10451 rs6000_function_arg_padding, rs6000_function_arg,
10452 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10453 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10454 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10455 rs6000_passes_long_double, rs6000_passes_vector,
10456 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10457 altivec_builtin_mask_for_load) Add declarations.
10458 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10459 * config/config.gcc: Add new source file rs6000-call.c to garbage
10460 collector and extra_objs.
10462 2019-07-19 Jeff Law <law@redhat.com>
10464 PR tree-optimization/86061
10465 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10466 strncpy. Drop some trivial dead code.
10467 (maybe_trim_memstar_call): Handle strncpy.
10469 2019-07-19 Richard Biener <rguenther@suse.de>
10471 PR tree-optimization/91211
10472 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10473 memset encoding size.
10475 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10478 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10480 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10483 * ipa-inline.c (recursive_inlining): Fix limits check.
10485 2019-07-19 Richard Biener <rguenther@suse.de>
10487 PR tree-optimization/91200
10488 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10489 no PHI nodes in middle-bb.
10491 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10493 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10495 * config/aarch64/aarch64-option-extensions.def: Likewise.
10497 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10499 PR middle-end/91190
10500 * function.c (insert_temp_slot_address): Store into the hash table
10501 a copy of address to avoid RTL sharing issues.
10503 2019-07-19 Richard Biener <rguenther@suse.de>
10505 PR tree-optimization/91207
10507 2019-07-17 Richard Biener <rguenther@suse.de>
10509 PR tree-optimization/91178
10510 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10511 loads with a gap larger than the vector size always use
10513 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10514 avoid loading vectors that are only contained in the gap
10515 and thus are not needed.
10517 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10519 * config/i386/i386.md (*addqi_2_slp): Remove.
10520 (*<code>qi_2_slp): Ditto.
10522 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10524 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10525 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10526 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10527 Rename function from rs6000_prefixed_address.
10528 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10530 (TARGET_TOC): Likewise.
10531 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10533 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10535 (TARGET_TOC): Likewise.
10536 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10538 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10540 (TARGET_TOC): Likewise.
10541 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10542 check to require -mcmodel=medium for pc-relative addressing.
10543 (create_TOC_reference): Add assertion for TARGET_TOC.
10544 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10546 (rs6000_emit_move): Likewise.
10547 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10548 to 'TOC_alias_set'.
10549 (get_TOC_alias_set): Likewise.
10550 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10552 (rs6000_can_eliminate): Likewise.
10553 (rs6000_prefixed_address_mode_p): Rename function from
10554 rs6000_prefixed_address.
10555 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10556 TARGET_HAS_TOC and not pc-relative.
10557 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10558 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10560 (TARGET_TOC): Likewise.
10561 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10564 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10567 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10568 for operand 0. Do not use (match_dup) to match operand 1 with
10569 operand 0. Add check in insn constraint that either input operand
10570 matches operand 0. Use SWI12 mode iterator to also handle
10572 (*and<mode>_1_slp): Ditto.
10573 (*<code>qi_1_slp): Ditto.
10574 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10575 Do not use (match_dup) to match operand 1 with operand 0. Add
10576 check in insn constraint that operand 1 matches operand 0.
10577 Use SWI12 mode iterator to also handle HImode operands.
10578 (*ashl<mode>3_1_slp): Ditto.
10579 (*<shift_insn><mode>3_1_slp): Ditto.
10580 (*<rotate_insn><mode>3_1_slp): Ditto.
10582 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10584 * config/arm/arm-builtins.c
10585 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10586 (arm_expand_unop_builtin): Likewise.
10587 * config/arm/crypto.md
10588 (crypto_sha1h): Convert from define_insn to define_expand.
10589 (crypto_<crypto_pattern>): Likewise.
10590 (crypto_sha1h_lb): New define_insn.
10591 (crypto_<crypto_pattern>_lb): Likewise.
10593 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10596 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10597 (vsha1cq_u32): Likewise.
10598 (vsha1pq_u32): Likewise.
10599 (vsha1mq_u32): Likewise.
10600 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10602 (crypto_sha1c): Correct vec select.
10603 (crypto_sha1m): Likewise.
10604 (crypto_sha1p): Likewise.
10606 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10608 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10609 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10610 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10611 (subdi_zesidi_zesidi): Likewise.
10612 (negdi2_compare, negdi2_insn): Likewise.
10613 (negdi_extensidi): Likewise.
10614 (negdi_zero_extendsidi): Likewise.
10615 (arm_cmpdi_insn): Likewise.
10616 (subsi3_carryin): Use arm_borrow_operation.
10617 (subsi3_carryin_const): Likewise.
10618 (subsi3_carryin_const0): Likewise.
10619 (subsi3_carryin_compare): Likewise.
10620 (subsi3_carryin_compare_const): Likewise.
10621 (subsi3_carryin_compare_const0): Likewise.
10622 (subsi3_carryin_shift): Likewise.
10623 (rsbsi3_carryin_shift): Likewise.
10624 (negsi2_carryin_compare): Likewise.
10626 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10628 PR tree-optimization/91137
10629 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10630 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10631 Init, use and fini the above new field.
10632 (determine_base_object_1): New function.
10633 (determine_base_object): Reimplement using walk_tree.
10635 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10637 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10638 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10639 CLEANUP_FORCE_FAST_DCE is set.
10640 * ifcvt.c (rest_of_handle_if_conversion): Pass
10641 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10642 if-conversion succeeded.
10644 2019-07-18 Richard Biener <rguenther@suse.de>
10646 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10647 branches to make code less indented.
10649 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10651 PR middle-end/81824
10652 * attribs.c (decls_mismatched_attributes): Simplify the logic
10653 that avoids duplicates and false positives.
10655 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10657 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10658 data into data section when generating PIC code.
10659 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10660 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10661 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10662 return 2 for SOM and 0 for other targets.
10664 2019-07-17 Jeff Law <law@redhat.com>
10666 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10667 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10668 avoid unexpected switch statement fallthru.
10670 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10672 * config/i386/i386.md (*add<dwi>3_doubleword):
10673 Remove redundant constraints.
10674 (*add<mode>_1): Ditto.
10677 (*addqi_1_slp): Ditto.
10678 (*add<mode>_2): Ditto.
10679 (*addv<mode>4): Ditto.
10680 (*sub<dwi>3_doubleword): Ditto.
10681 (*sub<mode>_1): Ditto.
10682 (*subqi_1_slp): Ditto.
10683 (*sub<mode>_2): Ditto.
10684 (*subv<mode>4): Ditto.
10685 (*sub<mode>_3): Ditto.
10686 (@add<mode>3_carry): Ditto.
10687 (@sub<mode>3_carry): Ditto.
10688 (*add<mode>3_cc_overflow_1): Ditto.
10689 (*add<mode>3_zext_cc_overflow_2): Ditto.
10691 (*and<mode>_1): Ditto.
10693 (*andqi_1_slp): Ditto.
10695 (*andqi_2_maybe_si): Ditto.
10696 (*and<mode>_2): Ditto.
10697 (*andqi_2_slp): Ditto.
10698 (*<code><mode>_1): Ditto.
10699 (*<code>qi_1): Ditto.
10700 (*<code>qi_1_slp): Ditto.
10701 (*<code><mode>_2): Ditto.
10702 (*<code>qi_2_slp): Ditto.
10704 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10706 * alias.c (record_component_aliases): Do not simplify pointed-to
10707 types of ODR types.
10709 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10711 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10712 partial reg stall on alternative 2.
10714 2019-07-17 Richard Biener <rguenther@suse.de>
10716 PR tree-optimization/91178
10717 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10718 lower SSA names to avoid quadratic behavior in the common case.
10719 * tree-data-ref.c (split_constant_offset): Add limit argument
10720 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10721 (split_constant_offset_1): Add limit argument and use it to
10722 limit SSA def walking. Optimize the common plus/minus case.
10724 2019-07-17 Richard Biener <rguenther@suse.de>
10726 PR tree-optimization/91178
10727 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10728 loads with a gap larger than the vector size always use
10730 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10731 avoid loading vectors that are only contained in the gap
10732 and thus are not needed.
10734 2019-07-17 Richard Biener <rguenther@suse.de>
10736 PR tree-optimization/91180
10737 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10738 computation for memset partial defs.
10740 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10742 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10743 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10744 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10745 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10746 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10747 * omp-grid.c (grid_process_grid_body,
10748 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10749 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10750 == GF_OMP_FOR_KIND_SIMD.
10751 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10752 check_omp_nesting_restrictions, scan_omp_1_stmt,
10753 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10754 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10755 omp_find_scan): Likewise.
10756 * omp-expand.c (expand_omp_for): Likewise.
10757 * omp-general.c (omp_extract_for_data): Likewise.
10759 PR tree-optimization/91157
10760 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10761 a vector boolean with scalar mode.
10762 (expand_vector_condition): Handle first operand being a vector boolean
10764 (expand_vector_operations_1): For comparisons, don't bail out early
10765 if the return type is vector boolean with scalar mode, but comparison
10766 operand type is not.
10768 2019-07-17 Richard Biener <rguenther@suse.de>
10770 PR tree-optimization/91181
10771 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10772 IFN_LOADs as calls.
10774 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10776 * config/i386/i386.md (*testdi_1): Match CCZmode for
10777 constants that might have the SImode sign bit set.
10778 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10779 Use correct constraints for pentium pairing.
10780 (*test<mode>_1): Ditto.
10782 2019-07-16 Jeff Law <law@redhat.com>
10784 PR rtl-optimization/91173
10785 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10786 SSA_NAME with a constant value, fold its value into the offset
10787 and clear the base before calling gen_addr_rtx.
10789 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10791 PR rtl-optimization/91164
10792 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10793 invalidate dominance info.
10795 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10797 * read-md.h (md_reader::record_potential_iterator_use): Add a
10798 file_location parameter.
10799 * read-rtl.c (attribute_use::loc): New field.
10800 (map_attr_string): Take a file_location parameter. Report cases
10801 in which attributes map to multiple distinct values.
10802 (apply_attribute_uses): Update call accordingly.
10803 (md_reader::handle_overloaded_name): Likewise.
10804 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10806 (record_attribute_use): Take a file_location parameter.
10807 Initialize attribute_use::loc.
10808 (md_reader::record_potential_iterator_use): Take a file_location
10809 parameter. Update call to record_attribute_use.
10810 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10811 (rtx_reader::read_rtx_code): Likewise.
10812 (rtx_reader::read_rtx_operand): Likewise. Record a location
10813 for implicitly-expanded empty strings.
10815 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10817 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10818 Use file_location instead of separate fields.
10819 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10820 separate filename and line number.
10821 * read-md.c (ptr_loc): As above.
10822 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10823 (md_reader::fprint_md_ptr_loc): Likewise.
10824 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10825 instead of a separate filename and line number.
10826 (md_reader::read_string): Update call accordingly.
10828 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10830 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10831 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10832 leaving the choice between SFDF and P implicit.
10833 (*mov<mode>_update2): Likewise.
10834 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10835 rather than leaving the choice betweem IBM128 and GPR implicit.
10836 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10837 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10839 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10840 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10841 * config/rs6000/vsx.md
10842 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10843 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10844 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10845 and VSX_EXTRACT_I implicit.
10847 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10849 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10850 Explicitly use <MOVEP1:MODE> for the mode attribute.
10852 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10855 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10857 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10860 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10861 .machine directive.
10863 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10865 * config/i386/i386.md (@test<mode>_ccno_1):
10866 Rename from test<mode>_ccno_1.
10867 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10868 (*testqi_1_maybe_si): Remove modrm attribute.
10869 (*test<mode>_1): Ditto.
10870 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10871 gen_test_ccno_1 and gen_extend_insn.
10873 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10875 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10878 2019-07-15 Richard Biener <rguenther@suse.de>
10880 PR middle-end/91162
10881 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10882 node make sure to replace all uses with something valid.
10884 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10886 PR tree-optimization/88497
10887 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10888 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10889 function undistribute_bitref_for_vector.
10890 (undistribute_bitref_for_vector): New function.
10891 (cleanup_vinfo_map): Likewise.
10892 (sort_by_mach_mode): Likewise.
10894 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10896 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10897 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10898 and testdi_ccno_1 using SWI48 mode attribute.
10899 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10900 x86_64_szext_general_operand.
10901 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10902 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10903 instead of genera_operand mode attribute.
10905 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10907 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10908 fopen and fclose to their respective types.
10909 (DotFn.invoke): Ditto.
10911 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10913 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10914 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10915 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10916 (array_index_predicate): Remove.
10917 (analyze_function_body): Account cost for variable ofsetted array
10919 (estimate_node_size_and_time): Do not compute array index hint.
10920 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10921 (inline_read_section): Do not read array index hint.
10922 (ipa_fn_summary_write): Do not write array index hint.
10923 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10924 * ipa-cp.c (hint_time_bonus): Remove.
10925 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10926 (ipa_fnsummary): Remove array_index.
10927 * ipa-inline.c (want_inline_small_function_p): Do not use
10929 (edge_badness): Likewise.
10930 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10932 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10935 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10936 superfluous "builtin function" phrasing.
10938 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10940 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10942 (aliasing_component_refs_walk): Break out from ...
10943 (aliasing_component_refs_p): ... here.
10945 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10948 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10949 "builtin function" phrasing.
10951 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10954 * recog.h (temporary_volatile_ok): New class.
10955 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10956 volatile_ok temporarily to true using temporary_volatile_ok.
10957 * expr.c (emit_block_move_via_cpymem): Likewise.
10958 * optabs.c (maybe_legitimize_operand): Likewise.
10960 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10962 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10963 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10964 uses inside of order(concurrent) constructs.
10965 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10966 OMP_CLAUSE_ORDER is seen.
10967 * omp-low.c (struct omp_context): Add order_concurrent member.
10968 (scan_sharing_clauses): Set ctx->order_concurrent if
10969 OMP_CLAUSE_ORDER is seen.
10970 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10971 of simd order(concurrent). Diagnose constructs not allowed inside of
10972 for order(concurrent).
10973 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10974 complaining about static double setjmp (double); or class static
10975 methods or non-global namespace setjmps.
10976 (omp_runtime_api_call): New function.
10977 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10978 order(concurrent) loops.
10980 2019-07-12 Martin Sebor <msebor@redhat.com>
10982 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10983 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10984 * tree-vrp.c (vrp_prop::check_mem_ref): Use
10985 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10987 2019-07-12 Jan Hubicka <jh@suse.cz>
10989 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10990 (indirect_refs_may_alias_p): ... here.
10991 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10992 mem refs in the access paths.
10994 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
10996 PR tree-optimization/89430
10997 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10998 store elimination for local variable without address escape.
11000 2019-07-12 Jeff Law <law@redhat.com>
11002 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11003 for the ".far" section.
11005 2019-07-12 Richard Biener <rguenther@suse.de>
11007 PR tree-optimization/91145
11008 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11011 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11013 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11014 rather than this_state as the lowering context for the ELSE
11015 seq in a GIMPLE_EH_ELSE.
11017 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11019 * vector-builder.h (vector_builder::elt): Allow already-supplied
11020 elements to be read back before building is complete.
11022 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11024 PR rtl-optimization/91136
11025 * df-core.c (ACCESSING REFS): Fix typos in comment.
11026 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11027 the beginning of the block to the initial set of live registers.
11029 2019-07-12 Richard Biener <rguenther@suse.de>
11031 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11032 * fold-const.c (get_array_ctor_element_at_index): Add
11033 ctor_idx output parameter informing the caller where in
11034 the constructor the element was (not) found. Add early exit
11035 for when the ctor is sorted.
11036 * gimple-fold.c (fold_array_ctor_reference): Support constant
11037 folding across multiple array elements.
11039 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11041 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11042 doesn't have location, set the current location to the function's end.
11044 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11046 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11047 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11048 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11049 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11050 * config/aarch64/aarch64-simd.md
11051 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11052 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11053 * config/aarch64/aarch64-sve.md
11054 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11055 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11057 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11059 * doc/md.texi: Document that @ patterns can have different
11060 numbers of operands.
11061 * genemit.c (handle_overloaded_gen): Handle this case.
11062 * genopinit.c (handle_overloaded_gen): Likewise.
11063 * gensupport.c (replace_operands_with_dups): Iterate over
11064 the new rtx's format rather than the old one's.
11066 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11068 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11069 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11070 order clause entries.
11071 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11072 * tree-pretty-print.c (dump_omp_clause): Likewise.
11073 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11075 * omp-low.c (scan_sharing_clauses): Likewise.
11076 * tree-nested.c (convert_nonlocal_omp_clauses,
11077 convert_local_omp_clauses): Likewise.
11079 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11081 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11082 fallthrough target of current basic block isn't the placed
11085 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11088 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11089 (_mm512_storeu_epi64): Likewise.
11090 (_mm512_loadu_epi32): Likewise.
11091 (_mm512_storeu_epi32): Likewise.
11092 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11093 (_mm_storeu_epi64): Likewise.
11094 (_mm256_storeu_epi32): Likewise.
11095 (_mm_storeu_epi32): Likewise.
11097 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11099 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11101 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11103 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11106 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11109 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11110 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11111 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11112 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11113 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11114 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11116 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11117 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11118 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11120 (sse2_cvttpd2dq<mask_name>): Change into ...
11121 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11122 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11123 (*sse2_cvtpd2dq<mask_name>): Change into ...
11124 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11125 Add "C" constraint to const0_operand.
11126 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11127 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11131 * config/i386/i386-builtin-types.def
11132 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11133 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11134 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11135 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11136 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11137 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11138 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11139 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11140 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11141 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11142 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11143 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11144 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11145 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11146 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11147 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11148 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11149 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11150 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11151 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11152 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11153 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11154 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11155 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11156 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11157 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11158 __builtin_ia32_vpdpbusd_v4si_maskz,
11159 __builtin_ia32_vpdpbusds_v16si_mask,
11160 __builtin_ia32_vpdpbusds_v16si_maskz,
11161 __builtin_ia32_vpdpbusds_v8si_mask,
11162 __builtin_ia32_vpdpbusds_v8si_maskz,
11163 __builtin_ia32_vpdpbusds_v4si_mask,
11164 __builtin_ia32_vpdpbusds_v4si_maskz,
11165 __builtin_ia32_vpdpwssd_v16si_mask,
11166 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11167 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11168 __builtin_ia32_vpdpwssd_v4si_maskz,
11169 __builtin_ia32_vpdpwssds_v16si_mask,
11170 __builtin_ia32_vpdpwssds_v16si_maskz,
11171 __builtin_ia32_vpdpwssds_v8si_mask,
11172 __builtin_ia32_vpdpwssds_v8si_maskz,
11173 __builtin_ia32_vpdpwssds_v4si_mask,
11174 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11175 suffixed types rather than *_INT.
11176 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11177 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11178 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11179 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11180 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11181 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11183 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11185 * tree-vrp.c (intersect_ranges): If we know the intersection is
11186 empty, there is no need to conservatively add anything else to
11189 2019-07-11 Richard Biener <rguenther@suse.de>
11191 PR middle-end/91131
11192 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11193 when the object is volatile and we have not cleared it even though
11194 there are no nonzero elements.
11196 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11198 * config/rs6000/predicates.md (cint34_operand): Update
11199 SIGNED_34BIT_OFFSET_P call.
11200 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11201 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11202 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11203 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11204 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11206 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11207 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11208 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11209 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11210 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11212 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11214 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11215 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11216 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11217 (DEF_MIN_OSX_VERSION): New.
11219 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11221 * fold-const.c (fold_relational_const): Fix folding of
11222 vector-to-scalar NE_EXPRs.
11223 (test_vector_folding): Add more tests.
11225 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11228 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11229 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11230 (vec_setv2di_internal): Reexpress as...
11231 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11232 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11233 rather than gen_neon_vset_lane<mode>.
11235 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11238 * lra-constraints.c (process_alt_operands): Don't match user
11239 defined regs only if they are early clobbers.
11241 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11243 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11245 2019-07-10 Richard Biener <rguenther@suse.de>
11247 PR tree-optimization/91126
11248 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11249 native encoding offset for BYTES_BIG_ENDIAN.
11250 (vn_reference_lookup_3): Likewise.
11252 2019-07-10 Richard Biener <rguenther@suse.de>
11254 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11255 LHS whenever possible.
11257 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11259 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11260 from ...; work also on duplicated types.
11261 (nonoverlapping_component_refs_since_match): ... here
11262 (ncr_type_uid): Break out from ...
11263 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11265 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11266 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11268 2019-07-09 Martin Sebor <msebor@redhat.com>
11270 PR tree-optimization/90989
11271 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11272 optimization to just single character stores.
11274 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11276 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11277 Swap operands only once.
11279 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11281 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11282 for both call instructions.
11284 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11286 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11287 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11289 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11291 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11292 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11293 function from rs6000-logue.c back to rs6000.c.
11294 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11296 2019-07-09 Martin Sebor <msebor@redhat.com>
11299 * auto-profile.c: Change class-key of PODs to struct and others
11301 * basic-block.h: Same.
11302 * bitmap.c (bitmap_alloc): Same.
11304 * builtins.c (expand_builtin_prefetch): Same.
11305 (expand_builtin_interclass_mathfn): Same.
11306 (expand_builtin_strlen): Same.
11307 (expand_builtin_mempcpy_args): Same.
11308 (expand_cmpstr): Same.
11309 (expand_builtin___clear_cache): Same.
11310 (expand_ifn_atomic_bit_test_and): Same.
11311 (expand_builtin_thread_pointer): Same.
11312 (expand_builtin_set_thread_pointer): Same.
11313 * caller-save.c (setup_save_areas): Same.
11314 (replace_reg_with_saved_mem): Same.
11315 (insert_restore): Same.
11316 (insert_save): Same.
11317 (add_used_regs): Same.
11318 * cfg.c (get_bb_copy): Same.
11319 (set_loop_copy): Same.
11322 * cfgexpand.c (alloc_stack_frame_space): Same.
11323 (add_stack_var): Same.
11324 (add_stack_var_conflict): Same.
11325 (add_scope_conflicts_1): Same.
11326 (update_alias_info_with_stack_vars): Same.
11327 (expand_used_vars): Same.
11328 * cfghooks.c (redirect_edge_and_branch_force): Same.
11329 (delete_basic_block): Same.
11330 (split_edge): Same.
11331 (make_forwarder_block): Same.
11332 (force_nonfallthru): Same.
11333 (duplicate_block): Same.
11334 (lv_flush_pending_stmts): Same.
11335 * cfghooks.h: Same.
11336 * cfgloop.c (flow_loops_cfg_dump): Same.
11337 (flow_loop_nested_p): Same.
11338 (superloop_at_depth): Same.
11339 (get_loop_latch_edges): Same.
11340 (flow_loop_dump): Same.
11341 (flow_loops_dump): Same.
11342 (flow_loops_free): Same.
11343 (flow_loop_nodes_find): Same.
11344 (establish_preds): Same.
11345 (flow_loop_tree_node_add): Same.
11346 (flow_loop_tree_node_remove): Same.
11347 (flow_loops_find): Same.
11348 (find_subloop_latch_edge_by_profile): Same.
11349 (find_subloop_latch_edge_by_ivs): Same.
11350 (mfb_redirect_edges_in_set): Same.
11351 (form_subloop): Same.
11352 (merge_latch_edges): Same.
11353 (disambiguate_multiple_latches): Same.
11354 (disambiguate_loops_with_multiple_latches): Same.
11355 (flow_bb_inside_loop_p): Same.
11356 (glb_enum_p): Same.
11357 (get_loop_body_with_size): Same.
11358 (get_loop_body): Same.
11359 (fill_sons_in_loop): Same.
11360 (get_loop_body_in_dom_order): Same.
11361 (get_loop_body_in_custom_order): Same.
11362 (release_recorded_exits): Same.
11363 (get_loop_exit_edges): Same.
11364 (num_loop_branches): Same.
11365 (remove_bb_from_loops): Same.
11366 (find_common_loop): Same.
11367 (delete_loop): Same.
11368 (cancel_loop): Same.
11369 (verify_loop_structure): Same.
11370 (loop_preheader_edge): Same.
11371 (loop_exit_edge_p): Same.
11372 (single_exit): Same.
11373 (loop_exits_to_bb_p): Same.
11374 (loop_exits_from_bb_p): Same.
11375 (get_loop_location): Same.
11376 (record_niter_bound): Same.
11377 (get_estimated_loop_iterations_int): Same.
11378 (max_stmt_executions_int): Same.
11379 (likely_max_stmt_executions_int): Same.
11380 (get_estimated_loop_iterations): Same.
11381 (get_max_loop_iterations): Same.
11382 (get_max_loop_iterations_int): Same.
11383 (get_likely_max_loop_iterations): Same.
11384 * cfgloop.h (simple_loop_desc): Same.
11386 (loop_depth): Same.
11387 (loop_outer): Same.
11388 (loop_iterator::next): Same.
11389 (loop_outermost): Same.
11390 * cfgloopanal.c (mark_irreducible_loops): Same.
11391 (num_loop_insns): Same.
11392 (average_num_loop_insns): Same.
11393 (expected_loop_iterations_unbounded): Same.
11394 (expected_loop_iterations): Same.
11395 (mark_loop_exit_edges): Same.
11396 (single_likely_exit): Same.
11397 * cfgloopmanip.c (fix_bb_placement): Same.
11398 (fix_bb_placements): Same.
11399 (remove_path): Same.
11400 (place_new_loop): Same.
11402 (scale_loop_frequencies): Same.
11403 (scale_loop_profile): Same.
11404 (create_empty_if_region_on_edge): Same.
11405 (create_empty_loop_on_edge): Same.
11408 (fix_loop_placements): Same.
11409 (copy_loop_info): Same.
11410 (duplicate_loop): Same.
11411 (duplicate_subloops): Same.
11412 (loop_redirect_edge): Same.
11413 (can_duplicate_loop_p): Same.
11414 (duplicate_loop_to_header_edge): Same.
11415 (mfb_keep_just): Same.
11416 (has_preds_from_loop): Same.
11417 (create_preheader): Same.
11418 (create_preheaders): Same.
11419 (lv_adjust_loop_entry_edge): Same.
11420 (loop_version): Same.
11421 * cfgloopmanip.h: Same.
11423 * cgraphbuild.c: Same.
11424 * combine.c (make_extraction): Same.
11425 * config/i386/i386-features.c: Same.
11426 * config/i386/i386-features.h: Same.
11427 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11428 (ix86_emit_outlined_ms2sysv_restore): Same.
11429 (ix86_noce_conversion_profitable_p): Same.
11430 (ix86_init_cost): Same.
11431 (ix86_simd_clone_usable): Same.
11432 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11434 * coretypes.h: Same.
11435 * data-streamer-in.c (string_for_index): Change class-key of PODs
11436 to struct and others to class.
11437 (streamer_read_indexed_string): Same.
11438 (streamer_read_string): Same.
11439 (bp_unpack_indexed_string): Same.
11440 (bp_unpack_string): Same.
11441 (streamer_read_uhwi): Same.
11442 (streamer_read_hwi): Same.
11443 (streamer_read_gcov_count): Same.
11444 (streamer_read_wide_int): Same.
11445 * data-streamer.h (streamer_write_bitpack): Same.
11446 (bp_unpack_value): Same.
11447 (streamer_write_char_stream): Same.
11448 (streamer_write_hwi_in_range): Same.
11449 (streamer_write_record_start): Same.
11450 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11451 (add_cross_iteration_register_deps): Same.
11452 (build_intra_loop_deps): Same.
11453 * df-core.c (df_analyze): Same.
11454 (loop_post_order_compute): Same.
11455 (loop_inverted_post_order_compute): Same.
11456 * df-problems.c (df_rd_alloc): Same.
11457 (df_rd_simulate_one_insn): Same.
11458 (df_rd_local_compute): Same.
11459 (df_rd_init_solution): Same.
11460 (df_rd_confluence_n): Same.
11461 (df_rd_transfer_function): Same.
11462 (df_rd_free): Same.
11463 (df_rd_dump_defs_set): Same.
11464 (df_rd_top_dump): Same.
11465 (df_lr_alloc): Same.
11466 (df_lr_reset): Same.
11467 (df_lr_local_compute): Same.
11468 (df_lr_init): Same.
11469 (df_lr_confluence_n): Same.
11470 (df_lr_free): Same.
11471 (df_lr_top_dump): Same.
11472 (df_lr_verify_transfer_functions): Same.
11473 (df_live_alloc): Same.
11474 (df_live_reset): Same.
11475 (df_live_init): Same.
11476 (df_live_confluence_n): Same.
11477 (df_live_finalize): Same.
11478 (df_live_free): Same.
11479 (df_live_top_dump): Same.
11480 (df_live_verify_transfer_functions): Same.
11481 (df_mir_alloc): Same.
11482 (df_mir_reset): Same.
11483 (df_mir_init): Same.
11484 (df_mir_confluence_n): Same.
11485 (df_mir_free): Same.
11486 (df_mir_top_dump): Same.
11487 (df_word_lr_alloc): Same.
11488 (df_word_lr_reset): Same.
11489 (df_word_lr_init): Same.
11490 (df_word_lr_confluence_n): Same.
11491 (df_word_lr_free): Same.
11492 (df_word_lr_top_dump): Same.
11493 (df_md_alloc): Same.
11494 (df_md_simulate_one_insn): Same.
11495 (df_md_reset): Same.
11496 (df_md_init): Same.
11497 (df_md_free): Same.
11498 (df_md_top_dump): Same.
11499 * df-scan.c (df_insn_delete): Same.
11500 (df_insn_rescan): Same.
11501 (df_notes_rescan): Same.
11502 (df_sort_and_compress_mws): Same.
11503 (df_install_mws): Same.
11504 (df_refs_add_to_chains): Same.
11505 (df_ref_create_structure): Same.
11506 (df_ref_record): Same.
11507 (df_def_record_1): Same.
11508 (df_find_hard_reg_defs): Same.
11509 (df_uses_record): Same.
11510 (df_get_conditional_uses): Same.
11511 (df_get_call_refs): Same.
11512 (df_recompute_luids): Same.
11513 (df_get_entry_block_def_set): Same.
11514 (df_entry_block_defs_collect): Same.
11515 (df_get_exit_block_use_set): Same.
11516 (df_exit_block_uses_collect): Same.
11517 (df_mws_verify): Same.
11518 (df_bb_verify): Same.
11519 * df.h (df_scan_get_bb_info): Same.
11520 * doc/tm.texi: Same.
11521 * dse.c (record_store): Same.
11522 * dumpfile.h: Same.
11523 * emit-rtl.c (const_fixed_hasher::equal): Same.
11524 (set_mem_attributes_minus_bitpos): Same.
11525 (change_address): Same.
11526 (adjust_address_1): Same.
11527 (offset_address): Same.
11528 * emit-rtl.h: Same.
11529 * except.c (dw2_build_landing_pads): Same.
11530 (sjlj_emit_dispatch_table): Same.
11531 * explow.c (allocate_dynamic_stack_space): Same.
11532 (emit_stack_probe): Same.
11533 (probe_stack_range): Same.
11534 * expmed.c (store_bit_field_using_insv): Same.
11535 (store_bit_field_1): Same.
11536 (store_integral_bit_field): Same.
11537 (extract_bit_field_using_extv): Same.
11538 (extract_bit_field_1): Same.
11539 (emit_cstore): Same.
11540 * expr.c (emit_block_move_via_cpymem): Same.
11541 (expand_cmpstrn_or_cmpmem): Same.
11542 (set_storage_via_setmem): Same.
11543 (emit_single_push_insn_1): Same.
11544 (expand_assignment): Same.
11545 (store_constructor): Same.
11546 (expand_expr_real_2): Same.
11547 (expand_expr_real_1): Same.
11548 (try_casesi): Same.
11550 * function.c (try_fit_stack_local): Same.
11551 (assign_stack_local_1): Same.
11552 (assign_stack_local): Same.
11553 (cut_slot_from_list): Same.
11554 (insert_slot_to_list): Same.
11555 (max_slot_level): Same.
11556 (move_slot_to_level): Same.
11557 (temp_address_hasher::equal): Same.
11558 (remove_unused_temp_slot_addresses): Same.
11559 (assign_temp): Same.
11560 (combine_temp_slots): Same.
11561 (update_temp_slot_address): Same.
11562 (preserve_temp_slots): Same.
11563 * function.h: Same.
11565 * gcc-rich-location.h: Same.
11567 * genattrtab.c (check_attr_test): Same.
11568 (check_attr_value): Same.
11569 (convert_set_attr_alternative): Same.
11570 (convert_set_attr): Same.
11571 (check_defs): Same.
11572 (copy_boolean): Same.
11573 (get_attr_value): Same.
11574 (expand_delays): Same.
11575 (make_length_attrs): Same.
11577 (make_alternative_compare): Same.
11578 (simplify_test_exp): Same.
11579 (tests_attr_p): Same.
11580 (get_attr_order): Same.
11581 (clear_struct_flag): Same.
11583 (compares_alternatives_p): Same.
11586 (find_attrs_to_cache): Same.
11587 (write_test_expr): Same.
11588 (walk_attr_value): Same.
11589 (write_attr_get): Same.
11590 (eliminate_known_true): Same.
11591 (write_insn_cases): Same.
11592 (write_attr_case): Same.
11593 (write_attr_valueq): Same.
11594 (write_attr_value): Same.
11595 (write_dummy_eligible_delay): Same.
11596 (next_comma_elt): Same.
11598 (make_internal_attr): Same.
11599 (copy_rtx_unchanging): Same.
11600 (gen_insn_reserv): Same.
11601 (check_tune_attr): Same.
11602 (make_automaton_attrs): Same.
11603 (handle_arg): Same.
11604 * genextract.c (gen_insn): Same.
11605 (VEC_char_to_string): Same.
11606 * genmatch.c (print_operand): Same.
11608 (parser::parse_operation): Same.
11609 (parser::parse_capture): Same.
11610 (parser::parse_c_expr): Same.
11611 (parser::parse_simplify): Same.
11613 * genoutput.c (output_operand_data): Same.
11614 (output_get_insn_name): Same.
11615 (compare_operands): Same.
11616 (place_operands): Same.
11617 (process_template): Same.
11618 (validate_insn_alternatives): Same.
11619 (validate_insn_operands): Same.
11620 (gen_expand): Same.
11621 (note_constraint): Same.
11622 * genpreds.c (write_one_predicate_function): Same.
11623 (add_constraint): Same.
11624 (process_define_register_constraint): Same.
11625 (write_lookup_constraint_1): Same.
11626 (write_lookup_constraint_array): Same.
11627 (write_insn_constraint_len): Same.
11628 (write_reg_class_for_constraint_1): Same.
11629 (write_constraint_satisfied_p_array): Same.
11630 * genrecog.c (optimize_subroutine_group): Same.
11631 * gensupport.c (process_define_predicate): Same.
11632 (queue_pattern): Same.
11633 (remove_from_queue): Same.
11634 (process_rtx): Same.
11635 (is_predicable): Same.
11636 (change_subst_attribute): Same.
11637 (subst_pattern_match): Same.
11638 (alter_constraints): Same.
11639 (alter_attrs_for_insn): Same.
11640 (shift_output_template): Same.
11641 (alter_output_for_subst_insn): Same.
11642 (process_one_cond_exec): Same.
11644 (process_define_cond_exec): Same.
11645 (mnemonic_htab_callback): Same.
11646 (gen_mnemonic_attr): Same.
11647 (read_md_rtx): Same.
11648 * ggc-page.c: Same.
11649 * gimple-loop-interchange.cc (dump_reduction): Same.
11650 (dump_induction): Same.
11651 (loop_cand::~loop_cand): Same.
11652 (free_data_refs_with_aux): Same.
11653 (tree_loop_interchange::interchange_loops): Same.
11654 (tree_loop_interchange::map_inductions_to_loop): Same.
11655 (tree_loop_interchange::move_code_to_inner_loop): Same.
11656 (compute_access_stride): Same.
11657 (compute_access_strides): Same.
11658 (proper_loop_form_for_interchange): Same.
11659 (tree_loop_interchange_compute_ddrs): Same.
11660 (prune_datarefs_not_in_loop): Same.
11661 (prepare_data_references): Same.
11662 (pass_linterchange::execute): Same.
11663 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11664 (unroll_jam_possible_p): Same.
11665 (fuse_loops): Same.
11666 (adjust_unroll_factor): Same.
11667 (tree_loop_unroll_and_jam): Same.
11668 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11669 (loop_versioning::expensive_stmt_p): Same.
11670 (loop_versioning::version_for_unity): Same.
11671 (loop_versioning::dump_inner_likelihood): Same.
11672 (loop_versioning::find_per_loop_multiplication): Same.
11673 (loop_versioning::analyze_term_using_scevs): Same.
11674 (loop_versioning::record_address_fragment): Same.
11675 (loop_versioning::analyze_expr): Same.
11676 (loop_versioning::analyze_blocks): Same.
11677 (loop_versioning::prune_conditions): Same.
11678 (loop_versioning::merge_loop_info): Same.
11679 (loop_versioning::add_loop_to_queue): Same.
11680 (loop_versioning::decide_whether_loop_is_versionable): Same.
11681 (loop_versioning::make_versioning_decisions): Same.
11682 (loop_versioning::implement_versioning_decisions): Same.
11683 * gimple-ssa-evrp-analyze.c
11684 (evrp_range_analyzer::record_ranges_from_phis): Same.
11685 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11686 (count_multiple_uses): Same.
11687 (split_group): Same.
11688 (imm_store_chain_info::output_merged_store): Same.
11689 (pass_store_merging::process_store): Same.
11690 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11691 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11693 (alloca_call_type): Same.
11694 (pass_walloca::execute): Same.
11695 * gimple-streamer-in.c (input_phi): Same.
11696 (input_gimple_stmt): Same.
11697 * gimple-streamer.h: Same.
11698 * godump.c (go_force_record_alignment): Same.
11699 (go_format_type): Same.
11700 (go_output_type): Same.
11701 (go_output_fndecl): Same.
11702 (go_output_typedef): Same.
11703 (keyword_hash_init): Same.
11704 (find_dummy_types): Same.
11705 * graph.c (draw_cfg_nodes_no_loops): Same.
11706 (draw_cfg_nodes_for_loop): Same.
11707 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11708 * hsa-brig.c: Same.
11709 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11710 * hsa-dump.c (dump_hsa_cfun): Same.
11711 * hsa-gen.c (gen_function_def_parameters): Same.
11712 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11713 * input.c (dump_line_table_statistics): Same.
11714 (test_lexer): Same.
11716 * internal-fn.c (get_multi_vector_move): Same.
11717 (expand_load_lanes_optab_fn): Same.
11718 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11719 (expand_GOMP_SIMT_EXIT): Same.
11720 (expand_GOMP_SIMT_LAST_LANE): Same.
11721 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11722 (expand_GOMP_SIMT_VOTE_ANY): Same.
11723 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11724 (expand_GOMP_SIMT_XCHG_IDX): Same.
11725 (expand_addsub_overflow): Same.
11726 (expand_neg_overflow): Same.
11727 (expand_mul_overflow): Same.
11728 (expand_call_mem_ref): Same.
11729 (expand_mask_load_optab_fn): Same.
11730 (expand_scatter_store_optab_fn): Same.
11731 (expand_gather_load_optab_fn): Same.
11732 * ipa-cp.c (ipa_get_parm_lattices): Same.
11733 (print_all_lattices): Same.
11734 (ignore_edge_p): Same.
11735 (build_toporder_info): Same.
11736 (free_toporder_info): Same.
11737 (push_node_to_stack): Same.
11738 (ipcp_lattice<valtype>::set_contains_variable): Same.
11739 (set_agg_lats_to_bottom): Same.
11740 (ipcp_bits_lattice::meet_with): Same.
11741 (set_single_call_flag): Same.
11742 (initialize_node_lattices): Same.
11743 (ipa_get_jf_ancestor_result): Same.
11744 (ipcp_verify_propagated_values): Same.
11745 (propagate_scalar_across_jump_function): Same.
11746 (propagate_context_across_jump_function): Same.
11747 (propagate_bits_across_jump_function): Same.
11748 (ipa_vr_operation_and_type_effects): Same.
11749 (propagate_vr_across_jump_function): Same.
11750 (set_check_aggs_by_ref): Same.
11751 (set_chain_of_aglats_contains_variable): Same.
11752 (merge_aggregate_lattices): Same.
11753 (agg_pass_through_permissible_p): Same.
11754 (propagate_aggs_across_jump_function): Same.
11755 (call_passes_through_thunk_p): Same.
11756 (propagate_constants_across_call): Same.
11757 (devirtualization_time_bonus): Same.
11758 (good_cloning_opportunity_p): Same.
11759 (context_independent_aggregate_values): Same.
11760 (gather_context_independent_values): Same.
11761 (perform_estimation_of_a_value): Same.
11762 (estimate_local_effects): Same.
11763 (value_topo_info<valtype>::add_val): Same.
11764 (add_all_node_vals_to_toposort): Same.
11765 (value_topo_info<valtype>::propagate_effects): Same.
11766 (ipcp_propagate_stage): Same.
11767 (ipcp_discover_new_direct_edges): Same.
11768 (same_node_or_its_all_contexts_clone_p): Same.
11769 (cgraph_edge_brings_value_p): Same.
11770 (gather_edges_for_value): Same.
11771 (create_specialized_node): Same.
11772 (find_more_scalar_values_for_callers_subset): Same.
11773 (find_more_contexts_for_caller_subset): Same.
11774 (copy_plats_to_inter): Same.
11775 (intersect_aggregates_with_edge): Same.
11776 (find_aggregate_values_for_callers_subset): Same.
11777 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11778 (decide_about_value): Same.
11779 (decide_whether_version_node): Same.
11780 (spread_undeadness): Same.
11781 (identify_dead_nodes): Same.
11782 (ipcp_store_vr_results): Same.
11783 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11784 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11785 (redirect_to_unreachable): Same.
11786 (edge_set_predicate): Same.
11787 (evaluate_conditions_for_known_args): Same.
11788 (evaluate_properties_for_edge): Same.
11789 (ipa_fn_summary_t::duplicate): Same.
11790 (ipa_call_summary_t::duplicate): Same.
11791 (dump_ipa_call_summary): Same.
11792 (ipa_dump_fn_summary): Same.
11793 (eliminated_by_inlining_prob): Same.
11794 (set_cond_stmt_execution_predicate): Same.
11795 (set_switch_stmt_execution_predicate): Same.
11796 (compute_bb_predicates): Same.
11797 (will_be_nonconstant_expr_predicate): Same.
11798 (phi_result_unknown_predicate): Same.
11799 (analyze_function_body): Same.
11800 (compute_fn_summary): Same.
11801 (estimate_edge_devirt_benefit): Same.
11802 (estimate_edge_size_and_time): Same.
11803 (estimate_calls_size_and_time): Same.
11804 (estimate_node_size_and_time): Same.
11805 (remap_edge_change_prob): Same.
11806 (remap_edge_summaries): Same.
11807 (ipa_merge_fn_summary_after_inlining): Same.
11808 (ipa_fn_summary_generate): Same.
11809 (inline_read_section): Same.
11810 (ipa_fn_summary_read): Same.
11811 (ipa_fn_summary_write): Same.
11812 * ipa-fnsummary.h: Same.
11813 * ipa-hsa.c (ipa_hsa_read_section): Same.
11814 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11815 * ipa-icf.c (sem_function::param_used_p): Same.
11816 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11817 * ipa-inline.c (edge_badness): Same.
11818 (inline_small_functions): Same.
11819 * ipa-polymorphic-call.c
11820 (ipa_polymorphic_call_context::stream_out): Same.
11821 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11822 (predicate::remap_after_inlining): Same.
11823 (predicate::stream_out): Same.
11824 * ipa-predicate.h: Same.
11825 * ipa-profile.c (ipa_profile_read_summary): Same.
11826 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11827 (count_formal_params): Same.
11828 (ipa_dump_param): Same.
11829 (ipa_alloc_node_params): Same.
11830 (ipa_print_node_jump_functions_for_edge): Same.
11831 (ipa_print_node_jump_functions): Same.
11832 (ipa_load_from_parm_agg): Same.
11833 (get_ancestor_addr_info): Same.
11834 (ipa_compute_jump_functions_for_edge): Same.
11835 (ipa_analyze_virtual_call_uses): Same.
11836 (ipa_analyze_stmt_uses): Same.
11837 (ipa_analyze_params_uses_in_bb): Same.
11838 (update_jump_functions_after_inlining): Same.
11839 (try_decrement_rdesc_refcount): Same.
11840 (ipa_impossible_devirt_target): Same.
11841 (update_indirect_edges_after_inlining): Same.
11842 (combine_controlled_uses_counters): Same.
11843 (ipa_edge_args_sum_t::duplicate): Same.
11844 (ipa_write_jump_function): Same.
11845 (ipa_write_indirect_edge_info): Same.
11846 (ipa_write_node_info): Same.
11847 (ipa_read_edge_info): Same.
11848 (ipa_prop_read_section): Same.
11849 (read_replacements_section): Same.
11850 * ipa-prop.h (ipa_get_param_count): Same.
11851 (ipa_get_param): Same.
11852 (ipa_get_type): Same.
11853 (ipa_get_param_move_cost): Same.
11854 (ipa_set_param_used): Same.
11855 (ipa_get_controlled_uses): Same.
11856 (ipa_set_controlled_uses): Same.
11857 (ipa_get_cs_argument_count): Same.
11858 * ipa-pure-const.c (analyze_function): Same.
11859 (pure_const_read_summary): Same.
11861 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11862 * ipa-split.c (test_nonssa_use): Same.
11863 (dump_split_point): Same.
11864 (dominated_by_forbidden): Same.
11865 (split_part_set_ssa_name_p): Same.
11866 (find_split_points): Same.
11867 * ira-build.c (finish_loop_tree_nodes): Same.
11868 (low_pressure_loop_node_p): Same.
11869 * ira-color.c (ira_reuse_stack_slot): Same.
11871 * ira.c (setup_reg_equiv): Same.
11872 (print_insn_chain): Same.
11874 * loop-doloop.c (doloop_condition_get): Same.
11876 (record_reg_sets): Same.
11877 (doloop_optimize): Same.
11878 * loop-init.c (loop_optimizer_init): Same.
11879 (fix_loop_structure): Same.
11880 * loop-invariant.c (merge_identical_invariants): Same.
11881 (compute_always_reached): Same.
11882 (find_exits): Same.
11883 (may_assign_reg_p): Same.
11884 (find_invariants_bb): Same.
11885 (find_invariants_body): Same.
11886 (replace_uses): Same.
11887 (can_move_invariant_reg): Same.
11888 (free_inv_motion_data): Same.
11889 (move_single_loop_invariants): Same.
11890 (change_pressure): Same.
11891 (mark_ref_regs): Same.
11892 (calculate_loop_reg_pressure): Same.
11893 * loop-iv.c (biv_entry_hasher::equal): Same.
11894 (iv_extend_to_rtx_code): Same.
11895 (check_iv_ref_table_size): Same.
11896 (clear_iv_info): Same.
11897 (latch_dominating_def): Same.
11898 (iv_get_reaching_def): Same.
11899 (iv_constant): Same.
11905 (get_biv_step): Same.
11907 (analyzed_for_bivness_p): Same.
11908 (record_biv): Same.
11909 (iv_analyze_biv): Same.
11910 (iv_analyze_expr): Same.
11911 (iv_analyze_def): Same.
11912 (iv_analyze_op): Same.
11913 (iv_analyze): Same.
11914 (iv_analyze_result): Same.
11916 (eliminate_implied_conditions): Same.
11917 (simplify_using_initial_values): Same.
11918 (shorten_into_mode): Same.
11919 (canonicalize_iv_subregs): Same.
11920 (determine_max_iter): Same.
11921 (check_simple_exit): Same.
11922 (find_simple_exit): Same.
11923 (get_simple_loop_desc): Same.
11924 * loop-unroll.c (report_unroll): Same.
11925 (decide_unrolling): Same.
11926 (unroll_loops): Same.
11927 (loop_exit_at_end_p): Same.
11928 (decide_unroll_constant_iterations): Same.
11929 (unroll_loop_constant_iterations): Same.
11930 (compare_and_jump_seq): Same.
11931 (unroll_loop_runtime_iterations): Same.
11932 (decide_unroll_stupid): Same.
11933 (unroll_loop_stupid): Same.
11934 (referenced_in_one_insn_in_loop_p): Same.
11935 (reset_debug_uses_in_loop): Same.
11936 (analyze_iv_to_split_insn): Same.
11937 * lra-eliminations.c (lra_debug_elim_table): Same.
11938 (setup_can_eliminate): Same.
11940 (lra_get_elimination_hard_regno): Same.
11941 (lra_eliminate_regs_1): Same.
11942 (eliminate_regs_in_insn): Same.
11943 (update_reg_eliminate): Same.
11944 (init_elimination): Same.
11945 (lra_eliminate): Same.
11947 * lra-lives.c (initiate_live_solver): Same.
11948 * lra-remat.c (create_remat_bb_data): Same.
11949 * lra-spills.c (lra_spill): Same.
11950 * lra.c (lra_set_insn_recog_data): Same.
11951 (lra_set_used_insn_alternative_by_uid): Same.
11952 (init_reg_info): Same.
11953 (expand_reg_info): Same.
11954 * lto-cgraph.c (output_symtab): Same.
11955 (read_identifier): Same.
11956 (get_alias_symbol): Same.
11957 (input_node): Same.
11958 (input_varpool_node): Same.
11960 (input_edge): Same.
11961 (input_cgraph_1): Same.
11962 (input_refs): Same.
11963 (input_symtab): Same.
11964 (input_offload_tables): Same.
11965 (output_cgraph_opt_summary): Same.
11966 (input_edge_opt_summary): Same.
11967 (input_cgraph_opt_section): Same.
11968 * lto-section-in.c (lto_free_raw_section_data): Same.
11969 (lto_create_simple_input_block): Same.
11970 (lto_free_function_in_decl_state_for_node): Same.
11971 * lto-streamer-in.c (lto_tag_check_set): Same.
11972 (lto_location_cache::revert_location_cache): Same.
11973 (lto_location_cache::input_location): Same.
11974 (lto_input_location): Same.
11975 (stream_input_location_now): Same.
11976 (lto_input_tree_ref): Same.
11977 (lto_input_eh_catch_list): Same.
11978 (input_eh_region): Same.
11979 (lto_init_eh): Same.
11980 (make_new_block): Same.
11982 (fixup_call_stmt_edges): Same.
11983 (input_struct_function_base): Same.
11984 (input_function): Same.
11985 (lto_read_body_or_constructor): Same.
11986 (lto_read_tree_1): Same.
11987 (lto_read_tree): Same.
11988 (lto_input_scc): Same.
11989 (lto_input_tree_1): Same.
11990 (lto_input_toplevel_asms): Same.
11991 (lto_input_mode_table): Same.
11992 (lto_reader_init): Same.
11993 (lto_data_in_create): Same.
11994 * lto-streamer-out.c (output_cfg): Same.
11995 * lto-streamer.h: Same.
11996 * modulo-sched.c (duplicate_insns_of_cycles): Same.
11997 (generate_prolog_epilog): Same.
11998 (mark_loop_unsched): Same.
11999 (dump_insn_location): Same.
12000 (loop_canon_p): Same.
12001 (sms_schedule): Same.
12002 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12003 (expand_omp_for_generic): Same.
12004 (expand_omp_for_static_nochunk): Same.
12005 (expand_omp_for_static_chunk): Same.
12006 (expand_omp_simd): Same.
12007 (expand_omp_taskloop_for_inner): Same.
12008 (expand_oacc_for): Same.
12009 (expand_omp_atomic_pipeline): Same.
12010 (mark_loops_in_oacc_kernels_region): Same.
12011 * omp-offload.c (oacc_xform_loop): Same.
12012 * omp-simd-clone.c (simd_clone_adjust): Same.
12013 * optabs-query.c (get_traditional_extraction_insn): Same.
12014 * optabs.c (expand_vector_broadcast): Same.
12015 (expand_binop_directly): Same.
12016 (expand_twoval_unop): Same.
12017 (expand_twoval_binop): Same.
12018 (expand_unop_direct): Same.
12019 (emit_indirect_jump): Same.
12020 (emit_conditional_move): Same.
12021 (emit_conditional_neg_or_complement): Same.
12022 (emit_conditional_add): Same.
12023 (vector_compare_rtx): Same.
12024 (expand_vec_perm_1): Same.
12025 (expand_vec_perm_const): Same.
12026 (expand_vec_cond_expr): Same.
12027 (expand_vec_series_expr): Same.
12028 (maybe_emit_atomic_exchange): Same.
12029 (maybe_emit_sync_lock_test_and_set): Same.
12030 (expand_atomic_compare_and_swap): Same.
12031 (expand_atomic_load): Same.
12032 (expand_atomic_store): Same.
12033 (maybe_emit_op): Same.
12034 (valid_multiword_target_p): Same.
12035 (create_integer_operand): Same.
12036 (maybe_legitimize_operand_same_code): Same.
12037 (maybe_legitimize_operand): Same.
12038 (create_convert_operand_from_type): Same.
12039 (can_reuse_operands_p): Same.
12040 (maybe_legitimize_operands): Same.
12041 (maybe_gen_insn): Same.
12042 (maybe_expand_insn): Same.
12043 (maybe_expand_jump_insn): Same.
12044 (expand_insn): Same.
12045 * optabs.h (create_expand_operand): Same.
12046 (create_fixed_operand): Same.
12047 (create_output_operand): Same.
12048 (create_input_operand): Same.
12049 (create_convert_operand_to): Same.
12050 (create_convert_operand_from): Same.
12052 * poly-int.h: Same.
12053 * predict.c (optimize_insn_for_speed_p): Same.
12054 (optimize_loop_for_size_p): Same.
12055 (optimize_loop_for_speed_p): Same.
12056 (optimize_loop_nest_for_speed_p): Same.
12057 (get_base_value): Same.
12058 (predicted_by_loop_heuristics_p): Same.
12059 (predict_extra_loop_exits): Same.
12060 (predict_loops): Same.
12061 (predict_paths_for_bb): Same.
12062 (predict_paths_leading_to): Same.
12063 (propagate_freq): Same.
12064 (pass_profile::execute): Same.
12066 * profile-count.c (profile_count::differs_from_p): Same.
12067 (profile_probability::differs_lot_from_p): Same.
12068 * profile-count.h: Same.
12069 * profile.c (branch_prob): Same.
12070 * regrename.c (free_chain_data): Same.
12071 (mark_conflict): Same.
12072 (create_new_chain): Same.
12073 (merge_overlapping_regs): Same.
12074 (init_rename_info): Same.
12075 (merge_chains): Same.
12076 (regrename_analyze): Same.
12077 (regrename_do_replace): Same.
12078 (scan_rtx_reg): Same.
12079 (record_out_operands): Same.
12080 (build_def_use): Same.
12081 * regrename.h: Same.
12083 * reload1.c (init_reload): Same.
12084 (maybe_fix_stack_asms): Same.
12085 (copy_reloads): Same.
12086 (count_pseudo): Same.
12087 (count_spilled_pseudo): Same.
12089 (find_reload_regs): Same.
12090 (select_reload_regs): Same.
12091 (spill_hard_reg): Same.
12092 (fixup_eh_region_note): Same.
12093 (set_reload_reg): Same.
12094 (allocate_reload_reg): Same.
12095 (compute_reload_subreg_offset): Same.
12096 (reload_adjust_reg_for_icode): Same.
12097 (emit_input_reload_insns): Same.
12098 (emit_output_reload_insns): Same.
12099 (do_input_reload): Same.
12100 (inherit_piecemeal_p): Same.
12102 * sanopt.c (maybe_get_dominating_check): Same.
12103 (maybe_optimize_ubsan_ptr_ifn): Same.
12104 (can_remove_asan_check): Same.
12105 (maybe_optimize_asan_check_ifn): Same.
12106 (sanopt_optimize_walker): Same.
12107 * sched-deps.c (add_dependence_list): Same.
12108 (chain_to_prev_insn): Same.
12109 (add_insn_mem_dependence): Same.
12110 (create_insn_reg_set): Same.
12111 (maybe_extend_reg_info_p): Same.
12112 (sched_analyze_reg): Same.
12113 (sched_analyze_1): Same.
12114 (get_implicit_reg_pending_clobbers): Same.
12115 (chain_to_prev_insn_p): Same.
12116 (deps_analyze_insn): Same.
12117 (deps_start_bb): Same.
12118 (sched_free_deps): Same.
12120 (init_deps_reg_last): Same.
12122 * sched-ebb.c: Same.
12123 * sched-int.h: Same.
12124 * sched-rgn.c (add_branch_dependences): Same.
12125 (concat_insn_mem_list): Same.
12127 (sched_rgn_compute_dependencies): Same.
12128 * sel-sched-ir.c (reset_target_context): Same.
12129 (copy_deps_context): Same.
12130 (init_id_from_df): Same.
12131 (has_dependence_p): Same.
12132 (change_loops_latches): Same.
12133 (bb_top_order_comparator): Same.
12134 (make_region_from_loop_preheader): Same.
12135 (sel_init_pipelining): Same.
12136 (get_loop_nest_for_rgn): Same.
12137 (make_regions_from_the_rest): Same.
12138 (sel_is_loop_preheader_p): Same.
12139 * sel-sched-ir.h (inner_loop_header_p): Same.
12140 (get_all_loop_exits): Same.
12141 * selftest.h: Same.
12142 * sese.c (sese_build_liveouts): Same.
12143 (sese_insert_phis_for_liveouts): Same.
12144 * sese.h (defined_in_sese_p): Same.
12145 * sreal.c (sreal::stream_out): Same.
12147 * streamer-hooks.h: Same.
12148 * target-globals.c (save_target_globals): Same.
12149 * target-globals.h: Same.
12150 * target.def: Same.
12152 * targhooks.c (default_has_ifunc_p): Same.
12153 (default_empty_mask_is_expensive): Same.
12154 (default_init_cost): Same.
12155 * targhooks.h: Same.
12157 * tree-affine.c (aff_combination_mult): Same.
12158 (aff_combination_expand): Same.
12159 (aff_combination_constant_multiple_p): Same.
12160 * tree-affine.h: Same.
12161 * tree-cfg.c (build_gimple_cfg): Same.
12162 (replace_loop_annotate_in_block): Same.
12163 (replace_uses_by): Same.
12165 (dump_cfg_stats): Same.
12166 (gimple_duplicate_sese_region): Same.
12167 (gimple_duplicate_sese_tail): Same.
12168 (move_block_to_fn): Same.
12169 (replace_block_vars_by_duplicates): Same.
12170 (move_sese_region_to_fn): Same.
12171 (print_loops_bb): Same.
12172 (print_loop): Same.
12173 (print_loops): Same.
12175 (debug_loops): Same.
12176 * tree-cfg.h: Same.
12177 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12178 (chrec_fold_multiply_poly_poly): Same.
12179 (chrec_evaluate): Same.
12180 (chrec_component_in_loop_num): Same.
12181 (reset_evolution_in_loop): Same.
12182 (is_multivariate_chrec): Same.
12183 (chrec_contains_symbols): Same.
12184 (nb_vars_in_chrec): Same.
12185 (chrec_convert_1): Same.
12186 (chrec_convert_aggressive): Same.
12187 * tree-chrec.h: Same.
12188 * tree-core.h: Same.
12189 * tree-data-ref.c (dump_data_dependence_relation): Same.
12190 (canonicalize_base_object_address): Same.
12191 (data_ref_compare_tree): Same.
12192 (prune_runtime_alias_test_list): Same.
12193 (get_segment_min_max): Same.
12194 (create_intersect_range_checks): Same.
12195 (conflict_fn_no_dependence): Same.
12196 (object_address_invariant_in_loop_p): Same.
12197 (analyze_ziv_subscript): Same.
12198 (analyze_siv_subscript_cst_affine): Same.
12199 (analyze_miv_subscript): Same.
12200 (analyze_overlapping_iterations): Same.
12201 (build_classic_dist_vector_1): Same.
12202 (add_other_self_distances): Same.
12203 (same_access_functions): Same.
12204 (build_classic_dir_vector): Same.
12205 (subscript_dependence_tester_1): Same.
12206 (subscript_dependence_tester): Same.
12207 (access_functions_are_affine_or_constant_p): Same.
12208 (get_references_in_stmt): Same.
12209 (loop_nest_has_data_refs): Same.
12210 (graphite_find_data_references_in_stmt): Same.
12211 (find_data_references_in_bb): Same.
12212 (get_base_for_alignment): Same.
12213 (find_loop_nest_1): Same.
12214 (find_loop_nest): Same.
12215 * tree-data-ref.h (dr_alignment): Same.
12216 (ddr_dependence_level): Same.
12217 * tree-if-conv.c (fold_build_cond_expr): Same.
12218 (add_to_predicate_list): Same.
12219 (add_to_dst_predicate_list): Same.
12220 (phi_convertible_by_degenerating_args): Same.
12221 (idx_within_array_bound): Same.
12222 (all_preds_critical_p): Same.
12223 (pred_blocks_visited_p): Same.
12224 (predicate_bbs): Same.
12225 (build_region): Same.
12226 (if_convertible_loop_p_1): Same.
12227 (is_cond_scalar_reduction): Same.
12228 (predicate_scalar_phi): Same.
12229 (remove_conditions_and_labels): Same.
12230 (combine_blocks): Same.
12231 (version_loop_for_if_conversion): Same.
12232 (versionable_outer_loop_p): Same.
12233 (ifcvt_local_dce): Same.
12234 (tree_if_conversion): Same.
12235 (pass_if_conversion::gate): Same.
12236 * tree-if-conv.h: Same.
12237 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12238 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12240 (stmt_has_scalar_dependences_outside_loop): Same.
12241 (copy_loop_before): Same.
12242 (create_bb_after_loop): Same.
12243 (const_with_all_bytes_same): Same.
12244 (generate_memset_builtin): Same.
12245 (generate_memcpy_builtin): Same.
12246 (destroy_loop): Same.
12247 (build_rdg_partition_for_vertex): Same.
12248 (compute_access_range): Same.
12249 (data_ref_segment_size): Same.
12250 (latch_dominated_by_data_ref): Same.
12251 (compute_alias_check_pairs): Same.
12252 (fuse_memset_builtins): Same.
12253 (finalize_partitions): Same.
12254 (find_seed_stmts_for_distribution): Same.
12255 (prepare_perfect_loop_nest): Same.
12256 * tree-parloops.c (lambda_transform_legal_p): Same.
12257 (loop_parallel_p): Same.
12258 (reduc_stmt_res): Same.
12259 (add_field_for_name): Same.
12260 (create_call_for_reduction_1): Same.
12261 (replace_uses_in_bb_by): Same.
12262 (transform_to_exit_first_loop_alt): Same.
12263 (try_transform_to_exit_first_loop_alt): Same.
12264 (transform_to_exit_first_loop): Same.
12266 (gen_parallel_loop): Same.
12267 (gather_scalar_reductions): Same.
12268 (get_omp_data_i_param): Same.
12269 (try_create_reduction_list): Same.
12270 (oacc_entry_exit_single_gang): Same.
12271 (parallelize_loops): Same.
12272 * tree-pass.h: Same.
12273 * tree-predcom.c (determine_offset): Same.
12274 (last_always_executed_block): Same.
12275 (split_data_refs_to_components): Same.
12276 (suitable_component_p): Same.
12277 (valid_initializer_p): Same.
12278 (find_looparound_phi): Same.
12279 (insert_looparound_copy): Same.
12280 (add_looparound_copies): Same.
12281 (determine_roots_comp): Same.
12282 (predcom_tmp_var): Same.
12283 (initialize_root_vars): Same.
12284 (initialize_root_vars_store_elim_1): Same.
12285 (initialize_root_vars_store_elim_2): Same.
12286 (finalize_eliminated_stores): Same.
12287 (initialize_root_vars_lm): Same.
12288 (remove_stmt): Same.
12289 (determine_unroll_factor): Same.
12290 (execute_pred_commoning_cbck): Same.
12291 (base_names_in_chain_on): Same.
12292 (combine_chains): Same.
12293 (pcom_stmt_dominates_stmt_p): Same.
12294 (try_combine_chains): Same.
12295 (prepare_initializers_chain_store_elim): Same.
12296 (prepare_initializers_chain): Same.
12297 (prepare_initializers): Same.
12298 (prepare_finalizers_chain): Same.
12299 (prepare_finalizers): Same.
12300 (insert_init_seqs): Same.
12301 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12302 (compute_overall_effect_of_inner_loop): Same.
12303 (add_to_evolution_1): Same.
12304 (add_to_evolution): Same.
12305 (follow_ssa_edge_binary): Same.
12306 (follow_ssa_edge_expr): Same.
12307 (backedge_phi_arg_p): Same.
12308 (follow_ssa_edge_in_condition_phi_branch): Same.
12309 (follow_ssa_edge_in_condition_phi): Same.
12310 (follow_ssa_edge_inner_loop_phi): Same.
12311 (follow_ssa_edge): Same.
12312 (analyze_evolution_in_loop): Same.
12313 (analyze_initial_condition): Same.
12314 (interpret_loop_phi): Same.
12315 (interpret_condition_phi): Same.
12316 (interpret_rhs_expr): Same.
12317 (interpret_expr): Same.
12318 (interpret_gimple_assign): Same.
12319 (analyze_scalar_evolution_1): Same.
12320 (analyze_scalar_evolution): Same.
12321 (analyze_scalar_evolution_for_address_of): Same.
12322 (get_instantiated_value_entry): Same.
12323 (loop_closed_phi_def): Same.
12324 (instantiate_scev_name): Same.
12325 (instantiate_scev_poly): Same.
12326 (instantiate_scev_binary): Same.
12327 (instantiate_scev_convert): Same.
12328 (instantiate_scev_not): Same.
12329 (instantiate_scev_r): Same.
12330 (instantiate_scev): Same.
12331 (resolve_mixers): Same.
12332 (initialize_scalar_evolutions_analyzer): Same.
12333 (scev_reset_htab): Same.
12334 (scev_reset): Same.
12335 (derive_simple_iv_with_niters): Same.
12336 (simple_iv_with_niters): Same.
12337 (expression_expensive_p): Same.
12338 (final_value_replacement_loop): Same.
12339 * tree-scalar-evolution.h (block_before_loop): Same.
12340 * tree-ssa-address.h: Same.
12341 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12342 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12343 (record_edge_info): Same.
12344 * tree-ssa-live.c (var_map_base_fini): Same.
12345 (remove_unused_locals): Same.
12346 * tree-ssa-live.h: Same.
12347 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12348 (pass_ch_vect::execute): Same.
12349 (pass_ch::process_loop_p): Same.
12350 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12351 (movement_possibility): Same.
12352 (outermost_invariant_loop): Same.
12354 (determine_max_movement): Same.
12355 (invariantness_dom_walker::before_dom_children): Same.
12356 (move_computations): Same.
12357 (may_move_till): Same.
12358 (force_move_till_op): Same.
12359 (force_move_till): Same.
12360 (memref_free): Same.
12361 (record_mem_ref_loc): Same.
12362 (set_ref_stored_in_loop): Same.
12363 (mark_ref_stored): Same.
12364 (sort_bbs_in_loop_postorder_cmp): Same.
12365 (sort_locs_in_loop_postorder_cmp): Same.
12366 (analyze_memory_references): Same.
12367 (mem_refs_may_alias_p): Same.
12368 (find_ref_loc_in_loop_cmp): Same.
12369 (rewrite_mem_ref_loc::operator): Same.
12370 (first_mem_ref_loc_1::operator): Same.
12371 (sm_set_flag_if_changed::operator): Same.
12372 (execute_sm_if_changed_flag_set): Same.
12373 (execute_sm): Same.
12374 (hoist_memory_references): Same.
12375 (ref_always_accessed::operator): Same.
12376 (refs_independent_p): Same.
12377 (record_dep_loop): Same.
12378 (ref_indep_loop_p_1): Same.
12379 (ref_indep_loop_p): Same.
12380 (can_sm_ref_p): Same.
12381 (find_refs_for_sm): Same.
12382 (loop_suitable_for_sm): Same.
12383 (store_motion_loop): Same.
12384 (store_motion): Same.
12385 (fill_always_executed_in): Same.
12386 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12387 (estimated_unrolled_size): Same.
12388 (loop_edge_to_cancel): Same.
12389 (remove_exits_and_undefined_stmts): Same.
12390 (remove_redundant_iv_tests): Same.
12391 (unloop_loops): Same.
12392 (estimated_peeled_sequence_size): Same.
12393 (try_peel_loop): Same.
12394 (canonicalize_loop_induction_variables): Same.
12395 (canonicalize_induction_variables): Same.
12396 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12398 (stmt_after_inc_pos): Same.
12399 (contains_abnormal_ssa_name_p): Same.
12400 (niter_for_exit): Same.
12403 (find_givs_in_bb): Same.
12404 (find_induction_variables): Same.
12405 (find_interesting_uses_cond): Same.
12406 (outermost_invariant_loop_for_expr): Same.
12407 (idx_find_step): Same.
12408 (add_candidate_1): Same.
12409 (add_iv_candidate_derived_from_uses): Same.
12410 (alloc_use_cost_map): Same.
12411 (prepare_decl_rtl): Same.
12412 (generic_predict_doloop_p): Same.
12413 (computation_cost): Same.
12414 (determine_common_wider_type): Same.
12415 (get_computation_aff_1): Same.
12416 (get_use_type): Same.
12417 (determine_group_iv_cost_address): Same.
12419 (difference_cannot_overflow_p): Same.
12420 (may_eliminate_iv): Same.
12421 (determine_set_costs): Same.
12422 (cheaper_cost_pair): Same.
12423 (compare_cost_pair): Same.
12424 (iv_ca_cand_for_group): Same.
12425 (iv_ca_recount_cost): Same.
12426 (iv_ca_set_remove_invs): Same.
12427 (iv_ca_set_no_cp): Same.
12428 (iv_ca_set_add_invs): Same.
12429 (iv_ca_set_cp): Same.
12430 (iv_ca_add_group): Same.
12431 (iv_ca_cost): Same.
12432 (iv_ca_compare_deps): Same.
12433 (iv_ca_delta_reverse): Same.
12434 (iv_ca_delta_commit): Same.
12435 (iv_ca_cand_used_p): Same.
12436 (iv_ca_delta_free): Same.
12438 (iv_ca_free): Same.
12439 (iv_ca_dump): Same.
12440 (iv_ca_extend): Same.
12441 (iv_ca_narrow): Same.
12442 (iv_ca_prune): Same.
12443 (cheaper_cost_with_cand): Same.
12444 (iv_ca_replace): Same.
12445 (try_add_cand_for): Same.
12446 (get_initial_solution): Same.
12447 (try_improve_iv_set): Same.
12448 (find_optimal_iv_set_1): Same.
12449 (create_new_iv): Same.
12450 (rewrite_use_compare): Same.
12451 (remove_unused_ivs): Same.
12452 (determine_scaling_factor): Same.
12453 * tree-ssa-loop-ivopts.h: Same.
12454 * tree-ssa-loop-manip.c (create_iv): Same.
12455 (compute_live_loop_exits): Same.
12456 (add_exit_phi): Same.
12457 (add_exit_phis): Same.
12458 (find_uses_to_rename_use): Same.
12459 (find_uses_to_rename_def): Same.
12460 (find_uses_to_rename_in_loop): Same.
12461 (rewrite_into_loop_closed_ssa): Same.
12462 (check_loop_closed_ssa_bb): Same.
12463 (split_loop_exit_edge): Same.
12464 (ip_end_pos): Same.
12465 (ip_normal_pos): Same.
12466 (copy_phi_node_args): Same.
12467 (gimple_duplicate_loop_to_header_edge): Same.
12468 (can_unroll_loop_p): Same.
12469 (determine_exit_conditions): Same.
12470 (scale_dominated_blocks_in_loop): Same.
12471 (niter_for_unrolled_loop): Same.
12472 (tree_transform_and_unroll_loop): Same.
12473 (rewrite_all_phi_nodes_with_iv): Same.
12474 * tree-ssa-loop-manip.h: Same.
12475 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12476 (number_of_iterations_ne): Same.
12477 (assert_no_overflow_lt): Same.
12478 (assert_loop_rolls_lt): Same.
12479 (number_of_iterations_lt): Same.
12480 (adjust_cond_for_loop_until_wrap): Same.
12481 (tree_simplify_using_condition): Same.
12482 (simplify_using_initial_conditions): Same.
12483 (simplify_using_outer_evolutions): Same.
12484 (loop_only_exit_p): Same.
12485 (ssa_defined_by_minus_one_stmt_p): Same.
12486 (number_of_iterations_popcount): Same.
12487 (number_of_iterations_exit): Same.
12488 (find_loop_niter): Same.
12489 (finite_loop_p): Same.
12490 (chain_of_csts_start): Same.
12491 (get_val_for): Same.
12492 (loop_niter_by_eval): Same.
12493 (derive_constant_upper_bound_ops): Same.
12494 (do_warn_aggressive_loop_optimizations): Same.
12495 (record_estimate): Same.
12496 (get_cst_init_from_scev): Same.
12497 (record_nonwrapping_iv): Same.
12498 (idx_infer_loop_bounds): Same.
12499 (infer_loop_bounds_from_ref): Same.
12500 (infer_loop_bounds_from_array): Same.
12501 (infer_loop_bounds_from_pointer_arith): Same.
12502 (infer_loop_bounds_from_signedness): Same.
12503 (bound_index): Same.
12504 (discover_iteration_bound_by_body_walk): Same.
12505 (maybe_lower_iteration_bound): Same.
12506 (estimate_numbers_of_iterations): Same.
12507 (estimated_loop_iterations): Same.
12508 (estimated_loop_iterations_int): Same.
12509 (max_loop_iterations): Same.
12510 (max_loop_iterations_int): Same.
12511 (likely_max_loop_iterations): Same.
12512 (likely_max_loop_iterations_int): Same.
12513 (estimated_stmt_executions_int): Same.
12514 (max_stmt_executions): Same.
12515 (likely_max_stmt_executions): Same.
12516 (estimated_stmt_executions): Same.
12517 (stmt_dominates_stmt_p): Same.
12518 (nowrap_type_p): Same.
12519 (loop_exits_before_overflow): Same.
12520 (scev_var_range_cant_overflow): Same.
12521 (scev_probably_wraps_p): Same.
12522 (free_numbers_of_iterations_estimates): Same.
12523 * tree-ssa-loop-niter.h: Same.
12524 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12525 (idx_analyze_ref): Same.
12526 (analyze_ref): Same.
12527 (gather_memory_references_ref): Same.
12528 (mark_nontemporal_store): Same.
12529 (emit_mfence_after_loop): Same.
12530 (may_use_storent_in_loop_p): Same.
12531 (mark_nontemporal_stores): Same.
12532 (should_unroll_loop_p): Same.
12533 (volume_of_dist_vector): Same.
12534 (add_subscript_strides): Same.
12535 (self_reuse_distance): Same.
12536 (insn_to_prefetch_ratio_too_small_p): Same.
12537 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12538 (patch_loop_exit): Same.
12539 (find_or_create_guard_phi): Same.
12540 (easy_exit_values): Same.
12541 (connect_loop_phis): Same.
12542 (connect_loops): Same.
12543 (compute_new_first_bound): Same.
12544 (split_loop): Same.
12545 (tree_ssa_split_loops): Same.
12546 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12547 (is_maybe_undefined): Same.
12548 (tree_may_unswitch_on): Same.
12549 (simplify_using_entry_checks): Same.
12550 (tree_unswitch_single_loop): Same.
12551 (tree_unswitch_loop): Same.
12552 (tree_unswitch_outer_loop): Same.
12553 (empty_bb_without_guard_p): Same.
12554 (used_outside_loop_p): Same.
12555 (get_vop_from_header): Same.
12556 (hoist_guard): Same.
12557 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12558 (get_lsm_tmp_name): Same.
12559 * tree-ssa-loop.h: Same.
12560 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12561 (build_and_add_sum): Same.
12562 (no_side_effect_bb): Same.
12564 (linearize_expr): Same.
12565 (should_break_up_subtract): Same.
12566 (linearize_expr_tree): Same.
12567 * tree-ssa-scopedtables.c: Same.
12568 * tree-ssa-scopedtables.h: Same.
12569 * tree-ssa-structalias.c (condense_visit): Same.
12570 (label_visit): Same.
12571 (dump_pred_graph): Same.
12572 (perform_var_substitution): Same.
12573 (move_complex_constraints): Same.
12574 (remove_preds_and_fake_succs): Same.
12575 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12576 (determine_bb_domination_status): Same.
12577 (duplicate_thread_path): Same.
12578 (thread_through_all_blocks): Same.
12579 * tree-ssa-threadupdate.h: Same.
12580 * tree-streamer-in.c (streamer_read_string_cst): Same.
12581 (input_identifier): Same.
12582 (unpack_ts_type_common_value_fields): Same.
12583 (unpack_ts_block_value_fields): Same.
12584 (unpack_ts_translation_unit_decl_value_fields): Same.
12585 (unpack_ts_omp_clause_value_fields): Same.
12586 (streamer_read_tree_bitfields): Same.
12587 (streamer_alloc_tree): Same.
12588 (lto_input_ts_common_tree_pointers): Same.
12589 (lto_input_ts_vector_tree_pointers): Same.
12590 (lto_input_ts_poly_tree_pointers): Same.
12591 (lto_input_ts_complex_tree_pointers): Same.
12592 (lto_input_ts_decl_minimal_tree_pointers): Same.
12593 (lto_input_ts_decl_common_tree_pointers): Same.
12594 (lto_input_ts_decl_non_common_tree_pointers): Same.
12595 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12596 (lto_input_ts_field_decl_tree_pointers): Same.
12597 (lto_input_ts_function_decl_tree_pointers): Same.
12598 (lto_input_ts_type_common_tree_pointers): Same.
12599 (lto_input_ts_type_non_common_tree_pointers): Same.
12600 (lto_input_ts_list_tree_pointers): Same.
12601 (lto_input_ts_vec_tree_pointers): Same.
12602 (lto_input_ts_exp_tree_pointers): Same.
12603 (lto_input_ts_block_tree_pointers): Same.
12604 (lto_input_ts_binfo_tree_pointers): Same.
12605 (lto_input_ts_constructor_tree_pointers): Same.
12606 (lto_input_ts_omp_clause_tree_pointers): Same.
12607 (streamer_read_tree_body): Same.
12608 * tree-streamer.h: Same.
12609 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12610 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12611 (vect_analyze_possibly_independent_ddr): Same.
12612 (vect_analyze_data_ref_dependence): Same.
12613 (vect_compute_data_ref_alignment): Same.
12614 (vect_enhance_data_refs_alignment): Same.
12615 (vect_analyze_data_ref_access): Same.
12616 (vect_check_gather_scatter): Same.
12617 (vect_find_stmt_data_reference): Same.
12618 (vect_create_addr_base_for_vector_ref): Same.
12619 (vect_setup_realignment): Same.
12620 (vect_supportable_dr_alignment): Same.
12621 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12622 (adjust_phi_and_debug_stmts): Same.
12623 (vect_set_loop_mask): Same.
12624 (add_preheader_seq): Same.
12625 (vect_maybe_permute_loop_masks): Same.
12626 (vect_set_loop_masks_directly): Same.
12627 (vect_set_loop_condition_masked): Same.
12628 (vect_set_loop_condition_unmasked): Same.
12629 (slpeel_duplicate_current_defs_from_edges): Same.
12630 (slpeel_add_loop_guard): Same.
12631 (slpeel_can_duplicate_loop_p): Same.
12632 (create_lcssa_for_virtual_phi): Same.
12634 (vect_update_ivs_after_vectorizer): Same.
12635 (vect_gen_vector_loop_niters_mult_vf): Same.
12636 (slpeel_update_phi_nodes_for_loops): Same.
12637 (slpeel_update_phi_nodes_for_guard1): Same.
12638 (find_guard_arg): Same.
12639 (slpeel_update_phi_nodes_for_guard2): Same.
12640 (slpeel_update_phi_nodes_for_lcssa): Same.
12641 (vect_do_peeling): Same.
12642 (vect_create_cond_for_alias_checks): Same.
12643 (vect_loop_versioning): Same.
12644 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12645 (vect_inner_phi_in_double_reduction_p): Same.
12646 (vect_analyze_scalar_cycles_1): Same.
12647 (vect_fixup_scalar_cycles_with_patterns): Same.
12648 (vect_get_loop_niters): Same.
12649 (bb_in_loop_p): Same.
12650 (vect_get_max_nscalars_per_iter): Same.
12651 (vect_verify_full_masking): Same.
12652 (vect_compute_single_scalar_iteration_cost): Same.
12653 (vect_analyze_loop_form_1): Same.
12654 (vect_analyze_loop_form): Same.
12655 (vect_active_double_reduction_p): Same.
12656 (vect_analyze_loop_operations): Same.
12657 (neutral_op_for_slp_reduction): Same.
12658 (vect_is_simple_reduction): Same.
12659 (vect_model_reduction_cost): Same.
12660 (get_initial_def_for_reduction): Same.
12661 (get_initial_defs_for_reduction): Same.
12662 (vect_create_epilog_for_reduction): Same.
12663 (vectorize_fold_left_reduction): Same.
12664 (vectorizable_reduction): Same.
12665 (vectorizable_induction): Same.
12666 (vectorizable_live_operation): Same.
12667 (loop_niters_no_overflow): Same.
12668 (vect_get_loop_mask): Same.
12669 (vect_transform_loop_stmt): Same.
12670 (vect_transform_loop): Same.
12671 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12672 (vect_determine_precisions): Same.
12673 (vect_pattern_recog_1): Same.
12674 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12675 * tree-vect-stmts.c (stmt_vectype): Same.
12676 (process_use): Same.
12677 (vect_init_vector_1): Same.
12678 (vect_truncate_gather_scatter_offset): Same.
12679 (get_group_load_store_type): Same.
12680 (vect_build_gather_load_calls): Same.
12681 (vect_get_strided_load_store_ops): Same.
12682 (vectorizable_simd_clone_call): Same.
12683 (vectorizable_store): Same.
12684 (permute_vec_elements): Same.
12685 (vectorizable_load): Same.
12686 (vect_transform_stmt): Same.
12687 (supportable_widening_operation): Same.
12688 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12689 (vec_info::free_stmt_vec_info): Same.
12690 (vect_free_loop_info_assumptions): Same.
12691 (vect_loop_vectorized_call): Same.
12692 (set_uid_loop_bbs): Same.
12693 (vectorize_loops): Same.
12694 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12695 * tree.c (add_tree_to_fld_list): Same.
12696 (fld_type_variant_equal_p): Same.
12697 (fld_decl_context): Same.
12698 (fld_incomplete_type_of): Same.
12699 (free_lang_data_in_binfo): Same.
12700 (need_assembler_name_p): Same.
12701 (find_decls_types_r): Same.
12702 (get_eh_types_for_runtime): Same.
12703 (find_decls_types_in_eh_region): Same.
12704 (find_decls_types_in_node): Same.
12705 (assign_assembler_name_if_needed): Same.
12706 * value-prof.c (stream_out_histogram_value): Same.
12707 * value-prof.h: Same.
12708 * var-tracking.c (use_narrower_mode): Same.
12709 (prepare_call_arguments): Same.
12710 (vt_expand_loc_callback): Same.
12711 (resolve_expansions_pending_recursion): Same.
12712 (vt_expand_loc): Same.
12713 * varasm.c (const_hash_1): Same.
12714 (compare_constant): Same.
12715 (tree_output_constant_def): Same.
12716 (simplify_subtraction): Same.
12717 (get_pool_constant): Same.
12718 (output_constant_pool_2): Same.
12719 (output_constant_pool_1): Same.
12720 (mark_constants_in_pattern): Same.
12721 (mark_constant_pool): Same.
12722 (get_section_anchor): Same.
12723 * vr-values.c (compare_range_with_value): Same.
12724 (vr_values::extract_range_from_phi_node): Same.
12725 * vr-values.h: Same.
12726 * web.c (unionfind_union): Same.
12727 * wide-int.h: Same.
12729 2019-07-09 Martin Sebor <msebor@redhat.com>
12732 * align.h: Change class-key from class to struct and vice versa
12733 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12734 * alloc-pool.h: Same.
12735 * asan.c (shadow_mem_size): Same.
12736 * auto-profile.c: Same.
12737 * basic-block.h: Same.
12739 * cfgexpand.c (set_rtl): Same.
12740 (expand_one_stack_var_at): Same.
12741 * cfghooks.h: Same.
12744 * config/i386/i386.h: Same.
12745 * df-problems.c (df_print_bb_index): Same.
12747 * df.h (df_single_use): Same.
12748 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12749 (layout::annotation_line_showed_range_p): Same.
12750 (get_printed_columns): Same.
12751 (correction::ensure_terminated): Same.
12752 (line_corrections::~line_corrections): Same.
12755 * dump-context.h: Same.
12756 * dumpfile.h: Same.
12757 * dwarf2out.c: Same.
12758 * edit-context.c: Same.
12759 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12761 * function.c (assign_stack_local): Same.
12762 * function.h: Same.
12764 * gcov.c (block_info::block_info): Same.
12765 * genattrtab.c: Same.
12766 * genextract.c: Same.
12767 * genmatch.c (comparison_code_p): Same.
12768 (id_base::id_base): Same.
12769 (decision_tree::print): Same.
12770 * genoutput.c: Same.
12771 * genpreds.c (write_one_predicate_function): Same.
12772 * genrecog.c (validate_pattern): Same.
12773 (find_operand_positions): Same.
12774 (optimize_subroutine_group): Same.
12775 (merge_pattern_transition::merge_pattern_transition): Same.
12776 (merge_pattern_info::merge_pattern_info): Same.
12777 (merge_state_result::merge_state_result): Same.
12778 (merge_into_state): Same.
12779 * gensupport.c: Same.
12780 * gensupport.h: Same.
12781 * ggc-common.c (init_ggc_heuristics): Same.
12782 * ggc-tests.c (test_union): Same.
12783 * gimple-loop-interchange.cc (dump_induction): Same.
12784 * gimple-loop-versioning.cc: Same.
12785 * gimple-match.h (gimple_match_cond::any_else): Same.
12786 * gimple-ssa-backprop.c: Same.
12787 * gimple-ssa-sprintf.c: Same.
12788 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12790 (store_immediate_info::store_immediate_info): Same.
12791 (merged_store_group::apply_stores): Same.
12792 (get_location_for_stmts): Same.
12793 * gimple-ssa-strength-reduction.c: Same.
12794 * gimple-ssa-warn-alloca.c: Same.
12795 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12796 * godump.c (go_type_decl): Same.
12797 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12798 * hash-map.h: Same.
12799 * hash-set-tests.c (test_set_of_strings): Same.
12800 * hsa-brig.c: Same.
12801 * hsa-common.h: Same.
12802 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12803 * input.c (assert_loceq): Same.
12806 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12807 * ipa-fnsummary.h: Same.
12808 * ipa-inline.h: Same.
12809 * ipa-prop.h: Same.
12810 * ipa-split.c (visit_bb): Same.
12811 * ira-int.h (minmax_set_iter_next): Same.
12812 * loop-invariant.c: Same.
12814 * lra-eliminations.c: Same.
12816 * lra-lives.c (mark_regno_dead): Same.
12817 * lra-remat.c: Same.
12818 * lra-spills.c: Same.
12819 * lto-streamer.h: Same.
12820 * mem-stats.h: Same.
12821 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12822 * omp-low.c (omp_clause_aligned_alignment): Same.
12823 * optabs-query.h (get_vcond_eq_icode): Same.
12825 * opts.c (wrap_help): Same.
12826 * poly-int.h: Same.
12827 * predict.c (predict_paths_leading_to_edge): Same.
12828 * pretty-print.h: Same.
12829 * profile-count.h: Same.
12831 * read-rtl-function.c: Same.
12834 * regrename.c: Same.
12835 * regrename.h: Same.
12837 * rtl-iter.h: Same.
12838 * rtl.h (costs_add_n_insns): Same.
12840 * sched-int.h: Same.
12841 * sel-sched-ir.h: Same.
12842 * selftest.h: Same.
12843 * sese.h (vec_find): Same.
12845 * target-globals.h: Same.
12846 * tree-affine.c (aff_combination_find_elt): Same.
12847 * tree-affine.h: Same.
12848 * tree-data-ref.h: Same.
12849 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12850 * tree-predcom.c: Same.
12851 * tree-scalar-evolution.c (find_var_scev_info): Same.
12852 * tree-ssa-alias.h: Same.
12853 * tree-ssa-ccp.c: Same.
12854 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12855 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12856 (rewrite_mem_refs): Same.
12857 (execute_sm_if_changed): Same.
12858 (hoist_memory_references): Same.
12859 * tree-ssa-loop-ivopts.c (operator<=): Same.
12860 * tree-ssa-loop.h: Same.
12861 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12862 * tree-ssa-structalias.c: Same.
12863 * tree-switch-conversion.h (cluster::cluster): Same.
12864 (simple_cluster::simple_cluster): Same.
12865 * tree-vect-patterns.c (type_conversion_p): Same.
12866 * tree-vectorizer.c (dump_stmt_cost): Same.
12867 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12868 * tree.c (protected_set_expr_location): Same.
12869 * tree.h (desired_pro_or_demotion_p): Same.
12870 (fndecl_built_in_p): Same.
12871 * unique-ptr-tests.cc: Same.
12872 * var-tracking.c (delete_variable_part): Same.
12873 * varasm.c (assemble_real): Same.
12874 (tree_output_constant_def): Same.
12876 * wide-int-bitmask.h: Same.
12877 * wide-int.h (decompose): Same.
12879 2019-07-09 Richard Biener <rguenther@suse.de>
12881 PR tree-optimization/91114
12882 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12883 find a vector type isn't fatal.
12885 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12887 * config/aarch64/aarch64-simd.md
12888 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12889 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12890 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12891 (*aarch64_crypto_aese_fused,
12892 *aarch64_crypto_aesd_fused): Update to new definition.
12893 * config/aarch64/aarch64.c
12894 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12896 2019-07-09 Richard Biener <rguenther@suse.de>
12898 * gimple-match.h (gimple_match_op::resimplify): New.
12899 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12900 gimple_resimplify4, gimple_resimplify5): Remove.
12901 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12902 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12904 (gimple_match_op::resimplify): New.
12905 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12906 according to availability. Use gimple_match_op::resimplify.
12908 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12910 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12912 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12914 * config/arm/crypto.md:
12915 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12916 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12917 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12918 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12920 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12921 * config/arm/aarch-common-protos.h
12922 (aarch_crypto_can_dual_issue): Remove.
12923 * config/arm/aarch-common.c
12924 (aarch_crypto_can_dual_issue): Likewise.
12925 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12926 * config/arm/cortex-a53.md: Likewise.
12927 * config/arm/cortex-a57.md: Likewise.
12928 * config/arm/iterators.md:
12929 (CRYPTO_BINARY): Redefine.
12930 (CRYPTO_UNARY): Removed.
12931 (CRYPTO_AES, CRYPTO_AESMC): New.
12933 2019-07-09 Richard Biener <rguenther@suse.de>
12935 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12936 (vn_reference_lookup_3): If the main ref has no access path recorded
12937 but orig_ref has use it to do access-path based disambiguation.
12938 (vn_reference_lookup_pieces): Adjust.
12939 (vn_reference_lookup): Pass down original ref if we valueized.
12941 2019-07-09 Martin Liska <mliska@suse.cz>
12943 * doc/extend.texi: Document influence on loop
12946 2019-07-09 Martin Liska <mliska@suse.cz>
12948 * lto-compress.c (lto_normalized_zstd_level): Do not use
12949 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12950 of libzstd. One can use 0 as a default compression level.
12952 2019-07-09 Martin Liska <mliska@suse.cz>
12954 * doc/invoke.texi: Add link from -fprofile-dir option.
12955 Use better wording for 'gcno filename'.
12957 2019-07-08 Martin Sebor <msebor@redhat.com>
12959 PR middle-end/71924
12960 PR middle-end/90549
12961 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12963 (args_loc_t): New type.
12964 (args_loc_t, locmap_t): same.
12965 (diag_returned_locals): New function.
12966 (is_addr_local): Same.
12967 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12968 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12969 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12971 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12973 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12974 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12975 and casts in offset when different, both through gimple stmts
12976 and through trees. Rewritten using loops to minimize code duplication
12979 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12981 * emit-rtl.c (set_insn_locations): New function moved from...
12982 * function.c (set_insn_locations): ...here.
12983 * ira-emit.c (emit_moves): Propagate location of the first instruction
12984 to the inserted move instructions.
12985 * reg-stack.c (compensate_edge): Set the location if the sequence is
12986 inserted on the edge.
12987 * rtl.h (set_insn_locations): Declare.
12989 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12991 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12992 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12995 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12997 PR rtl-optimization/88233
12998 * common.opt (fsplit-wide-types-early): New option.
12999 * common/config/rs6000/rs6000-common.c
13000 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13002 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13003 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13004 flag_split_wide_types_early.
13005 (pass_data_lower_subreg3): New.
13006 (pass_lower_subreg3): New.
13007 (make_pass_lower_subreg3): New.
13008 * passes.def (pass_lower_subreg2): Move after the loop passes.
13009 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13010 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13011 the pass pipeline; its previous place is taken by ...
13012 (make_pass_lower_subreg3): ... this.
13014 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13016 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13017 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13019 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13021 * config/s390/constraints.md: Add new jsc constraint.
13022 * config/s390/predicates.md: New predicates.
13023 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13024 * config/s390/s390.c (s390_valid_shift_count): New function.
13025 (print_shift_count_operand): Use s390_valid_shift_count.
13026 (print_operand): Likewise.
13027 * config/s390/s390.md: Use new predicate.
13028 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13029 * config/s390/vector.md: Use new predicate.
13031 2019-07-08 Andrew Waterman <andrew@sifive.com>
13032 Jim Wilson <jimw@sifive.com>
13034 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13035 bitsize instead of BITS_PER_WORD.
13037 2019-07-08 Martin Liska <mliska@suse.cz>
13039 * collect2.c (defined): Revert to before r254460.
13040 (scan_prog_file): Revert to before r254460.
13042 2019-07-08 Richard Biener <rguenther@suse.de>
13044 PR tree-optimization/83518
13045 * tree-ssa-sccvn.c: Include splay-tree.h.
13046 (struct pd_range, struct pd_data): New.
13047 (struct vn_walk_cb_data): Add data to track partial definitions.
13048 (vn_walk_cb_data::~vn_walk_cb_data): New.
13049 (vn_walk_cb_data::push_partial_def): New.
13050 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13051 (vn_reference_lookup_2): When partial defs are registered give up.
13052 (vn_reference_lookup_3): Track partial defs for memset and
13053 constructor zeroing and for defs from constants.
13055 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13057 * doc/install.texi (bootstrap-Og): Document.
13059 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13061 * config/riscv/pic.md (*local_pic_load_s<mode>)
13062 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13063 referenced by <mode>, giving...
13064 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13065 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13066 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13067 use <X:MODE> for the mode attribute.
13069 2019-07-07 Jeff Law <law@redhat.com>
13071 PR tree-optimization/91090
13072 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13073 in handling of ranges to simplify switch statements.
13075 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13077 * config/darwin.c (darwin_override_options): Make a final check on PIC
13080 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13082 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13083 on for kernel code.
13085 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13088 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13089 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13090 instead of matching them to "l" output operands.
13092 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13094 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13095 and check whether addr.reg is nonnull before using it.
13097 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13099 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13100 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13101 variable(s). For conditional lastprivate look through outer
13102 GIMPLE_OMP_SCAN context.
13103 (lower_omp_1): For conditional lastprivate look through outer
13104 GIMPLE_OMP_SCAN context.
13106 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13107 member to combined_into_simd_safelen1.
13108 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13109 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13110 clauses if ctx->combined_into_simd_safelen1 put statements after the
13111 predicate conditionalized block rather than into it.
13113 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13115 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13117 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13118 Make the choice of <mode> explicit, giving...
13119 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13121 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13123 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13124 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13126 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13127 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13128 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13129 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13130 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13131 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13132 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13133 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13134 (*avx512f_scatterdi<mode>): Likewise.
13135 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13137 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13139 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13140 specify the mode iterator referenced by <mode>, giving...
13141 (*push1_h8300hs_<QHI:mode>): ...this.
13143 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13145 * config/gcn/gcn-valu.md
13146 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13147 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13148 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13149 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13150 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13151 but using the _exec comparison patterns.
13152 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13153 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13154 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13155 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13156 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13157 but using the _exec comparison patterns.
13159 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13161 * config/arm/sync.md
13162 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13163 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13164 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13165 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13166 <SIDI:cas_cmp_str>.
13168 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13170 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13171 (maybe_lookup_ctx): Add forward declaration.
13172 (omp_find_scan): Likewise. Walk into body of simd if composited
13173 with worksharing loop.
13174 (scan_omp_simd_scan): New function.
13175 (scan_omp_1_stmt): Call it.
13176 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13177 ctx->for_simd_scan_phase.
13178 (lower_rec_input_clauses): Do much less work for inscan reductions
13179 in ctx->for_simd_scan_phase is_simd regions.
13180 (lower_omp_scan): Set is_simd also on simd constructs composited
13181 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13182 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13183 emit their body after in simd constructs composited with worksharing
13185 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13187 * omp-low.c (omp_find_scan): Make static.
13188 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13189 the second loop, var2 represents the first partial sum and so needs
13190 to go before rprivb[ivar].
13192 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13194 * config/rs6000/rs6000-logue.c: Remove unused code.
13196 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13198 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13200 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13203 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13204 check with a frame laid out check.
13206 2019-07-05 Richard Biener <rguenther@suse.de>
13208 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13209 when comparing against a store with possibly the same value.
13211 2019-07-05 Richard Biener <rguenther@suse.de>
13213 PR tree-optimization/91091
13214 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13215 (walk_non_aliased_vuses): Likewise.
13216 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13217 (get_continuation_for_phi): New tbaa_p parameter and pass
13219 (walk_non_aliased_vuses): Likewise.
13220 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13221 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13222 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13224 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13225 (adjust_offsets_for_equal_base_address): New function.
13226 (vn_reference_lookup_3): Use it to catch more base equivalences.
13227 Handle and pass down tbaa_p flag.
13228 (vn_reference_lookup_pieces): Adjust.
13229 (vn_reference_lookup): Remove alias-set altering, instead pass
13230 down false as tbaa_p.
13232 2019-07-05 Richard Biener <rguenther@suse.de>
13234 PR tree-optimization/91091
13235 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13236 accesses can happen with -fno-strict-aliasing.
13238 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13240 * tree-ssa-alias.c (alias_stats): Add
13241 nonoverlapping_component_refs_since_match_p_must_overlap.
13242 (dump_alias_stats): Print it.
13243 (nonoverlapping_component_refs_since_match_p): Add early exit.
13244 (nonoverlapping_component_refs_p): Do not account early exit.
13246 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13248 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13249 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13250 (emit_eh_dispatch): Delete.
13251 (lower_catch): Emit the eh_dispatch manually and set the location of
13252 the first catch statement onto it.
13253 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13254 (lower_eh_dispatch): Propagate location.
13255 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13256 (eliminate_build): Likewise.
13258 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13260 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13261 phi nodes if possible.
13262 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13263 location info on the newly created statement.
13264 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13265 newly created increment if needed.
13267 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13269 PR middle-end/78884
13270 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13271 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13272 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13273 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13274 ctx->add_safelen1 is set.
13276 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13277 GOMP_loop_start at the start of second worksharing loop in a scan.
13278 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13279 worksharing loop in a scan even if there are conditional lastprivates,
13280 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13282 2019-07-04 Jan Hubicka <jh@suse.cz>
13284 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13285 Fix check for match in the ref walk.
13287 2019-07-04 Martin Liska <mliska@suse.cz>
13289 * tree-ssa-loop-niter.c
13290 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13291 (estimate_numbers_of_iterations):
13292 Support __builtin_expect_with_probability for analysis
13293 of # of loop iterations.
13295 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13297 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13298 * except.c: Likewise.
13299 * expr.c (expand_expr_real_1): Reject it.
13300 * gimplify.c (gimplify_expr): Gimplify it, within
13302 * tree-dump.c (dequeue_and_dump): Dump it.
13303 * tree-pretty-print.c (dump_generic_node): Likewise.
13304 * tree.c (block_may_fallthru): Handle it.
13305 * tree.def (EH_ELSE_EXPR): Introduce it.
13306 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13307 with GIMPLE_EH_ELSE as try/finally/else.
13309 2019-07-04 Richard Biener <rguenther@suse.de>
13312 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13313 parameter whether to disable GC collection.
13314 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13316 (execute_all_ipa_transforms): Likewise and pass it down.
13317 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13318 collection from applying IPA transforms.
13319 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13320 from applying IPA transforms.
13322 2019-07-04 Richard Biener <rguenther@suse.de>
13324 PR tree-optimization/90911
13325 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13326 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13327 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13328 scalar_loop_scaling.
13329 (vect_transform_loop): Scale scalar loop profile if needed.
13330 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13331 the loop copy from if-conversion adjust edge probabilities
13332 and scale the vectorized loop body profile, queue the scalar
13333 profile for updating after peeling.
13335 2019-07-04 Jan Hubicka <jh@suse.cz>
13337 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13338 parameters; return early for must-alias.
13339 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13340 outer types match, try nonoverlapping_component_refs
13341 if must-alias is not obvious.
13342 (indirect_refs_may_alias_p): Likewise.
13343 (refs_may_alias_p_2): Likewise.
13345 2019-07-04 Richard Biener <rguenther@suse.de>
13347 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13349 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13351 (struct vn_walk_cb_data): New callback data struct.
13352 (vn_reference_lookup_2): Adjust.
13353 (vn_reference_lookup_3): Likewise.
13354 (vn_reference_lookup_pieces): Likewise.
13355 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13356 (visit_reference_op_load): Adjust.
13358 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13360 PR tree-optimization/91063
13361 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13362 stmt from stmts sequence before calling vect_init_vector_1.
13365 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13368 * fwprop.c (reg_single_def_p): New function.
13369 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13370 (forward_propagate_into): New parameter reg_prop_only
13371 with default value false.
13372 Propagate def's src into loop only if SET_SRC and SET_DEST
13373 of def_set have single definitions.
13374 Likewise if reg_prop_only is set to true.
13375 (fwprop): New param fwprop_addr_p.
13376 Integrate fwprop_addr into fwprop.
13377 (fwprop_addr): Remove.
13378 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13380 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13381 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13382 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13384 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13386 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13387 in worksharing loop scans.
13389 PR tree-optimization/91074
13390 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13393 PR rtl-optimization/90756
13394 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13397 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13399 * config/aarch64/aarch64.md: Remove redundant constraints from
13400 define_expand but keep some patterns untouched if they are
13401 specially selected by TARGET_SECONDARY_RELOAD hook.
13402 * config/aarch64/aarch64-sve.md: Likewise.
13403 * config/aarch64/atomics.md: Remove redundant constraints from
13405 * config/aarch64/aarch64-simd.md: Likewise.
13407 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13409 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13410 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13411 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13413 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13416 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13418 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13419 (STARTFILE_SPEC): Split crt3 into a separate spec.
13420 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13421 (DARWIN_CRT2_SPEC): New.
13422 (DARWIN_CRT3_SPEC): New.
13423 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13424 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13425 (DARWIN_CRT3_SPEC): New.
13427 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13429 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13430 Change the RTL attribute "length" from "4" to "*" to allow the
13431 length attribute to be adjusted automatically for prefixed load,
13432 store, and add immediate instructions.
13433 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13435 (extendsi<mode>2, EXTSI iterator): Likewise.
13436 (movsi_internal1): Likewise.
13437 (movsi_from_sf): Likewise.
13438 (movdi_from_sf_zero_ext): Likewise.
13439 (mov<mode>_internal): Likewise.
13440 (movcc_internal1, QHI iterator): Likewise.
13441 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13442 (movsf_from_si): Likewise.
13443 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13444 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13445 (mov<mode>, FMOVE128 iterator): Likewise.
13446 (movdi_internal64): Likewise.
13447 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13449 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13450 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13451 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13452 (vsx_splat_v4sf): Likewise.
13454 2019-07-03 Mark Wielaard <mark@klomp.org>
13457 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13458 DW_AT_addr_base if there is actually a .debug_addr section with
13460 (output_addr_table): Add DWARF5 table header generation here after
13461 checking there are actually any addresses from...
13462 (dwarf2out_finish): ...here.
13464 2019-07-03 Richard Biener <rguenther@suse.de>
13466 PR middle-end/91069
13467 * match.pd (vec_perm -> bit_insert): Fix element read from
13470 2019-07-03 Martin Liska <mliska@suse.cz>
13472 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13473 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13475 * generic-match-head.c: Include dbgcnt.h.
13476 * gimple-match-head.c: Likewise.
13478 2019-07-03 Martin Liska <mliska@suse.cz>
13480 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13481 (GCOV_COUNTER_V_TOPN): New.
13482 (GCOV_COUNTER_V_INDIR): Use _topn.
13483 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13484 (GCOV_TOPN_VALUES): New.
13485 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13486 (GCOV_TOPN_VALUES_COUNTERS): New.
13487 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13489 (gimple_init_gcov_profiler): Rename variables from one_value
13491 (gimple_gen_one_value_profiler): Remove.
13492 (gimple_gen_topn_values_profiler): New function.
13493 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13494 names instead of SINGLE_VALUE.
13495 (stream_out_histogram_value): Likewise.
13496 (stream_in_histogram_value): Likewise.
13497 (get_most_common_single_value): Likewise.
13498 (gimple_divmod_fixed_value_transform): Likewise.
13499 (gimple_stringops_transform): Likewise.
13500 (gimple_divmod_values_to_profile): Likewise.
13501 (gimple_stringops_values_to_profile): Likewise.
13502 (gimple_find_values_to_profile): Likewise.
13503 * value-prof.h (enum hist_type): Rename to TOPN.
13504 (gimple_gen_one_value_profiler): Remove.
13505 (gimple_gen_topn_values_profiler): New.
13507 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13509 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13510 if it has the DW_AT_data_member_location attribute.
13512 2019-07-03 Richard Biener <rguenther@suse.de>
13514 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13517 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13519 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13520 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13521 (tlsdesc_small_sve_<mode>): Likewise.
13523 2019-07-03 Martin Liska <mliska@suse.cz>
13525 * Makefile.in: Define ZSTD_LIB.
13526 * common.opt: Adjust compression level
13527 to support also zstd levels.
13528 * config.in: Regenerate.
13529 * configure: Likewise.
13530 * configure.ac: Add --with-zstd and --with-zstd-include options
13532 * doc/install.texi: Mention zstd dependency.
13533 * gcc.c: Print supported LTO compression algorithms.
13534 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13535 (lto_compression_zstd): Likewise.
13536 (lto_uncompression_zstd): Likewise.
13537 (lto_end_compression): Dispatch in between zlib and zstd.
13538 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13539 (lto_uncompression_zlib): Make it static.
13540 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13541 * lto-section-in.c (lto_get_section_data): Pass info
13542 about used compression.
13543 * lto-streamer-out.c: By default use zstd when possible.
13544 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13545 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13547 2019-07-03 Martin Liska <mliska@suse.cz>
13549 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13550 * lto-section-out.c (lto_destroy_simple_output_block): Never
13551 compress LTO_section_lto section.
13552 * lto-streamer-out.c (produce_asm): Do not set major_version
13554 (lto_output_toplevel_asms): Likewise.
13555 (produce_lto_section): New function.
13556 (lto_output): Call produce_lto_section.
13557 (lto_write_mode_table): Do not set major_version and
13559 (produce_asm_for_decls): Likewise.
13560 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13562 (struct lto_header): Remove.
13563 (struct lto_section): New struct.
13564 (struct lto_simple_header): Do not inherit from lto_header.
13565 (struct lto_file_decl_data): Add lto_section_header field.
13567 2019-07-03 Martin Liska <mliska@suse.cz>
13569 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13571 * reg-stack.c (check_asm_stack_operands): Likewise.
13572 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13573 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13574 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13575 force_expand_binop.
13577 2019-07-03 Martin Liska <mliska@suse.cz>
13579 PR tree-optimization/90892
13580 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13581 in string constants.
13583 2019-07-03 Martin Liska <mliska@suse.cz>
13585 PR middle-end/90899
13586 * multiple_target.c (create_dispatcher_calls): Add to comdat
13587 group only if set for ifunc.
13589 2019-07-03 Martin Liska <mliska@suse.cz>
13592 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13593 Define local_object_name in outer scope in order to handle
13594 use-after-scope issue.
13596 2019-07-03 Martin Liska <mliska@suse.cz>
13598 * common.opt: Add fprofile-note.
13599 * coverage.c (coverage_init): Append the option
13601 * doc/invoke.texi: Document -fprofile-note.
13603 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13605 PR tree-optimization/91033
13606 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13607 vect_analyze_data_refs): Add bool * arguments.
13608 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13609 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13610 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13611 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13612 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13613 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13614 vect_analyze_data_refs caller.
13616 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13618 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13619 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13620 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13621 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13622 OMP_CLAUSE__SCANTEMP_ entry.
13623 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13624 * tree-pretty-print.c (dump_omp_clause): Likewise.
13625 * tree-nested.c (convert_nonlocal_omp_clauses,
13626 convert_local_omp_clauses): Likewise.
13627 * omp-general.h (struct omp_for_data): Add have_scantemp and
13628 have_nonctrl_scantemp members.
13629 * omp-general.c (omp_extract_for_data): Initialize them.
13630 * omp-low.c (struct omp_context): Add scan_exclusive member.
13631 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13632 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13633 ctx->scan_exclusive.
13634 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13635 of !ctx->scan_inclusive.
13636 (lower_rec_input_clauses): Simplify gimplification of dtors using
13637 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13638 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13639 loops. Don't add barrier for reduction_omp_orig_ref if
13640 ctx->scan_??xclusive.
13641 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13642 (lower_omp_scan): Use ctx->scan_exclusive instead
13643 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13644 reductions. Use new_vard != new_var instead of repeated
13645 omp_is_reference calls.
13646 (omp_find_scan, lower_omp_for_scan): New functions.
13647 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13649 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13650 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13651 and fd->have_scantemp.
13653 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13654 on worksharing loop propagate it as shared clause to containing
13657 * omp-expand.c (expand_omp_for_static_nochunk,
13658 expand_omp_for_static_chunk): For nowait worksharing loop with
13659 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13662 2019-07-02 qing zhao <qing.zhao@oracle.com>
13664 PR preprocessor/90581
13665 * doc/cppopts.texi: Add document for -fmax-include-depth.
13666 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13668 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13670 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13671 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13672 (mmx_packssdw): Ditto.
13673 (mmx_punpckhbw): Ditto.
13674 (mmx_punpcklbw): Ditto.
13675 (mmx_punpckhwd): Ditto.
13676 (mmx_punpcklwd): Ditto.
13677 (mmx_punpckhdq): Ditto.
13678 (mmx_punpckldq): Ditto.
13679 (*vec_dupv4hi): Ditto.
13680 (*vec_dupv2si): Ditto.
13681 (mmx_pmovmskb): Ditto.
13682 * config/i386/sse.md (sse_cvtpi2ps): Use
13683 TARGET_SSE2 && SSE_REG_P in split condition.
13684 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13685 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13686 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13687 (ssse3_pshufbv8qi3): Ditto.
13688 (ssse3_palignrdi): Ditto.
13690 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13692 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13693 with inlined save and restore.
13695 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13697 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13698 to be inserted on single successor edge of the entry block. Then call
13699 commit_edge_insertions instead of inserting the instructions manually.
13700 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13701 RTL expansion and rebuild jump labels chain.
13703 2019-07-02 Richard Biener <rguenther@suse.de>
13705 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13707 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13709 * tree.c (build_common_tree_nodes): Initialize them.
13710 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13711 Make declarations comments.
13712 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13713 chrec_known): Remove definitions.
13714 (initialize_scalar_evolutions_analyzer): Remove.
13715 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13716 * tree-streamer.c (preload_common_nodes): Do not preload
13717 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13719 2019-07-02 Jan Hubicka <jh@suse.cz>
13721 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13724 2019-07-02 Jan Hubicka <jh@suse.cz>
13726 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13728 (nonoverlapping_component_refs_since_match_p): ... this one;
13729 handle also non-decl bases; return -1 if search gave up.
13730 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13731 nonoverlapping_component_refs_of_decl_p_no_alias to
13732 nonoverlapping_component_refs_since_match_p_may_alias,
13733 nonoverlapping_component_refs_since_match_p_no_alias.
13734 (dump_alias_stats): Update dumping.
13735 (aliasing_matching_component_refs_p): Break out from ...;
13736 dispatch to nonoverlapping_component_refs_for_decl_p
13737 and nonoverlapping_component_refs_since_match_p.
13738 (aliasing_component_refs_p): ... here; call
13739 nonoverlapping_component_refs_p in scenarios where we can not
13740 precisely determine base match.
13741 (decl_refs_may_alias_p): Use
13742 nonoverlapping_component_refs_since_match_p.
13743 (indirect_ref_may_alias_decl_p): Do not call
13744 nonoverlapping_component_refs_p.
13745 (indirect_refs_may_alias_p): Likewise.
13747 2019-07-02 Jan Hubicka <jh@suse.cz>
13749 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13750 to clobber of return value.
13752 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13754 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13755 for is_neon_type instructions that have not already been categorized.
13757 2019-07-02 Richard Biener <rguenther@suse.de>
13759 PR tree-optimization/58483
13760 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13761 for MEM_REF base hashing.
13762 (equal_mem_array_ref_p): Likewise for base comparison.
13764 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13766 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13767 parameterized name.
13768 (signbit<mode>2): Use that name. Simplify.
13770 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13772 PR middle-end/66726
13773 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13774 Tune heuristic from PR71016 to allow MIN / MAX.
13776 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13778 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13779 parameterized name.
13780 (abs<mode>2): Use that name. Simplify.
13782 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13784 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13785 parameterized name.
13786 (neg<mode>2): Use that name. Simplify.
13788 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13790 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13792 (abs<mode>2): Use that name. Simplify.
13794 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13796 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13798 (neg<mode>2): Use that name. Simplify.
13800 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13802 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13803 ("enabled" attribute): Handle sse_noavx isa attribute.
13804 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13805 Use TARGET_SSE && SSE_REGNO_P in split condition.
13806 (*vec_dupv2sf): Ditto.
13808 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13810 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13812 (floatsi<mode>2): Use that name. Simplify.
13814 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13816 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13817 parameterized name.
13818 (extenddf<mode>2_vsx): Make this a parameterized name.
13819 (extenddf<mode>2): Use those names. Simplify.
13821 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13823 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13825 (eh_return): Use that name. Simplify.
13827 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13829 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13830 (doloop_end): Use that name. Simplify.
13832 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13834 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13835 parameterized name.
13836 (indirect_jump): Use that name. Simplify.
13838 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13840 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13841 parameterized name.
13842 (abs<mode>2): Use that name. Simplify.
13844 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13846 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13847 parameterized name.
13848 (fix_trunc<mode>si2): Use that name. Simplify.
13850 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13852 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13853 (allocate_stack): Use that name. Simplify.
13855 2019-07-01 Martin Sebor <msebor@redhat.com>
13857 PR middle-end/90923
13858 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13859 (hash_map::get_or_insert): Same. Reformat comment.
13860 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13861 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13862 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13863 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13864 (hash_table::hash_table (const hash_table&)): Use copy ctor
13865 instead of assignment to copy elements.
13867 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13868 John David Anglin <danglin@gcc.gnu.org>
13871 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13872 using saved frame pointer.
13874 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13876 PR middle-end/64242
13877 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13878 Add frame clobber and schedule blockage.
13880 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13882 * doc/invoke.texi (Link Options): Further editorial changes to
13883 -flinker-output docs.
13885 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13887 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13888 Load both operands of a PLUS into registers separately.
13890 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13892 * config/s390/vector.md: Fix shift count operand printing.
13894 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13896 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13898 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13900 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13901 Use recog_data to test for an output operand.
13903 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13905 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13906 exclude any others that are disparaged or that are bound to need
13908 (ira_get_dup_out_num): Expand comment.
13910 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13912 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13913 constraint string for each operand/alternative combo. Only handle
13914 '%' at the start of constraint strings, and look for it outside
13917 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13919 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13920 alternative_mask instead of HARD_REG_SET to represent a
13921 bitmask of alternatives.
13922 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13923 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13925 2019-07-01 Martin Liska <mliska@suse.cz>
13927 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13928 use () for a constructor call.
13929 (test_applying_fixits_line_out_of_range): Likewise.
13930 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13932 (free_page): Likewise.
13934 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13936 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13937 parameter names to match usage (no functional change).
13938 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13940 2019-07-01 Richard Biener <rguenther@suse.de>
13942 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13944 (pass_fre::execute): Honor it.
13945 * passes.def: Adjust pass_fre invocations to allow iterating,
13946 add non-iterating pass_fre before late threading/dom.
13948 2019-07-01 Richard Biener <rguenther@suse.de>
13950 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13951 TARGET_MEM_REF handling to also handle address-taken ones.
13953 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13955 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13956 hardware attributes): Document avx512vp2intersect.
13958 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13960 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13961 (abs<mode>2): New expander.
13962 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13963 Use CODE_FOR_ssse3_absv8qi2.
13964 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13965 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13967 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13969 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13970 to sse, sse_noavx and avx. Update all uses.
13972 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13974 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13975 (*mmx_<plusminus_insn><mode>3): Ditto.
13976 (*mmx_mulv4hi3"): Ditto.
13977 (*mmx_smulv4hi3_highpart): Ditto.
13978 (*mmx_umulv4hi3_highpart): Ditto.
13979 (*mmx_pmaddwd): Ditto.
13980 (*sse2_umulv1siv1di3): Ditto.
13981 (*mmx_<code>v4hi3): Ditto.
13982 (*mmx_<code>v8qi3): Ditto.
13983 (mmx_ashr<mode>3): Ditto.
13984 ("mmx_<shift_insn><mode>3): Ditto.
13985 (*mmx_eq<mode>3): Ditto.
13986 (mmx_gt<mode>3): Ditto.
13987 (mmx_andnot<mode>3): Ditto.
13988 (*mmx_<code><mode>3): Ditto.
13989 (*mmx_pinsrw): Ditto.
13990 (*mmx_pextrw): Ditto.
13991 (mmx_pshufw_1): Ditto.
13992 (*mmx_uavgv8qi3): Ditto.
13993 (*mmx_uavgv4hi3): Ditto.
13994 ("mmx_psadbw): Ditto.
13995 * config/i386/sse.md (sse_cvtps2pi): Ditto.
13996 (sse_cvttps2pi): Ditto.
13997 (ssse3_pmaddubsw): Ditto.
13998 (*ssse3_pmulhrswv4hi3): Ditto.
13999 (ssse3_psign<mode>3): Ditto.
14001 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14003 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14004 adjustment for bit-fields to all aggregate types.
14006 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14008 * config/rs6000/predicates.md (pcrel_address): Use
14009 SYMBOL_REF_LOCAL_P to determine if a label is local.
14010 (pcrel_external_address): New predicate.
14011 (non_prefixed_mem_operand): Delete, predicate not used.
14012 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14013 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14015 (SYMBOL_REF_PCREL_P): Likewise.
14018 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14020 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14021 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14022 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14024 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14026 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14027 override on extra_headers.
14029 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14031 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14032 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14034 (darwin_driver_init): Likewise.
14036 2019-06-28 Jan Beulich <jbeulich@suse.com>
14038 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14039 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14040 Eliminate redundant alternative.
14042 2019-06-28 Jan Beulich <jbeulich@suse.com>
14044 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14045 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14046 Use vector_operand.
14048 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14050 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14051 having a lower cost regardless of the speed option.
14053 2019-06-28 Jan Beulich <jbeulich@suse.com>
14055 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14056 vector_operand plus, on both alternatives, "Bm" constraint.
14058 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14060 * config/arm/arm.md: Remove redundant constraints from
14061 define_expand but leave reload_inm and reload_outm patterns
14062 untouched since they need special constraints to work.
14063 * config/arm/arm-fixed.md: Remove redundant constraints from
14065 * config/arm/iwmmxt.md: Likewise.
14066 * config/arm/neon.md: Likewise.
14067 * config/arm/sync.md: Likewise.
14068 * config/arm/thumb1.md: Likewise.
14069 * config/arm/vec-common.md: Likewise.
14071 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14073 * doc/install.texi: Document --disable-tm-clone-registry.
14075 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14078 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14081 PR tree-optimization/91010
14082 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14083 return true. Otherwise, don't call operand_equal_p if offset1 or
14084 offset2 is NULL and just return false.
14086 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14088 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14089 user-specified float mode choice for kernel mode code.
14091 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14093 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14096 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14098 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14099 use longcall for 64b code.
14101 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14103 * builtins.c (get_memory_rtx): Fix comment.
14104 * optabs.def (movmem_optab): Change to cpymem_optab.
14105 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14106 (emit_block_move_hints): Change movmem to cpymem.
14107 * defaults.h: Change movmem to cpymem.
14108 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14109 (default_use_by_pieces_infrastructure_p): Ditto.
14110 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14111 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14113 * config/aarch64/aarch64.h: Change movmem to cpymem.
14114 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14115 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14116 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14118 * config/arc/arc-protos.h: Change movmem to cpymem.
14119 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14120 * config/arc/arc.h: Change movmem to cpymem in comment.
14121 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14122 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14123 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14124 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14125 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14126 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14127 * config/avr/avr-protos.h: Change movmem to cpymem.
14128 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14129 avr_out_movmem): Change movmem to cpymem.
14130 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14131 Change movmem to cpymem.
14132 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14133 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14134 Change movmem to cpymem.
14135 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14136 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14137 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14138 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14139 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14140 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14141 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14142 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14143 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14144 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14145 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14146 expand_small_cpymem_or_setmem,
14147 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14148 expand_set_or_cpymem_constant_prologue,
14149 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14150 * config/i386/i386-protos.h: Change movmem to cpymem.
14151 * config/i386/i386.h: Change movmem to cpymem in comment.
14152 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14153 (setmem<mode>): Change expansion function name.
14154 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14155 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14156 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14157 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14158 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14159 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14160 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14162 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14163 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14164 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14165 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14166 Change movmem to cpymem.
14167 * config/mips/mips.h: Change movmem to cpymem.
14168 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14169 * config/nds32/nds32-memory-manipulation.c
14170 (nds32_expand_movmemsi_loop_unknown_size,
14171 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14172 nds32_expand_movmemsi_unroll,
14173 nds32_expand_movmemsi): Change movmem to cpymem.
14174 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14175 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14176 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14177 (pa_adjust_insn_length): Change call to compute_movmem_length.
14178 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14179 movmemdi, movmemdi_prereload,
14180 movmemdi_postreload): Change movmem to cpymem.
14181 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14182 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14183 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14184 * config/riscv/riscv.h: Change movmem to cpymem.
14185 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14186 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14187 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14189 * config/s390/s390-protos.h: Change movmem to cpymem.
14190 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14191 s390_expand_insv): Change movmem to cpymem.
14192 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14193 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14194 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14195 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14196 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14197 for nonexistent function.
14198 * config/vax/vax.h: Change movmem to cpymem in comment.
14199 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14200 * config/visium/visium.h: Change movmem to cpymem in comment.
14201 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14202 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14203 * doc/md.texi: Change movmem to cpymem and update description to match.
14204 * doc/rtl.texi: Change movmem to cpymem.
14205 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14206 * doc/tm.texi: Regenerate.
14208 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14210 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14211 -fvariable-expansion-in-unroller by default.
14212 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14215 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14218 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14219 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14221 * config.gcc(rs6000-*-*): Define target_gtfiles.
14223 2019-06-27 Jan Hubicka <jh@suse.cz>
14225 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14226 (add_type_duplicate): When odr hash is not allocated, to nothing.
14227 (odr_based_tbaa_p): New function.
14228 (set_type_canonical_for_odr_type): New function.
14229 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14230 set_type_canonical_for_odr_type): New.
14231 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14232 ODR based TBAA are not equivalent to non-ODR types.
14234 2019-06-27 Martin Liska <mliska@suse.cz>
14236 PR tree-optimization/90974
14237 PR rtl-optimization/90975
14238 PR rtl-optimization/90976
14240 PR tree-optimization/91017
14241 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14243 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14244 initial commit of IRA.
14245 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14247 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14248 Remove unused mode1.
14249 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14252 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14255 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14256 instead of register_operand for operands[1], add m to its constraints
14257 if operands[2] uses "C" constraint. Ensure in condition that if
14258 operands[2] is not 0, then operands[1] is not a MEM. For last two
14259 alternatives, use unaligned loads instead of aligned if operands[1] is
14260 misaligned_operand.
14262 2019-06-27 Martin Liska <mliska@suse.cz>
14264 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14266 * bt-load.c (move_btr_def): Likewise.
14267 * builtins.c (expand_builtin_apply_args_1): Likewise.
14268 (expand_builtin_apply): Likewise.
14269 * cfgexpand.c (expand_asm_stmt): Likewise.
14270 (construct_init_block): Likewise.
14271 * cfghooks.c (verify_flow_info): Likewise.
14272 * cfgloopmanip.c (remove_path): Likewise.
14273 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14274 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14275 * combine.c (simplify_if_then_else): Likewise.
14276 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14277 (choose_basereg): Likewise.
14278 (ix86_expand_prologue): Likewise.
14279 (ix86_preferred_output_reload_class): Likewise.
14280 * cselib.c (cselib_record_sets): Likewise.
14281 * df-scan.c (df_scan_alloc): Likewise.
14282 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14283 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14284 * emit-rtl.c (try_split): Likewise.
14285 * graphite-scop-detection.c (assign_parameter_index_in_region):
14287 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14288 * ira-color.c (setup_profitable_hard_regs): Likewise.
14289 * ira.c (rtx_moveable_p): Likewise.
14290 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14291 * read-rtl.c (read_subst_mapping): Likewise.
14292 * regrename.c (scan_rtx): Likewise.
14293 * reorg.c (fill_slots_from_thread): Likewise.
14294 * tree-inline.c (tree_function_versioning): Likewise.
14295 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14296 * tree-ssa-sink.c (statement_sink_location): Likewise.
14297 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14298 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14299 (vect_create_epilog_for_reduction): Likewise.
14300 * tree.c (build_nonstandard_integer_type): Likewise.
14302 2019-06-27 Richard Biener <rguenther@suse.de>
14304 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14306 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14308 PR tree-optimization/89772
14309 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14310 out-of-bound accesses checking.
14312 2019-06-27 Martin Liska <mliska@suse.cz>
14314 PR tree-optimization/91014
14315 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14316 when LHS is NULL_TREE.
14318 2019-06-27 Martin Liska <mliska@suse.cz>
14320 * symbol-summary.h (traverse): Pass
14321 argument a to the call of callback.
14322 (gt_ggc_mx): Mark arguments as unused.
14323 (gt_pch_nx): Likewise.
14325 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14328 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14331 2019-06-26 Jeff Law <law@redhat.com>
14333 PR tree-optimization/90883
14334 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14335 (delete_dead_or_redundant_assignment): Likewise.
14337 PR tree-optimization/90883
14338 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14339 * tree-ssa-dse.c: Update various comments to distinguish between
14340 dead and redundant stores.
14341 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14342 (dse_optimize_redundant_stores): New function.
14343 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14344 Distinguish between dead and redundant calls in dump output. All
14346 (delete_dead_or_redundant_assignment): Similarly for assignments.
14347 (dse_optimize_stmt): Handle _CHK variants. For statements which
14348 store 0 into multiple memory locations, try to prove a subsequent
14349 store is redundant.
14351 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14354 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14355 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14357 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14359 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14360 (branch_islands): New extern.
14361 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14362 * config/rs6000/rs6000.c: .. here.
14364 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14366 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14367 (powerpc*-*-*) ... to here.
14369 2019-06-26 Jeff Law <law@redhat.com>
14371 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14372 memcpy, memmove and memset builtins.
14373 (maybe_trim_memstar_call): Likewise.
14375 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14377 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14379 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14381 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14383 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14385 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14387 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14389 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14392 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14394 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14396 2019-06-26 Richard Biener <rguenther@suse.de>
14399 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14401 2019-06-26 Richard Biener <rguenther@suse.de>
14403 * lto-streamer.h (lto_bitmap_alloc): Remove.
14404 (lto_bitmap_free): Likewise.
14405 * lto-streamer.c (lto_bitmap_alloc): Remove.
14406 (lto_bitmap_free): Likewise.
14407 (lto_obstack): Likewise.
14408 (lto_obstack_initialized): Likewise.
14409 * lto-streamer-out.c (lto_output): Use own obstack for local
14410 bitmap, free it consistently.
14412 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14415 * config/i386/sse.md
14416 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14417 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14418 insns if operands[2] is misaligned_operand.
14420 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14422 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14424 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14427 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14429 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14431 2019-06-26 Martin Liska <mliska@suse.cz>
14433 PR tree-optimization/90973
14434 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14435 epilogue_cost_vec instead of prologue_cost_vec for
14438 2019-06-26 Martin Liska <mliska@suse.cz>
14440 * bb-reorder.c (connect_better_edge_p): Add missing else
14441 statement in the middle of if-else statements.
14443 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14444 H.J. Lu <hongjiu.lu@intel.com>
14445 Olga Makhotina <olga.makhotina@intel.com>
14447 * common/config/i386/i386-common.c
14448 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14449 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14450 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14451 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14452 (ix86_handle_option): Handle -mavx512vp2intersect.
14453 * config/i386/avx512vp2intersectintrin.h: New.
14454 * config/i386/avx512vp2intersectvlintrin.h: New.
14455 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14456 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14457 AVX512VP2INTERSECT.
14458 * config/i386/i386-builtin-types.def: Add new types.
14459 * config/i386/i386-builtin.def: Add new builtins.
14460 * config/i386/i386-builtins.c: (enum processor_features): Add
14461 F_AVX512VP2INTERSECT.
14462 (static const _isa_names_table isa_names_table): Ditto.
14463 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14464 __AVX512VP2INTERSECT__.
14465 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14466 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14467 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14468 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14469 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14470 * config/i386/i386-options.c (ix86_target_string): Add
14471 -mavx512vp2intersect.
14472 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14473 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14474 P2HImode and P2QImode.
14475 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14476 number for P2QImode and P2HImode.
14477 (ix86_regmode_natural_size): New function.
14478 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14479 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14480 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14481 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14482 * config/i386/i386.opt: Add -mavx512vp2intersect.
14483 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14484 avx512vp2intersectvlintrin.h.
14485 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14486 (define_mode_iterator VI48_AVX512VP2VL): New.
14487 (avx512vp2intersect_2intersect<mode>,
14488 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14489 * config.gcc: Add avx512vp2intersectvlintrin.h and
14490 avx512vp2intersectintrin.h to extra_headers.
14491 * doc/invoke.texi: Document -mavx512vp2intersect.
14493 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14495 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14497 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14499 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14500 savres_routine_syms, savres_routine_name, morestack_ref,
14501 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14502 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14503 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14504 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14505 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14506 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14507 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14508 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14509 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14510 get_stack_clash_protection_probe_interval,
14511 get_stack_clash_protection_guard_size,
14512 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14513 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14514 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14515 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14516 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14517 gen_frame_mem_offset, rs6000_savres_routine_name,
14518 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14519 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14520 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14521 rs6000_global_entry_point_prologue_needed_p,
14522 rs6000_get_separate_components, rs6000_components_for_bb,
14523 rs6000_disqualify_components, rs6000_emit_prologue_components,
14524 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14525 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14526 rs6000_output_savres_externs, rs6000_output_function_prologue,
14527 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14528 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14529 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14530 rs6000_output_function_epilogue, gen_add3_const,
14531 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14532 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14534 (machine_function): Moved to rs6000.h.
14535 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14537 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14538 savres_routine_syms, savres_routine_name, morestack_ref,
14539 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14540 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14541 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14542 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14543 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14544 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14545 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14546 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14547 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14548 get_stack_clash_protection_probe_interval,
14549 get_stack_clash_protection_guard_size,
14550 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14551 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14552 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14553 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14554 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14555 gen_frame_mem_offset, rs6000_savres_routine_name,
14556 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14557 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14558 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14559 rs6000_global_entry_point_prologue_needed_p,
14560 rs6000_get_separate_components, rs6000_components_for_bb,
14561 rs6000_disqualify_components, rs6000_emit_prologue_components,
14562 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14563 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14564 rs6000_output_savres_externs, rs6000_output_function_prologue,
14565 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14566 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14567 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14568 rs6000_output_function_epilogue, gen_add3_const,
14569 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14570 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14571 to here from rs6000.c.
14572 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14573 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14574 quad_address_offset_p) Moved to here from rs6000.c.
14575 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14576 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14579 2019-06-25 Martin Liska <mliska@suse.cz>
14581 * hash-table.c (hashtab_chk_error): Move here from ...
14582 * hash-table.h (hashtab_chk_error): ... here.
14584 2019-06-25 Martin Liska <mliska@suse.cz>
14586 PR tree-optimization/90978
14587 * df-scan.c (df_update_entry_block_defs): Remove dead else
14589 (df_update_exit_block_uses): Likewise.
14591 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14592 Andrew Stubbs <ams@codesourcery.com>
14594 * config.gcc (thread_file): Set to gcn for AMD GCN.
14595 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14596 (TARGET_EMUTLS_VAR_INIT): New hook.
14598 2019-06-25 Martin Jambor <mjambor@suse.cz>
14601 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14603 2019-06-25 Richard Biener <rguenther@suse.de>
14605 PR tree-optimization/90930
14606 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14607 into parallel form in the last pass instance.
14609 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14611 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14612 (arc_legitimize_pic_address): Simplify and cleanup the function.
14613 (SYMBOLIC_CONST): Remove.
14614 (prepare_pic_move): Likewise.
14615 (prepare_move_operands): Handle complex mov cases here.
14616 (arc_legitimize_address_0): Remove call to
14617 arc_legitimize_pic_address.
14618 (arc_legitimize_address): Remove call to
14619 arc_legitimize_tls_address.
14620 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14621 (movhi_insn): Likewise.
14623 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14625 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14627 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14628 format of "__intN" types for UINTMAX_TYPE.
14629 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14630 format of "__intN" types for SIZETYPE.
14631 * tree.c (build_common_tree_nodes): Accept "__intN__"
14632 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14633 * doc/invoke.texi: Document that __intN__ disables pedantic
14636 2019-06-25 Jan Hubicka <jh@suse.cz>
14638 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14639 base2_alias_set is non-zero before doing TBAA based disambiguation.
14641 2019-06-25 Martin Liska <mliska@suse.cz>
14643 PR tree-optimization/90973
14644 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14645 of prologue and epilogue.
14647 2019-06-24 Jan Hubicka <jh@suse.cz>
14649 * ipa-utils.h (type_with_linkage_p): Verify that type is
14651 (odr_type_p): Remove extra return.
14652 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14653 hash STRING_FLAG only for arrays and integers.
14654 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14655 Update analogously.
14656 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14658 * print-tree.c (print_node): Print cxx-odr-p
14660 * tree.c (need_assembler_name_p): Also check that type
14662 (verify_type_variant): Update verification of SRING_FLAG;
14663 also check CXX_ODR_P.
14664 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14665 (TYPE_STRING_FLAG): Use it.
14666 (TYPE_CXX_ODR_P): New macro.
14667 * dwarf2out.c (gen_array_type_die): First check that type
14668 is an array and then test string flag.
14670 2019-06-24 Richard Biener <rguenther@suse.de>
14672 PR tree-optimization/90972
14673 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14674 in common code, dealing with STRING_CST properly.
14676 2019-06-24 Richard Biener <rguenther@suse.de>
14678 PR tree-optimization/90930
14679 PR tree-optimization/90316
14680 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14681 decrement of limit.
14683 2019-06-24 Martin Sebor <msebor@redhat.com>
14685 * tree-pretty-print.h: Remove unnecessary punctuation characters
14687 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14689 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14691 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14692 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14693 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14695 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14697 * config/rs6000/darwin.h: Handle GCC target pragma.
14699 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14701 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14703 2019-06-22 Jeff Law <law@redhat.com>
14705 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14707 2019-06-22 Jan Hubicka <jh@suse.cz>
14709 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14710 give up on bitfields; continue searching for different refs
14713 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14715 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14716 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14717 containing the offset as possible simd lane access. Look through
14718 widening conversion. Move the
14719 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14721 2019-06-21 Richard Biener <rguenther@suse.de>
14723 PR tree-optimization/90930
14724 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14725 flag on new stmts to avoid re-processing them.
14727 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14729 PR c++/90875 - added -Wswitch-outside-range option
14730 * doc/invoke.texi (Wswitch-outside-range): Document.
14732 2019-06-21 Jeff Law <law@redhat.com>
14734 PR tree-optimization/90949
14735 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14736 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14738 2019-06-21 Richard Biener <rguenther@suse.de>
14741 * dwarf2out.c (prune_unused_types_walk): Always consider
14742 function-local extern declarations as used.
14744 2019-06-21 Richard Biener <rguenther@suse.de>
14746 PR tree-optimization/90913
14747 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14748 the scalar variant of if-conversion versioning.
14750 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14752 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14753 create another "omp scan inscan exclusive" array if
14754 !ctx->scan_inclusive.
14755 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14756 (lower_omp_scan): Likewise.
14757 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14758 2-bit bitfield for simd_lane_access_p member.
14759 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14760 aux == (void *)-4 as simd lane access.
14761 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14762 comment with permutations to show the canonical permutation order.
14763 (vectorizable_scan_store): Handle exclusive scan.
14764 (vectorizable_store): Call vectorizable_scan_store even for
14765 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14767 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14768 "omp simd array" arrays with one byte elements.
14770 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14772 * config/alpha/alpha.md (@unaligned_store<mode>):
14773 Rename from unaligned_store<mode>.
14774 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14775 * config/alpha/sync.md (@load_locked_<mode>): Rename
14776 from load_locked_<mode>.
14777 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14778 (@atomic_compare_and_swap<mode>_1): Rename
14779 from atomic_compare_and_swap<mode>_1.
14780 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14781 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14782 Use gen_reload_in_aligned and gen_unaligned_store.
14783 (emit_load_locked): Remove.
14784 (emit_store_conditional): Ditto.
14785 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14786 (alpha_split_compare_and_swap): Ditto.
14787 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14788 (alpha_split_compare_and_swap_12): Use gen_load_locked
14789 and gen_store_conditional.
14790 (alpha_split_atomic_exchange): Ditto.
14791 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14792 (alpha_split_atomic_exchange_12): Use gen_load_locked
14793 and gen_store_conditional.
14795 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14797 * config/aarch64/aarch64-errata.h: New file.
14798 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14799 (CA53_ERR_843419_SPEC): Delete.
14800 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14801 * config/aarch64/aarch64-linux.h: Likewise.
14802 * config/aarch64/aarch64-netbsd.h: Likewise.
14803 * config/aarch64/aarch64-freebsd.h: Likewise.
14805 2019-06-20 Marek Polacek <polacek@redhat.com>
14807 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14809 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14811 * config/rs6000/rs6000.md (isa attribute): Add support for
14812 for a future processor.
14814 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14817 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14818 standard scalar operation pattern for V2DF.
14819 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14820 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14821 (*ieee_<ieee_maxmin><mode>3): Likewise.
14822 (vec_setv2df_0): Likewise.
14824 2019-06-20 Jan Hubicka <jh@suse.cz>
14826 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14827 parameter; it has no use in gimple memory model.
14828 (indirect_ref_may_alias_decl_p): Update.
14830 2019-06-20 Martin Liska <mliska@suse.cz>
14832 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14835 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14837 * tree-vect-stmts.c (enum scan_store_kind): New type.
14838 (scan_store_can_perm_p): Change last argument from int * to
14839 vec<enum scan_store_kind> *, record precisely which permutations
14840 need whole vector left shift or that plus VEC_COND_EXPR.
14841 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14842 and additional VEC_COND_EXPR only for those iterations that need it.
14844 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14846 * config.gcc: Fix ARM --with-fpu checking and error message.
14848 2019-06-19 Marek Polacek <polacek@redhat.com>
14850 PR c++/60364 - noreturn after first decl not diagnosed.
14851 * attribs.c (get_attribute_namespace): No longer static.
14852 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14854 (attr_noreturn_exclusions): Make it extern.
14855 * attribs.h (get_attribute_namespace): Declare.
14856 * tree-inline.c (function_attribute_inlinable_p): Use
14857 get_attribute_name.
14859 2019-06-19 Martin Sebor <msebor@redhat.com>
14861 PR tree-optimization/90626
14862 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14864 PR tree-optimization/90626
14865 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14866 (handle_builtin_string_cmp): Call it.
14868 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14870 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14871 and DARWIN_NOPIE_SPEC.
14872 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14873 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14874 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14875 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14876 (DARWIN_EXPORT_DYNAMIC): Delete.
14877 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14878 and pie options processing to darwin.h.
14879 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14881 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14883 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14884 in computing the number of options to be moved.
14886 2019-06-19 Maya Rashish <coypu@sdf.org>
14888 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14889 (CLEAR_INSN_CACHE) Use it.
14891 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14893 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14895 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14897 PR middle-end/84521
14898 * builtins.c (expand_builtin_setjmp_setup): Save
14899 hard_frame_pointer_rtx.
14900 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14902 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14904 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14906 (remove_reg_equal_offset_note): Remove unused function.
14907 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14909 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14910 (arc_builtin_setjmp_frame_value): Remove function.
14911 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14912 (avr_builtin_setjmp_frame_value): Remove function.
14913 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14914 (ix86_builtin_setjmp_frame_value): Remove function.
14915 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14916 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14917 (sparc_builtin_setjmp_frame_value): Remove function.
14918 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14919 (vax_builtin_setjmp_frame_value): Remove function.
14920 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14921 pointer if has_nonlocal_label.
14923 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14925 * doc/md.texi: Document vec_shl_<mode> pattern.
14926 * optabs.def (vec_shl_optab): New optab.
14927 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14928 argument, if == vec_shl_optab, check for left whole vector shift
14929 pattern rather than right shift.
14930 (expand_vec_perm_const): Add vec_shl_optab support.
14931 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14933 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14934 can be handled by vec_shl_optab.
14935 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14936 (check_scan_store): Use it.
14937 (vectorizable_scan_store): If target can't do normal permutations,
14938 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14940 * config/i386/sse.md (vec_shl_<mode>): New expander.
14942 * omp-low.c (lower_rec_input_clauses): Handle references properly
14944 (lower_omp_scan): Likewise.
14946 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14948 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14949 mem_mode is BLKmode.
14951 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14954 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14955 pointer adjustment for the case of no callee-saved registers and
14956 stack frame bigger than 128 bytes.
14958 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14960 PR middle-end/90862
14961 * omp-low.c (check_omp_nesting_restrictions): Handle
14962 GF_OMP_TARGET_KIND_OACC_DECLARE.
14964 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14966 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14967 (@add<mode>3_carry): Rename from add<mode>3_carry.
14968 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14969 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14970 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14971 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14972 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14973 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14974 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14975 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14976 (cmpstrnsi): Use gen_cmp_1.
14977 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14978 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14979 (@umonitor_<mode>): Rename from umonitor_<mode>.
14980 * config/i386/i386-expand.c (ix86_expand_copysign):
14981 Use gen_copysign3_const and gen_copysign3_var.
14982 (ix86_expand_xorsign): Use gen_xorsign3_1.
14983 (ix86_expand_branch): Use gen_sub3_carry_ccc,
14984 gen_sub3_carry_ccgz and gen_cmp1.
14985 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14986 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14987 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14988 (ix86_split_lshr): Ditto.
14989 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14991 2019-06-18 Jason Merrill <jason@redhat.com>
14993 * tree.c (build_constructor): Add MEM_STAT_DECL.
14995 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14997 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14998 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14999 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15000 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15001 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15002 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15003 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15004 Use CC_NZC instead of CC.
15005 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15006 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15007 (aarch64_print_operand): Handle E_CC_NZCmode.
15008 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15009 of gen_set_clobber_cc.
15011 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15013 * config/aarch64/aarch64-sve.md: Tabify file.
15015 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15017 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15018 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15019 * config/aarch64/aarch64-sve.md: Use it.
15021 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15023 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15024 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15025 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15026 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15027 (aarch64_expand_sve_vec_cmp_int): Use it.
15028 (aarch64_expand_sve_vec_cmp_float): Likewise.
15029 * config/aarch64/aarch64-sve.md: Likewise throughout.
15031 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15032 Kugan Vivekanandarajah <kuganv@linaro.org>
15034 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15035 (*cond_<optab><mode>_z): Fold into...
15036 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15037 operand 4 can be tied to operand 0 (either inherently or via RA).
15039 2019-06-18 Richard Biener <rguenther@suse.de>
15042 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15043 as if optimized away.
15045 2019-06-18 Tom de Vries <tdevries@suse.de>
15047 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15048 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15049 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15051 (define_insn "@set_softstack_<mode>"): ... this.
15052 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15053 (define_insn "@omp_simt_enter_<mode>"): ... this.
15054 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15055 (define_insn "@omp_simt_exit_<mode>"): ... this.
15057 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15059 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15060 vf parameter. Restore the previous iv step of nscalars_step,
15061 but give it iv_type rather than compare_type. Tweak code order
15062 to match the comments.
15063 (vect_set_loop_condition_masked): Update accordingly.
15064 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15065 for iv_precision. Tweak comment formatting.
15067 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15069 * config/darwin.c: Strip trailing whitespace.
15071 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15073 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15074 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15076 2019-06-18 Martin Jambor <mjambor@suse.cz>
15079 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15080 caller does not have flag_ipa_cp set.
15082 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15084 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15085 from "*fold_left_plus_<mode>", updated operands order.
15086 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15087 * internal-fn.c (mask_fold_left_direct): New define.
15088 (expand_mask_fold_left_optab_fn): Likewise.
15089 (direct_mask_fold_left_optab_supported_p): Likewise.
15090 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15091 * optabs.def (mask_fold_left_plus_optab): New optab.
15092 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15093 masked internal_fn for a reduction ifn.
15094 (vectorize_fold_left_reduction): Add support for masking reductions.
15096 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15098 PR middle-end/80791
15099 * target.def (predict_doloop_p): New hook.
15100 * targhooks.h (default_predict_doloop_p): New declaration.
15101 * targhooks.c (default_predict_doloop_p): New function.
15102 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15103 * doc/tm.texi: Regenerate.
15104 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15105 (TARGET_PREDICT_DOLOOP_P): New macro.
15106 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15108 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15110 * omp-low.c (struct omp_context): Add scan_inclusive field.
15111 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15113 (struct omplow_simd_context): Add lastlane member.
15114 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15115 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15117 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15118 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15119 (lower_omp_scan): New function.
15120 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15121 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15122 check 3rd argument if present rather than 2nd.
15123 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15124 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15126 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15127 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15129 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15130 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15131 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15133 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15134 IFN_GOMP_SIMD_LANE argument.
15135 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15136 encoded ->aux value.
15137 * tree-vect-stmts.c: Include attribs.h.
15138 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15139 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15141 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15142 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15144 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15147 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15148 (*nabs<mode>2_1): Ditto.
15149 (nabs sse-reg splitter): New splitter.
15150 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15152 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15154 PR bootstrap/90873.
15155 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15158 2019-06-17 Tom de Vries <tdevries@suse.de>
15160 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15161 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15162 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15164 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15166 (define_insn "omp_simt_enter_insn"): Rename to ...
15167 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15168 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15169 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15170 gen_omp_simt_enter_si.
15171 (define_expand "omp_simt_exit"): New.
15172 (define_insn "omp_simt_exit"): Rename to ...
15173 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15176 2019-06-17 Matthew Green <mrg@eterna.com.au>
15177 Maya Rashish <coypu@sdf.org>
15179 * config.gcc (aarch64*-*-netbsd*): New target.
15180 * config/aarch64/aarch64-netbsd.h: New file.
15181 * config/aarch64/t-aarch64-netbsd: Likewise.
15183 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15185 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15186 the access path from base to first VIEW_CONVERT_EXPR or
15189 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15191 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15192 access path on BIT_FIELD_REFs.
15194 2019-06-17 Martin Liska <mliska@suse.cz>
15197 * ipa-utils.h (odr_type_p): Remove dead code.
15199 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15201 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15202 alternative Solaris 11.4 format.
15203 * configure: Regenerate.
15205 2019-06-17 Tom de Vries <tdevries@suse.de>
15207 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15208 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15210 (define_insn "call_value_insn"): Rename to ...
15211 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15213 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15216 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15218 PR middle-end/64242
15219 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15220 frame clobbers and schedule block.
15221 (builtin_longjmp): Likewise.
15223 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15225 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15226 describe how to perform MSPABI compliant 64-bit shift.
15227 * config/msp430/msp430.md (ashldi3): New define_expand.
15228 (ashrdi3): New define_expand.
15229 (lshrdi3): New define_expand.
15231 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15233 * doc/sourcebuild.texi: Document new effective target keyword
15236 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15238 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15239 indirect_refs_may_alias_p): Revert accidental commits.
15241 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15242 at the end of structures.
15244 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15246 * config/darwin.c (machopic_indirect_call_target): Use renamed
15247 darwin_picsymbol_stubs to decide on output.
15248 (darwin_override_options): Handle darwin_picsymbol_stubs.
15249 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15250 (LD64_VERSION): Revise default.
15251 * config/darwin.opt: (mpic-symbol-stubs): New option.
15252 (darwin_picsymbol_stubs): New variable.
15253 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15254 rename to TARGET_MACHO_PICSYM_STUBS.
15255 * config/i386/i386.c (output_pic_addr_const): Likewise.
15256 * config/i386/i386.h Likewise.
15257 * config/rs6000/darwin.h: Likewise.
15258 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15259 darwin_picsymbol_stubs.
15261 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15263 * config/darwin.opt (prebind, noprebind, seglinkedit,
15264 noseglinkedit): Add RejectNegative.
15266 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15268 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15269 in my previous patch.
15271 2019-06-16 Tom de Vries <tdevries@suse.de>
15273 PR tree-optimization/89376
15274 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15276 2019-06-15 Maya Rashish <coypu@sdf.org>
15278 * doc/invoke.texi (Spec Files): Update location of the
15281 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15283 * doc/extend.texi (Common Function Attributes): Clarify
15284 no_sanitize. Fix grammar.
15286 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15288 * tree-ssa-alias.c (alias_stats): Add
15289 nonoverlapping_component_refs_p_may_alias,
15290 nonoverlapping_component_refs_p_no_alias,
15291 nonoverlapping_component_refs_of_decl_p_may_alias,
15292 nonoverlapping_component_refs_of_decl_p_no_alias.
15293 (dump_alias_stats): Dump them.
15294 (nonoverlapping_component_refs_of_decl_p): Add stats.
15295 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15298 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15300 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15301 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15303 (*anddi3_doubleword): Split before reload. Merge with
15304 anddi->zext pre-reload splitter.
15305 (*andndi3_doubleword): Split before reload.
15306 (*<code>di3_doubleword): Ditto.
15307 (*one_cmpldi2_doubleword): Ditto.
15309 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15311 PR middle-end/90779
15312 * gimplify.c: Include omp-offload.h and context.h.
15313 (gimplify_bind_expr): Add "omp declare target" attributes
15314 to static block scope variables inside of target region or target
15317 2019-06-15 Tom de Vries <tdevries@suse.de>
15319 PR tree-optimization/90009
15320 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15321 Return NULL if bb contains IFN_UNIQUE.
15323 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15325 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15326 (un): New define_mode_attr.
15327 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15328 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15329 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15331 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15333 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15335 * config/darwin.opt: Add RejectNegative where needed, reorder
15336 and add minimal functional descriptions.
15338 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15340 PR rtl-optimization/90765
15341 * calls.c (update_stack_alignment_for_call): New function.
15342 (expand_call): Call update_stack_alignment_for_call when
15343 outgoing parameter is passed in the stack.
15344 (emit_library_call_value_1): Likewise.
15345 * function.c (locate_and_pad_parm): Don't update
15346 stack_alignment_needed and preferred_stack_boundary.
15348 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15351 * config/i386/i386-features.c
15352 (dimode_scalar_chain::compute_convert_gain): Replace
15353 mmxsse_to_integer with sse_to_integer.
15354 * config/i386/i386.c (ix86_register_move_cost): Verify that
15355 moves between MMX and non-MMX units require secondary memory.
15356 Correct costs of moves between SSE and integer units.
15357 * config/i386/i386.h (processor_costs): Rename cost of moving
15358 SSE register to integer to sse_to_integer. Rename cost of
15360 2019-06-14 Matt Thomas <matt@3am-software.com>
15361 Matthew Green <mrg@eterna.com.au>
15362 Nick Hudson <skrll@netbsd.org>
15363 Maya Rashish <coypu@sdf.org>
15364 Richard Earnshaw <rearnsha@arm.com>
15366 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15367 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15368 * config/arm/netbsd-eabi.h: New file.
15369 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15371 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15372 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15373 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15374 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15376 2019-06-14 Richard Biener <rguenther@suse.de>
15378 * tree-loop-distribution.c (classify_partition): Return
15379 whether a reduction appeared in all partitions and do not
15380 stop builtin detection because of this.
15381 (distribute_loop): Sort a non-builtin partition last if
15382 there's a reduction in all partitions and make sure the
15383 partition prevailing as last is not a builtin.
15385 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15388 * ipa-prop.c (add_to_agg_contents_list): New function.
15389 (clobber_by_agg_contents_list_p): Likewise.
15390 (extract_mem_content): Likewise.
15391 (get_place_in_agg_contents_list): Delete.
15392 (determine_known_aggregate_parts): Renamed from
15393 determine_locally_known_aggregate_parts. New parameter
15396 2019-06-13 Martin Sebor <msebor@redhat.com>
15398 PR tree-optimization/90662
15399 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15402 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15405 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15406 dbase is not TARGET_MEM_REF.
15408 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15410 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15412 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15413 Do not generate DImode extends for 32bit targets.
15414 (and->zext post-reload splitter): Use gen_extend_insn
15415 instead of indirect functions.
15416 (anddi->zext pre-reload splitter): New.
15417 (*zext<mode>_doubleword_and): Remove.
15418 (*zext<mode>_doubleword): Ditto.
15419 (*zextsi_doubleword): Dittto.
15421 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15423 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15424 Use gen_sub3_insn instead of indirect function.
15425 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15427 (ix86_adjust_counter): Ditto.
15429 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15430 Lijia He <helijia@linux.ibm.com>
15432 PR tree-optimization/77820
15433 * tree-ssa-threadedge.c
15434 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15436 (thread_across_edge): Add call to
15437 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15439 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15441 * config/darwin-driver.c (validate_macosx_version_min): New.
15442 (darwin_default_min_version): Cleanup and validate supplied version.
15443 (darwin_driver_init): Likewise and push cleaned version into opts.
15445 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15447 PR tree-optimization/90869
15448 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15449 converts in MEM_REF referencing decl rather than view converts
15450 from decl type to MEM_REF type.
15452 2019-06-13 Richard Biener <rguenther@suse.de>
15454 PR tree-optimization/90856
15455 * tree-sra.c (build_ref_for_model): Only use
15456 build_reconstructed_reference when address-spaces are the same.
15458 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15460 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15461 wrap ei variable name in the declaration in ()s.
15462 (nvptx_single): Actually use mode_label variable. Formatting fix.
15464 2019-06-13 Richard Biener <rguenther@suse.de>
15466 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15467 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15468 also return the condition stmt.
15469 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15470 loop we can version and version that, reusing the loop version
15471 created by if-conversion instead of versioning again.
15473 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15475 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15477 * tree-vrp (value_range_base::may_contain_p): Call into
15478 value_inside_range.
15479 (value_inside_range): Make private inside value_range_base class.
15480 Take min/max from *this.
15481 (range_includes_p): Remove.
15482 * tree-vrp.h (value_range_base): Add value_inside_range.
15483 (range_includes_p): Remove.
15484 (range_includes_zero_p): Call may_contain_p.
15485 * vr-values.c (compare_range_with_value): Same.
15487 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15489 * doc/extend.texi (ARC Function Attributes): Update info.
15491 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15493 PR tree-optimization/89713
15494 * doc/invoke.texi (-ffinite-loops): Document new option.
15495 * common.opt (-ffinite-loops): New option.
15496 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15497 IFN_GOACC_LOOP calls as necessary.
15498 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15500 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15501 IFN_GOACC_LOOP call is not used.
15502 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15504 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15507 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15508 compare_type is not with Pmode size, we will create an IV with
15509 Pmode size with truncated use (i.e. converted to the correct type).
15510 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15511 (vect_iv_limit_for_full_masking): New. Factored out of
15512 vect_set_loop_condition_masked.
15513 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15514 (vect_iv_limit_for_full_masking): Declare.
15516 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15519 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15520 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15521 (get_alias_ptr_type_for_ptr_address): Likewise.
15522 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15523 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15524 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15527 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15529 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15531 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15533 * common/config/pru/pru-common.c: New file.
15534 * config.gcc: Add PRU target.
15535 * config/pru/alu-zext.md: New file.
15536 * config/pru/constraints.md: New file.
15537 * config/pru/predicates.md: New file.
15538 * config/pru/pru-opts.h: New file.
15539 * config/pru/pru-passes.c: New file.
15540 * config/pru/pru-pragma.c: New file.
15541 * config/pru/pru-protos.h: New file.
15542 * config/pru/pru.c: New file.
15543 * config/pru/pru.h: New file.
15544 * config/pru/pru.md: New file.
15545 * config/pru/pru.opt: New file.
15546 * config/pru/t-pru: New file.
15547 * doc/extend.texi: Document PRU pragmas.
15548 * doc/invoke.texi: Document PRU-specific options.
15549 * doc/md.texi: Document PRU asm constraints.
15551 2019-06-12 Martin Sebor <msebor@redhat.com>
15553 PR middle-end/90676
15554 * tree-pretty-print.c (dump_mem_ref): New function. Include
15555 MEM_REF type in output when different size than operand.
15556 (dump_generic_node): Move code to dump_mem_ref and call it.
15558 2019-06-12 Martin Sebor <msebor@redhat.com>
15560 PR tree-optimization/90662
15561 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15564 2019-06-12 Tom de Vries <tdevries@suse.de>
15566 PR tree-optimization/90009
15567 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15569 2019-06-12 Martin Liska <mliska@suse.cz>
15571 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15573 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15574 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15575 Do not sanitize created maps.
15577 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15579 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15580 value_range::singleton_p.
15581 * tree-vrp.c (value_range_constant_singleton): Remove.
15582 * tree-vrp.h (value_range_constant_singleton): Remove.
15583 * vr-values.c (vr_values::singleton): Use
15584 value_range::singleton_p.
15586 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15589 * cfgexpand.c (align_local_variable): Add really_expand argument,
15590 don't SET_DECL_ALIGN if it is false.
15591 (add_stack_var): Add really_expand argument, pass it through to
15592 align_local_variable.
15593 (expand_one_stack_var_1): Pass true as really_expand to
15594 align_local_variable.
15595 (expand_one_ssa_partition): Pass true as really_expand to
15597 (expand_one_var): Pass really_expand through to add_stack_var.
15599 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15601 * config/arm/iterators.md (VABAL): New int iterator.
15602 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15603 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15604 UNSPEC_VABAL_U values.
15606 2019-06-12 Martin Liska <mliska@suse.cz>
15608 * value-prof.c (stream_out_histogram_value): Only first value
15611 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15614 * symtab.c (symtab_node::set_section): Allow being called on aliases
15615 as long as they aren't analyzed yet.
15617 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15619 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15620 to `mips_set_text_contents_type' to indicate whether a
15621 non-debug insn follows.
15623 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15625 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15626 enabling -mpcrel by default.
15627 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15628 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15629 that the test against -mcpu=future is done first. Then test if
15630 -mprefixed-addr is on for -mpcrel.
15631 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15633 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15636 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15637 instead of and.u%d.
15639 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15641 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15643 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15645 PR c++/90449 - add -Winaccessible-base option.
15646 * doc/invoke.texi (Winaccessible-base): Document.
15648 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15650 PR tree-optimization/62041
15651 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15653 2019-06-11 Jason Merrill <jason@redhat.com>
15655 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15656 * tree.c (get_tree_code_name): Likewise.
15657 * print-tree.c (print_node): Only briefly print a node with an
15660 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15663 * trans-mem.c (tm_memopt_compute_available): Add assertion
15664 that blocks is not empty. Formatting fix.
15666 2019-06-11 Martin Liska <mliska@suse.cz>
15669 * hash-table.h: Extend create_gcc, add one parameter
15670 that is passed into hash_table::hash_table.
15672 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15674 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15676 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15677 Emit clobber also for non-sse operations.
15678 (ix86_split_fp_absneg_operator): New function.
15679 * config/i386/i386.md (SSEMODEF): New mode iterator.
15680 (ssevecmodef): New mode attribute.
15681 (<code>tf2): Use absneg code iterator.
15682 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15683 Add three-operand AVX alternatives.
15684 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15685 Use absneg code iterator and X87MODEF mode iterator.
15686 (absneg fp_reg non-sse splitter): Call absneg code iterator
15687 and X87MODEF mode iterator.
15688 (absneg general_reg non-sse splitter): Use absneg code iterator
15689 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15690 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15691 code iterator. Add three-operand AVX alternative.
15692 (absneg sse_reg splitter): Use absneg code iterator
15693 and SSEMODEF mode iterator. Handle AVX operands.
15694 (absneg fp_reg splitter): Use absneg code iterator
15695 and MODEF mode iterator.
15696 (absneg general_reg splitter): Merge splitters using MODEF mode
15697 iterator. Use absneg code iterator. Call
15698 ix86_split_fp_absneg_operator.
15699 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15700 Do not enable for non-sse modes before reload.
15701 (CSGNMODE): Remove.
15702 (CSGNVMODE): Ditto.
15703 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15704 ssevecmodef mode attribute instaed of CSGNVMODE.
15705 (copysign<mode>3_const): Ditto.
15706 (copysign<mode>3_var): Ditto.
15707 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15708 Use absneg code iterator. Simplify code using std::swap.
15709 * config/i386/predicates.md (absneg_operator): Remove.
15711 2019-06-10 Martin Sebor <msebor@redhat.com>
15713 * gimple-fold.c (get_range_strlen): Update comment that didn't
15714 make it into r267503 or related commits.
15716 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15718 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15719 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15721 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15723 * tree.def (OMP_SCAN): New tree code.
15724 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15725 OMP_CLAUSE_EXCLUSIVE.
15726 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15727 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15728 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15729 OMP_CLAUSE_{IN,EX}CLUSIVE.
15730 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15731 * tree-nested.c (convert_nonlocal_reference_stmt,
15732 convert_local_reference_stmt, convert_gimple_call): Handle
15734 * tree-pretty-print.c (dump_omp_clause): Handle
15735 OMP_CLAUSE_{IN,EX}CLUSIVE.
15736 (dump_generic_node): Handle OMP_SCAN.
15737 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15738 * gimple.h (gomp_scan): New type.
15739 (is_a_helper <gomp_scan *>::test,
15740 is_a_helper <const gomp_scan *>::test): New templates.
15741 (gimple_build_omp_scan): Declare.
15742 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15743 gimple_omp_scan_set_clauses): New inline functions.
15744 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15745 * gimple.c (gimple_build_omp_scan): New function.
15746 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15747 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15748 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15749 GIMPLE_OMP_TASKGROUP.
15750 (dump_gimple_omp_scan): New function.
15751 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15752 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15753 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15754 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15755 (is_gimple_stmt): Handle OMP_SCAN.
15756 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15757 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15758 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15759 mentioned in nested #pragma omp scan. Handle
15760 OMP_CLAUSE_{IN,EX}CLUSIVE.
15761 (gimplify_expr): Handle OMP_SCAN.
15762 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15763 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15765 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15768 2019-06-10 Martin Liska <mliska@suse.cz>
15770 * ipa-cp.c (ignore_edge_p): New function.
15771 (build_toporder_info): Use it.
15772 * ipa-inline.c (ignore_edge_p): New function.
15773 (inline_small_functions): Use it.
15774 * ipa-pure-const.c (ignore_edge_for_nothrow):
15775 Verify opt_for_fn for caller and callee.
15776 (ignore_edge_for_pure_const): Likewise.
15777 * ipa-reference.c (ignore_edge_p): Extend to check
15779 * ipa-utils.c (searchc): Refactor.
15780 * ipa-utils.h: Fix coding style.
15782 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15784 * config/arc/arc.c (arc_rtx_costs): Update costs.
15786 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15788 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15789 (arc_split_ior): Likewise.
15790 (arc_check_mov_const): Likewise.
15791 (arc_split_mov_const): Likewise.
15792 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15793 (arc_rtx_costs): Replace check Crr with Cax constraint.
15794 (prepare_move_operands): Cleanup, remove unused code.
15795 (arc_split_ior): New function.
15796 (arc_check_ior_const): Likewise.
15797 (arc_split_mov_const): Likewise.
15798 (arc_check_mov_const): Likewise.
15799 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15800 in define_insn_and_split pattern.
15801 (iorsi3): Likewise.
15802 (mulsi3_v2): Add new matching variant.
15803 (andsi3_i): Cleanup pattern.
15804 (rotrsi3_cnt1): Update pattern.
15805 (rotrsi3_cnt8): New pattern.
15806 (ashlsi2_cnt8): Likewise.
15807 (ashlsi2_cnt16): Likewise.
15808 * config/arc/constraints.md (C0p): Update constraint.
15810 (C0x): New pattern.
15811 (Cax): New pattern.
15813 2019-06-10 Martin Liska <mliska@suse.cz>
15815 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15816 Update coding style.
15817 (sem_item_optimizer::dump_cong_classes):
15818 Print how many items are in a non-singular class. Improve
15821 2019-06-10 Martin Liska <mliska@suse.cz>
15823 * value-prof.c (dump_histogram_value): Change dump format.
15824 (gimple_mod_subtract_transform): Remove legacy comment.
15826 2019-06-10 Martin Liska <mliska@suse.cz>
15828 * value-prof.c (dump_histogram_value): Print histogram values
15831 2019-06-10 Martin Liska <mliska@suse.cz>
15833 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15834 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15835 * ipa-profile.c (ipa_profile_generate_summary):
15836 Use get_most_common_single_value.
15837 * tree-profile.c (gimple_init_gcov_profiler):
15838 Instrument with __gcov_one_value_profiler_v2
15839 and __gcov_indirect_call_profiler_v4.
15840 * value-prof.c (dump_histogram_value):
15841 Print all values for HIST_TYPE_SINGLE_VALUE.
15842 (stream_out_histogram_value): Update assert for
15844 (stream_in_histogram_value): Set number of
15845 counters for HIST_TYPE_SINGLE_VALUE.
15846 (get_most_common_single_value): New.
15847 (gimple_divmod_fixed_value_transform):
15848 Use get_most_common_single_value.
15849 (gimple_ic_transform): Likewise.
15850 (gimple_stringops_transform): Likewise.
15851 (gimple_find_values_to_profile): Set number
15852 of counters for HIST_TYPE_SINGLE_VALUE.
15853 * value-prof.h (get_most_common_single_value): New.
15855 2019-06-10 Martin Liska <mliska@suse.cz>
15857 * hash-map.h: Pass default value to hash_table ctor.
15858 * hash-table.h: Add default value to call of a ctor.
15860 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15862 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15863 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15865 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15868 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15869 Call pa_output_function_label.
15870 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15871 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15872 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15874 (pa_linux_output_function_prologue): Declare.
15875 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15876 (pa_output_function_label): New.
15877 (pa_output_function_prologue): Revise to use pa_output_function_label.
15878 (pa_linux_output_function_prologue): New.
15879 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15881 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15883 * tree-vrp.h (value_range_base::intersect): New.
15884 (value_range::intersect_helper): Move from here...
15885 (value_range_base::intersect_helper): ...to here.
15886 * tree-vrp.c (value_range::intersect_helper): Rename to...
15887 (value_range_base::intersect_helper): ...this, and rewrite to
15888 return a value instead of modifying THIS in place.
15889 Also, move equivalence handling...
15890 (value_range::intersect): ...here, while calling intersect_helper.
15891 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15893 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15895 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15897 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15899 * Makefile.in (genprogerr): Add condmd.
15900 (genprog): Remove it here.
15902 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15904 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15906 2019-06-07 Richard Biener <rguenther@suse.de>
15909 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15910 that appear after user labels.
15912 2019-06-07 Martin Liska <mliska@suse.cz>
15914 * cselib.c (cselib_init): Disable hash table
15916 * hash-set.h: Pass new default argument to m_table.
15917 * hash-table.c: Add global variable with hash table
15918 sanitization limit.
15919 * hash-table.h (Allocator>::hash_table): Add new argument
15921 (hashtab_chk_error): New.
15922 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15923 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15924 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15926 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15928 * common.opt (flto-odr-type-merging): Ignore.
15929 * invoke.texi (-flto-odr-type-merging): Remove.
15930 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15931 (can_be_vtable_hashed_p): Remove.
15932 (hash_odr_vtable): Remove.
15933 (odr_vtable_hasher::hash): Remove.
15934 (types_same_for_odr): Remove.
15935 (types_odr_comparable): Remove.
15936 (odr_vtable_hasher::equal): Remove.
15937 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15938 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15939 (get_odr_type): Do not use vtable hash.
15940 (dump_odr_type): Remove commented out code.
15941 (build_type_inheritance_graph): Do not allocate vtable hash.
15942 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15943 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15944 (odr_type_p): Likewise.
15945 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15948 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15950 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15951 immediately after same_types_for_tbaa_p returns -1 and continue
15952 looking for possible exact match; if matching types are arrays
15953 watch for partial overlaps.
15954 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15955 (indirect_refs_may_alias_p): Do type based disambiguation first;
15958 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15960 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15962 2019-06-07 Martin Liska <mliska@suse.cz>
15964 * doc/invoke.texi: Remove param.
15965 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15967 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15968 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15969 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15970 * profile.c (instrument_values): Remove
15971 HIST_TYPE_INDIR_CALL_TOPN.
15972 * tree-profile.c (init_ic_make_global_vars):
15973 Always build __gcov_indirect_call only.
15974 (gimple_init_gcov_profiler): Remove usage
15975 of PARAM_INDIR_CALL_TOPN_PROFILE.
15976 (gimple_gen_ic_profiler): Likewise.
15977 * value-prof.c (dump_histogram_value): Likewise.
15978 (stream_in_histogram_value): Likewise.
15979 (gimple_indirect_call_to_profile): Likewise.
15980 (gimple_find_values_to_profile): Likewise.
15981 * value-prof.h (enum hist_type): Likewise.
15983 2019-06-07 Martin Liska <mliska@suse.cz>
15985 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15988 2019-06-07 Martin Liska <mliska@suse.cz>
15990 PR tree-optimization/78902
15991 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15992 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15993 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15994 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15995 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15996 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15997 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15998 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15999 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16000 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16001 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16002 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16003 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16005 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16006 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16007 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16008 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16009 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16010 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16011 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16012 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16013 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16014 warn_unused_result attribute.
16015 (BUILT_IN_STRDUP): Likewise.
16016 (BUILT_IN_STRNDUP): Likewise.
16017 (BUILT_IN_ALLOCA): Likewise.
16018 (BUILT_IN_CALLOC): Likewise.
16019 (BUILT_IN_MALLOC): Likewise.
16020 (BUILT_IN_REALLOC): Likewise.
16022 2019-06-06 Jim Wilson <jimw@sifive.com>
16025 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16026 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16027 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16029 2019-06-06 Martin Sebor <msebor@redhat.com>
16031 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16032 (handle_builtin_malloc): Remove trailing spaces.
16033 (handle_builtin_memset): Same.
16034 (handle_builtin_memcmp): Same.
16035 (compute_string_length): Same.
16036 (determine_min_objsize): Same.
16037 (handle_builtin_string_cmp): Same.
16038 (handle_char_store): Same. Break up excessively long line.
16040 2019-06-06 Martin Jambor <mjambor@suse.cz>
16042 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16045 2019-06-06 Martin Jambor <mjambor@suse.cz>
16047 * tree-sra.c (struct access): New field grp_same_access_path.
16048 (dump_access): Dump it.
16049 (build_reconstructed_reference): New function.
16050 (build_ref_for_model): Use it if possible.
16051 (path_comparable_for_same_access): New function.
16052 (same_access_path_p): Likewise.
16053 (sort_and_splice_var_accesses): Set the new flag.
16054 (analyze_access_subtree): Likewise.
16055 (propagate_subaccesses_across_link): Propagate zero value of the new
16056 flag down the access tree.
16058 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16060 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16061 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16062 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16063 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16066 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16068 PR tree-optimization/90332
16069 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16070 Handle VALS containing two vectors.
16071 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16073 (@aarch64_combinez<mode>): ... This.
16074 (*aarch64_combinez_be<mode>): Rename to...
16075 (@aarch64_combinez_be<mode>): ... This.
16076 (vec_init<mode><Vhalf>): New define_expand.
16077 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16079 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16081 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16082 library functions only when not optimizing for size.
16083 (ashlsi3): Likewise.
16084 (ashrhi3): Likewise.
16085 (ashrsi3): Likewise.
16086 (lshrhi3): Likewise.
16087 (lshrsi3): Likewise.
16089 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16091 PR rtl-optimization/88751
16092 * ira.c (ira): Use the number of the actually referenced registers
16093 when calculating the threshold.
16095 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16097 * configure: Regenerate.
16099 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16101 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16102 register if it is in memory, so the shift can be emulated with a rotate
16104 (ashrhi3): Likewise.
16105 (lshrhi3): Likewise.
16107 2019-06-06 Martin Liska <mliska@suse.cz>
16109 PR tree-optimization/87954
16110 * match.pd: Simplify mult where both arguments are 0 or 1.
16112 2019-06-06 Richard Biener <rguenther@suse.de>
16114 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16115 put equivalences on UNDEFINED ranges.
16116 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16117 Make sure to drop defs of stmts added during simplification
16120 2019-06-06 Richard Biener <rguenther@suse.de>
16122 * tree-ssa-structalias.c: Include tree-cfg.h.
16123 (make_heapvar): Do not make heap vars artificial.
16124 (find_func_aliases_for_builtin_call): Handle stack allocation
16126 (find_func_aliases): Delay processing of simple enough returns
16128 (set_uids_in_ptset): Adjust.
16129 (find_what_var_points_to): Likewise.
16130 (solve_constraints): Do not dump points-to sets here.
16131 (compute_points_to_sets): Post-process return statements,
16132 amending the escaped solution. Dump points-to sets afterwards.
16133 (ipa_pta_execute): Dump points-to sets.
16135 2019-06-06 Martin Liska <mliska@suse.cz>
16138 * doc/install.texi: Fix HTML headers and
16139 titles for 'Installing GCC' pages.
16141 2019-06-06 Martin Liska <mliska@suse.cz>
16143 * ipa-icf-gimple.h (dump_message_1): Remove.
16144 (dump_message): Likewise.
16145 (return_false_with_message_1): Print also file.
16146 (return_false_with_msg): Likewise.
16147 (return_with_result): Likewise.
16148 (return_with_debug): Likewise.
16149 * ipa-icf.c (sem_function::equals_private): Remove call
16152 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16154 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16155 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16156 memory operand for it.
16157 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16159 2019-06-05 Martin Sebor <msebor@redhat.com>
16161 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16162 Adjust quoting and hyphenation.
16163 * convert.c (convert_to_real_1): Same.
16164 * gcc.c (driver_wrong_lang_callback): Same.
16165 (driver::handle_unrecognized_options): Same.
16166 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16167 * opts-common.c (cmdline_handle_error): Same.
16168 (read_cmdline_option): Same.
16169 * opts-global.c (complain_wrong_lang): Same.
16170 (print_ignored_options): Same.
16171 (handle_common_deferred_options): Same.
16172 * pretty-print.h: Same.
16173 * print-rtl.c (debug_bb_n_slim): Same.
16174 * sched-rgn.c (make_pass_sched_fusion): Same.
16175 * tree-cfg.c (verify_gimple_assign_unary): Same.
16176 (verify_gimple_label): Same.
16177 * tree-ssa-operands.c (verify_ssa_operands): Same.
16178 * varasm.c (do_assemble_alias): Same.
16179 (assemble_alias): Same.
16181 2019-06-05 Richard Henderson <rth@twiddle.net>
16183 * config/alpha/alpha.c (direct_return): Move down after
16184 struct machine_function definition; use saved frame_size;
16186 (struct machine_function): Add sa_mask, sa_size, frame_size.
16187 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16188 (alpha_compute_frame_layout): ... new function.
16189 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16190 (alpha_initial_elimination_offset): Use saved sa_size.
16191 (alpha_vms_initial_elimination_offset): Likewise.
16192 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16193 (alpha_expand_prologue): Use saved frame data. Merge integer
16194 and fp register save loops.
16195 (alpha_expand_epilogue): Likewise.
16196 (alpha_start_function): Use saved frame data.
16197 * config/alpha/alpha-protos.h (direct_return): Update.
16198 (alpha_sa_size): Remove.
16200 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16202 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16203 multiplication by a power-of-two value.
16204 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16205 and turn the modulo operation into a masking operation.
16207 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16210 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16211 with VOIDmode inner operands.
16213 2019-06-05 Richard Biener <rguenther@suse.de>
16215 PR middle-end/90726
16216 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16217 turn an expression graph into a tree.
16219 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16221 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16223 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16224 treat it like explicit monotonic schedule modifier.
16225 (expand_omp_for): Initialize has_lastprivate_conditional.
16226 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16229 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16230 references, lookup in in hash map MEM_REF operand instead of the
16232 (lower_omp_1): When looking for lastprivate conditional assignments,
16233 handle MEM_REFs with REFERENCE_TYPE operands.
16235 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16236 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16237 and references a VLA. Handle references to non-VLAs if is_simd
16238 all privatization clauses like reductions.
16239 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16240 If omp_is_reference, use always omp simd arrays and set
16241 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16242 fails, emit reference initialization.
16244 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16247 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16248 _mm_mask_fpclass_sd_mask): New intrinsics.
16249 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16250 * config/i386/i386-builtin.def
16251 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16253 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16254 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16255 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16256 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16257 case QI_FTYPE_V2SF_INT): Ditto.
16258 * config/i386/sse.md
16259 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16260 Extended to insnstructions with mask operands.
16262 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16264 * config/rs6000/constraints.md (define_register_constraint "wp"):
16266 (define_register_constraint "wq"): Delete.
16267 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16268 (rs6000_init_hard_regno_mode_ok): Adjust.
16269 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16270 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16271 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16272 (define_mode_attr VSa): Delete.
16273 (define_mode_attr VSisa): New.
16274 (rest of file): Adjust.
16275 * doc/md.texi (Machine Constraints): Adjust.
16277 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16279 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16280 (define_attr "enabled"): Handle those new isa values.
16282 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16284 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16285 (define_mode_attr VSr5): Delete.
16286 (define_mode_attr VStype_sqrt): Delete.
16287 (define_mode_iterator VSX_SPDP): Delete.
16288 (define_mode_attr VS_spdp_res): Delete.
16289 (define_mode_attr VS_spdp_insn): Delete.
16290 (define_mode_attr VS_spdp_type): Delete.
16291 (*vsx_sqrt<mode>2): Adjust.
16292 (vsx_<VS_spdp_insn>): Delete, split to...
16293 (vsx_xscvdpsp): ... this. New. And...
16294 (vsx_xvcvspdp): ... this. New. And...
16295 (vsx_xvcvdpsp): ... this. New.
16297 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16299 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16301 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16302 (rest of file): Adjust.
16304 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16306 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16307 (vsx_extract_<mode>_var): Ditto.
16309 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16311 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16314 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16316 * config/rs6000/constraints.md (define_register_constraint "ww"):
16318 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16319 (rs6000_init_hard_regno_mode_ok): Adjust.
16320 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16321 RS6000_CONSTRAINT_ww.
16322 * config/rs6000/rs6000.md: Adjust.
16323 * config/rs6000/vsx.md: Adjust.
16324 * doc/md.texi (Machine Constraints): Adjust.
16326 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16328 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16329 (define_mode_attr sd): New.
16330 (define_mode_attr s): New.
16331 (define_mode_attr Ftrad): Delete.
16332 (define_mode_attr Fvsx): Delete.
16333 (define_mode_attr Fs): Delete.
16334 (rest of file): Use the new mode attributes.
16335 * config.rs6000/vsx.md: Use the new mode attributes.
16337 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16339 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16342 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16344 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16345 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16346 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16348 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16351 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16352 C++ with strict ANSI requirements.
16354 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16356 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16357 computations when step is 1.
16359 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16361 * config/rs6000/constraints.md (define_register_constraint "wf"):
16363 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16364 (rs6000_init_hard_regno_mode_ok): Adjust.
16365 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16366 RS6000_CONSTRAINT_wf.
16367 * config/rs6000/rs6000.md: Adjust.
16368 * config/rs6000/vsx.md: Adjust.
16369 * doc/md.texi (Machine Constraints): Adjust.
16371 2019-06-04 Andrew Pinski <apinski@marvell.com>
16373 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16376 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16378 * config/rs6000/constraints.md (define_register_constraint "wd"):
16380 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16381 (rs6000_init_hard_regno_mode_ok): Adjust.
16382 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16383 RS6000_CONSTRAINT_wd.
16384 * config/rs6000/rs6000.md: Adjust.
16385 * config/rs6000/vsx.md: Adjust.
16386 * doc/md.texi (Machine Constraints): Adjust.
16388 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16390 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16391 (rest of file): Adjust.
16393 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16395 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16396 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16397 (vsx_splat_<mode>_reg): Adjust.
16399 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16401 * config/rs6000/constraints.md (define_register_constraint "ws"):
16403 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16404 (rs6000_init_hard_regno_mode_ok): Adjust.
16405 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16406 RS6000_CONSTRAINT_ws.
16407 * config/rs6000/rs6000.md: Adjust.
16408 * config/rs6000/vsx.md: Adjust.
16409 * doc/md.texi (Machine Constraints): Adjust.
16411 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16413 * config/rs6000/constraints.md (define_register_constraint "wv"):
16415 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16416 (rs6000_init_hard_regno_mode_ok): Adjust.
16417 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16418 RS6000_CONSTRAINT_wv.
16419 * config/rs6000/rs6000.md: Adjust.
16420 * config/rs6000/vsx.md: Adjust.
16421 * doc/md.texi (Machine Constraints): Adjust.
16423 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16425 * config/rs6000/constraints.md (define_register_constraint "wi"):
16427 (define_register_constraint "wt"): Delete.
16428 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16429 (rs6000_init_hard_regno_mode_ok): Adjust.
16430 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16431 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16432 * config/rs6000/rs6000.md: Adjust.
16433 * config/rs6000/vsx.md: Adjust.
16434 * doc/md.texi (Machine Constraints): Adjust.
16436 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16438 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16440 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16441 default_elf_asm_output_external.
16443 2019-06-04 Martin Liska <mliska@suse.cz>
16445 * ipa-icf.c (INCLUDE_LIST): Remove.
16446 (sem_item_optimizer::execute): Remove call to init_wpa.
16447 * ipa-icf.h (init_wpa): Remove.
16449 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16451 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16452 conditional on combined for simd.
16453 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16455 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16456 constructs, don't remove lastprivate_conditional_map, but instead set
16457 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16458 to parent construct temporaries.
16459 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16460 like !ctx->lastprivate_conditional_map.
16461 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16462 use up->outer context instead of up.
16463 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16464 gimple_omp_for_combined_p.
16465 (expand_omp_for_static_nochunk): Likewise.
16466 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16467 probably moved over into expand_omp_for_generic rather than being copied
16470 2019-06-04 Martin Liska <mliska@suse.cz>
16472 * value-prof.c (dump_histogram_value): Fix typo.
16473 (gimple_mod_subtract_transform): Likewise.
16475 2019-06-04 Richard Biener <rguenther@suse.de>
16477 PR middle-end/90726
16478 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16479 (tree_contains_chrecs): Likewise.
16480 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16481 exponential behaivor from ...
16482 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16484 (expression_expensive_p): Avoid exponential behavior and compute
16485 expanded size, rejecting any expansion.
16486 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16487 (idx_contains_abnormal_ssa_name_p): Likewise.
16488 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16489 (contains_abnormal_ssa_name_p): Simplify and use
16490 walk_tree_without_duplicates.
16492 2019-06-04 Richard Biener <rguenther@suse.de>
16494 PR tree-optimization/90738
16496 2019-06-03 Richard Biener <rguenther@suse.de>
16498 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16499 full reference tree and record in ref->ref.
16500 (vn_reference_lookup_3): Pass in original ref to
16501 ao_ref_init_from_vn_reference.
16502 (vn_reference_lookup): Likewise.
16503 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16504 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16505 Handle non-decl bases in the original reference.
16507 2019-06-04 Martin Liska <mliska@suse.cz>
16509 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16510 number of references.
16511 (sem_item_optimizer::do_congruence_step):
16512 (sem_item_optimizer::worklist_push): Dump how references
16514 (sem_item_optimizer::worklist_pop): Use heap.
16515 (sem_item_optimizer::process_cong_reduction): Likewise.
16516 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16518 2019-06-04 Martin Liska <mliska@suse.cz>
16520 * ipa-icf.h (struct sem_usage_pair_hash): New.
16521 (sem_usage_pair_hash::hash): Likewise.
16522 (sem_usage_pair_hash::equal): Likewise.
16523 (struct sem_usage_hash): Likewise.
16524 * ipa-icf.c (sem_item::sem_item): Initialize
16525 referenced_by_count.
16526 (sem_item::add_reference): Register a reference
16527 in ref_map and not in target->usages.
16528 (sem_item::setup): Remove initialization of
16530 (sem_item::~sem_item): Remove usage of dead vectors.
16531 (sem_item::dump): Remove dump of references.
16532 (sem_item_optimizer::sem_item_optimizer): Initialize
16534 (sem_item_optimizer::read_section): Remove useless
16536 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16537 (sem_item_optimizer::build_graph): Pass m_references
16538 to ::add_reference.
16539 (sem_item_optimizer::verify_classes): Remove usage of dead
16541 (sem_item_optimizer::traverse_congruence_split): Return true
16542 when a class is split.
16543 (sem_item_optimizer::do_congruence_step_for_index): Use
16544 hash_map for look up of (sem_item *, index). That brings
16545 significant speed up.
16546 (sem_item_optimizer::do_congruence_step): Return true
16547 when a split is done.
16548 (congruence_class::is_class_used): Use referenced_by_count.
16550 2019-06-04 Alan Modra <amodra@gmail.com>
16553 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16556 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16558 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16559 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16560 (rs6000_secondary_reload_simple_move): Adjust.
16561 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16562 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16563 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16566 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16567 (floatunssi<mode>2_lfiwzx): Adjust.
16568 (fix_trunc<mode>si2_stfiwx): Adjust.
16569 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16570 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16571 (mfpgpr): Mark as deprecated.
16572 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16573 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16574 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16576 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16578 * config/rs6000/constraints.md (define_register_constraint "wg"):
16580 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16581 RS6000_CONSTRAINT_wg.
16582 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16583 (rs6000_init_hard_regno_mode_ok): Adjust.
16584 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16585 Delete "wg" alternatives.
16586 * doc/md.texi (Machine Constraints): Adjust.
16588 2019-06-03 Alan Modra <amodra@gmail.com>
16590 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16591 (get_uncond_jump_length): Assert length less than INT_MAX and
16594 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16596 PR middle-end/64242
16597 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16599 (expand_builtin_nonlocal_goto): Likewise.
16601 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16603 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16604 (aarch64_asm_output_external): Declare.
16605 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16606 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16607 (aarch64_asm_output_alias): New.
16608 (aarch64_asm_output_external): New.
16609 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16610 (ASM_OUTPUT_EXTERNAL): Define.
16612 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16613 * tree-vrp.h (value_range_base::nonzero_p): New.
16614 (value_range_base::set_nonnull): Rename to...
16615 (value_range_base::set_nonzero): ...this.
16616 (value_range_base::set_null): Rename to...
16617 (value_range_base::set_zero): ...this.
16618 (value_range::set_nonnull): Remove.
16619 (value_range::set_null): Remove.
16620 * tree-vrp.c (range_is_null): Remove.
16621 (range_is_nonnull): Remove.
16622 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16623 instead of range_is_*null.
16624 (extract_range_from_unary_expr): Same.
16625 (value_range_base::set_nonnull): Rename to...
16626 (value_range_base::set_nonzero): ...this.
16627 (value_range::set_nonnull): Remove.
16628 (value_range_base::set_null): Rename to...
16629 (value_range_base::set_zero): ...this.
16630 (value_range::set_null): Remove.
16631 (extract_range_from_binary_expr): Rename set_*null uses to
16633 (extract_range_from_unary_expr): Same.
16634 (union_helper): Same.
16635 * vr-values.c (get_value_range): Use set_*zero instead of
16637 (vr_values::extract_range_from_binary_expr): Same.
16638 (vr_values::extract_range_basic): Same.
16640 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16643 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16645 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16647 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16648 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16650 (aarch64_<su>abd<mode>_3): ... This.
16651 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16653 2019-06-03 Richard Biener <rguenther@suse.de>
16655 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16656 full reference tree and record in ref->ref.
16657 (vn_reference_lookup_3): Pass in original ref to
16658 ao_ref_init_from_vn_reference.
16659 (vn_reference_lookup): Likewise.
16660 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16661 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16662 Handle non-decl bases in the original reference.
16664 2019-06-03 Martin Liska <mliska@suse.cz>
16666 * doc/generic.texi: Remove Java Trees.
16668 2019-06-03 Martin Liska <mliska@suse.cz>
16670 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16671 returns 0 when operands are equal.
16673 2019-06-03 Richard Biener <rguenther@suse.de>
16675 PR tree-optimization/90716
16676 * tree-loop-distribution.c (destroy_loop): Process blocks in
16679 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16682 * vector-builder.h (vector_builder::count_dups): New method.
16683 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16685 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16686 (vec_init<mode><Vel>): New pattern.
16687 * config/aarch64/aarch64.c (emit_insr): New function.
16688 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16689 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16690 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16691 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16693 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16695 PR tree-optimization/90681
16696 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16697 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16698 special case for SLP, but fail on non-groupped loads.
16700 2019-06-03 Martin Liska <mliska@suse.cz>
16702 * cfg.c (debug): Use TDF_DETAILS for debug and
16703 print edge info only once.
16705 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16708 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16710 2019-06-01 Martin Sebor <msebor@redhat.com>
16712 PR middle-end/90694
16713 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16715 2019-05-31 Jan Hubicka <jh@suse.cz>
16717 * alias.c: Include ipa-utils.h.
16718 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16719 * ipa-devirt.c (prevailing_odr_type): New.
16720 * ipa-utils.h (previaling_odr_type): Declare.
16722 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16723 Hongtao Liu <hongtao.liu@intel.com>
16726 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16727 NOTE_INSN_DELETED_LABEL check.
16729 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16730 Robert Suchanek <robert.suchanek@mips.com>
16732 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16733 and 3rd operands of the fmadd/fmsub/maddv builtin.
16735 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16737 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16738 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16739 on OMP_SIMD if not nested inside of worksharing loop that also has
16740 lastprivate conditional clause for the same decl.
16741 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16742 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16744 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16746 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16748 (lower_lastprivate_clauses): Likewise.
16749 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16750 calling lower_rec_input_clauses.
16751 (lower_omp_for): Likewise.
16752 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16753 clause on simd construct.
16754 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16755 OMP_CLAUSE__CONDTEMP_ clause is present.
16757 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16760 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16763 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16764 TEX_D32, TEX_D64 or TEX_D128.
16766 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16768 * match.pd (~(vec?cst1:cst2)): New transformation.
16770 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16772 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16773 ((size_t)(A /[ex] B) CMP C): New transformation.
16775 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16777 * doc/md.texi: Document define_insn_and_rewrite.
16778 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16779 * gensupport.c (queue_elem): Update comment.
16780 (replace_operands_with_dups): New function.
16781 (gen_rewrite_sequence): Likewise.
16782 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16783 * read-rtl.c (apply_subst_iterator): Likewise.
16784 (add_condition_to_rtx, named_rtx_p): Likewise.
16785 (rtx_reader::read_rtx_operand): Likewise.
16786 * config/aarch64/aarch64-sve.md
16787 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16788 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16789 define_insn_and_rewrite.
16790 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16791 Remove separate define_split.
16793 2019-05-31 Jan Hubicka <jh@suse.cz>
16795 * tree-ssa-alias.c (type_has_components_p): New function.
16796 (aliasing_component_refs_p): Use it.
16798 2019-05-31 Martin Liska <mliska@suse.cz>
16800 * gdbhooks.py: Add const_tree to TreePrinter.
16802 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16805 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16806 * doc/invoke.texi (Debugging Options): Document new default of
16807 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16809 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16811 PR tree-optimization/90671
16812 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16813 template_block used to be empty on the first call, don't use
16814 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16815 seq with bb_seq and set it with set_bb_seq.
16817 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16819 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16821 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16822 Michael Meissner <meissner@linux.ibm.com>
16824 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16825 (prefixed_mem_operand): Likewise.
16826 (non_prefixed_mem_operand): Likewise.
16827 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16829 * config/rs6000/rs6000.c (print_operand_address): Handle
16830 PC-relative addresses.
16831 (mode_supports_prefixed_address_p): New function.
16832 (rs6000_prefixed_address): New function.
16833 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16834 (SYMBOL_REF_PCREL_P): Likewise.
16836 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16838 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16839 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16840 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16841 is nested inside of parallel region, add _condtemp_ clause to both.
16842 * tree-nested.c (convert_nonlocal_omp_clauses,
16843 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16845 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16847 * omp-general.c (omp_extract_for_data): Compute it.
16848 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16849 (lower_rec_input_clauses): Likewise.
16850 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16851 clause is already present, just add one further one after it.
16852 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16853 (lower_send_shared_vars): Clear _condtemp_ vars.
16854 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16855 or section or taskgroup.
16856 * omp-expand.c (determine_parallel_type): Disallow combining only if
16857 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16858 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16859 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16860 expand_omp_for_static_chunk, expand_omp_for): Use
16861 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16862 determine if a special set of API routines are needed and if condtemp
16863 needs to be initialized, while always initialize cond_var if
16864 fd->lastprivate_conditional is non-zero.
16866 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16867 Michael Meissner <meissner@linux.ibm.com>
16869 * config/rs6000/constraints.md (eI): New constraint.
16870 * config/rs6000/predicates.md (cint34_operand): New predicate.
16871 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16872 (SIGNED_34BIT_OFFSET_P): Likewise.
16873 * doc/md.texi (eI): Document constraint.
16875 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16877 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16879 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16880 Michael Meissner <meissner@linux.ibm.com>
16882 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16883 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16884 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16885 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16886 (OTHER_FUTURE_MASKS): Likewise.
16887 (POWERPC_MASKS): Likewise.
16888 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16889 specified without -mprefixed-addr or -mcpu=future. Error if
16890 -mprefixed-addr is specified without -mcpu=future.
16891 (rs6000_opt_masks): Add entry for prefixed-addr.
16892 * rs6000.opt (mprefixed-addr): New option.
16894 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16896 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16897 cfun->is_thunk check.
16899 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16901 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16904 2019-05-30 Martin Liska <mliska@suse.cz>
16906 * gdbinit.in: Fix 'ptc' command. Add trt
16907 that prints TREE_TYPE($).
16909 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16910 Alan Modra <amodra@gmail.com>
16912 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16914 (rs6000_indirect_call_template_1): ...and here.
16915 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16916 plt16_ha, plt16_lo, mtctr indirect calls. Use
16917 rs6000_pltseq_enum.
16918 (rs6000_decl_ok_for_sibcall): New function.
16919 (rs6000_function_ok_for_sibcall): Refactor.
16920 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16921 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16922 when pcrel. Reorganize.
16923 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16924 * rs6000.h (rs6000_pltseq_enum): New enum.
16925 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16926 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16927 (*pltseq_plt16_ha): Likewise.
16928 (*pltseq_plt16_lo): Likewise.
16929 (*pltseq_mtctr): Likewise.
16930 (*pltseq_plt_pcrel): New insn.
16931 (*call_local_aix): Handle @notoc calls.
16932 (*call_value_local_aix): Likewise.
16933 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16934 (*call_value_nonlocal_aix): Likewise.
16935 (*call_indirect_pcrel): New insn.
16936 (*call_value_indirect_pcrel): Likewise.
16938 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16940 * config/i386/sse.md (*save_multiple<mode>): Rename from
16941 save_multiple<mode>.
16942 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16943 (*restore_multiple_and_return<mode>): Rename from
16944 restore_multiple_and_return<mode>.
16945 (*restore_multiple_leave_return<mode>): Rename from
16946 restore_multiple_leave_return<mode>.
16948 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16950 * config.gcc (rx-*-linux*): New target.
16951 * config/rx/elf.opt: New file.
16952 * config/rx/linux.h: Likewise.
16953 * config/rx/t-linux: Likewise.
16954 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16956 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16957 (ASM_APP_OFF): Likewise.
16958 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16961 2019-05-29 Jan Hubicka <jh@suse.cz>
16963 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16964 variants are pointer equivalent.
16966 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16968 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16969 * config/aarch64/aarch64-sve2.md: New file.
16970 (<u>avg<mode>3_floor): New pattern.
16971 (<u>avg<mode>3_ceil): Likewise.
16972 (*<sur>h<addsub><mode>): Likewise.
16973 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16974 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16976 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16979 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16980 for var_opt_string printing. In cl_optimization_print_diff, print
16981 (null) instead of invoking undefined behavior if one of the
16982 var_opt_string pointers is NULL and use && instead of first || in the
16983 guarding condition. For var_target_other options, handle const char *
16984 target variables similarly to const char * optimize node variables.
16986 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
16988 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16989 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16990 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16991 Add autib1716 and pacib1716 initialisation.
16992 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16993 for autib1716 and pacib1716.
16994 * config/aarch64/aarch64-protos.h (aarch64_key_type,
16995 aarch64_post_cfi_startproc): Define.
16996 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16997 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16998 aarch64_handle_pac_ret_protection): Set default sign key to A.
16999 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17000 aarch64_expand_prologue): Add check for b-key.
17001 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17002 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17003 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17004 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17005 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17006 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17007 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17008 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17009 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17010 pauth_hint_num_a with pauth_hint_num.
17011 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17012 pauth_hint_num_a with pauth_hint_num.
17013 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17014 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17015 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17016 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17017 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17018 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17019 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17020 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17021 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17022 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17023 UNSPEC_AUTIA1716 respectively.
17024 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17025 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17026 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17027 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17028 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17029 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17031 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17033 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17034 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17035 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17036 explicit clause on combined parallel into implicit shared clause.
17037 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17038 and firstprivate if the decl has one too from combined parallel to
17039 the worksharing construct.
17041 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17042 Michael Meissner <meissner@linux.ibm.com>
17044 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17046 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17048 * rtl.h (LABEL_REF_P): New #define.
17050 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17052 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17054 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17056 * internal-fn.c: Marked mask_load_direct as vectorizable.
17057 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17058 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17059 combined even if masks different with allow_slp_p param.
17060 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17061 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17062 dissolve SLP-only vectorizable groups when SLP has been discarded.
17063 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17064 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17066 (vect_build_slp_tree_1): Fixed comment typo.
17067 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17068 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17069 loads for SLP only.
17070 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17072 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17074 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17076 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17077 Remove obsolete use_thunk reference.
17078 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17079 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17080 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17081 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17082 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17083 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17084 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17085 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17086 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17088 2019-05-28 Nathan Sidwell <nathan@acm.org>
17090 * tree.h (IDENTIFIER_ANON_P): New.
17091 (anon_aggrname_format, anon_aggname_p): Don't declare.
17092 (make_anon_name): Declare.
17093 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17094 (hash_tree): Likewise.
17095 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17096 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17097 (anon_cnt, make_anon_name): New.
17099 2019-05-28 Martin Liska <mliska@suse.cz>
17102 * opts-global.c (decode_options): Print help for all
17103 help_option_arguments.
17104 * opts.c (print_help): Add new argument.
17105 (common_handle_option): Remember all values into
17106 help_option_arguments.
17107 * opts.h (print_help): Add new argument.
17109 2019-05-28 Martin Liska <mliska@suse.cz>
17112 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17113 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17114 (func_checker::compare_bb): Call compare_loops.
17116 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17118 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17119 on sections construct.
17120 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17122 (lower_omp_sections): Handle lastprivate conditional.
17123 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17124 lastprivate_conditional_map.
17125 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17127 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17128 critical, taskgroup and section regions when looking for a region
17129 with non-NULL lastprivate_conditional_map.
17131 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17133 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17134 (*ix86_gen_sub3): Ditto.
17135 (*ix86_gen_sub3_carry): Ditto.
17136 (*ix86_gen_one_cmpl2): Ditto.
17137 (*ix86_gen_andsp): Ditto.
17138 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17139 (gen_and2_insn): New static function.
17140 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17141 Use gen_add3_insn instead of ix86_gen_add3.
17142 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17143 instead of ix86_gen_add3.
17144 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17145 Use gen_sub3_insn instead of ix86_gen_sub3.
17146 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17147 instead of ix86_gen_add3.
17148 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17149 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17150 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17151 * config/i386/i386-options.c (ix86_option_override_internal):
17152 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17153 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17155 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17157 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17158 and DW_OP_GNU_const_index opcodes.
17160 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17162 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17164 2019-05-27 Richard Biener <rguenther@suse.de>
17166 PR tree-optimization/90637
17167 * tree-ssa-sink.c (statement_sink_location): Honor the
17168 computed sink location for single-uses.
17170 2019-05-27 Richard Biener <rguenther@suse.de>
17172 PR middle-end/90610
17173 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17176 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17178 * config/i386/i386.md (@sub<mode>3_carry): Rename
17179 from sub<mode>3_carry.
17180 (@leave_<mode>): New expander.
17181 (*leave): Rename from leave.
17182 (*leave_rex64): Rename from leave_rex64.
17183 (@monitorx_<mode>): Rename from monitorx_<mode>.
17184 (@clzero_<mode>): Rename from clzero_<mode>.
17185 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17186 from sse3_monitor_<mode>.
17187 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17188 (*ix86_gen_leave): Ditto.
17189 (*ix86_gen_monitor): Ditto.
17190 (*ix86_gen_monitorx): Ditto.
17191 (*ix86_gen_clzero): Ditto.
17192 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17193 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17194 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17195 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17196 Use gen_sse3_monitor instead of ix86_gen_monitor.
17197 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17198 instead of ix86_gen_monitorx.
17199 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17200 instead of ix86_gen_clzero.
17201 * config/i386/i386-options.c (ix86_option_override_internal):
17202 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17203 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17205 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17207 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17208 Rename from tls_global_dynamic_64_<mode>.
17209 (@tls_local_dynamic_base_64_<mode>): Rename from
17210 tls_local_dynamic_base_64_<mode>.
17211 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17212 Remove indirect function.
17213 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17214 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17215 instead of ix86_gen_tls_global_dynamic_64.
17216 Use gen_tls_local_dynamic_base_64 instead of
17217 ix86_gen_tls_local_dynamic_base_64.
17218 * config/i386/i386-options.c (ix86_option_override_internal):
17219 Do not initialize ix86_gen_tls_global_dynamic_64 and
17220 ix86_gen_tls_local_dynamic_base_64.
17222 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17224 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17225 Rename from pro_epilogue_adjust_stack_<mode>_add.
17226 (@pro_epilogue_adjust_stack_sub_<mode>)
17227 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17228 (@allocate_stack_worker_probe_<mode>):
17229 Rename from allocate_stack_worker_probe_<mode>.
17230 (allocate_stack): Use gen_allocate_stack_worker_probe.
17231 (probe_stack): Use gen_probe_stack_1.
17232 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17233 (@adjust_stack_and_probe_<mode>): Rename from
17234 adjust_stack_and_probe<mode>.
17235 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17236 (stack_protect_set): Use gen_stack_protect_set_1.
17237 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17238 (stack_protect_test): Use gen_stack_protect_test_1.
17239 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17240 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17241 Remove indirect function.
17242 (*ix86_gen_adjust_stack_and_probe): Ditto.
17243 (*ix86_gen_probe_stack_range): Ditto.
17244 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17245 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17246 (ix86_adjust_stack_and_probe_stack_clash): Use
17247 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17248 (ix86_adjust_stack_and_probe): Ditto.
17249 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17250 of ix86_gen_probe_stack_range.
17251 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17252 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17253 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17254 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17255 CODE_FOR_stack_protect_test_{si,di}.
17256 * config/i386/i386-options.c (ix86_option_override_internal):
17257 Do not initialize ix86_gen_allocate_stack_worker,
17258 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17260 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17262 * doc/invoke.texi (Link Options): Many editorial changes around
17265 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17267 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17268 pre-Solaris 11 referene and most Studio compiler details.
17270 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17273 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17274 DImode to SImode in floating-point registers on 64-bit target.
17275 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17276 register_operand in xmpyu patterns.
17278 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17280 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17281 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17282 OMP_CLAUSE__REDUCTEMP_.
17283 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17284 OMP_CLAUSE__CONDTEMP_.
17285 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17286 * tree-pretty-print.c (dump_omp_clause): Likewise.
17287 * tree-nested.c (convert_nonlocal_omp_clauses,
17288 convert_local_omp_clauses): Likewise.
17289 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17290 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17291 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17293 (gimplify_omp_for): Warn and disable conditional modifier from
17294 lastprivate on loop iterators.
17295 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17297 * omp-general.c (omp_extract_for_data): Initialize it.
17298 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17300 (delete_omp_context): Delete it.
17301 (lower_lastprivate_conditional_clauses): New function.
17302 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17303 handle lastprivate conditional clauses.
17304 (lower_reduction_clauses): Add CLIST argument, emit it into
17305 the critical section if any.
17306 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17307 lower_reduction_clauses callers.
17308 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17309 to lower_lastprivate_clauses.
17310 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17311 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17312 clist into a critical section if not emitted there already by
17313 lower_reduction_clauses.
17314 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17316 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17317 conditional variables.
17318 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17320 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17321 expand_omp_for_static_chunk): Handle lastprivate conditional.
17322 (expand_omp_for): Handle fd.lastprivate_conditional like
17325 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17327 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17328 kernel does not exit cleanly.
17329 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17331 2019-05-24 Jason Merrill <jason@redhat.com>
17334 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17336 2019-05-24 Richard Biener <rguenther@suse.de>
17339 * tree-loop-distribution.c (struct partition): Add location
17341 (partition_alloc): Initialize all fields.
17342 (generate_memset_builtin): Use the location recorded in the
17343 partition for the generated call.
17344 (generate_memcpy_builtin): Likewise.
17345 (classify_partition): Record the location of a single store
17346 as location for the partition.
17348 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17350 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17353 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17356 * common/config/aarch64/aarch64-common.c
17357 (aarch64_rewrite_selected_cpu): Change local temporary variable
17358 type from unsigned long to uint64_t.
17359 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17360 aarch64_get_extension_string_for_isa_flags): Change declaration to
17361 match new definition by replacing unsigned long with uint64_t.
17363 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17366 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17367 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17368 Handle stack_protect_test_<mode> codegen similarly to corresponding
17371 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17373 * config/i386/darwin.h: Reject -mfentry*.
17374 * doc/sourcebuild.texi: Document mfentry target support.
17376 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17378 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17379 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17380 false for PC-relative functions.
17381 (rs6000_output_function_prologue): Change called function name to
17382 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17383 name,1" for PC-relative functions.
17384 (rs6000_elf_declare_function_name): Change called function name to
17385 rs6000_global_entry_point_prologue_needed_p.
17387 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17390 * config/i386/i386.c (gen_rtx_cost):
17391 Use ix86_tune_cost instead of ix86_cost.
17393 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17394 Michael Meissner <meissner@linux.ibm.com>
17395 Segher Boessenkool <segher@kernel.crashing.org>
17397 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17399 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17400 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17401 (rs6000_fndecl_pcrel_p): Likewise.
17402 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17403 error if -mpcrel is requested without -mcpu=future.
17404 (rs6000_opt_masks): Add entry for pcrel.
17405 (rs6000_fndecl_pcrel_p): New function.
17406 (rs6000_pcrel_p): Likewise.
17407 * config/rs6000/rs6000.opt (mpcrel): New option.
17408 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17410 2019-05-23 Jan Hubicka <jh@suse.cz>
17411 Martin Liska <mliska@suse.cz>
17413 PR tree-optimization/90576
17414 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17416 (aliasing_component_refs_p): Fix three way size compare conditional;
17417 give up earlier in case we can not decide on equivalence.
17419 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17420 Michael Meissner <meissner@linux.ibm.com>
17421 Segher Boessenkool <segher@kernel.crashing.org>
17423 * config.gcc: Add future cpu.
17424 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17425 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17427 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17428 (RS6000_CPU): New instantiation for future cpu.
17429 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17431 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17432 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17433 * config/rs6000/rs6000-tables.opt: Regenerate.
17434 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17435 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17436 (rs6000_machine_from_flags): Handle future cpu.
17437 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17438 PROCESSOR_POWER9 for now.
17439 (rs6000_adjust_cost): Likewise.
17440 (rs6000_issue_rate): Likewise.
17441 (rs6000_register_move_cost): Likewise.
17442 (rs6000_opt_masks): Add entry for future.
17443 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17444 (MASK_FUTURE): New #define.
17445 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17446 * config/rs6000/rs6000.opt (mfuture): New target option.
17447 * doc/invoke.texi (mcpu): Add future cpu.
17449 2019-05-23 Martin Liska <mliska@suse.cz>
17452 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17453 operation points to a temporary (pointed via tree_to_wide_ref)
17454 that is out of scope after the &.
17456 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17459 * doc/extend.texi (Function Names): Add missing word.
17461 2019-05-23 Richard Biener <rguenther@suse.de>
17463 PR tree-optimization/88440
17464 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17466 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17468 (generate_memcpy_builtin): Likewise.
17469 (distribute_loop): Pass in whether to only distribute patterns.
17470 (prepare_perfect_loop_nest): Also allow size optimization.
17471 (pass_loop_distribution::execute): When optimizing a loop
17472 nest for size allow pattern replacement.
17474 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17477 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17480 2019-05-23 Martin Liska <mliska@suse.cz>
17483 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17484 expression similarly to gimplify_decl_expr.
17486 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17488 * cse.c (cse_dump_path): s/dump_file/f.
17490 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17493 * diagnostic-format-json.cc: Include "selftest.h".
17494 (json_from_expanded_location): Only add "file" key for non-NULL
17496 (json_from_location_range): Don't add "start" and "finish"
17497 children if they are UNKNOWN_LOCATION.
17498 (selftest::test_unknown_location): New selftest.
17499 (selftest::test_bad_endpoints): New selftest.
17500 (selftest::diagnostic_format_json_cc_tests): New function.
17501 * json.cc (json::object::get): New function.
17502 (selftest::test_object_get): New selftest.
17503 (selftest::json_cc_tests): Call it.
17504 * json.h (json::object::get): New decl.
17505 * selftest-run-tests.c (selftest::run_tests): Call
17506 selftest::diagnostic_format_json_cc_tests.
17507 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17510 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17511 Andrew Stubbs <amd@codesourcery.com>
17513 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17514 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17515 (kernel): Rename to...
17516 (main_kernel): ... this.
17517 (load_image): Load _init_array and _fini_array kernels.
17518 (run): Add argument for kernel to run.
17519 (main): Run init_array_kernel before main_kernel, and
17520 fini_array_kernel after.
17521 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17522 amdgpu_hsa_kernel attribute on functions.
17523 (gcn_disable_constructors): Delete.
17524 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17525 * config/gcn/crt0.c (size_t): Define.
17526 (_init_array, _fini_array): New.
17527 (__preinit_array_start, __preinit_array_end,
17528 __init_array_start, __init_array_end,
17529 __fini_array_start, __fini_array_end): Declare weak references.
17531 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17533 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17535 2019-05-22 Jason Merrill <jason@redhat.com>
17537 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17539 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17542 * config/i386/i386-options.c (ix86_init_machine_status): Set
17543 stack_frame_required to true.
17544 * config/i386/i386.c (ix86_get_frame_size): New function.
17545 (ix86_frame_pointer_required): Replace get_frame_size with
17546 ix86_get_frame_size.
17547 (ix86_compute_frame_layout): Likewise.
17548 (ix86_find_max_used_stack_alignment): Changed to void. Set
17549 stack_frame_required.
17550 (ix86_finalize_stack_frame_flags): Always call
17551 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17552 ix86_get_frame_size.
17553 * config/i386/i386.h (machine_function): Add stack_frame_required.
17555 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17557 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17559 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17561 * common/config/aarch64/aarch64-common.c
17562 (struct aarch64_option_extension, struct processor_name_to_arch,
17563 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17564 aarch64_contains_opt,
17565 aarch64_get_extension_string_for_isa_flags): Change type of
17566 variables storing flags to uint64_t.
17567 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17568 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17569 * config/aarch64/aarch64.c (struct processor,
17570 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17571 aarch64_validate_march, aarch64_override_options,
17572 aarch64_option_print, aarch64_handle_attr_isa_flags,
17573 aarch64_declare_function_name, aarch64_start_file): Make flag
17574 variables uint64_t.
17575 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17576 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17577 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17578 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17579 * config/aarch64/driver-aarch64.c
17580 (struct aarch64_arch_extension, struct aarch64_core_data,
17581 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17582 flag variables uint64_t.
17583 * doc/invoke.texi: Add documentation for new arguments.
17585 2019-05-22 Richard Biener <rguenther@suse.de>
17587 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17589 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17591 2019-05-22 Martin Liska <mliska@suse.cz>
17594 * doc/extend.texi: Document the change.
17596 2019-05-22 Richard Biener <rguenther@suse.de>
17598 PR tree-optimization/90450
17599 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17600 (mem_ref_hasher::equal): Check it.
17601 (mem_ref_alloc): Initialize it.
17602 (gather_mem_refs_stmt): Set it.
17604 2019-05-22 Richard Biener <rguenther@suse.de>
17606 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17608 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17611 2019-05-22 Alan Modra <amodra@gmail.com>
17613 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17614 (ASM_CPU_SPEC): Conditionally add -many.
17615 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17616 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17617 (rs6000_file_start): ..extracted from here, and modified to
17619 (rs6000_output_function_prologue): Emit .machine as necessary.
17621 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17623 PR middle-end/90553
17624 * ira-lives.c (process_bb_node_lives): Consider defs
17625 for a call insn to be die before the call, not after.
17627 * function.c (assign_parm_setup_block): Raise alignment of
17628 stacked parameter only for STRICT_ALIGNMENT targets.
17630 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17632 * config/rs6000/constraints.md (define_register_constraint "wz"):
17634 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17635 RS6000_CONSTRAINT_wz.
17636 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17637 (rs6000_init_hard_regno_mode_ok): Adjust.
17638 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17639 * doc/md.texi (Machine Constraints): Adjust.
17641 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17643 * config/rs6000/constraints.md (define_register_constraint "wl"):
17645 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17646 RS6000_CONSTRAINT_wl.
17647 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17648 (rs6000_init_hard_regno_mode_ok): Adjust.
17649 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17650 * doc/md.texi (Machine Constraints): Adjust.
17652 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17654 * config/rs6000/constraints.md (define_register_constraint "wm"):
17656 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17657 RS6000_CONSTRAINT_wm.
17658 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17659 (rs6000_init_hard_regno_mode_ok): Adjust.
17660 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17661 * doc/md.texi (Machine Constraints): Adjust.
17663 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17665 * config/rs6000/constraints.md (define_register_constraint "wk"):
17667 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17668 RS6000_CONSTRAINT_wk.
17669 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17670 (rs6000_init_hard_regno_mode_ok): Adjust.
17671 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17672 * doc/md.texi (Machine Constraints): Adjust.
17674 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17676 * config/rs6000/constraints.md (define_register_constraint "wj"):
17678 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17679 RS6000_CONSTRAINT_wj.
17680 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17681 (rs6000_init_hard_regno_mode_ok): Adjust.
17682 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17684 * config/rs6000/vsx.md: Ditto.
17685 * doc/md.texi (Machine Constraints): Adjust.
17687 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17689 * config/rs6000/constraints.md (define_register_constraint "wh"):
17691 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17692 RS6000_CONSTRAINT_wh.
17693 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17694 (rs6000_init_hard_regno_mode_ok): Adjust.
17695 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17696 * doc/md.texi (Machine Constraints): Adjust.
17698 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17701 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17702 Avoid calling gen_lowpart with CONST operand.
17704 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17706 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17707 field template_last_to_copy.
17708 (ssa_create_duplicates): Set it, and use it. Attempt to
17709 preserve more debug stmts.
17711 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17713 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17714 (signbit<mode>2): New expander
17716 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17719 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17720 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17722 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17724 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17725 %ebx and %ecx bafore calling cpuid with leaf 1 or
17726 non-constant leaf argument.
17728 2019-05-21 Alan Modra <amodra@gmail.com>
17731 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17732 power9 direct move cost.
17734 2019-05-21 Richard Biener <rguenther@suse.de>
17736 PR middle-end/90510
17737 * fold-const.c (fold_read_from_vector): New function.
17738 * fold-const.h (fold_read_from_vector): Declare.
17739 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17740 single-element insert permutations. Canonicalize selector
17741 further and fix issue with last commit.
17743 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17745 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17746 parameter with default value false to declaration.
17747 (split_edges_for_insertion): New inline function. Wrapper for
17748 split_critical_edges with for_edge_insertion_p = true.
17749 * tree-cfg.c (split_critical_edges): Don't split non-critical
17750 edges if for_edge_insertion_p is false. Fix whitespace.
17751 * tree-ssa-pre.c (pass_pre::execute): Call
17752 split_edges_for_insertion instead of split_critical_edges.
17753 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17754 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17755 (pass_data_sink_code): Update function name in the comment.
17757 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17759 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17760 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17761 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17762 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17765 2019-05-21 Martin Liska <mliska@suse.cz>
17767 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17769 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17770 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17772 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17774 (rs6000_function_arg): Likewise.
17775 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17776 (rs6000_expand_ternop_builtin): Use interval syntax.
17777 (get_element_number): Likewise.
17778 (altivec_expand_builtin): Likewise.
17779 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17781 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17785 * function.h (struct function): Add calls_eh_return member.
17786 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17787 gimplifying __builtin_eh_return call.
17788 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17790 (expand_call_inline): Or in src_cfun->calls_eh_return into
17791 dst_cfun->calls_eh_return.
17792 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17793 cfun->calls_eh_return.
17794 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17795 * lto-streamer-out.c (output_struct_function_base): Write
17798 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17800 PR rtl-optimization/43147
17801 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17802 IX86_BUILTIN_SHUFPD.
17804 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17806 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17807 (refs_may_alias_p_1): ... here; update stats.
17808 (refs_may_alias_p): Do not update stats here.
17810 2019-05-20 Richard Biener <rguenther@suse.de>
17812 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17813 doesn't produce pointers.
17814 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17815 the first operand points to.
17817 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17819 * tree-ssa-alias.c (compare_sizes): New function.
17820 (sompare_type_sizes): New function
17821 (aliasing_component_refs_p): Use it.
17822 (indirect_ref_may_alias_decl_p): Likewise.
17824 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17826 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17828 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17830 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17831 (LIBLSAN_EARLY_SPEC): Likewise.
17832 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17834 2019-05-20 Martin Liska <mliska@suse.cz>
17836 * config/i386/i386.c (ix86_libc_has_fast_function):
17837 Add ATTRIBUTE_UNUSED for the argument.
17839 2019-05-20 Richard Biener <rguenther@suse.de>
17841 * gimple-match-head.c: Include vec-perm-indices.h.
17842 * generic-match-head.c: Likewise.
17843 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17845 * fold-const.c (fold_vec_perm): Export.
17846 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17847 (match.pd): ...here.
17849 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17851 * cfgloop.h (struct loop): Add simdlen member.
17852 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17853 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17854 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17855 as new argument to autovectorize_vector_sizes target hook. If
17856 loop->simdlen, pick up vector size where the vectorization factor
17857 is equal to loop->simd, and if there is none, fall back to the first
17859 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17861 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17862 * omp-general.c (omp_max_vf): Likewise.
17863 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17864 * tree-vect-slp.c (vect_slp_bb): Likewise.
17865 * target.def (autovectorize_vector_sizes): Add ALL argument and
17867 * doc/tm.texi: Adjust documentation.
17868 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17869 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17870 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17872 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17873 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17874 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17875 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17876 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17877 preferred vector size is not 512-bit or 256-bit, just put those
17878 unpreferred ones last.
17880 2019-05-20 Martin Liska <mliska@suse.cz>
17882 * targhooks.c (default_libc_has_fast_function): New function.
17883 * targhooks.h (default_libc_has_fast_function): Likewise.
17885 2019-05-20 Martin Liska <mliska@suse.cz>
17887 PR middle-end/90263
17888 * builtins.c (expand_builtin_memory_copy_args): When having a
17889 target with fast mempcpy implementation do now use memcpy.
17890 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17891 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17892 * doc/tm.texi: Likewise.
17893 * doc/tm.texi.in: Likewise.
17895 * expr.c (emit_block_move_hints): Add 2 new arguments.
17896 * expr.h (emit_block_move_hints): Bail out when libcall
17897 to memcpy would be used.
17899 2019-05-20 Martin Liska <mliska@suse.cz>
17901 * profile-count.c: Add vertical spacing in order
17902 to separate functions.
17903 * profile-count.h: Likewise.
17905 2019-05-20 Martin Liska <mliska@suse.cz>
17907 * profile-count.h: Do not use full qualified
17909 * profile-count.c (profile_count::to_frequency): Likewise.
17911 2019-05-20 Martin Liska <mliska@suse.cz>
17913 * profile-count.h (enum profile_quality): Use capital letters
17914 for enum value names. Use the adjusted names.
17915 * profile-count.c: Use the adjusted names.
17917 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17919 * config/rs6000/constraints.md (define_register_constraint "wH"):
17921 (define_register_constraint "wI"): Delete.
17922 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17923 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17924 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17925 (rs6000_init_hard_regno_mode_ok): Adjust.
17926 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17927 resp. "d", or with "wa" as appropriate, all with "p8v".
17928 * config/rs6000/vsx.md: Ditto.
17929 * doc/md.texi (Machine Constraints): Adjust.
17931 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17933 * config/rs6000/constraints.md (define_register_constraint "wy"):
17935 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17936 RS6000_CONSTRAINT_wy.
17937 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17938 (rs6000_init_hard_regno_mode_ok): Adjust.
17939 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17940 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17941 (define_mode_attr Fisa): New.
17942 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17943 * doc/md.texi (Machine Constraints): Adjust.
17945 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17947 * config/rs6000/constraints.md (define_register_constraint "wu"):
17949 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17950 RS6000_CONSTRAINT_wu.
17951 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17952 (rs6000_init_hard_regno_mode_ok): Adjust.
17953 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17955 (define_mode_attr Fa): Delete.
17956 * config/rs6000/vsx.md: Ditto.
17957 * doc/md.texi (Machine Constraints): Adjust.
17959 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17961 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17963 (define_register_constraint "wK"): Delete.
17964 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17965 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17966 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17967 (rs6000_init_hard_regno_mode_ok): Adjust.
17968 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17969 Replace "wK" constraint by "wH" with "p9v".
17970 * config/rs6000/vsx.md: Ditto.
17971 * doc/md.texi (Machine Constraints): Adjust.
17973 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17975 * config/rs6000/constraints.md (define_register_constraint "wb"):
17977 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17978 RS6000_CONSTRAINT_wb.
17979 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17980 (rs6000_init_hard_regno_mode_ok): Adjust.
17981 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17982 * config/rs6000/vsx.md: Ditto.
17983 * doc/md.texi (Machine Constraints): Adjust.
17985 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17987 * config/rs6000/constraints.md (define_register_constraint "wo"):
17989 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17990 RS6000_CONSTRAINT_wo.
17991 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17992 (rs6000_init_hard_regno_mode_ok): Adjust.
17993 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17994 * config/rs6000/altivec.md: Ditto.
17995 * doc/md.texi (Machine Constraints): Adjust.
17997 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17999 * config/darwin-c.c (darwin_register_objc_includes): Do not
18000 prepend the sysroot when building gnu-runtime header search
18003 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18005 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18006 instead of direct output of the asm.
18008 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18010 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18011 argument to be type bool (was int before).
18012 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18013 at first use. Use type bool for some variables. Fix a theoretical
18014 eh_return bug for svr4.
18016 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18018 * config/rs6000/rs6000.md (isa): New attribute.
18019 (enabled): New attribute.
18021 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18023 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18024 assemble_start_function and assemble_end_function.
18026 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18028 PR middle-end/89433
18029 * omp-general.c (oacc_verify_routine_clauses): Change formal
18030 parameters. Add checking if already marked with an OpenACC
18031 'routine' directive. Adjust all users.
18033 PR middle-end/89433
18034 * omp-general.c (oacc_build_routine_dims): Move some of its
18036 (oacc_verify_routine_clauses): ... this new function.
18037 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18039 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18041 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18042 formating of picbase labels to match other ports.
18044 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18046 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18047 in the generated code.
18049 2019-05-16 Martin Sebor <msebor@redhat.com>
18051 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18052 identifiers, keywords, operators, and types in diagnostics. Correct
18053 quoting, spelling, and sentence capitalization issues.
18054 (expand_builtin_atomic_is_lock_free): Same.
18055 (fold_builtin_next_arg): Same.
18056 * cfgexpand.c (expand_one_var): Same.
18057 (tree_conflicts_with_clobbers_p): Same.
18058 (expand_asm_stmt): Same.
18059 (verify_loop_structure): Same.
18060 * cgraphunit.c (process_function_and_variable_attributes): Same.
18061 * collect-utils.c (collect_execute): Same.
18062 * collect2.c (maybe_run_lto_and_relink): Same.
18063 (is_lto_object_file): Same.
18064 (scan_prog_file): Same.
18065 * convert.c (convert_to_real_1): Same.
18066 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18067 * except.c (verify_eh_tree): Same.
18068 * gcc.c (execute): Same.
18069 (eval_spec_function): Same.
18070 (run_attempt): Same.
18071 (driver::set_up_specs): Same.
18072 (compare_debug_auxbase_opt_spec_function): Same.
18073 * gcov-tool.c (unlink_gcda_file): Same.
18075 (do_rewrite): Same.
18076 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18077 * gimplify.c (gimplify_asm_expr): Same.
18078 (gimplify_adjust_omp_clauses): Same.
18079 * hsa-gen.c (gen_hsa_addr_insns): Same.
18080 (gen_hsa_insns_for_load): Same.
18081 (gen_hsa_cmp_insn_from_gimple): Same.
18082 (gen_hsa_insns_for_operation_assignment): Same.
18083 (gen_get_level): Same.
18084 (gen_hsa_alloca): Same.
18085 (omp_simple_builtin::generate): Same.
18086 (gen_hsa_atomic_for_builtin): Same.
18087 (gen_hsa_insns_for_call): Same.
18088 * input.c (dump_location_info): Same.
18089 * ipa-devirt.c (compare_virtual_tables): Same.
18090 * ira.c (ira_setup_eliminable_regset): Same.
18091 * lra-assigns.c (lra_assign): Same.
18092 * lra-constraints.c (lra_constraints): Same.
18093 * lto-streamer-in.c (lto_input_mode_table): Same.
18094 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18095 (merge_and_complain): Same.
18096 (compile_offload_image): Same.
18097 (compile_images_for_offload_targets): Same.
18098 (debug_objcopy): Same.
18101 * opts.c (print_specific_help): Same.
18102 (parse_no_sanitize_attribute): Same.
18103 (print_help): Same.
18104 (handle_param): Same.
18105 * plugin.c (add_new_plugin): Same.
18106 (parse_plugin_arg_opt): Same.
18107 (try_init_one_plugin): Same.
18108 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18109 operators, and types in diagnostics. Correct quoting and spelling
18111 * read-rtl-function.c (parse_edge_flag_token): Same.
18112 (function_reader::parse_enum_value): Same.
18113 * reg-stack.c (check_asm_stack_operands): Same.
18114 * regcprop.c (validate_value_data): Same.
18115 * sched-rgn.c (make_pass_sched_fusion): Same.
18116 * stmt.c (check_unique_operand_names): Same.
18117 * targhooks.c (default_target_option_pragma_parse): Same.
18118 * tlink.c (recompile_files): Same.
18119 * toplev.c (process_options): Same.
18120 (do_compile): Same.
18121 * trans-mem.c (diagnose_tm_1): Same.
18122 (ipa_tm_scan_irr_block): Same.
18123 (ipa_tm_diagnose_transaction): Same.
18124 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18125 format a tree code name in a diagnostic.
18126 (verify_types_in_gimple_min_lval): Same.
18127 (verify_types_in_gimple_reference): Same.
18128 (verify_gimple_call): Same.
18129 (verify_gimple_assign_unary): Same.
18130 (verify_gimple_assign_binary): Same.
18131 (verify_gimple_assign_ternary): Same.
18132 (verify_gimple_assign_single): Same.
18133 (verify_gimple_switch): Same.
18134 (verify_gimple_label): Same.
18135 (verify_gimple_phi): Same.
18136 (verify_gimple_in_seq): Same.
18137 (verify_eh_throw_stmt_node): Same.
18138 (collect_subblocks): Same.
18139 (gimple_verify_flow_info): Same.
18140 (do_warn_unused_result): Same.
18141 * tree-inline.c (expand_call_inline): Same.
18142 * tree-into-ssa.c (update_ssa): Same.
18143 * tree.c (tree_int_cst_elt_check_failed): Same.
18144 (tree_vec_elt_check_failed): Same.
18145 (omp_clause_operand_check_failed): Same.
18146 (verify_type_variant): Same.
18147 (verify_type): Same.
18148 * value-prof.c (verify_histograms): Same.
18149 * varasm.c (assemble_start_function): Same.
18151 2019-05-16 Martin Sebor <msebor@redhat.com>
18153 * config/i386/i386-expand.c (get_element_number): Quote keywords
18154 and other internal names in diagnostics. Adjust other diagnostic
18155 formatting issues noted by -Wformat-diag.
18156 * config/i386/i386-features.c
18157 (ix86_mangle_function_version_assembler_name): Same.
18158 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18159 * config/i386/i386.c (ix86_function_type_abi): Same.
18160 (ix86_function_ms_hook_prologue): Same.
18161 (classify_argument): Same.
18162 (ix86_expand_prologue): Same.
18163 (ix86_md_asm_adjust): Same.
18164 (ix86_memmodel_check): Same.
18166 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18168 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18169 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18172 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18175 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18176 intrinsics without SSE/SSE2/SSSE3.
18177 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18179 (*mmx_uavgv8qi3): Likewise.
18181 2019-05-17 Richard Biener <rguenther@suse.de>
18183 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18184 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18186 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18188 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18189 vec_sldw insn pattern.
18191 2019-05-17 Richard Biener <rguenther@suse.de>
18193 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18195 2019-05-17 Martin Liska <mliska@suse.cz>
18198 * toplev.c (output_stack_usage): With LTO and sanitizer it
18199 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18200 has no file location.
18202 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18205 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18206 sz0 is equal to sz1, instead return false in that case.
18208 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18209 has non-constant expression, force sctx.lane and use two
18210 argument IFN_GOMP_SIMD_LANE instead of single argument.
18211 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18212 two argument IFN_GOMP_SIMD_LANE without lhs.
18213 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18215 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18217 (LOOP_REQUIRES_VERSIONING): Or in
18218 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18219 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18221 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18222 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18223 from simd if clause if needed.
18225 2019-05-16 Richard Biener <rguenther@suse.de>
18227 * tree-affine.c (expr_to_aff_combination): New function split
18229 (tree_to_aff_combination): ... here.
18230 (aff_combination_expand): Avoid building a GENERIC tree.
18232 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18234 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18235 assemble_start_function and assemble_end_function calls.
18236 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18237 assemble_start_function and assemble_end_function.
18238 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18239 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18240 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18241 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18242 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18243 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18244 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18245 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18246 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18247 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18248 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18249 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18251 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18252 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18253 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18254 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18255 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18256 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18257 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18258 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18259 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18260 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18261 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18262 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18263 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18264 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18266 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18267 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18268 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18270 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18272 * tree-ssa-alias.c (alias_stats): Add
18273 aliasing_component_refs_p_may_alias and
18274 aliasing_component_refs_p_no_alias.
18275 (dump_alias_stats): Print aliasing_component_refs_p stats.
18276 (aliasing_component_refs_p): Update stats.
18278 2019-05-16 Martin Liska <mliska@suse.cz>
18281 * multiple_target.c (expand_target_clones): Do not allow
18282 target_clones being used with a symbol that is an alias.
18284 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18286 PR tree-optimization/90394
18287 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18288 positives rather than ICE for cases where (code2 == NE_EXPR
18289 && code1 == BIT_AND_EXPR).
18291 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18294 * tree-core.h (struct tree_decl_common): Document
18295 decl_nonshareable_flag for PARM_DECLs.
18296 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18297 * calls.c (expand_call): Don't try tail call if caller
18298 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18299 passed on the stack and callee needs to pass any arguments on the
18301 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18302 else if instead of series of mutually exclusive ifs. Handle
18303 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18304 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18306 * lto-streamer.h (LTO_major_version): Bump to 9.
18308 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18310 PR tree-optimization/90106
18311 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18312 new parameter as new internal function call, also move it to new
18314 (use_internal_fn): Pass internal function call to
18315 shrink_wrap_one_built_in_call_with_conds.
18317 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18319 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18321 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18322 safelen_int and set loop->dont_vectorize.
18324 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18327 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18329 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18331 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18332 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18333 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18336 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18339 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18340 define_insn_and_split to support SSE emulation.
18341 (*vec_extractv2sf_0): Likewise.
18342 (*vec_extractv2sf_1): Likewise.
18343 (*vec_extractv2si_0): Likewise.
18344 (*vec_extractv2si_1): Likewise.
18345 (*vec_extractv2si_zext_mem): Likewise.
18346 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18347 (vec_extractv2sf_1 splitter): Likewise.
18348 (vec_extractv2sfsf): Likewise.
18349 (vec_setv2si): Likewise.
18350 (vec_extractv2si_1 splitter): Likewise.
18351 (vec_extractv2sisi): Likewise.
18352 (vec_setv4hi): Likewise.
18353 (vec_extractv4hihi): Likewise.
18354 (vec_setv8qi): Likewise.
18355 (vec_extractv8qiqi): Likewise.
18356 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18357 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18358 (vec_extractv2sisi): Likewise.
18359 (vec_extractv4hihi): Likewise.
18360 (vec_extractv8qiqi): Likewise.
18361 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18362 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18363 (vec_initv2sisi): Likewise.
18364 (vec_initv4hihi): Likewise.
18365 (vec_initv8qiqi): Likewise.
18366 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18367 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18368 (vec_setv4hi): Likewise.
18369 (vec_setv8qi): Likewise.
18371 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18374 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18375 TARGET_MMX_WITH_SSE.
18376 (MMXMODE:*mov<mode>_internal): Likewise.
18377 (MMXMODE:movmisalign<mode>): Likewise.
18379 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18382 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18383 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18384 (sse2_cvtpd2pi): Ditto.
18385 (sse2_cvttpd2pi): Ditto.
18386 (*vec_concatv2sf_sse4_1): Ditto.
18387 (*vec_concatv2sf_sse): Ditto.
18388 (*vec_concatv2si_sse4_1): Ditto.
18389 (*vec_concatv2si): Ditto.
18390 (*vec_concatv4si_0): Ditto.
18391 (*vec_concatv2di_0): Ditto.
18393 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18396 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18398 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18401 * config/i386/sse.md (ssse3_palignrdi): Changed to
18402 define_insn_and_split to support SSE emulation.
18404 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18407 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18409 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18412 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18413 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18416 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18419 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18420 or TARGET_MMX_WITH_SSE.
18421 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18423 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18426 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18428 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18431 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18432 Changed to define_insn_and_split to support SSE emulation.
18434 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18437 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18438 Changed to define_insn_and_split to support SSE emulation.
18440 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18443 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18444 (*mmx_<emms>): This.
18445 (mmx_<emms>): New expander.
18447 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18450 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18452 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18454 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18457 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18459 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18462 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18464 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18467 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18468 TARGET_MMX_WITH_SSE.
18469 (*mmx_uavgv4hi3): Add SSE emulation.
18471 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18474 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18475 and TARGET_MMX_WITH_SSE.
18476 (*mmx_uavgv8qi3): Add SSE emulation.
18478 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18481 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18482 maskmovdqu for __MMX_WITH_SSE__.
18484 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18487 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18488 TARGET_MMX and TARGET_MMX_WITH_SSE.
18489 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18491 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18494 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18495 define_insn_and_split to support SSE emulation.
18497 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18500 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18501 and TARGET_MMX_WITH_SSE.
18502 (mmx_<code>v8qi3): Likewise.
18503 (smaxmin:<code>v4hi3): New.
18504 (umaxmin:<code>v8qi3): Likewise.
18505 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18506 (umaxmin:*mmx_<code>v8qi3): Likewise.
18508 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18511 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18512 TARGET_MMX_WITH_SSE.
18513 (*mmx_pinsrw): Add SSE emulation.
18515 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18518 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18520 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18523 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18524 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18527 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18530 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18531 (sse_cvttps2pi): Likewise.
18533 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18536 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18537 TARGET_MMX_WITH_SSE.
18538 (mmx_pshufw_1): Add SSE emulation.
18539 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18540 TARGET_MMX_WITH_SSE to support SSE emulation.
18542 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18545 * config/i386/constraints.md (Yw): New constraint.
18546 * config/i386/mmx.md (*vec_dupv2si): Changed to
18547 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18548 support SSE emulation.
18550 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18553 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18554 TARGET_MMX_WITH_SSE.
18555 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18557 (mmx_gt<mode>3): Likewise.
18559 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18562 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18563 TARGET_MMX_WITH_SSE. Add SSE support.
18565 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18568 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18569 TARGET_MMX_WITH_SSE.
18570 (any_logic:<code><mode>3): New.
18571 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18574 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18577 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18578 TARGET_MMX_WITH_SSE. Add SSE emulation.
18579 (mmx_<shift_insn><mode>3): Likewise.
18580 (ashr<mode>3): New.
18581 (<shift_insn><mode>3): Likewise.
18583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18586 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18587 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18589 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18592 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18593 TARGET_MMX_WITH_SSE.
18594 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18597 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18600 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18601 TARGET_MMX_WITH_SSE.
18603 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18606 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18609 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18610 (plusminus:mmx_<plusminus_insn><mode>3): Check
18611 TARGET_MMX_WITH_SSE.
18612 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18613 (<plusminus_insn><mode>3): New.
18614 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18615 (*mmx_<plusminus_insn><mode>3): Likewise.
18617 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18620 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18621 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18623 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18624 define_insn_and_split to support SSE emulation.
18625 (mmx_punpcklbw): Likewise.
18626 (mmx_punpckhwd): Likewise.
18627 (mmx_punpcklwd): Likewise.
18628 (mmx_punpckhdq): Likewise.
18629 (mmx_punpckldq): Likewise.
18631 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18632 Uros Bizjak <ubizjak@gmail.com>
18635 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18637 (ix86_split_mmx_pack): Likewise.
18638 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18640 (ix86_split_mmx_pack): Likewise.
18641 * config/i386/i386.md (mmx_isa): New.
18642 (enabled): Also check mmx_isa.
18643 * config/i386/mmx.md (any_s_truncate): New code iterator.
18644 (s_trunsuffix): New code attr.
18645 (mmx_packsswb): Removed.
18646 (mmx_packssdw): Likewise.
18647 (mmx_packuswb): Likewise.
18648 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18649 MMX packsswb/packuswb with SSE2.
18650 (mmx_packssdw): Likewise.
18651 * config/i386/predicates.md (register_mmxmem_operand): New.
18653 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18656 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18657 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18658 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18659 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18660 (ix86_vector_mode_supported_p): Likewise.
18661 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18663 2019-05-15 Martin Liska <mliska@suse.cz>
18665 PR middle-end/90478
18666 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18667 Check for overflow.
18669 2019-05-15 Richard Biener <rguenther@suse.de>
18671 * tree-into-ssa.c (pass_build_ssa::execute): Run
18672 update_address_taken before going into SSA.
18674 2019-05-15 Richard Biener <rguenther@suse.de>
18676 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18677 as __BIT_FIELD_REF with type with -gimple.
18679 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18681 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18682 semantically equivalent branches (left over after prior refactorings).
18684 2019-05-15 Richard Biener <rguenther@suse.de>
18686 PR tree-optimization/88828
18687 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18690 2019-05-14 Richard Biener <rguenther@suse.de>
18692 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18693 as __VIEW_CONVERT with -gimple.
18695 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18698 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18701 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18703 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18704 define_split to become a define_insn_and_split.
18706 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18708 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18710 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18711 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18712 (sibcall_epilogue): Adjust.
18713 (epilogue): Adjust.
18715 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18717 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18718 to unsupported ones.
18719 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18720 * config.host: Likewise.
18721 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18722 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18723 __svr4__]: Remove "brand" fallback.
18724 [!KSTAT_DATA_STRING]: Remove.
18725 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18727 (comdat_group): Likewise.
18728 (set_have_as_tls): Likewise.
18729 (gcc_cv_target_dl_iterate_phdr): Likewise.
18730 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18731 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18732 * configure: Regenerate.
18733 * doc/install.texi: Simplify Solaris target triplets.
18734 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18735 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18736 Remove Solaris 10 references.
18737 Remove obsolete Solaris bug reference.
18738 (Specific, sparc-sun-solaris2.10): Remove.
18740 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18742 * config/i386/i386.md (any_div): New code iterator.
18743 (paired_mod): New code attribute.
18744 (sgnprefix): Handle DIV and UDIV RTXes.
18746 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18747 and udivmod<mode>4 patterns using any_div code iterator.
18748 (divmod splitters): Macroize splitters using any_div code iterator.
18749 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18750 (*udivmodsi4_pow2_zext_2): Ditto.
18751 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18752 and *udivmod<mode>4_noext patterns using any_div code iterator.
18753 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18754 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18755 patterns using any_div code iterator.
18756 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18757 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18758 patterns using any_div code iterator.
18759 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18760 udivmodhiqi3 patterns using any_extend code iterator.
18762 2019-05-14 Richard Biener <rguenther@suse.de>
18763 H.J. Lu <hongjiu.lu@intel.com>
18765 PR tree-optimization/88828
18766 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18767 permuting in a single non-constant element not extracted
18770 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18772 * internal-fn.def (SIGNBIT): New.
18773 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18775 (signbitv4sf2): Likewise.
18777 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18780 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18781 next insn when the SRC reg is dead.
18783 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18785 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18786 (alloc_cand_and_find_basis): Ditto.
18787 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18788 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18789 (create_add_imm_cand, slsr_process_cast): Ditto.
18790 (slsr_process_copy, replace_mult_candidate): Ditto.
18791 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18792 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18793 (pass_strength_reduction::execute): Init the first NULL element.
18795 2019-05-13 Nathan Sidwell <nathan@acm.org>
18797 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18798 (run_attempt): Reformat line break.
18800 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18803 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18804 data registers in sibcall epilogues.
18805 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18807 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18810 * configure.ac (--enable-frame-pointer):
18811 Disable by default for cygwin and mingw.
18812 * configure: Regenerate.
18814 2019-05-13 Nathan Sidwell <nathan@acm.org>
18816 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18818 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18819 (gen_member_die): Move abstract origin check earlier. Only VARs
18820 can be static_inline_p. Simplify splicing control flow.
18822 2019-05-13 Richard Biener <rguenther@suse.de>
18824 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18826 (vect_build_slp_tree_1): Likewise.
18828 2019-05-13 Richard Biener <rguenther@suse.de>
18830 PR tree-optimization/90402
18831 * tree-if-conv.c (tree_if_conversion): Value number only
18832 the loop body by making the latch an exit of the region
18834 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18836 (do_rpo_vn): Deal with multiple edges into the entry block
18837 that are not backedges inside the region by skipping PHIs
18838 of the entry block.
18840 2019-05-13 Richard Biener <rguenther@suse.de>
18842 PR tree-optimization/90316
18843 * tree-ssa-pre.c (insert_aux): Fold into ...
18844 (insert): ... this function. Use a RPO walk to reduce the
18845 number of required iterations.
18847 2019-05-13 Martin Liska <mliska@suse.cz>
18849 PR tree-optimization/90416
18850 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18851 string instead of passing the second part as va_arg argument.
18853 2019-05-13 Martin Liska <mliska@suse.cz>
18855 PR gcov-profile/90380
18856 * gcov.c (handle_cycle): Do not support zero cycle count,
18857 it should not be possible.
18858 (path_contains_zero_cycle_arc): New function.
18859 (circuit): Ignore zero cycle arc counts.
18861 2019-05-13 Martin Liska <mliska@suse.cz>
18863 PR gcov-profile/90380
18864 * gcov.c (enum loop_type): Remove the enum and
18866 (handle_cycle): Assert that we should not reach
18868 (circuit): Use loop_found instead of a tri-state loop_type.
18869 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18872 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18875 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18876 (ix86_output_indirect_branch_via_reg): Use output mechanism
18877 accounting for __USER_LABEL_PREFIX__.
18878 (ix86_output_indirect_branch_via_push): Likewise.
18879 (ix86_output_function_return): Likewise.
18880 (ix86_output_indirect_function_return): Likewise.
18882 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18884 * doc/md.texi: Document use of code attributes in rtx patterns.
18885 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18886 * read-rtl.c (find_code): Split out search loops into...
18887 (maybe_find_code): ...this new function.
18888 (check_code_iterator): Make the error message more informative.
18889 (check_code_attribute): New function.
18890 (rtx_reader::rtx_alloc_for_name): Likewise.
18891 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18892 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18893 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18894 <max_opp> directly as an rtx code instead of via a match_operator.
18895 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18896 (<su>abd<mode>_3): Update accordingly.
18898 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18900 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18901 is given, print the state of the EH "save world" computation for
18904 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18907 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18908 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18910 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18912 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18913 Use pinsrd for TARGET_SSE4_1.
18914 * config/i386/sse.md (movdi_to_sse): Ditto.
18916 2019-05-10 Richard Biener <rguenther@suse.de>
18918 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18919 (do_rpo_vn): Initialize next_value_id.
18921 2019-05-10 Martin Liska <mliska@suse.cz>
18923 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18926 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18928 PR tree-optimization/90385
18929 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18930 arguments of the exit phis.
18933 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18934 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18936 (copy_tree_body_r): Likewise.
18937 (copy_fn): Set id.do_not_fold to true.
18939 2019-05-10 Martin Liska <mliska@suse.cz>
18941 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18942 Reapply changes from r269790.
18944 2019-05-10 Martin Liska <mliska@suse.cz>
18946 PR middle-end/90340
18947 * doc/invoke.texi: New params.
18948 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18949 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18950 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18952 * tree-switch-conversion.h (struct jump_table_cluster):
18955 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18957 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18959 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18961 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18963 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18965 PR rtl-optimization/88879
18966 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18968 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18971 * config/arm/arm.c (callee_saved_reg_p): Move before
18972 thumb_find_work_register.
18973 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18974 thumb_find_work_register. Only call df_get_live_out once.
18975 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18976 (thumb_find_work_register): Use
18977 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18978 algorithms to locate a spare call clobbered reg.
18980 2019-05-09 Martin Liska <mliska@suse.cz>
18982 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18983 and MAX_EXPR in GIMPLE FE format.
18985 2019-05-09 Martin Liska <mliska@suse.cz>
18987 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18988 * gimple-pretty-print.c (dump_gimple_bb_header):
18990 (pp_cfg_jump): Dump edge probability.
18991 * profile-count.c (profile_quality_as_string): Simplify
18992 with a static array.
18993 (parse_profile_quality): New function.
18994 (profile_count::dump): Simplify with a static array.
18995 (profile_count::from_gcov_type): Add new argument.
18996 * profile-count.h (parse_profile_quality): Likewise.
18997 * predict.h (set_hot_bb_threshold): New.
18998 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19000 * predict.c (get_hot_bb_threshold): Set from the new param.
19001 (set_hot_bb_threshold): New.
19003 2019-05-09 Richard Biener <rguenther@suse.de>
19005 PR tree-optimization/90395
19006 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19007 rewrite vector stores that throw internally.
19009 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19011 * cif-code.def (CHKP): Remove.
19014 * configure.ac (--enable-frame-pointer): Disable by default for
19016 * configure: Regenerate.
19018 2019-05-09 Alan Modra <amodra@gmail.com>
19021 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19022 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19023 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19024 cost for general <-> vsx when direct moves are available.
19025 Cost union classes at minimal cost for any reg in the class.
19026 Correct calculation for moves between vsx, float, and altivec.
19027 Don't return a low cost for moves between special regs. Don't
19028 use hard coded register numbers.
19029 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19030 (rs6000_ira_change_pseudo_allocno_class): New function.
19031 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19032 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19034 (movsi_internal1): Don't disparage vector alternatives.
19035 (mov<mode>_internal): Likewise, excepting alternative that
19037 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19038 we <- b alternative.
19040 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19043 PR tree-optimization/89060
19044 * tree-ssa-live.h (live_vars_map): New typedef.
19045 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19046 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19047 (struct compute_live_vars_data): New type.
19048 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19049 live_vars_at_stmt, destroy_live_vars): New functions.
19050 * tree-tailcall.c: Include tree-ssa-live.h.
19051 (live_vars, live_vars_vec): New global variables.
19052 (find_tail_calls): Perform variable life analysis before punting.
19053 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19054 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19056 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19057 Perform variable life analysis to select variables that really need
19059 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19060 instead set id->eh_landing_pad_dest and assert it is the same.
19061 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19063 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19064 Richard Earnshaw <rearnsha@arm.com>
19067 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19069 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19070 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19071 register if both the epilogue and prologue can use call-clobbered
19073 (thumb1_unexpanded_epilogue): Use
19074 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19075 picking temporaries for restoring high regs to match that of the
19076 prologue where possible.
19077 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19078 the list of work registers. Detect if the return address is still live
19079 at the end of the prologue and avoid using it for a work register if so.
19080 If the return address is not live, add LR to the list of pushable regs
19081 after the first pass.
19083 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19085 PR tree-optimization/90078
19086 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19087 (INFTY): Increase the value for infinite cost.
19088 (struct comp_cost): Promote type of members to int64_t.
19089 (infinite_cost): Don't set complexity in initialization.
19090 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19091 overflows to infinite_cost.
19092 (adjust_setup_cost): Promote type of parameter and cost computation
19094 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19096 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19097 cost computation to int64_t.
19098 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19099 int64_t's format specifier in dump.
19101 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19103 PR tree-optimization/90240
19104 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19105 with respect to scaling factor pre-computed for each basic block.
19106 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19107 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19108 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19109 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19110 live range for array of loop's basic blocks. Cleanup aux field of
19111 loop's basic blocks.
19113 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19115 PR tree-optimization/90356
19116 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19118 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19120 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19121 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19122 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19123 (ix86_handle_option): Handle -mavx512bf16.
19124 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19126 * config/i386/avx512bf16vlintrin.h: New.
19127 * config/i386/avx512bf16intrin.h: New.
19128 * config/i386/cpuid.h (bit_AVX512BF16): New.
19129 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19130 * config/i386/i386-builtin-types.def: Add new types.
19131 * config/i386/i386-builtin.def: Add new builtins.
19132 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19134 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19135 (ix86_option_override_internal): Handle BF16.
19136 (ix86_valid_target_attribute_inner_p): Ditto.
19137 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19138 * config/i386/i386-builtin.c (enum processor_features): Add
19140 (static const _isa_names_table isa_names_table): Ditto.
19141 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19142 (PTA_AVX512BF16): Ditto.
19143 * config/i386/i386.opt: Add -mavx512bf16.
19144 * config/i386/immintrin.h: Include avx512bf16intrin.h
19145 and avx512bf16vlintrin.h.
19146 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19147 avx512f_cvtneps2bf16_<mode><mask_name>,
19148 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19149 * config/i386/subst.md (mask_half): Add new subst.
19150 * doc/invoke.texi: Document -mavx512bf16.
19152 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19154 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19155 Delete declaration.
19156 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19157 (rs6000_debug_legitimize_reload_address): Delete.
19158 (rs6000_legitimize_reload_address_ptr): Delete.
19159 (rs6000_option_override_internal): Adjust.
19160 (mem_operand_gpr): Adjust comment.
19161 (legitimate_lo_sum_address_p): Ditto.
19162 (rs6000_legitimize_reload_address): Delete.
19163 (rs6000_debug_legitimize_reload_address): Delete.
19164 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19166 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19169 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19170 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19171 to compute vector element selector for both constant and variable
19174 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19176 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19177 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19178 ashrdi3_cvt using SWI48 mode iterator.
19180 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19182 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19183 (aarch64_<su>abd<mode>_3): Likewise.
19184 (*aarch64_<su>abd<mode>_3): New define_insn.
19185 (<sur>sad<vsi2qi>): New define_expand.
19186 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19187 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19188 (build_vect_cond_expr): Likewise.
19190 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19192 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19193 clobbers outside of accessible_reg_set.
19194 * config/i386/i386.c (ix86_conditional_register_usage):
19195 Disable register sets by clearing corresponding bits in
19196 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19197 call_used_regs and don't clear corresponding reg_names array members.
19199 2019-05-07 Richard Biener <rguenther@suse.de>
19201 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19202 not specified still compute a comp_vectype for invariant
19205 2019-05-07 Richard Biener <rguenther@suse.de>
19207 PR tree-optimization/90316
19208 * tree-ssa-pre.c (translate_vuse_through_block): When
19209 same_valid is NULL do not bother to search for a virtual
19211 (phi_translate_1): When operands changed we cannot keep
19212 the same value-number so do not bother to ask whether
19213 that's possible from translate_vuse_through_block.
19215 2019-05-07 Martin Liska <mliska@suse.cz>
19217 * bitmap.c (bitmap_register): Come up with
19218 alloc_descriptor_max_uid and assign it for
19220 (register_overhead): Use get_descriptor as
19222 (release_overhead): New.
19223 (bitmap_elem_to_freelist): Call it.
19224 (bitmap_elt_clear_from): Likewise.
19225 (bitmap_obstack_free): Likewise.
19226 (bitmap_move): Sensitively release memory.
19227 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19228 (bitmap_initialize): Initialize alloc_descriptor to zero.
19229 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19231 2019-05-07 Richard Biener <rguenther@suse.de>
19233 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19234 we build a SLP node. Remove max_size and limiting.
19235 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19237 2019-05-07 Richard Biener <rguenther@suse.de>
19239 PR tree-optimization/90316
19240 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19241 limit by reference.
19242 (walk_non_aliased_vuses): Take walking limit argument.
19243 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19244 walking if it is reached instead of just counting.
19245 (get_continuation_for_phi): Likewise.
19246 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19247 limiting to the callback.
19248 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19249 (vn_reference_lookup_3): Likewise.
19250 (vn_reference_lookup_pieces): Likewise.
19251 (vn_reference_lookup): Likewise.
19252 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19253 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19254 (avail_exprs_stack::lookup_avail_expr): Likewise.
19256 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19258 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19259 for comparaible types in the second direction even if first one
19260 hits incomparable type.
19262 2019-05-07 Richard Biener <rguenther@suse.de>
19265 * lto-wrapper.c (debug_objcopy): Use the original filename
19266 including archive offset for the filename used for -save-temps.
19268 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19270 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19273 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19274 Hongtao Liu <hongtao.liu@intel.com>
19278 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19279 Modified, original implementation isn't correct.
19281 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19283 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19284 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19285 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19286 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19287 (FRAME_POINTER_REGNUM): Change numbering.
19288 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19289 (alt_reg_names): Adjust.
19290 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19292 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19293 (DWARF_FRAME_REGISTERS): Delete.
19294 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19295 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19297 (REG_ALLOC_ORDER): Adjust.
19298 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19299 (REG_CLASS_CONTENTS): Adjust.
19300 (RETURN_ADDR_RTX): Change comment.
19301 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19303 (REGISTER_NAMES): Adjust.
19304 (ADDITIONAL_REGISTER_NAMES): Adjust.
19305 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19307 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19309 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19311 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19312 (DWARF_FRAME_REGISTERS): Adjust.
19313 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19315 (REG_ALLOC_ORDER): Adjust.
19316 (enum reg_class): Delete SPR_REGS.
19317 (REG_CLASS_NAMES): Delete SPR_REGS.
19318 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19319 (REGISTER_NAMES): Adjust.
19320 (ADDITIONAL_REGISTER_NAMES): Adjust.
19321 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19322 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19323 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19324 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19325 (htm_spr_regno): Delete.
19326 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19328 (rs6000_dbx_register_number): Adjust.
19330 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19332 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19334 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19336 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19337 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19339 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19341 PR tree-optimization/88709
19342 PR tree-optimization/90271
19343 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19344 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19345 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19347 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19348 of the store merging group is larger than
19349 PARAM_STORE_MERGING_MAX_SIZE parameter.
19350 (split_group): Add bzero_first argument. If set, always emit first
19351 the first store which must be = {} of the whole area and then for the
19352 rest of the stores consider all zero bytes as paddings.
19353 (imm_store_chain_info::output_merged_store): Check if first store
19354 is = {} of the whole area and if yes, determine which setting of
19355 bzero_first for split_group gives smaller number of stores. Adjust
19356 split_group callers.
19357 (lhs_valid_for_store_merging_p): Allow decls.
19358 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19360 (pass_store_merging::process_store): Likewise.
19362 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19365 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19366 handling of V1TImode.
19368 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19371 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19372 and enable_frame_pointer ...
19373 * configure.ac: ... here. Update help strings for
19374 --enable-frame-pointer.
19375 * configure: Regenerate.
19376 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19377 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19378 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19379 (USE_X86_64_FRAME_POINTER): Ditto.
19381 2019-05-06 Martin Liska <mliska@suse.cz>
19383 * config.gcc: Append to target_gtfiles and fix indentation.
19385 2019-05-06 Richard Biener <rguenther@suse.de>
19387 PR tree-optimization/90358
19388 * tree-vect-stmts.c (get_group_load_store_type): Properly
19389 detect unused upper half of load.
19390 (vectorizable_load): Likewise.
19392 2019-05-06 Richard Biener <rguenther@suse.de>
19394 PR tree-optimization/88828
19395 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19396 (simplify_vector_constructor): ...here. Handle constants in
19399 2019-05-06 Richard Biener <rguenther@suse.de>
19401 PR tree-optimization/90328
19402 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19403 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19404 is valid in the loop nest before using it.
19405 (initialize_data_dependence_relation): Adjust.
19406 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19407 loop as loop-nest to dr_may_alias_p.
19409 2019-05-06 Richard Biener <rguenther@suse.de>
19411 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19413 2019-05-06 Richard Biener <rguenther@suse.de>
19415 PR tree-optimization/90316
19416 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19417 compute target on demand.
19418 (get_continuation_for_phi): Remove code walking stmts to
19419 get to a target virtual operand which could end up being
19422 2019-05-06 Martin Liska <mliska@suse.cz>
19425 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19426 when -mabi is selected to a non-default version.
19428 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19429 Martin Liska <mliska@suse.cz>
19431 * Makefile.in: Add lto-dump.texi.
19432 * cgraph.h: Add new functions get_visibility_string and
19433 get_symtab_type_string.
19434 * doc/gcc.texi: Include lto-dump section.
19435 * doc/lto-dump.texi: New file.
19436 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19437 (parse_dump_option): Factor out this function.
19438 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19439 (parse_dump_option): Export the function.
19440 * symtab.c (symtab_node::get_visibility_string): New function.
19441 (symtab_node::get_symtab_type_string): Likewise.
19443 2019-05-06 Martin Liska <mliska@suse.cz>
19445 * config/i386/i386-builtins.c: New file.
19446 * config/i386/i386-builtins.h: New file.
19447 * config/i386/i386-expand.c: New file.
19448 * config/i386/i386-expand.h: New file.
19449 * config/i386/i386-features.c: New file.
19450 * config/i386/i386-features.h: New file.
19451 * config/i386/i386-options.c: New file.
19452 * config/i386/i386-options.h: New file.
19453 * config.gcc: Add new files into extra_objs and
19455 * config/i386/i386.c: Split content of the file
19456 into newly introduced files.
19457 * config/i386/i386.h: Declare common variables
19459 * config/i386/t-i386: Define dependencies for new files.
19461 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19464 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19465 Restrict 'all' variant to 32-bit configurations.
19466 (unaligned_loadhiu): Likewise.
19467 (unaligned_storehi): Likewise.
19468 (unaligned_storesi): Likewise.
19469 (unaligned_loadhis): Disable when compiling for thumb1.
19471 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19473 PR tree-optimization/90269
19474 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19477 2019-05-03 Martin Liska <mliska@suse.cz>
19479 * hash-map.h: Add is_empty function.
19480 * hash-set.h: Likewise.
19481 * hash-table.h: Likewise.
19482 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19483 elements () == 0 (and similar usages).
19484 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19485 * gimplify.c (gimplify_bind_expr): Likewise.
19486 (gimplify_switch_expr): Likewise.
19487 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19488 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19489 * postreload-gcse.c (dump_hash_table): Likewise.
19490 (gcse_after_reload_main): Likewise.
19491 * predict.c (combine_predictions_for_bb): Likewise.
19492 * tree-parloops.c (reduction_phi): Likewise.
19493 (separate_decls_in_region): Likewise.
19494 (transform_to_exit_first_loop): Likewise.
19495 (gen_parallel_loop): Likewise.
19496 (gather_scalar_reductions): Likewise.
19497 (try_create_reduction_list): Likewise.
19498 * var-tracking.c (dump_vars): Likewise.
19499 (emit_notes_for_changes): Likewise.
19500 (vt_emit_notes): Likewise.
19502 2019-05-03 Richard Biener <rguenther@suse.de>
19504 PR tree-optimization/90316
19505 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19508 2019-05-03 Richard Biener <rguenther@suse.de>
19510 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19511 peeling for gaps by loading only lower halves of vectors
19513 (vectorizable_load): Likewise.
19515 2019-05-03 Richard Biener <rguenther@suse.de>
19517 PR middle-end/89518
19518 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19520 2019-05-03 Richard Biener <rguenther@suse.de>
19522 PR middle-end/87314
19523 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19524 Handle STRING_CST vs DECL or STRING_CST.
19526 2019-05-03 Richard Biener <rguenther@suse.de>
19528 PR tree-optimization/88963
19529 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19530 vector loads feeding only BIT_FIELD_REFs to component
19531 loads. Rewrite stores fed by CONSTRUCTORs to component
19534 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19536 * opts.h (finish_options): Remove lang_mask argument.
19537 (print_help, help_option_argument): Declare.
19538 * opts.c (print_help): Remove forward declaration, no longer static.
19539 (finish_options): Remove lang_mask argument, don't call print_help
19541 * opts-global.c (decode_options): Adjust finish_option caller, call
19544 PR tree-optimization/90303
19545 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19546 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19548 2019-05-03 Richard Biener <rguenther@suse.de>
19550 PR tree-optimization/89698
19551 * gimple-fold.c (canonicalize_constructor_val): Early out
19552 for constants, handle unfolded INTEGER_CSTs as they appear in
19553 C++ virtual table ctors.
19555 2019-05-03 Richard Biener <rguenther@suse.de>
19557 * passes.c (execute_function_todo): Remove dead code.
19559 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19561 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19562 the internal register number, for any "real" register.
19564 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19566 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19567 correct numbers for TFHAR, TFIAR, TEXASR.
19569 2019-05-02 Richard Biener <rguenther@suse.de>
19571 PR tree-optimization/89653
19572 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19573 update-address-taken before the pass.
19574 * passes.def (pass_tree_loop_init): Put comment before it.
19576 2019-05-02 Richard Biener <rguenther@suse.de>
19578 PR tree-optimization/89509
19579 * tree-ssa-structalias.c (compute_dependence_clique): Look
19580 at the first subvar when determining whether it is restrict.
19582 2019-05-02 Richard Biener <rguenther@suse.de>
19584 PR tree-optimization/90273
19585 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19586 useless debug stmts.
19588 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19590 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19592 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19594 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19595 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19596 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19597 (vectorizable_reduction): Use the functions above to vectorize in a
19598 fully masked loop codes that don't have a conditional internal
19601 2019-05-02 Martin Liska <mliska@suse.cz>
19603 * cgraphclones.c: Call valid_attribute_p with 1 for
19605 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19606 it's for target attribute.
19607 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19608 Add new boolean argument.
19609 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19611 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19612 to ix86_valid_target_attribute_inner_p.
19613 (ix86_valid_target_attribute_p): Pass flags argument to
19614 ix86_valid_target_attribute_inner_p.
19615 (get_builtin_code_for_version): Use 0 as it's target attribute.
19617 2019-05-02 Martin Liska <mliska@suse.cz>
19619 * gcc.c (process_command): Add dummy file only
19621 * opts-global.c (decode_options): Pass lang_mask.
19622 * opts.c (print_help): New function.
19623 (finish_options): Print --help if help_option_argument
19625 (common_handle_option): Factor out content of OPT__help_
19627 * opts.h (finish_options): Add new argument.
19629 2019-05-02 Martin Liska <mliska@suse.cz>
19632 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19633 With -minline-all-stringops use inline expansion using 4B loop.
19634 * doc/invoke.texi: Document the change of
19635 -minline-all-stringops.
19637 2019-05-01 Jeff Law <law@redhat.com>
19639 PR tree-optimization/88797
19640 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19641 PHI feeds a conditional on the RHS of an assignment.
19643 2019-04-30 Andrew Waterman <andrew@sifive.com>
19644 Jim Wilson <jimw@sifive.com>
19646 * config/riscv/constraints.md (L): New.
19647 * config/riscv/predicates.md (lui_operand): New.
19648 (sfb_alu_operand): New.
19649 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19650 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19651 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19652 * config/riscv/risc.md (type): Add sfb_alu.
19653 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19654 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19655 (branch_zero<mode>): Delete.
19656 (mov<mode>cc): New.
19657 (mov<GPR:mode><X:mode>cc): Likewise.
19658 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19660 2019-04-30 Nathan Sidwell <nathan@acm.org>
19662 * tree.h (MARK_TS_EXP): New.
19664 2019-04-30 Martin Liska <mliska@suse.cz>
19666 * opts.c (enable_warning_as_error): Provide hints
19667 for unknown options.
19669 2019-04-30 Martin Liska <mliska@suse.cz>
19672 * doc/invoke.texi: Add missing dash for gas-locview-support
19673 and gno-as-locview-support.
19675 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19678 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19679 whitespace at the start of target attribute string.
19681 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19684 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19685 Define __ARM_FEATURE_ATOMICS.
19687 2019-04-30 Martin Liska <mliska@suse.cz>
19689 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19690 into built_in_function enum. Remove code for endp == 2 and
19691 use BUILT_IN_* constants.
19692 (gimple_fold_builtin): Call the function with fcode.
19694 2019-04-30 Martin Liska <mliska@suse.cz>
19696 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19697 DECL_FUNCTION_CODE into ix86_builtins enum before
19698 the switch statement.
19700 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19702 PR tree-optimization/89475
19703 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19706 2019-04-30 Martin Liska <mliska@suse.cz>
19708 PR translation/90274
19709 * opts.c (print_filtered_help): Wrap string in _(...).
19711 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19713 PR tree-optimization/90240
19715 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19717 PR tree-optimization/90078
19718 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19719 checks for infinite_cost overflow.
19721 2019-04-29 Jeff Law <law@redhat.com>
19723 * passes.def: Move -Wrestrict pass after copy propagation.
19725 2019-04-29 Maya Rashish <coypu@sdf.org>
19727 * config.gcc (default_gnu_indirect_function): Default to yes
19728 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19729 sparc*-*-netbsd*, x86_64-*-netbsd*.
19731 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19733 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19734 where cond2 is NE_EXPR.
19735 (is_value_included_in): Update comment.
19737 2019-04-29 Richard Biener <rguenther@suse.de>
19739 PR tree-optimization/90278
19740 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19741 EH on comparison simplification.
19743 2019-04-29 Jason Merrill <jason@redhat.com>
19745 PR c++/82081 - tail call optimization breaks noexcept
19746 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19747 nothrow function to a might-throw function into a tail call.
19749 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19751 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19752 (DDR_INNER_LOOP): Likewise.
19753 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19754 (initialize_data_dependence_relation): Likewise.
19755 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19757 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19759 PR rtl-optimization/90257
19760 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19764 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19768 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19771 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19774 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19776 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19778 2019-04-29 Richard Biener <rguenther@suse.de>
19780 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19783 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19785 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19786 varasm.h, and netbsd-protos.h.
19788 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19791 * config/i386/i386-protos.h (ix86_data_alignment): Change
19792 the second argument type to unsigned int.
19793 * config/i386/i386.c (ix86_data_alignment): Change "align"
19794 argument type to unsigned int.
19796 2019-04-27 Martin Liska <mliska@suse.cz>
19798 PR middle-end/90258
19799 * opt-suggestions.c (option_proposer::build_option_suggestions):
19800 When get_valid_option_values returns empty values, add the
19801 misspelling candidate.
19803 2019-04-26 Jim Wilson <jimw@sifive.com>
19805 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19807 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19808 Pass orig_mode to riscv_build_integer.
19809 (riscv_split_integer): Pass mode to riscv_move_integer.
19810 (riscv_legitimize_const_move): Likewise.
19811 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19812 promoted_mode. Replace force_reg call with code to load constant into
19813 promoted reg and then subreg it for the store.
19814 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19815 riscv_move_integer.
19817 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19819 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19822 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19824 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19825 commentary about the encoding of precision.
19827 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19829 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19830 * config/i386/t-freebsd64: New file.
19831 * config.gcc: Add the t-freebsd64 for multilib support.
19833 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19835 * doc/extend.texi (vector_size): Add missing comma after @xref.
19837 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19839 * BASE-VER: Set to 10.0.0.
19841 2019-04-25 Richard Biener <rguenther@suse.de>
19843 PR middle-end/89765
19844 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19845 VIEW_CONVERT_EXPR into one operating on an rvalue.
19847 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19850 * config/i386/i386.c (feature_priority): Moved to file scope.
19851 (processor_features): Likewise.
19852 (processor_model): Likewise.
19853 (_arch_names_table): Likewise.
19854 (arch_names_table): Likewise.
19855 (_feature_list): Removed.
19856 (feature_list): Likewise.
19857 (_isa_names_table): Moved to file scope. Add priority.
19858 (isa_names_table): Likewise.
19859 (get_builtin_code_for_version): Replace feature_list with
19860 isa_names_table. Update error message for P_ZERO priority.
19862 2019-04-25 Richard Biener <rguenther@suse.de>
19864 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19865 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19867 2019-04-24 Jeff Law <law@redhat.com>
19869 PR tree-optimization/90037
19870 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19871 * passes.def: Replace all instance of phi-only cprop with the
19872 lattice propagator. Move propagation pass from after erroneous
19873 path isolation to before erroneous path isolation.
19874 * tree-ssa-phionlycprop.c: Remove.
19876 2019-04-24 Richard Biener <rguenther@suse.de>
19878 PR middle-end/90213
19879 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19880 by size and BITS_PER_UNIT on poly-wide-ints.
19882 2019-04-25 Richard Biener <rguenther@suse.de>
19884 PR middle-end/90194
19885 * match.pd: Add pattern to simplify view-conversion of an
19888 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19890 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19891 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19892 for Go on 32 bit AIX.
19893 * config/rs6000/aix72.h: Likewise.
19895 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19898 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19899 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19901 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19904 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19905 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19906 for restored hard frame pointer.
19907 (s390_sched_dependencies_evaluation): Implement new target hook.
19908 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19910 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19912 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19913 * config/arc/arc.c (arc_init): Cleanup warning message.
19914 (arc_override_options): Likewise.
19916 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19919 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19920 a register if both if_true and if_false are MEMs.
19922 PR tree-optimization/90208
19923 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19924 after labels of new_bb, not before them.
19926 PR tree-optimization/90211
19927 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19928 which are not SSA_NAMEs.
19930 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19932 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19934 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19936 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19938 PR rtl-optimization/87979
19939 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19942 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19944 PR rtl-optimization/84032
19945 * modulo-sched.c (ps_insn_find_column): Change condition so that
19946 branch will always be the last insn in a row inside partial
19949 2019-04-23 Richard Biener <rguenther@suse.de>
19952 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19953 dest_single_pred_p argument.
19954 (remove_forwarder_block): Adjust.
19955 (remove_forwarder_block_with_phi): Likewise.
19957 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19958 Bernd Edlinger <bernd.edlinger@hotmail.de>
19959 Jakub Jelinek <jakub@redhat.com>
19962 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19963 if used with general-regs-only.
19964 (arm_conditional_register_usage): Don't add non-general regs if
19966 (arm_valid_target_attribute_rec): Handle general-regs-only.
19967 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19969 (TARGET_HARD_FLOAT_SUB): Define.
19970 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19971 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19972 (TARGET_REALLY_IWMMXT2): Likewise.
19973 * config/arm/arm.opt: Add -mgeneral-regs-only.
19974 * doc/extend.texi: Document ARM general-regs-only target.
19975 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19977 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19979 PR tree-optimization/90078
19980 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19981 checks for infinite_cost overflow.
19983 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19985 PR tree-optimization/90021
19986 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19987 and check univariate against it.
19988 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19989 * tree-data-ref.c (add_other_self_distances): Pass new argument.
19991 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19995 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19998 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20001 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20003 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20005 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20007 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20008 names using operand format, rather than hard-wired.
20009 (speculation_barrier): Likewise.
20011 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20013 PR tree-optimization/88055
20014 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20015 (gen_one_condition): Use it if !HONOR_NANS.
20017 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20019 PR middle-end/90139
20020 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20021 assign_temp instead of gen_reg_rtx.
20023 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20025 PR translation/90118
20026 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20027 Add missing space before %<.
20029 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20031 PR rtl-optimization/87871
20032 * ira-lives.c (make_object_dead): Don't add conflicts to
20033 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20035 2019-04-18 Martin Sebor <msebor@redhat.com>
20037 PR middle-end/89797
20038 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20039 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20040 assuming type size fits in SHWI.
20042 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20045 * ipa-inline.c (flatten_function): New parameter UPDATE.
20046 (ipa_inline, early_inliner): Use it.
20048 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20050 * fold-const.c (int_const_binop): Return early on failure.
20052 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20054 PR middle-end/85164
20055 * combine.c (force_int_to_mode): Cast the argument rather than
20056 the result of known_alignment.
20057 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20059 2019-04-18 Richard Biener <rguenther@suse.de>
20062 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20064 (remove_forwarder_block): ... here.
20065 (remove_forwarder_block_with_phi): Also move debug stmts here.
20067 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20069 PR translation/79183
20070 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20071 inform where appropriate.
20073 2019-04-18 Richard Biener <rguenther@suse.de>
20075 * tree.c (get_qualified_type): Put found type variants at the
20076 head of the variant list.
20078 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20080 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20082 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20085 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20086 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20087 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20088 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20089 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20091 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20093 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20094 even for allocno's with no conflicts.
20095 (print_conflicts): Print an extra newline.
20097 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20099 * auto-inc-dec.c (attempt_change): Set the alignment of the
20100 temporary memory to that of the original.
20102 2019-04-17 Joao Moreira <jmoreira@suse.de>
20104 * targhooks.c (default_print_patchable_function_entry): Emit
20105 __patchable_function_entries section with writable flags to allow
20106 relocation resolution.
20108 2019-04-17 Jonny Grant <jg@jguk.org>
20110 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20112 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20114 PR middle-end/90095
20115 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20116 on lowpart SUBREGs.
20118 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20120 * config/arc/arc.c (arc_init): Format diagnostic string.
20121 (arc_override_options): Likewise.
20122 (check_if_valid_regno_const): Likewise.
20123 (arc_reorg): Likewise.
20125 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20128 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20130 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20132 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20133 (*movdi_update1): Use Pmode.
20134 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20135 (movdi_<mode>_update_stack): Rename to ...
20136 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20138 (*movsi_update1): Use Pmode.
20139 (*movsi_update2): Use Pmode.
20140 (movsi_update): Rename to ...
20141 (movsi_<mode>_update): ... this. Use Pmode.
20142 (movsi_update_stack): Fix condition.
20143 (*movhi_update1): Use Pmode. Fix argument to
20144 avoiding_indexed_address_p.
20145 (*movhi_update2): Ditto.
20146 (*movhi_update3): Ditto.
20147 (*movhi_update4): Ditto.
20148 (*movqi_update1): Ditto.
20149 (*movqi_update2): Ditto.
20150 (*movqi_update3): Ditto.
20151 (*movsf_update1, *movdf_update1): Merge, rename to...
20152 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20153 avoiding_indexed_address_p. Add "size" attribute.
20154 (*movsf_update2, *movdf_update2): Merge, rename to...
20155 (*mov<mode>_update2): This. Ditto.
20156 (*movsf_update3): Use Pmode. Fix argument to
20157 avoiding_indexed_address_p.
20158 (*movsf_update4): Ditto.
20159 (allocate_stack): Simplify condition. Adjust pattern names.
20161 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20164 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20165 whitespace at the start of target attribute string.
20167 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20170 * config/rs6000/power9.md: Add store forwarding bypass.
20172 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20175 * valtrack.c (dead_debug_insert_temp): Reset debug references
20176 to the return value of a call being removed.
20178 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20180 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20181 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20182 implement target hook.
20183 (arc_memory_move_cost): New function.
20184 (TARGET_REGISTER_MOVE_COST): Define.
20185 (TARGET_MEMORY_MOVE_COST): Likewise.
20186 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20187 (MEMORY_MOVE_COST): Likewise.
20189 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20191 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20192 (sibcall_value_insn): Likewise.
20193 * config/arc/constraints.md (Rs5): Remove.
20195 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20197 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20198 for last two fake registers.
20199 (arc_conditional_register_usage): Make sure fake frame and arg
20200 pointer regs are in general regs class.
20201 (FRAME_POINTER_MASK): Remove.
20202 (RETURN_ADDR_MASK): Remove.
20203 (arc_must_save_register): Use hard frame regnum.
20204 (frame_restore_reg): Use hard_frame_pointer_rtx.
20205 (arc_save_callee_saves): Likewise.
20206 (arc_restore_callee_saves): Likewise.
20207 (arc_save_callee_enter): Likewise.
20208 (arc_restore_callee_leave): Likewise.
20209 (arc_save_callee_milli): Likewise.
20210 (arc_eh_return_address_location): Likewise.
20211 (arc_check_multi): Use hard frame regnum.
20212 (arc_can_eliminate): Likewise.
20213 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20214 for register allocator.
20215 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20216 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20217 (FRAME_POINTER_REGNUM): Change it to a fake register.
20218 (HARD_FRAME_POINTER_REGNUM): Defined.
20219 (ARG_POINTER_REGNUM): Change it to a new fake register.
20220 (ELIMINABLE_REGS): Update.
20221 (REGISTER_NAMES): Update names.
20222 * config/arc/arc.md (LP_START): Remove.
20223 (LP_END): Likewise.
20224 (shift_si3_loop): Update pattern.
20226 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20228 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20229 to avoid delay slot scheduling.
20230 (arc_must_save_register): Don't save SP.
20231 * config/arc/arc.md (stack_tie): Remove.
20232 (UNSPEC_ARC_STKTIE): Likewise.
20234 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20235 Shiva Chen <shiva0217@gmail.com>
20237 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20238 code gen with large shift amount.
20240 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20242 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20245 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20248 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20249 print -m64/-mx32/-m32 if it is true.
20250 (ix86_debug_options, ix86_function_specific_print): Pass true as
20251 ADD_ABI_P to ix86_target_string.
20252 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20253 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20254 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20256 PR rtl-optimization/90082
20257 * dce.c (can_delete_call): New function.
20258 (deletable_insn_p, mark_insn): Use it.
20260 PR tree-optimization/90090
20261 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20263 (is_division_by_square): Likewise. Formatting fix.
20265 2019-04-16 Richard Biener <rguenther@suse.de>
20267 PR tree-optimization/56049
20268 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20269 equality check if alias-set zero will prevail.
20271 2019-04-15 Jeff Law <law@redhat.com>
20273 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20274 size and alignment as unsigned.
20276 2019-04-15 Richard Biener <rguenther@suse.de>
20279 * tree-loop-distribution.c (destroy_loop): Preserve correct
20282 2019-04-15 Richard Biener <rguenther@suse.de>
20284 PR tree-optimization/90071
20285 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20286 abnormal operands from def stmts.
20288 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20290 PR rtl-optimization/89794
20291 * combine.c (count_auto_inc): New function.
20292 (try_combine): Count how many auto_inc expressions there were in the
20293 original instructions. Ensure we have the same number in the new
20294 instructions. Remove the code that tried to ensure auto_inc side
20295 effects on i1 and i0 are not lost.
20297 2019-04-15 Richard Biener <rguenther@suse.de>
20300 * tree.h (auto_var_p): Declare.
20301 * tree.c (auto_var_p): New function, split out from ...
20302 (auto_var_in_fn_p): ... here.
20303 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20305 (new_var_info): Initialize it.
20306 (set_uids_in_ptset): Also set the shadow variable uid if required.
20307 (ipa_pta_execute): Postprocess points-to solutions assigning
20308 shadow variable uids for locals that may reach their containing
20309 function recursively.
20310 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20311 assert but instead check whether the points-to solution is
20314 2019-04-15 Martin Jambor <mjambor@suse.cz>
20317 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20320 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20322 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20324 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20325 Kito Cheng <kito.cheng@gmail.com>
20326 Shiva Chen <shiva0217@gmail.com>
20328 * config/nds32/nds32-md-auxiliary.c
20329 (nds32_legitimize_pic_address): Use new PIC pattern.
20330 (nds32_legitimize_tls_address): Use new TLS pattern.
20331 (nds32_output_symrel): New.
20332 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20333 (nds32_alloc_relax_group_id): Ditto.
20334 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20335 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20337 (nds32_group_tls_insn): Ditto.
20338 (nds32_group_float_insns): Ditto.
20339 * config/nds32/nds32.md (tls_le): New.
20342 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20344 * configure: Add nds32 target for dwarf2 debug_line checking.
20345 * configure.ac: Regenerated.
20347 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20350 * ipa-devirt.c (skip_in_fields_list_p): New.
20351 (odr_types_equivalent_p): Use it.
20353 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20356 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20357 instead of strncmp when checking for thumb and arm. Formatting fixes.
20359 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20361 * doc/install.texi: Document --with-target-system-zlib.
20363 2019-04-12 Martin Sebor <msebor@redhat.com>
20369 * targhooks.c (default_vector_alignment): Avoid assuming
20370 argument fits in SHWI.
20371 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20372 a shift expression.
20373 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20375 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20377 PR rtl-optimization/89965
20378 * dce.c: Include rtl-iter.h.
20379 (struct check_argument_load_data): New type.
20380 (check_argument_load): New function.
20381 (find_call_stack_args): Check for loads from stack slots still tracked
20382 in sp_bytes and punt if any is found.
20384 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20386 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20388 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20389 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20391 2019-04-12 Martin Liska <mliska@suse.cz>
20393 PR middle-end/89970
20394 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20396 (separate_attrs): Handle multiple 'default's.
20397 (expand_target_clones): Rework error handling code.
20399 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20402 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20403 mode of vector rather than mode of destination for move instruction.
20404 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20405 Use QI inner mode with V16QI vector mode.
20407 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20410 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20411 "invalid %%t operand" in output_operand_lossage message.
20413 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20415 * config/s390/predicates.md (permute_pattern_operand): New
20417 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20418 operand for the permute pattern.
20419 ("*vec_perm<mode>"): New insn definition.
20420 ("bswap<mode>"): Generate the permute pattern operand in the
20421 expander and perform the operand reloads for pre arch13 level
20423 ("*bswap<mode>_emu"): Rename to ...
20424 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20425 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20426 Add the USE operand for the permute pattern.
20427 ("*vec_set_bswap_vec<mode>"): Likewise.
20429 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20432 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20433 and gcc_unreachable if it fails, just call tree_to_uhwi which
20434 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20435 Start warning message with a lower-case letter. Formatting fixes.
20437 PR rtl-optimization/90026
20438 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20439 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20440 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20441 in cfglayout mode, use emit_barrier_after_bb.
20443 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20445 PR rtl-optimization/87763
20446 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20449 2019-04-11 Tom de Vries <tdevries@suse.de>
20451 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20452 max macro using statement expression.
20454 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20456 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20457 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20458 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20459 read_only_private_data_section using xcoff_private_rodata_section_name.
20460 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20462 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20465 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20467 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20469 PR rtl-optimization/89965
20470 * dce.c (sp_based_mem_offset): New function.
20471 (find_call_stack_args): Use sp_based_mem_offset.
20473 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20475 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20477 2019-04-11 Richard Biener <rguenther@suse.de>
20479 PR tree-optimization/90020
20480 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20481 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20482 * tree-ssa-pre.c (compute_avail): Use it to not put
20483 possibly trapping references after a call that might not
20484 return into EXP_GEN.
20485 * gcse.c (compute_hash_table_work): Do not elide
20486 marking a block containing a call if the call might not
20489 2019-04-11 Richard Biener <rguenther@suse.de>
20491 PR tree-optimization/90018
20492 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20493 Test both SLP and interleaving variants.
20495 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20497 * config/s390/8561.md: New file.
20498 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20499 Add arch13 cpu model.
20500 * config/s390/s390-opts.h (enum processor_type): Likewise.
20501 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20502 (s390_get_unit_mask): Likewise.
20503 (s390_is_fpd): Likewise.
20504 (s390_is_fxd): Likewise.
20505 * config/s390/s390.h (s390_tune_attr): Likewise.
20506 * config/s390/s390.md: Include arch13 pipeline description.
20507 * config/s390/s390.opt: Add arch13.
20509 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20511 PR rtl-optimization/87763
20512 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20514 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20516 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20518 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20519 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20520 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20521 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20523 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20525 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20526 "Although" in -fipa-icf documentation.
20528 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20529 of using multiple -g options.
20531 2019-04-10 Martin Liska <mliska@suse.cz>
20533 PR gcov-profile/89959
20534 * doc/gcov.texi: Make documentation of -x option
20537 2019-04-10 Richard Biener <rguenther@suse.de>
20539 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20541 (DR_GROUP_SAME_DR_STMT): Remove.
20542 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20543 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20544 replace with assert.
20545 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20546 (vect_record_grouped_load_vectors): Remove unreachable code.
20548 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20551 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20552 obsolete reference to N.
20554 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20556 PR middle-end/90025
20557 * expr.c (store_expr): Set properly size on the MEM passed to
20561 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20562 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20563 translation is needed, and when translation is needed, only append
20564 ... if the string length is hostsz or more bytes long. Avoid using
20567 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20570 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20571 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20573 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20574 differences directly.
20575 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20577 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20579 PR translation/90011
20580 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20582 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20584 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20585 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20586 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20587 trailing space from -gsplit-dwarf diagnostics.
20589 PR tree-optimization/89998
20590 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20591 instead of integer_type_node if possible, don't add ranges if return
20592 type is not compatible with int.
20593 * gimple-fold.c (gimple_fold_builtin_sprintf,
20594 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20597 2019-04-09 Martin Liska <mliska@suse.cz>
20599 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20600 * doc/install.texi: Document the new config.
20602 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20604 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20605 use gimple_expr_type for load and store calls. Skip over the
20606 condition argument in a conditional internal function.
20607 Protect use of TREE_INT_CST_LOW.
20609 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20612 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20613 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20614 trailing period from it too.
20616 2019-04-08 wu yuan <wuyuan5@huawei.com>
20618 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20619 * config/aarch64/aarch64.md : Add "tsv110.md"
20620 * config/aarch64/tsv110.md: New file.
20622 2019-04-08 Richard Biener <rguenther@suse.de>
20624 PR tree-optimization/90006
20625 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20628 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20631 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20633 (fma_root_node): Likewise.
20634 (func_fma_steering): Likewise.
20636 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20638 PR rtl-optimization/89865
20639 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20641 PR rtl-optimization/89865
20642 * config/i386/i386.md
20643 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20644 numbers not to clash with the additional operands[4].
20645 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20646 with extra register copy in the middle.
20648 2019-04-08 Martin Liska <mliska@suse.cz>
20650 PR gcov-profile/89961
20651 * doc/gcov.texi: Document data_file.
20652 * gcov.c (generate_results): Add data_info into JSON output.
20654 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20656 PR tree-optimization/89725
20657 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20658 loop's chrec as invariant symbol.
20659 * tree-chrec.h (chrec_contains_symbols): New parameter.
20660 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20661 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20662 function of loops not in DDR's loop_nest.
20663 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20665 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20668 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20671 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20674 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20675 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20677 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20679 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20680 targetm.fixed_condition_code_regs.
20682 2019-04-05 Richard Biener <rguenther@suse.de>
20686 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20687 debug bind stmts but reset them if they are not valid at the
20690 2019-04-05 Martin Liska <mliska@suse.cz>
20692 PR translation/89936
20693 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20694 order to wrap keywords or arguments.
20695 * collect2.c (main): Likewise.
20696 (scan_prog_file): Likewise.
20697 (scan_libraries): Likewise.
20698 * common/config/riscv/riscv-common.c
20699 (riscv_subset_list::parsing_subset_version): Likewise.
20700 (riscv_subset_list::parse_std_ext): Likewise.
20701 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20703 * config/arm/arm.c (arm_option_override): Likewise.
20704 * config/cris/cris.c (cris_print_operand): Likewise.
20705 * config/darwin-c.c (darwin_pragma_options): Likewise.
20706 (darwin_pragma_unused): Likewise.
20707 (darwin_pragma_ms_struct): Likewise.
20708 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20709 * config/i386/i386.c (print_reg): Likewise.
20710 (ix86_print_operand): Likewise.
20711 * config/i386/xm-djgpp.h: Likewise.
20712 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20713 * config/m32c/m32c.c (m32c_option_override): Likewise.
20714 * config/msp430/msp430.c (msp430_option_override): Likewise.
20715 * config/nds32/nds32.c (nds32_option_override): Likewise.
20716 * config/nvptx/mkoffload.c (main): Likewise.
20717 * config/rx/rx.c (rx_print_operand): Likewise.
20718 (valid_psw_flag): Likewise.
20719 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20720 (vms_pragma_nomember_alignment): Likewise.
20721 (vms_pragma_extern_model): Likewise.
20722 * lto-wrapper.c (compile_offload_image): Likewise.
20723 * omp-offload.c (oacc_parse_default_dims): Likewise.
20724 * symtab.c (symtab_node::verify_base): Likewise.
20725 * tlink.c (recompile_files): Likewise.
20726 (start_tweaking): Likewise.
20727 * tree-profile.c (parse_profile_filter): Likewise.
20729 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20731 PR tree-optimization/89956
20732 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20733 multiple negates of the same value.
20735 2019-04-04 Martin Sebor <msebor@redhat.com>
20737 PR middle-end/89957
20738 PR middle-end/89911
20739 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20740 have the same precision since the function crashes otherwise.
20741 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20742 has non-zero arguments.
20744 2019-04-04 Martin Sebor <msebor@redhat.com>
20746 PR middle-end/89934
20747 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20748 out if the number of arguments is less than expected.
20750 2019-04-04 Jeff Law <law@redhat.com>
20752 PR rtl-optimization/89399
20753 * ree.c (combine_set_extension): Use single_set rather than
20754 digging into PATTERN for items on the candidate list.
20755 (combine_reaching_defs): Likewise.
20757 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20759 PR rtl-optimization/46590
20760 * loop-invariant.c (find_defs): Move df_remove_problem and
20761 df_process_deferred_rescans to move_invariants.
20762 Move df_live_add_problem and df_live_set_all_dirty calls
20763 to move_invariants.
20764 (move_invariants): Likewise.
20765 (move_loop_invariants): Likewise, making the df_live calls
20766 conditional on -O. Remove the problem again if we added it
20769 2019-04-03 qing zhao <qing.zhao@oracle.com>
20771 PR tree-optimization/89730
20772 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20773 -flive-patching=inline-only-static.
20774 (can_inline_edge_by_limits_p): Add the checking for
20775 -flive-patching=inline-only-static and grant always_inline
20776 even when -flive-patching=inline-only-static is specified.
20778 2019-04-03 Jeff Law <law@redhat.com>
20780 PR rtl-optimization/81025
20781 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20783 2019-04-03 Richard Biener <rguenther@suse.de>
20785 PR tree-optimization/84101
20786 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20787 regs.h for hard_regno_nregs.
20788 (cfun_returns): New helper.
20789 (vect_model_store_cost): When vectorizing a store to a decl
20790 we return and the function ABI returns in a multi-reg location
20791 account for the possible spilling that will happen.
20793 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20795 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20796 displacement addresses for vector mode operands.
20798 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20800 * config/arc/arc.c (GMASK_LEN): Define.
20801 (arc_restore_callee_saves): Restore first blink when
20804 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20806 * doc/extend.texi: Add deprecated comment on sign-return-address
20807 function attribute and add mbranch-protection.
20808 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20810 2019-04-03 Richard Biener <rguenther@suse.de>
20813 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20814 the all target phony.
20816 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20820 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20821 Return false for variable DImode shifts.
20822 (dimode_scalar_chain::compute_convert_gain): Do not handle
20823 register count operand in variable DImode shifts.
20824 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20825 count argument of a variable shift instruction to a vector register.
20826 (dimode_scalar_chain::convert_reg): Remove support to convert
20827 count argument of a variable shift instruction.
20829 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20831 PR rtl-optimization/84206
20832 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20833 iterating over loop headers.
20835 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20837 PR rtl-optimization/85876
20838 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20839 beyond the original fence.
20841 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20843 * config.gcc: Mark spu* targets as deprecated/obsolete.
20845 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20847 * config/s390/s390-builtin-types.def: New builtin function type
20848 definitions. Remove unused types.
20849 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20850 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20851 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20852 overloaded builtins.
20853 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20854 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20855 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20856 (vec_double, vec_signed, vec_unsigned): Define to use the new
20857 overloaded builtins.
20858 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20861 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20863 * config/s390/s390-builtin-types.def: New builtin function type
20865 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20866 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20867 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20868 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20869 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20870 constant definitions.
20871 * config/s390/vecintrin.h (vec_search_string_cc)
20872 (vec_search_string_until_zero_cc): New builtin name definitions.
20873 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20875 ("vec_vstrs<mode>"): New insn definition.
20877 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20879 * config/s390/s390-builtin-types.def: Add new builtin function
20881 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20882 New overloaded builtins.
20883 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20885 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20886 (UNSPEC_VEC_SLDBYTE): ... this.
20887 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20888 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20890 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20891 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20892 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20894 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20896 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20897 New insn definition.
20898 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20899 * config/s390/vector.md (V_HW_HSD): ... here.
20901 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20903 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20904 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20905 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20906 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20907 New insn definitions.
20909 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20911 * config/s390/s390-builtin-types.def: Add new builtin function type.
20912 * config/s390/s390-builtins.def: Add overloaded builtin
20913 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20914 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20915 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20916 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20917 ("eltswap<mode>"): New expander.
20918 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20921 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20923 * config/s390/s390-builtin-types.def: Add new builtin function types.
20924 * config/s390/s390-builtins.def: Add overloaded builtin
20925 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20927 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20928 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20929 ("bswap<mode>"): New expander.
20930 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20932 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20934 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20935 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20936 vector builtin version number in __VEC__.
20938 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20940 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20942 (SFSI): New mode attribute.
20943 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20944 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20946 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20947 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20948 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20949 ("floatsi<mode>2"): Add wcefb instruction.
20951 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20953 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20954 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20956 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20957 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20958 support 32 bit fp-int conversions. Rename to ...
20959 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20960 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20961 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20962 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20965 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20967 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20968 if-then-else constructs if we can use the select instruction.
20969 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20971 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20973 * config/s390/s390.md ("*popcountdi_arch13_cc")
20974 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20976 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20977 Append _z196 to make it ...
20978 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20979 ("popcounthi2_z196"): ... this.
20980 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20981 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20983 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20985 * config/s390/s390.c (s390_canonicalize_comparison): Convert
20986 certain compares for arch13 in order to make use of the condition
20987 code result produced by the new instructions.
20988 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20989 nxrk, and nxgrk instruction patterns.
20990 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20991 (inv_no): Add new code iterator together with some attributes.
20992 ("*andc_split_<mode>"): Disable splitter for arch13.
20993 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20994 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20995 ("*<ANDOR:bitops_name>c<GPR:mode>")
20996 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20997 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20998 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20999 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21001 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21003 * common/config/s390/s390-common.c (processor_flags_table): New
21005 * config.gcc: Support arch13 with the --with-arch= configure flag.
21006 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21007 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21008 * config/s390/s390.c (s390_get_sched_attrmask)
21009 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21010 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21011 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21012 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21013 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21015 * config/s390/s390.opt: Support arch13 as processor type in
21016 command line options.
21018 2019-04-02 Martin Liska <mliska@suse.cz>
21020 PR translation/89912
21021 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21022 Fix param description of graphite-max-arrays-per-scop.
21024 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21026 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21027 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21028 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21030 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21032 PR rtl-optimization/85412
21033 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21034 sel_sched_region_1, not after.
21036 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21038 PR rtl-optimization/86928
21039 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21040 compute_live if necessary.
21041 (sel_redirect_edge_and_branch): Likewise.
21043 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21045 PR rtl-optimization/89865
21046 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21047 register if it is a part of small class.
21049 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21051 PR rtl-optimization/87273
21052 * sel-sched-ir.c (merge_fences): Remove assert.
21054 2019-04-01 Richard Biener <rguenther@suse.de>
21056 PR tree-optimization/46590
21057 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21058 (dom_walker::m_reachability): Add in place of...
21059 (dom_walker::m_skip_unreachable_blocks): ...this.
21060 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21061 Move complex initialization ...
21062 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21063 lazily and initialize edge flags on each invocation.
21064 (dom_walker::bb_reachable): Use m_reachability.
21066 2019-04-01 Martin Liska <mliska@suse.cz>
21069 * opt-suggestions.c (option_proposer::build_option_suggestions):
21070 Add variant without any argument in order to provide better
21073 2019-04-01 Richard Biener <rguenther@suse.de>
21076 * gimple.c: Include langhooks.h.
21077 (gimple_get_alias_set): Treat enumeral types as the underlying
21080 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21081 Eric Botcazou <ebotcazou@adacore.com>
21083 PR rtl-optimization/89862
21084 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21085 that operates on the full registers for WORD_REGISTER_OPERATIONS
21088 2019-03-29 Jim Wilson <jimw@sifive.com>
21090 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21091 Clear MASK_RVC and then set if C subset supported.
21093 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21096 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21097 non-addressable complit into its initializer if it is volatile.
21099 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21101 * opts-common.c (integral_argument): Set errno properly in one case.
21103 2019-03-29 Martin Liska <mliska@suse.cz>
21105 * doc/invoke.texi: Remove -Wchkp from documentation.
21107 2019-03-29 Martin Liska <mliska@suse.cz>
21109 * dbgcnt.c (print_limit_reach): New function.
21112 2019-03-29 Martin Liska <mliska@suse.cz>
21114 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21115 (dbg_cnt_process_opt): Parse first tokens aas
21116 dbg_cnt_process_single_pair is also using strtok.
21118 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21120 PR rtl-optimization/87485
21121 * function.c (expand_function_end): Move stack_protect_epilogue
21122 before loading of return value into hard register(s).
21124 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21126 PR middle-end/89621
21127 * tree-inline.h (struct copy_body_data): Add
21128 dont_remap_vla_if_no_change flag.
21129 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21130 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21131 and remap_type_2 returns false.
21132 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21133 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21134 only from where it is copied to nested contexts.
21136 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21139 * config/i386/i386.md (RMW operation with LEA peephole):
21140 Use LEAMODE mode attribute instead of SWI mode iterator for
21143 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21146 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21147 Also process XEXP (src, 0) of a shift insn.
21149 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21151 PR middle-end/89725
21152 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21153 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21155 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21157 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21159 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21160 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21161 immediately after first one with df_analyze in between, but rather
21162 process all bbs, queueing ones that need second pass in a worklist,
21163 df_analyze, process queued debug insn changes and if second pass is
21164 needed, process bbs from worklist, df_analyze, process queued debug
21167 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21168 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21169 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21171 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21174 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21177 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21180 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21181 function for 32-bit MS_ABI.
21182 (function_value_ms_32): New function.
21184 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21186 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21187 (movdi): Call gen_movdi_symbol_save_scc.
21188 (gen_movdi_symbol_save_scc): New insn and split.
21190 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21192 PR rtl-optimization/89313
21193 * function.c (matching_constraint_num): New static function.
21194 (match_asm_constraints_1): Use it. Fixup white space and comment.
21195 Don't replace inputs with non-matching constraints which conflict
21196 with early clobber outputs.
21198 2019-03-27 Jeff Law <law@redhat.com>
21200 PR rtl-optimization/87761
21201 PR rtl-optimization/89826
21202 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21204 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21205 note problem to get REG_DEAD/REG_UNUSED notes updated.
21207 2019-03-27 Richard Biener <rguenther@suse.de>
21209 PR tree-optimization/89463
21210 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21211 queue edges to remove.
21212 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21213 dead stmts. Delay edge removal until PHIs are removed to
21214 make debug-stmt creation not confused by seemingly degenerate
21217 2019-03-27 Alan Modra <amodra@gmail.com>
21219 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21221 * config/rs6000/darwin.h: Likewise.
21222 * config/rs6000/rs6000.c: Likewise.
21224 2019-03-27 Alan Modra <amodra@gmail.com>
21226 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21227 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21229 2019-03-26 Andrew Waterman <andrew@sifive.com>
21230 Jim Wilson <jimw@sifive.com>
21232 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21233 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21234 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21235 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21236 (generic_alu): Add auipc to type list.
21237 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21238 (riscv_microarchitecture): Declare.
21239 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21240 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21242 (riscv_microarchitecture): New.
21243 (sifive_7_tune_info): New.
21244 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21245 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21247 (riscv_store_data_bypass_p): New.
21248 (riscv_option_override): Set riscv_microarchitecture from
21249 cpu->microarchitecture.
21250 * config/riscv/riscv.md: Include sifive-7.md.
21253 (auipc<mode>): Change type to auipc.
21254 (restore_stack_nonlocal): New.
21255 * config/riscv/sifive-7.md: New.
21256 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21258 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21261 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21262 Also process XEXP (src, 0) of a shift insn.
21264 2019-03-26 Richard Biener <rguenther@suse.de>
21266 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21267 (copy_debug_stmt): Likewise.
21268 (expand_call_inline): Likewise.
21269 (copy_bb): Avoid redundant lookup & set of gimple_block.
21270 * gimple-low.c (lower_gimple_return): Likewise.
21271 (lower_builtin_setjmp): Likewise.
21273 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21275 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21276 is constant 0, turn into static const data member initialized to false.
21277 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21278 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21280 2019-03-26 Jason Merrill <jason@redhat.com>
21281 Jakub Jelinek <jakub@redhat.com>
21283 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21285 (mem_alloc_description::release_object_overhead): Fix comment typos.
21286 * hash-table.h (hash_table::~hash_table): Call
21287 release_instance_overhead only if m_entries is non-NULL, otherwise
21288 call unregister_descriptor.
21290 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21292 PR tree-optimization/81740
21293 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21294 In case of outer loop vectorization, check for backward dependence
21295 at the inner loop if outer loop dependence is reversed.
21297 2019-03-26 Alan Modra <amodra@gmail.com>
21299 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21300 rs6000_vector_mem init. Correct wI and wJ comment.
21302 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21304 PR rtl-optimization/88347
21305 PR rtl-optimization/88423
21306 * sched-deps.c (sched_analyze_insn): Take into account that for
21307 tablejumps the barrier appears after a label and a jump_table_data.
21309 2019-03-25 Martin Sebor <msebor@redhat.com>
21312 * c-common.c (check_user_alignment): Rename local. Correct maximum
21313 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21314 convert it to UHWI when it fits.
21316 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21319 * dwarf2out.c (premark_used_variables): New function.
21320 (prune_unused_types_walk): Do not mark not premarked external
21322 (prune_unused_types): Call premark_used_variables.
21324 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21326 PR rtl-optimization/89676
21327 * lra-constraints.c (curr_insn_transform): Do match reload for
21328 early clobbers when the match was successful only for different
21331 2019-03-25 Martin Sebor <msebor@redhat.com>
21333 * doc/extend.texi (Common Type Attributes): Document vector_size.
21334 (Common Variable Attributes): Mention size constraint. Correct
21336 (Vector Extensions): Use @dfn when defining bas type. Clarify
21337 base type and size constraints.
21339 2019-03-25 Richard Biener <rguenther@suse.de>
21341 PR tree-optimization/89789
21342 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21343 changes from non-undefined back to undefined.
21345 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21347 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21348 heap string and a gc string, but since this variable is unknown to
21349 ggc the gc string might get reused and corrupted. Fixed by always
21350 using a heap string.
21352 2019-03-25 Richard Biener <rguenther@suse.de>
21354 PR tree-optimization/89779
21355 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21356 to remove IV defs, delay actual removal.
21357 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21358 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21359 very end, properly also reset loop control IV information.
21361 2019-03-25 Richard Biener <rguenther@suse.de>
21363 PR tree-optimization/89802
21364 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21365 move EH data to folded stmt.
21367 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21369 * config/s390/s390-builtin-types.def: Remove few unused types and
21370 fix sort order for others.
21372 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21374 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21375 expected and found types with -mdebug during builtin matching.
21377 2019-03-25 Richard Biener <rguenther@suse.de>
21379 PR middle-end/89790
21380 * fold-const.c (operand_equal_p): Revert last change with
21383 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21385 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21386 notes for the result of the __tls_get_addr calls.
21387 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21389 2019-03-24 Jeff Law <law@redhat.com>
21391 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21393 PR rtl-optimization/87761
21394 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21395 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21397 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21398 rescans. Reprocess blocks as needed, calling df_analyze before
21399 reprocessing. Always call df_analyze before fixing up debug bind
21402 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21404 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21407 2019-03-22 Andrew Pinski <apinski@marvell.com>
21409 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21410 attrribute for uxtw.
21412 2019-03-26 Jeff Law <law@redhat.com>
21414 PR rtl-optimization/87761
21415 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21416 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21417 (mips_split_move): Accept new INSN argument. Try to forward SRC
21418 into the next instruction.
21419 (mips_split_move_insn): Pass INSN through to mips_split_move.
21421 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21423 PR rtl-optimization/89676
21424 * lra-constraints.c (curr_insn_transform): Do match reload for
21425 early clobbers even if the match was successful.
21427 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21430 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21432 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21434 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21436 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21438 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21439 <avx512>_fmsub_<mode>_mask3<round_name>,
21440 <avx512>_fnmadd_<mode>_mask3<round_name>,
21441 <avx512>_fnmsub_<mode>_mask3<round_name>,
21442 avx512f_vmfmadd_<mode>_mask3<round_name>,
21443 avx512f_vmfmsub_<mode>_mask3<round_name>,
21444 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21445 instead of register_operand and %v instead of v for match_operand 1.
21446 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21447 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21448 <round_nimm_predicate> instead of register_operand and %v instead of v
21449 for match_operand 1.
21451 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21452 <avx512>_fmadd_<mode>_mask3<round_name>,
21453 <avx512>_fmsub_<mode>_mask<round_name>,
21454 <avx512>_fmsub_<mode>_mask3<round_name>,
21455 <avx512>_fnmadd_<mode>_mask<round_name>,
21456 <avx512>_fnmadd_<mode>_mask3<round_name>,
21457 <avx512>_fnmsub_<mode>_mask<round_name>,
21458 <avx512>_fnmsub_<mode>_mask3<round_name>,
21459 <avx512>_fmaddsub_<mode>_mask<round_name>,
21460 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21461 <avx512>_fmsubadd_<mode>_mask<round_name>,
21462 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21463 <round_nimm_predicate> instead of nonimmediate_operand.
21464 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21465 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21466 Use register_operand instead of <round_nimm_predicate> for the
21467 operand that needs to match output.
21468 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21469 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21470 Likewise. Formatting fixes.
21473 * config/i386/i386.c (enum ix86_builtins): Remove
21474 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21475 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21476 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21477 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21478 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21479 __builtin_ia32_vfmsubss3_mask3): New builtins.
21480 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21481 avx512f_vmfmadd_<mode>_mask3<round_name>,
21482 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21483 *avx512f_vmfmsub_<mode>_mask<round_name>,
21484 avx512f_vmfmsub_<mode>_mask3<round_name>,
21485 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21486 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21487 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21488 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21489 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21490 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21491 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21492 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21493 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21494 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21495 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21496 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21497 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21498 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21499 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21500 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21501 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21502 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21503 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21504 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21505 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21506 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21507 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21508 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21509 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21510 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21511 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21512 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21514 2019-03-21 Martin Sebor <msebor@redhat.com>
21516 PR tree-optimization/89350
21517 * builtins.c (compute_objsize): Also ignore offsets whose upper
21519 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21520 (builtin_memref::builtin_memref): Initialize new member.
21521 Allow EXPR to be null.
21522 (builtin_memref::extend_offset_range): Replace local with a member.
21523 Avoid assuming pointer offsets are unsigned.
21524 (builtin_memref::set_base_and_offset): Determine base object
21525 before computing offset range.
21526 (builtin_access::builtin_access): Handle memset.
21527 (builtin_access::generic_overlap): Replace local with a member.
21528 (builtin_access::strcat_overlap): Same.
21529 (builtin_access::overlap): Same.
21530 (maybe_diag_overlap): Same.
21531 (maybe_diag_access_bounds): Same.
21532 (wrestrict_dom_walker::check_call): Handle memset.
21533 (check_bounds_or_overlap): Same.
21535 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21536 Jakub Jelinek <jakub@redhat.com>
21539 * tree.c (fld_type_variant, fld_incomplete_type_of,
21540 fld_process_array_type): Call fld->pset.add and don't call
21541 add_tree_to_fld_list if it returns true.
21542 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21543 non-marked types from TYPE_NEXT_VARIANT list.
21544 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21546 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21548 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21549 to false, if true, don't alloc_entries during construction, but defer
21550 it to the first method that needs m_entries allocated.
21551 (hash_table::hash_table, hash_table::~hash_table,
21552 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21553 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21554 hash_table::clear_slot, hash_table::traverse_noresize,
21555 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21556 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21558 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21559 NO_INSERT instead of find_with_hash.
21560 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21561 hash_set::m_table): Add Lazy to template params of hash_table.
21562 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21563 * attribs.c (test_attribute_exclusions): Likewise.
21564 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21565 hash_set. Add tests for hash_set with Lazy = true.
21567 2019-03-21 Richard Biener <rguenther@suse.de>
21569 PR tree-optimization/89779
21570 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21571 checks with respect to released SSA names now having error_mark_node
21573 * fold-const.c (operand_equal_p): Likewise.
21575 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21578 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21580 (s390_optimize_register_info): Use global_not_special_regno_p to
21581 check for global regs.
21583 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21586 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21587 update this_alternative nor this_alternative_set.
21589 2019-03-19 Jim Wilson <jimw@sifive.com>
21592 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21593 align, size, offset. Use them to handle a BLKmode reference. Update
21595 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21597 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21599 PR rtl-optimization/89768
21600 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21601 instead of GEN_INT.
21602 (unroll_loop_runtime_iterations): Likewise.
21604 2019-03-19 Martin Sebor <msebor@redhat.com>
21606 PR tree-optimization/89644
21607 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21608 rather than endptr as an indicator of nul-termination.
21610 PR tree-optimization/89644
21611 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21612 arrays in determining sequence sizes in strncpy and stpncpy.
21614 2019-03-19 Martin Liska <mliska@suse.cz>
21616 PR middle-end/89737
21617 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21618 unlikely_edges if there's an edge that belongs to both these sets.
21620 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21623 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21624 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21625 go via a stack temporary.
21627 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21630 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21631 instead of gen_rtx_SUBREG.
21632 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21634 2019-03-19 Richard Biener <rguenther@suse.de>
21637 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21639 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21643 * tree.c (free_lang_data_in_decl): Do not free context of C++
21646 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21649 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21650 subs for the first alternative except when operands[3] is 1.
21653 * gimplify.c (gimplify_asm_expr): For output argument with
21654 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21657 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21659 PR rtl-optimization/89753
21660 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21661 explicit unrolling factor even more robust.
21663 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21666 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21667 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21668 signed zeros, do another copysign after the compensation.
21670 2019-03-18 Martin Sebor <msebor@redhat.com>
21672 PR tree-optimization/89720
21673 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21674 more conservatively, the same as anti-range.
21676 2019-03-18 Richard Biener <rguenther@suse.de>
21678 PR middle-end/88945
21679 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21680 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21681 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21682 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21684 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21686 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21687 Extend queue to 1024 entries.
21688 Add "consumed" field.
21689 (gomp_print_output): Remove print_index parameter.
21690 Add final parameter.
21691 Change limit to unsigned.
21692 Use consumed field to implement circular buffer.
21693 Detect interrupted print in final pass.
21694 Flush output at the end.
21695 (run): Update gomp_print_output usage.
21696 (main): Initialize kernargs->output_data.consumed.
21698 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21700 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21701 calculation of the minimum number of scalar iterations for
21702 fully-predicated loops.
21704 2019-03-18 Martin Jambor <mjambor@suse.cz>
21706 PR tree-optimization/89546
21707 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21708 any propagation to its children took place.
21710 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21713 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21714 parameter, and make use of it.
21715 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21717 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21719 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21720 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21721 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21722 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21723 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21724 match what the ops is doing.
21725 (push_multi_fp_blink): Likewise.
21726 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21727 compiling for size and elf target.
21728 (arc_save_callee_enter): Adjust note to match what enter/leave
21731 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21733 * config/arc/arc.md (tst_movb): Fix constraint.
21735 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21737 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21739 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21741 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21742 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21743 reg_alloc_order references.
21744 (size_alloc_order): Define.
21745 (arc_adjust_reg_alloc_order): New function.
21746 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21748 (ADJUST_REG_ALLOC_ORDER): Define.
21749 (HONOR_REG_ALLOC_ORDER): Likewise.
21751 2019-03-18 Richard Biener <rguenther@suse.de>
21754 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21755 loads and stores a bit more.
21757 2019-03-18 Richard Biener <rguenther@suse.de>
21760 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21761 load pessimization to stores as well.
21763 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21765 PR middle-end/86979
21766 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21767 successor, use NULL as its av set.
21769 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21771 PR rtl-optimization/89721
21772 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21774 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21777 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21778 When handling vec_extract, use modular arithmetic to allow
21779 constant selectors greater than vector length.
21780 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21781 V1TImode vectors to have constant selector values greater than 0.
21782 Use modular arithmetic to compute vector index.
21783 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21784 index for in-memory vectors. Correct code generation for
21785 in-register vectors.
21786 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21789 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21793 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21796 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21799 * tree.c (inchash::add_expr): Strip any location wrappers.
21800 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21801 after hash verification.
21804 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21805 SIGN_EXTEND and ZERO_EXTEND.
21807 2019-03-14 Jason Merrill <jason@redhat.com>
21808 Jakub Jelinek <jakub@redhat.com>
21810 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21811 than if is_empty (*slot).
21812 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21813 existing elt and for elt removal.
21814 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21815 of already removed elt.
21817 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21820 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21821 REG_EH_REGION note.
21823 2019-03-14 Martin Liska <mliska@suse.cz>
21826 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21828 2019-03-14 Richard Biener <rguenther@suse.de>
21831 * config/i386/i386.c (make_resolver_func): Properly set
21832 DECL_CONTEXT on the RESULT_DECL.
21833 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21835 2019-03-14 Richard Biener <rguenther@suse.de>
21837 * gimple-pretty-print.c: Include cfgloop.h.
21838 (dump_gimple_phi): Adjust.
21839 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21840 (pp_cfg_jump): Adjust.
21841 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21842 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21843 (lower_phi_internal_fn): Remove.
21844 (verify_gimple_call): Remove IFN_PHI special-casing.
21845 (dump_function_to_file): Dump IL state.
21846 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21847 done to deal with PHI nodes being present in non-SSA state.
21849 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21852 * multiple_target.c (create_dispatcher_calls): Change
21853 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21854 In the node->iterate_referring loop, push *ref rather than ref, call
21855 ref->remove_reference () and always pass 0 to iterate_referring.
21857 PR rtl-optimization/89679
21858 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21859 would contain a paradoxical SUBREG.
21861 2019-03-14 Richard Biener <rguenther@suse.de>
21863 PR tree-optimization/89710
21864 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21867 2019-03-14 Martin Liska <mliska@suse.cz>
21869 * coverage.c (coverage_begin_function): Stream also
21871 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21872 documentation about function declaration location.
21873 * gcov-dump.c (tag_function): Print whole range
21874 of function declaration.
21875 * gcov.c (struct function_info): Add end_column field.
21876 (function_info::function_info): Initialize it.
21877 (output_json_intermediate_file): Output {start,end}_column
21879 (read_graph_file): Read end_column.
21881 2019-03-14 Richard Biener <rguenther@suse.de>
21883 PR middle-end/89698
21884 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21885 that the access types are similar.
21887 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21889 PR tree-optimization/89703
21890 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21891 aren't compatible also with builtin_decl_explicit. Check pure
21892 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21893 and BUILT_IN_STPNCPY{,_CHK}.
21895 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21898 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21899 addr32 prefix to VSIB address for X32.
21900 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21902 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21903 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21904 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21905 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21906 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21907 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21908 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21909 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21910 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21911 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21912 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21913 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21914 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21915 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21916 (*avx512f_scatterdi<mode>): Likewise.
21918 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21921 * lra-constraints.c (inherit_in_ebb): Update
21922 potential_reload_hard_regs along with live_hard_regs.
21924 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21927 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21929 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21931 2019-03-13 Martin Sebor <msebor@redhat.com>
21933 PR tree-optimization/89662
21934 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21937 2019-03-13 Richard Biener <rguenther@suse.de>
21939 PR middle-end/89677
21940 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21941 throw FP expressions at tree-affine.
21943 2019-03-14 Richard Biener <rguenther@suse.de>
21945 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21946 dump negative integer constants using _Literal (type) -num.
21948 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21950 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21951 nonlocal_value member.
21953 PR middle-end/88588
21954 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21955 (ipa_simd_modify_function_body): Handle PHIs.
21957 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21959 * config/s390/s390.c (s390_option_override_internal): Use more
21960 aggressive inlining parameters.
21962 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21964 * config/s390/3906.md: New file.
21965 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21966 (LONGRUNNING_THRESHOLD): Remove.
21967 (MAX_SCHED_MIX_SCORE): Decrease.
21968 (MAX_SCHED_MIX_DISTANCE): Decrease.
21969 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21970 (struct s390_sched_state): New struct to hold scheduling state.
21971 (S390_SCHED_STATE_NORMAL): Remove.
21972 (S390_SCHED_STATE_CRACKED): Remove.
21973 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21974 (s390_get_sched_attrmask): Use new attribute.
21975 (s390_get_unit_mask): Use new units.
21976 (s390_is_fpd): New function.
21977 (s390_is_fxd): New function.
21978 (s390_is_longrunning): New function.
21979 (s390_sched_score): Use new functions.
21980 (s390_sched_reorder): Likewise.
21981 (s390_sched_variable_issue): Rework and use new functions.
21982 (s390_sched_init): Use new functions.
21983 * config/s390/s390.h (s390_tune_attr): Add z14.
21984 * config/s390/s390.md: Add z14.
21986 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21988 * config/s390/2964.md: Update pipeline description.
21989 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21990 (LONGRUNNING_THRESHOLD): Remove.
21991 (LATENCY_FACTOR): Remove.
21992 (s390_get_unit_mask): Add unit.
21993 (s390_sched_score): Use fxd/fpd.
21994 (s390_sched_variable_issue): Use fxd/fpd.
21996 2019-03-12 Martin Liska <mliska@suse.cz>
21998 * config/i386/i386.c: Reword an error message.
22000 2019-03-12 Martin Jambor <mjambor@suse.cz>
22002 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22003 terminate with newline.
22005 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22008 * config/s390/s390.md (tabort): Use %wd instead of
22009 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22010 letters and periods.
22011 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22012 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22015 PR middle-end/89663
22016 * builtins.c (expand_builtin_int_roundingfn,
22017 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22018 gcc_unreachable if validate_arglist fails.
22020 2019-03-12 Richard Biener <rguenther@suse.de>
22022 PR tree-optimization/89664
22023 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22024 free the occurance tree after the early out.
22026 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22028 PR middle-end/89655
22030 * vr-values.c (vr_values::update_value_range): If
22031 old_vr->varying_p (), don't update it, make new_vr also VARYING
22034 2019-03-11 Martin Liska <mliska@suse.cz>
22036 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22037 Fix double string quoting.
22039 2019-03-11 Martin Liska <mliska@suse.cz>
22041 * collect-utils.c (collect_wait): Wrap apostrophes
22042 in gcc internal format with %'.
22043 * collect2.c (main): Likewise.
22044 (scan_prog_file): Likewise.
22045 (scan_libraries): Likewise.
22046 * config/i386/i386.c (ix86_expand_call): Likewise.
22047 (ix86_handle_interrupt_attribute): Likewise.
22048 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22049 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22050 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22051 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22052 * symtab.c (symtab_node::verify_base): Likewise.
22053 * tree-cfg.c (verify_gimple_label): Likewise.
22054 * tree.c (verify_type_variant): Likewise.
22056 2019-03-11 Martin Liska <mliska@suse.cz>
22058 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22059 in a string format message and fix GNU coding style.
22060 (expand_builtin_set_thread_pointer): Likewise.
22061 * common/config/aarch64/aarch64-common.c
22062 (aarch64_rewrite_selected_cpu): Likewise.
22063 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22064 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22065 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22066 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22067 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22068 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22069 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22070 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22071 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22072 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22074 * common/config/riscv/riscv-common.c
22075 (riscv_subset_list::parsing_subset_version): Likewise.
22076 (riscv_subset_list::parse_std_ext): Likewise.
22077 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22078 (riscv_subset_list::parse): Likewise.
22079 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22080 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22081 (aarch64_override_options_internal): Likewise.
22082 (aarch64_validate_mcpu): Likewise.
22083 (aarch64_validate_march): Likewise.
22084 (aarch64_validate_mtune): Likewise.
22085 (aarch64_override_options): Likewise.
22086 * config/alpha/alpha.c (alpha_option_override): Likewise.
22087 * config/arc/arc.c (arc_init): Likewise.
22088 (parse_mrgf_banked_regs_option): Likewise.
22089 (arc_override_options): Likewise.
22090 (arc_expand_builtin_aligned): Likewise.
22091 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22092 (arm_expand_builtin): Likewise.
22093 * config/arm/arm.c (arm_option_check_internal): Likewise.
22094 (arm_configure_build_target): Likewise.
22095 (arm_option_override): Likewise.
22096 (arm_options_perform_arch_sanity_checks): Likewise.
22097 (arm_handle_cmse_nonsecure_entry): Likewise.
22098 (arm_handle_cmse_nonsecure_call): Likewise.
22099 (arm_tls_referenced_p): Likewise.
22100 (thumb1_expand_prologue): Likewise.
22101 * config/avr/avr.c (avr_option_override): Likewise.
22102 * config/bfin/bfin.c (bfin_option_override): Likewise.
22103 * config/c6x/c6x.c (c6x_option_override): Likewise.
22104 * config/cr16/cr16.c (cr16_override_options): Likewise.
22105 * config/cris/cris.c (cris_option_override): Likewise.
22106 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22107 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22108 * config/darwin.c (darwin_override_options): Likewise.
22109 * config/frv/frv.c (frv_expand_builtin): Likewise.
22110 * config/h8300/h8300.c (h8300_option_override): Likewise.
22111 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22112 (ix86_option_override_internal): Likewise.
22113 (warn_once_call_ms2sysv_xlogues): Likewise.
22114 (ix86_expand_prologue): Likewise.
22115 (split_stack_prologue_scratch_regno): Likewise.
22116 (ix86_warn_parameter_passing_abi): Likewise.
22117 * config/ia64/ia64.c (fix_range): Likewise.
22118 * config/m68k/m68k.c (m68k_option_override): Likewise.
22119 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22120 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22121 (mips_set_compression_mode): Likewise.
22122 * config/mmix/mmix.c (mmix_option_override): Likewise.
22123 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22124 * config/msp430/msp430.c (msp430_option_override): Likewise.
22125 * config/nds32/nds32.c (nds32_option_override): Likewise.
22126 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22127 (nios2_option_override): Likewise.
22128 (nios2_expand_custom_builtin): Likewise.
22129 * config/nvptx/mkoffload.c (main): Likewise.
22130 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22131 * config/pa/pa.c (fix_range): Likewise.
22132 (pa_option_override): Likewise.
22133 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22134 (riscv_option_override): Likewise.
22135 * config/rl78/rl78.c (rl78_option_override): Likewise.
22136 * config/rs6000/aix61.h: Likewise.
22137 * config/rs6000/aix71.h: Likewise.
22138 * config/rs6000/aix72.h: Likewise.
22139 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22140 * config/rs6000/freebsd64.h: Likewise.
22141 * config/rs6000/linux64.h: Likewise.
22142 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22143 (rs6000_expand_zeroop_builtin): Likewise.
22144 (rs6000_expand_mtfsb_builtin): Likewise.
22145 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22146 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22147 (rs6000_invalid_builtin): Likewise.
22148 (rs6000_expand_split_stack_prologue): Likewise.
22149 * config/rs6000/rtems.h: Likewise.
22150 * config/rx/rx.c (valid_psw_flag): Likewise.
22151 (rx_expand_builtin): Likewise.
22152 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22153 * config/s390/s390.c (s390_expand_builtin): Likewise.
22154 (s390_function_profiler): Likewise.
22155 (s390_option_override_internal): Likewise.
22156 (s390_option_override): Likewise.
22157 * config/sh/sh.c (sh_option_override): Likewise.
22158 (sh_builtin_saveregs): Likewise.
22159 (sh_fix_range): Likewise.
22160 * config/sh/vxworks.h: Likewise.
22161 * config/sparc/sparc.c (sparc_option_override): Likewise.
22162 * config/spu/spu.c (spu_option_override): Likewise.
22163 (fix_range): Likewise.
22164 * config/visium/visium.c (visium_option_override): Likewise.
22165 (visium_handle_interrupt_attr): Likewise.
22166 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22167 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22168 (dbg_cnt_process_opt): Likewise.
22169 * dwarf2out.c (output_dwarf_version): Likewise.
22170 * except.c (expand_eh_return): Likewise.
22171 * gcc.c (defined): Likewise.
22172 (driver_handle_option): Likewise.
22173 (process_command): Likewise.
22174 (compare_files): Likewise.
22175 (driver::prepare_infiles): Likewise.
22176 (driver::do_spec_on_infiles): Likewise.
22177 (driver::maybe_run_linker): Likewise.
22178 * omp-offload.c (oacc_parse_default_dims): Likewise.
22179 * opts-global.c (handle_common_deferred_options): Likewise.
22180 * opts.c (parse_sanitizer_options): Likewise.
22181 (common_handle_option): Likewise.
22182 (enable_warning_as_error): Likewise.
22183 * passes.c (enable_disable_pass): Likewise.
22184 * plugin.c (parse_plugin_arg_opt): Likewise.
22185 (default_plugin_dir_name): Likewise.
22186 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22187 (default_pch_valid_p): Likewise.
22188 * toplev.c (init_asm_output): Likewise.
22189 (process_options): Likewise.
22190 (toplev::run_self_tests): Likewise.
22191 * tree-cfg.c (verify_gimple_call): Likewise.
22192 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22193 (tree_inlinable_function_p): Likewise.
22194 * var-tracking.c (vt_find_locations): Likewise.
22196 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22198 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22199 only on the else branch.
22201 2019-03-11 Martin Liska <mliska@suse.cz>
22203 * gcov.c (output_intermediate_json_line): Print function
22205 (output_json_intermediate_file): Add new argument.
22206 * doc/gcov.texi: Document the change.
22208 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22210 PR rtl-optimization/89588
22211 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22212 explicit unrolling factor more robust.
22214 2019-03-11 Richard Biener <rguenther@suse.de>
22216 PR tree-optimization/89649
22217 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22218 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22219 on the prolog and epilog loops.
22220 (vect_loop_versioning): Return copy of loop.
22221 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22222 on the non-vectorized version of the loop.
22224 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22227 * config/i386/sse.md (*vec_extractv2di_0_sse):
22228 Add (=r,x) alternative and corresponding splitter.
22230 2019-03-10 Martin Jambor <mjambor@suse.cz>
22232 PR tree-optimization/85762
22233 PR tree-optimization/87008
22234 PR tree-optimization/85459
22235 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22236 it points to if there is a type changing MEM_REF. Adjust all callers.
22237 (build_accesses_from_assign): Disable total scalarization if
22238 contains_vce_or_bfcref_p returns true through the new parameter, for
22241 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22244 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22245 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22248 * common.opt (fdiagnostics-show-labels,
22249 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22250 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22251 gas-locview-support, ginline-points, ginternal-reset-location-views):
22252 Terminate description text with a dot.
22253 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22254 * config/mcore/mcore.opt (m210, m340): Likewise.
22255 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22256 mnops=): Start description text with a capital letter.
22257 * config/arc/arc.opt (msize-level=): Likewise.
22258 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22259 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22260 mnewlib): Likewise.
22261 * config/ft32/ft32.opt (msim): Likewise.
22262 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22263 (mnodiv, mnopm): Terminate description text with a dot.
22264 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22266 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22268 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22271 PR rtl-optimization/89634
22272 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22273 are modified in BB_END (e->src) instruction.
22275 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22278 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22279 messages more amenable to translation, and improve wording.
22281 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22283 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22284 ud- and du-chains between phases.
22286 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22289 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22290 instead of POLY_INT_CST.
22292 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22294 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22297 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22302 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22303 (_mm_storeu_si64): Ditto.
22305 2019-03-08 Martin Liska <mliska@suse.cz>
22308 * config/i386/i386.c (ix86_option_override_internal): Disable
22309 jump tables when retpolines are used.
22311 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22314 * ipa-split.c (execute_split_functions): Do not split
22315 'noinline' or 'section' function.
22317 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22320 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22321 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22322 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22325 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22326 from diagnostics. Formatting fixes.
22329 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22330 warn_odr diagnostics.
22333 * lra-constraints.c (process_alt_operands): Avoid one space before
22334 " at the end of line and another after " on another line in a string
22336 * attribs.c (handle_dll_attribute): Likewise.
22337 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22339 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22340 warning_at or inform messages in G_() if there is no ?:.
22342 PR tree-optimization/89550
22343 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22344 returned true. Formatting fixes.
22345 (expand_builtin_strnlen): Formatting fixes.
22346 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22347 if warning_at returned true.
22348 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22350 2019-03-08 Richard Biener <rguenther@suse.de>
22352 PR middle-end/89578
22353 * cfgloop.h (struct loop): Add owned_clique field.
22354 * cfgloopmanip.c (copy_loop_info): Copy it.
22355 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22357 * tree-inline.c (copy_loops): Remap owned_clique.
22358 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22359 * lto-streamer-out.c (output_cfg): Likewise.
22361 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22364 * config/darwin.c: Include intl.h.
22365 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22366 composing the message out of two separate parts.
22368 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22371 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22372 doesn't start with a capital letter and doesn't end with a dot.
22373 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22374 with a capital letter.
22375 (ix86_mangle_function_version_assembler_name): Likewise.
22376 (ix86_generate_version_dispatcher_body): Likewise.
22377 (fold_builtin_cpu): Likewise.
22378 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22379 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22380 translators, wrap full type name in %qs.
22382 PR translation/79999
22383 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22384 depend clause with source (or sink) modifier.
22385 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22388 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22389 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22390 (avx512f_load<mode>_mask): New define_expand.
22391 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22392 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22393 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22394 __builtin_ia32_movess_mask): New builtins.
22395 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22396 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22397 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22398 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22400 2019-03-07 Martin Jambor <mjambor@suse.cz>
22403 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22404 for extern inline functions.
22406 2019-03-07 Martin Jambor <mjambor@suse.cz>
22409 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22410 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22411 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22412 have multiple callees. At the end check if declarations match as
22413 opposed to cgraph_nodes.
22415 2019-03-07 Martin Liska <mliska@suse.cz>
22417 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22418 which is equivalent to searching for this in clones chain.
22419 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22420 names with a neighbour and special case first node in a chain.
22422 2019-01-25 Jason Merrill <jason@redhat.com>
22424 PR c++/80916 - spurious "static but not defined" warning.
22425 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22426 for an internal symbol with DECL_EXTERNAL.
22428 2019-04-07 Richard Biener <rguenther@suse.de>
22430 PR middle-end/89618
22431 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22432 * tree-inline.c (copy_loops): Simplify.
22434 2019-03-07 Martin Liska <mliska@suse.cz>
22436 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22438 2019-03-07 Richard Biener <rguenther@suse.de>
22440 PR tree-optimization/89595
22441 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22442 stmt iterator as reference, take boolean output parameter to
22443 indicate whether the stmt was removed and thus the iterator
22445 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22446 stmts created by folding.
22448 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22451 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22454 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22456 PR rtl-optimization/88845
22457 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22459 * lra.c (remove_scratches_1): New function.
22460 (remove_scratches): Use it.
22461 (lra_emit_move): Likewise.
22463 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22465 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22466 unaligned_access variable.
22467 * config/arc/arc.c (arc_override_options): Set unaligned access
22468 default on for HS CPUs.
22469 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22471 2019-03-06 Martin Liska <mliska@suse.cz>
22473 PR gcov-profile/89577
22474 * doc/gcov.texi: Prefer to use --coverage.
22475 * doc/sourcebuild.texi: Likewise.
22477 2019-03-02 Jason Merrill <jason@redhat.com>
22479 PR c++/86485 - -Wmaybe-unused with empty class ?:
22480 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22482 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22485 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22488 PR middle-end/89590
22489 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22490 exactly one argument.
22492 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22493 Richard Sandiford <richard.sandiford@arm.com>
22495 PR tree-optimization/89570
22496 * match.pd (vec_cond into cond_op simplification): Don't use
22497 get_conditional_internal_fn, use as_internal_fn (cond_op).
22499 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22502 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22503 to decide when to split off a non-zero offset from a symbol.
22504 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22505 in function symbols.
22507 2019-03-05 Richard Biener <rguenther@suse.de>
22509 PR tree-optimization/89594
22510 * tree-if-conv.c (pass_if_conversion::execute): Handle
22511 case where .LOOP_VECTORIZED_FUNCTION was removed.
22513 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22516 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22517 instead alloca it only when needed with the needed size.
22519 PR tree-optimization/89570
22520 * match.pd (vec_cond into cond_op simplification): Guard with
22521 vectorized_internal_fn_supported_p test and #if GIMPLE.
22523 PR tree-optimization/89566
22524 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22525 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22526 Punt if get_user_idx_format succeeds, but idx_format argument is
22527 not provided or doesn't have pointer type, or if idx_args is above
22528 number of provided arguments.
22530 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22532 PR tree-optimization/89437
22533 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22535 2019-03-04 Richard Biener <rguenther@suse.de>
22537 PR middle-end/89572
22538 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22541 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22543 PR tree-optimization/89487
22544 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22545 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22546 (distribute_loop): Don't do runtime alias check if there is non-
22547 addressable data reference.
22548 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22549 is a register variable.
22551 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22554 * config/arm/arm.md (cmpsi2_addneg): Use
22555 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22556 If operands[2] is 0 or INT_MIN, force use of subs.
22557 (*compare_scc splitter): Use gen_int_mode.
22558 (*negscc): Likewise.
22559 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22561 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22562 Monk Chiang <sh.chiang04@gmail.com>
22564 * common/config/riscv/riscv-common.c: Include sstream.
22565 (riscv_subset_list::to_string): New.
22566 (riscv_arch_str): Likewise.
22567 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22568 * config.in: Regen.
22569 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22570 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22571 (riscv_emit_attribute): New.
22572 (riscv_file_start): Emit attribute if needed.
22573 (riscv_option_override): Init riscv_emit_attribute_p.
22574 * config/riscv/riscv.opt (mriscv-attribute): New option.
22575 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22576 * configure: Regen.
22577 * doc/install.texi: Document --with-riscv-attribute.
22578 * doc/invoke.texi: Document -mriscv-attribute.
22580 * common/config/riscv/riscv-common.c:
22581 Include config/riscv/riscv-protos.h.
22582 (INCLUDE_STRING): Defined.
22583 (RISCV_DONT_CARE_VERSION): Defined.
22584 (riscv_subset_t): Declare.
22585 (riscv_subset_t::riscv_subset_t): New.
22586 (riscv_subset_list): Declare.
22587 (riscv_subset_list::riscv_subset_list): New.
22588 (riscv_subset_list::~riscv_subset_list): Likewise.
22589 (riscv_subset_list::parsing_subset_version): Likewise.
22590 (riscv_subset_list::parse_std_ext): Likewise.
22591 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22592 (riscv_subset_list::add): Likewise.
22593 (riscv_subset_list::lookup): Likewise.
22594 (riscv_subset_list::xlen): Likewise.
22595 (riscv_subset_list::parse): Likewise.
22596 (riscv_supported_std_ext): Likewise.
22597 (current_subset_list): Likewise.
22598 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22601 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22603 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22604 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22605 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22607 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22609 PR rtl-optimization/85899
22610 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22611 fallthru edges leading to the exit block.
22613 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22616 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22617 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22619 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22621 PR tree-optimization/89535
22622 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22623 for each operand. Calculate the fallback choice for mask operands
22624 and pass it to vect_get_vec_def_for_operand.
22626 2019-03-01 Richard Biener <rguenther@suse.de>
22628 PR middle-end/89541
22629 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22630 get virtual operands.
22631 (get_expr_operands): Handle CONST_DECL like other decls.
22633 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22635 PR middle-end/89503
22636 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22637 on DECL_P and EXPR_P.
22639 2019-03-01 Richard Biener <rguenther@suse.de>
22641 PR middle-end/89497
22642 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22643 argument, defaulted to zero.
22644 * passes.c (execute_function_todo): Pass down SSA update flags
22645 to cleanup_tree_cfg.
22646 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22647 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22649 (cleanup_tree_cfg): Get and pass down SSA update flags.
22651 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22654 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22655 early_lto_debug argument.
22657 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22659 PR tree-optimization/89536
22660 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22661 only whether bit #0 of the value is 0 instead of the entire value.
22663 2019-02-28 Marek Polacek <polacek@redhat.com>
22665 PR c++/87068 - missing diagnostic with fallthrough statement.
22666 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22667 at the end of a seq, save its location to walk_stmt_info.
22668 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22671 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22674 * tree.c (find_atomic_core_type): Move ahead in file.
22675 (check_base_type): Correctly compare alignments of atomic types.
22677 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22680 * config/i386/i386.c (get_builtin_code_for_version): Identify
22681 Westmere from PCLMUL, instead of AES.
22683 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22686 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22687 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22690 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22693 * config/aarch64/aarch64-option-extensions.def: Document it.
22694 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22697 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22700 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22701 builtins if they don't have a single scalar floating point argument.
22704 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22706 PR rtl-optimization/89490
22707 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22708 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22709 block section is not mergeable.
22711 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22714 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22715 old define_insn to ...
22716 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22717 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22718 Rename old define_insn to ...
22719 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22720 (thumb2_casesi_internal_pic): New define_expand. Rename old
22722 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22723 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22724 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22726 2019-02-27 Richard Biener <rguenther@suse.de>
22729 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22731 2019-02-27 Richard Biener <rguenther@suse.de>
22733 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22736 2019-02-27 Richard Biener <rguenther@suse.de>
22739 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22740 parameter, prefix section name with .gnu.debuglto_ if true.
22741 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22742 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22744 2019-02-27 Richard Biener <rguenther@suse.de>
22747 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22748 rather than on use_debug_types, doing what output_die does.
22749 (value_format): Likewise.
22751 2019-02-27 Martin Jambor <mjambor@suse.cz>
22752 Martin Sebor <msebor@redhat.com>
22754 * doc/invoke.texi (Warning Options): Reword description of
22755 -Wno-absolute-value.
22757 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22759 PR tree-optimization/89280
22760 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22761 builtin_setjmp_setup_bb): New functions.
22762 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22763 When visiting __builtin_setjmp_setup block, queue in special
22764 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22765 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22766 from visited after the loop if they don't have any visited successor
22769 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22771 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22773 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22775 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22778 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22779 with types other than sizetype/ssizetype.
22781 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22783 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22784 (enum sparc_processor_type): ...this.
22785 (enum sparc_code_model_type): New enumeration type.
22786 (enum sparc_memory_model_type): Tweak comments.
22787 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22789 (mcmodel): Use sparc_code_model enumeration and variable.
22790 (sparc_code_model): New enumeration.
22791 (mdebug): Add Undocumented marker.
22792 * config/sparc/sparc.h (enum cmodel): Delete.
22793 (sparc_cmodel): Likewise.
22794 (TARGET_CM_MEDLOW): Adjust to above renaming.
22795 (TARGET_CM_MEDMID): Likewise.
22796 (TARGET_CM_MEDANY): Likewise.
22797 (TARGET_CM_EMBMEDANY): Likewise.
22798 * config/sparc/sparc.c (sparc_cmodel): Delete.
22799 (sparc_option_override): Remove string/value mapping support for the
22800 code model. Move code and memory model support to after the handling
22801 of target flags. Do private machine setup last.
22802 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22803 (sparc_legitimize_reload_address): Likewise.
22804 (sparc_output_mi_thunk): Likewise.
22805 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22807 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22809 PR tree-optimization/89500
22810 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22811 (handle_builtin_strlen): Remove noncst_bound variable. Always
22812 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22813 cst if the first cst bytes starting at x are known to be non-zero,
22814 even if the string is not zero terminated. Don't try to modify
22815 *si for strnlen. Update strlen_to_stridx only for strlen or if
22816 we can prove strnlen returns the same value as strlen would.
22818 2019-02-26 Martin Liska <mliska@suse.cz>
22820 * alloc-pool.h (struct pool_usage): Remove extra
22822 * bitmap.h (struct bitmap_usage): Likewise.
22823 * ggc-common.c (struct ggc_usage): Likewise.
22824 * mem-stats.h (struct mem_usage): Likewise.
22825 (mem_alloc_description::dump): Print dash lines
22826 here and repeat header at the end of a table report.
22827 It's then more readable.
22828 * tree-phinodes.c (phinodes_print_statistics): Make
22829 horizontal alignment.
22830 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22831 * vec.c (struct vec_usage): Remove extra print_dash_line.
22832 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22834 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22836 * doc/extend.texi (__builtin_object_size):
22837 Use @pxref instead of @xref inside parenthesis.
22838 (__builtin_has_attribute): Add missing comma after @xref.
22839 (__builtin_object_size): Ditto.
22840 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22842 2019-02-26 Jeff Law <law@redhat.com>
22844 PR rtl-optimization/87761
22845 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22846 detect obviously dead insns and delete them.
22848 2019-02-26 Richard Biener <rguenther@suse.de>
22850 PR tree-optimization/89505
22851 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22852 to handle restrict pointed-to vars with multiple subvars
22855 2019-02-26 Richard Biener <rguenther@suse.de>
22857 PR tree-optimization/89489
22858 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22860 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22862 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22863 and move around comment.
22864 <BIT_AND_EXPR>: Likewise.
22865 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22867 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22870 * config/i386/i386.c (remove_partial_avx_dependency): Call
22871 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22872 after changing possibly many instructions to use that pseudo. Fix up
22873 insertion of v4sf_const0 setter at the start of bb.
22875 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22878 * doc/extend.texi (Variadic Pointer Args): New section.
22880 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22881 Martin Sebor <msebor@gmail.com>
22883 * common.opt (Wattribute-alias): Likewise.
22884 * doc/invoke.texi (Option Summary): List general form of
22885 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22886 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22887 Add cross-references.
22888 (-Wattribute-alias): Rewrite and correct default. Mention
22889 considered attributes (same as for -Wmissing-attributes).
22891 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22893 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22894 (_mm_cvtpd_ps): Likewise.
22895 (_mm_cvttpd_epi32): Likewise.
22898 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22899 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22902 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22904 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22907 * common/config/aarch64/aarch64-common.c
22908 (struct aarch64_option_extension): Add is_synthetic.
22909 (all_extensions): Use it.
22910 (TARGET_OPTION_INIT_STRUCT): Define hook.
22911 (struct gcc_targetm_common): Moved to end.
22912 (all_extensions_by_on): New.
22913 (opt_ext_cmp, typedef opt_ext): New.
22914 (aarch64_option_init_struct): New.
22915 (aarch64_contains_opt): New.
22916 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22917 * config/aarch64/aarch64-option-extensions.def
22918 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22919 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22920 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22921 Set is_synthetic to false.
22922 (crypto): Set is_synthetic to true.
22923 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22926 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22928 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22929 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22930 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22931 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22932 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22933 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22934 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22935 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22937 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22938 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22939 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22940 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22941 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22942 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22943 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22944 vfmlsl_laneq_high_f16): ... To this.
22945 * config/arm/neon.md: Update comments.
22947 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22949 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22950 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22951 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22952 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22953 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22954 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22955 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22956 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22958 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22959 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22960 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22961 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22962 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22963 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22964 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22965 vfmlslq_laneq_high_f16): ... To this.
22967 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22969 PR rtl-optimization/86096
22970 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22971 comparing mw_order values.
22973 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22976 * config/arm/arm.md (*subsi3_carryin_const): Use
22977 arm_neg_immediate_operand predicate instead of
22978 arm_not_immediate_operand, "L" constraint instead of "K" and
22979 print it using %n2 instead of %B2.
22980 (*subsi3_carryin_const0): New define_insn.
22981 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22982 instead of arm_not_operand and "I" constraint instead of "K" and
22983 print it using %n3 instead of %B2. Instead of using match_dup 2 add
22984 another match_operand and in the condition check that it is negation
22986 (*subsi3_carryin_compare_const0): New define_ins.
22987 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22988 *subsi3_carryin_const.
22989 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22990 split into *subsi3_carryin_compare_const0 if the highpart is zero.
22993 * config/arm.vfp.md (*negdf2_vfp): Use
22994 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22995 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22997 2019-02-24 Jakub Jelinek <jakub@redhat.com>
22999 PR rtl-optimization/89445
23000 * simplify-rtx.c (simplify_ternary_operation): Don't use
23001 simplify_merge_mask on operands that may trap.
23002 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23003 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23004 second operand is CONST_VECTOR, check if any element could be zero.
23005 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23006 their operands can trap.
23008 2019-02-23 Martin Sebor <msebor@redhat.com>
23010 * gimple-ssa-sprintf.c (target_strtol): Rename...
23011 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23012 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23013 check for range error.
23015 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23018 * opts-common.c (prune_options): Also prune joined switches
23019 with Negative and RejectNegative.
23020 * config/i386/i386.opt (march=): Add Negative(march=).
23021 (mtune=): Add Negative(mtune=).
23022 * doc/options.texi: Document Negative used together with Joined
23023 and RejectNegative.
23025 2019-02-22 Martin Sebor <msebor@redhat.com>
23027 * doc/extend.texi (Other Builtins): Add
23028 __builtin_is_constant_evaluated.
23030 2019-02-22 Richard Biener <rguenther@suse.de>
23032 PR tree-optimization/87609
23033 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23035 2019-02-22 Jeff Law <law@redhat.com>
23037 PR rtl-optimization/87761
23038 * config/mips/mips.md: Add new combiner pattern to recognize
23039 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23041 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23044 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23045 destination register in peepholes generating patterns for ADDS/SUBS.
23046 (add<mode>3_compare0,
23047 *addsi3_compare0_uxtw, add<mode>3_compareC,
23048 add<mode>3_compareV_imm, add<mode>3_compareV,
23049 *adds_<optab><ALLX:mode>_<GPI:mode>,
23050 *subs_<optab><ALLX:mode>_<GPI:mode>,
23051 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23052 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23053 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23054 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23055 sub<mode>3_compare1): Allow stack pointer for source register.
23056 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23058 2019-02-22 Martin Sebor <msebor@redhat.com>
23060 PR tree-optimization/88993
23061 PR tree-optimization/88853
23062 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23064 (sprintf_dom_walker::call_info::is_string_func): New helper.
23065 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23066 for formatted string functions.
23067 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23069 2019-02-22 Martin Sebor <msebor@redhat.com>
23072 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23073 unreachable subexpressions.
23075 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23076 Hongtao Liu <hongtao.liu@intel.com>
23077 Sunil K Pandey <sunil.k.pandey@intel.com>
23080 * config/i386/i386-passes.def: Add
23081 pass_remove_partial_avx_dependency.
23082 * config/i386/i386-protos.h
23083 (make_pass_remove_partial_avx_dependency): New.
23084 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23086 (pass_data_remove_partial_avx_dependency): New.
23087 (pass_remove_partial_avx_dependency): Likewise.
23088 (make_pass_remove_partial_avx_dependency): Likewise.
23089 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23090 (*extendsfdf2): Add avx_partial_xmm_update.
23091 (truncdfsf2): Likewise.
23092 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23093 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23095 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23097 PR middle-end/85598
23098 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23101 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23104 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23105 (PTA_SKYLAKE): Add PTA_AES.
23106 (PTA_GOLDMONT): Likewise.
23108 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23110 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23111 instruction if enabled.
23112 (aarch64_override_options): Remove reference to return address key.
23114 2019-02-22 Richard Biener <rguenther@suse.de>
23116 PR tree-optimization/89440
23117 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23118 not necessary assert.
23120 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23123 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23124 (oacc_replace_fn_attrib_attr): ... this new function.
23125 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23126 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23128 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23130 * config/arm/arm-cpus.in (ares): Rename to...
23131 (neoverse-n1): ... This. Add ares as alias.
23132 * config/arm/arm-tables.opt: Regenerate.
23133 * config/arm/arm-tune.md: Likewise.
23134 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23136 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23138 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23139 * config/aarch64/aarch64-tune.md: Regenerate.
23140 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23142 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23144 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23145 (neoversen1_tunings): ... This.
23146 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23147 (neoverse-n1): New CPU.
23148 * config/aarch64/aarch64-tune.md: Regenerate.
23149 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23151 2019-02-22 Richard Biener <rguenther@suse.de>
23153 PR middle-end/87609
23154 * cfghooks.h (dependence_hash): New typedef.
23155 (struct copy_bb_data): New type.
23156 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23157 (duplicate_block): Likewise.
23158 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23159 (copy_bbs): Create and pass down copy_bb_data.
23160 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23161 (rtl_duplicate_bb): Likewise.
23162 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23163 remap dependence info.
23165 2019-02-22 Richard Biener <rguenther@suse.de>
23167 PR tree-optimization/87609
23168 * tree-core.h (tree_base): Document special clique values.
23169 * tree-inline.c (remap_dependence_clique): Do not use the
23170 special clique value of one.
23171 (maybe_set_dependence_info): Use clique one.
23172 (clear_dependence_clique): New callback.
23173 (compute_dependence_clique): Clear clique one from all refs
23174 before assigning it (again).
23176 2019-02-21 Martin Sebor <msebor@redhat.com>
23178 * doc/extend.texi (__clear_cache): Correct signature.
23180 2019-02-21 Ian Lance Taylor <iant@golang.org>
23183 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23184 than output_constant_def.
23185 (add_constant_to_table): New static function.
23186 (output_constant_def): Call add_constant_to_table.
23187 (tree_output_constant_def): Likewise.
23189 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23192 * builtins.c (fold_builtin_arith_overflow): If first two args are
23193 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23196 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23199 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23200 error for -mindirect-branch/-mfunction-return with incompatible
23203 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23206 * constraints.md (q): Remove.
23207 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23210 2019-02-21 Martin Jambor <mjambor@suse.cz>
23213 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23214 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23215 (omp_adjust_for_condition): ...here. Added necessary parameters.
23216 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23217 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23218 proper values to new parameters of omp_adjust_for_condition.
23220 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23222 PR middle-end/89412
23223 * expr.c (expand_assignment): If result is a MEM, use change_address
23224 instead of simplify_gen_subreg.
23226 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23227 David Malcolm <dmalcolm@redhat.com>
23229 PR middle-end/89091
23230 * fold-const.c (decode_field_reference): Return NULL_TREE if
23231 lang_hooks.types.type_for_size returns NULL. Check it before
23232 overwriting *exp_. Use return NULL_TREE instead of return 0.
23234 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23236 PR middle-end/88074
23237 PR middle-end/89415
23238 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23241 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23244 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23245 TARGET_SSE in addition to TARGET_SSE_MATH.
23247 (ix86_excess_precision): Ditto.
23248 (ix86_float_exceptions_rounding_supported_p): Ditto.
23249 (use_rsqrt_p): Ditto.
23250 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23252 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23255 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23256 linenum_arith_t when determining if two adjacent line spans are
23257 close enough to merge.
23258 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23259 lines within each line_span.
23261 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23264 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23265 paradoxical SUBREGS.
23267 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23270 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23271 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23272 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23275 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23277 * config/gcn/gcn.c (print_operand): Fix typo.
23279 2019-02-19 Richard Biener <rguenther@suse.de>
23281 PR middle-end/88074
23282 * toplev.c (do_compile): Initialize mpfr's exponent range
23283 based on available float modes.
23285 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23287 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23288 as long as the epilogue isn't completed.
23290 2019-02-18 Martin Sebor <msebor@redhat.com>
23292 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23293 __has_cpp_attribute, and __has_include.
23295 2019-02-18 Martin Sebor <msebor@redhat.com>
23297 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23299 2019-02-18 Martin Sebor <msebor@redhat.com>
23301 PR middle-end/89294
23302 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23304 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23306 2019-02-18 Richard Biener <rguenther@suse.de>
23308 PR tree-optimization/89296
23309 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23310 of no-warning flag to cases that might emit the bogus warning.
23312 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23315 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23317 * config/arm/vfp.md (*movdi_vfp): Likewise.
23318 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23319 "q" constraint for operands[0].
23322 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23323 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23324 pattern in a temporary buffer.
23325 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23326 than 64-operands[2].
23329 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23330 s390_indirect_branch_settings): Define unconditionally.
23331 (s390_set_current_function): Likewise, but guard the whole body except
23332 the s390_indirect_branch_settings call with
23333 #if S390_USE_TARGET_ATTRIBUTE.
23334 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23336 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23337 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23338 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23339 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23340 HOST_WIDE_INT_1U instead of 1ULL.
23341 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23342 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23343 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23344 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23346 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23349 2019-02-18 Martin Jambor <mjambor@suse.cz>
23351 PR tree-optimization/89209
23352 * tree-sra.c (create_access_replacement): New optional parameter
23353 reg_tree. Use it as a type if non-NULL and access type is not of
23355 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23356 to create_access_replacement.
23357 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23358 Check lacc is non-NULL before attempting to re-create it on the RHS.
23360 2019-02-18 Martin Liska <mliska@suse.cz>
23363 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23365 (symbol_table::free_edge): Recycle m_summary_id.
23366 * cgraph.h (get_summary_id): New.
23367 (symbol_table::release_symbol): Set m_summary_id to -1
23369 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23370 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23371 function_summary to fast_function_summary.
23372 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23373 * ipa-pure-const.c (class funct_state_summary_t):
23374 Switch from function_summary to fast_function_summary.
23375 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23376 (class ipa_ref_opt_summary_t): Switch from function_summary
23377 to fast_function_summary.
23378 * symbol-summary.h (class function_summary_base): New class
23379 that is created from base of former function_summary.
23380 (function_summary_base::unregister_hooks): New.
23381 (class function_summary): Inherit from function_summary_base.
23382 (class call_summary_base): New class
23383 that is created from base of former call_summary.
23384 (class call_summary): Inherit from call_summary_base.
23385 (struct is_same): New.
23386 (class fast_function_summary): New summary class.
23387 (class fast_call_summary): New summary class.
23388 * vec.h (vec_safe_grow_cleared): New function.
23390 2019-02-18 Martin Liska <mliska@suse.cz>
23392 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23393 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23394 * doc/tm.texi: Document new target hook.
23395 * doc/tm.texi.in: Likewise.
23396 * target.def: Add new target macro.
23397 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23400 2019-02-17 Alan Modra <amodra@gmail.com>
23403 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23404 output reg on add insn.
23405 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23407 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23410 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23411 (PMULHRSW): Likewise.
23412 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23414 (ssse3_pmulhrswv4hi3): New expander.
23416 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23418 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23419 MMX. Add isa attribute.
23421 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23423 PR rtl-optimization/66152
23424 * builtins.h (c_readstr): Declare.
23425 * builtins.c (c_readstr): Remove forward declaration. Add
23426 null_terminated_p argument, if false, read all bytes from the
23427 string instead of stopping after '\0'.
23428 * expr.c (string_cst_read_str): New function.
23429 (store_expr): Use string_cst_read_str instead of
23430 builtin_strncpy_read_str. Try to store by pieces the whole
23431 exp_len first, and only if that fails, split it up into
23432 store by pieces followed by clear_storage. Formatting fix.
23434 * config/i386/i386.md (*movqi_internal): Remove static from
23435 buf variable. Use output_asm_insn (buf, operands); return "";
23436 instead of return buf;.
23437 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23438 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23439 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23441 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23443 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23444 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23445 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23446 (CC1_SPEC): Likewise.
23447 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23449 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23451 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23452 the base address on 64-bit strict-alignment platforms.
23454 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23456 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23458 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23460 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23462 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23464 PR rtl-optimization/88308
23465 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23466 on copied instruction.
23468 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23470 * final.c (insn_current_reference_address): Replace test on JUMP_P
23471 with test on jump_to_label_p.
23472 * config/visium/visium-passes.def: New file.
23473 * config/visium/t-visium (PASSES_EXTRA): Define.
23474 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23475 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23476 (TRAMPOLINE_ALIGNMENT): Define.
23477 * config/visium/visium.c (visium_option_override): Do not register
23478 the machine-specific reorg pass here.
23479 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23481 (output_branch): Adjust threshold for long branch instruction.
23482 * config/visium/visium.md (cpu): Move around.
23483 (length): Adjust for the GR6.
23485 2019-02-15 Richard Biener <rguenther@suse.de>
23486 Jakub Jelinek <jakub@redhat.com>
23488 PR tree-optimization/89278
23489 * tree-loop-distribution.c: Include tree-eh.h.
23490 (generate_memset_builtin, generate_memcpy_builtin): Call
23491 rewrite_to_non_trapping_overflow on builtin->size before passing it
23492 to force_gimple_operand_gsi.
23494 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23497 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23499 * opth-gen.awk: Likewise.
23501 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23503 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23504 Enable MMX, SSE and SSE2 by default.
23505 * config/i386/i386.c (ix86_option_override_internal): Do not
23506 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23508 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23510 PR rtl-optimization/89354
23511 * combine.c (make_extraction): Punt if extraction_mode is narrower
23514 2019-02-14 Maya Rashish <coypu@sdf.org>
23516 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23517 * config/netbsd-d.c: New file.
23518 * config/t-netbsd: Add netbsd-d.o
23520 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23522 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23523 affects_type_identity to true for aarch64_vector_pcs.
23524 (aarch64_comp_type_attributes): New function.
23525 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23527 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23530 * config/arm/iterators.md (ANY64): Add V4HF.
23532 2019-02-14 Martin Liska <mliska@suse.cz>
23534 PR rtl-optimization/89242
23535 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23536 process a transformation.
23538 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23540 PR tree-optimization/89314
23541 * fold-const.c (fold_binary_loc): Cast strlen argument to
23542 const char * before dereferencing it. Formatting fixes.
23544 PR middle-end/89284
23545 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23547 2019-02-13 Ian Lance Taylor <iant@golang.org>
23549 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23550 and set current index for other optimizations.
23552 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23554 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23555 nonimmediate_operand as operand 2 predicate.
23556 (vec_set<VF2_512_256:mode>_0): Ditto.
23557 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23558 (*vec_concatv2si): Remove alternative 2.
23559 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23560 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23561 (vec_concatv2di): Split alternatives 4,5,6 to ...
23562 (*vec_concatv2di_0) ... new pattern.
23564 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23567 * config/arm/arm.c (ldm_stm_operation_p) Set
23568 addr_reg_in_reglist correctly for first register.
23569 (load_multiple_sequence): Remove dead base check.
23570 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23572 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23575 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23576 Expose as @aarch64_pred_mov.
23577 * config/aarch64/aarch64.c (aarch64_classify_address):
23578 Use expand_insn which legitimizes operands.
23580 2019-02-13 Martin Liska <mliska@suse.cz>
23582 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23583 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23584 and pointer_offset fields.
23585 (initialize_argument_information): Remove usage of dead
23587 * cgraph.h (struct cgraph_thunk_info): Remove
23588 add_pointer_bounds_args.
23589 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23591 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23593 * config/i386/i386.c (ix86_function_arg_advance): Remove
23595 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23596 (def_builtin): Remove usage of dead fields.
23597 (ix86_add_new_builtins): Likewise.
23598 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23599 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23600 (sem_function::init): Likewise.
23601 (sem_variable::merge): Likewise.
23602 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23603 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23604 * lto-cgraph.c (lto_output_node): Likewise.
23605 (lto_output_varpool_node): Likewise.
23606 (input_node): Likewise.
23607 (input_varpool_node): Likewise.
23608 * lto-streamer-out.c (lto_output): Likewise.
23609 * tree-inline.c (expand_call_inline): Remove usage of
23611 * tree-inline.h (struct copy_body_data): Likewise.
23612 * varpool.c (varpool_node::dump): Likewise.
23614 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23616 PR middle-end/89303
23617 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23618 into pt->vars_contains_escaped_heap instead of setting
23619 pt->vars_contains_escaped_heap to it.
23621 PR middle-end/89281
23622 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23623 INTVAL (size), compare it to GET_MODE_MASK instead of
23624 1 << GET_MODE_BITSIZE.
23627 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23628 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23631 2019-02-13 Martin Liska <mliska@suse.cz>
23634 * cfgrtl.c (remove_barriers_from_footer): New function.
23635 (try_redirect_by_replacing_jump): Use it.
23636 (cfg_layout_redirect_edge_and_branch): Likewise.
23638 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23640 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23641 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23642 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23643 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23644 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23645 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23647 * config/rs6000/rs6000.c (builtin_function_type)
23648 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23649 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23650 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23651 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23652 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23654 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23656 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23657 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23659 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23662 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23663 268678 and revision 268657.
23664 (*movti_internal): Likewise.
23666 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23669 * config/s390/s390.c (s390_decompose_address): Update comment.
23670 (s390_check_qrst_address): Reject invalid address forms after
23673 2019-02-12 Martin Liska <mliska@suse.cz>
23676 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23677 we need default values of funct_state for a function that
23680 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23682 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23683 the object to pick the size of stores on strict-alignment platforms.
23685 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23686 (*movdi_insn_sp32): Likewise.
23687 (*movdi_insn_sp64): Likewise.
23689 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23692 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23693 types that needs constructiong.
23694 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23696 2019-02-12 Richard Biener <rguenther@suse.de>
23698 PR tree-optimization/89253
23699 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23700 duplicate the loop.
23702 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23705 * input.c (selftest::test_line_offset_overflow): New selftest.
23706 (selftest::input_c_tests): Call it.
23708 2019-02-11 Martin Sebor <msebor@redhat.com>
23710 PR tree-optimization/88771
23711 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23712 when -Wstringop-overflow is set.
23713 (builtin_memref::builtin_memref): Adjust excessive upper bound
23714 only when lower bound is not excessive.
23715 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23716 -Wstringop-ovefflow.
23717 (maybe_diag_offset_bounds): Rename...
23718 (maybe_diag_access_bounds): ...to this.
23719 (check_bounds_or_overlap): Adjust for name change above.
23721 2019-02-11 Martin Sebor <msebor@redhat.com>
23724 * builtins.c (max_object_size): Move from here...
23725 * builtins.h (max_object_size): ...and here...
23726 * tree.c (max_object_size): ...to here...
23727 * tree.h (max_object_size): ...and here.
23729 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23731 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23732 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23733 for correct semantics.
23735 2019-02-11 Alan Modra <amodra@gmail.com>
23737 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23738 -mlongcall and -mpltseq.
23739 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23740 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23741 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23742 * config/rs6000/sysv4.opt (mpltseq): New option.
23743 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23744 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23745 support is lacking. Don't allow -mpltseq with -mbss-plt.
23746 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23747 -mpltseq given for ELFv1.
23748 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23749 Only use UNSPEC_PLTSEQ for inline PLT calls.
23750 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23751 use UNSPEC_PLTSEQ for inline PLT calls.
23752 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23753 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23754 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23755 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23756 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23757 (pltseq_mtctr_<mode>): Likewise.
23759 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23761 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23763 * configure: Regenerate.
23765 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23768 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23771 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23773 * function.c (assign_parm_setup_block): Use the stored
23774 size, not the passed size, when allocating stack-space,
23775 also for a parameter with alignment larger than
23776 MAX_SUPPORTED_STACK_ALIGNMENT.
23778 2019-02-11 Martin Liska <mliska@suse.cz>
23781 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23782 * ipa-inline.c (inline_small_functions): Likewise.
23783 * ipa-pure-const.c (propagate_pure_const): Likewise.
23784 (propagate_nothrow): Likewise.
23785 * ipa-reference.c (propagate): Likewise.
23786 * ipa-utils.c (struct searchc_env): Remove unused field.
23787 (searchc): Always search across AVAIL_INTERPOSABLE.
23788 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23789 the only called IPA pure const can properly not propagate
23790 across interposable boundary.
23791 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23793 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23795 * config/nds32/nds32.md (call_internal, call_value_internal,
23796 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23798 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23800 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23803 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23805 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23808 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23810 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23812 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23814 PR tree-optimization/89268
23815 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23816 if preds is non-NULL.
23818 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23821 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23824 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23826 * config/nds32/nds32.md (trap): New pattern.
23828 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23830 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23833 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23835 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23838 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23840 * ipa-visibility.c (localize_node): Also do not localize
23841 LDPR_PREVAILING_DEF_IRONLY_EXP.
23843 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23846 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23847 instead of type_with_linkage.
23849 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23852 * params.def (uninlined-function-insns, uninlined-function-time,
23853 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23854 bound so we don't get overflows.
23856 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23858 * config/rs6000/rs6000-string.c (expand_compare_loop,
23859 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23862 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23864 PR middle-end/89246
23865 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23866 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23867 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23869 2019-02-09 Alan Modra <amodra@gmail.com>
23872 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23873 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23876 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23878 PR middle-end/88560
23879 * lra-constraints.c (process_alt_operands): Don't increase reject
23880 for memory when offset memory is required.
23882 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23884 * config/s390/vector.md: Implement vector copysign.
23886 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23888 * expr.c (expand_constructor): Correct indentations.
23890 2019-02-08 Richard Biener <rguenther@suse.de>
23892 PR tree-optimization/89247
23893 * tree-if-conv.c: Include tree-cfgcleanup.h.
23894 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23895 (tree_if_conversion): Pass through predicate vector.
23896 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23897 inline, see if any if-converted loops we refrece in
23898 LOOP_VECTORIZED calls vanished and fixup.
23899 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23901 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23903 * config/s390/constraints.md (jdd): New constraint.
23905 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23908 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23909 upper 16 vector registers without TARGET_AVX512VL.
23910 (*movti_internal): Likewise.
23912 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23914 PR rtl-optimization/89234
23915 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23916 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23917 (copy_reg_eh_region_note_backward): Likewise.
23919 2019-02-08 Richard Biener <rguenther@suse.de>
23921 PR middle-end/89223
23922 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23923 doesn't fit in HWI.
23924 (analyze_subscript_affine_affine): Handle failure from
23925 initialize_matrix_A.
23927 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23929 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23932 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23934 PR tree-optimization/86637
23935 PR tree-optimization/89235
23936 * tree-vect-loop.c (optimize_mask_stores): Add an
23937 auto_purge_vect_location sentinel to ensure that vect_location is
23939 * tree-vectorizer.c
23940 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23941 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23942 to ensure that vect_location is purged on exit.
23943 (pass_slp_vectorize::execute): Likewise, replacing the manual
23945 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23947 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23949 * config/aarch64/iterators.md (max_opp): New code_attr.
23950 (USMAX): New code iterator.
23951 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23952 (aarch64_smax): Likewise.
23953 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23954 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23957 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23960 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23961 for TARGET_AVX512VL.
23962 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23964 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23966 * config/s390/s390-builtin-types.def: Add new types.
23967 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23968 (s390_vec_xlw4): Make the memory operand into a const pointer.
23969 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23971 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23972 a new vector type with the alignment of the scalar memory operand.
23974 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23975 Jakub Jelinek <jakub@redhat.com>
23978 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23979 arm_count_ldrdstrd_insns): New declarations.
23980 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23982 (valid_operands_ldrd_strd): New function.
23983 (arm_count_ldrdstrd_insns): New function.
23984 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23985 sets instead of single DImode set and define new insns to match this.
23987 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23989 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23990 Make it a C initializer.
23992 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23995 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23997 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23999 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24000 Use neon_dot<q> for type.
24001 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24003 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24005 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24006 Use neon_dot<q> for type.
24007 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24008 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24010 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24012 PR rtl-optimization/89225
24013 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24016 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24018 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24019 after restoring registers saved to allocate the frame on Windows.
24021 2019-02-06 Richard Biener <rguenther@suse.de>
24023 PR tree-optimization/89182
24024 * graphite.h (cached_scalar_evolution_in_region): Declare.
24025 * graphite.c (struct seir_cache_key): New.
24026 (struct sese_scev_hash): Likewise.
24027 (seir_cache): New global.
24028 (cached_scalar_evolution_in_region): New function.
24029 (graphite_transform_loops): Allocate and release seir_cache.
24030 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24031 cached_scalar_evolution_in_region.
24032 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24034 (scop_detection::graphite_can_represent_expr: Use
24035 cached_scalar_evolution_in_region.
24036 (scop_detection::stmt_simple_for_scop_p): Likewise.
24037 (find_params_in_bb): Likewise.
24038 (gather_bbs::before_dom_children): Likewise.
24039 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24040 (add_loop_constraints): Likewise.
24042 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24044 PR middle-end/89210
24045 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24046 operand to new_unary_operation only if both element types are integral
24047 and it isn't a widening conversion. Return NULL_TREE if
24048 new_unary_operation failed.
24050 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24053 * config/s390/s390.md: Remove load and test FP splitter.
24055 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24058 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24059 expand_compare_loop, expand_block_compare_gpr,
24060 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24061 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24062 #include "profile-count.h" and "predict.h" for types and functions
24063 needed to work with REG_BR_PROB notes.
24065 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24068 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24069 for the long branch case.
24071 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24074 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24075 can throw, non-call exceptions are enabled and we can't delete
24076 dead exceptions or alter cfg. Set must_clean if
24077 delete_insn_and_edges returns true, don't set it blindly for calls.
24078 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24080 PR rtl-optimization/89195
24081 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24082 of the original MEM.
24084 2019-02-05 Martin Liska <mliska@suse.cz>
24086 PR gcov-profile/89000
24087 * gcov.c (function_summary): Remove argument.
24088 (file_summary): New function.
24089 (print_usage): Replace tabs with spaces.
24090 (generate_results): Use new function file_summary.
24092 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24095 * optabs.c (prepare_cmp_insn): Pass x and y to
24096 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24098 2019-02-05 Richard Biener <rguenther@suse.de>
24100 PR middle-end/89150
24101 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24102 (struct bitmap_element): Drop chain_prev so we properly recurse on
24103 the prev member, supporting tree views.
24104 (struct bitmap_head): GTY skip the obstack member.
24106 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24109 * doc/extend.texi (Vector Extensions): Add an example of using vector
24110 types together with x86 intrinsics.
24112 2019-02-04 Alan Modra <amodra@gmail.com>
24114 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24115 str[] size to 160, and comment.
24117 2019-02-04 Alan Modra <amodra@gmail.com>
24119 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24120 (rs6000_pltseq_template): Guard output of TLS markers with
24121 TARGET_TLS_MARKERS.
24122 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24123 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24124 to use inline PLT sequences.
24125 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24126 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24127 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24129 2019-02-04 Martin Liska <mliska@suse.cz>
24132 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24133 out when ipa_fn_summaries does not contain entry for callee.
24135 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24137 * config/sparc/sparc.h: Remove superfluous blank lines.
24138 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24139 (got_register_rtx): ...this.
24140 (sparc_got): Adjust to above renaming.
24141 (sparc_tls_got): Likewise.
24142 (sparc_delegitimize_address): Likewise.
24143 (sparc_output_mi_thunk): Likewise.
24144 (sparc_init_pic_reg): Likewise.
24145 (save_local_or_in_reg_p): Fix test on the GOT register.
24146 (USE_HIDDEN_LINKONCE): Move around.
24147 (get_pc_thunk_name): Likewise.
24148 (gen_load_pcrel_sym): Likewise.
24149 (load_got_register): Likewise.
24151 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24153 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24154 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24156 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24158 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24159 into consideration.
24161 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24163 * config.gcc (with_nds32_lib, glibc):
24164 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24165 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24166 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24168 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24171 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24172 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24173 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24174 (*rcpsf2_sse): Ditto.
24175 (*rsqrtsf2_sse): Ditto.
24176 (sse4_1_round<mode<2): Ditto.
24178 2019-02-03 Richard Biener <rguenther@suse.de>
24181 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24184 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24186 PR middle-end/87887
24187 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24188 Punt with warning on aggregate return or argument types. Ignore
24189 type/mode checking for uniform arguments.
24191 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24193 * combine.c (try_combine): Do not print "Can't combine" messages unless
24194 printing failed combination attempts.
24196 2019-02-01 Martin Jambor <mjambor@suse.cz>
24199 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24200 segment and global segment variables before making them static.
24202 2019-02-01 Martin Jambor <mjambor@suse.cz>
24204 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24205 missed optimization dump with dump_enabled_p.
24207 2019-02-01 Richard Biener <rguenther@suse.de>
24209 PR middle-end/88597
24210 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24211 the instantiate cache.
24212 (instantiate_scev_binary): Elide second operand procesing
24213 if equal to the first.
24214 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24215 (chrec_contains_undetermined): Likewise.
24216 (tree_contains_chrecs): Likewise.
24218 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24220 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24222 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24224 PR tree-optimization/89143
24225 * wide-int-range.h (wide_int_range_absu): Declare.
24226 * wide-int-range.cc (wide_int_range_absu): New function.
24227 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24229 PR tree-optimization/88107
24230 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24231 instead of assertion that eh_region_outermost is non-NULL, if it
24232 is NULL, set *ALL to true and return NULL.
24233 (move_sese_region_to_fn): Adjust caller, if all is set, call
24234 duplicate_eh_regions with NULL region.
24236 2019-02-01 Richard Biener <rguenth@suse.de>
24238 PR rtl-optimization/88593
24239 * mode-switching.c (optimize_mode_switching): Free dominators before
24240 calling cleanup_cfg.
24242 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24244 PR tree-optimization/88932
24245 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24247 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24249 PR middle-end/89137
24250 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24251 bogus clang warning.
24253 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24256 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24257 alternative to avoid partial SSE register stall for TARGET_AVX.
24258 (truncdfsf2): Ditto.
24259 (sse4_1_round<mode>2): Ditto.
24261 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24263 PR tree-optimization/89008
24264 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24265 process anything of the form X * 0.
24267 2019-01-31 Richard Biener <rguenther@suse.de>
24269 PR tree-optimization/89135
24270 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24271 with abnormal preds.
24273 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24276 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24277 always_inline callees into no_sanitize_address callers.
24279 2019-01-31 Richard Biener <rguenther@suse.de>
24281 PR rtl-optimization/89115
24282 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24284 2019-01-30 Martin Sebor <msebor@redhat.com>
24287 * doc/extend.texi (cast to a union): Correct and expand.
24289 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24291 PR rtl-optimization/87246
24292 * lra-constraints.c (simplify_operand_subreg): Reload memory
24293 in subreg if the address became invalid.
24295 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24298 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24299 Disable for little-endian.
24301 2019-01-30 Richard Biener <rguenther@suse.de>
24303 PR rtl-optimization/89115
24304 * opts.c (default_options_optimization): Reduce
24305 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24306 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24309 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24311 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24312 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24313 type of vector element when vec_extract is implemented by direct
24316 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24318 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24320 2019-01-30 Richard Biener <rguenther@suse.de>
24322 PR tree-optimization/89111
24323 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24324 canonicalization to appropriately sized access types.
24326 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24329 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24330 for arguments to functions that are TU-local and shouldn't be
24331 referenced by assembly.
24333 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24335 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24338 2019-01-29 Martin Sebor <msebor@redhat.com>
24341 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24343 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24347 * omp-simd-clone.c (simd_clone_clauses_extract)
24348 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24349 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24351 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24353 * config.gcc: Force .init_array for ARC.
24355 2019-01-29 Richard Biener <rguenther@suse.de>
24358 * dwarf2out.c (collect_skeleton_dies): New helper.
24359 (copy_decls_for_unworthy_types): Call it.
24360 (build_abbrev_table): Assert we do not try to replace
24361 DW_AT_signature refs with local refs.
24363 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24365 PR middle-end/89002
24366 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24367 for lastprivate/linear IV, push gimplify context around gimplify_assign
24368 and, if it needed any temporaries, pop it into a gimple bind around the
24371 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24373 * common.opt (-Wattribute-alias): Remove "no-" from name.
24374 Make -Wattribute-alias command line option and
24375 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24377 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24380 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24381 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24383 (bmi2): Add missing @opindex.
24384 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24385 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24386 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24387 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24388 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24389 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24390 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24391 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24392 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24393 xsavec, xsaveopt and xsaves options.
24395 2019-01-28 Richard Biener <rguenther@suse.de>
24398 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24401 2019-01-28 Richard Biener <rguenther@suse.de>
24403 PR tree-optimization/88739
24404 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24405 BIT_FIELD_REFs only are applied to mode-precision operands
24406 when they are integral.
24407 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24408 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24409 BIT_FIELD_REFs of non-mode-precision integral operands.
24411 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24414 * config/i386/sse.md
24415 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24416 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24417 first constants in pairs are multiples of 2. Formatting fixes.
24418 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24419 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24420 first constants in each quadruple are multiples of 4. Formatting fixes.
24422 2019-01-26 Martin Jambor <mjambor@suse.cz>
24425 * tree-inline.c: Include tree-cfgcleanup.h.
24426 (delete_unreachable_blocks_update_callgraph): Move...
24427 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24428 ...here, make externally visible, make second argument bool, adjust
24430 * tree-cfgcleanup.c: Include cgraph.h.
24431 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24433 * ipa-prop.c: Include tree-cfgcleanup.h.
24434 (ipcp_transform_function): Call
24435 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24437 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24439 PR rtl-optimization/88846
24440 * ira.c (process_set_for_memref_referenced_p): New.
24441 (memref_referenced_p): Add new param. Use
24442 process_set_for_memref_referenced_p. Add new switch cases.
24443 (memref_used_between_p): Pass new arg to memref_referenced_p.
24445 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24448 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24449 argument ABI_BREAK. Set to true if the calculated alignment has
24450 changed in gcc-9. Check bit-fields for their base type alignment.
24451 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24452 (aarch64_function_arg_boundary): Likewise.
24453 (aarch64_gimplify_va_arg_expr): Likewise.
24455 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24457 PR middle-end/89037
24458 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24459 instead of accessing TREE_INT_CST_ELT directly.
24461 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24463 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24464 fenv_exceptions description.
24466 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24468 PR rtl-optimization/87763
24469 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24470 Allow SUBREG when matching CC_NZmode compare.
24472 2019-01-25 Richard Biener <rguenther@suse.de>
24474 PR tree-optimization/89049
24475 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24476 Look at the pattern stmt to determine if the stmt is vectorized.
24478 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24480 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24481 (pred_mov<mode>): Handle all-register forms using both a new
24482 alternative and a split.
24484 2019-01-25 Richard Biener <rguenther@suse.de>
24486 PR tree-optimization/86865
24487 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24488 Reject non-do-while loops.
24490 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24492 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24493 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24494 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24495 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24496 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24497 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24498 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24499 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24500 vlogical_operand, gpc_reg_operand, int_reg_operand,
24501 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24502 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24503 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24504 (save_world_operation, restore_world_operation, lmw_operation,
24505 stmw_operation): Use MEM_P and REG_P.
24506 (tie_operand): Use MEM_P.
24507 (vrsave_operation, crsave_operation): Use REG_P.
24508 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24509 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24510 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24511 (call_operand): Use HARD_REGISTER_P.
24512 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24514 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24515 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24516 quad_aligned_load_p, replace_swapped_aligned_store,
24517 recombine_lvx_pattern, replace_swapped_aligned_load,
24518 recombine_stvx_pattern): Use MEM_P.
24519 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24520 Use MEM_P and SYMBOL_REF_P.
24521 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24522 (insn_is_swappable_p): Use REG_P and MEM_P.
24523 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24524 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24526 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24527 Use CONST_DOUBLE_P.
24528 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24530 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24531 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24532 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24533 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24535 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24536 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24537 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24538 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24539 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24540 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24541 rs6000_split_logical_di): Use CONST_INT_P.
24542 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24543 REG_P and SYMBOL_REF_P.
24544 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24545 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24546 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24547 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24548 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24549 (small_data_operand, print_operand_address): Use CONST_INT_P and
24551 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24552 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24553 Use HARD_REGISTER_NUM_P.
24554 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24555 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24556 SUBREG_P and SYMBOL_REF_P.
24557 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24558 and HARD_REGISTER_NUM_P.
24559 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24561 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24562 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24564 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24565 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24566 find_addr_reg): Use REG_P.
24567 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24568 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24569 (offsettable_ok_by_alignment, constant_pool_expr_p,
24570 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24571 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24572 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24573 rs6000_assemble_integer, create_TOC_reference,
24574 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24575 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24576 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24577 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24578 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24579 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24580 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24581 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24582 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24583 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24584 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24585 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24586 and cbranch<mode>4): Use CONST_INT_P.
24587 (multiple define_splits): Use REG_P and SUBREG_P.
24588 (define_expands call, call_value): Use MEM_P.
24589 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24590 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24591 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24592 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24593 and HARD_REGISTER_NUM_P.
24594 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24596 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24598 PR rtl-optimization/88948
24599 * rtl.h (prepare_copy_insn): New prototype.
24600 * gcse.c (prepare_copy_insn): New function, split out from
24601 process_insert_insn.
24602 (process_insert_insn): Use prepare_copy_insn.
24603 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24604 instead of gen_move_insn.
24606 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24609 * config/i386/i386.c (ix86_pic_register_p): Return true for
24610 UNSPEC_SET_GOT too.
24612 PR tree-optimization/88964
24613 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24614 punt if HONOR_SNANS (chrec).
24616 PR middle-end/89015
24617 * tree-nested.c (convert_nonlocal_reference_stmt,
24618 convert_local_reference_stmt, convert_tramp_reference_stmt,
24619 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24620 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24621 or GIMPLE_OMP_TASK.
24623 PR tree-optimization/89027
24624 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24625 for "omp simd array" variables.
24627 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24630 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24631 force the alignment of m_val.
24633 2019-01-24 Richard Biener <rguenther@suse.de>
24636 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24637 When in "legacy" debug mode make sure to reset self-origins.
24639 2019-01-24 Martin Liska <mliska@suse.cz>
24641 PR gcov-profile/88994
24642 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24643 result will be always smaller or equal to the original.
24644 * gcov.c (mangle_name): Fix else branch where we should
24645 also copy to PTR and shift the pointer.
24647 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24649 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24650 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24652 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24654 * common/config/i386/i386-common.c
24655 (OPTION_MASK_ISA_ENQCMD_SET,
24656 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24657 (ix86_handle_option): Handle -menqcmd.
24658 * config.gcc (enqcmdintrin.h): New header file.
24659 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24660 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24662 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24664 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24665 __builtin_ia32_enqcmds): New builtins.
24666 * config/i386/i386-c.c (__ENQCMD__): New macro.
24667 * config/i386/i386-option.c (ix86_target_string): Add
24669 (ix86_valid_target_attribute_inner_p): Likewise.
24670 * config/i386/i386-expand.c
24671 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24672 IX86_BUILTIN_ENQCMDS.
24673 * config/i386/i386.h (TARGET_ENQCMD): New.
24674 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24675 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24676 (movdir64b_<mode>): Parameterize to enable share expansion code
24677 with ENQCMD in function ix86_expand_builtin.
24678 * config/i386/i386.opt: Add -menqcmd.
24679 * config/i386/immintrin.h: Include enqcmdintrin.h.
24680 * config/i386/enqcmdintrin.h: New intrinsic file.
24681 * doc/invoke.texi: Add -menqcmd.
24683 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24684 Steve Ellcey <sellcey@marvell.com>
24687 * recog.c (address_operand): Return false on wrong mode for address.
24688 (constrain_operands): Check for mode with 'p' constraint.
24690 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24693 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24694 Disparage MMX alternative.
24695 (sse2_cvtpd2pi): Ditto.
24696 (sse2_cvttpd2pi): Ditto.
24698 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24701 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24702 use-after-free of the result of
24703 aarch64_get_extension_string_for_isa_flags.
24705 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24708 * doc/extend.texi: Document break and continue behavior in
24709 statement expressions.
24711 2019-01-23 Richard Biener <rguenther@suse.de>
24713 PR tree-optimization/89008
24714 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24715 not leave another stray operand.
24717 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24719 * BASE-VER: Bump to 9.0.1.
24721 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24723 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24724 thunk that returns by reference, use the type of the return object
24725 of the thunk instead of that of the alias to build the dereference.
24727 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24729 * config/arc/atomic.md: Add operand to DMB instruction.
24731 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24733 PR tree-optimization/88964
24734 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24735 build_zero_cst instead of build_int_cst. Return false for loop
24736 invariants which honor signed zeros.
24738 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24740 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24742 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24745 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24746 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24747 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24749 PR middle-end/88968
24750 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24751 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24754 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24755 Disable for little endian.
24757 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24760 * config/arm/arm.c (arm_needs_double_word_align): Check
24761 DECL_BIT_FIELD_TYPE.
24763 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24764 H.J. Lu <hongjiu.lu@intel.com>
24767 * config/i386/i386-builtin.def: Add mask2 to all builtin
24768 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24770 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24771 (BDESC_FIRST): Likewise.
24772 (define_builtin): Add an argument for mask2. Updated to handle
24773 both ix86_isa_flags and ix86_isa_flags2.
24774 (define_builtin_const): Likewise.
24775 (define_builtin_pure): Likewise.
24776 (define_builtin2): Deleted.
24777 (define_builtin_const2): Likewise.
24778 (builtin_description): Add a member, mask2.
24779 (bdesc_*): Add mask2 to builtin initializations.
24780 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24781 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24783 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24785 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24788 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24791 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24794 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24795 alignment is dominated by a bitfield with 64-bit aligned base type.
24796 (arm_function_arg): Emit a warning if the alignment has changed since
24797 earlier GCC releases.
24798 (arm_function_arg_boundary): Likewise.
24799 (arm_setup_incoming_varargs): Likewise.
24801 2019-01-22 Richard Biener <rguenther@suse.de>
24803 PR tree-optimization/88862
24804 * graphite-scop-detection.c
24805 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24807 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24809 * doc/extend.tex (AMD GCN Function Attributes): New section.
24810 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24811 * doc/invoke.texi (AMD GCN Options): New section.
24812 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24814 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24816 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24817 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24819 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24821 PR tree-optimization/88044
24822 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24823 is false in the first iteration, but !every_iteration, return false
24824 instead of true with niter->niter zero.
24826 PR rtl-optimization/88904
24827 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24828 any nonequal registers before processing BB_END (b).
24831 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24833 (expand_binop_directly, expand_doubleword_clz,
24834 expand_doubleword_popcount, expand_ctz, expand_ffs,
24835 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24837 PR rtl-optimization/49429
24839 PR rtl-optimization/86334
24841 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24842 addressable from here...
24843 (emit_block_op_via_libcall): ... to here.
24845 2019-01-22 Richard Biener <rguenther@suse.de>
24847 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24848 auto_vec for cost vector to fix memleak.
24849 (vectorize_fold_left_reduction): Properly gather SLP defs.
24850 (vectorizable_comparison): Do not swap operands to properly
24853 2019-01-22 Alan Modra <amodra@gmail.com>
24856 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24857 stays a reg. Allow a const_int.
24858 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24859 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24860 (IS_NOMARK_TLSGETADDR): Define.
24861 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24862 (rs6000_output_tlsargs): New function.
24863 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24864 __tls_get_addr call takes an arg.
24865 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24866 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24868 (call_value_nonlocal_sysv): ..or here, delete split.
24869 (tls_gdld_nomark): Delete.
24870 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24871 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24872 (call_value_nonlocal_sysv): Likewise.
24873 (call_value_nonlocal_sysv_secure): Likewise.
24874 (call_value_nonlocal_aix): Likewise.
24875 (call_value_indirect_aix): Likewise.
24876 (call_value_indirect_elfv2): Likewise.
24877 (call_value_local32, call_value_local64): Disable for no-mark tls.
24878 (call_value_local_aix): Likewise.
24880 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24883 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24884 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24886 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24888 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24889 string contents as hash_map keys.
24891 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24894 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24895 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24896 instead of TYPE_ALIGN.
24897 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24898 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24899 pointer from TYPE_STUB_DECL.
24901 2019-01-21 Richard Biener <rguenther@suse.de>
24903 PR tree-optimization/88934
24904 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24905 at the possibly non-constant operand.
24906 (vect_get_constant_vectors): Adjust.
24908 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24911 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24912 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24913 instead of _X86INTRIN_H_INCLUDED.
24914 * onfig/i386/clwbintrin.h: Likewise.
24915 * config/i386/pkuintrin.h: Likewise.
24916 * config/i386/prfchwintrin.h: Likewise.
24917 * config/i386/rdseedintrin.h: Likewise.
24918 * config/i386/wbnoinvdintrin.h: Likewise.
24919 * config/i386/xsavecintrin.h: Likewise.
24920 * config/i386/xsavesintrin.h: Likewise.
24921 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24922 * config/i386/xsaveintrin.h: Likewise.
24923 * config/i386/xsaveoptintrin.h: Likewise.
24924 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24925 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24926 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24927 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24928 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24929 * config/i386/immintrin.h: Here.
24931 2019-01-20 Martin Jambor <mjambor@suse.cz>
24934 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24935 with aa_walk_budget.
24936 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24937 aa_walk_budget_p parameter.
24938 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24939 walk. Updated all callers.
24940 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24941 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24943 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24944 parameter info. Extract info from fbi. Pass fbi to recursive calls
24945 and to unmodified_parm.
24946 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24947 info, updated call to will_be_nonconstant_expr_predicate.
24948 (param_change_prob): New parameter fbi, limit AA walking.
24949 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24950 calls to various above functions.
24951 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24952 parameter. Use it to limit AA walking.
24953 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24954 fbi, limit AA walk.
24955 (detect_type_change): New parameter fbi, pass it on to
24956 detect_type_change_from_memory_writes.
24957 (detect_type_change_ssa): Likewise.
24958 (aa_overwalked): Removed.
24959 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24960 accordingly, adjust to the neew AA limiting scheme.
24961 (parm_ref_data_preserved_p): Likewise.
24962 (ipa_compute_jump_functions_for_edge): Adjust call to
24964 (ipa_analyze_call_uses): Likewise.
24965 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24966 (ipa_analyze_node): Initialize aa_walk_budget.
24967 (ipcp_transform_function): Likewise.
24968 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24969 to get_dynamic_type.
24971 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24973 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24974 outside of #if CHECKING_P code.
24976 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24978 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24979 New function, split out from...
24980 (loop_versioning::analyze_stride): ...here.
24981 (loop_versioning::find_per_loop_multiplication): Use gassign.
24982 (loop_versioning::analyze_term_using_scevs): Return a success code.
24983 (loop_versioning::analyze_arbitrary_term): New function.
24984 (loop_versioning::analyze_address_fragment): Use
24985 analyze_arbitrary_term if all else fails.
24987 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
24990 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24993 2019-01-18 Richard Biener <rguenther@suse.de>
24995 PR tree-optimization/88903
24996 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24997 scalar stmts a SLP shift amount is composed of when detecting
25000 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25003 * config/arm/arm-cpus.in (mp): New feature.
25004 (sec): New feature.
25005 (fgroup ARMv7ve): Add mp and sec features.
25006 (arch armv7-a): Add options to allow mp and sec extensions.
25007 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25008 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25009 extenstions to the base architecture.
25010 (cpu cortex-a8): Add sec extension to the base architecture.
25011 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25012 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25013 variants down to the base v7-a varaint.
25014 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25015 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25016 of permitted extensions for -march=armv7-a and for
25017 -mcpu=generic-armv7-a.
25019 2019-01-18 Martin Liska <mliska@suse.cz>
25021 * params.def: Fix comment.
25022 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25024 (gimple_gen_ic_func_profiler): Likewise.
25026 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25028 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25029 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25030 and put in error checks for stack protector guard options.
25031 (aarch64_stack_protect_guard): New.
25032 (TARGET_STACK_PROTECT_GUARD): Define.
25033 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25034 (reg_stack_protect_address<mode>): New.
25035 (stack_protect_set): Adjust for SSP_GLOBAL.
25036 (stack_protect_test): Likewise.
25037 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25038 (-mstack-protector-guard): Likewise.
25039 (-mstack-protector-guard-offset): Likewise.
25041 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25043 PR tree-optimization/86214
25044 * tree-inline.h (struct copy_body_data): Add
25045 add_clobbers_to_eh_landing_pads member.
25046 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25047 (copy_edges_for_bb): Call it if EH edge destination is <
25048 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25049 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25050 if flag_stack_reuse != SR_NONE and clear it afterwards.
25052 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25055 * doc/install.texi (with-multilib-list): Document for aarch64.
25057 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25060 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25061 (("..."))) with ("...").
25063 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25065 * doc/extend.texi (Built-in Functions for Memory Model Aware
25066 Atomic Operations): Document atomic fetch and nand.
25068 2019-01-18 Martin Liska <mliska@suse.cz>
25069 Richard Biener <rguenther@suse.de>
25071 PR middle-end/88587
25072 * cgraph.h (create_version_clone_with_body): Add new argument
25074 * cgraphclones.c (cgraph_node::create_version_clone): Add
25075 DECL_ATTRIBUTES to a newly created decl. And call
25076 valid_attribute_p so that proper cl_target_optimization_node
25077 is set for the newly created declaration.
25078 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25080 (expand_target_clones): Do not call valid_attribute_p, it must
25082 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25085 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25088 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25089 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25090 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25092 2019-01-17 Martin Sebor <msebor@redhat.com>
25094 PR middle-end/88273
25095 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25096 Handle anti-ranges the same as no range at all.
25098 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25100 * config/aarch64/aarch64.c (cgraph.h): New include.
25101 (intl.h): New include.
25102 (supported_simd_type): New function.
25103 (currently_supported_simd_type): Ditto.
25104 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25105 (aarch64_simd_clone_adjust): Ditto.
25106 (aarch64_simd_clone_usable): Ditto.
25107 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25108 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25109 (TARGET_SIMD_CLONE_USABLE): Ditto.
25110 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25111 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25114 2019-01-17 Martin Sebor <msebor@redhat.com>
25116 PR tree-optimization/88800
25117 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25118 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25119 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25120 redundant argument. Add new argument and issue diagnostics under
25121 its control. Detect out-of-bounds access even with warnings
25123 (check_bounds_or_overlap): Change return type. Add argument.
25124 (wrestrict_dom_walker::check_call): Adjust.
25125 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25126 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25127 check_bounds_or_overlap's return value.
25128 (handle_builtin_stxncpy): Same.
25129 (handle_builtin_strcat): Same.
25131 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25132 Kwok Cheung Yeung <kcy@codesourcery.com>
25133 Julian Brown <julian@codesourcery.com>
25134 Tom de Vries <tom@codesourcery.com>
25136 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25138 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25140 * doc/sourcebuild.texi: Document dg-require-effective-target
25141 llvm_binutils and offload_gcn.
25143 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25144 Kwok Cheung Yeung <kcy@codesourcery.com>
25145 Julian Brown <julian@codesourcery.com>
25146 Tom de Vries <tom@codesourcery.com>
25148 * doc/sourcebuild.texi: Document dg-required-effective-target
25151 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25152 Kwok Cheung Yeung <kcy@codesourcery.com>
25153 Julian Brown <julian@codesourcery.com>
25154 Tom de Vries <tom@codesourcery.com>
25155 Jan Hubicka <hubicka@ucw.cz>
25156 Martin Jambor <mjambor@suse.cz>
25158 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25159 * configure.ac: Check for dlopen.
25160 * configure: Regenerate.
25162 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25163 Kwok Cheung Yeung <kcy@codesourcery.com>
25164 Julian Brown <julian@codesourcery.com>
25165 Tom de Vries <tom@codesourcery.com>
25166 Jan Hubicka <hubicka@ucw.cz>
25167 Martin Jambor <mjambor@suse.cz>
25169 * common/config/gcn/gcn-common.c: New file.
25170 * config/gcn/driver-gcn.c: New file.
25171 * config/gcn/gcn-builtins.def: New file.
25172 * config/gcn/gcn-hsa.h: New file.
25173 * config/gcn/gcn-modes.def: New file.
25174 * config/gcn/gcn-opts.h: New file.
25175 * config/gcn/gcn-passes.def: New file.
25176 * config/gcn/gcn-protos.h: New file.
25177 * config/gcn/gcn-run.c: New file.
25178 * config/gcn/gcn-tree.c: New file.
25179 * config/gcn/gcn.c: New file.
25180 * config/gcn/gcn.h: New file.
25181 * config/gcn/gcn.opt: New file.
25182 * config/gcn/t-gcn-hsa: New file.
25184 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25185 Kwok Cheung Yeung <kcy@codesourcery.com>
25186 Julian Brown <julian@codesourcery.com>
25187 Tom de Vries <tom@codesourcery.com>
25188 Jan Hubicka <hubicka@ucw.cz>
25189 Martin Jambor <mjambor@suse.cz>
25191 * config/gcn/constraints.md: New file.
25192 * config/gcn/gcn-valu.md: New file.
25193 * config/gcn/gcn.md: New file.
25194 * config/gcn/predicates.md: New file.
25196 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25198 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25199 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25200 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25201 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25203 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25206 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25207 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25208 it and document registers.
25210 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25212 * config/aarch64/aarch64.c (ares_tunings): Define.
25213 * config/aarch64/aarch64-cores.def (ares): Use the above.
25215 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25219 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25221 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25222 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25223 (_mm512_maskz_fixupimm_round_pd): Ditto.
25224 (_mm512_fixupimm_round_ps): Ditto.
25225 (_mm512_maskz_fixupimm_round_ps): Ditto.
25226 (_mm_fixupimm_round_sd): Ditto.
25227 (_mm_maskz_fixupimm_round_sd): Ditto.
25228 (_mm_fixupimm_round_ss): Ditto.
25229 (_mm_maskz_fixupimm_round_ss): Ditto.
25230 (_mm512_fixupimm_pd): Ditto.
25231 (_mm512_maskz_fixupimm_pd): Ditto.
25232 (_mm512_fixupimm_ps): Ditto.
25233 (_mm512_maskz_fixupimm_ps): Ditto.
25234 (_mm_fixupimm_sd): Ditto.
25235 (_mm_maskz_fixupimm_sd): Ditto.
25236 (_mm_fixupimm_ss): Ditto.
25237 (_mm_maskz_fixupimm_ss): Ditto.
25238 (_mm512_mask_fixupimm_round_pd): Update builtin.
25239 (_mm512_mask_fixupimm_round_ps): Ditto.
25240 (_mm_mask_fixupimm_round_sd): Ditto.
25241 (_mm_mask_fixupimm_round_ss): Ditto.
25242 (_mm512_mask_fixupimm_pd): Ditto.
25243 (_mm512_mask_fixupimm_ps): Ditto.
25244 (_mm_mask_fixupimm_sd): Ditto.
25245 (_mm_mask_fixupimm_ss): Ditto.
25246 * config/i386/avx512vlintrin.h:
25247 (_mm256_fixupimm_pd): Update parameters and builtin.
25248 (_mm256_maskz_fixupimm_pd): Ditto.
25249 (_mm256_fixupimm_ps): Ditto.
25250 (_mm256_maskz_fixupimm_ps): Ditto.
25251 (_mm_fixupimm_pd): Ditto.
25252 (_mm_maskz_fixupimm_pd): Ditto.
25253 (_mm_fixupimm_ps): Ditto.
25254 (_mm_maskz_fixupimm_ps): Ditto.
25255 (_mm256_mask_fixupimm_pd): Update builtin.
25256 (_mm256_mask_fixupimm_ps): Ditto.
25257 (_mm_mask_fixupimm_pd): Ditto.
25258 (_mm_mask_fixupimm_ps): Ditto.
25259 * config/i386/i386-builtin-types.def: Add new types and remove
25261 * config/i386/i386-builtin.def: Update builtin definitions.
25262 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25263 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25264 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25265 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25266 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25267 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25268 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25269 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25270 * config/i386/subst.md:
25271 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25272 (round_saeonly_sd_mask_op4): Ditto.
25273 (round_saeonly_expand_operand5): Ditto.
25274 (round_saeonly_expand): Update.
25276 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25280 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25282 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25283 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25284 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25285 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25286 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25287 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25288 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25290 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25294 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25297 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25298 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25299 instead of UNSPEC_FIXUPIMM.
25301 2019-01-17 Richard Biener <rguenther@suse.de>
25304 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25305 and friends for the LTO part of debug info.
25307 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25309 PR tree-optimization/86214
25310 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25313 PR rtl-optimization/88870
25314 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25315 throw if we can't alter the cfg or delete dead exceptions.
25316 (mark_insn): Don't call find_call_stack_args for such calls.
25318 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25320 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25321 prototypes for vec_st.
25322 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25323 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25324 mainly on signed/unsigned long long and double.
25326 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25329 * combine.c (delete_noop_moves): Convert to "bool" return,
25330 returning true if any edges are eliminated.
25331 (combine_instructions): Also return true if delete_noop_moves
25334 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25336 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25337 correct max nunits for endian swap.
25338 (aarch64_expand_fcmla_builtin): Correct subreg code.
25339 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25340 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25343 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25345 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25346 Handle split indirect COMPLEX_TYPE arguments.
25348 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25351 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25352 bit is set by add and compare.
25353 (CC_ADC): New CC_MODE.
25354 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25355 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25356 comparison. Add detection for CC_ADCmode.
25357 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25359 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25360 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25361 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25362 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25363 to eliminate the need for zero-extending the operands.
25364 (add<mode>3_compareC_imm): Delete. Merge into ...
25365 (add<mode>3_compareC): ... this. Restructure the comparison to
25366 eliminate the need for zero-extending the operands.
25367 (add<mode>3_carryin): Use LTU for the overflow detection.
25368 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25369 Reexpress comparison for overflow.
25370 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25371 (add<mode>3_carryinC): Likewise.
25372 (add<mode>3_carryinV): Use LTU for carry between partials.
25373 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25374 handling of CC_Cmode and add CC_ADCmode.
25375 (aarch64_borrow_operation): Likewise.
25377 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25379 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25380 Remove patternmode.
25381 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25382 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25383 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25384 Remove endianness conversion.
25386 2019-01-16 Martin Liska <mliska@suse.cz>
25388 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25390 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25392 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25393 (path_prefix_reset): Move up in the source file.
25394 (find_fortran_preinclude_file): Make complex search for the
25395 fortran header files.
25397 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25399 * godump.c (go_output_typedef): When outputting a typedef, refer
25400 to the underlying type by its name and not its structure.
25402 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25405 * tree.c (build_function_type): Assert that arg_types is not
25408 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25410 PR inline-asm/52813
25411 * doc/extend.texi: Document that listing the stack pointer in the
25412 clobber list of an asm is a deprecated feature.
25413 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25414 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25415 warning instead of an error for clobbers of the stack pointer.
25416 Add a note explaining why.
25418 2019-01-15 Richard Biener <rguenther@suse.de>
25421 * dwarf2out.c (gen_member_die): Do not generate inheritance
25424 2019-01-15 Richard Biener <rguenther@suse.de>
25426 PR tree-optimization/88855
25427 * tree-if-conv.c (combine_blocks): Collect
25428 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25430 2019-01-15 Tom de Vries <tdevries@suse.de>
25433 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25434 lhs == NULL_TREE for gang-level reduction.
25436 2019-01-15 Richard Biener <rguenther@suse.de>
25437 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25440 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25441 return true if SSA_NAME is already marked in visited bitmap.
25442 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25444 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25446 PR tree-optimization/88775
25447 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25448 equal == 0 equality pointer comparisons some more if compared in
25449 integral types and either one points to an automatic var and the
25450 other to a global, or we can prove at least one points to the middle
25451 or both point to start or both point to end.
25453 2019-01-14 Andi Kleen <ak@linux.intel.com>
25455 * Makefile.in: Lower autofdo sampling rate by 10x.
25456 * Makefile.tpl: Dito.
25458 2019-01-14 Tom Honermann <tom@honermann.net>
25460 * defaults.h: Define CHAR8_TYPE.
25462 2019-01-14 Martin Sebor <msebor@redhat.com>
25465 * doc/extend.texi (Darwin Format Checks): Clarify.
25467 2019-01-14 Richard Biener <rguenther@suse.de>
25469 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25470 whether we are in (simplify ...) or (match ...) context.
25472 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25474 PR rtl-optimization/88796
25475 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25476 * cfgexpand.c (stack_protect_prologue): Initialize
25477 crtl->stack_protect_guard_decl.
25478 * function.c (stack_protect_epilogue): Use it instead of calling
25479 targetm.stack_protect_guard again.
25480 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25481 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25482 crtl->stack_protect_guard_decl.
25483 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25484 on the returned MEM_EXPR.
25486 2019-01-12 Tom de Vries <tdevries@suse.de>
25488 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25489 vector length using -fopenacc-dim.
25491 2019-01-12 Tom de Vries <tdevries@suse.de>
25493 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25494 lengths into account.
25496 2019-01-12 Svante Signell <svante.signell@gmail.com>
25498 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25499 (TARGET_CAN_SPLIT_STACK): Define.
25500 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25502 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25504 * params.def (inline-unit-growth): Set to 40.
25506 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25508 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25510 2019-01-12 Tom de Vries <tdevries@suse.de>
25512 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25513 region calling vector-partitionable routine, set default_vector_length
25516 2019-01-12 Tom de Vries <tdevries@suse.de>
25518 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25519 variable default_vector_length.
25521 2019-01-12 Tom de Vries <tdevries@suse.de>
25523 PR middle-end/88703
25524 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25525 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25528 2019-01-12 Tom de Vries <tdevries@suse.de>
25530 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25531 (nvptx_goacc_validate_dims): Add used parameter.
25532 * doc/tm.texi: Regenerate.
25533 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25534 argument to call to targetm.goacc.validate_dims.
25535 (default_goacc_validate_dims): Add used
25537 * target.def (validate_dims): Add used parameter in DEFHOOK.
25538 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25540 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25542 PR middle-end/85956
25544 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25546 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25547 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25548 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25549 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25551 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25553 PR rtl-optimization/87305
25555 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25556 for little endian pseudos used as paradoxical subreg.
25558 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25560 PR tree-optimization/88693
25561 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25562 for STRING_CSTs that don't contain any NUL characters in the first
25563 TREE_STRING_LENGTH bytes.
25565 2019-01-11 Alan Modra <amodra@gmail.com>
25569 * genattrtab.c (min_fn): Don't translate values.
25570 (min_attr_value): Return INT_MAX when the value can't be calculated.
25571 Return minimum among any values that can be calculated.
25572 (max_attr_value): Adjust.
25574 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25576 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25578 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25580 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25581 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25582 (aarch64_return_call_with_max_clobbers): New function.
25583 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25584 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25586 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25587 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25588 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25589 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25590 * cselib.c (cselib_process_insn): Add argument to
25591 targetm.hard_regno_call_part_clobbered call.
25592 * ira-conflicts.c (ira_build_conflicts): Ditto.
25593 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25594 * lra-constraints.c (inherit_reload_reg): Ditto.
25595 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25596 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25597 argument. Call targetm.return_call_with_max_clobbers.
25598 Add argument to targetm.hard_regno_call_part_clobbered call.
25599 (calls_have_same_clobbers_p): New function.
25600 (process_bb_lives): Add call_insn and last_call_insn variables.
25601 Pass call_insn to check_pseudos_live_through_calls.
25602 Modify if stmt to check targetm.return_call_with_max_clobbers.
25603 Update setting of flush variable.
25604 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25606 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25607 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25608 targetm.hard_regno_call_part_clobbered call.
25609 * reginfo.c (choose_hard_reg_mode): Ditto.
25610 * regrename.c (check_new_reg_p): Ditto.
25611 * reload.c (find_equiv_reg): Ditto.
25612 * reload1.c (emit_reload_insns): Ditto.
25613 * sched-deps.c (deps_analyze_insn): Ditto.
25614 * sel-sched.c (init_regs_for_mode): Ditto.
25615 (mark_unavailable_hard_regs): Ditto.
25616 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25617 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25618 (return_call_with_max_clobbers): New target function.
25619 * doc/tm.texi: Regenerate.
25620 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25621 * hooks.c (hook_bool_uint_mode_false): Change to
25622 hook_bool_insn_uint_mode_false.
25623 * hooks.h (hook_bool_uint_mode_false): Ditto.
25625 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25627 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25628 (aarch64_remove_extra_call_preserved_regs): New function.
25629 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25630 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25631 * doc/tm.texi: Regenerate.
25632 * final.c (get_call_reg_set_usage): Call new hook.
25633 * target.def (remove_extra_call_preserved_regs): New hook.
25634 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25635 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25637 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25640 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25641 inside of pass_combine_1 dump rather than pass_profile_1.
25643 2019-01-11 Tom de Vries <tdevries@suse.de>
25645 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25646 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25647 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25648 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25651 2019-01-11 Tom de Vries <tdevries@suse.de>
25653 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25655 2019-01-11 Jan Beulich <jbeulich@suse.com>
25657 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25658 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25659 sse2_cvtsi2sd): Add {l}.
25660 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25663 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25666 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25668 (*float<floatunssuffix>v2div2sf2): New define_insn.
25669 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25670 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25671 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25672 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25673 match_operands with "const0_operand" "C".
25675 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25677 * config/aarch64/aarch64-builtins.c
25678 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25679 (aarch64_init_simd_builtins): ...Here
25681 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25683 PR rtl-optimization/87305
25685 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25686 allocation for big endian pseudos used as paradoxical subregs and
25687 spill them if it is wrong.
25688 * lra-constraints.c (lra_constraints): Add a comment.
25690 2019-01-10 Richard Biener <rguenther@suse.de>
25692 PR tree-optimization/88792
25693 * tree-ssa-pre.c (get_representative_for): Do not return a
25696 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25698 PR middle-end/84877
25700 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25701 (assign_parm_setup_block): Do the argument slot realignment here
25704 2019-01-10 Stefan Agner <stefan@agner.ch>
25707 * config/arm/arm.c (arm_option_override_internal): Force
25708 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25710 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25713 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25716 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25718 * config/arm/arm-builtins.c
25719 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25720 (MAC_LANE_PAIR_QUALIFIERS): New.
25721 (arm_expand_builtin_args): Use it.
25722 (arm_expand_builtin_1): Likewise.
25723 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25724 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25725 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25726 * config/arm/arm_neon.h:
25727 (vcadd_rot90_f16): New.
25728 (vcaddq_rot90_f16): New.
25729 (vcadd_rot270_f16): New.
25730 (vcaddq_rot270_f16): New.
25733 (vcmla_lane_f16): New.
25734 (vcmla_laneq_f16): New.
25735 (vcmlaq_lane_f16): New.
25736 (vcmlaq_laneq_f16): New.
25737 (vcmla_rot90_f16): New.
25738 (vcmlaq_rot90_f16): New.
25739 (vcmla_rot90_lane_f16): New.
25740 (vcmla_rot90_laneq_f16): New.
25741 (vcmlaq_rot90_lane_f16): New.
25742 (vcmlaq_rot90_laneq_f16): New.
25743 (vcmla_rot180_f16): New.
25744 (vcmlaq_rot180_f16): New.
25745 (vcmla_rot180_lane_f16): New.
25746 (vcmla_rot180_laneq_f16): New.
25747 (vcmlaq_rot180_lane_f16): New.
25748 (vcmlaq_rot180_laneq_f16): New.
25749 (vcmla_rot270_f16): New.
25750 (vcmlaq_rot270_f16): New.
25751 (vcmla_rot270_lane_f16): New.
25752 (vcmla_rot270_laneq_f16): New.
25753 (vcmlaq_rot270_lane_f16): New.
25754 (vcmlaq_rot270_laneq_f16): New.
25755 (vcadd_rot90_f32): New.
25756 (vcaddq_rot90_f32): New.
25757 (vcadd_rot270_f32): New.
25758 (vcaddq_rot270_f32): New.
25761 (vcmla_lane_f32): New.
25762 (vcmla_laneq_f32): New.
25763 (vcmlaq_lane_f32): New.
25764 (vcmlaq_laneq_f32): New.
25765 (vcmla_rot90_f32): New.
25766 (vcmlaq_rot90_f32): New.
25767 (vcmla_rot90_lane_f32): New.
25768 (vcmla_rot90_laneq_f32): New.
25769 (vcmlaq_rot90_lane_f32): New.
25770 (vcmlaq_rot90_laneq_f32): New.
25771 (vcmla_rot180_f32): New.
25772 (vcmlaq_rot180_f32): New.
25773 (vcmla_rot180_lane_f32): New.
25774 (vcmla_rot180_laneq_f32): New.
25775 (vcmlaq_rot180_lane_f32): New.
25776 (vcmlaq_rot180_laneq_f32): New.
25777 (vcmla_rot270_f32): New.
25778 (vcmlaq_rot270_f32): New.
25779 (vcmla_rot270_lane_f32): New.
25780 (vcmla_rot270_laneq_f32): New.
25781 (vcmlaq_rot270_lane_f32): New.
25782 (vcmlaq_rot270_laneq_f32): New.
25783 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25784 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25785 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25786 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25787 vcmlaq_lane270): New.
25788 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25789 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25790 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25791 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25792 (arm_option_reconfigure_globals): Use them.
25793 * config/arm/iterators.md (VDF, VQ_HSF): New.
25794 (VCADD, VCMLA): New.
25795 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25796 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25798 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25799 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25801 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25803 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25804 Add qualifier_lane_pair_index.
25805 (emit-rtl.h): Include.
25806 (TYPES_QUADOP_LANE_PAIR): New.
25807 (aarch64_simd_expand_args): Use it.
25808 (aarch64_simd_expand_builtin): Likewise.
25809 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25811 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25812 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25813 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25814 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25815 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25816 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25817 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25818 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25819 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25820 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25821 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25822 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25823 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25824 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25825 Add __ARM_FEATURE_COMPLEX.
25826 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25827 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25828 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25829 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25830 fcmlaq_lane270): New.
25831 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25832 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25833 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25834 * config/aarch64/arm_neon.h:
25835 (vcadd_rot90_f16): New.
25836 (vcaddq_rot90_f16): New.
25837 (vcadd_rot270_f16): New.
25838 (vcaddq_rot270_f16): New.
25841 (vcmla_lane_f16): New.
25842 (vcmla_laneq_f16): New.
25843 (vcmlaq_lane_f16): New.
25844 (vcmlaq_rot90_lane_f16): New.
25845 (vcmla_rot90_laneq_f16): New.
25846 (vcmla_rot90_lane_f16): New.
25847 (vcmlaq_rot90_f16): New.
25848 (vcmla_rot90_f16): New.
25849 (vcmlaq_laneq_f16): New.
25850 (vcmla_rot180_laneq_f16): New.
25851 (vcmla_rot180_lane_f16): New.
25852 (vcmlaq_rot180_f16): New.
25853 (vcmla_rot180_f16): New.
25854 (vcmlaq_rot90_laneq_f16): New.
25855 (vcmlaq_rot270_laneq_f16): New.
25856 (vcmlaq_rot270_lane_f16): New.
25857 (vcmla_rot270_laneq_f16): New.
25858 (vcmlaq_rot270_f16): New.
25859 (vcmla_rot270_f16): New.
25860 (vcmlaq_rot180_laneq_f16): New.
25861 (vcmlaq_rot180_lane_f16): New.
25862 (vcmla_rot270_lane_f16): New.
25863 (vcadd_rot90_f32): New.
25864 (vcaddq_rot90_f32): New.
25865 (vcaddq_rot90_f64): New.
25866 (vcadd_rot270_f32): New.
25867 (vcaddq_rot270_f32): New.
25868 (vcaddq_rot270_f64): New.
25872 (vcmla_lane_f32): New.
25873 (vcmla_laneq_f32): New.
25874 (vcmlaq_lane_f32): New.
25875 (vcmlaq_laneq_f32): New.
25876 (vcmla_rot90_f32): New.
25877 (vcmlaq_rot90_f32): New.
25878 (vcmlaq_rot90_f64): New.
25879 (vcmla_rot90_lane_f32): New.
25880 (vcmla_rot90_laneq_f32): New.
25881 (vcmlaq_rot90_lane_f32): New.
25882 (vcmlaq_rot90_laneq_f32): New.
25883 (vcmla_rot180_f32): New.
25884 (vcmlaq_rot180_f32): New.
25885 (vcmlaq_rot180_f64): New.
25886 (vcmla_rot180_lane_f32): New.
25887 (vcmla_rot180_laneq_f32): New.
25888 (vcmlaq_rot180_lane_f32): New.
25889 (vcmlaq_rot180_laneq_f32): New.
25890 (vcmla_rot270_f32): New.
25891 (vcmlaq_rot270_f32): New.
25892 (vcmlaq_rot270_f64): New.
25893 (vcmla_rot270_lane_f32): New.
25894 (vcmla_rot270_laneq_f32): New.
25895 (vcmlaq_rot270_lane_f32): New.
25896 (vcmlaq_rot270_laneq_f32): New.
25897 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25898 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25899 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25900 (FCADD, FCMLA): New.
25902 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25904 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25908 * config/pa/pa.c: Change "can not" to "cannot".
25909 * gimple-ssa-evrp-analyze.c: Likewise.
25910 * ipa-icf.c: Likewise.
25911 * ipa-polymorphic-call.c: Likewise.
25912 * ipa-pure-const.c: Likewise.
25913 * lra-constraints.c: Likewise.
25914 * lra-remat.c: Likewise.
25915 * reload1.c: Likewise.
25916 * reorg.c: Likewise.
25917 * tree-ssa-uninit.c: Likewise.
25919 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25923 * Makefile.in: Mechanically replace "can not" with "cannot".
25924 * alias.c: Likewise.
25925 * builtins.c: Likewise.
25926 * calls.c: Likewise.
25927 * cgraph.c: Likewise.
25928 * cgraph.h: Likewise.
25929 * cgraphclones.c: Likewise.
25930 * cgraphunit.c: Likewise.
25931 * combine-stack-adj.c: Likewise.
25932 * combine.c: Likewise.
25933 * common/config/i386/i386-common.c: Likewise.
25934 * config/aarch64/aarch64.c: Likewise.
25935 * config/alpha/sync.md: Likewise.
25936 * config/arc/arc.c: Likewise.
25937 * config/arc/predicates.md: Likewise.
25938 * config/arm/arm-c.c: Likewise.
25939 * config/arm/arm.c: Likewise.
25940 * config/arm/arm.h: Likewise.
25941 * config/arm/arm.md: Likewise.
25942 * config/arm/cortex-r4f.md: Likewise.
25943 * config/csky/csky.c: Likewise.
25944 * config/csky/csky.h: Likewise.
25945 * config/darwin-f.c: Likewise.
25946 * config/epiphany/epiphany.md: Likewise.
25947 * config/i386/i386.c: Likewise.
25948 * config/i386/sol2.h: Likewise.
25949 * config/m68k/m68k.c: Likewise.
25950 * config/mcore/mcore.h: Likewise.
25951 * config/microblaze/microblaze.md: Likewise.
25952 * config/mips/20kc.md: Likewise.
25953 * config/mips/sb1.md: Likewise.
25954 * config/nds32/nds32.c: Likewise.
25955 * config/nds32/predicates.md: Likewise.
25956 * config/pa/pa.c: Likewise.
25957 * config/rs6000/e300c2c3.md: Likewise.
25958 * config/rs6000/rs6000.c: Likewise.
25959 * config/s390/s390.h: Likewise.
25960 * config/sh/sh.c: Likewise.
25961 * config/sh/sh.md: Likewise.
25962 * config/spu/vmx2spu.h: Likewise.
25963 * cprop.c: Likewise.
25964 * dbxout.c: Likewise.
25965 * df-scan.c: Likewise.
25966 * doc/cfg.texi: Likewise.
25967 * doc/extend.texi: Likewise.
25968 * doc/fragments.texi: Likewise.
25969 * doc/gty.texi: Likewise.
25970 * doc/invoke.texi: Likewise.
25971 * doc/lto.texi: Likewise.
25972 * doc/md.texi: Likewise.
25973 * doc/objc.texi: Likewise.
25974 * doc/rtl.texi: Likewise.
25975 * doc/tm.texi: Likewise.
25977 * emit-rtl.c: Likewise.
25978 * emit-rtl.h: Likewise.
25979 * except.c: Likewise.
25980 * expmed.c: Likewise.
25981 * expr.c: Likewise.
25982 * fold-const.c: Likewise.
25983 * genautomata.c: Likewise.
25984 * gimple-fold.c: Likewise.
25985 * hard-reg-set.h: Likewise.
25986 * ifcvt.c: Likewise.
25987 * ipa-comdats.c: Likewise.
25988 * ipa-cp.c: Likewise.
25989 * ipa-devirt.c: Likewise.
25990 * ipa-fnsummary.c: Likewise.
25991 * ipa-icf.c: Likewise.
25992 * ipa-inline-transform.c: Likewise.
25993 * ipa-inline.c: Likewise.
25994 * ipa-polymorphic-call.c: Likewise.
25995 * ipa-profile.c: Likewise.
25996 * ipa-prop.c: Likewise.
25997 * ipa-pure-const.c: Likewise.
25998 * ipa-reference.c: Likewise.
25999 * ipa-split.c: Likewise.
26000 * ipa-visibility.c: Likewise.
26002 * ira-build.c: Likewise.
26003 * ira-color.c: Likewise.
26004 * ira-conflicts.c: Likewise.
26005 * ira-costs.c: Likewise.
26006 * ira-int.h: Likewise.
26007 * ira-lives.c: Likewise.
26010 * loop-invariant.c: Likewise.
26011 * loop-unroll.c: Likewise.
26012 * lower-subreg.c: Likewise.
26013 * lra-assigns.c: Likewise.
26014 * lra-constraints.c: Likewise.
26015 * lra-eliminations.c: Likewise.
26016 * lra-lives.c: Likewise.
26017 * lra-remat.c: Likewise.
26018 * lra-spills.c: Likewise.
26020 * lto-cgraph.c: Likewise.
26021 * lto-streamer-out.c: Likewise.
26022 * postreload-gcse.c: Likewise.
26023 * predict.c: Likewise.
26024 * profile-count.h: Likewise.
26025 * profile.c: Likewise.
26026 * recog.c: Likewise.
26028 * reload.c: Likewise.
26029 * reload1.c: Likewise.
26030 * reorg.c: Likewise.
26031 * resource.c: Likewise.
26032 * rtl.def: Likewise.
26034 * rtlanal.c: Likewise.
26035 * sched-deps.c: Likewise.
26036 * sched-ebb.c: Likewise.
26037 * sched-rgn.c: Likewise.
26038 * sel-sched-ir.c: Likewise.
26039 * sel-sched.c: Likewise.
26040 * shrink-wrap.c: Likewise.
26041 * simplify-rtx.c: Likewise.
26042 * symtab.c: Likewise.
26043 * target.def: Likewise.
26044 * toplev.c: Likewise.
26045 * tree-call-cdce.c: Likewise.
26046 * tree-cfg.c: Likewise.
26047 * tree-complex.c: Likewise.
26048 * tree-core.h: Likewise.
26049 * tree-eh.c: Likewise.
26050 * tree-inline.c: Likewise.
26051 * tree-loop-distribution.c: Likewise.
26052 * tree-nrv.c: Likewise.
26053 * tree-profile.c: Likewise.
26054 * tree-sra.c: Likewise.
26055 * tree-ssa-alias.c: Likewise.
26056 * tree-ssa-dce.c: Likewise.
26057 * tree-ssa-dom.c: Likewise.
26058 * tree-ssa-forwprop.c: Likewise.
26059 * tree-ssa-loop-im.c: Likewise.
26060 * tree-ssa-loop-ivcanon.c: Likewise.
26061 * tree-ssa-loop-ivopts.c: Likewise.
26062 * tree-ssa-loop-niter.c: Likewise.
26063 * tree-ssa-phionlycprop.c: Likewise.
26064 * tree-ssa-phiopt.c: Likewise.
26065 * tree-ssa-propagate.c: Likewise.
26066 * tree-ssa-threadedge.c: Likewise.
26067 * tree-ssa-threadupdate.c: Likewise.
26068 * tree-ssa-uninit.c: Likewise.
26069 * tree-ssanames.c: Likewise.
26070 * tree-streamer-out.c: Likewise.
26071 * tree.c: Likewise.
26072 * tree.h: Likewise.
26073 * vr-values.c: Likewise.
26075 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26077 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26078 (ix86_split_xorsign): Ditto.
26079 * config/i386/i386.c (ix86_expand_xorsign): New function.
26080 (ix86_split_xorsign): Ditto.
26081 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26082 (xorsign<mode>3): New expander.
26083 (xorsign<mode>3_1): New insn_and_split pattern.
26084 * config/i386/sse.md (xorsign<mode>3): New expander.
26086 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26088 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26089 (*tablejump_sp64): Likewise.
26090 (*tablejump<P:mode>): ...this.
26091 (*call_address_sp32): Merge into...
26092 (*call_address_sp64): Likewise.
26093 (*call_address<P:mode>): ...this.
26094 (*call_symbolic_sp32): Merge into...
26095 (*call_symbolic_sp64): Likewise.
26096 (*call_symbolic<P:mode>): ...this.
26097 (call_value): Remove constraint and add predicate.
26098 (*call_value_address_sp32): Merge into...
26099 (*call_value_address_sp64): Likewise.
26100 (*call_value_address<P:mode>): ...this.
26101 (*call_value_symbolic_sp32): Merge into...
26102 (*call_value_symbolic_sp64): Likewise.
26103 (*call_value_symbolic<P:mode>): ...this.
26104 (*sibcall_symbolic_sp32): Merge into...
26105 (*sibcall_symbolic_sp64): Likewise.
26106 (*sibcall_symbolic<P:mode>): ...this.
26107 (sibcall_value): Remove constraint and add predicate.
26108 (*sibcall_value_symbolic_sp32): Merge into...
26109 (*sibcall_value_symbolic_sp64): Likewise.
26110 (*sibcall_value_symbolic<P:mode>): ...this.
26111 (window_save): Minor tweak.
26112 (*branch_sp32): Merge into...
26113 (*branch_sp64): Likewise.
26114 (*branch<P:mode>): ...this.
26116 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26117 James Clarke <jrtc27@jrtc27.com>
26120 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26121 consistently in TLS address generation and adjust code to the renaming
26122 of patterns. Mark calls to __tls_get_addr as const.
26123 * config/sparc/sparc.md (tgd_hi22): Turn into...
26124 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26125 (tgd_lo10): Turn into...
26126 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26127 (tgd_add32): Merge into...
26128 (tgd_add64): Likewise.
26129 (tgd_add<P:mode>): ...this and use Pmode throughout.
26130 (tldm_hi22): Turn into...
26131 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26132 (tldm_lo10): Turn into...
26133 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26134 (tldm_add32): Merge into...
26135 (tldm_add64): Likewise.
26136 (tldm_add<P:mode>): ...this and use Pmode throughout.
26137 (tldm_call32): Merge into...
26138 (tldm_call64): Likewise.
26139 (tldm_call<P:mode>): ...this and use Pmode throughout.
26140 (tldo_hix22): Turn into...
26141 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26142 (tldo_lox10): Turn into...
26143 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26144 (tldo_add32): Merge into...
26145 (tldo_add64): Likewise.
26146 (tldo_add<P:mode>): ...this and use Pmode throughout.
26147 (tie_hi22): Turn into...
26148 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26149 (tie_lo10): Turn into...
26150 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26151 (tie_ld64): Use DImode throughout.
26152 (tie_add32): Merge into...
26153 (tie_add64): Likewise.
26154 (tie_add<P:mode>): ...this and use Pmode throughout.
26155 (tle_hix22_sp32): Merge into...
26156 (tle_hix22_sp64): Likewise.
26157 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26158 (tle_lox22_sp32): Merge into...
26159 (tle_lox22_sp64): Likewise.
26160 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26161 (*tldo_ldub_sp32): Merge into...
26162 (*tldo_ldub_sp64): Likewise.
26163 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26164 (*tldo_ldub1_sp32): Merge into...
26165 (*tldo_ldub1_sp64): Likewise.
26166 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26167 (*tldo_ldub2_sp32): Merge into...
26168 (*tldo_ldub2_sp64): Likewise.
26169 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26170 (*tldo_ldsb1_sp32): Merge into...
26171 (*tldo_ldsb1_sp64): Likewise.
26172 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26173 (*tldo_ldsb2_sp32): Merge into...
26174 (*tldo_ldsb2_sp64): Likewise.
26175 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26176 (*tldo_ldub3_sp64): Use DImode throughout.
26177 (*tldo_ldsb3_sp64): Likewise.
26178 (*tldo_lduh_sp32): Merge into...
26179 (*tldo_lduh_sp64): Likewise.
26180 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26181 (*tldo_lduh1_sp32): Merge into...
26182 (*tldo_lduh1_sp64): Likewise.
26183 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26184 (*tldo_ldsh1_sp32): Merge into...
26185 (*tldo_ldsh1_sp64): Likewise.
26186 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26187 (*tldo_lduh2_sp64): Use DImode throughout.
26188 (*tldo_ldsh2_sp64): Likewise.
26189 (*tldo_lduw_sp32): Merge into...
26190 (*tldo_lduw_sp64): Likewise.
26191 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26192 (*tldo_lduw1_sp64): Use DImode throughout.
26193 (*tldo_ldsw1_sp64): Likewise.
26194 (*tldo_ldx_sp64): Likewise.
26195 (*tldo_stb_sp32): Merge into...
26196 (*tldo_stb_sp64): Likewise.
26197 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26198 (*tldo_sth_sp32): Merge into...
26199 (*tldo_sth_sp64): Likewise.
26200 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26201 (*tldo_stw_sp32): Merge into...
26202 (*tldo_stw_sp64): Likewise.
26203 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26204 (*tldo_stx_sp64): Use DImode throughout.
26206 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26208 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26209 check configure option to set BTI and Return Address Signing.
26210 * configure.ac: Add --enable-standard-branch-protection and
26211 --disable-standard-branch-protection.
26212 * configure: Regenerated.
26213 * doc/install.texi: Document the same.
26215 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26216 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26218 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26219 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26220 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26222 * config/aarch64/aarch64-bti-insert.c: New file.
26223 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26225 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26227 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26228 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26229 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26230 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26232 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26234 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26235 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26236 Disable bti for -mbranch-protection=none.
26237 (aarch64_handle_standard_branch_protection): Enable bti for
26238 -mbranch-protection=standard.
26239 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26240 -mbranch-protection.
26241 (aarch64_bti_enabled): Check if bti is enabled.
26242 * config/aarch64/aarch64.opt: Declare target variable.
26243 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26245 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26247 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26248 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26249 (aarch64_expand_epilogue): Likewise.
26250 (aarch64_output_mi_thunk): Likewise.
26251 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26252 TAILCALL_ADDR_REGS to x16 and x17.
26253 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26255 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26257 * config/aarch64/aarch64-option-extensions.def: Define
26258 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26259 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26260 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26261 (AARCH64_FL_PREDRES): New.
26262 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26263 AARCH64_FL_PREDRES by default.
26264 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26266 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26268 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26270 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26271 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26272 * doc/invoke.texi: Document ARMv8.5-A.
26274 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26276 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26277 (xorsign<mode>3): Likewise.
26279 2019-01-09 Jelinek <jakub@redhat.com>
26281 PR middle-end/88758
26282 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26283 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26285 PR rtl-optimization/88331
26286 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26287 not currently_expanding_to_rtl.
26289 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26291 * doc/invoke.texi (-Os): Remove trailing spaces.
26292 (-finline-functions): Remove reference to -O2.
26294 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26296 PR rtl-optimization/79593
26297 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26299 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26300 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26302 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26305 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26309 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26310 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26312 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26315 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26316 ix86_avx_u128_mode_entry.
26318 2019-01-08 Martin Liska <mliska@suse.cz>
26320 PR tree-optimization/88753
26321 * tree-switch-conversion.c (switch_conversion::build_one_array):
26322 Come up with local variable constructor. Convert first to
26323 type of constructor values.
26325 2019-01-08 Richard Biener <rguenther@suse.de>
26327 PR tree-optimization/86554
26328 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26329 rpo_avail): Move earlier.
26330 (visit_nary_op): When value-numbering to expressions
26331 with different overflow behavior make sure there's an
26332 available expression on the path.
26334 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26336 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26337 aarch64_parse_branch_protection,
26338 struct aarch64_branch_protect_type,
26339 aarch64_handle_no_branch_protection,
26340 aarch64_handle_standard_branch_protection,
26341 aarch64_validate_mbranch_protection,
26342 aarch64_handle_pac_ret_protection,
26343 aarch64_handle_attr_branch_protection,
26344 accepted_branch_protection_string,
26345 aarch64_pac_ret_subtypes,
26346 aarch64_branch_protect_types,
26347 aarch64_handle_pac_ret_leaf): Define.
26348 (aarch64_override_options_after_change_1, aarch64_override_options):
26349 Add check for accepted_branch_protection_string.
26350 (aarch64_option_save): Save accepted_branch_protection_string.
26351 (aarch64_option_restore): Save accepted_branch_protection_string.
26352 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26353 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26354 msign-return-address.
26355 * doc/invoke.texi: Add mbranch-protection.
26357 2019-01-08 Alan Modra <amodra@gmail.com>
26360 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26361 Delete "unknownp" parameter. Adjust callers. Handle
26362 CONST_INT, PLUS, MINUS, and MULT.
26363 (attr_value_aligned): Renamed from or_attr_value.
26364 (min_attr_value): Return INT_MIN for unhandled rtl case..
26365 (min_fn): ..and translate to INT_MAX here.
26366 (write_length_unit_log): Modify to cope without "unknown".
26367 (write_attr_value): Handle IF_THEN_ELSE.
26369 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26371 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26372 optimization for masked stores.
26374 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26376 PR middle-end/88567
26377 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26378 output vector directly to duplicate_and_interleave instead of
26379 going through a temporary. Postpone insertion of ctor_seq to
26380 the end of the loop.
26382 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26385 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26386 unsigned_p. Handle signed and unsigned overflow correction as
26388 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26390 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26392 (add<mode>3_compareV_imm): Make this callable for expanding.
26393 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26394 aarch64_plus_operand for operand 2.
26395 (subv<GPI:mode>_insn): New insn pattern.
26396 (subv<GPI:mode>_imm): Likewise.
26397 (negv<GPI:mode>3): New expand pattern.
26398 (negv<GPI:mode>_insn): New insn pattern.
26399 (negv<GPI:mode>_cmp_only): Likewise.
26400 (cmpv<GPI:mode>_insn): Likewise.
26401 (subvti4): Use register_operand for operand 1. Update call to
26402 aarch64_expand_subvti.
26403 (usubvti4): Likewise.
26404 (negvti3): New expand pattern.
26405 (negdi_carryout): New insn pattern.
26406 (negvdi_carryinV): New insn pattern.
26407 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26408 version the named version.
26409 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26411 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26413 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26415 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26416 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26417 (sub<mode>3_carryinCV): Delete.
26418 (sub<GPI:mode>3_carryinV): New expand pattern.
26419 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26421 2019-01-07 Richard Biener <rguenther@suse.de>
26423 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26424 of tree_operand_hash.
26426 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26428 PR tree-optimization/88598
26429 * tree.h (single_nonzero_element): Declare.
26430 * tree.c (single_nonzero_element): New function.
26431 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26432 if I is the only nonzero element of CST.
26434 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26436 PR tree-optimization/88598
26437 * tree.h (initializer_each_zero_or_onep): Declare.
26438 * tree.c (initializer_each_zero_or_onep): New function.
26439 (signed_or_unsigned_type_for): Handle float types too.
26440 (unsigned_type_for, signed_type_for): Update comments accordingly.
26441 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26442 x & { 0 or -1, 0 or -1, ... }.
26444 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26446 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26447 with x86_64-pc-linux-gnu.
26449 2019-01-07 Tom de Vries <tdevries@suse.de>
26452 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26454 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26457 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26459 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26460 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26461 TARGET_AVX512F as condition.
26464 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26465 const_not_ok_for_debug_p target hook.
26466 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26467 on UNSPEC and subexpressions thereof if all subexpressions of the
26468 UNSPEC are CONSTANT_P.
26470 PR tree-optimization/88676
26471 * tree-ssa-phiopt.c (two_value_replacement): New function.
26472 (tree_ssa_phiopt_worker): Call it.
26475 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26476 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26479 * tree-vect-generic.c: Include insn-config.h and recog.h.
26480 (expand_vector_piecewise): Add defaulted ret_type argument,
26481 if non-NULL, use that in preference to type for the result type.
26482 (expand_vector_parallel): Formatting fix.
26483 (do_vec_conversion, do_vec_narrowing_conversion,
26484 expand_vector_conversion): New functions.
26485 (expand_vector_operations_1): Call expand_vector_conversion
26486 for VEC_CONVERT ifn calls.
26487 * internal-fn.def (VEC_CONVERT): New internal function.
26488 * internal-fn.c (expand_VEC_CONVERT): New function.
26489 * fold-const-call.c (fold_const_vec_convert): New function.
26490 (fold_const_call): Use it for CFN_VEC_CONVERT.
26491 * doc/extend.texi (__builtin_convertvector): Document.
26493 2019-01-07 Tom de Vries <tdevries@suse.de>
26495 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26496 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26497 vector_red_partition, vector_red_sym): New global variables.
26498 (nvptx_option_override): Initialize vector_red_sym.
26499 (nvptx_declare_function_name): Restore red_partition register.
26500 (nvptx_file_end): Emit code to declare the vector reduction variables.
26501 (nvptx_output_red_partition): New function.
26502 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26503 large vector reductions.
26504 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26505 (nvptx_init_builtins): Add VECTOR_ADDR.
26506 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26507 Handle nvptx_expand_shared_addr.
26508 (nvptx_get_shared_red_addr): Add vector argument and handle large
26510 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26512 (nvptx_goacc_reduction_init): Likewise.
26513 (nvptx_goacc_reduction_fini): Likewise.
26514 (nvptx_goacc_reduction_teardown): Likewise.
26515 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26516 init,fini,teardown}.
26517 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26518 (nvptx_set_current_function): Init vector_red_partition.
26519 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26520 (nvptx_red_partition): New insn.
26521 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26523 2019-01-07 Tom de Vries <tdevries@suse.de>
26526 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26529 2019-01-07 Tom de Vries <tdevries@suse.de>
26531 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26532 (nvptx_option_override): Init oacc_bcast_partition.
26533 (nvptx_init_oacc_workers): New function.
26534 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26535 (nvptx_needs_shared_bcast): New function.
26536 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26537 to propagate state.
26538 (nvptx_shared_propagate): Initialize vector bcast partition and
26539 synchronization state.
26540 (nvptx_single): Generalize to enable vectors to use shared-memory
26541 to propagate state.
26542 (nvptx_process_pars): Likewise.
26543 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26544 * config/nvptx/nvptx.h (struct machine_function): Add
26545 bcast_partition and sync_bar members.
26547 2019-01-07 Tom de Vries <tdevries@suse.de>
26549 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26550 (nvptx_apply_dim_limits): New function.
26551 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26554 2019-01-07 Tom de Vries <tdevries@suse.de>
26556 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26557 as late as possible.
26559 2019-01-07 Tom de Vries <tdevries@suse.de>
26561 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26562 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26563 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26564 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26565 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26567 2019-01-07 Tom de Vries <tdevries@suse.de>
26569 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26571 2019-01-07 Tom de Vries <tdevries@suse.de>
26573 * omp-offload.c (oacc_get_min_dim): New function.
26574 * omp-offload.h (oacc_get_min_dim): Declare.
26576 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26579 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26580 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26582 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26586 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26588 * ipa-inline.c (edge_badness): Use inlined_time instead of
26589 inline_summaries->get.
26591 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26593 * opts.c (enable_fdo_optimizations): Enable
26594 version-loops-for-strides, loop-interchange, unrol-and-jam
26595 and tree-loop-distribution.
26596 * invoke.texi: Document newly enabled options.
26598 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26600 * doc/invoke.texi (max-inline-insns-small): New parameters.
26601 * ipa-inline.c (want_early_inline_function_p): simplify.
26602 (want_inline_small_function_p): Fix pasto from previous patch;
26603 use max-inline-insns-small bound.
26604 * params.def (max-inline-insns-small): New param.
26605 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26606 variables correctly.
26608 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26610 * doc/invoke.texi: Document max-inline-insns-size,
26611 uninlined-function-insns, uninlined-function-time,
26612 uninlined-thunk-insns and uninlined-thunk-time.
26613 * params.def: Add max-inline-insns-size,
26614 uninlined-function-insns, uninlined-function-time,
26615 uninlined-thunk-insns and uninlined-thunk-time.
26616 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26618 * ipa-inline.c (can_inline_edge_by_limits_p,
26619 want_inline_small_function_p): Use new parameters.
26621 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26623 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26625 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26627 PR middle-end/82564
26629 * expr.c (expand_assignment): For calls returning VLA structures
26630 if to_rtx is not a MEM, force it into a stack temporary.
26633 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26634 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26635 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26636 subexpressions of both operands.
26637 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26638 subrtxes are CONSTANT_P.
26639 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26640 2018-11-09 changes.
26642 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26644 * params.def (hot-bb-count-ws-permille): Set to 990.
26646 2019-01-04 Martin Sebor <msebor@redhat.com>
26649 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26652 2019-01-04 Martin Sebor <msebor@redhat.com>
26655 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26657 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26659 * gdbinit.in: Turn off pagination for the skip commands, restore
26660 it to previous state afterwards.
26662 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26665 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26666 of GET_MODE (opN) as modes of the libcall arguments.
26668 2019-01-04 Jan Beulich <jbeulich@suse.com>
26670 * config/i386/sse.md
26671 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26672 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26673 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26674 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26675 avx512f_vmcmp<mode>3<round_saeonly_name>,
26676 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26677 avx512f_maskcmp<mode>3,
26678 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26679 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26680 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26681 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26682 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26683 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26684 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26685 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26686 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26687 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26688 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26689 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26690 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26691 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26692 avx512cd_maskb_vec_dup<mode>,
26693 avx512cd_maskw_vec_dup<mode>,
26694 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26695 avx512dq_vmfpclass<mode>,
26696 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26699 2019-01-03 Martin Sebor <msebor@redhat.com>
26701 PR tree-optimization/88659
26702 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26704 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26706 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26707 unaligned vsx and avoid lxvd2x/stxvd2x.
26708 (gen_lvx_v4si_move): New function.
26710 2019-01-03 Tom de Vries <tdevries@suse.de>
26712 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26713 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26715 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26717 2019-01-03 Tom de Vries <tdevries@suse.de>
26719 * config/nvptx/nvptx.c (struct offload_attrs): New.
26720 (populate_offload_attrs): New function. Factor mask extraction out of
26721 nvptx_reorg. Add extraction of dimensions.
26722 (nvptx_reorg): Use populate_offload_attrs.
26724 2019-01-03 Tom de Vries <tdevries@suse.de>
26726 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26727 cases for oacc_min_dims_p and routine_p. Add asserts for
26728 oacc_default_dims_p and offload_region_p.
26730 2019-01-03 Tom de Vries <tdevries@suse.de>
26732 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26733 factored out of ...
26734 (nvptx_goacc_validate_dims): ... here.
26736 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26738 PR tree-optimization/85574
26739 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26741 (struct ssa_equip_hash_traits): Declare.
26742 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26744 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26747 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26748 change it to qualified_type.
26750 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26752 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26753 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26755 2019-01-02 Martin Sebor <msebor@redhat.com>
26756 Jeff Law <law@redhat.com>
26758 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26759 (get_range_strlen_tree): Update appropriately.
26761 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26763 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26764 rather than set_range_info.
26765 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26766 maybe_set_strlen_range. Handle potentially boundary crossing
26767 cases more conservatively.
26768 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26769 Call set_strlen_range.
26770 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26772 PR middle-end/88663
26773 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26774 need the flexp argument.
26775 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26776 from calls to get_range_strlen. Update comments. Just update
26777 VAL for an unterminated const char array and let the reset of the
26778 code handle it normally. No longer try to set *flexp. Adjust
26780 (get_range_strlen): Update for the new get_range_strlen API.
26781 (get_maxval_strlen): Similarly.
26782 (gimple_fold_builtin_strlen): Handle update meaning of return value
26783 from get_range_strlen.
26784 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26785 get_range_strlen API.
26787 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26790 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26791 false at WPA time when body was removed.
26793 2019-01-02 Martin Liska <mliska@suse.cz>
26795 PR tree-optimization/88650
26796 * predict.c (set_even_probabilities): Calculate probability
26797 remainer only when really used.
26799 2019-01-02 Richard Biener <rguenther@suse.de>
26801 PR middle-end/88651
26802 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26803 widest_ints when mangling max_stmt_execution results.
26805 2019-01-02 Richard Biener <rguenther@suse.de>
26807 PR tree-optimization/88621
26808 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26809 bitfields when canoncalizing.
26811 2019-01-02 Richard Biener <rguenther@suse.de>
26814 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26815 cost of cheap SSE instruction.
26817 2019-01-02 Richard Biener <rguenther@suse.de>
26820 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26821 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26823 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26824 set after UIDs before splitting them.
26826 2019-01-01 Martin Sebor <msebor@redhat.com>
26827 Jeff Law <law@redhat.com>
26829 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26830 length is optimistic. If it is, then arrange to compute the
26831 conservative length as well.
26833 * gimple-fold.h (get_range_strlen): Update prototype.
26834 * builtins.c (check_access): Update call to get_range_strlen to use
26835 c_strlen_data pointer. Change various variable accesses to instead
26836 pull data from the c_strlen_data structure.
26837 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26838 * calls.c (maybe_warn_nonstring_arg): Likewise.
26839 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26840 minimum length if maximum lengh is unknown.
26841 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26842 that used c_strlen, it's no longer needed. Restructure slightly.
26843 (format_string): Set unlikely range appropriately.
26844 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26846 (get_range_strlen): Accept c_strlen_data pointer for external
26847 call sites as well. Pass through to call to internal get_range_strlen.
26848 Adjust minlen, maxlen and maxbound as needed.
26849 (get_maxval_strlen): Update comments.
26850 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26851 to use c_strlen_data pointer. Change variable accesses to instead
26852 use c_strlen_data data members.
26854 * gimple-fold.c (get_range_strlen): Update prototype.
26855 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26856 local variables. Use pdata to return information to caller.
26857 Update calls to get_range_strlen. Update pdata->maxbound.
26858 (get_range_strlen -- static version): Similarly.
26859 (get_range_strlen -- extern version): Update for internal
26860 get_range_strlen API change. Convert to external data format.
26861 (get_maxval_strlen): Similarly.
26863 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26865 * coverage.c (get_coverage_counts): Use current_function_decl.
26866 * profile.c (read_thunk_profile): New function.
26867 (branch_prob): Add THUNK parameter.
26868 * tree-profile.c (tree_profiling): Handle thunks.
26869 * value-prof.c (init_node_map): Handle thunks.
26870 * value-prof.h (branch_prob): Upate prototype.
26871 (read_thunk_profile): Declare.
26873 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26875 Update copyright years.
26877 * gcc.c (process_command): Update copyright notice dates.
26878 * gcov-dump.c (print_version): Ditto.
26879 * gcov.c (print_version): Ditto.
26880 * gcov-tool.c (print_version): Ditto.
26881 * gengtype.c (create_file): Ditto.
26882 * doc/cpp.texi: Bump @copying's copyright year.
26883 * doc/cppinternals.texi: Ditto.
26884 * doc/gcc.texi: Ditto.
26885 * doc/gccint.texi: Ditto.
26886 * doc/gcov.texi: Ditto.
26887 * doc/install.texi: Ditto.
26888 * doc/invoke.texi: Ditto.
26890 Copyright (C) 2019 Free Software Foundation, Inc.
26892 Copying and distribution of this file, with or without modification,
26893 are permitted in any medium without royalty provided the copyright
26894 notice and this notice are preserved.